1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.73 for libXi 1.8.4. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # contradicts POSIX and common usage. Disable this. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 case $# in # (( 135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;; 136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;; 137 esac 138 # Admittedly, this is quite paranoid, since all the known shells bail 139 # out after a failed 'exec'. 140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2 141 exit 255 142 fi 143 # We don't want this to propagate to other subprocesses. 144 { _as_can_reexec=; unset _as_can_reexec;} 145 if test "x$CONFIG_SHELL" = x; then 146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 147 then : 148 emulate sh 149 NULLCMD=: 150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 151 # contradicts POSIX and common usage. Disable this. 152 alias -g '\${1+\"\$@\"}'='\"\$@\"' 153 setopt NO_GLOB_SUBST 154 else case e in #( 155 e) case \`(set -o) 2>/dev/null\` in #( 156 *posix*) : 157 set -o posix ;; #( 158 *) : 159 ;; 160 esac ;; 161 esac 162 fi 163 " 164 as_required="as_fn_return () { (exit \$1); } 165 as_fn_success () { as_fn_return 0; } 166 as_fn_failure () { as_fn_return 1; } 167 as_fn_ret_success () { return 0; } 168 as_fn_ret_failure () { return 1; } 169 170 exitcode=0 171 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 175 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 176 then : 177 178 else case e in #( 179 e) exitcode=1; echo positional parameters were not saved. ;; 180 esac 181 fi 182 test x\$exitcode = x0 || exit 1 183 blah=\$(echo \$(echo blah)) 184 test x\"\$blah\" = xblah || exit 1 185 test -x / || exit 1" 186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 190 191 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 192 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 193 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 194 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 195 PATH=/empty FPATH=/empty; export PATH FPATH 196 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 197 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 198 test \$(( 1 + 1 )) = 2 || exit 1" 199 if (eval "$as_required") 2>/dev/null 200 then : 201 as_have_required=yes 202 else case e in #( 203 e) as_have_required=no ;; 204 esac 205 fi 206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 207 then : 208 209 else case e in #( 210 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 as_found=false 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 do 214 IFS=$as_save_IFS 215 case $as_dir in #((( 216 '') as_dir=./ ;; 217 */) ;; 218 *) as_dir=$as_dir/ ;; 219 esac 220 as_found=: 221 case $as_dir in #( 222 /*) 223 for as_base in sh bash ksh sh5; do 224 # Try only shells that exist, to save several forks. 225 as_shell=$as_dir$as_base 226 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 227 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 228 then : 229 CONFIG_SHELL=$as_shell as_have_required=yes 230 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 231 then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 IFS=$as_save_IFS 240 if $as_found 241 then : 242 243 else case e in #( 244 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 245 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 246 then : 247 CONFIG_SHELL=$SHELL as_have_required=yes 248 fi ;; 249 esac 250 fi 251 252 253 if test "x$CONFIG_SHELL" != x 254 then : 255 export CONFIG_SHELL 256 # We cannot yet assume a decent shell, so we have to provide a 257 # neutralization value for shells without unset; and this also 258 # works around shells that cannot unset nonexistent variables. 259 # Preserve -v and -x to the replacement shell. 260 BASH_ENV=/dev/null 261 ENV=/dev/null 262 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 263 case $- in # (((( 264 *v*x* | *x*v* ) as_opts=-vx ;; 265 *v* ) as_opts=-v ;; 266 *x* ) as_opts=-x ;; 267 * ) as_opts= ;; 268 esac 269 case $# in # (( 270 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;; 271 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;; 272 esac 273 # Admittedly, this is quite paranoid, since all the known shells bail 274 # out after a failed 'exec'. 275 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2 276 exit 255 277 fi 278 279 if test x$as_have_required = xno 280 then : 281 printf '%s\n' "$0: This script requires a shell more modern than all" 282 printf '%s\n' "$0: the shells that I found on your system." 283 if test ${ZSH_VERSION+y} ; then 284 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should" 285 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later." 286 else 287 printf '%s\n' "$0: Please tell bug-autoconf (at] gnu.org and 288 $0: https://gitlab.freedesktop.org/xorg/lib/libXi/-/issues 289 $0: about your system, including any error possibly output 290 $0: before this message. Then install a modern shell, or 291 $0: manually run the script under such a shell if you do 292 $0: have one." 293 fi 294 exit 1 295 fi ;; 296 esac 297 fi 298 fi 299 SHELL=${CONFIG_SHELL-/bin/sh} 300 export SHELL 301 # Unset more variables known to interfere with behavior of common tools. 302 CLICOLOR_FORCE= GREP_OPTIONS= 303 unset CLICOLOR_FORCE GREP_OPTIONS 304 305 ## --------------------- ## 306 ## M4sh Shell Functions. ## 307 ## --------------------- ## 308 # as_fn_unset VAR 309 # --------------- 310 # Portably unset VAR. 311 as_fn_unset () 312 { 313 { eval $1=; unset $1;} 314 } 315 as_unset=as_fn_unset 316 317 318 # as_fn_set_status STATUS 319 # ----------------------- 320 # Set $? to STATUS, without forking. 321 as_fn_set_status () 322 { 323 return $1 324 } # as_fn_set_status 325 326 # as_fn_exit STATUS 327 # ----------------- 328 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 329 as_fn_exit () 330 { 331 set +e 332 as_fn_set_status $1 333 exit $1 334 } # as_fn_exit 335 336 # as_fn_mkdir_p 337 # ------------- 338 # Create "$as_dir" as a directory, including parents if necessary. 339 as_fn_mkdir_p () 340 { 341 342 case $as_dir in #( 343 -*) as_dir=./$as_dir;; 344 esac 345 test -d "$as_dir" || eval $as_mkdir_p || { 346 as_dirs= 347 while :; do 348 case $as_dir in #( 349 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 350 *) as_qdir=$as_dir;; 351 esac 352 as_dirs="'$as_qdir' $as_dirs" 353 as_dir=`$as_dirname -- "$as_dir" || 354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 355 X"$as_dir" : 'X\(//\)[^/]' \| \ 356 X"$as_dir" : 'X\(//\)$' \| \ 357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 358 printf '%s\n' X"$as_dir" | 359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 360 s//\1/ 361 q 362 } 363 /^X\(\/\/\)[^/].*/{ 364 s//\1/ 365 q 366 } 367 /^X\(\/\/\)$/{ 368 s//\1/ 369 q 370 } 371 /^X\(\/\).*/{ 372 s//\1/ 373 q 374 } 375 s/.*/./; q'` 376 test -d "$as_dir" && break 377 done 378 test -z "$as_dirs" || eval "mkdir $as_dirs" 379 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 380 381 382 } # as_fn_mkdir_p 383 384 # as_fn_executable_p FILE 385 # ----------------------- 386 # Test if FILE is an executable regular file. 387 as_fn_executable_p () 388 { 389 test -f "$1" && test -x "$1" 390 } # as_fn_executable_p 391 # as_fn_append VAR VALUE 392 # ---------------------- 393 # Append the text in VALUE to the end of the definition contained in VAR. Take 394 # advantage of any shell optimizations that allow amortized linear growth over 395 # repeated appends, instead of the typical quadratic growth present in naive 396 # implementations. 397 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 398 then : 399 eval 'as_fn_append () 400 { 401 eval $1+=\$2 402 }' 403 else case e in #( 404 e) as_fn_append () 405 { 406 eval $1=\$$1\$2 407 } ;; 408 esac 409 fi # as_fn_append 410 411 # as_fn_arith ARG... 412 # ------------------ 413 # Perform arithmetic evaluation on the ARGs, and store the result in the 414 # global $as_val. Take advantage of shells that can avoid forks. The arguments 415 # must be portable across $(()) and expr. 416 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 417 then : 418 eval 'as_fn_arith () 419 { 420 as_val=$(( $* )) 421 }' 422 else case e in #( 423 e) as_fn_arith () 424 { 425 as_val=`expr "$@" || test $? -eq 1` 426 } ;; 427 esac 428 fi # as_fn_arith 429 430 431 # as_fn_error STATUS ERROR [LINENO LOG_FD] 432 # ---------------------------------------- 433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 435 # script with STATUS, using 1 if that was 0. 436 as_fn_error () 437 { 438 as_status=$1; test $as_status -eq 0 && as_status=1 439 if test "$4"; then 440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 441 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 442 fi 443 printf '%s\n' "$as_me: error: $2" >&2 444 as_fn_exit $as_status 445 } # as_fn_error 446 447 if expr a : '\(a\)' >/dev/null 2>&1 && 448 test "X`expr 00001 : '.*\(...\)'`" = X001; then 449 as_expr=expr 450 else 451 as_expr=false 452 fi 453 454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 455 as_basename=basename 456 else 457 as_basename=false 458 fi 459 460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462 else 463 as_dirname=false 464 fi 465 466 as_me=`$as_basename -- "$0" || 467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 468 X"$0" : 'X\(//\)$' \| \ 469 X"$0" : 'X\(/\)' \| . 2>/dev/null || 470 printf '%s\n' X/"$0" | 471 sed '/^.*\/\([^/][^/]*\)\/*$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\/\)$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\).*/{ 480 s//\1/ 481 q 482 } 483 s/.*/./; q'` 484 485 # Avoid depending upon Character Ranges. 486 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 489 as_cr_digits='0123456789' 490 as_cr_alnum=$as_cr_Letters$as_cr_digits 491 492 493 as_lineno_1=$LINENO as_lineno_1a=$LINENO 494 as_lineno_2=$LINENO as_lineno_2a=$LINENO 495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 498 sed -n ' 499 p 500 /[$]LINENO/= 501 ' <$as_myself | 502 sed ' 503 t clear 504 :clear 505 s/[$]LINENO.*/&-/ 506 t lineno 507 b 508 :lineno 509 N 510 :loop 511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 512 t loop 513 s/-\n.*// 514 ' >$as_me.lineno && 515 chmod +x "$as_me.lineno" || 516 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 517 518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 519 # already done that, so ensure we don't try to do so again and fall 520 # in an infinite loop. This has already happened in practice. 521 _as_can_reexec=no; export _as_can_reexec 522 # Don't try to exec as it changes $[0], causing all sort of problems 523 # (the dirname of $[0] is not the place where we might find the 524 # original and so on. Autoconf is especially sensitive to this). 525 . "./$as_me.lineno" 526 # Exit status is that of the last command. 527 exit 528 } 529 530 rm -f conf$$ conf$$.exe conf$$.file 531 if test -d conf$$.dir; then 532 rm -f conf$$.dir/conf$$.file 533 else 534 rm -f conf$$.dir 535 mkdir conf$$.dir 2>/dev/null 536 fi 537 if (echo >conf$$.file) 2>/dev/null; then 538 if ln -s conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s='ln -s' 540 # ... but there are two gotchas: 541 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 542 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 543 # In both cases, we have to default to 'cp -pR'. 544 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 545 as_ln_s='cp -pR' 546 elif ln conf$$.file conf$$ 2>/dev/null; then 547 as_ln_s=ln 548 else 549 as_ln_s='cp -pR' 550 fi 551 else 552 as_ln_s='cp -pR' 553 fi 554 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 555 rmdir conf$$.dir 2>/dev/null 556 557 if mkdir -p . 2>/dev/null; then 558 as_mkdir_p='mkdir -p "$as_dir"' 559 else 560 test -d ./-p && rmdir ./-p 561 as_mkdir_p=false 562 fi 563 564 as_test_x='test -x' 565 as_executable_p=as_fn_executable_p 566 567 # Sed expression to map a string onto a valid CPP name. 568 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 569 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 570 571 # Sed expression to map a string onto a valid variable name. 572 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 573 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 574 575 SHELL=${CONFIG_SHELL-/bin/sh} 576 577 as_awk_strverscmp=' 578 # Use only awk features that work with 7th edition Unix awk (1978). 579 # My, what an old awk you have, Mr. Solaris! 580 END { 581 while (length(v1) && length(v2)) { 582 # Set d1 to be the next thing to compare from v1, and likewise for d2. 583 # Normally this is a single character, but if v1 and v2 contain digits, 584 # compare them as integers and fractions as strverscmp does. 585 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 586 # Split v1 and v2 into their leading digit string components d1 and d2, 587 # and advance v1 and v2 past the leading digit strings. 588 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 589 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 590 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 591 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 592 if (d1 ~ /^0/) { 593 if (d2 ~ /^0/) { 594 # Compare two fractions. 595 while (d1 ~ /^0/ && d2 ~ /^0/) { 596 d1 = substr(d1, 2); len1-- 597 d2 = substr(d2, 2); len2-- 598 } 599 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 600 # The two components differ in length, and the common prefix 601 # contains only leading zeros. Consider the longer to be less. 602 d1 = -len1 603 d2 = -len2 604 } else { 605 # Otherwise, compare as strings. 606 d1 = "x" d1 607 d2 = "x" d2 608 } 609 } else { 610 # A fraction is less than an integer. 611 exit 1 612 } 613 } else { 614 if (d2 ~ /^0/) { 615 # An integer is greater than a fraction. 616 exit 2 617 } else { 618 # Compare two integers. 619 d1 += 0 620 d2 += 0 621 } 622 } 623 } else { 624 # The normal case, without worrying about digits. 625 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 626 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 627 } 628 if (d1 < d2) exit 1 629 if (d1 > d2) exit 2 630 } 631 # Beware Solaris 11 /usr/xgp4/bin/awk, which mishandles some 632 # comparisons of empty strings to integers. For example, 633 # LC_ALL=C /usr/xpg4/bin/awk "BEGIN {if (-1 < \"\") print \"a\"}" 634 # prints "a". 635 if (length(v2)) exit 1 636 if (length(v1)) exit 2 637 } 638 ' 639 640 test -n "$DJDIR" || exec 7<&0 </dev/null 641 exec 6>&1 642 643 # Name of the host. 644 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 645 # so uname gets run too. 646 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 647 648 # 649 # Initializations. 650 # 651 ac_default_prefix=/usr/local 652 ac_clean_CONFIG_STATUS= 653 ac_clean_files= 654 ac_config_libobj_dir=. 655 LIBOBJS= 656 cross_compiling=no 657 subdirs= 658 MFLAGS= 659 MAKEFLAGS= 660 661 # Identity of this package. 662 PACKAGE_NAME='libXi' 663 PACKAGE_TARNAME='libXi' 664 PACKAGE_VERSION='1.8.4' 665 PACKAGE_STRING='libXi 1.8.4' 666 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXi/-/issues' 667 PACKAGE_URL='' 668 669 ac_unique_file="Makefile.am" 670 # Factoring default headers for most tests. 671 ac_includes_default="\ 672 #include <stddef.h> 673 #ifdef HAVE_STDIO_H 674 # include <stdio.h> 675 #endif 676 #ifdef HAVE_STDLIB_H 677 # include <stdlib.h> 678 #endif 679 #ifdef HAVE_STRING_H 680 # include <string.h> 681 #endif 682 #ifdef HAVE_INTTYPES_H 683 # include <inttypes.h> 684 #endif 685 #ifdef HAVE_STDINT_H 686 # include <stdint.h> 687 #endif 688 #ifdef HAVE_STRINGS_H 689 # include <strings.h> 690 #endif 691 #ifdef HAVE_SYS_TYPES_H 692 # include <sys/types.h> 693 #endif 694 #ifdef HAVE_SYS_STAT_H 695 # include <sys/stat.h> 696 #endif 697 #ifdef HAVE_UNISTD_H 698 # include <unistd.h> 699 #endif" 700 701 ac_header_c_list= 702 ac_subst_vars='am__EXEEXT_FALSE 703 am__EXEEXT_TRUE 704 LTLIBOBJS 705 LIBOBJS 706 INSTALL_MANPAGES_FALSE 707 INSTALL_MANPAGES_TRUE 708 HAVE_DOCTOOLS_FALSE 709 HAVE_DOCTOOLS_TRUE 710 XFIXES_LIBS 711 XFIXES_CFLAGS 712 XI_LIBS 713 XI_CFLAGS 714 XTMALLOC_ZERO_CFLAGS 715 XMALLOC_ZERO_CFLAGS 716 MALLOC_ZERO_CFLAGS 717 HAVE_ASCIIDOC_FALSE 718 HAVE_ASCIIDOC_TRUE 719 ASCIIDOC 720 HAVE_STYLESHEETS_FALSE 721 HAVE_STYLESHEETS_TRUE 722 XSL_STYLESHEET 723 STYLESHEET_SRCDIR 724 XORG_SGML_PATH 725 HAVE_XSLTPROC_FALSE 726 HAVE_XSLTPROC_TRUE 727 XSLTPROC 728 HAVE_FOP_FALSE 729 HAVE_FOP_TRUE 730 FOP 731 HAVE_XMLTO_FALSE 732 HAVE_XMLTO_TRUE 733 HAVE_XMLTO_TEXT_FALSE 734 HAVE_XMLTO_TEXT_TRUE 735 XMLTO 736 ENABLE_SPECS_FALSE 737 ENABLE_SPECS_TRUE 738 ENABLE_DOCS_FALSE 739 ENABLE_DOCS_TRUE 740 MAN_SUBSTS 741 XORG_MAN_PAGE 742 ADMIN_MAN_DIR 743 DRIVER_MAN_DIR 744 MISC_MAN_DIR 745 FILE_MAN_DIR 746 LIB_MAN_DIR 747 APP_MAN_DIR 748 ADMIN_MAN_SUFFIX 749 DRIVER_MAN_SUFFIX 750 MISC_MAN_SUFFIX 751 FILE_MAN_SUFFIX 752 LIB_MAN_SUFFIX 753 APP_MAN_SUFFIX 754 INSTALL_CMD 755 PKG_CONFIG_LIBDIR 756 PKG_CONFIG_PATH 757 PKG_CONFIG 758 CHANGELOG_CMD 759 STRICT_CFLAGS 760 CWARNFLAGS 761 BASE_CFLAGS 762 LT_SYS_LIBRARY_PATH 763 OTOOL64 764 OTOOL 765 LIPO 766 NMEDIT 767 DSYMUTIL 768 MANIFEST_TOOL 769 RANLIB 770 ac_ct_AR 771 AR 772 DLLTOOL 773 OBJDUMP 774 FILECMD 775 LN_S 776 NM 777 ac_ct_DUMPBIN 778 DUMPBIN 779 LD 780 FGREP 781 EGREP 782 GREP 783 SED 784 am__fastdepCC_FALSE 785 am__fastdepCC_TRUE 786 CCDEPMODE 787 am__nodep 788 AMDEPBACKSLASH 789 AMDEP_FALSE 790 AMDEP_TRUE 791 am__include 792 DEPDIR 793 OBJEXT 794 EXEEXT 795 ac_ct_CC 796 CPPFLAGS 797 LDFLAGS 798 CFLAGS 799 CC 800 host_os 801 host_vendor 802 host_cpu 803 host 804 build_os 805 build_vendor 806 build_cpu 807 build 808 LIBTOOL 809 am__xargs_n 810 am__rm_f_notfound 811 AM_BACKSLASH 812 AM_DEFAULT_VERBOSITY 813 AM_DEFAULT_V 814 AM_V 815 CSCOPE 816 ETAGS 817 CTAGS 818 am__tar_ignore_stderr 819 am__untar 820 am__tar 821 AMTAR 822 am__leading_dot 823 SET_MAKE 824 AWK 825 mkdir_p 826 MKDIR_P 827 INSTALL_STRIP_PROGRAM 828 STRIP 829 install_sh 830 MAKEINFO 831 AUTOHEADER 832 AUTOMAKE 833 AUTOCONF 834 ACLOCAL 835 VERSION 836 PACKAGE 837 CYGPATH_W 838 am__isrc 839 INSTALL_DATA 840 INSTALL_SCRIPT 841 INSTALL_PROGRAM 842 ECHO_T 843 ECHO_N 844 ECHO_C 845 target_alias 846 host_alias 847 build_alias 848 LIBS 849 DEFS 850 mandir 851 localedir 852 libdir 853 psdir 854 pdfdir 855 dvidir 856 htmldir 857 infodir 858 docdir 859 oldincludedir 860 includedir 861 runstatedir 862 localstatedir 863 sharedstatedir 864 sysconfdir 865 datadir 866 datarootdir 867 libexecdir 868 sbindir 869 bindir 870 program_transform_name 871 prefix 872 exec_prefix 873 PACKAGE_URL 874 PACKAGE_BUGREPORT 875 PACKAGE_STRING 876 PACKAGE_VERSION 877 PACKAGE_TARNAME 878 PACKAGE_NAME 879 PATH_SEPARATOR 880 SHELL 881 am__quote' 882 ac_subst_files='' 883 ac_user_opts=' 884 enable_option_checking 885 enable_silent_rules 886 enable_shared 887 enable_static 888 enable_pic 889 with_pic 890 enable_cxx_stdlib 891 enable_fast_install 892 enable_aix_soname 893 with_aix_soname 894 enable_dependency_tracking 895 with_gnu_ld 896 with_sysroot 897 enable_libtool_lock 898 enable_selective_werror 899 enable_strict_compilation 900 enable_docs 901 enable_specs 902 with_xmlto 903 with_fop 904 with_xsltproc 905 with_asciidoc 906 enable_malloc0returnsnull 907 ' 908 ac_precious_vars='build_alias 909 host_alias 910 target_alias 911 CC 912 CFLAGS 913 LDFLAGS 914 LIBS 915 CPPFLAGS 916 LT_SYS_LIBRARY_PATH 917 PKG_CONFIG 918 PKG_CONFIG_PATH 919 PKG_CONFIG_LIBDIR 920 XMLTO 921 FOP 922 XSLTPROC 923 ASCIIDOC 924 XI_CFLAGS 925 XI_LIBS 926 XFIXES_CFLAGS 927 XFIXES_LIBS' 928 929 930 # Initialize some variables set by options. 931 ac_init_help= 932 ac_init_version=false 933 ac_unrecognized_opts= 934 ac_unrecognized_sep= 935 # The variables have the same names as the options, with 936 # dashes changed to underlines. 937 cache_file=/dev/null 938 exec_prefix=NONE 939 no_create= 940 no_recursion= 941 prefix=NONE 942 program_prefix=NONE 943 program_suffix=NONE 944 program_transform_name=s,x,x, 945 silent= 946 site= 947 srcdir= 948 verbose= 949 x_includes=NONE 950 x_libraries=NONE 951 952 # Installation directory options. 953 # These are left unexpanded so users can "make install exec_prefix=/foo" 954 # and all the variables that are supposed to be based on exec_prefix 955 # by default will actually change. 956 # Use braces instead of parens because sh, perl, etc. also accept them. 957 # (The list follows the same order as the GNU Coding Standards.) 958 bindir='${exec_prefix}/bin' 959 sbindir='${exec_prefix}/sbin' 960 libexecdir='${exec_prefix}/libexec' 961 datarootdir='${prefix}/share' 962 datadir='${datarootdir}' 963 sysconfdir='${prefix}/etc' 964 sharedstatedir='${prefix}/com' 965 localstatedir='${prefix}/var' 966 runstatedir='${localstatedir}/run' 967 includedir='${prefix}/include' 968 oldincludedir='/usr/include' 969 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 970 infodir='${datarootdir}/info' 971 htmldir='${docdir}' 972 dvidir='${docdir}' 973 pdfdir='${docdir}' 974 psdir='${docdir}' 975 libdir='${exec_prefix}/lib' 976 localedir='${datarootdir}/locale' 977 mandir='${datarootdir}/man' 978 979 ac_prev= 980 ac_dashdash= 981 for ac_option 982 do 983 # If the previous option needs an argument, assign it. 984 if test -n "$ac_prev"; then 985 eval $ac_prev=\$ac_option 986 ac_prev= 987 continue 988 fi 989 990 case $ac_option in 991 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 992 *=) ac_optarg= ;; 993 *) ac_optarg=yes ;; 994 esac 995 996 case $ac_dashdash$ac_option in 997 --) 998 ac_dashdash=yes ;; 999 1000 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1001 ac_prev=bindir ;; 1002 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1003 bindir=$ac_optarg ;; 1004 1005 -build | --build | --buil | --bui | --bu) 1006 ac_prev=build_alias ;; 1007 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1008 build_alias=$ac_optarg ;; 1009 1010 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1011 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1012 ac_prev=cache_file ;; 1013 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1014 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1015 cache_file=$ac_optarg ;; 1016 1017 --config-cache | -C) 1018 cache_file=config.cache ;; 1019 1020 -datadir | --datadir | --datadi | --datad) 1021 ac_prev=datadir ;; 1022 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1023 datadir=$ac_optarg ;; 1024 1025 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1026 | --dataroo | --dataro | --datar) 1027 ac_prev=datarootdir ;; 1028 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1029 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1030 datarootdir=$ac_optarg ;; 1031 1032 -disable-* | --disable-*) 1033 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1034 # Reject names that are not valid shell variable names. 1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1036 as_fn_error $? "invalid feature name: '$ac_useropt'" 1037 ac_useropt_orig=$ac_useropt 1038 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1039 case $ac_user_opts in 1040 *" 1041 "enable_$ac_useropt" 1042 "*) ;; 1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1044 ac_unrecognized_sep=', ';; 1045 esac 1046 eval enable_$ac_useropt=no ;; 1047 1048 -docdir | --docdir | --docdi | --doc | --do) 1049 ac_prev=docdir ;; 1050 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1051 docdir=$ac_optarg ;; 1052 1053 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1054 ac_prev=dvidir ;; 1055 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1056 dvidir=$ac_optarg ;; 1057 1058 -enable-* | --enable-*) 1059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1060 # Reject names that are not valid shell variable names. 1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1062 as_fn_error $? "invalid feature name: '$ac_useropt'" 1063 ac_useropt_orig=$ac_useropt 1064 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1065 case $ac_user_opts in 1066 *" 1067 "enable_$ac_useropt" 1068 "*) ;; 1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1070 ac_unrecognized_sep=', ';; 1071 esac 1072 eval enable_$ac_useropt=\$ac_optarg ;; 1073 1074 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1075 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1076 | --exec | --exe | --ex) 1077 ac_prev=exec_prefix ;; 1078 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1079 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1080 | --exec=* | --exe=* | --ex=*) 1081 exec_prefix=$ac_optarg ;; 1082 1083 -gas | --gas | --ga | --g) 1084 # Obsolete; use --with-gas. 1085 with_gas=yes ;; 1086 1087 -help | --help | --hel | --he | -h) 1088 ac_init_help=long ;; 1089 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1090 ac_init_help=recursive ;; 1091 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1092 ac_init_help=short ;; 1093 1094 -host | --host | --hos | --ho) 1095 ac_prev=host_alias ;; 1096 -host=* | --host=* | --hos=* | --ho=*) 1097 host_alias=$ac_optarg ;; 1098 1099 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1100 ac_prev=htmldir ;; 1101 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1102 | --ht=*) 1103 htmldir=$ac_optarg ;; 1104 1105 -includedir | --includedir | --includedi | --included | --include \ 1106 | --includ | --inclu | --incl | --inc) 1107 ac_prev=includedir ;; 1108 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1109 | --includ=* | --inclu=* | --incl=* | --inc=*) 1110 includedir=$ac_optarg ;; 1111 1112 -infodir | --infodir | --infodi | --infod | --info | --inf) 1113 ac_prev=infodir ;; 1114 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1115 infodir=$ac_optarg ;; 1116 1117 -libdir | --libdir | --libdi | --libd) 1118 ac_prev=libdir ;; 1119 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1120 libdir=$ac_optarg ;; 1121 1122 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1123 | --libexe | --libex | --libe) 1124 ac_prev=libexecdir ;; 1125 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1126 | --libexe=* | --libex=* | --libe=*) 1127 libexecdir=$ac_optarg ;; 1128 1129 -localedir | --localedir | --localedi | --localed | --locale) 1130 ac_prev=localedir ;; 1131 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1132 localedir=$ac_optarg ;; 1133 1134 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1135 | --localstate | --localstat | --localsta | --localst | --locals) 1136 ac_prev=localstatedir ;; 1137 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1138 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1139 localstatedir=$ac_optarg ;; 1140 1141 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1142 ac_prev=mandir ;; 1143 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1144 mandir=$ac_optarg ;; 1145 1146 -nfp | --nfp | --nf) 1147 # Obsolete; use --without-fp. 1148 with_fp=no ;; 1149 1150 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1151 | --no-cr | --no-c | -n) 1152 no_create=yes ;; 1153 1154 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1155 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1156 no_recursion=yes ;; 1157 1158 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1159 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1160 | --oldin | --oldi | --old | --ol | --o) 1161 ac_prev=oldincludedir ;; 1162 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1163 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1164 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1165 oldincludedir=$ac_optarg ;; 1166 1167 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1168 ac_prev=prefix ;; 1169 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1170 prefix=$ac_optarg ;; 1171 1172 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1173 | --program-pre | --program-pr | --program-p) 1174 ac_prev=program_prefix ;; 1175 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1176 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1177 program_prefix=$ac_optarg ;; 1178 1179 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1180 | --program-suf | --program-su | --program-s) 1181 ac_prev=program_suffix ;; 1182 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1183 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1184 program_suffix=$ac_optarg ;; 1185 1186 -program-transform-name | --program-transform-name \ 1187 | --program-transform-nam | --program-transform-na \ 1188 | --program-transform-n | --program-transform- \ 1189 | --program-transform | --program-transfor \ 1190 | --program-transfo | --program-transf \ 1191 | --program-trans | --program-tran \ 1192 | --progr-tra | --program-tr | --program-t) 1193 ac_prev=program_transform_name ;; 1194 -program-transform-name=* | --program-transform-name=* \ 1195 | --program-transform-nam=* | --program-transform-na=* \ 1196 | --program-transform-n=* | --program-transform-=* \ 1197 | --program-transform=* | --program-transfor=* \ 1198 | --program-transfo=* | --program-transf=* \ 1199 | --program-trans=* | --program-tran=* \ 1200 | --progr-tra=* | --program-tr=* | --program-t=*) 1201 program_transform_name=$ac_optarg ;; 1202 1203 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1204 ac_prev=pdfdir ;; 1205 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1206 pdfdir=$ac_optarg ;; 1207 1208 -psdir | --psdir | --psdi | --psd | --ps) 1209 ac_prev=psdir ;; 1210 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1211 psdir=$ac_optarg ;; 1212 1213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1214 | -silent | --silent | --silen | --sile | --sil) 1215 silent=yes ;; 1216 1217 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1218 | --runstate | --runstat | --runsta | --runst | --runs \ 1219 | --run | --ru | --r) 1220 ac_prev=runstatedir ;; 1221 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1222 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1223 | --run=* | --ru=* | --r=*) 1224 runstatedir=$ac_optarg ;; 1225 1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1227 ac_prev=sbindir ;; 1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1229 | --sbi=* | --sb=*) 1230 sbindir=$ac_optarg ;; 1231 1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1234 | --sharedst | --shareds | --shared | --share | --shar \ 1235 | --sha | --sh) 1236 ac_prev=sharedstatedir ;; 1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1240 | --sha=* | --sh=*) 1241 sharedstatedir=$ac_optarg ;; 1242 1243 -site | --site | --sit) 1244 ac_prev=site ;; 1245 -site=* | --site=* | --sit=*) 1246 site=$ac_optarg ;; 1247 1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1249 ac_prev=srcdir ;; 1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1251 srcdir=$ac_optarg ;; 1252 1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1254 | --syscon | --sysco | --sysc | --sys | --sy) 1255 ac_prev=sysconfdir ;; 1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1258 sysconfdir=$ac_optarg ;; 1259 1260 -target | --target | --targe | --targ | --tar | --ta | --t) 1261 ac_prev=target_alias ;; 1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1263 target_alias=$ac_optarg ;; 1264 1265 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1266 verbose=yes ;; 1267 1268 -version | --version | --versio | --versi | --vers | -V) 1269 ac_init_version=: ;; 1270 1271 -with-* | --with-*) 1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1273 # Reject names that are not valid shell variable names. 1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1275 as_fn_error $? "invalid package name: '$ac_useropt'" 1276 ac_useropt_orig=$ac_useropt 1277 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1278 case $ac_user_opts in 1279 *" 1280 "with_$ac_useropt" 1281 "*) ;; 1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1283 ac_unrecognized_sep=', ';; 1284 esac 1285 eval with_$ac_useropt=\$ac_optarg ;; 1286 1287 -without-* | --without-*) 1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1289 # Reject names that are not valid shell variable names. 1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1291 as_fn_error $? "invalid package name: '$ac_useropt'" 1292 ac_useropt_orig=$ac_useropt 1293 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'` 1294 case $ac_user_opts in 1295 *" 1296 "with_$ac_useropt" 1297 "*) ;; 1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1299 ac_unrecognized_sep=', ';; 1300 esac 1301 eval with_$ac_useropt=no ;; 1302 1303 --x) 1304 # Obsolete; use --with-x. 1305 with_x=yes ;; 1306 1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1308 | --x-incl | --x-inc | --x-in | --x-i) 1309 ac_prev=x_includes ;; 1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1312 x_includes=$ac_optarg ;; 1313 1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1316 ac_prev=x_libraries ;; 1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1319 x_libraries=$ac_optarg ;; 1320 1321 -*) as_fn_error $? "unrecognized option: '$ac_option' 1322 Try '$0 --help' for more information" 1323 ;; 1324 1325 *=*) 1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1327 # Reject names that are not valid shell variable names. 1328 case $ac_envvar in #( 1329 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1330 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1331 esac 1332 eval $ac_envvar=\$ac_optarg 1333 export $ac_envvar ;; 1334 1335 *) 1336 # FIXME: should be removed in autoconf 3.0. 1337 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2 1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1339 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2 1340 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1341 ;; 1342 1343 esac 1344 done 1345 1346 if test -n "$ac_prev"; then 1347 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'` 1348 as_fn_error $? "missing argument to $ac_option" 1349 fi 1350 1351 if test -n "$ac_unrecognized_opts"; then 1352 case $enable_option_checking in 1353 no) ;; 1354 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1355 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1356 esac 1357 fi 1358 1359 # Check all directory arguments for consistency. 1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1361 datadir sysconfdir sharedstatedir localstatedir includedir \ 1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1363 libdir localedir mandir runstatedir 1364 do 1365 eval ac_val=\$$ac_var 1366 # Remove trailing slashes. 1367 case $ac_val in 1368 */ ) 1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1370 eval $ac_var=\$ac_val;; 1371 esac 1372 # Be sure to have absolute directory names. 1373 case $ac_val in 1374 [\\/$]* | ?:[\\/]* ) continue;; 1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1376 esac 1377 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1378 done 1379 1380 # There might be people who depend on the old broken behavior: '$host' 1381 # used to hold the argument of --host etc. 1382 # FIXME: To remove some day. 1383 build=$build_alias 1384 host=$host_alias 1385 target=$target_alias 1386 1387 # FIXME: To remove some day. 1388 if test "x$host_alias" != x; then 1389 if test "x$build_alias" = x; then 1390 cross_compiling=maybe 1391 elif test "x$build_alias" != "x$host_alias"; then 1392 cross_compiling=yes 1393 fi 1394 fi 1395 1396 ac_tool_prefix= 1397 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1398 1399 test "$silent" = yes && exec 6>/dev/null 1400 1401 1402 ac_pwd=`pwd` && test -n "$ac_pwd" && 1403 ac_ls_di=`ls -di .` && 1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1405 as_fn_error $? "working directory cannot be determined" 1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1407 as_fn_error $? "pwd does not report name of working directory" 1408 1409 1410 # Find the source files, if location was not specified. 1411 if test -z "$srcdir"; then 1412 ac_srcdir_defaulted=yes 1413 # Try the directory containing this script, then the parent directory. 1414 ac_confdir=`$as_dirname -- "$as_myself" || 1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1416 X"$as_myself" : 'X\(//\)[^/]' \| \ 1417 X"$as_myself" : 'X\(//\)$' \| \ 1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1419 printf '%s\n' X"$as_myself" | 1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1421 s//\1/ 1422 q 1423 } 1424 /^X\(\/\/\)[^/].*/{ 1425 s//\1/ 1426 q 1427 } 1428 /^X\(\/\/\)$/{ 1429 s//\1/ 1430 q 1431 } 1432 /^X\(\/\).*/{ 1433 s//\1/ 1434 q 1435 } 1436 s/.*/./; q'` 1437 srcdir=$ac_confdir 1438 if test ! -r "$srcdir/$ac_unique_file"; then 1439 srcdir=.. 1440 fi 1441 else 1442 ac_srcdir_defaulted=no 1443 fi 1444 if test ! -r "$srcdir/$ac_unique_file"; then 1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1446 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1447 fi 1448 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1449 ac_abs_confdir=`( 1450 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1451 pwd)` 1452 # When building in place, set srcdir=. 1453 if test "$ac_abs_confdir" = "$ac_pwd"; then 1454 srcdir=. 1455 fi 1456 # Remove unnecessary trailing slashes from srcdir. 1457 # Double slashes in file names in object file debugging info 1458 # mess up M-x gdb in Emacs. 1459 case $srcdir in 1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1461 esac 1462 for ac_var in $ac_precious_vars; do 1463 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1464 eval ac_env_${ac_var}_value=\$${ac_var} 1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1466 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1467 done 1468 1469 # 1470 # Report the --help message. 1471 # 1472 if test "$ac_init_help" = "long"; then 1473 # Omit some internal or obsolete options to make the list less imposing. 1474 # This message is too long to be a string in the A/UX 3.1 sh. 1475 cat <<_ACEOF 1476 'configure' configures libXi 1.8.4 to adapt to many kinds of systems. 1477 1478 Usage: $0 [OPTION]... [VAR=VALUE]... 1479 1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1481 VAR=VALUE. See below for descriptions of some of the useful variables. 1482 1483 Defaults for the options are specified in brackets. 1484 1485 Configuration: 1486 -h, --help display this help and exit 1487 --help=short display options specific to this package 1488 --help=recursive display the short help of all the included packages 1489 -V, --version display version information and exit 1490 -q, --quiet, --silent do not print 'checking ...' messages 1491 --cache-file=FILE cache test results in FILE [disabled] 1492 -C, --config-cache alias for '--cache-file=config.cache' 1493 -n, --no-create do not create output files 1494 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1495 1496 Installation directories: 1497 --prefix=PREFIX install architecture-independent files in PREFIX 1498 [$ac_default_prefix] 1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1500 [PREFIX] 1501 1502 By default, 'make install' will install all the files in 1503 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1504 an installation prefix other than '$ac_default_prefix' using '--prefix', 1505 for instance '--prefix=\$HOME'. 1506 1507 For better control, use the options below. 1508 1509 Fine tuning of the installation directories: 1510 --bindir=DIR user executables [EPREFIX/bin] 1511 --sbindir=DIR system admin executables [EPREFIX/sbin] 1512 --libexecdir=DIR program executables [EPREFIX/libexec] 1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1516 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1517 --libdir=DIR object code libraries [EPREFIX/lib] 1518 --includedir=DIR C header files [PREFIX/include] 1519 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1522 --infodir=DIR info documentation [DATAROOTDIR/info] 1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1524 --mandir=DIR man documentation [DATAROOTDIR/man] 1525 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi] 1526 --htmldir=DIR html documentation [DOCDIR] 1527 --dvidir=DIR dvi documentation [DOCDIR] 1528 --pdfdir=DIR pdf documentation [DOCDIR] 1529 --psdir=DIR ps documentation [DOCDIR] 1530 _ACEOF 1531 1532 cat <<\_ACEOF 1533 1534 Program names: 1535 --program-prefix=PREFIX prepend PREFIX to installed program names 1536 --program-suffix=SUFFIX append SUFFIX to installed program names 1537 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1538 1539 System types: 1540 --build=BUILD configure for building on BUILD [guessed] 1541 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1542 _ACEOF 1543 fi 1544 1545 if test -n "$ac_init_help"; then 1546 case $ac_init_help in 1547 short | recursive ) echo "Configuration of libXi 1.8.4:";; 1548 esac 1549 cat <<\_ACEOF 1550 1551 Optional Features: 1552 --disable-option-checking ignore unrecognized --enable/--with options 1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1555 --enable-silent-rules less verbose build output (undo: "make V=1") 1556 --disable-silent-rules verbose build output (undo: "make V=0") 1557 --enable-shared[=PKGS] build shared libraries [default=yes] 1558 --enable-static[=PKGS] build static libraries [default=yes] 1559 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1560 both] 1561 --enable-cxx-stdlib[=PKGS] 1562 let the compiler frontend decide what standard 1563 libraries to link when building C++ shared libraries 1564 and modules [default=no] 1565 --enable-fast-install[=PKGS] 1566 optimize for fast installation [default=yes] 1567 --enable-aix-soname=aix|svr4|both 1568 shared library versioning (aka "SONAME") variant to 1569 provide on AIX, [default=aix]. 1570 --enable-dependency-tracking 1571 do not reject slow dependency extractors 1572 --disable-dependency-tracking 1573 speeds up one-time build 1574 --disable-libtool-lock avoid locking (might break parallel builds) 1575 --disable-selective-werror 1576 Turn off selective compiler errors. (default: 1577 enabled) 1578 --enable-strict-compilation 1579 Enable all warnings from compiler and make them 1580 errors (default: disabled) 1581 --enable-docs Enable building the documentation (default: yes) 1582 --enable-specs Enable building the specs (default: yes) 1583 --enable-malloc0returnsnull 1584 assume malloc(0) can return NULL (default: yes) 1585 1586 Optional Packages: 1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1589 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1590 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1591 compiler's sysroot if not specified). 1592 --with-xmlto Use xmlto to regenerate documentation (default: 1593 auto) 1594 --with-fop Use fop to regenerate documentation (default: auto) 1595 --with-xsltproc Use xsltproc for the transformation of XML documents 1596 (default: auto) 1597 --with-asciidoc Use asciidoc to regenerate documentation (default: 1598 auto) 1599 1600 Some influential environment variables: 1601 CC C compiler command 1602 CFLAGS C compiler flags 1603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1604 nonstandard directory <lib dir> 1605 LIBS libraries to pass to the linker, e.g. -l<library> 1606 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1607 you have headers in a nonstandard directory <include dir> 1608 LT_SYS_LIBRARY_PATH 1609 User-defined run-time library search path. 1610 PKG_CONFIG path to pkg-config utility 1611 PKG_CONFIG_PATH 1612 directories to add to pkg-config's search path 1613 PKG_CONFIG_LIBDIR 1614 path overriding pkg-config's built-in search path 1615 XMLTO Path to xmlto command 1616 FOP Path to fop command 1617 XSLTPROC Path to xsltproc command 1618 ASCIIDOC Path to asciidoc command 1619 XI_CFLAGS C compiler flags for XI, overriding pkg-config 1620 XI_LIBS linker flags for XI, overriding pkg-config 1621 XFIXES_CFLAGS 1622 C compiler flags for XFIXES, overriding pkg-config 1623 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config 1624 1625 Use these variables to override the choices made by 'configure' or to help 1626 it to find libraries and programs with nonstandard names/locations. 1627 1628 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/-/issues>. 1629 _ACEOF 1630 ac_status=$? 1631 fi 1632 1633 if test "$ac_init_help" = "recursive"; then 1634 # If there are subdirs, report their specific --help. 1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1636 test -d "$ac_dir" || 1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1638 continue 1639 ac_builddir=. 1640 1641 case "$ac_dir" in 1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1643 *) 1644 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'` 1645 # A ".." for each directory in $ac_dir_suffix. 1646 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1647 case $ac_top_builddir_sub in 1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1650 esac ;; 1651 esac 1652 ac_abs_top_builddir=$ac_pwd 1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1654 # for backward compatibility: 1655 ac_top_builddir=$ac_top_build_prefix 1656 1657 case $srcdir in 1658 .) # We are building in place. 1659 ac_srcdir=. 1660 ac_top_srcdir=$ac_top_builddir_sub 1661 ac_abs_top_srcdir=$ac_pwd ;; 1662 [\\/]* | ?:[\\/]* ) # Absolute name. 1663 ac_srcdir=$srcdir$ac_dir_suffix; 1664 ac_top_srcdir=$srcdir 1665 ac_abs_top_srcdir=$srcdir ;; 1666 *) # Relative name. 1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1668 ac_top_srcdir=$ac_top_build_prefix$srcdir 1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1670 esac 1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1672 1673 cd "$ac_dir" || { ac_status=$?; continue; } 1674 # Check for configure.gnu first; this name is used for a wrapper for 1675 # Metaconfig's "Configure" on case-insensitive file systems. 1676 if test -f "$ac_srcdir/configure.gnu"; then 1677 echo && 1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1679 elif test -f "$ac_srcdir/configure"; then 1680 echo && 1681 $SHELL "$ac_srcdir/configure" --help=recursive 1682 else 1683 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1684 fi || ac_status=$? 1685 cd "$ac_pwd" || { ac_status=$?; break; } 1686 done 1687 fi 1688 1689 test -n "$ac_init_help" && exit $ac_status 1690 if $ac_init_version; then 1691 cat <<\_ACEOF 1692 libXi configure 1.8.4 1693 generated by GNU Autoconf 2.73 1694 1695 Copyright (C) 2026 Free Software Foundation, Inc. 1696 This configure script is free software; the Free Software Foundation 1697 gives unlimited permission to copy, distribute and modify it. 1698 _ACEOF 1699 exit 1700 fi 1701 1702 ## ------------------------ ## 1703 ## Autoconf initialization. ## 1704 ## ------------------------ ## 1705 1706 # ac_fn_c_try_compile LINENO 1707 # -------------------------- 1708 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1709 ac_fn_c_try_compile () 1710 { 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 rm -f conftest.$ac_objext conftest.beam 1713 if { { ac_try="$ac_compile" 1714 case "(($ac_try" in 1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *) ac_try_echo=$ac_try;; 1717 esac 1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719 printf '%s\n' "$ac_try_echo"; } >&5 1720 (eval "$ac_compile") 2>conftest.err 1721 ac_status=$? 1722 if test -s conftest.err; then 1723 grep -v '^ *+' conftest.err >conftest.er1 1724 cat conftest.er1 >&5 1725 mv -f conftest.er1 conftest.err 1726 fi 1727 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1728 test $ac_status = 0; } && { 1729 test -z "$ac_c_werror_flag" || 1730 test ! -s conftest.err 1731 } && test -s conftest.$ac_objext 1732 then : 1733 ac_retval=0 1734 else case e in #( 1735 e) printf '%s\n' "$as_me: failed program was:" >&5 1736 sed 's/^/| /' conftest.$ac_ext >&5 1737 1738 ac_retval=1 ;; 1739 esac 1740 fi 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742 as_fn_set_status $ac_retval 1743 1744 } # ac_fn_c_try_compile 1745 1746 # ac_fn_c_try_link LINENO 1747 # ----------------------- 1748 # Try to link conftest.$ac_ext, and return whether this succeeded. 1749 ac_fn_c_try_link () 1750 { 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1753 if { { ac_try="$ac_link" 1754 case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757 esac 1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759 printf '%s\n' "$ac_try_echo"; } >&5 1760 (eval "$ac_link") 2>conftest.err 1761 ac_status=$? 1762 if test -s conftest.err; then 1763 grep -v '^ *+' conftest.err >conftest.er1 1764 cat conftest.er1 >&5 1765 mv -f conftest.er1 conftest.err 1766 fi 1767 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1768 test $ac_status = 0; } && { 1769 test -z "$ac_c_werror_flag" || 1770 test ! -s conftest.err 1771 } && test -s conftest$ac_exeext && { 1772 test "$cross_compiling" = yes || 1773 test -x conftest$ac_exeext 1774 } 1775 then : 1776 ac_retval=0 1777 else case e in #( 1778 e) printf '%s\n' "$as_me: failed program was:" >&5 1779 sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=1 ;; 1782 esac 1783 fi 1784 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1785 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1786 # interfere with the next link command; also delete a directory that is 1787 # left behind by Apple's compiler. We do this before executing the actions. 1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 as_fn_set_status $ac_retval 1791 1792 } # ac_fn_c_try_link 1793 1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1795 # ------------------------------------------------------- 1796 # Tests whether HEADER exists and can be compiled using the include files in 1797 # INCLUDES, setting the cache variable VAR accordingly. 1798 ac_fn_c_check_header_compile () 1799 { 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1802 printf %s "checking for $2... " >&6; } 1803 if eval test \${$3+y} 1804 then : 1805 printf %s "(cached) " >&6 1806 else case e in #( 1807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1808 /* end confdefs.h. */ 1809 $4 1810 #include <$2> 1811 _ACEOF 1812 if ac_fn_c_try_compile "$LINENO" 1813 then : 1814 eval "$3=yes" 1815 else case e in #( 1816 e) eval "$3=no" ;; 1817 esac 1818 fi 1819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1820 esac 1821 fi 1822 eval ac_res=\$$3 1823 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1824 printf '%s\n' "$ac_res" >&6; } 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 1827 } # ac_fn_c_check_header_compile 1828 1829 # ac_fn_c_check_func LINENO FUNC VAR 1830 # ---------------------------------- 1831 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1832 ac_fn_c_check_func () 1833 { 1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1835 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1836 printf %s "checking for $2... " >&6; } 1837 if eval test \${$3+y} 1838 then : 1839 printf %s "(cached) " >&6 1840 else case e in #( 1841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842 /* end confdefs.h. */ 1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1845 #define $2 innocuous_$2 1846 1847 /* System header to define __stub macros and hopefully few prototypes, 1848 which can conflict with char $2 (void); below. */ 1849 1850 #include <limits.h> 1851 #undef $2 1852 1853 /* Override any GCC internal prototype to avoid an error. 1854 Use char because int might match the return type of a GCC 1855 builtin and then its argument prototype would still apply. */ 1856 #ifdef __cplusplus 1857 extern "C" 1858 #endif 1859 char $2 (void); 1860 /* The GNU C library defines this for functions which it implements 1861 to always fail with ENOSYS. Some functions are actually named 1862 something starting with __ and the normal name is an alias. */ 1863 #if defined __stub_$2 || defined __stub___$2 1864 choke me 1865 #endif 1866 1867 int 1868 main (void) 1869 { 1870 return $2 (); 1871 ; 1872 return 0; 1873 } 1874 _ACEOF 1875 if ac_fn_c_try_link "$LINENO" 1876 then : 1877 eval "$3=yes" 1878 else case e in #( 1879 e) eval "$3=no" ;; 1880 esac 1881 fi 1882 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1883 conftest$ac_exeext conftest.$ac_ext ;; 1884 esac 1885 fi 1886 eval ac_res=\$$3 1887 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1888 printf '%s\n' "$ac_res" >&6; } 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1890 1891 } # ac_fn_c_check_func 1892 1893 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1894 # ------------------------------------------------------------------ 1895 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1896 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1897 ac_fn_check_decl () 1898 { 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 as_decl_name=`echo $2|sed 's/ *(.*//'` 1901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1902 printf %s "checking whether $as_decl_name is declared... " >&6; } 1903 if eval test \${$3+y} 1904 then : 1905 printf %s "(cached) " >&6 1906 else case e in #( 1907 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1908 eval ac_save_FLAGS=\$$6 1909 as_fn_append $6 " $5" 1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911 /* end confdefs.h. */ 1912 $4 1913 int 1914 main (void) 1915 { 1916 #ifndef $as_decl_name 1917 #ifdef __cplusplus 1918 (void) $as_decl_use; 1919 #else 1920 (void) $as_decl_name; 1921 #endif 1922 #endif 1923 1924 ; 1925 return 0; 1926 } 1927 _ACEOF 1928 if ac_fn_c_try_compile "$LINENO" 1929 then : 1930 eval "$3=yes" 1931 else case e in #( 1932 e) eval "$3=no" ;; 1933 esac 1934 fi 1935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1936 eval $6=\$ac_save_FLAGS 1937 ;; 1938 esac 1939 fi 1940 eval ac_res=\$$3 1941 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942 printf '%s\n' "$ac_res" >&6; } 1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1944 1945 } # ac_fn_check_decl 1946 ac_configure_args_raw= 1947 for ac_arg 1948 do 1949 case $ac_arg in 1950 *\'*) 1951 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1952 esac 1953 as_fn_append ac_configure_args_raw " '$ac_arg'" 1954 done 1955 1956 case $ac_configure_args_raw in 1957 *$as_nl*) 1958 ac_safe_unquote= ;; 1959 *) 1960 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1961 ac_unsafe_a="$ac_unsafe_z#~" 1962 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1963 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1964 esac 1965 1966 cat >config.log <<_ACEOF 1967 This file contains any messages produced by compilers while 1968 running configure, to aid debugging if configure makes a mistake. 1969 1970 It was created by libXi $as_me 1.8.4, which was 1971 generated by GNU Autoconf 2.73. Invocation command line was 1972 1973 $ $0$ac_configure_args_raw 1974 1975 _ACEOF 1976 exec 5>>config.log 1977 { 1978 cat <<_ASUNAME 1979 ## --------- ## 1980 ## Platform. ## 1981 ## --------- ## 1982 1983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1984 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1985 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1986 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1987 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1988 1989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1991 1992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1995 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1999 2000 _ASUNAME 2001 2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2003 for as_dir in $PATH 2004 do 2005 IFS=$as_save_IFS 2006 case $as_dir in #((( 2007 '') as_dir=./ ;; 2008 */) ;; 2009 *) as_dir=$as_dir/ ;; 2010 esac 2011 printf '%s\n' "PATH: $as_dir" 2012 done 2013 IFS=$as_save_IFS 2014 2015 } >&5 2016 2017 cat >&5 <<_ACEOF 2018 2019 2020 ## ----------- ## 2021 ## Core tests. ## 2022 ## ----------- ## 2023 2024 _ACEOF 2025 2026 2027 # Keep a trace of the command line. 2028 # Strip out --no-create and --no-recursion so they do not pile up. 2029 # Strip out --silent because we don't want to record it for future runs. 2030 # Also quote any args containing shell meta-characters. 2031 # Make two passes to allow for proper duplicate-argument suppression. 2032 ac_configure_args= 2033 ac_configure_args0= 2034 ac_configure_args1= 2035 ac_must_keep_next=false 2036 for ac_pass in 1 2 2037 do 2038 for ac_arg 2039 do 2040 case $ac_arg in 2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2043 | -silent | --silent | --silen | --sile | --sil) 2044 continue ;; 2045 *\'*) 2046 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2047 esac 2048 case $ac_pass in 2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2050 2) 2051 as_fn_append ac_configure_args1 " '$ac_arg'" 2052 if test $ac_must_keep_next = true; then 2053 ac_must_keep_next=false # Got value, back to normal. 2054 else 2055 case $ac_arg in 2056 *=* | --config-cache | -C | -disable-* | --disable-* \ 2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2059 | -with-* | --with-* | -without-* | --without-* | --x) 2060 case "$ac_configure_args0 " in 2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2062 esac 2063 ;; 2064 -* ) ac_must_keep_next=true ;; 2065 esac 2066 fi 2067 as_fn_append ac_configure_args " '$ac_arg'" 2068 ;; 2069 esac 2070 done 2071 done 2072 { ac_configure_args0=; unset ac_configure_args0;} 2073 { ac_configure_args1=; unset ac_configure_args1;} 2074 2075 # Dump the cache to stdout. It can be in a pipe (this is a requirement). 2076 ac_cache_dump () 2077 { 2078 # The following way of writing the cache mishandles newlines in values, 2079 # but we know of no workaround that is simple, portable, and efficient. 2080 # So, we kill variables containing newlines. 2081 # Ultrix sh set writes to stderr and can't be redirected directly, 2082 # and sets the high bit in the cache file unless we assign to the vars. 2083 ( 2084 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 2085 eval ac_val=\$$ac_var 2086 case $ac_val in #( 2087 *${as_nl}*) 2088 case $ac_var in #( 2089 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2090 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2091 esac 2092 case $ac_var in #( 2093 _ | IFS | as_nl) ;; #( 2094 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2095 *) { eval $ac_var=; unset $ac_var;} ;; 2096 esac ;; 2097 esac 2098 done 2099 2100 (set) 2>&1 | 2101 case $as_nl`(ac_space=' '; set) 2>&1` in #( 2102 *${as_nl}ac_space=\ *) 2103 # 'set' does not quote correctly, so add quotes: double-quote 2104 # substitution turns \\\\ into \\, and sed turns \\ into \. 2105 sed -n \ 2106 "s/'/'\\\\''/g; 2107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2108 ;; #( 2109 *) 2110 # 'set' quotes correctly as required by POSIX, so do not add quotes. 2111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2112 ;; 2113 esac | 2114 sort 2115 ) 2116 } 2117 2118 # Print debugging info to stdout. 2119 ac_dump_debugging_info () 2120 { 2121 echo 2122 2123 printf '%s\n' "## ---------------- ## 2124 ## Cache variables. ## 2125 ## ---------------- ##" 2126 echo 2127 ac_cache_dump 2128 echo 2129 2130 printf '%s\n' "## ----------------- ## 2131 ## Output variables. ## 2132 ## ----------------- ##" 2133 echo 2134 for ac_var in $ac_subst_vars 2135 do 2136 eval ac_val=\$$ac_var 2137 case $ac_val in 2138 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;; 2139 esac 2140 printf '%s\n' "$ac_var='$ac_val'" 2141 done | sort 2142 echo 2143 2144 if test -n "$ac_subst_files"; then 2145 printf '%s\n' "## ------------------- ## 2146 ## File substitutions. ## 2147 ## ------------------- ##" 2148 echo 2149 for ac_var in $ac_subst_files 2150 do 2151 eval ac_val=\$$ac_var 2152 case $ac_val in 2153 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;; 2154 esac 2155 printf '%s\n' "$ac_var='$ac_val'" 2156 done | sort 2157 echo 2158 fi 2159 2160 if test -s confdefs.h; then 2161 printf '%s\n' "## ----------- ## 2162 ## confdefs.h. ## 2163 ## ----------- ##" 2164 echo 2165 cat confdefs.h 2166 echo 2167 fi 2168 test "$ac_signal" != 0 && 2169 printf '%s\n' "$as_me: caught signal $ac_signal" 2170 printf '%s\n' "$as_me: exit $exit_status" 2171 } 2172 2173 # When interrupted or exit'd, cleanup temporary files, and complete 2174 # config.log. 2175 ac_exit_trap () 2176 { 2177 exit_status= 2178 # Sanitize IFS. 2179 IFS=" "" $as_nl" 2180 # Save into config.log some information that might help in debugging. 2181 ac_dump_debugging_info >&5 2182 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" && 2183 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2184 exit $exit_status 2185 } 2186 2187 trap 'ac_exit_trap $?' 0 2188 for ac_signal in 1 2 13 15; do 2189 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2190 done 2191 ac_signal=0 2192 2193 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2194 rm -f -r conftest* confdefs.h 2195 2196 printf '%s\n' "/* confdefs.h */" > confdefs.h 2197 2198 # Predefined preprocessor variables. 2199 2200 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2201 2202 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2203 2204 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2205 2206 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2207 2208 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2209 2210 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2211 2212 2213 # Let the site file select an alternate cache file if it wants to. 2214 # Prefer an explicitly selected file to automatically selected ones. 2215 if test -n "$CONFIG_SITE"; then 2216 ac_site_files="$CONFIG_SITE" 2217 elif test "x$prefix" != xNONE; then 2218 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2219 else 2220 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2221 fi 2222 2223 for ac_site_file in $ac_site_files 2224 do 2225 case $ac_site_file in #( 2226 */*) : 2227 ;; #( 2228 *) : 2229 ac_site_file=./$ac_site_file ;; 2230 esac 2231 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2233 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;} 2234 sed 's/^/| /' "$ac_site_file" >&5 2235 . "$ac_site_file" \ 2236 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2237 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2238 as_fn_error $? "failed to load site script $ac_site_file 2239 See 'config.log' for more details" "$LINENO" 5; } 2240 fi 2241 done 2242 2243 if test -r "$cache_file"; then 2244 # Some versions of bash will fail to source /dev/null (special files 2245 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2246 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2248 printf '%s\n' "$as_me: loading cache $cache_file" >&6;} 2249 case $cache_file in 2250 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2251 *) . "./$cache_file";; 2252 esac 2253 fi 2254 else 2255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2256 printf '%s\n' "$as_me: creating cache $cache_file" >&6;} 2257 >$cache_file 2258 fi 2259 2260 # Test code for whether the C compiler supports C23 (global declarations) 2261 ac_c_conftest_c23_globals=' 2262 /* Does the compiler advertise conformance to C17 or earlier? 2263 Although GCC 14 does not do that, even with -std=gnu23, 2264 it is close enough, and defines __STDC_VERSION == 202000L. */ 2265 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L 2266 # error "Compiler advertises conformance to C17 or earlier" 2267 #endif 2268 2269 // Check alignas. 2270 char alignas (double) c23_aligned_as_double; 2271 char alignas (0) c23_no_special_alignment; 2272 extern char c23_aligned_as_int; 2273 char alignas (0) alignas (int) c23_aligned_as_int; 2274 2275 // Check alignof. 2276 enum 2277 { 2278 c23_int_alignment = alignof (int), 2279 c23_int_array_alignment = alignof (int[100]), 2280 c23_char_alignment = alignof (char) 2281 }; 2282 static_assert (0 < -alignof (int), "alignof is signed"); 2283 2284 int function_with_unnamed_parameter (int) { return 0; } 2285 2286 void c23_noreturn (); 2287 2288 /* Test parsing of string and char UTF-8 literals (including hex escapes). 2289 The parens pacify GCC 15. */ 2290 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\''); 2291 2292 bool check_that_bool_works = true | false | !nullptr; 2293 #if !true 2294 # error "true does not work in #if" 2295 #endif 2296 #if false 2297 #elifdef __STDC_VERSION__ 2298 #else 2299 # error "#elifdef does not work" 2300 #endif 2301 2302 #ifndef __has_c_attribute 2303 # error "__has_c_attribute not defined" 2304 #endif 2305 2306 #ifndef __has_include 2307 # error "__has_include not defined" 2308 #endif 2309 2310 #define LPAREN() ( 2311 #define FORTY_TWO(x) 42 2312 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x)) 2313 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42); 2314 2315 static_assert (0b101010 == 42); 2316 static_assert (0B101010 == 42); 2317 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559); 2318 static_assert (0.500'\''000'\''000 == 0.5); 2319 2320 enum unsignedish : unsigned int { uione = 1 }; 2321 static_assert (0 < -uione); 2322 2323 #include <stddef.h> 2324 constexpr nullptr_t null_pointer = nullptr; 2325 2326 static typeof (1 + 1L) two () { return 2; } 2327 static long int three () { return 3; } 2328 ' 2329 2330 # Test code for whether the C compiler supports C23 (body of main). 2331 ac_c_conftest_c23_main=' 2332 { 2333 label_before_declaration: 2334 int arr[10] = {}; 2335 if (arr[0]) 2336 goto label_before_declaration; 2337 if (!arr[0]) 2338 goto label_at_end_of_block; 2339 label_at_end_of_block: 2340 } 2341 ok |= !null_pointer; 2342 ok |= two != three; 2343 ' 2344 2345 # Test code for whether the C compiler supports C23 (complete). 2346 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals} 2347 2348 int 2349 main (int, char **) 2350 { 2351 int ok = 0; 2352 ${ac_c_conftest_c23_main} 2353 return ok; 2354 } 2355 " 2356 2357 # Test code for whether the C compiler supports C89 (global declarations) 2358 ac_c_conftest_c89_globals=' 2359 /* Do not test the value of __STDC__, because some compilers define it to 0 2360 or do not define it, while otherwise adequately conforming. */ 2361 2362 #include <stddef.h> 2363 #include <stdarg.h> 2364 struct stat; 2365 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2366 struct buf { int x; }; 2367 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2368 static char *e (char **p, int i) 2369 { 2370 return p[i]; 2371 } 2372 static char *f (char * (*g) (char **, int), char **p, ...) 2373 { 2374 char *s; 2375 va_list v; 2376 va_start (v,p); 2377 s = g (p, va_arg (v,int)); 2378 va_end (v); 2379 return s; 2380 } 2381 2382 /* C89 style stringification. */ 2383 #define noexpand_stringify(a) #a 2384 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2385 2386 /* C89 style token pasting. Exercises some of the corner cases that 2387 e.g. old MSVC gets wrong, but not very hard. */ 2388 #define noexpand_concat(a,b) a##b 2389 #define expand_concat(a,b) noexpand_concat(a,b) 2390 extern int vA; 2391 extern int vbee; 2392 #define aye A 2393 #define bee B 2394 int *pvA = &expand_concat(v,aye); 2395 int *pvbee = &noexpand_concat(v,bee); 2396 2397 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2398 function prototypes and stuff, but not \xHH hex character constants. 2399 These do not provoke an error unfortunately, instead are silently treated 2400 as an "x". The following induces an error, until -std is added to get 2401 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2402 array size at least. It is necessary to write \x00 == 0 to get something 2403 that is true only with -std. */ 2404 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2405 2406 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2407 inside strings and character constants. */ 2408 #define FOO(x) '\''x'\'' 2409 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2410 2411 int test (int i, double x); 2412 struct s1 {int (*f) (int a);}; 2413 struct s2 {int (*f) (double a);}; 2414 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2415 int, int);' 2416 2417 # Test code for whether the C compiler supports C89 (body of main). 2418 ac_c_conftest_c89_main=' 2419 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2420 ' 2421 2422 # Test code for whether the C compiler supports C99 (global declarations) 2423 ac_c_conftest_c99_globals=' 2424 /* Does the compiler advertise C99 conformance? */ 2425 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2426 # error "Compiler does not advertise C99 conformance" 2427 #endif 2428 2429 // See if C++-style comments work. 2430 2431 #include <stdbool.h> 2432 extern int puts (const char *); 2433 extern int printf (const char *, ...); 2434 extern int dprintf (int, const char *, ...); 2435 extern void *malloc (size_t); 2436 extern void free (void *); 2437 2438 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2439 // dprintf is used instead of fprintf to avoid needing to declare 2440 // FILE and stderr, and "aND" is used instead of "and" to work around 2441 // GCC bug 40564 which is irrelevant here. 2442 #define debug(...) dprintf (2, __VA_ARGS__) 2443 #define showlist(...) puts (#__VA_ARGS__) 2444 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2445 static void 2446 test_varargs_macros (void) 2447 { 2448 int x = 1234; 2449 int y = 5678; 2450 debug ("Flag"); 2451 debug ("X = %d\n", x); 2452 showlist (The first, second, aND third items.); 2453 report (x>y, "x is %d but y is %d", x, y); 2454 } 2455 2456 // Check long long types. 2457 #define BIG64 18446744073709551615ull 2458 #define BIG32 4294967295ul 2459 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2460 #if !BIG_OK 2461 #error "your preprocessor is broken" 2462 #endif 2463 #if BIG_OK 2464 #else 2465 #error "your preprocessor is broken" 2466 #endif 2467 static long long int bignum = -9223372036854775807LL; 2468 static unsigned long long int ubignum = BIG64; 2469 2470 struct incomplete_array 2471 { 2472 int datasize; 2473 double data[]; 2474 }; 2475 2476 struct named_init { 2477 int number; 2478 const wchar_t *name; 2479 double average; 2480 }; 2481 2482 typedef const char *ccp; 2483 2484 static inline int 2485 test_restrict (ccp restrict text) 2486 { 2487 // Iterate through items via the restricted pointer. 2488 // Also check for declarations in for loops. 2489 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2490 continue; 2491 return 0; 2492 } 2493 2494 // Check varargs and va_copy. 2495 static bool 2496 test_varargs (const char *format, ...) 2497 { 2498 va_list args; 2499 va_start (args, format); 2500 va_list args_copy; 2501 va_copy (args_copy, args); 2502 2503 const char *str = ""; 2504 int number = 0; 2505 float fnumber = 0; 2506 2507 while (*format) 2508 { 2509 switch (*format++) 2510 { 2511 case '\''s'\'': // string 2512 str = va_arg (args_copy, const char *); 2513 break; 2514 case '\''d'\'': // int 2515 number = va_arg (args_copy, int); 2516 break; 2517 case '\''f'\'': // float 2518 fnumber = va_arg (args_copy, double); 2519 break; 2520 default: 2521 break; 2522 } 2523 } 2524 va_end (args_copy); 2525 va_end (args); 2526 2527 return *str && number && fnumber; 2528 } 2529 ' 2530 2531 # Test code for whether the C compiler supports C99 (body of main). 2532 ac_c_conftest_c99_main=' 2533 // Check bool. 2534 _Bool success = false; 2535 success |= (argc != 0); 2536 2537 // Check restrict. 2538 if (test_restrict ("String literal") == 0) 2539 success = true; 2540 const char *restrict newvar = "Another string"; 2541 2542 // Check varargs. 2543 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2544 test_varargs_macros (); 2545 2546 // Check flexible array members. 2547 static struct incomplete_array *volatile incomplete_array_pointer; 2548 struct incomplete_array *ia = incomplete_array_pointer; 2549 ia->datasize = 10; 2550 for (int i = 0; i < ia->datasize; ++i) 2551 ia->data[i] = i * 1.234; 2552 // Work around memory leak warnings. 2553 free (ia); 2554 2555 // Check named initializers. 2556 struct named_init ni = { 2557 .number = 34, 2558 .name = L"Test wide string", 2559 .average = 543.34343, 2560 }; 2561 2562 ni.number = 58; 2563 2564 // Do not test for VLAs, as some otherwise-conforming compilers lack them. 2565 // C code should instead use __STDC_NO_VLA__; see Autoconf manual. 2566 2567 // work around unused variable warnings 2568 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2569 || ni.number != 58); 2570 ' 2571 2572 # Test code for whether the C compiler supports C11 (global declarations) 2573 ac_c_conftest_c11_globals=' 2574 /* Does the compiler advertise C11 conformance? */ 2575 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2576 # error "Compiler does not advertise C11 conformance" 2577 #endif 2578 2579 // Check _Alignas. 2580 char _Alignas (double) aligned_as_double; 2581 char _Alignas (0) no_special_alignment; 2582 extern char aligned_as_int; 2583 char _Alignas (0) _Alignas (int) aligned_as_int; 2584 2585 // Check _Alignof. 2586 enum 2587 { 2588 int_alignment = _Alignof (int), 2589 int_array_alignment = _Alignof (int[100]), 2590 char_alignment = _Alignof (char) 2591 }; 2592 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2593 2594 // Check _Noreturn. 2595 int _Noreturn does_not_return (void) { for (;;) continue; } 2596 2597 // Check _Static_assert. 2598 struct test_static_assert 2599 { 2600 int x; 2601 _Static_assert (sizeof (int) <= sizeof (long int), 2602 "_Static_assert does not work in struct"); 2603 long int y; 2604 }; 2605 2606 // Check UTF-8 literals. 2607 #define u8 syntax error! 2608 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2609 2610 // Check duplicate typedefs. 2611 typedef long *long_ptr; 2612 typedef long int *long_ptr; 2613 typedef long_ptr long_ptr; 2614 2615 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2616 struct anonymous 2617 { 2618 union { 2619 struct { int i; int j; }; 2620 struct { int k; long int l; } w; 2621 }; 2622 int m; 2623 } v1; 2624 ' 2625 2626 # Test code for whether the C compiler supports C11 (body of main). 2627 ac_c_conftest_c11_main=' 2628 _Static_assert ((offsetof (struct anonymous, i) 2629 == offsetof (struct anonymous, w.k)), 2630 "Anonymous union alignment botch"); 2631 v1.i = 2; 2632 v1.w.k = 5; 2633 ok |= v1.i != 5; 2634 ' 2635 2636 # Test code for whether the C compiler supports C11 (complete). 2637 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2638 ${ac_c_conftest_c99_globals} 2639 ${ac_c_conftest_c11_globals} 2640 2641 int 2642 main (int argc, char **argv) 2643 { 2644 int ok = 0; 2645 ${ac_c_conftest_c89_main} 2646 ${ac_c_conftest_c99_main} 2647 ${ac_c_conftest_c11_main} 2648 return ok; 2649 } 2650 " 2651 2652 # Test code for whether the C compiler supports C99 (complete). 2653 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2654 ${ac_c_conftest_c99_globals} 2655 2656 int 2657 main (int argc, char **argv) 2658 { 2659 int ok = 0; 2660 ${ac_c_conftest_c89_main} 2661 ${ac_c_conftest_c99_main} 2662 return ok; 2663 } 2664 " 2665 2666 # Test code for whether the C compiler supports C89 (complete). 2667 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2668 2669 int 2670 main (int argc, char **argv) 2671 { 2672 int ok = 0; 2673 ${ac_c_conftest_c89_main} 2674 return ok; 2675 } 2676 " 2677 2678 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2679 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2680 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2681 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2682 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2683 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2684 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2685 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2686 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2687 2688 # Auxiliary files required by this configure script. 2689 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2690 2691 # Locations in which to look for auxiliary files. 2692 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2693 2694 # Search for a directory containing all of the required auxiliary files, 2695 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2696 # If we don't find one directory that contains all the files we need, 2697 # we report the set of missing files from the *first* directory in 2698 # $ac_aux_dir_candidates and give up. 2699 ac_missing_aux_files="" 2700 ac_first_candidate=: 2701 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2703 as_found=false 2704 for as_dir in $ac_aux_dir_candidates 2705 do 2706 IFS=$as_save_IFS 2707 case $as_dir in #((( 2708 '') as_dir=./ ;; 2709 */) ;; 2710 *) as_dir=$as_dir/ ;; 2711 esac 2712 as_found=: 2713 2714 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2715 ac_aux_dir_found=yes 2716 ac_install_sh= 2717 for ac_aux in $ac_aux_files 2718 do 2719 # As a special case, if "install-sh" is required, that requirement 2720 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2721 # and $ac_install_sh is set appropriately for whichever one is found. 2722 if test x"$ac_aux" = x"install-sh" 2723 then 2724 if test -f "${as_dir}install-sh"; then 2725 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2726 ac_install_sh="${as_dir}install-sh -c" 2727 elif test -f "${as_dir}install.sh"; then 2728 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2729 ac_install_sh="${as_dir}install.sh -c" 2730 elif test -f "${as_dir}shtool"; then 2731 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2732 ac_install_sh="${as_dir}shtool install -c" 2733 else 2734 ac_aux_dir_found=no 2735 if $ac_first_candidate; then 2736 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2737 else 2738 break 2739 fi 2740 fi 2741 else 2742 if test -f "${as_dir}${ac_aux}"; then 2743 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2744 else 2745 ac_aux_dir_found=no 2746 if $ac_first_candidate; then 2747 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2748 else 2749 break 2750 fi 2751 fi 2752 fi 2753 done 2754 if test "$ac_aux_dir_found" = yes; then 2755 ac_aux_dir="$as_dir" 2756 break 2757 fi 2758 ac_first_candidate=false 2759 2760 as_found=false 2761 done 2762 IFS=$as_save_IFS 2763 if $as_found 2764 then : 2765 2766 else case e in #( 2767 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2768 esac 2769 fi 2770 2771 2772 # These three variables are undocumented and unsupported, 2773 # and are intended to be withdrawn in a future Autoconf release. 2774 # They can cause serious problems if a builder's source tree is in a directory 2775 # whose full name contains unusual characters. 2776 if test -f "${ac_aux_dir}config.guess"; then 2777 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2778 fi 2779 if test -f "${ac_aux_dir}config.sub"; then 2780 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2781 fi 2782 if test -f "$ac_aux_dir/configure"; then 2783 ac_configure="$SHELL ${ac_aux_dir}configure" 2784 fi 2785 2786 # Check that the precious variables saved in the cache have kept the same 2787 # value. 2788 ac_cache_corrupted=false 2789 for ac_var in $ac_precious_vars; do 2790 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2791 eval ac_new_set=\$ac_env_${ac_var}_set 2792 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2793 eval ac_new_val=\$ac_env_${ac_var}_value 2794 case $ac_old_set,$ac_new_set in 2795 set,) 2796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2797 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2798 ac_cache_corrupted=: ;; 2799 ,set) 2800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2801 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2802 ac_cache_corrupted=: ;; 2803 ,);; 2804 *) 2805 if test "x$ac_old_val" != "x$ac_new_val"; then 2806 # differences in whitespace do not lead to failure. 2807 ac_old_val_w= 2808 for ac_val in x $ac_old_val; do 2809 ac_old_val_w="$ac_old_val_w $ac_val" 2810 done 2811 ac_new_val_w= 2812 for ac_val in x $ac_new_val; do 2813 ac_new_val_w="$ac_new_val_w $ac_val" 2814 done 2815 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2816 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2817 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2818 ac_cache_corrupted=: 2819 else 2820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2821 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2822 eval $ac_var=\$ac_old_val 2823 fi 2824 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2825 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;} 2826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2827 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;} 2828 fi;; 2829 esac 2830 # Pass precious variables to config.status. 2831 if test "$ac_new_set" = set; then 2832 case $ac_new_val in 2833 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2834 *) ac_arg=$ac_var=$ac_new_val ;; 2835 esac 2836 case " $ac_configure_args " in 2837 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2838 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2839 esac 2840 fi 2841 done 2842 if $ac_cache_corrupted; then 2843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2844 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 2845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2846 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;} 2847 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2848 and start over" "$LINENO" 5 2849 fi 2850 ## -------------------- ## 2851 ## Main body of script. ## 2852 ## -------------------- ## 2853 2854 2855 # Determine whether it's possible to make 'echo' print without a newline. 2856 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 2857 # for compatibility with existing Makefiles. 2858 ECHO_C= ECHO_N= ECHO_T= 2859 case `echo -n x` in #((((( 2860 -n*) 2861 case `echo 'xy\c'` in 2862 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 2863 xy) ECHO_C='\c';; 2864 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 2865 ECHO_T=' ';; 2866 esac;; 2867 *) 2868 ECHO_N='-n';; 2869 esac 2870 2871 ac_ext=c 2872 ac_cpp='$CPP $CPPFLAGS' 2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2876 2877 2878 2879 ac_config_headers="$ac_config_headers src/config.h" 2880 2881 2882 2883 # Initialize Automake 2884 am__api_version='1.19' 2885 2886 2887 2888 # Find a good install program. We prefer a C program (faster), 2889 # so one script is as good as another. But avoid the broken or 2890 # incompatible versions: 2891 # SysV /etc/install, /usr/sbin/install 2892 # SunOS /usr/etc/install 2893 # IRIX /sbin/install 2894 # AIX /bin/install 2895 # AmigaOS /C/install, which installs bootblocks on floppy discs 2896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2899 # OS/2's system install, which has a completely different semantic 2900 # ./install, which can be erroneously created by make from ./install.sh. 2901 # Reject install programs that cannot install multiple files. 2902 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2903 printf %s "checking for a BSD-compatible install... " >&6; } 2904 if test -z "$INSTALL"; then 2905 if test ${ac_cv_path_install+y} 2906 then : 2907 printf %s "(cached) " >&6 2908 else case e in #( 2909 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910 for as_dir in $PATH 2911 do 2912 IFS=$as_save_IFS 2913 case $as_dir in #((( 2914 '') as_dir=./ ;; 2915 */) ;; 2916 *) as_dir=$as_dir/ ;; 2917 esac 2918 # Account for fact that we put trailing slashes in our PATH walk. 2919 case $as_dir in #(( 2920 ./ | /[cC]/* | \ 2921 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2922 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2923 /usr/ucb/* ) ;; 2924 *) 2925 # OSF/1 and SCO ODT 3.0 have their own names for install. 2926 # Don't use installbsd from OSF/1 since it installs stuff as root 2927 # by default. 2928 for ac_prog in ginstall scoinst install; do 2929 for ac_exec_ext in '' $ac_executable_extensions; do 2930 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2931 if test $ac_prog = install && 2932 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2933 # AIX install. It has an incompatible calling convention. 2934 : 2935 elif test $ac_prog = install && 2936 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2937 # program-specific install script used by HP pwplus--don't use. 2938 : 2939 else 2940 rm -rf conftest.one conftest.two conftest.dir 2941 echo one > conftest.one 2942 echo two > conftest.two 2943 mkdir conftest.dir 2944 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2945 test -s conftest.one && test -s conftest.two && 2946 test -s conftest.dir/conftest.one && 2947 test -s conftest.dir/conftest.two 2948 then 2949 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2950 break 3 2951 fi 2952 fi 2953 fi 2954 done 2955 done 2956 ;; 2957 esac 2958 2959 done 2960 IFS=$as_save_IFS 2961 2962 rm -rf conftest.one conftest.two conftest.dir 2963 ;; 2964 esac 2965 fi 2966 if test ${ac_cv_path_install+y}; then 2967 INSTALL=$ac_cv_path_install 2968 else 2969 # As a last resort, use the slow shell script. Don't cache a 2970 # value for INSTALL within a source directory, because that will 2971 # break other packages using the cache if that directory is 2972 # removed, or if the value is a relative name. 2973 INSTALL=$ac_install_sh 2974 fi 2975 fi 2976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2977 printf '%s\n' "$INSTALL" >&6; } 2978 2979 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2980 # It thinks the first close brace ends the variable substitution. 2981 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2982 2983 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2984 2985 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2986 2987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2988 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2989 if test ${am_cv_sleep_fractional_seconds+y} 2990 then : 2991 printf %s "(cached) " >&6 2992 else case e in #( 2993 e) if sleep 0.001 2>/dev/null 2994 then : 2995 am_cv_sleep_fractional_seconds=yes 2996 else case e in #( 2997 e) am_cv_sleep_fractional_seconds=no ;; 2998 esac 2999 fi 3000 ;; 3001 esac 3002 fi 3003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 3004 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; } 3005 3006 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 3007 printf %s "checking filesystem timestamp resolution... " >&6; } 3008 if test ${am_cv_filesystem_timestamp_resolution+y} 3009 then : 3010 printf %s "(cached) " >&6 3011 else case e in #( 3012 e) # Default to the worst case. 3013 am_cv_filesystem_timestamp_resolution=2 3014 3015 # Only try to go finer than 1 sec if sleep can do it. 3016 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 3017 # - 1 sec is not much of a win compared to 2 sec, and 3018 # - it takes 2 seconds to perform the test whether 1 sec works. 3019 # 3020 # Instead, just use the default 2s on platforms that have 1s resolution, 3021 # accept the extra 1s delay when using $sleep in the Automake tests, in 3022 # exchange for not incurring the 2s delay for running the test for all 3023 # packages. 3024 # 3025 am_try_resolutions= 3026 if test "$am_cv_sleep_fractional_seconds" = yes; then 3027 # Even a millisecond often causes a bunch of false positives, 3028 # so just try a hundredth of a second. The time saved between .001 and 3029 # .01 is not terribly consequential. 3030 am_try_resolutions="0.01 0.1 $am_try_resolutions" 3031 fi 3032 3033 # In order to catch current-generation FAT out, we must *modify* files 3034 # that already exist; the *creation* timestamp is finer. Use names 3035 # that make ls -t sort them differently when they have equal 3036 # timestamps than when they have distinct timestamps, keeping 3037 # in mind that ls -t prints the *newest* file first. 3038 rm -f conftest.ts? 3039 : > conftest.ts1 3040 : > conftest.ts2 3041 : > conftest.ts3 3042 3043 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 3044 # clobber the current shell's arguments. (Outer-level square brackets 3045 # are removed by m4; they're present so that m4 does not expand 3046 # <dollar><star>; be careful, easy to get confused.) 3047 if ( 3048 set X `ls -t conftest.ts[12]` && 3049 { 3050 test "$*" != "X conftest.ts1 conftest.ts2" || 3051 test "$*" != "X conftest.ts2 conftest.ts1"; 3052 } 3053 ); then :; else 3054 # If neither matched, then we have a broken ls. This can happen 3055 # if, for instance, CONFIG_SHELL is bash and it inherits a 3056 # broken ls alias from the environment. This has actually 3057 # happened. Such a system could not be considered "sane". 3058 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 3059 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3060 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 3061 as_fn_error $? "ls -t produces unexpected output. 3062 Make sure there is not a broken ls alias in your environment. 3063 See 'config.log' for more details" "$LINENO" 5; } 3064 fi 3065 3066 for am_try_res in $am_try_resolutions; do 3067 # Any one fine-grained sleep might happen to cross the boundary 3068 # between two values of a coarser actual resolution, but if we do 3069 # two fine-grained sleeps in a row, at least one of them will fall 3070 # entirely within a coarse interval. 3071 echo alpha > conftest.ts1 3072 sleep $am_try_res 3073 echo beta > conftest.ts2 3074 sleep $am_try_res 3075 echo gamma > conftest.ts3 3076 3077 # We assume that 'ls -t' will make use of high-resolution 3078 # timestamps if the operating system supports them at all. 3079 if (set X `ls -t conftest.ts?` && 3080 test "$2" = conftest.ts3 && 3081 test "$3" = conftest.ts2 && 3082 test "$4" = conftest.ts1); then 3083 # 3084 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 3085 # because we don't need to test make. 3086 make_ok=true 3087 if test $am_try_res != 1; then 3088 # But if we've succeeded so far with a subsecond resolution, we 3089 # have one more thing to check: make. It can happen that 3090 # everything else supports the subsecond mtimes, but make doesn't; 3091 # notably on macOS, which ships make 3.81 from 2006 (the last one 3092 # released under GPLv2). https://bugs.gnu.org/68808 3093 # 3094 # We test $MAKE if it is defined in the environment, else "make". 3095 # It might get overridden later, but our hope is that in practice 3096 # it does not matter: it is the system "make" which is (by far) 3097 # the most likely to be broken, whereas if the user overrides it, 3098 # probably they did so with a better, or at least not worse, make. 3099 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 3100 # 3101 # Create a Makefile (real tab character here): 3102 rm -f conftest.mk 3103 echo 'conftest.ts1: conftest.ts2' >conftest.mk 3104 echo ' touch conftest.ts2' >>conftest.mk 3105 # 3106 # Now, running 3107 # touch conftest.ts1; touch conftest.ts2; make 3108 # should touch ts1 because ts2 is newer. This could happen by luck, 3109 # but most often, it will fail if make's support is insufficient. So 3110 # test for several consecutive successes. 3111 # 3112 # (We reuse conftest.ts[12] because we still want to modify existing 3113 # files, not create new ones, per above.) 3114 n=0 3115 make=${MAKE-make} 3116 until test $n -eq 3; do 3117 echo one > conftest.ts1 3118 sleep $am_try_res 3119 echo two > conftest.ts2 # ts2 should now be newer than ts1 3120 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 3121 make_ok=false 3122 break # out of $n loop 3123 fi 3124 n=`expr $n + 1` 3125 done 3126 fi 3127 # 3128 if $make_ok; then 3129 # Everything we know to check worked out, so call this resolution good. 3130 am_cv_filesystem_timestamp_resolution=$am_try_res 3131 break # out of $am_try_res loop 3132 fi 3133 # Otherwise, we'll go on to check the next resolution. 3134 fi 3135 done 3136 rm -f conftest.ts? 3137 # (end _am_filesystem_timestamp_resolution) 3138 ;; 3139 esac 3140 fi 3141 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 3142 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; } 3143 3144 # This check should not be cached, as it may vary across builds of 3145 # different projects. 3146 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3147 printf %s "checking whether build environment is sane... " >&6; } 3148 # Reject unsafe characters in $srcdir or the absolute working directory 3149 # name. Accept space and tab only in the latter. 3150 am_lf=' 3151 ' 3152 case `pwd` in 3153 *[\\\"\#\$\&\'\`$am_lf]*) 3154 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3155 printf '%s\n' "no" >&6; } 3156 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3157 esac 3158 case $srcdir in 3159 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3160 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3161 printf '%s\n' "no" >&6; } 3162 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3163 esac 3164 3165 # Do 'set' in a subshell so we don't clobber the current shell's 3166 # arguments. Must try -L first in case configure is actually a 3167 # symlink; some systems play weird games with the mod time of symlinks 3168 # (eg FreeBSD returns the mod time of the symlink's containing 3169 # directory). 3170 am_build_env_is_sane=no 3171 am_has_slept=no 3172 rm -f conftest.file 3173 for am_try in 1 2; do 3174 echo "timestamp, slept: $am_has_slept" > conftest.file 3175 if ( 3176 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3177 if test "$*" = "X"; then 3178 # -L didn't work. 3179 set X `ls -t "$srcdir/configure" conftest.file` 3180 fi 3181 test "$2" = conftest.file 3182 ); then 3183 am_build_env_is_sane=yes 3184 break 3185 fi 3186 # Just in case. 3187 sleep "$am_cv_filesystem_timestamp_resolution" 3188 am_has_slept=yes 3189 done 3190 3191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3192 printf '%s\n' "$am_build_env_is_sane" >&6; } 3193 if test "$am_build_env_is_sane" = no; then 3194 as_fn_error $? "newly created file is older than distributed files! 3195 Check your system clock" "$LINENO" 5 3196 fi 3197 3198 # If we didn't sleep, we still need to ensure time stamps of config.status and 3199 # generated files are strictly newer. 3200 am_sleep_pid= 3201 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3202 then : 3203 3204 else case e in #( 3205 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3206 am_sleep_pid=$! 3207 ;; 3208 esac 3209 fi 3210 3211 rm -f conftest.file 3212 3213 test "$program_prefix" != NONE && 3214 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3215 # Use a double $ so make ignores it. 3216 test "$program_suffix" != NONE && 3217 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3218 # Double any \ or $. 3219 # By default was 's,x,x', remove it if useless. 3220 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3221 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"` 3222 3223 3224 # Expand $ac_aux_dir to an absolute path. 3225 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3226 3227 3228 if test x"${MISSING+set}" != xset; then 3229 MISSING="\${SHELL} '$am_aux_dir/missing'" 3230 fi 3231 # Use eval to expand $SHELL 3232 if eval "$MISSING --is-lightweight"; then 3233 am_missing_run="$MISSING " 3234 else 3235 am_missing_run= 3236 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3237 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3238 fi 3239 3240 if test x"${install_sh+set}" != xset; then 3241 case $am_aux_dir in 3242 *\ * | *\ *) 3243 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3244 *) 3245 install_sh="\${SHELL} $am_aux_dir/install-sh" 3246 esac 3247 fi 3248 3249 # Installed binaries are usually stripped using 'strip' when the user 3250 # run "make install-strip". However 'strip' might not be the right 3251 # tool to use in cross-compilation environments, therefore Automake 3252 # will honor the 'STRIP' environment variable to overrule this program. 3253 if test "$cross_compiling" != no; then 3254 if test -n "$ac_tool_prefix"; then 3255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3256 set dummy ${ac_tool_prefix}strip; ac_word=$2 3257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3258 printf %s "checking for $ac_word... " >&6; } 3259 if test ${ac_cv_prog_STRIP+y} 3260 then : 3261 printf %s "(cached) " >&6 3262 else case e in #( 3263 e) if test -n "$STRIP"; then 3264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3265 else 3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3267 for as_dir in $PATH 3268 do 3269 IFS=$as_save_IFS 3270 case $as_dir in #((( 3271 '') as_dir=./ ;; 3272 */) ;; 3273 *) as_dir=$as_dir/ ;; 3274 esac 3275 for ac_exec_ext in '' $ac_executable_extensions; do 3276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3277 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3278 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3279 break 2 3280 fi 3281 done 3282 done 3283 IFS=$as_save_IFS 3284 3285 fi ;; 3286 esac 3287 fi 3288 STRIP=$ac_cv_prog_STRIP 3289 if test -n "$STRIP"; then 3290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3291 printf '%s\n' "$STRIP" >&6; } 3292 else 3293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3294 printf '%s\n' "no" >&6; } 3295 fi 3296 3297 3298 fi 3299 if test -z "$ac_cv_prog_STRIP"; then 3300 ac_ct_STRIP=$STRIP 3301 # Extract the first word of "strip", so it can be a program name with args. 3302 set dummy strip; ac_word=$2 3303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3304 printf %s "checking for $ac_word... " >&6; } 3305 if test ${ac_cv_prog_ac_ct_STRIP+y} 3306 then : 3307 printf %s "(cached) " >&6 3308 else case e in #( 3309 e) if test -n "$ac_ct_STRIP"; then 3310 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3311 else 3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3313 for as_dir in $PATH 3314 do 3315 IFS=$as_save_IFS 3316 case $as_dir in #((( 3317 '') as_dir=./ ;; 3318 */) ;; 3319 *) as_dir=$as_dir/ ;; 3320 esac 3321 for ac_exec_ext in '' $ac_executable_extensions; do 3322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3323 ac_cv_prog_ac_ct_STRIP="strip" 3324 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3325 break 2 3326 fi 3327 done 3328 done 3329 IFS=$as_save_IFS 3330 3331 fi ;; 3332 esac 3333 fi 3334 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3335 if test -n "$ac_ct_STRIP"; then 3336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3337 printf '%s\n' "$ac_ct_STRIP" >&6; } 3338 else 3339 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3340 printf '%s\n' "no" >&6; } 3341 fi 3342 3343 if test "x$ac_ct_STRIP" = x; then 3344 STRIP=":" 3345 else 3346 case $cross_compiling:$ac_tool_warned in 3347 yes:) 3348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3349 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3350 ac_tool_warned=yes ;; 3351 esac 3352 STRIP=$ac_ct_STRIP 3353 fi 3354 else 3355 STRIP="$ac_cv_prog_STRIP" 3356 fi 3357 3358 fi 3359 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3360 3361 3362 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3363 printf %s "checking for a race-free mkdir -p... " >&6; } 3364 if test -z "$MKDIR_P"; then 3365 if test ${ac_cv_path_mkdir+y} 3366 then : 3367 printf %s "(cached) " >&6 3368 else case e in #( 3369 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3370 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3371 do 3372 IFS=$as_save_IFS 3373 case $as_dir in #((( 3374 '') as_dir=./ ;; 3375 */) ;; 3376 *) as_dir=$as_dir/ ;; 3377 esac 3378 for ac_prog in mkdir gmkdir; do 3379 for ac_exec_ext in '' $ac_executable_extensions; do 3380 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3381 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3382 'mkdir ('*'coreutils) '* | \ 3383 *'BusyBox '* | \ 3384 'mkdir (fileutils) '4.1*) 3385 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3386 break 3;; 3387 esac 3388 done 3389 done 3390 done 3391 IFS=$as_save_IFS 3392 ;; 3393 esac 3394 fi 3395 3396 test -d ./--version && rmdir ./--version 3397 if test ${ac_cv_path_mkdir+y}; then 3398 MKDIR_P="$ac_cv_path_mkdir -p" 3399 else 3400 # As a last resort, use plain mkdir -p, 3401 # in the hope it doesn't have the bugs of ancient mkdir. 3402 MKDIR_P='mkdir -p' 3403 fi 3404 fi 3405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3406 printf '%s\n' "$MKDIR_P" >&6; } 3407 3408 for ac_prog in gawk mawk nawk awk 'busybox awk' 3409 do 3410 # Extract the first word of "$ac_prog", so it can be a program name with args. 3411 set dummy $ac_prog; ac_word=$2 3412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3413 printf %s "checking for $ac_word... " >&6; } 3414 if test ${ac_cv_prog_AWK+y} 3415 then : 3416 printf %s "(cached) " >&6 3417 else case e in #( 3418 e) if test -n "$AWK"; then 3419 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3420 else 3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3422 for as_dir in $PATH 3423 do 3424 IFS=$as_save_IFS 3425 case $as_dir in #((( 3426 '') as_dir=./ ;; 3427 */) ;; 3428 *) as_dir=$as_dir/ ;; 3429 esac 3430 for ac_exec_ext in '' $ac_executable_extensions; do 3431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3432 ac_cv_prog_AWK="$ac_prog" 3433 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3434 break 2 3435 fi 3436 done 3437 done 3438 IFS=$as_save_IFS 3439 3440 fi ;; 3441 esac 3442 fi 3443 AWK=$ac_cv_prog_AWK 3444 if test -n "$AWK"; then 3445 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3446 printf '%s\n' "$AWK" >&6; } 3447 else 3448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3449 printf '%s\n' "no" >&6; } 3450 fi 3451 3452 3453 test -n "$AWK" && break 3454 done 3455 3456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3457 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3458 set x ${MAKE-make} 3459 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3460 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3461 then : 3462 printf %s "(cached) " >&6 3463 else case e in #( 3464 e) cat >conftest.make <<\_ACEOF 3465 SHELL = /bin/sh 3466 all: 3467 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%' 3468 _ACEOF 3469 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3470 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3471 *@@@%%%=?*=@@@%%%*) 3472 eval ac_cv_prog_make_${ac_make}_set=yes;; 3473 *) 3474 eval ac_cv_prog_make_${ac_make}_set=no;; 3475 esac 3476 rm -f conftest.make ;; 3477 esac 3478 fi 3479 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3481 printf '%s\n' "yes" >&6; } 3482 SET_MAKE= 3483 else 3484 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3485 printf '%s\n' "no" >&6; } 3486 SET_MAKE="MAKE=${MAKE-make}" 3487 fi 3488 3489 rm -rf .tst 2>/dev/null 3490 mkdir .tst 2>/dev/null 3491 if test -d .tst; then 3492 am__leading_dot=. 3493 else 3494 am__leading_dot=_ 3495 fi 3496 rmdir .tst 2>/dev/null 3497 3498 AM_DEFAULT_VERBOSITY=1 3499 # Check whether --enable-silent-rules was given. 3500 if test ${enable_silent_rules+y} 3501 then : 3502 enableval=$enable_silent_rules; 3503 fi 3504 3505 am_make=${MAKE-make} 3506 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3507 printf %s "checking whether $am_make supports nested variables... " >&6; } 3508 if test ${am_cv_make_support_nested_variables+y} 3509 then : 3510 printf %s "(cached) " >&6 3511 else case e in #( 3512 e) if printf '%s\n' 'TRUE=$(BAR$(V)) 3513 BAR0=false 3514 BAR1=true 3515 V=1 3516 am__doit: 3517 @$(TRUE) 3518 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3519 am_cv_make_support_nested_variables=yes 3520 else 3521 am_cv_make_support_nested_variables=no 3522 fi ;; 3523 esac 3524 fi 3525 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3526 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; } 3527 AM_BACKSLASH='\' 3528 3529 am__rm_f_notfound= 3530 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3531 then : 3532 3533 else case e in #( 3534 e) am__rm_f_notfound='""' ;; 3535 esac 3536 fi 3537 3538 3539 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3540 printf %s "checking xargs -n works... " >&6; } 3541 if test ${am_cv_xargs_n_works+y} 3542 then : 3543 printf %s "(cached) " >&6 3544 else case e in #( 3545 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3546 3" 3547 then : 3548 am_cv_xargs_n_works=yes 3549 else case e in #( 3550 e) am_cv_xargs_n_works=no ;; 3551 esac 3552 fi ;; 3553 esac 3554 fi 3555 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3556 printf '%s\n' "$am_cv_xargs_n_works" >&6; } 3557 if test "$am_cv_xargs_n_works" = yes 3558 then : 3559 am__xargs_n='xargs -n' 3560 else case e in #( 3561 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3562 ;; 3563 esac 3564 fi 3565 3566 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3567 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3568 # is not polluted with repeated "-I." 3569 am__isrc=' -I$(srcdir)' 3570 # test to see if srcdir already configured 3571 if test -f $srcdir/config.status; then 3572 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3573 fi 3574 fi 3575 3576 # test whether we have cygpath 3577 if test -z "$CYGPATH_W"; then 3578 if (cygpath --version) >/dev/null 2>/dev/null; then 3579 CYGPATH_W='cygpath -w' 3580 else 3581 CYGPATH_W=echo 3582 fi 3583 fi 3584 3585 3586 # Define the identity of the package. 3587 PACKAGE='libXi' 3588 VERSION='1.8.4' 3589 3590 3591 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3592 3593 3594 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h 3595 3596 # Some tools Automake needs. 3597 3598 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3599 3600 3601 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3602 3603 3604 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3605 3606 3607 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3608 3609 3610 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3611 3612 # For better backward compatibility. To be removed once Automake 1.9.x 3613 # dies out for good. For more background, see: 3614 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3615 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3616 mkdir_p='$(MKDIR_P)' 3617 3618 # We need awk for the "check" target (and possibly the TAP driver). The 3619 # system "awk" is bad on some platforms. 3620 # Always define AMTAR for backward compatibility. It's still used 3621 # in the wild, let's not break things. 3622 AMTAR='$${TAR-tar}' 3623 3624 3625 # The dist rules treat anything $(am__tar) writes to standard error as 3626 # a failure (automake bug#19614). Set this to "yes" for archivers that 3627 # write there when all is well; cpio reports a block count. 3628 am__tar_ignore_stderr=no 3629 3630 # We'll loop over all known methods to create a tar archive until one works. 3631 _am_tools='gnutar plaintar pax cpio none' 3632 3633 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 3634 # There is notably a 21 bits limit for the UID and the GID. In fact, 3635 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3636 # and bug#13588). 3637 am_max_uid=2097151 # 2^21 - 1 3638 am_max_gid=$am_max_uid 3639 # The $UID and $GID variables are not portable, so we need to resort 3640 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3641 # below are definitely unexpected, so allow the users to see them 3642 # (that is, avoid stderr redirection). 3643 am_uid=`id -u || echo unknown` 3644 am_gid=`id -g || echo unknown` 3645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3646 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3647 if test x$am_uid = xunknown; then 3648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 3649 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 3650 elif test $am_uid -le $am_max_uid; then 3651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3652 printf '%s\n' "yes" >&6; } 3653 else 3654 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3655 printf '%s\n' "no" >&6; } 3656 _am_tools=none 3657 fi 3658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3659 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3660 if test x$gm_gid = xunknown; then 3661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 3662 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 3663 elif test $am_gid -le $am_max_gid; then 3664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3665 printf '%s\n' "yes" >&6; } 3666 else 3667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 3668 printf '%s\n' "no" >&6; } 3669 _am_tools=none 3670 fi 3671 3672 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3673 printf %s "checking how to create a ustar tar archive... " >&6; } 3674 3675 # Go ahead even if we have the value already cached. We do so because we 3676 # need to set the values for the 'am__tar' and 'am__untar' variables. 3677 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3678 3679 for _am_tool in $_am_tools; do 3680 am__tar_ignore_stderr=no 3681 case $_am_tool in 3682 gnutar) 3683 for _am_tar in tar gnutar gtar; do 3684 { echo "$as_me:$LINENO: $_am_tar --version | grep GNU >/dev/null" >&5 3685 ($_am_tar --version | grep GNU >/dev/null) >&5 2>&5 3686 ac_status=$? 3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3688 (exit $ac_status); } && break 3689 done 3690 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3691 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3692 am__untar="$_am_tar -xf -" 3693 ;; 3694 plaintar) 3695 # Must skip GNU tar: if it does not support --format= it doesn't create 3696 # ustar tarball either. 3697 (tar --version | grep GNU) >/dev/null 2>&1 && continue 3698 am__tar='tar chf - "$$tardir"' 3699 am__tar_='tar chf - "$tardir"' 3700 am__untar='tar xf -' 3701 ;; 3702 pax) 3703 am__tar='pax -L -x ustar -w "$$tardir"' 3704 am__tar_='pax -L -x ustar -w "$tardir"' 3705 am__untar='pax -r' 3706 ;; 3707 cpio) 3708 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3709 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3710 am__untar='cpio -i -H ustar -d' 3711 am__tar_ignore_stderr=yes 3712 ;; 3713 none) 3714 am__tar=false 3715 am__tar_=false 3716 am__untar=false 3717 ;; 3718 esac 3719 3720 # If the value was cached, stop now. We just wanted to have am__tar 3721 # and am__untar set. 3722 test -n "${am_cv_prog_tar_ustar}" && break 3723 3724 # tar/untar a dummy directory, and stop if the command works. 3725 rm -rf conftest.dir 3726 mkdir conftest.dir 3727 echo GrepMe > conftest.dir/file 3728 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3729 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3730 ac_status=$? 3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3732 (exit $ac_status); } 3733 rm -rf conftest.dir 3734 if test -s conftest.tar; then 3735 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3736 ($am__untar <conftest.tar) >&5 2>&5 3737 ac_status=$? 3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3739 (exit $ac_status); } 3740 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3741 (cat conftest.dir/file) >&5 2>&5 3742 ac_status=$? 3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3744 (exit $ac_status); } 3745 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3746 fi 3747 done 3748 rm -rf conftest.dir 3749 3750 if test ${am_cv_prog_tar_ustar+y} 3751 then : 3752 printf %s "(cached) " >&6 3753 else case e in #( 3754 e) am_cv_prog_tar_ustar=$_am_tool ;; 3755 esac 3756 fi 3757 3758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3759 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; } 3760 3761 3762 3763 3764 3765 3766 # Variables for tags utilities; see am/tags.am 3767 if test -z "$CTAGS"; then 3768 CTAGS=ctags 3769 fi 3770 3771 if test -z "$ETAGS"; then 3772 ETAGS=etags 3773 fi 3774 3775 if test -z "$CSCOPE"; then 3776 CSCOPE=cscope 3777 fi 3778 3779 3780 3781 3782 3783 3784 3785 3786 # Initialize libtool 3787 case `pwd` in 3788 *\ * | *\ *) 3789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3790 printf '%s\n' "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3791 esac 3792 3793 3794 3795 macro_version='2.6.2' 3796 macro_revision='2.6.2' 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 ltmain=$ac_aux_dir/ltmain.sh 3812 3813 3814 3815 # Make sure we can run config.sub. 3816 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3817 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3818 3819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3820 printf %s "checking build system type... " >&6; } 3821 if test ${ac_cv_build+y} 3822 then : 3823 printf %s "(cached) " >&6 3824 else case e in #( 3825 e) ac_build_alias=$build_alias 3826 test "x$ac_build_alias" = x && 3827 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3828 test "x$ac_build_alias" = x && 3829 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3830 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3831 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3832 ;; 3833 esac 3834 fi 3835 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3836 printf '%s\n' "$ac_cv_build" >&6; } 3837 case $ac_cv_build in 3838 *-*-*) ;; 3839 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3840 esac 3841 build=$ac_cv_build 3842 ac_save_IFS=$IFS; IFS='-' 3843 set x $ac_cv_build 3844 shift 3845 build_cpu=$1 3846 build_vendor=$2 3847 shift; shift 3848 # Remember, the first character of IFS is used to create $*, 3849 # except with old shells: 3850 build_os=$* 3851 IFS=$ac_save_IFS 3852 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac 3853 3854 3855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3856 printf %s "checking host system type... " >&6; } 3857 if test ${ac_cv_host+y} 3858 then : 3859 printf %s "(cached) " >&6 3860 else case e in #( 3861 e) if test "x$host_alias" = x; then 3862 ac_cv_host=$ac_cv_build 3863 else 3864 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3865 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3866 fi 3867 ;; 3868 esac 3869 fi 3870 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3871 printf '%s\n' "$ac_cv_host" >&6; } 3872 case $ac_cv_host in 3873 *-*-*) ;; 3874 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3875 esac 3876 host=$ac_cv_host 3877 ac_save_IFS=$IFS; IFS='-' 3878 set x $ac_cv_host 3879 shift 3880 host_cpu=$1 3881 host_vendor=$2 3882 shift; shift 3883 # Remember, the first character of IFS is used to create $*, 3884 # except with old shells: 3885 host_os=$* 3886 IFS=$ac_save_IFS 3887 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac 3888 3889 3890 # Backslashify metacharacters that are still active within 3891 # double-quoted strings. 3892 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3893 3894 # Same as above, but do not quote variable references. 3895 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3896 3897 # Sed substitution to delay expansion of an escaped shell variable in a 3898 # double_quote_subst'ed string. 3899 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3900 3901 # Sed substitution to delay expansion of an escaped single quote. 3902 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3903 3904 # Sed substitution to avoid accidental globbing in evaled expressions 3905 no_glob_subst='s/\*/\\\*/g' 3906 3907 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3908 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3909 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3910 3911 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3912 printf %s "checking how to print strings... " >&6; } 3913 # Test print first, because it will be a builtin if present. 3914 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3915 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3916 ECHO='print -r --' 3917 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3918 ECHO='printf %s\n' 3919 else 3920 # Use this function as a fallback that always works. 3921 func_fallback_echo () 3922 { 3923 eval 'cat <<_LTECHO_EOF 3924 $1 3925 _LTECHO_EOF' 3926 } 3927 ECHO='func_fallback_echo' 3928 fi 3929 3930 # func_echo_all arg... 3931 # Invoke $ECHO with all args, space-separated. 3932 func_echo_all () 3933 { 3934 $ECHO "" 3935 } 3936 3937 case $ECHO in 3938 printf*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3939 printf '%s\n' "printf" >&6; } ;; 3940 print*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3941 printf '%s\n' "print -r" >&6; } ;; 3942 *) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3943 printf '%s\n' "cat" >&6; } ;; 3944 esac 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 DEPDIR="${am__leading_dot}deps" 3972 3973 ac_config_commands="$ac_config_commands depfiles" 3974 3975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3976 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3977 cat > confinc.mk << 'END' 3978 am__doit: 3979 @echo this is the am__doit target >confinc.out 3980 .PHONY: am__doit 3981 END 3982 am__include="#" 3983 am__quote= 3984 # BSD make does it like this. 3985 echo '.include "confinc.mk" # ignored' > confmf.BSD 3986 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3987 echo 'include confinc.mk # ignored' > confmf.GNU 3988 _am_result=no 3989 for s in GNU BSD; do 3990 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3991 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3992 ac_status=$? 3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3994 (exit $ac_status); } 3995 case $?:`cat confinc.out 2>/dev/null` in #( 3996 '0:this is the am__doit target') : 3997 case $s in #( 3998 BSD) : 3999 am__include='.include' am__quote='"' ;; #( 4000 *) : 4001 am__include='include' am__quote='' ;; 4002 esac ;; #( 4003 *) : 4004 ;; 4005 esac 4006 if test "$am__include" != "#"; then 4007 _am_result="yes ($s style)" 4008 break 4009 fi 4010 done 4011 rm -f confinc.* confmf.* 4012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4013 printf '%s\n' "${_am_result}" >&6; } 4014 4015 # Check whether --enable-dependency-tracking was given. 4016 if test ${enable_dependency_tracking+y} 4017 then : 4018 enableval=$enable_dependency_tracking; 4019 fi 4020 4021 if test "x$enable_dependency_tracking" != xno; then 4022 am_depcomp="$ac_aux_dir/depcomp" 4023 AMDEPBACKSLASH='\' 4024 am__nodep='_no' 4025 fi 4026 if test "x$enable_dependency_tracking" != xno; then 4027 AMDEP_TRUE= 4028 AMDEP_FALSE='#' 4029 else 4030 AMDEP_TRUE='#' 4031 AMDEP_FALSE= 4032 fi 4033 4034 4035 ac_ext=c 4036 ac_cpp='$CPP $CPPFLAGS' 4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4040 if test -n "$ac_tool_prefix"; then 4041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4042 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4044 printf %s "checking for $ac_word... " >&6; } 4045 if test ${ac_cv_prog_CC+y} 4046 then : 4047 printf %s "(cached) " >&6 4048 else case e in #( 4049 e) if test -n "$CC"; then 4050 ac_cv_prog_CC="$CC" # Let the user override the test. 4051 else 4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4053 for as_dir in $PATH 4054 do 4055 IFS=$as_save_IFS 4056 case $as_dir in #((( 4057 '') as_dir=./ ;; 4058 */) ;; 4059 *) as_dir=$as_dir/ ;; 4060 esac 4061 for ac_exec_ext in '' $ac_executable_extensions; do 4062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4063 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4064 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4065 break 2 4066 fi 4067 done 4068 done 4069 IFS=$as_save_IFS 4070 4071 fi ;; 4072 esac 4073 fi 4074 CC=$ac_cv_prog_CC 4075 if test -n "$CC"; then 4076 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4077 printf '%s\n' "$CC" >&6; } 4078 else 4079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4080 printf '%s\n' "no" >&6; } 4081 fi 4082 4083 4084 fi 4085 if test -z "$ac_cv_prog_CC"; then 4086 ac_ct_CC=$CC 4087 # Extract the first word of "gcc", so it can be a program name with args. 4088 set dummy gcc; ac_word=$2 4089 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4090 printf %s "checking for $ac_word... " >&6; } 4091 if test ${ac_cv_prog_ac_ct_CC+y} 4092 then : 4093 printf %s "(cached) " >&6 4094 else case e in #( 4095 e) if test -n "$ac_ct_CC"; then 4096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4097 else 4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4099 for as_dir in $PATH 4100 do 4101 IFS=$as_save_IFS 4102 case $as_dir in #((( 4103 '') as_dir=./ ;; 4104 */) ;; 4105 *) as_dir=$as_dir/ ;; 4106 esac 4107 for ac_exec_ext in '' $ac_executable_extensions; do 4108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4109 ac_cv_prog_ac_ct_CC="gcc" 4110 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4111 break 2 4112 fi 4113 done 4114 done 4115 IFS=$as_save_IFS 4116 4117 fi ;; 4118 esac 4119 fi 4120 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4121 if test -n "$ac_ct_CC"; then 4122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4123 printf '%s\n' "$ac_ct_CC" >&6; } 4124 else 4125 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4126 printf '%s\n' "no" >&6; } 4127 fi 4128 4129 if test "x$ac_ct_CC" = x; then 4130 CC="" 4131 else 4132 case $cross_compiling:$ac_tool_warned in 4133 yes:) 4134 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4135 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4136 ac_tool_warned=yes ;; 4137 esac 4138 CC=$ac_ct_CC 4139 fi 4140 else 4141 CC="$ac_cv_prog_CC" 4142 fi 4143 4144 if test -z "$CC"; then 4145 if test -n "$ac_tool_prefix"; then 4146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4147 set dummy ${ac_tool_prefix}cc; ac_word=$2 4148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4149 printf %s "checking for $ac_word... " >&6; } 4150 if test ${ac_cv_prog_CC+y} 4151 then : 4152 printf %s "(cached) " >&6 4153 else case e in #( 4154 e) if test -n "$CC"; then 4155 ac_cv_prog_CC="$CC" # Let the user override the test. 4156 else 4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4158 for as_dir in $PATH 4159 do 4160 IFS=$as_save_IFS 4161 case $as_dir in #((( 4162 '') as_dir=./ ;; 4163 */) ;; 4164 *) as_dir=$as_dir/ ;; 4165 esac 4166 for ac_exec_ext in '' $ac_executable_extensions; do 4167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4168 ac_cv_prog_CC="${ac_tool_prefix}cc" 4169 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4170 break 2 4171 fi 4172 done 4173 done 4174 IFS=$as_save_IFS 4175 4176 fi ;; 4177 esac 4178 fi 4179 CC=$ac_cv_prog_CC 4180 if test -n "$CC"; then 4181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4182 printf '%s\n' "$CC" >&6; } 4183 else 4184 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4185 printf '%s\n' "no" >&6; } 4186 fi 4187 4188 4189 fi 4190 fi 4191 if test -z "$CC"; then 4192 # Extract the first word of "cc", so it can be a program name with args. 4193 set dummy cc; ac_word=$2 4194 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4195 printf %s "checking for $ac_word... " >&6; } 4196 if test ${ac_cv_prog_CC+y} 4197 then : 4198 printf %s "(cached) " >&6 4199 else case e in #( 4200 e) if test -n "$CC"; then 4201 ac_cv_prog_CC="$CC" # Let the user override the test. 4202 else 4203 ac_prog_rejected=no 4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4205 for as_dir in $PATH 4206 do 4207 IFS=$as_save_IFS 4208 case $as_dir in #((( 4209 '') as_dir=./ ;; 4210 */) ;; 4211 *) as_dir=$as_dir/ ;; 4212 esac 4213 for ac_exec_ext in '' $ac_executable_extensions; do 4214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4215 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4216 ac_prog_rejected=yes 4217 continue 4218 fi 4219 ac_cv_prog_CC="cc" 4220 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4221 break 2 4222 fi 4223 done 4224 done 4225 IFS=$as_save_IFS 4226 4227 if test $ac_prog_rejected = yes; then 4228 # We found a bogon in the path, so make sure we never use it. 4229 set dummy $ac_cv_prog_CC 4230 shift 4231 if test $# != 0; then 4232 # We chose a different compiler from the bogus one. 4233 # However, it has the same basename, so the bogon will be chosen 4234 # first if we set CC to just the basename; use the full file name. 4235 shift 4236 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4237 fi 4238 fi 4239 fi ;; 4240 esac 4241 fi 4242 CC=$ac_cv_prog_CC 4243 if test -n "$CC"; then 4244 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4245 printf '%s\n' "$CC" >&6; } 4246 else 4247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4248 printf '%s\n' "no" >&6; } 4249 fi 4250 4251 4252 fi 4253 if test -z "$CC"; then 4254 if test -n "$ac_tool_prefix"; then 4255 for ac_prog in cl.exe 4256 do 4257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4259 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4260 printf %s "checking for $ac_word... " >&6; } 4261 if test ${ac_cv_prog_CC+y} 4262 then : 4263 printf %s "(cached) " >&6 4264 else case e in #( 4265 e) if test -n "$CC"; then 4266 ac_cv_prog_CC="$CC" # Let the user override the test. 4267 else 4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4269 for as_dir in $PATH 4270 do 4271 IFS=$as_save_IFS 4272 case $as_dir in #((( 4273 '') as_dir=./ ;; 4274 */) ;; 4275 *) as_dir=$as_dir/ ;; 4276 esac 4277 for ac_exec_ext in '' $ac_executable_extensions; do 4278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4280 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4281 break 2 4282 fi 4283 done 4284 done 4285 IFS=$as_save_IFS 4286 4287 fi ;; 4288 esac 4289 fi 4290 CC=$ac_cv_prog_CC 4291 if test -n "$CC"; then 4292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4293 printf '%s\n' "$CC" >&6; } 4294 else 4295 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4296 printf '%s\n' "no" >&6; } 4297 fi 4298 4299 4300 test -n "$CC" && break 4301 done 4302 fi 4303 if test -z "$CC"; then 4304 ac_ct_CC=$CC 4305 for ac_prog in cl.exe 4306 do 4307 # Extract the first word of "$ac_prog", so it can be a program name with args. 4308 set dummy $ac_prog; ac_word=$2 4309 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4310 printf %s "checking for $ac_word... " >&6; } 4311 if test ${ac_cv_prog_ac_ct_CC+y} 4312 then : 4313 printf %s "(cached) " >&6 4314 else case e in #( 4315 e) if test -n "$ac_ct_CC"; then 4316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4317 else 4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4319 for as_dir in $PATH 4320 do 4321 IFS=$as_save_IFS 4322 case $as_dir in #((( 4323 '') as_dir=./ ;; 4324 */) ;; 4325 *) as_dir=$as_dir/ ;; 4326 esac 4327 for ac_exec_ext in '' $ac_executable_extensions; do 4328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4329 ac_cv_prog_ac_ct_CC="$ac_prog" 4330 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4331 break 2 4332 fi 4333 done 4334 done 4335 IFS=$as_save_IFS 4336 4337 fi ;; 4338 esac 4339 fi 4340 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4341 if test -n "$ac_ct_CC"; then 4342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4343 printf '%s\n' "$ac_ct_CC" >&6; } 4344 else 4345 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4346 printf '%s\n' "no" >&6; } 4347 fi 4348 4349 4350 test -n "$ac_ct_CC" && break 4351 done 4352 4353 if test "x$ac_ct_CC" = x; then 4354 CC="" 4355 else 4356 case $cross_compiling:$ac_tool_warned in 4357 yes:) 4358 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4359 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4360 ac_tool_warned=yes ;; 4361 esac 4362 CC=$ac_ct_CC 4363 fi 4364 fi 4365 4366 fi 4367 if test -z "$CC"; then 4368 if test -n "$ac_tool_prefix"; then 4369 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4370 set dummy ${ac_tool_prefix}clang; ac_word=$2 4371 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4372 printf %s "checking for $ac_word... " >&6; } 4373 if test ${ac_cv_prog_CC+y} 4374 then : 4375 printf %s "(cached) " >&6 4376 else case e in #( 4377 e) if test -n "$CC"; then 4378 ac_cv_prog_CC="$CC" # Let the user override the test. 4379 else 4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4381 for as_dir in $PATH 4382 do 4383 IFS=$as_save_IFS 4384 case $as_dir in #((( 4385 '') as_dir=./ ;; 4386 */) ;; 4387 *) as_dir=$as_dir/ ;; 4388 esac 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4391 ac_cv_prog_CC="${ac_tool_prefix}clang" 4392 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4393 break 2 4394 fi 4395 done 4396 done 4397 IFS=$as_save_IFS 4398 4399 fi ;; 4400 esac 4401 fi 4402 CC=$ac_cv_prog_CC 4403 if test -n "$CC"; then 4404 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4405 printf '%s\n' "$CC" >&6; } 4406 else 4407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4408 printf '%s\n' "no" >&6; } 4409 fi 4410 4411 4412 fi 4413 if test -z "$ac_cv_prog_CC"; then 4414 ac_ct_CC=$CC 4415 # Extract the first word of "clang", so it can be a program name with args. 4416 set dummy clang; ac_word=$2 4417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4418 printf %s "checking for $ac_word... " >&6; } 4419 if test ${ac_cv_prog_ac_ct_CC+y} 4420 then : 4421 printf %s "(cached) " >&6 4422 else case e in #( 4423 e) if test -n "$ac_ct_CC"; then 4424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4425 else 4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4427 for as_dir in $PATH 4428 do 4429 IFS=$as_save_IFS 4430 case $as_dir in #((( 4431 '') as_dir=./ ;; 4432 */) ;; 4433 *) as_dir=$as_dir/ ;; 4434 esac 4435 for ac_exec_ext in '' $ac_executable_extensions; do 4436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4437 ac_cv_prog_ac_ct_CC="clang" 4438 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4439 break 2 4440 fi 4441 done 4442 done 4443 IFS=$as_save_IFS 4444 4445 fi ;; 4446 esac 4447 fi 4448 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4449 if test -n "$ac_ct_CC"; then 4450 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4451 printf '%s\n' "$ac_ct_CC" >&6; } 4452 else 4453 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4454 printf '%s\n' "no" >&6; } 4455 fi 4456 4457 if test "x$ac_ct_CC" = x; then 4458 CC="" 4459 else 4460 case $cross_compiling:$ac_tool_warned in 4461 yes:) 4462 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4463 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4464 ac_tool_warned=yes ;; 4465 esac 4466 CC=$ac_ct_CC 4467 fi 4468 else 4469 CC="$ac_cv_prog_CC" 4470 fi 4471 4472 fi 4473 4474 4475 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4476 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4477 as_fn_error $? "no acceptable C compiler found in \$PATH 4478 See 'config.log' for more details" "$LINENO" 5; } 4479 4480 # Provide some information about the compiler. 4481 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4482 set X $ac_compile 4483 ac_compiler=$2 4484 for ac_option in --version -v -V -qversion -version; do 4485 { { ac_try="$ac_compiler $ac_option >&5" 4486 case "(($ac_try" in 4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4488 *) ac_try_echo=$ac_try;; 4489 esac 4490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4491 printf '%s\n' "$ac_try_echo"; } >&5 4492 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4493 ac_status=$? 4494 if test -s conftest.err; then 4495 sed '10a\ 4496 ... rest of stderr output deleted ... 4497 10q' conftest.err >conftest.er1 4498 cat conftest.er1 >&5 4499 fi 4500 rm -f conftest.er1 conftest.err 4501 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4502 test $ac_status = 0; } 4503 done 4504 4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4506 /* end confdefs.h. */ 4507 4508 int 4509 main (void) 4510 { 4511 4512 ; 4513 return 0; 4514 } 4515 _ACEOF 4516 ac_clean_files_save=$ac_clean_files 4517 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4518 # Try to create an executable without -o first, disregard a.out. 4519 # It will help us diagnose broken compilers, and finding out an intuition 4520 # of exeext. 4521 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4522 printf %s "checking whether the C compiler works... " >&6; } 4523 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4524 4525 # The possible output files: 4526 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4527 4528 ac_rmfiles= 4529 for ac_file in $ac_files 4530 do 4531 case $ac_file in 4532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4533 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4534 esac 4535 done 4536 rm -f $ac_rmfiles 4537 4538 if { { ac_try="$ac_link_default" 4539 case "(($ac_try" in 4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4541 *) ac_try_echo=$ac_try;; 4542 esac 4543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4544 printf '%s\n' "$ac_try_echo"; } >&5 4545 (eval "$ac_link_default") 2>&5 4546 ac_status=$? 4547 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4548 test $ac_status = 0; } 4549 then : 4550 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4551 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4552 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4553 # so that the user can short-circuit this test for compilers unknown to 4554 # Autoconf. 4555 for ac_file in $ac_files '' 4556 do 4557 test -f "$ac_file" || continue 4558 case $ac_file in 4559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4560 ;; 4561 [ab].out ) 4562 # We found the default executable, but exeext='' is most 4563 # certainly right. 4564 break;; 4565 *.* ) 4566 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4567 then :; else 4568 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4569 fi 4570 # We set ac_cv_exeext here because the later test for it is not 4571 # safe: cross compilers may not add the suffix if given an '-o' 4572 # argument, so we may need to know it at that point already. 4573 # Even if this section looks crufty: it has the advantage of 4574 # actually working. 4575 break;; 4576 * ) 4577 break;; 4578 esac 4579 done 4580 test "$ac_cv_exeext" = no && ac_cv_exeext= 4581 4582 else case e in #( 4583 e) ac_file='' ;; 4584 esac 4585 fi 4586 if test -z "$ac_file" 4587 then : 4588 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 4589 printf '%s\n' "no" >&6; } 4590 printf '%s\n' "$as_me: failed program was:" >&5 4591 sed 's/^/| /' conftest.$ac_ext >&5 4592 4593 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4594 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4595 as_fn_error 77 "C compiler cannot create executables 4596 See 'config.log' for more details" "$LINENO" 5; } 4597 else case e in #( 4598 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4599 printf '%s\n' "yes" >&6; } ;; 4600 esac 4601 fi 4602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4603 printf %s "checking for C compiler default output file name... " >&6; } 4604 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4605 printf '%s\n' "$ac_file" >&6; } 4606 ac_exeext=$ac_cv_exeext 4607 4608 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4609 ac_clean_files=$ac_clean_files_save 4610 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4611 printf %s "checking for suffix of executables... " >&6; } 4612 if { { ac_try="$ac_link" 4613 case "(($ac_try" in 4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4615 *) ac_try_echo=$ac_try;; 4616 esac 4617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4618 printf '%s\n' "$ac_try_echo"; } >&5 4619 (eval "$ac_link") 2>&5 4620 ac_status=$? 4621 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4622 test $ac_status = 0; } 4623 then : 4624 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4625 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4626 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4627 # 'rm'. 4628 for ac_file in conftest.exe conftest conftest.*; do 4629 test -f "$ac_file" || continue 4630 case $ac_file in 4631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4633 break;; 4634 * ) break;; 4635 esac 4636 done 4637 else case e in #( 4638 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4639 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4640 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4641 See 'config.log' for more details" "$LINENO" 5; } ;; 4642 esac 4643 fi 4644 rm -f conftest conftest$ac_cv_exeext 4645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4646 printf '%s\n' "$ac_cv_exeext" >&6; } 4647 4648 rm -f conftest.$ac_ext 4649 EXEEXT=$ac_cv_exeext 4650 ac_exeext=$EXEEXT 4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4652 /* end confdefs.h. */ 4653 #include <stdio.h> 4654 int 4655 main (void) 4656 { 4657 FILE *f = fopen ("conftest.out", "w"); 4658 if (!f) 4659 return 1; 4660 return ferror (f) || fclose (f) != 0; 4661 4662 ; 4663 return 0; 4664 } 4665 _ACEOF 4666 ac_clean_files="$ac_clean_files conftest.out" 4667 # Check that the compiler produces executables we can run. If not, either 4668 # the compiler is broken, or we cross compile. 4669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4670 printf %s "checking whether we are cross compiling... " >&6; } 4671 if test "$cross_compiling" != yes; then 4672 { { ac_try="$ac_link" 4673 case "(($ac_try" in 4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4675 *) ac_try_echo=$ac_try;; 4676 esac 4677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4678 printf '%s\n' "$ac_try_echo"; } >&5 4679 (eval "$ac_link") 2>&5 4680 ac_status=$? 4681 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4682 test $ac_status = 0; } 4683 if { ac_try='./conftest$ac_cv_exeext' 4684 { { case "(($ac_try" in 4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4686 *) ac_try_echo=$ac_try;; 4687 esac 4688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4689 printf '%s\n' "$ac_try_echo"; } >&5 4690 (eval "$ac_try") 2>&5 4691 ac_status=$? 4692 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4693 test $ac_status = 0; }; }; then 4694 cross_compiling=no 4695 else 4696 if test "$cross_compiling" = maybe; then 4697 cross_compiling=yes 4698 else 4699 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4700 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4701 as_fn_error 77 "cannot run C compiled programs. 4702 If you meant to cross compile, use '--host'. 4703 See 'config.log' for more details" "$LINENO" 5; } 4704 fi 4705 fi 4706 fi 4707 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4708 printf '%s\n' "$cross_compiling" >&6; } 4709 4710 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4711 conftest.o conftest.obj conftest.out 4712 ac_clean_files=$ac_clean_files_save 4713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4714 printf %s "checking for suffix of object files... " >&6; } 4715 if test ${ac_cv_objext+y} 4716 then : 4717 printf %s "(cached) " >&6 4718 else case e in #( 4719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720 /* end confdefs.h. */ 4721 4722 int 4723 main (void) 4724 { 4725 4726 ; 4727 return 0; 4728 } 4729 _ACEOF 4730 rm -f conftest.o conftest.obj 4731 if { { ac_try="$ac_compile" 4732 case "(($ac_try" in 4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4734 *) ac_try_echo=$ac_try;; 4735 esac 4736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4737 printf '%s\n' "$ac_try_echo"; } >&5 4738 (eval "$ac_compile") 2>&5 4739 ac_status=$? 4740 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4741 test $ac_status = 0; } 4742 then : 4743 for ac_file in conftest.o conftest.obj conftest.*; do 4744 test -f "$ac_file" || continue; 4745 case $ac_file in 4746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4748 break;; 4749 esac 4750 done 4751 else case e in #( 4752 e) printf '%s\n' "$as_me: failed program was:" >&5 4753 sed 's/^/| /' conftest.$ac_ext >&5 4754 4755 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4756 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 4757 as_fn_error $? "cannot compute suffix of object files: cannot compile 4758 See 'config.log' for more details" "$LINENO" 5; } ;; 4759 esac 4760 fi 4761 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4762 esac 4763 fi 4764 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4765 printf '%s\n' "$ac_cv_objext" >&6; } 4766 OBJEXT=$ac_cv_objext 4767 ac_objext=$OBJEXT 4768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4769 printf %s "checking whether the compiler supports GNU C... " >&6; } 4770 if test ${ac_cv_c_compiler_gnu+y} 4771 then : 4772 printf %s "(cached) " >&6 4773 else case e in #( 4774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4775 /* end confdefs.h. */ 4776 4777 int 4778 main (void) 4779 { 4780 #ifndef __GNUC__ 4781 choke me 4782 #endif 4783 4784 ; 4785 return 0; 4786 } 4787 _ACEOF 4788 if ac_fn_c_try_compile "$LINENO" 4789 then : 4790 ac_compiler_gnu=yes 4791 else case e in #( 4792 e) ac_compiler_gnu=no ;; 4793 esac 4794 fi 4795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4796 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4797 ;; 4798 esac 4799 fi 4800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4801 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; } 4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4803 4804 if test $ac_compiler_gnu = yes; then 4805 GCC=yes 4806 else 4807 GCC= 4808 fi 4809 ac_test_CFLAGS=${CFLAGS+y} 4810 ac_save_CFLAGS=$CFLAGS 4811 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4812 printf %s "checking whether $CC accepts -g... " >&6; } 4813 if test ${ac_cv_prog_cc_g+y} 4814 then : 4815 printf %s "(cached) " >&6 4816 else case e in #( 4817 e) ac_save_c_werror_flag=$ac_c_werror_flag 4818 ac_c_werror_flag=yes 4819 ac_cv_prog_cc_g=no 4820 CFLAGS="-g" 4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4822 /* end confdefs.h. */ 4823 4824 int 4825 main (void) 4826 { 4827 4828 ; 4829 return 0; 4830 } 4831 _ACEOF 4832 if ac_fn_c_try_compile "$LINENO" 4833 then : 4834 ac_cv_prog_cc_g=yes 4835 else case e in #( 4836 e) CFLAGS="" 4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4838 /* end confdefs.h. */ 4839 4840 int 4841 main (void) 4842 { 4843 4844 ; 4845 return 0; 4846 } 4847 _ACEOF 4848 if ac_fn_c_try_compile "$LINENO" 4849 then : 4850 4851 else case e in #( 4852 e) ac_c_werror_flag=$ac_save_c_werror_flag 4853 CFLAGS="-g" 4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4855 /* end confdefs.h. */ 4856 4857 int 4858 main (void) 4859 { 4860 4861 ; 4862 return 0; 4863 } 4864 _ACEOF 4865 if ac_fn_c_try_compile "$LINENO" 4866 then : 4867 ac_cv_prog_cc_g=yes 4868 fi 4869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4870 esac 4871 fi 4872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4873 esac 4874 fi 4875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4876 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4877 esac 4878 fi 4879 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4880 printf '%s\n' "$ac_cv_prog_cc_g" >&6; } 4881 if test $ac_test_CFLAGS; then 4882 CFLAGS=$ac_save_CFLAGS 4883 elif test $ac_cv_prog_cc_g = yes; then 4884 if test "$GCC" = yes; then 4885 CFLAGS="-g -O2" 4886 else 4887 CFLAGS="-g" 4888 fi 4889 else 4890 if test "$GCC" = yes; then 4891 CFLAGS="-O2" 4892 else 4893 CFLAGS= 4894 fi 4895 fi 4896 ac_prog_cc_stdc=no 4897 if test x$ac_prog_cc_stdc = xno 4898 then : 4899 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5 4900 printf %s "checking for $CC option to enable C23 features... " >&6; } 4901 if test ${ac_cv_prog_cc_c23+y} 4902 then : 4903 printf %s "(cached) " >&6 4904 else case e in #( 4905 e) ac_cv_prog_cc_c23=no 4906 ac_save_CC=$CC 4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4908 /* end confdefs.h. */ 4909 $ac_c_conftest_c23_program 4910 _ACEOF 4911 for ac_arg in '' -std=gnu23 4912 do 4913 CC="$ac_save_CC $ac_arg" 4914 if ac_fn_c_try_compile "$LINENO" 4915 then : 4916 ac_cv_prog_cc_c23=$ac_arg 4917 fi 4918 rm -f core conftest.err conftest.$ac_objext conftest.beam 4919 test "x$ac_cv_prog_cc_c23" != "xno" && break 4920 done 4921 rm -f conftest.$ac_ext 4922 CC=$ac_save_CC ;; 4923 esac 4924 fi 4925 4926 if test "x$ac_cv_prog_cc_c23" = xno 4927 then : 4928 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4929 printf '%s\n' "unsupported" >&6; } 4930 else case e in #( 4931 e) if test "x$ac_cv_prog_cc_c23" = x 4932 then : 4933 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4934 printf '%s\n' "none needed" >&6; } 4935 else case e in #( 4936 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5 4937 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; } 4938 CC="$CC $ac_cv_prog_cc_c23" ;; 4939 esac 4940 fi 4941 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23 4942 ac_prog_cc_stdc=c23 ;; 4943 esac 4944 fi 4945 fi 4946 if test x$ac_prog_cc_stdc = xno 4947 then : 4948 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4949 printf %s "checking for $CC option to enable C11 features... " >&6; } 4950 if test ${ac_cv_prog_cc_c11+y} 4951 then : 4952 printf %s "(cached) " >&6 4953 else case e in #( 4954 e) ac_cv_prog_cc_c11=no 4955 ac_save_CC=$CC 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957 /* end confdefs.h. */ 4958 $ac_c_conftest_c11_program 4959 _ACEOF 4960 for ac_arg in '' -std=gnu11 -std:c11 4961 do 4962 CC="$ac_save_CC $ac_arg" 4963 if ac_fn_c_try_compile "$LINENO" 4964 then : 4965 ac_cv_prog_cc_c11=$ac_arg 4966 fi 4967 rm -f core conftest.err conftest.$ac_objext conftest.beam 4968 test "x$ac_cv_prog_cc_c11" != "xno" && break 4969 done 4970 rm -f conftest.$ac_ext 4971 CC=$ac_save_CC ;; 4972 esac 4973 fi 4974 4975 if test "x$ac_cv_prog_cc_c11" = xno 4976 then : 4977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4978 printf '%s\n' "unsupported" >&6; } 4979 else case e in #( 4980 e) if test "x$ac_cv_prog_cc_c11" = x 4981 then : 4982 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4983 printf '%s\n' "none needed" >&6; } 4984 else case e in #( 4985 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4986 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; } 4987 CC="$CC $ac_cv_prog_cc_c11" ;; 4988 esac 4989 fi 4990 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4991 ac_prog_cc_stdc=c11 ;; 4992 esac 4993 fi 4994 fi 4995 if test x$ac_prog_cc_stdc = xno 4996 then : 4997 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4998 printf %s "checking for $CC option to enable C99 features... " >&6; } 4999 if test ${ac_cv_prog_cc_c99+y} 5000 then : 5001 printf %s "(cached) " >&6 5002 else case e in #( 5003 e) ac_cv_prog_cc_c99=no 5004 ac_save_CC=$CC 5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006 /* end confdefs.h. */ 5007 $ac_c_conftest_c99_program 5008 _ACEOF 5009 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5010 do 5011 CC="$ac_save_CC $ac_arg" 5012 if ac_fn_c_try_compile "$LINENO" 5013 then : 5014 ac_cv_prog_cc_c99=$ac_arg 5015 fi 5016 rm -f core conftest.err conftest.$ac_objext conftest.beam 5017 test "x$ac_cv_prog_cc_c99" != "xno" && break 5018 done 5019 rm -f conftest.$ac_ext 5020 CC=$ac_save_CC ;; 5021 esac 5022 fi 5023 5024 if test "x$ac_cv_prog_cc_c99" = xno 5025 then : 5026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5027 printf '%s\n' "unsupported" >&6; } 5028 else case e in #( 5029 e) if test "x$ac_cv_prog_cc_c99" = x 5030 then : 5031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5032 printf '%s\n' "none needed" >&6; } 5033 else case e in #( 5034 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5035 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; } 5036 CC="$CC $ac_cv_prog_cc_c99" ;; 5037 esac 5038 fi 5039 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5040 ac_prog_cc_stdc=c99 ;; 5041 esac 5042 fi 5043 fi 5044 if test x$ac_prog_cc_stdc = xno 5045 then : 5046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5047 printf %s "checking for $CC option to enable C89 features... " >&6; } 5048 if test ${ac_cv_prog_cc_c89+y} 5049 then : 5050 printf %s "(cached) " >&6 5051 else case e in #( 5052 e) ac_cv_prog_cc_c89=no 5053 ac_save_CC=$CC 5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5055 /* end confdefs.h. */ 5056 $ac_c_conftest_c89_program 5057 _ACEOF 5058 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5059 do 5060 CC="$ac_save_CC $ac_arg" 5061 if ac_fn_c_try_compile "$LINENO" 5062 then : 5063 ac_cv_prog_cc_c89=$ac_arg 5064 fi 5065 rm -f core conftest.err conftest.$ac_objext conftest.beam 5066 test "x$ac_cv_prog_cc_c89" != "xno" && break 5067 done 5068 rm -f conftest.$ac_ext 5069 CC=$ac_save_CC ;; 5070 esac 5071 fi 5072 5073 if test "x$ac_cv_prog_cc_c89" = xno 5074 then : 5075 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5076 printf '%s\n' "unsupported" >&6; } 5077 else case e in #( 5078 e) if test "x$ac_cv_prog_cc_c89" = x 5079 then : 5080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5081 printf '%s\n' "none needed" >&6; } 5082 else case e in #( 5083 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5084 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; } 5085 CC="$CC $ac_cv_prog_cc_c89" ;; 5086 esac 5087 fi 5088 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5089 ac_prog_cc_stdc=c89 ;; 5090 esac 5091 fi 5092 fi 5093 5094 ac_ext=c 5095 ac_cpp='$CPP $CPPFLAGS' 5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5099 5100 5101 ac_ext=c 5102 ac_cpp='$CPP $CPPFLAGS' 5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5106 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5107 printf %s "checking whether $CC understands -c and -o together... " >&6; } 5108 if test ${am_cv_prog_cc_c_o+y} 5109 then : 5110 printf %s "(cached) " >&6 5111 else case e in #( 5112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113 /* end confdefs.h. */ 5114 5115 int 5116 main (void) 5117 { 5118 5119 ; 5120 return 0; 5121 } 5122 _ACEOF 5123 # Make sure it works both with $CC and with simple cc. 5124 # Following AC_PROG_CC_C_O, we do the test twice because some 5125 # compilers refuse to overwrite an existing .o file with -o, 5126 # though they will create one. 5127 am_cv_prog_cc_c_o=yes 5128 for am_i in 1 2; do 5129 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5130 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5131 ac_status=$? 5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5133 (exit $ac_status); } \ 5134 && test -f conftest2.$ac_objext; then 5135 : OK 5136 else 5137 am_cv_prog_cc_c_o=no 5138 break 5139 fi 5140 done 5141 # aligned with autoconf, so not including core; see bug#72225. 5142 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 5143 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 5144 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 5145 unset am_i ;; 5146 esac 5147 fi 5148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5149 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; } 5150 if test "$am_cv_prog_cc_c_o" != yes; then 5151 # Losing compiler, so override with the script. 5152 # FIXME: It is wrong to rewrite CC. 5153 # But if we don't then we get into trouble of one sort or another. 5154 # A longer-term fix would be to have automake use am__CC in this case, 5155 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5156 CC="$am_aux_dir/compile $CC" 5157 fi 5158 ac_ext=c 5159 ac_cpp='$CPP $CPPFLAGS' 5160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5162 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5163 5164 5165 depcc="$CC" am_compiler_list= 5166 5167 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5168 printf %s "checking dependency style of $depcc... " >&6; } 5169 if test ${am_cv_CC_dependencies_compiler_type+y} 5170 then : 5171 printf %s "(cached) " >&6 5172 else case e in #( 5173 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5174 # We make a subdir and do the tests there. Otherwise we can end up 5175 # making bogus files that we don't know about and never remove. For 5176 # instance it was reported that on HP-UX the gcc test will end up 5177 # making a dummy file named 'D' -- because '-MD' means "put the output 5178 # in D". 5179 rm -rf conftest.dir 5180 mkdir conftest.dir 5181 # Copy depcomp to subdir because otherwise we won't find it if we're 5182 # using a relative directory. 5183 cp "$am_depcomp" conftest.dir 5184 cd conftest.dir 5185 # We will build objects and dependencies in a subdirectory because 5186 # it helps to detect inapplicable dependency modes. For instance 5187 # both Tru64's cc and ICC support -MD to output dependencies as a 5188 # side effect of compilation, but ICC will put the dependencies in 5189 # the current directory while Tru64 will put them in the object 5190 # directory. 5191 mkdir sub 5192 5193 am_cv_CC_dependencies_compiler_type=none 5194 if test "$am_compiler_list" = ""; then 5195 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5196 fi 5197 am__universal=false 5198 case " $depcc " in #( 5199 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5200 esac 5201 5202 for depmode in $am_compiler_list; do 5203 # Setup a source with many dependencies, because some compilers 5204 # like to wrap large dependency lists on column 80 (with \), and 5205 # we should not choose a depcomp mode which is confused by this. 5206 # 5207 # We need to recreate these files for each test, as the compiler may 5208 # overwrite some of them when testing with obscure command lines. 5209 # This happens at least with the AIX C compiler. 5210 : > sub/conftest.c 5211 for i in 1 2 3 4 5 6; do 5212 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5213 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5214 # Solaris 10 /bin/sh. 5215 echo '/* dummy */' > sub/conftst$i.h 5216 done 5217 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5218 5219 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5220 # mode. It turns out that the SunPro C++ compiler does not properly 5221 # handle '-M -o', and we need to detect this. Also, some Intel 5222 # versions had trouble with output in subdirs. 5223 am__obj=sub/conftest.${OBJEXT-o} 5224 am__minus_obj="-o $am__obj" 5225 case $depmode in 5226 gcc) 5227 # This depmode causes a compiler race in universal mode. 5228 test "$am__universal" = false || continue 5229 ;; 5230 nosideeffect) 5231 # After this tag, mechanisms are not by side-effect, so they'll 5232 # only be used when explicitly requested. 5233 if test "x$enable_dependency_tracking" = xyes; then 5234 continue 5235 else 5236 break 5237 fi 5238 ;; 5239 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5240 # This compiler won't grok '-c -o', but also, the minuso test has 5241 # not run yet. These depmodes are late enough in the game, and 5242 # so weak that their functioning should not be impacted. 5243 am__obj=conftest.${OBJEXT-o} 5244 am__minus_obj= 5245 ;; 5246 none) break ;; 5247 esac 5248 if depmode=$depmode \ 5249 source=sub/conftest.c object=$am__obj \ 5250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5251 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5252 >/dev/null 2>conftest.err && 5253 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5254 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5255 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5256 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5257 # icc doesn't choke on unknown options, it will just issue warnings 5258 # or remarks (even with -Werror). So we grep stderr for any message 5259 # that says an option was ignored or not supported. 5260 # When given -MP, icc 7.0 and 7.1 complain thus: 5261 # icc: Command line warning: ignoring option '-M'; no argument required 5262 # The diagnosis changed in icc 8.0: 5263 # icc: Command line remark: option '-MP' not supported 5264 if (grep 'ignoring option' conftest.err || 5265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5266 am_cv_CC_dependencies_compiler_type=$depmode 5267 break 5268 fi 5269 fi 5270 done 5271 5272 cd .. 5273 rm -rf conftest.dir 5274 else 5275 am_cv_CC_dependencies_compiler_type=none 5276 fi 5277 ;; 5278 esac 5279 fi 5280 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5281 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; } 5282 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5283 5284 if 5285 test "x$enable_dependency_tracking" != xno \ 5286 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5287 am__fastdepCC_TRUE= 5288 am__fastdepCC_FALSE='#' 5289 else 5290 am__fastdepCC_TRUE='#' 5291 am__fastdepCC_FALSE= 5292 fi 5293 5294 5295 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5296 printf %s "checking for a sed that does not truncate output... " >&6; } 5297 if test ${ac_cv_path_SED+y} 5298 then : 5299 printf %s "(cached) " >&6 5300 else case e in #( 5301 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5302 for ac_i in 1 2 3 4 5 6 7; do 5303 ac_script="$ac_script$as_nl$ac_script" 5304 done 5305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5306 { ac_script=; unset ac_script;} 5307 if test -z "$SED"; then 5308 ac_path_SED_found=false 5309 # Loop through the user's path and test for each of PROGNAME-LIST 5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5311 for as_dir in $PATH 5312 do 5313 IFS=$as_save_IFS 5314 case $as_dir in #((( 5315 '') as_dir=./ ;; 5316 */) ;; 5317 *) as_dir=$as_dir/ ;; 5318 esac 5319 for ac_prog in sed gsed 5320 do 5321 for ac_exec_ext in '' $ac_executable_extensions; do 5322 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5323 as_fn_executable_p "$ac_path_SED" || continue 5324 # Check for GNU ac_path_SED and select it if it is found. 5325 # Check for GNU $ac_path_SED 5326 case `"$ac_path_SED" --version 2>&1` in #( 5327 *GNU*) 5328 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5329 #( 5330 *) 5331 ac_count=0 5332 printf %s 0123456789 >"conftest.in" 5333 while : 5334 do 5335 cat "conftest.in" "conftest.in" >"conftest.tmp" 5336 mv "conftest.tmp" "conftest.in" 5337 cp "conftest.in" "conftest.nl" 5338 printf '%s\n' '' >> "conftest.nl" 5339 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5341 as_fn_arith $ac_count + 1 && ac_count=$as_val 5342 if test $ac_count -gt ${ac_path_SED_max-0}; then 5343 # Best one so far, save it but keep looking for a better one 5344 ac_cv_path_SED="$ac_path_SED" 5345 ac_path_SED_max=$ac_count 5346 fi 5347 # 10*(2^10) chars as input seems more than enough 5348 test $ac_count -gt 10 && break 5349 done 5350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5351 esac 5352 5353 $ac_path_SED_found && break 3 5354 done 5355 done 5356 done 5357 IFS=$as_save_IFS 5358 if test -z "$ac_cv_path_SED"; then 5359 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5360 fi 5361 else 5362 ac_cv_path_SED=$SED 5363 fi 5364 ;; 5365 esac 5366 fi 5367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5368 printf '%s\n' "$ac_cv_path_SED" >&6; } 5369 SED="$ac_cv_path_SED" 5370 rm -f conftest.sed 5371 5372 test -z "$SED" && SED=sed 5373 Xsed="$SED -e 1s/^X//" 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5386 printf %s "checking for grep that handles long lines and -e... " >&6; } 5387 if test ${ac_cv_path_GREP+y} 5388 then : 5389 printf %s "(cached) " >&6 5390 else case e in #( 5391 e) if test -z "$GREP"; then 5392 ac_path_GREP_found=false 5393 # Loop through the user's path and test for each of PROGNAME-LIST 5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5396 do 5397 IFS=$as_save_IFS 5398 case $as_dir in #((( 5399 '') as_dir=./ ;; 5400 */) ;; 5401 *) as_dir=$as_dir/ ;; 5402 esac 5403 for ac_prog in grep ggrep 5404 do 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5407 as_fn_executable_p "$ac_path_GREP" || continue 5408 # Check for GNU ac_path_GREP and select it if it is found. 5409 # Check for GNU $ac_path_GREP 5410 case `"$ac_path_GREP" --version 2>&1` in #( 5411 *GNU*) 5412 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5413 #( 5414 *) 5415 ac_count=0 5416 printf %s 0123456789 >"conftest.in" 5417 while : 5418 do 5419 cat "conftest.in" "conftest.in" >"conftest.tmp" 5420 mv "conftest.tmp" "conftest.in" 5421 cp "conftest.in" "conftest.nl" 5422 printf '%s\n' 'GREP' >> "conftest.nl" 5423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5425 as_fn_arith $ac_count + 1 && ac_count=$as_val 5426 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5427 # Best one so far, save it but keep looking for a better one 5428 ac_cv_path_GREP="$ac_path_GREP" 5429 ac_path_GREP_max=$ac_count 5430 fi 5431 # 10*(2^10) chars as input seems more than enough 5432 test $ac_count -gt 10 && break 5433 done 5434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5435 esac 5436 5437 $ac_path_GREP_found && break 3 5438 done 5439 done 5440 done 5441 IFS=$as_save_IFS 5442 if test -z "$ac_cv_path_GREP"; then 5443 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5444 fi 5445 else 5446 ac_cv_path_GREP=$GREP 5447 fi 5448 ;; 5449 esac 5450 fi 5451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5452 printf '%s\n' "$ac_cv_path_GREP" >&6; } 5453 GREP="$ac_cv_path_GREP" 5454 5455 5456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5457 printf %s "checking for egrep... " >&6; } 5458 if test ${ac_cv_path_EGREP+y} 5459 then : 5460 printf %s "(cached) " >&6 5461 else case e in #( 5462 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5463 then ac_cv_path_EGREP="$GREP -E" 5464 else 5465 if test -z "$EGREP"; then 5466 ac_path_EGREP_found=false 5467 # Loop through the user's path and test for each of PROGNAME-LIST 5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5470 do 5471 IFS=$as_save_IFS 5472 case $as_dir in #((( 5473 '') as_dir=./ ;; 5474 */) ;; 5475 *) as_dir=$as_dir/ ;; 5476 esac 5477 for ac_prog in egrep 5478 do 5479 for ac_exec_ext in '' $ac_executable_extensions; do 5480 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5481 as_fn_executable_p "$ac_path_EGREP" || continue 5482 # Check for GNU ac_path_EGREP and select it if it is found. 5483 # Check for GNU $ac_path_EGREP 5484 case `"$ac_path_EGREP" --version 2>&1` in #( 5485 *GNU*) 5486 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5487 #( 5488 *) 5489 ac_count=0 5490 printf %s 0123456789 >"conftest.in" 5491 while : 5492 do 5493 cat "conftest.in" "conftest.in" >"conftest.tmp" 5494 mv "conftest.tmp" "conftest.in" 5495 cp "conftest.in" "conftest.nl" 5496 printf '%s\n' 'EGREP' >> "conftest.nl" 5497 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5499 as_fn_arith $ac_count + 1 && ac_count=$as_val 5500 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5501 # Best one so far, save it but keep looking for a better one 5502 ac_cv_path_EGREP="$ac_path_EGREP" 5503 ac_path_EGREP_max=$ac_count 5504 fi 5505 # 10*(2^10) chars as input seems more than enough 5506 test $ac_count -gt 10 && break 5507 done 5508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5509 esac 5510 5511 $ac_path_EGREP_found && break 3 5512 done 5513 done 5514 done 5515 IFS=$as_save_IFS 5516 if test -z "$ac_cv_path_EGREP"; then 5517 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5518 fi 5519 else 5520 ac_cv_path_EGREP=$EGREP 5521 fi 5522 5523 fi ;; 5524 esac 5525 fi 5526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5527 printf '%s\n' "$ac_cv_path_EGREP" >&6; } 5528 EGREP="$ac_cv_path_EGREP" 5529 5530 EGREP_TRADITIONAL=$EGREP 5531 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5532 5533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5534 printf %s "checking for fgrep... " >&6; } 5535 if test ${ac_cv_path_FGREP+y} 5536 then : 5537 printf %s "(cached) " >&6 5538 else case e in #( 5539 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5540 then ac_cv_path_FGREP="$GREP -F" 5541 else 5542 if test -z "$FGREP"; then 5543 ac_path_FGREP_found=false 5544 # Loop through the user's path and test for each of PROGNAME-LIST 5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5547 do 5548 IFS=$as_save_IFS 5549 case $as_dir in #((( 5550 '') as_dir=./ ;; 5551 */) ;; 5552 *) as_dir=$as_dir/ ;; 5553 esac 5554 for ac_prog in fgrep 5555 do 5556 for ac_exec_ext in '' $ac_executable_extensions; do 5557 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5558 as_fn_executable_p "$ac_path_FGREP" || continue 5559 # Check for GNU ac_path_FGREP and select it if it is found. 5560 # Check for GNU $ac_path_FGREP 5561 case `"$ac_path_FGREP" --version 2>&1` in #( 5562 *GNU*) 5563 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5564 #( 5565 *) 5566 ac_count=0 5567 printf %s 0123456789 >"conftest.in" 5568 while : 5569 do 5570 cat "conftest.in" "conftest.in" >"conftest.tmp" 5571 mv "conftest.tmp" "conftest.in" 5572 cp "conftest.in" "conftest.nl" 5573 printf '%s\n' 'FGREP' >> "conftest.nl" 5574 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5576 as_fn_arith $ac_count + 1 && ac_count=$as_val 5577 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5578 # Best one so far, save it but keep looking for a better one 5579 ac_cv_path_FGREP="$ac_path_FGREP" 5580 ac_path_FGREP_max=$ac_count 5581 fi 5582 # 10*(2^10) chars as input seems more than enough 5583 test $ac_count -gt 10 && break 5584 done 5585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5586 esac 5587 5588 $ac_path_FGREP_found && break 3 5589 done 5590 done 5591 done 5592 IFS=$as_save_IFS 5593 if test -z "$ac_cv_path_FGREP"; then 5594 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5595 fi 5596 else 5597 ac_cv_path_FGREP=$FGREP 5598 fi 5599 5600 fi ;; 5601 esac 5602 fi 5603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5604 printf '%s\n' "$ac_cv_path_FGREP" >&6; } 5605 FGREP="$ac_cv_path_FGREP" 5606 5607 5608 test -z "$GREP" && GREP=grep 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 # Check whether --with-gnu-ld was given. 5629 if test ${with_gnu_ld+y} 5630 then : 5631 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5632 else case e in #( 5633 e) with_gnu_ld=no ;; 5634 esac 5635 fi 5636 5637 ac_prog=ld 5638 if test yes = "$GCC"; then 5639 # Check if gcc -print-prog-name=ld gives a path. 5640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5641 printf %s "checking for ld used by $CC... " >&6; } 5642 case $host in 5643 *-*-mingw* | *-*-windows*) 5644 # gcc leaves a trailing carriage return, which upsets mingw 5645 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5646 *) 5647 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5648 esac 5649 case $ac_prog in 5650 # Accept absolute paths. 5651 [\\/]* | ?:[\\/]*) 5652 re_direlt='/[^/][^/]*/\.\./' 5653 # Canonicalize the pathname of ld 5654 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5655 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5656 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5657 done 5658 test -z "$LD" && LD=$ac_prog 5659 ;; 5660 "") 5661 # If it fails, then pretend we aren't using GCC. 5662 ac_prog=ld 5663 ;; 5664 *) 5665 # If it is relative, then search for the first ld in PATH. 5666 with_gnu_ld=unknown 5667 ;; 5668 esac 5669 elif test yes = "$with_gnu_ld"; then 5670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5671 printf %s "checking for GNU ld... " >&6; } 5672 else 5673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5674 printf %s "checking for non-GNU ld... " >&6; } 5675 fi 5676 if test ${lt_cv_path_LD+y} 5677 then : 5678 printf %s "(cached) " >&6 5679 else case e in #( 5680 e) if test -z "$LD"; then 5681 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5682 for ac_dir in $PATH; do 5683 IFS=$lt_save_ifs 5684 test -z "$ac_dir" && ac_dir=. 5685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5686 lt_cv_path_LD=$ac_dir/$ac_prog 5687 # Check to see if the program is GNU ld. I'd rather use --version, 5688 # but apparently some variants of GNU ld only accept -v. 5689 # Break only if it was the GNU/non-GNU ld that we prefer. 5690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5691 *GNU* | *'with BFD'*) 5692 test no != "$with_gnu_ld" && break 5693 ;; 5694 *) 5695 test yes != "$with_gnu_ld" && break 5696 ;; 5697 esac 5698 fi 5699 done 5700 IFS=$lt_save_ifs 5701 else 5702 lt_cv_path_LD=$LD # Let the user override the test with a path. 5703 fi ;; 5704 esac 5705 fi 5706 5707 LD=$lt_cv_path_LD 5708 if test -n "$LD"; then 5709 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5710 printf '%s\n' "$LD" >&6; } 5711 else 5712 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5713 printf '%s\n' "no" >&6; } 5714 fi 5715 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5717 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5718 if test ${lt_cv_prog_gnu_ld+y} 5719 then : 5720 printf %s "(cached) " >&6 5721 else case e in #( 5722 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5723 case `$LD -v 2>&1 </dev/null` in 5724 *GNU* | *'with BFD'*) 5725 lt_cv_prog_gnu_ld=yes 5726 ;; 5727 *) 5728 lt_cv_prog_gnu_ld=no 5729 ;; 5730 esac ;; 5731 esac 5732 fi 5733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5734 printf '%s\n' "$lt_cv_prog_gnu_ld" >&6; } 5735 with_gnu_ld=$lt_cv_prog_gnu_ld 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5746 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5747 if test ${lt_cv_path_NM+y} 5748 then : 5749 printf %s "(cached) " >&6 5750 else case e in #( 5751 e) if test -n "$NM"; then 5752 # Let the user override the test. 5753 lt_cv_path_NM=$NM 5754 else 5755 lt_nm_to_check=${ac_tool_prefix}nm 5756 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5757 lt_nm_to_check="$lt_nm_to_check nm" 5758 fi 5759 for lt_tmp_nm in $lt_nm_to_check; do 5760 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5761 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5762 IFS=$lt_save_ifs 5763 test -z "$ac_dir" && ac_dir=. 5764 tmp_nm=$ac_dir/$lt_tmp_nm 5765 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5766 # Check to see if the nm accepts a BSD-compat flag. 5767 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5768 # nm: unknown option "B" ignored 5769 # Tru64's nm complains that /dev/null is an invalid object file 5770 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5771 case $build_os in 5772 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5773 *) lt_bad_file=/dev/null ;; 5774 esac 5775 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5776 *$lt_bad_file* | *'Invalid file or object type'*) 5777 lt_cv_path_NM="$tmp_nm -B" 5778 break 2 5779 ;; 5780 *) 5781 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5782 */dev/null*) 5783 lt_cv_path_NM="$tmp_nm -p" 5784 break 2 5785 ;; 5786 *) 5787 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5788 continue # so that we can try to find one that supports BSD flags 5789 ;; 5790 esac 5791 ;; 5792 esac 5793 fi 5794 done 5795 IFS=$lt_save_ifs 5796 done 5797 : ${lt_cv_path_NM=no} 5798 fi ;; 5799 esac 5800 fi 5801 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5802 printf '%s\n' "$lt_cv_path_NM" >&6; } 5803 if test no != "$lt_cv_path_NM"; then 5804 NM=$lt_cv_path_NM 5805 else 5806 # Didn't find any BSD compatible name lister, look for dumpbin. 5807 if test -n "$DUMPBIN"; then : 5808 # Let the user override the test. 5809 else 5810 if test -n "$ac_tool_prefix"; then 5811 for ac_prog in dumpbin "link -dump" 5812 do 5813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5815 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5816 printf %s "checking for $ac_word... " >&6; } 5817 if test ${ac_cv_prog_DUMPBIN+y} 5818 then : 5819 printf %s "(cached) " >&6 5820 else case e in #( 5821 e) if test -n "$DUMPBIN"; then 5822 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5823 else 5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5825 for as_dir in $PATH 5826 do 5827 IFS=$as_save_IFS 5828 case $as_dir in #((( 5829 '') as_dir=./ ;; 5830 */) ;; 5831 *) as_dir=$as_dir/ ;; 5832 esac 5833 for ac_exec_ext in '' $ac_executable_extensions; do 5834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5835 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5836 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5837 break 2 5838 fi 5839 done 5840 done 5841 IFS=$as_save_IFS 5842 5843 fi ;; 5844 esac 5845 fi 5846 DUMPBIN=$ac_cv_prog_DUMPBIN 5847 if test -n "$DUMPBIN"; then 5848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5849 printf '%s\n' "$DUMPBIN" >&6; } 5850 else 5851 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5852 printf '%s\n' "no" >&6; } 5853 fi 5854 5855 5856 test -n "$DUMPBIN" && break 5857 done 5858 fi 5859 if test -z "$DUMPBIN"; then 5860 ac_ct_DUMPBIN=$DUMPBIN 5861 for ac_prog in dumpbin "link -dump" 5862 do 5863 # Extract the first word of "$ac_prog", so it can be a program name with args. 5864 set dummy $ac_prog; ac_word=$2 5865 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5866 printf %s "checking for $ac_word... " >&6; } 5867 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5868 then : 5869 printf %s "(cached) " >&6 5870 else case e in #( 5871 e) if test -n "$ac_ct_DUMPBIN"; then 5872 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5873 else 5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5875 for as_dir in $PATH 5876 do 5877 IFS=$as_save_IFS 5878 case $as_dir in #((( 5879 '') as_dir=./ ;; 5880 */) ;; 5881 *) as_dir=$as_dir/ ;; 5882 esac 5883 for ac_exec_ext in '' $ac_executable_extensions; do 5884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5886 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5887 break 2 5888 fi 5889 done 5890 done 5891 IFS=$as_save_IFS 5892 5893 fi ;; 5894 esac 5895 fi 5896 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5897 if test -n "$ac_ct_DUMPBIN"; then 5898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5899 printf '%s\n' "$ac_ct_DUMPBIN" >&6; } 5900 else 5901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 5902 printf '%s\n' "no" >&6; } 5903 fi 5904 5905 5906 test -n "$ac_ct_DUMPBIN" && break 5907 done 5908 5909 if test "x$ac_ct_DUMPBIN" = x; then 5910 DUMPBIN=":" 5911 else 5912 case $cross_compiling:$ac_tool_warned in 5913 yes:) 5914 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5915 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5916 ac_tool_warned=yes ;; 5917 esac 5918 DUMPBIN=$ac_ct_DUMPBIN 5919 fi 5920 fi 5921 5922 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5923 *COFF*) 5924 DUMPBIN="$DUMPBIN -symbols -headers" 5925 ;; 5926 *) 5927 DUMPBIN=: 5928 ;; 5929 esac 5930 fi 5931 5932 if test : != "$DUMPBIN"; then 5933 NM=$DUMPBIN 5934 fi 5935 fi 5936 test -z "$NM" && NM=nm 5937 5938 5939 5940 5941 5942 5943 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5944 printf %s "checking the name lister ($NM) interface... " >&6; } 5945 if test ${lt_cv_nm_interface+y} 5946 then : 5947 printf %s "(cached) " >&6 5948 else case e in #( 5949 e) lt_cv_nm_interface="BSD nm" 5950 echo "int some_variable = 0;" > conftest.$ac_ext 5951 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5952 (eval "$ac_compile" 2>conftest.err) 5953 cat conftest.err >&5 5954 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5955 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5956 cat conftest.err >&5 5957 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5958 cat conftest.out >&5 5959 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5960 lt_cv_nm_interface="MS dumpbin" 5961 fi 5962 rm -f conftest* ;; 5963 esac 5964 fi 5965 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5966 printf '%s\n' "$lt_cv_nm_interface" >&6; } 5967 5968 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5969 printf %s "checking whether ln -s works... " >&6; } 5970 LN_S=$as_ln_s 5971 if test "$LN_S" = "ln -s"; then 5972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5973 printf '%s\n' "yes" >&6; } 5974 else 5975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5976 printf '%s\n' "no, using $LN_S" >&6; } 5977 fi 5978 5979 # find the maximum length of command line arguments 5980 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5981 printf %s "checking the maximum length of command line arguments... " >&6; } 5982 if test ${lt_cv_sys_max_cmd_len+y} 5983 then : 5984 printf %s "(cached) " >&6 5985 else case e in #( 5986 e) i=0 5987 teststring=ABCD 5988 5989 case $build_os in 5990 msdosdjgpp*) 5991 # On DJGPP, this test can blow up pretty badly due to problems in libc 5992 # (any single argument exceeding 2000 bytes causes a buffer overrun 5993 # during glob expansion). Even if it were fixed, the result of this 5994 # check would be larger than it should be. 5995 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5996 ;; 5997 5998 gnu* | ironclad*) 5999 # Under GNU Hurd and Ironclad, this test is not required because there 6000 # is no limit to the length of command line arguments. 6001 # Libtool will interpret -1 as no limit whatsoever 6002 lt_cv_sys_max_cmd_len=-1; 6003 ;; 6004 6005 cygwin* | mingw* | windows* | cegcc*) 6006 # On Win9x/ME, this test blows up -- it succeeds, but takes 6007 # about 5 minutes as the teststring grows exponentially. 6008 # Worse, since 9x/ME are not pre-emptively multitasking, 6009 # you end up with a "frozen" computer, even though with patience 6010 # the test eventually succeeds (with a max line length of 256k). 6011 # Instead, let's just punt: use the minimum linelength reported by 6012 # all of the supported platforms: 8192 (on NT/2K/XP). 6013 lt_cv_sys_max_cmd_len=8192; 6014 ;; 6015 6016 mint*) 6017 # On MiNT this can take a long time and run out of memory. 6018 lt_cv_sys_max_cmd_len=8192; 6019 ;; 6020 6021 amigaos*) 6022 # On AmigaOS with pdksh, this test takes hours, literally. 6023 # So we just punt and use a minimum line length of 8192. 6024 lt_cv_sys_max_cmd_len=8192; 6025 ;; 6026 6027 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6028 # This has been around since 386BSD, at least. Likely further. 6029 if test -x /sbin/sysctl; then 6030 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6031 elif test -x /usr/sbin/sysctl; then 6032 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6033 else 6034 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6035 fi 6036 # And add a safety zone 6037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6039 ;; 6040 6041 interix*) 6042 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6043 lt_cv_sys_max_cmd_len=196608 6044 ;; 6045 6046 os2*) 6047 # The test takes a long time on OS/2. 6048 lt_cv_sys_max_cmd_len=8192 6049 ;; 6050 6051 osf*) 6052 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6053 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6054 # nice to cause kernel panics so lets avoid the loop below. 6055 # First set a reasonable default. 6056 lt_cv_sys_max_cmd_len=16384 6057 # 6058 if test -x /sbin/sysconfig; then 6059 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6060 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6061 esac 6062 fi 6063 ;; 6064 sco3.2v5*) 6065 lt_cv_sys_max_cmd_len=102400 6066 ;; 6067 sysv5* | sco5v6* | sysv4.2uw2*) 6068 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6069 if test -n "$kargmax"; then 6070 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6071 else 6072 lt_cv_sys_max_cmd_len=32768 6073 fi 6074 ;; 6075 *) 6076 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6077 if test -n "$lt_cv_sys_max_cmd_len" && \ 6078 test undefined != "$lt_cv_sys_max_cmd_len"; then 6079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6081 else 6082 # Make teststring a little bigger before we do anything with it. 6083 # a 1K string should be a reasonable start. 6084 for i in 1 2 3 4 5 6 7 8; do 6085 teststring=$teststring$teststring 6086 done 6087 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6088 # If test is not a shell built-in, we'll probably end up computing a 6089 # maximum length that is only half of the actual maximum length, but 6090 # we can't tell. 6091 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6092 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6093 test 17 != "$i" # 1/2 MB should be enough 6094 do 6095 i=`expr $i + 1` 6096 teststring=$teststring$teststring 6097 done 6098 # Only check the string length outside the loop. 6099 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6100 teststring= 6101 # Add a significant safety factor because C++ compilers can tack on 6102 # massive amounts of additional arguments before passing them to the 6103 # linker. It appears as though 1/2 is a usable value. 6104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6105 fi 6106 ;; 6107 esac 6108 ;; 6109 esac 6110 fi 6111 6112 if test -n "$lt_cv_sys_max_cmd_len"; then 6113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6114 printf '%s\n' "$lt_cv_sys_max_cmd_len" >&6; } 6115 else 6116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none" >&5 6117 printf '%s\n' "none" >&6; } 6118 fi 6119 max_cmd_len=$lt_cv_sys_max_cmd_len 6120 6121 6122 6123 6124 6125 6126 : ${CP="cp -f"} 6127 : ${MV="mv -f"} 6128 : ${RM="rm -f"} 6129 6130 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6131 lt_unset=unset 6132 else 6133 lt_unset=false 6134 fi 6135 6136 6137 6138 6139 6140 # test EBCDIC or ASCII 6141 case `echo X|tr X '\101'` in 6142 A) # ASCII based system 6143 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6144 lt_SP2NL='tr \040 \012' 6145 lt_NL2SP='tr \015\012 \040\040' 6146 ;; 6147 *) # EBCDIC based system 6148 lt_SP2NL='tr \100 \n' 6149 lt_NL2SP='tr \r\n \100\100' 6150 ;; 6151 esac 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6162 printf %s "checking how to convert $build file names to $host format... " >&6; } 6163 if test ${lt_cv_to_host_file_cmd+y} 6164 then : 6165 printf %s "(cached) " >&6 6166 else case e in #( 6167 e) case $host in 6168 *-*-mingw* ) 6169 case $build in 6170 *-*-mingw* | *-*-windows* ) # actually msys 6171 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6172 ;; 6173 *-*-cygwin* ) 6174 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6175 ;; 6176 * ) # otherwise, assume *nix 6177 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6178 ;; 6179 esac 6180 ;; 6181 *-*-cygwin* ) 6182 case $build in 6183 *-*-mingw* | *-*-windows* ) # actually msys 6184 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6185 ;; 6186 *-*-cygwin* ) 6187 lt_cv_to_host_file_cmd=func_convert_file_noop 6188 ;; 6189 * ) # otherwise, assume *nix 6190 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6191 ;; 6192 esac 6193 ;; 6194 * ) # unhandled hosts (and "normal" native builds) 6195 lt_cv_to_host_file_cmd=func_convert_file_noop 6196 ;; 6197 esac 6198 ;; 6199 esac 6200 fi 6201 6202 to_host_file_cmd=$lt_cv_to_host_file_cmd 6203 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6204 printf '%s\n' "$lt_cv_to_host_file_cmd" >&6; } 6205 6206 6207 6208 6209 6210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6211 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6212 if test ${lt_cv_to_tool_file_cmd+y} 6213 then : 6214 printf %s "(cached) " >&6 6215 else case e in #( 6216 e) #assume ordinary cross tools, or native build. 6217 lt_cv_to_tool_file_cmd=func_convert_file_noop 6218 case $host in 6219 *-*-mingw* | *-*-windows* ) 6220 case $build in 6221 *-*-mingw* | *-*-windows* ) # actually msys 6222 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6223 ;; 6224 esac 6225 ;; 6226 esac 6227 ;; 6228 esac 6229 fi 6230 6231 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6233 printf '%s\n' "$lt_cv_to_tool_file_cmd" >&6; } 6234 6235 6236 6237 6238 6239 case $host in #( 6240 *-*-mingw* | *-*-windows* | *-*-cygwin*) : 6241 case $build in #( 6242 *-*-mingw* | *-*-windows* | *-*-cygwin*) : 6243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether cygpath is installed" >&5 6244 printf %s "checking whether cygpath is installed... " >&6; } 6245 if test ${lt_cv_cygpath_installed+y} 6246 then : 6247 printf %s "(cached) " >&6 6248 else case e in #( 6249 e) lt_cv_cygpath_installed=ignoring 6250 cygpath --help &> /dev/null 6251 _lt_result=$? 6252 if test 0 = "$_lt_result" 6253 then : 6254 lt_cv_cygpath_installed=yes 6255 else case e in #( 6256 e) lt_cv_cygpath_installed=no ;; 6257 esac 6258 fi 6259 ;; 6260 esac 6261 fi 6262 6263 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cygpath_installed" >&5 6264 printf '%s\n' "$lt_cv_cygpath_installed" >&6; } 6265 6266 6267 6268 6269 if test "xyes" != "x$lt_cv_cygpath_installed" 6270 then : 6271 6272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to use cmd with one slash or two slashes" >&5 6273 printf %s "checking whether to use cmd with one slash or two slashes... " >&6; } 6274 if test ${lt_cv_cmd_slashes+y} 6275 then : 6276 printf %s "(cached) " >&6 6277 else case e in #( 6278 e) 6279 _lt_result=`cmd /c echo one-slash works. Not checked //c echo two-slashes 2>/dev/null` 6280 if test 0 != $? 6281 then : 6282 as_fn_error $? "Do not know how to convert paths" "$LINENO" 5 6283 fi 6284 case $_lt_result in #( 6285 one-slash*) : 6286 lt_cv_cmd_slashes="one" ;; #( 6287 two-slashes*) : 6288 lt_cv_cmd_slashes="two" ;; #( 6289 *) : 6290 as_fn_error $? "Do not know how to convert paths" "$LINENO" 5 6291 ;; 6292 esac 6293 ;; 6294 esac 6295 fi 6296 6297 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cmd_slashes" >&5 6298 printf '%s\n' "$lt_cv_cmd_slashes" >&6; } 6299 6300 fi 6301 ;; #( 6302 *) : 6303 ;; 6304 esac 6305 6306 ;; #( 6307 *) : 6308 ;; 6309 esac 6310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6311 printf %s "checking for $LD option to reload object files... " >&6; } 6312 if test ${lt_cv_ld_reload_flag+y} 6313 then : 6314 printf %s "(cached) " >&6 6315 else case e in #( 6316 e) lt_cv_ld_reload_flag='-r' ;; 6317 esac 6318 fi 6319 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6320 printf '%s\n' "$lt_cv_ld_reload_flag" >&6; } 6321 reload_flag=$lt_cv_ld_reload_flag 6322 case $reload_flag in 6323 "" | " "*) ;; 6324 *) reload_flag=" $reload_flag" ;; 6325 esac 6326 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6327 case $host_os in 6328 cygwin* | mingw* | windows* | pw32* | cegcc*) 6329 if test yes != "$GCC"; then 6330 reload_cmds=false 6331 fi 6332 ;; 6333 darwin*) 6334 if test yes = "$GCC"; then 6335 reload_cmds='$LTCC $LTCFLAGS $stdlibflag $wl-r -o $output$reload_objs' 6336 else 6337 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6338 fi 6339 ;; 6340 esac 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 # Extract the first word of "file", so it can be a program name with args. 6351 set dummy file; ac_word=$2 6352 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6353 printf %s "checking for $ac_word... " >&6; } 6354 if test ${ac_cv_prog_FILECMD+y} 6355 then : 6356 printf %s "(cached) " >&6 6357 else case e in #( 6358 e) if test -n "$FILECMD"; then 6359 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6360 else 6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6362 for as_dir in $PATH 6363 do 6364 IFS=$as_save_IFS 6365 case $as_dir in #((( 6366 '') as_dir=./ ;; 6367 */) ;; 6368 *) as_dir=$as_dir/ ;; 6369 esac 6370 for ac_exec_ext in '' $ac_executable_extensions; do 6371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6372 ac_cv_prog_FILECMD="file" 6373 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6374 break 2 6375 fi 6376 done 6377 done 6378 IFS=$as_save_IFS 6379 6380 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 6381 fi ;; 6382 esac 6383 fi 6384 FILECMD=$ac_cv_prog_FILECMD 6385 if test -n "$FILECMD"; then 6386 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6387 printf '%s\n' "$FILECMD" >&6; } 6388 else 6389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 6390 printf '%s\n' "no" >&6; } 6391 fi 6392 6393 6394 6395 6396 6397 6398 6399 6400 if test -n "$ac_tool_prefix"; then 6401 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6402 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6403 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6404 printf %s "checking for $ac_word... " >&6; } 6405 if test ${ac_cv_prog_OBJDUMP+y} 6406 then : 6407 printf %s "(cached) " >&6 6408 else case e in #( 6409 e) if test -n "$OBJDUMP"; then 6410 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6411 else 6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6413 for as_dir in $PATH 6414 do 6415 IFS=$as_save_IFS 6416 case $as_dir in #((( 6417 '') as_dir=./ ;; 6418 */) ;; 6419 *) as_dir=$as_dir/ ;; 6420 esac 6421 for ac_exec_ext in '' $ac_executable_extensions; do 6422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6423 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6424 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6425 break 2 6426 fi 6427 done 6428 done 6429 IFS=$as_save_IFS 6430 6431 fi ;; 6432 esac 6433 fi 6434 OBJDUMP=$ac_cv_prog_OBJDUMP 6435 if test -n "$OBJDUMP"; then 6436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6437 printf '%s\n' "$OBJDUMP" >&6; } 6438 else 6439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 6440 printf '%s\n' "no" >&6; } 6441 fi 6442 6443 6444 fi 6445 if test -z "$ac_cv_prog_OBJDUMP"; then 6446 ac_ct_OBJDUMP=$OBJDUMP 6447 # Extract the first word of "objdump", so it can be a program name with args. 6448 set dummy objdump; ac_word=$2 6449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6450 printf %s "checking for $ac_word... " >&6; } 6451 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6452 then : 6453 printf %s "(cached) " >&6 6454 else case e in #( 6455 e) if test -n "$ac_ct_OBJDUMP"; then 6456 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6457 else 6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6459 for as_dir in $PATH 6460 do 6461 IFS=$as_save_IFS 6462 case $as_dir in #((( 6463 '') as_dir=./ ;; 6464 */) ;; 6465 *) as_dir=$as_dir/ ;; 6466 esac 6467 for ac_exec_ext in '' $ac_executable_extensions; do 6468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6469 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6470 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6471 break 2 6472 fi 6473 done 6474 done 6475 IFS=$as_save_IFS 6476 6477 fi ;; 6478 esac 6479 fi 6480 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6481 if test -n "$ac_ct_OBJDUMP"; then 6482 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6483 printf '%s\n' "$ac_ct_OBJDUMP" >&6; } 6484 else 6485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 6486 printf '%s\n' "no" >&6; } 6487 fi 6488 6489 if test "x$ac_ct_OBJDUMP" = x; then 6490 OBJDUMP="false" 6491 else 6492 case $cross_compiling:$ac_tool_warned in 6493 yes:) 6494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6495 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6496 ac_tool_warned=yes ;; 6497 esac 6498 OBJDUMP=$ac_ct_OBJDUMP 6499 fi 6500 else 6501 OBJDUMP="$ac_cv_prog_OBJDUMP" 6502 fi 6503 6504 test -z "$OBJDUMP" && OBJDUMP=objdump 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6515 printf %s "checking how to recognize dependent libraries... " >&6; } 6516 if test ${lt_cv_deplibs_check_method+y} 6517 then : 6518 printf %s "(cached) " >&6 6519 else case e in #( 6520 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6521 lt_cv_file_magic_test_file= 6522 lt_cv_deplibs_check_method='unknown' 6523 # Need to set the preceding variable on all platforms that support 6524 # interlibrary dependencies. 6525 # 'none' -- dependencies not supported. 6526 # 'unknown' -- same as none, but documents that we really don't know. 6527 # 'pass_all' -- all dependencies passed with no checks. 6528 # 'file_magic [[regex]]' -- check by looking for files in library path 6529 # that responds to the $file_magic_cmd with a given extended regex. 6530 # If you have 'file' or equivalent on your system and you're not sure 6531 # whether 'pass_all' will *always* work, you probably want this one. 6532 6533 case $host_os in 6534 aix[4-9]*) 6535 lt_cv_deplibs_check_method=pass_all 6536 ;; 6537 6538 beos*) 6539 lt_cv_deplibs_check_method=pass_all 6540 ;; 6541 6542 bsdi[45]*) 6543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6544 lt_cv_file_magic_cmd='$FILECMD -L' 6545 lt_cv_file_magic_test_file=/shlib/libc.so 6546 ;; 6547 6548 cygwin*) 6549 # func_win32_libid is a shell function defined in ltmain.sh 6550 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6551 lt_cv_file_magic_cmd='func_win32_libid' 6552 ;; 6553 6554 mingw* | windows* | pw32*) 6555 # Base MSYS/MinGW do not provide the 'file' command needed by 6556 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6557 # unless we find 'file', for example because we are cross-compiling. 6558 if ( file / ) >/dev/null 2>&1; then 6559 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6560 lt_cv_file_magic_cmd='func_win32_libid' 6561 else 6562 # Keep this pattern in sync with the one in func_win32_libid. 6563 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6564 lt_cv_file_magic_cmd='$OBJDUMP -f' 6565 fi 6566 ;; 6567 6568 cegcc*) 6569 # use the weaker test based on 'objdump'. See mingw*. 6570 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6571 lt_cv_file_magic_cmd='$OBJDUMP -f' 6572 ;; 6573 6574 darwin* | rhapsody*) 6575 lt_cv_deplibs_check_method=pass_all 6576 ;; 6577 6578 freebsd* | dragonfly* | midnightbsd*) 6579 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6580 case $host_cpu in 6581 i*86 ) 6582 # Not sure whether the presence of OpenBSD here was a mistake. 6583 # Let's accept both of them until this is cleared up. 6584 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6585 lt_cv_file_magic_cmd=$FILECMD 6586 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6587 ;; 6588 esac 6589 else 6590 lt_cv_deplibs_check_method=pass_all 6591 fi 6592 ;; 6593 6594 haiku*) 6595 lt_cv_deplibs_check_method=pass_all 6596 ;; 6597 6598 hpux10.20* | hpux11*) 6599 lt_cv_file_magic_cmd=$FILECMD 6600 case $host_cpu in 6601 ia64*) 6602 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6603 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6604 ;; 6605 hppa*64*) 6606 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6607 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6608 ;; 6609 *) 6610 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6611 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6612 ;; 6613 esac 6614 ;; 6615 6616 interix[3-9]*) 6617 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6619 ;; 6620 6621 irix5* | irix6* | nonstopux*) 6622 case $LD in 6623 *-32|*"-32 ") libmagic=32-bit;; 6624 *-n32|*"-n32 ") libmagic=N32;; 6625 *-64|*"-64 ") libmagic=64-bit;; 6626 *) libmagic=never-match;; 6627 esac 6628 lt_cv_deplibs_check_method=pass_all 6629 ;; 6630 6631 *-mlibc) 6632 lt_cv_deplibs_check_method=pass_all 6633 ;; 6634 6635 # This must be glibc/ELF. 6636 linux* | ironclad*-gnu | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6637 lt_cv_deplibs_check_method=pass_all 6638 ;; 6639 6640 netbsd* | netbsdelf*-gnu) 6641 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6643 else 6644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6645 fi 6646 ;; 6647 6648 newos6*) 6649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6650 lt_cv_file_magic_cmd=$FILECMD 6651 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6652 ;; 6653 6654 *nto* | *qnx*) 6655 lt_cv_deplibs_check_method=pass_all 6656 ;; 6657 6658 openbsd*) 6659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6661 else 6662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6663 fi 6664 ;; 6665 6666 osf3* | osf4* | osf5*) 6667 lt_cv_deplibs_check_method=pass_all 6668 ;; 6669 6670 rdos*) 6671 lt_cv_deplibs_check_method=pass_all 6672 ;; 6673 6674 serenity*) 6675 lt_cv_deplibs_check_method=pass_all 6676 ;; 6677 6678 solaris*) 6679 lt_cv_deplibs_check_method=pass_all 6680 ;; 6681 6682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6683 lt_cv_deplibs_check_method=pass_all 6684 ;; 6685 6686 sysv4 | sysv4.3*) 6687 case $host_vendor in 6688 motorola) 6689 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6690 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6691 ;; 6692 ncr) 6693 lt_cv_deplibs_check_method=pass_all 6694 ;; 6695 sequent) 6696 lt_cv_file_magic_cmd='/bin/file' 6697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6698 ;; 6699 sni) 6700 lt_cv_file_magic_cmd='/bin/file' 6701 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6702 lt_cv_file_magic_test_file=/lib/libc.so 6703 ;; 6704 siemens) 6705 lt_cv_deplibs_check_method=pass_all 6706 ;; 6707 pc) 6708 lt_cv_deplibs_check_method=pass_all 6709 ;; 6710 esac 6711 ;; 6712 6713 tpf*) 6714 lt_cv_deplibs_check_method=pass_all 6715 ;; 6716 os2*) 6717 lt_cv_deplibs_check_method=pass_all 6718 ;; 6719 esac 6720 ;; 6721 esac 6722 fi 6723 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6724 printf '%s\n' "$lt_cv_deplibs_check_method" >&6; } 6725 6726 file_magic_glob= 6727 want_nocaseglob=no 6728 if test "$build" = "$host"; then 6729 case $host_os in 6730 mingw* | windows* | pw32*) 6731 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6732 want_nocaseglob=yes 6733 else 6734 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6735 fi 6736 ;; 6737 esac 6738 fi 6739 6740 file_magic_cmd=$lt_cv_file_magic_cmd 6741 deplibs_check_method=$lt_cv_deplibs_check_method 6742 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 if test -n "$ac_tool_prefix"; then 6766 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6767 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6769 printf %s "checking for $ac_word... " >&6; } 6770 if test ${ac_cv_prog_DLLTOOL+y} 6771 then : 6772 printf %s "(cached) " >&6 6773 else case e in #( 6774 e) if test -n "$DLLTOOL"; then 6775 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6776 else 6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6778 for as_dir in $PATH 6779 do 6780 IFS=$as_save_IFS 6781 case $as_dir in #((( 6782 '') as_dir=./ ;; 6783 */) ;; 6784 *) as_dir=$as_dir/ ;; 6785 esac 6786 for ac_exec_ext in '' $ac_executable_extensions; do 6787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6788 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6789 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6790 break 2 6791 fi 6792 done 6793 done 6794 IFS=$as_save_IFS 6795 6796 fi ;; 6797 esac 6798 fi 6799 DLLTOOL=$ac_cv_prog_DLLTOOL 6800 if test -n "$DLLTOOL"; then 6801 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6802 printf '%s\n' "$DLLTOOL" >&6; } 6803 else 6804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 6805 printf '%s\n' "no" >&6; } 6806 fi 6807 6808 6809 fi 6810 if test -z "$ac_cv_prog_DLLTOOL"; then 6811 ac_ct_DLLTOOL=$DLLTOOL 6812 # Extract the first word of "dlltool", so it can be a program name with args. 6813 set dummy dlltool; ac_word=$2 6814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6815 printf %s "checking for $ac_word... " >&6; } 6816 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6817 then : 6818 printf %s "(cached) " >&6 6819 else case e in #( 6820 e) if test -n "$ac_ct_DLLTOOL"; then 6821 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6822 else 6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6824 for as_dir in $PATH 6825 do 6826 IFS=$as_save_IFS 6827 case $as_dir in #((( 6828 '') as_dir=./ ;; 6829 */) ;; 6830 *) as_dir=$as_dir/ ;; 6831 esac 6832 for ac_exec_ext in '' $ac_executable_extensions; do 6833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6834 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6835 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6836 break 2 6837 fi 6838 done 6839 done 6840 IFS=$as_save_IFS 6841 6842 fi ;; 6843 esac 6844 fi 6845 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6846 if test -n "$ac_ct_DLLTOOL"; then 6847 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6848 printf '%s\n' "$ac_ct_DLLTOOL" >&6; } 6849 else 6850 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 6851 printf '%s\n' "no" >&6; } 6852 fi 6853 6854 if test "x$ac_ct_DLLTOOL" = x; then 6855 DLLTOOL="false" 6856 else 6857 case $cross_compiling:$ac_tool_warned in 6858 yes:) 6859 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6860 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6861 ac_tool_warned=yes ;; 6862 esac 6863 DLLTOOL=$ac_ct_DLLTOOL 6864 fi 6865 else 6866 DLLTOOL="$ac_cv_prog_DLLTOOL" 6867 fi 6868 6869 test -z "$DLLTOOL" && DLLTOOL=dlltool 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6881 printf %s "checking how to associate runtime and link libraries... " >&6; } 6882 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6883 then : 6884 printf %s "(cached) " >&6 6885 else case e in #( 6886 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6887 6888 case $host_os in 6889 cygwin* | mingw* | windows* | pw32* | cegcc*) 6890 # two different shell functions defined in ltmain.sh; 6891 # decide which one to use based on capabilities of $DLLTOOL 6892 case `$DLLTOOL --help 2>&1` in 6893 *--identify-strict*) 6894 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6895 ;; 6896 *) 6897 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6898 ;; 6899 esac 6900 ;; 6901 *) 6902 # fallback: assume linklib IS sharedlib 6903 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6904 ;; 6905 esac 6906 ;; 6907 esac 6908 fi 6909 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6910 printf '%s\n' "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6911 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6912 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6913 6914 6915 6916 6917 6918 6919 6920 6921 if test -n "$ac_tool_prefix"; then 6922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6925 printf %s "checking for $ac_word... " >&6; } 6926 if test ${ac_cv_prog_RANLIB+y} 6927 then : 6928 printf %s "(cached) " >&6 6929 else case e in #( 6930 e) if test -n "$RANLIB"; then 6931 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6932 else 6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6934 for as_dir in $PATH 6935 do 6936 IFS=$as_save_IFS 6937 case $as_dir in #((( 6938 '') as_dir=./ ;; 6939 */) ;; 6940 *) as_dir=$as_dir/ ;; 6941 esac 6942 for ac_exec_ext in '' $ac_executable_extensions; do 6943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6944 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6945 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6946 break 2 6947 fi 6948 done 6949 done 6950 IFS=$as_save_IFS 6951 6952 fi ;; 6953 esac 6954 fi 6955 RANLIB=$ac_cv_prog_RANLIB 6956 if test -n "$RANLIB"; then 6957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6958 printf '%s\n' "$RANLIB" >&6; } 6959 else 6960 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 6961 printf '%s\n' "no" >&6; } 6962 fi 6963 6964 6965 fi 6966 if test -z "$ac_cv_prog_RANLIB"; then 6967 ac_ct_RANLIB=$RANLIB 6968 # Extract the first word of "ranlib", so it can be a program name with args. 6969 set dummy ranlib; ac_word=$2 6970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6971 printf %s "checking for $ac_word... " >&6; } 6972 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6973 then : 6974 printf %s "(cached) " >&6 6975 else case e in #( 6976 e) if test -n "$ac_ct_RANLIB"; then 6977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6978 else 6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6980 for as_dir in $PATH 6981 do 6982 IFS=$as_save_IFS 6983 case $as_dir in #((( 6984 '') as_dir=./ ;; 6985 */) ;; 6986 *) as_dir=$as_dir/ ;; 6987 esac 6988 for ac_exec_ext in '' $ac_executable_extensions; do 6989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6990 ac_cv_prog_ac_ct_RANLIB="ranlib" 6991 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6992 break 2 6993 fi 6994 done 6995 done 6996 IFS=$as_save_IFS 6997 6998 fi ;; 6999 esac 7000 fi 7001 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7002 if test -n "$ac_ct_RANLIB"; then 7003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7004 printf '%s\n' "$ac_ct_RANLIB" >&6; } 7005 else 7006 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 7007 printf '%s\n' "no" >&6; } 7008 fi 7009 7010 if test "x$ac_ct_RANLIB" = x; then 7011 RANLIB=":" 7012 else 7013 case $cross_compiling:$ac_tool_warned in 7014 yes:) 7015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7016 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7017 ac_tool_warned=yes ;; 7018 esac 7019 RANLIB=$ac_ct_RANLIB 7020 fi 7021 else 7022 RANLIB="$ac_cv_prog_RANLIB" 7023 fi 7024 7025 if test -n "$ac_tool_prefix"; then 7026 for ac_prog in ar 7027 do 7028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7030 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7031 printf %s "checking for $ac_word... " >&6; } 7032 if test ${ac_cv_prog_AR+y} 7033 then : 7034 printf %s "(cached) " >&6 7035 else case e in #( 7036 e) if test -n "$AR"; then 7037 ac_cv_prog_AR="$AR" # Let the user override the test. 7038 else 7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040 for as_dir in $PATH 7041 do 7042 IFS=$as_save_IFS 7043 case $as_dir in #((( 7044 '') as_dir=./ ;; 7045 */) ;; 7046 *) as_dir=$as_dir/ ;; 7047 esac 7048 for ac_exec_ext in '' $ac_executable_extensions; do 7049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7050 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7051 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7052 break 2 7053 fi 7054 done 7055 done 7056 IFS=$as_save_IFS 7057 7058 fi ;; 7059 esac 7060 fi 7061 AR=$ac_cv_prog_AR 7062 if test -n "$AR"; then 7063 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7064 printf '%s\n' "$AR" >&6; } 7065 else 7066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 7067 printf '%s\n' "no" >&6; } 7068 fi 7069 7070 7071 test -n "$AR" && break 7072 done 7073 fi 7074 if test -z "$AR"; then 7075 ac_ct_AR=$AR 7076 for ac_prog in ar 7077 do 7078 # Extract the first word of "$ac_prog", so it can be a program name with args. 7079 set dummy $ac_prog; ac_word=$2 7080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7081 printf %s "checking for $ac_word... " >&6; } 7082 if test ${ac_cv_prog_ac_ct_AR+y} 7083 then : 7084 printf %s "(cached) " >&6 7085 else case e in #( 7086 e) if test -n "$ac_ct_AR"; then 7087 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7088 else 7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7090 for as_dir in $PATH 7091 do 7092 IFS=$as_save_IFS 7093 case $as_dir in #((( 7094 '') as_dir=./ ;; 7095 */) ;; 7096 *) as_dir=$as_dir/ ;; 7097 esac 7098 for ac_exec_ext in '' $ac_executable_extensions; do 7099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7100 ac_cv_prog_ac_ct_AR="$ac_prog" 7101 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7102 break 2 7103 fi 7104 done 7105 done 7106 IFS=$as_save_IFS 7107 7108 fi ;; 7109 esac 7110 fi 7111 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7112 if test -n "$ac_ct_AR"; then 7113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7114 printf '%s\n' "$ac_ct_AR" >&6; } 7115 else 7116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 7117 printf '%s\n' "no" >&6; } 7118 fi 7119 7120 7121 test -n "$ac_ct_AR" && break 7122 done 7123 7124 if test "x$ac_ct_AR" = x; then 7125 AR="false" 7126 else 7127 case $cross_compiling:$ac_tool_warned in 7128 yes:) 7129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7130 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7131 ac_tool_warned=yes ;; 7132 esac 7133 AR=$ac_ct_AR 7134 fi 7135 fi 7136 7137 : ${AR=ar} 7138 7139 7140 7141 7142 7143 7144 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 7145 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7146 # higher priority because that's what people were doing historically (setting 7147 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7148 # variable obsoleted/removed. 7149 7150 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7151 lt_ar_flags=$AR_FLAGS 7152 7153 7154 7155 7156 7157 7158 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7159 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7160 7161 7162 7163 7164 7165 7166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7167 printf %s "checking for archiver @FILE support... " >&6; } 7168 if test ${lt_cv_ar_at_file+y} 7169 then : 7170 printf %s "(cached) " >&6 7171 else case e in #( 7172 e) lt_cv_ar_at_file=no 7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7174 /* end confdefs.h. */ 7175 7176 int 7177 main (void) 7178 { 7179 7180 ; 7181 return 0; 7182 } 7183 _ACEOF 7184 if ac_fn_c_try_compile "$LINENO" 7185 then : 7186 echo conftest.$ac_objext > conftest.lst 7187 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7189 (eval $lt_ar_try) 2>&5 7190 ac_status=$? 7191 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7192 test $ac_status = 0; } 7193 if test 0 -eq "$ac_status"; then 7194 # Ensure the archiver fails upon bogus file names. 7195 rm -f conftest.$ac_objext libconftest.a 7196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7197 (eval $lt_ar_try) 2>&5 7198 ac_status=$? 7199 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7200 test $ac_status = 0; } 7201 if test 0 -ne "$ac_status"; then 7202 lt_cv_ar_at_file=@ 7203 fi 7204 fi 7205 rm -f conftest.* libconftest.a 7206 7207 fi 7208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7209 ;; 7210 esac 7211 fi 7212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7213 printf '%s\n' "$lt_cv_ar_at_file" >&6; } 7214 7215 if test no = "$lt_cv_ar_at_file"; then 7216 archiver_list_spec= 7217 else 7218 archiver_list_spec=$lt_cv_ar_at_file 7219 fi 7220 7221 7222 7223 7224 7225 7226 7227 if test -n "$ac_tool_prefix"; then 7228 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7229 set dummy ${ac_tool_prefix}strip; ac_word=$2 7230 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7231 printf %s "checking for $ac_word... " >&6; } 7232 if test ${ac_cv_prog_STRIP+y} 7233 then : 7234 printf %s "(cached) " >&6 7235 else case e in #( 7236 e) if test -n "$STRIP"; then 7237 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7238 else 7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7240 for as_dir in $PATH 7241 do 7242 IFS=$as_save_IFS 7243 case $as_dir in #((( 7244 '') as_dir=./ ;; 7245 */) ;; 7246 *) as_dir=$as_dir/ ;; 7247 esac 7248 for ac_exec_ext in '' $ac_executable_extensions; do 7249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7250 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7251 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7252 break 2 7253 fi 7254 done 7255 done 7256 IFS=$as_save_IFS 7257 7258 fi ;; 7259 esac 7260 fi 7261 STRIP=$ac_cv_prog_STRIP 7262 if test -n "$STRIP"; then 7263 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7264 printf '%s\n' "$STRIP" >&6; } 7265 else 7266 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 7267 printf '%s\n' "no" >&6; } 7268 fi 7269 7270 7271 fi 7272 if test -z "$ac_cv_prog_STRIP"; then 7273 ac_ct_STRIP=$STRIP 7274 # Extract the first word of "strip", so it can be a program name with args. 7275 set dummy strip; ac_word=$2 7276 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7277 printf %s "checking for $ac_word... " >&6; } 7278 if test ${ac_cv_prog_ac_ct_STRIP+y} 7279 then : 7280 printf %s "(cached) " >&6 7281 else case e in #( 7282 e) if test -n "$ac_ct_STRIP"; then 7283 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7284 else 7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7286 for as_dir in $PATH 7287 do 7288 IFS=$as_save_IFS 7289 case $as_dir in #((( 7290 '') as_dir=./ ;; 7291 */) ;; 7292 *) as_dir=$as_dir/ ;; 7293 esac 7294 for ac_exec_ext in '' $ac_executable_extensions; do 7295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7296 ac_cv_prog_ac_ct_STRIP="strip" 7297 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7298 break 2 7299 fi 7300 done 7301 done 7302 IFS=$as_save_IFS 7303 7304 fi ;; 7305 esac 7306 fi 7307 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7308 if test -n "$ac_ct_STRIP"; then 7309 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7310 printf '%s\n' "$ac_ct_STRIP" >&6; } 7311 else 7312 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 7313 printf '%s\n' "no" >&6; } 7314 fi 7315 7316 if test "x$ac_ct_STRIP" = x; then 7317 STRIP=":" 7318 else 7319 case $cross_compiling:$ac_tool_warned in 7320 yes:) 7321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7322 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7323 ac_tool_warned=yes ;; 7324 esac 7325 STRIP=$ac_ct_STRIP 7326 fi 7327 else 7328 STRIP="$ac_cv_prog_STRIP" 7329 fi 7330 7331 test -z "$STRIP" && STRIP=: 7332 7333 7334 7335 7336 7337 7338 7339 test -z "$RANLIB" && RANLIB=: 7340 7341 7342 7343 7344 7345 7346 # Determine commands to create old-style static archives. 7347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7348 old_postinstall_cmds='chmod 644 $oldlib' 7349 old_postuninstall_cmds= 7350 7351 if test -n "$RANLIB"; then 7352 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7353 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7354 fi 7355 7356 case $host_os in 7357 darwin*) 7358 lock_old_archive_extraction=yes ;; 7359 *) 7360 lock_old_archive_extraction=no ;; 7361 esac 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 # If no C compiler was specified, use CC. 7402 LTCC=${LTCC-"$CC"} 7403 7404 # If no C compiler flags were specified, use CFLAGS. 7405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7406 7407 # Allow CC to be a program name with arguments. 7408 compiler=$CC 7409 7410 7411 # Check for command to grab the raw symbol name followed by C symbol from nm. 7412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7413 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7414 if test ${lt_cv_sys_global_symbol_pipe+y} 7415 then : 7416 printf %s "(cached) " >&6 7417 else case e in #( 7418 e) 7419 # These are sane defaults that work on at least a few old systems. 7420 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7421 7422 # Character class describing NM global symbol codes. 7423 symcode='[BCDEGRST]' 7424 7425 # Regexp to match symbols that can be accessed directly from C. 7426 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7427 7428 # Define system-specific variables. 7429 case $host_os in 7430 aix*) 7431 symcode='[BCDT]' 7432 ;; 7433 cygwin* | mingw* | windows* | pw32* | cegcc*) 7434 symcode='[ABCDGISTW]' 7435 ;; 7436 hpux*) 7437 if test ia64 = "$host_cpu"; then 7438 symcode='[ABCDEGRST]' 7439 fi 7440 ;; 7441 irix* | nonstopux*) 7442 symcode='[BCDEGRST]' 7443 ;; 7444 osf*) 7445 symcode='[BCDEGQRST]' 7446 ;; 7447 solaris*) 7448 symcode='[BCDRT]' 7449 ;; 7450 sco3.2v5*) 7451 symcode='[DT]' 7452 ;; 7453 sysv4.2uw2*) 7454 symcode='[DT]' 7455 ;; 7456 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7457 symcode='[ABDT]' 7458 ;; 7459 sysv4) 7460 symcode='[DFNSTU]' 7461 ;; 7462 esac 7463 7464 # If we're using GNU nm, then use its standard symbol codes. 7465 case `$NM -V 2>&1` in 7466 *GNU* | *'with BFD'*) 7467 symcode='[ABCDGIRSTW]' ;; 7468 esac 7469 7470 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7471 # Gets list of data symbols to import. 7472 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/\1/p'" 7473 # Adjust the below global symbol transforms to fixup imported variables. 7474 lt_cdecl_hook=" -e 's/^I .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/extern __declspec(dllimport) char \1;/p'" 7475 lt_c_name_hook=" -e 's/^I .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"\1\", (void *) 0},/p'" 7476 lt_c_name_lib_hook="\ 7477 -e 's/^I .* \(lib[a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"\1\", (void *) 0},/p'\ 7478 -e 's/^I .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"lib\1\", (void *) 0},/p'" 7479 else 7480 # Disable hooks by default. 7481 lt_cv_sys_global_symbol_to_import= 7482 lt_cdecl_hook= 7483 lt_c_name_hook= 7484 lt_c_name_lib_hook= 7485 fi 7486 7487 # Transform an extracted symbol line into a proper C declaration. 7488 # Some systems (esp. on ia64) link data and code symbols differently, 7489 # so use this general approach. 7490 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7491 $lt_cdecl_hook\ 7492 " -e 's/^T .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/extern int \1();/p'"\ 7493 " -e 's/^$symcode$symcode* .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/extern char \1;/p'" 7494 7495 # Transform an extracted symbol line into symbol name and symbol address 7496 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7497 $lt_c_name_hook\ 7498 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7499 " -e 's/^$symcode$symcode* .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"\1\", (void *) \&\1},/p'" 7500 7501 # Transform an extracted symbol line into symbol name with lib prefix and 7502 # symbol address. 7503 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7504 $lt_c_name_lib_hook\ 7505 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7506 " -e 's/^$symcode$symcode* .* \(lib[a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7507 " -e 's/^$symcode$symcode* .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7508 7509 # Handle CRLF in mingw tool chain 7510 opt_cr= 7511 case $build_os in 7512 mingw* | windows*) 7513 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7514 ;; 7515 esac 7516 7517 # Try without a prefix underscore, then with it. 7518 for ac_symprfx in "" "_"; do 7519 7520 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7521 symxfrm="\\1 $ac_symprfx\\2 \\2" 7522 7523 # Write the raw and C identifiers. 7524 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7525 # Fake it for dumpbin and say T for any non-static function, 7526 # D for any global variable and I for any imported variable. 7527 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7528 # which start with @ or ?. And Cygwin gawk-4.1.4-3 and newer 7529 # treats input as binary, have to drop carriage return first. 7530 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7531 " {sub(/\\r\$/,\"\")};"\ 7532 " {last_section=section; section=\$ 3};"\ 7533 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7534 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7535 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7536 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7537 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7538 " \$ 0!~/External *\|/{next};"\ 7539 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7540 " {if(hide[section]) next};"\ 7541 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7542 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7543 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7544 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7545 " ' prfx=^$ac_symprfx" 7546 else 7547 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7548 fi 7549 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7550 7551 # Check to see that the pipe works correctly. 7552 pipe_works=no 7553 7554 rm -f conftest* 7555 cat > conftest.$ac_ext <<_LT_EOF 7556 #ifdef __cplusplus 7557 extern "C" { 7558 #endif 7559 char nm_test_var; 7560 void nm_test_func(void); 7561 void nm_test_func(void){} 7562 #ifdef __cplusplus 7563 } 7564 #endif 7565 int main(void){nm_test_var='a';nm_test_func();return(0);} 7566 _LT_EOF 7567 7568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7569 (eval $ac_compile) 2>&5 7570 ac_status=$? 7571 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7572 test $ac_status = 0; }; then 7573 # Now try to grab the symbols. 7574 nlist=conftest.nm 7575 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7576 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7577 # Try sorting and uniquifying the output. 7578 if sort "$nlist" | uniq > "$nlist"T; then 7579 mv -f "$nlist"T "$nlist" 7580 else 7581 rm -f "$nlist"T 7582 fi 7583 7584 # Make sure that we snagged all the symbols we need. 7585 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7586 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7587 cat <<_LT_EOF > conftest.$ac_ext 7588 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7589 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7590 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7591 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7592 # define LT_DLSYM_CONST 7593 #elif defined __osf__ 7594 /* This system does not cope well with relocations in const data. */ 7595 # define LT_DLSYM_CONST 7596 #else 7597 # define LT_DLSYM_CONST const 7598 #endif 7599 7600 #ifdef __cplusplus 7601 extern "C" { 7602 #endif 7603 7604 _LT_EOF 7605 # Now generate the symbol file. 7606 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7607 7608 cat <<_LT_EOF >> conftest.$ac_ext 7609 7610 /* The mapping between symbol names and symbols. */ 7611 LT_DLSYM_CONST struct { 7612 const char *name; 7613 void *address; 7614 } 7615 lt__PROGRAM__LTX_preloaded_symbols[] = 7616 { 7617 { "@PROGRAM@", (void *) 0 }, 7618 _LT_EOF 7619 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7620 cat <<\_LT_EOF >> conftest.$ac_ext 7621 {0, (void *) 0} 7622 }; 7623 7624 /* This works around a problem in FreeBSD linker */ 7625 #ifdef FREEBSD_WORKAROUND 7626 static const void *lt_preloaded_setup() { 7627 return lt__PROGRAM__LTX_preloaded_symbols; 7628 } 7629 #endif 7630 7631 #ifdef __cplusplus 7632 } 7633 #endif 7634 _LT_EOF 7635 # Now try linking the two files. 7636 mv conftest.$ac_objext conftstm.$ac_objext 7637 lt_globsym_save_LIBS=$LIBS 7638 lt_globsym_save_CFLAGS=$CFLAGS 7639 LIBS=conftstm.$ac_objext 7640 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7642 (eval $ac_link) 2>&5 7643 ac_status=$? 7644 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7645 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7646 pipe_works=yes 7647 fi 7648 LIBS=$lt_globsym_save_LIBS 7649 CFLAGS=$lt_globsym_save_CFLAGS 7650 else 7651 echo "cannot find nm_test_func in $nlist" >&5 7652 fi 7653 else 7654 echo "cannot find nm_test_var in $nlist" >&5 7655 fi 7656 else 7657 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7658 fi 7659 else 7660 echo "$progname: failed program was:" >&5 7661 cat conftest.$ac_ext >&5 7662 fi 7663 rm -rf conftest* conftst* 7664 7665 # Do not use the global_symbol_pipe unless it works. 7666 if test yes = "$pipe_works"; then 7667 break 7668 else 7669 lt_cv_sys_global_symbol_pipe= 7670 fi 7671 done 7672 ;; 7673 esac 7674 fi 7675 7676 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7677 lt_cv_sys_global_symbol_to_cdecl= 7678 fi 7679 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7680 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7681 printf '%s\n' "failed" >&6; } 7682 else 7683 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7684 printf '%s\n' "ok" >&6; } 7685 fi 7686 7687 # Response file support. 7688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7689 nm_file_list_spec='@' 7690 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7691 nm_file_list_spec='@' 7692 fi 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7731 printf %s "checking for sysroot... " >&6; } 7732 7733 # Check whether --with-sysroot was given. 7734 if test ${with_sysroot+y} 7735 then : 7736 withval=$with_sysroot; 7737 else case e in #( 7738 e) with_sysroot=no ;; 7739 esac 7740 fi 7741 7742 7743 lt_sysroot= 7744 case $with_sysroot in #( 7745 yes) 7746 if test yes = "$GCC"; then 7747 # Trim trailing / since we'll always append absolute paths and we want 7748 # to avoid //, if only for less confusing output for the user. 7749 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7750 fi 7751 ;; #( 7752 /*) 7753 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7754 ;; #( 7755 no|'') 7756 ;; #( 7757 *) 7758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7759 printf '%s\n' "$with_sysroot" >&6; } 7760 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7761 ;; 7762 esac 7763 7764 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7765 printf '%s\n' "${lt_sysroot:-no}" >&6; } 7766 7767 7768 7769 7770 7771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7772 printf %s "checking for a working dd... " >&6; } 7773 if test ${ac_cv_path_lt_DD+y} 7774 then : 7775 printf %s "(cached) " >&6 7776 else case e in #( 7777 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7778 cat conftest.i conftest.i >conftest2.i 7779 : ${lt_DD:=$DD} 7780 if test -z "$lt_DD"; then 7781 ac_path_lt_DD_found=false 7782 # Loop through the user's path and test for each of PROGNAME-LIST 7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7784 for as_dir in $PATH 7785 do 7786 IFS=$as_save_IFS 7787 case $as_dir in #((( 7788 '') as_dir=./ ;; 7789 */) ;; 7790 *) as_dir=$as_dir/ ;; 7791 esac 7792 for ac_prog in dd 7793 do 7794 for ac_exec_ext in '' $ac_executable_extensions; do 7795 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7796 as_fn_executable_p "$ac_path_lt_DD" || continue 7797 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7798 cmp -s conftest.i conftest.out \ 7799 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7800 fi 7801 $ac_path_lt_DD_found && break 3 7802 done 7803 done 7804 done 7805 IFS=$as_save_IFS 7806 if test -z "$ac_cv_path_lt_DD"; then 7807 : 7808 fi 7809 else 7810 ac_cv_path_lt_DD=$lt_DD 7811 fi 7812 7813 rm -f conftest.i conftest2.i conftest.out ;; 7814 esac 7815 fi 7816 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7817 printf '%s\n' "$ac_cv_path_lt_DD" >&6; } 7818 7819 7820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7821 printf %s "checking how to truncate binary pipes... " >&6; } 7822 if test ${lt_cv_truncate_bin+y} 7823 then : 7824 printf %s "(cached) " >&6 7825 else case e in #( 7826 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7827 cat conftest.i conftest.i >conftest2.i 7828 lt_cv_truncate_bin= 7829 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7830 cmp -s conftest.i conftest.out \ 7831 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7832 fi 7833 rm -f conftest.i conftest2.i conftest.out 7834 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7835 esac 7836 fi 7837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7838 printf '%s\n' "$lt_cv_truncate_bin" >&6; } 7839 7840 7841 7842 7843 7844 7845 7846 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7847 func_cc_basename () 7848 { 7849 for cc_temp in $*""; do 7850 case $cc_temp in 7851 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7852 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7853 \-*) ;; 7854 *) break;; 7855 esac 7856 done 7857 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7858 } 7859 7860 # Check whether --enable-libtool-lock was given. 7861 if test ${enable_libtool_lock+y} 7862 then : 7863 enableval=$enable_libtool_lock; 7864 fi 7865 7866 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7867 7868 # Some flags need to be propagated to the compiler or linker for good 7869 # libtool support. 7870 case $host in 7871 ia64-*-hpux*) 7872 # Find out what ABI is being produced by ac_compile, and set mode 7873 # options accordingly. 7874 echo 'int i;' > conftest.$ac_ext 7875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7876 (eval $ac_compile) 2>&5 7877 ac_status=$? 7878 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7879 test $ac_status = 0; }; then 7880 case `$FILECMD conftest.$ac_objext` in 7881 *ELF-32*) 7882 HPUX_IA64_MODE=32 7883 ;; 7884 *ELF-64*) 7885 HPUX_IA64_MODE=64 7886 ;; 7887 esac 7888 fi 7889 rm -rf conftest* 7890 ;; 7891 *-*-irix6*) 7892 # Find out what ABI is being produced by ac_compile, and set linker 7893 # options accordingly. 7894 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7896 (eval $ac_compile) 2>&5 7897 ac_status=$? 7898 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7899 test $ac_status = 0; }; then 7900 if test yes = "$lt_cv_prog_gnu_ld"; then 7901 case `$FILECMD conftest.$ac_objext` in 7902 *32-bit*) 7903 LD="${LD-ld} -melf32bsmip" 7904 ;; 7905 *N32*) 7906 LD="${LD-ld} -melf32bmipn32" 7907 ;; 7908 *64-bit*) 7909 LD="${LD-ld} -melf64bmip" 7910 ;; 7911 esac 7912 else 7913 case `$FILECMD conftest.$ac_objext` in 7914 *32-bit*) 7915 LD="${LD-ld} -32" 7916 ;; 7917 *N32*) 7918 LD="${LD-ld} -n32" 7919 ;; 7920 *64-bit*) 7921 LD="${LD-ld} -64" 7922 ;; 7923 esac 7924 fi 7925 fi 7926 rm -rf conftest* 7927 ;; 7928 7929 mips64*-*linux*) 7930 # Find out what ABI is being produced by ac_compile, and set linker 7931 # options accordingly. 7932 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7934 (eval $ac_compile) 2>&5 7935 ac_status=$? 7936 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7937 test $ac_status = 0; }; then 7938 emul=elf 7939 case `$FILECMD conftest.$ac_objext` in 7940 *32-bit*) 7941 emul="${emul}32" 7942 ;; 7943 *64-bit*) 7944 emul="${emul}64" 7945 ;; 7946 esac 7947 case `$FILECMD conftest.$ac_objext` in 7948 *MSB*) 7949 emul="${emul}btsmip" 7950 ;; 7951 *LSB*) 7952 emul="${emul}ltsmip" 7953 ;; 7954 esac 7955 case `$FILECMD conftest.$ac_objext` in 7956 *N32*) 7957 emul="${emul}n32" 7958 ;; 7959 esac 7960 LD="${LD-ld} -m $emul" 7961 fi 7962 rm -rf conftest* 7963 ;; 7964 7965 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7966 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7967 # Find out what ABI is being produced by ac_compile, and set linker 7968 # options accordingly. Note that the listed cases only cover the 7969 # situations where additional linker options are needed (such as when 7970 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7971 # vice versa); the common cases where no linker options are needed do 7972 # not appear in the list. 7973 echo 'int i;' > conftest.$ac_ext 7974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7975 (eval $ac_compile) 2>&5 7976 ac_status=$? 7977 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7978 test $ac_status = 0; }; then 7979 case `$FILECMD conftest.o` in 7980 *32-bit*) 7981 case $host in 7982 x86_64-*kfreebsd*-gnu) 7983 LD="${LD-ld} -m elf_i386_fbsd" 7984 ;; 7985 x86_64-*linux*|x86_64-gnu*) 7986 case `$FILECMD conftest.o` in 7987 *x86-64*) 7988 LD="${LD-ld} -m elf32_x86_64" 7989 ;; 7990 *) 7991 LD="${LD-ld} -m elf_i386" 7992 ;; 7993 esac 7994 ;; 7995 powerpc64le-*linux*) 7996 LD="${LD-ld} -m elf32lppclinux" 7997 ;; 7998 powerpc64-*linux*) 7999 LD="${LD-ld} -m elf32ppclinux" 8000 ;; 8001 s390x-*linux*) 8002 LD="${LD-ld} -m elf_s390" 8003 ;; 8004 sparc64-*linux*) 8005 LD="${LD-ld} -m elf32_sparc" 8006 ;; 8007 esac 8008 ;; 8009 *64-bit*) 8010 case $host in 8011 x86_64-*kfreebsd*-gnu) 8012 LD="${LD-ld} -m elf_x86_64_fbsd" 8013 ;; 8014 x86_64-*linux*|x86_64-gnu*) 8015 LD="${LD-ld} -m elf_x86_64" 8016 ;; 8017 powerpcle-*linux*) 8018 LD="${LD-ld} -m elf64lppc" 8019 ;; 8020 powerpc-*linux*) 8021 LD="${LD-ld} -m elf64ppc" 8022 ;; 8023 s390*-*linux*|s390*-*tpf*) 8024 LD="${LD-ld} -m elf64_s390" 8025 ;; 8026 sparc*-*linux*) 8027 LD="${LD-ld} -m elf64_sparc" 8028 ;; 8029 esac 8030 ;; 8031 esac 8032 fi 8033 rm -rf conftest* 8034 ;; 8035 8036 *-*-sco3.2v5*) 8037 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8038 SAVE_CFLAGS=$CFLAGS 8039 CFLAGS="$CFLAGS -belf" 8040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8041 printf %s "checking whether the C compiler needs -belf... " >&6; } 8042 if test ${lt_cv_cc_needs_belf+y} 8043 then : 8044 printf %s "(cached) " >&6 8045 else case e in #( 8046 e) ac_ext=c 8047 ac_cpp='$CPP $CPPFLAGS' 8048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8050 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8051 8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8053 /* end confdefs.h. */ 8054 8055 int 8056 main (void) 8057 { 8058 8059 ; 8060 return 0; 8061 } 8062 _ACEOF 8063 if ac_fn_c_try_link "$LINENO" 8064 then : 8065 lt_cv_cc_needs_belf=yes 8066 else case e in #( 8067 e) lt_cv_cc_needs_belf=no ;; 8068 esac 8069 fi 8070 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8071 conftest$ac_exeext conftest.$ac_ext 8072 ac_ext=c 8073 ac_cpp='$CPP $CPPFLAGS' 8074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8076 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8077 ;; 8078 esac 8079 fi 8080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8081 printf '%s\n' "$lt_cv_cc_needs_belf" >&6; } 8082 if test yes != "$lt_cv_cc_needs_belf"; then 8083 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8084 CFLAGS=$SAVE_CFLAGS 8085 fi 8086 ;; 8087 *-*solaris*) 8088 # Find out what ABI is being produced by ac_compile, and set linker 8089 # options accordingly. 8090 echo 'int i;' > conftest.$ac_ext 8091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8092 (eval $ac_compile) 2>&5 8093 ac_status=$? 8094 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8095 test $ac_status = 0; }; then 8096 case `$FILECMD conftest.o` in 8097 *64-bit*) 8098 case $lt_cv_prog_gnu_ld in 8099 yes*) 8100 case $host in 8101 i?86-*-solaris*|x86_64-*-solaris*) 8102 LD="${LD-ld} -m elf_x86_64" 8103 ;; 8104 sparc*-*-solaris*) 8105 LD="${LD-ld} -m elf64_sparc" 8106 ;; 8107 esac 8108 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8109 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8110 LD=${LD-ld}_sol2 8111 fi 8112 ;; 8113 *) 8114 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8115 LD="${LD-ld} -64" 8116 fi 8117 ;; 8118 esac 8119 ;; 8120 esac 8121 fi 8122 rm -rf conftest* 8123 ;; 8124 esac 8125 8126 need_locks=$enable_libtool_lock 8127 8128 if test -n "$ac_tool_prefix"; then 8129 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8130 set dummy ${ac_tool_prefix}mt; ac_word=$2 8131 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8132 printf %s "checking for $ac_word... " >&6; } 8133 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8134 then : 8135 printf %s "(cached) " >&6 8136 else case e in #( 8137 e) if test -n "$MANIFEST_TOOL"; then 8138 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8139 else 8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141 for as_dir in $PATH 8142 do 8143 IFS=$as_save_IFS 8144 case $as_dir in #((( 8145 '') as_dir=./ ;; 8146 */) ;; 8147 *) as_dir=$as_dir/ ;; 8148 esac 8149 for ac_exec_ext in '' $ac_executable_extensions; do 8150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8151 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8152 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8153 break 2 8154 fi 8155 done 8156 done 8157 IFS=$as_save_IFS 8158 8159 fi ;; 8160 esac 8161 fi 8162 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8163 if test -n "$MANIFEST_TOOL"; then 8164 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8165 printf '%s\n' "$MANIFEST_TOOL" >&6; } 8166 else 8167 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8168 printf '%s\n' "no" >&6; } 8169 fi 8170 8171 8172 fi 8173 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8174 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8175 # Extract the first word of "mt", so it can be a program name with args. 8176 set dummy mt; ac_word=$2 8177 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8178 printf %s "checking for $ac_word... " >&6; } 8179 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8180 then : 8181 printf %s "(cached) " >&6 8182 else case e in #( 8183 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8184 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8185 else 8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8187 for as_dir in $PATH 8188 do 8189 IFS=$as_save_IFS 8190 case $as_dir in #((( 8191 '') as_dir=./ ;; 8192 */) ;; 8193 *) as_dir=$as_dir/ ;; 8194 esac 8195 for ac_exec_ext in '' $ac_executable_extensions; do 8196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8197 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8198 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8199 break 2 8200 fi 8201 done 8202 done 8203 IFS=$as_save_IFS 8204 8205 fi ;; 8206 esac 8207 fi 8208 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8209 if test -n "$ac_ct_MANIFEST_TOOL"; then 8210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8211 printf '%s\n' "$ac_ct_MANIFEST_TOOL" >&6; } 8212 else 8213 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8214 printf '%s\n' "no" >&6; } 8215 fi 8216 8217 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8218 MANIFEST_TOOL=":" 8219 else 8220 case $cross_compiling:$ac_tool_warned in 8221 yes:) 8222 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8223 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8224 ac_tool_warned=yes ;; 8225 esac 8226 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8227 fi 8228 else 8229 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8230 fi 8231 8232 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8233 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8234 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8235 if test ${lt_cv_path_manifest_tool+y} 8236 then : 8237 printf %s "(cached) " >&6 8238 else case e in #( 8239 e) lt_cv_path_manifest_tool=no 8240 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8241 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8242 cat conftest.err >&5 8243 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8244 lt_cv_path_manifest_tool=yes 8245 fi 8246 rm -f conftest* ;; 8247 esac 8248 fi 8249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 8250 printf '%s\n' "$lt_cv_path_manifest_tool" >&6; } 8251 if test yes != "$lt_cv_path_manifest_tool"; then 8252 MANIFEST_TOOL=: 8253 fi 8254 8255 8256 8257 8258 8259 8260 case $host_os in 8261 rhapsody* | darwin*) 8262 if test -n "$ac_tool_prefix"; then 8263 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8264 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8265 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8266 printf %s "checking for $ac_word... " >&6; } 8267 if test ${ac_cv_prog_DSYMUTIL+y} 8268 then : 8269 printf %s "(cached) " >&6 8270 else case e in #( 8271 e) if test -n "$DSYMUTIL"; then 8272 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8273 else 8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8275 for as_dir in $PATH 8276 do 8277 IFS=$as_save_IFS 8278 case $as_dir in #((( 8279 '') as_dir=./ ;; 8280 */) ;; 8281 *) as_dir=$as_dir/ ;; 8282 esac 8283 for ac_exec_ext in '' $ac_executable_extensions; do 8284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8285 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8286 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8287 break 2 8288 fi 8289 done 8290 done 8291 IFS=$as_save_IFS 8292 8293 fi ;; 8294 esac 8295 fi 8296 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8297 if test -n "$DSYMUTIL"; then 8298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8299 printf '%s\n' "$DSYMUTIL" >&6; } 8300 else 8301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8302 printf '%s\n' "no" >&6; } 8303 fi 8304 8305 8306 fi 8307 if test -z "$ac_cv_prog_DSYMUTIL"; then 8308 ac_ct_DSYMUTIL=$DSYMUTIL 8309 # Extract the first word of "dsymutil", so it can be a program name with args. 8310 set dummy dsymutil; ac_word=$2 8311 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8312 printf %s "checking for $ac_word... " >&6; } 8313 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8314 then : 8315 printf %s "(cached) " >&6 8316 else case e in #( 8317 e) if test -n "$ac_ct_DSYMUTIL"; then 8318 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8319 else 8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8321 for as_dir in $PATH 8322 do 8323 IFS=$as_save_IFS 8324 case $as_dir in #((( 8325 '') as_dir=./ ;; 8326 */) ;; 8327 *) as_dir=$as_dir/ ;; 8328 esac 8329 for ac_exec_ext in '' $ac_executable_extensions; do 8330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8331 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8332 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8333 break 2 8334 fi 8335 done 8336 done 8337 IFS=$as_save_IFS 8338 8339 fi ;; 8340 esac 8341 fi 8342 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8343 if test -n "$ac_ct_DSYMUTIL"; then 8344 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8345 printf '%s\n' "$ac_ct_DSYMUTIL" >&6; } 8346 else 8347 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8348 printf '%s\n' "no" >&6; } 8349 fi 8350 8351 if test "x$ac_ct_DSYMUTIL" = x; then 8352 DSYMUTIL=":" 8353 else 8354 case $cross_compiling:$ac_tool_warned in 8355 yes:) 8356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8357 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8358 ac_tool_warned=yes ;; 8359 esac 8360 DSYMUTIL=$ac_ct_DSYMUTIL 8361 fi 8362 else 8363 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8364 fi 8365 8366 if test -n "$ac_tool_prefix"; then 8367 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8368 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8370 printf %s "checking for $ac_word... " >&6; } 8371 if test ${ac_cv_prog_NMEDIT+y} 8372 then : 8373 printf %s "(cached) " >&6 8374 else case e in #( 8375 e) if test -n "$NMEDIT"; then 8376 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8377 else 8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8379 for as_dir in $PATH 8380 do 8381 IFS=$as_save_IFS 8382 case $as_dir in #((( 8383 '') as_dir=./ ;; 8384 */) ;; 8385 *) as_dir=$as_dir/ ;; 8386 esac 8387 for ac_exec_ext in '' $ac_executable_extensions; do 8388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8389 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8390 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8391 break 2 8392 fi 8393 done 8394 done 8395 IFS=$as_save_IFS 8396 8397 fi ;; 8398 esac 8399 fi 8400 NMEDIT=$ac_cv_prog_NMEDIT 8401 if test -n "$NMEDIT"; then 8402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8403 printf '%s\n' "$NMEDIT" >&6; } 8404 else 8405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8406 printf '%s\n' "no" >&6; } 8407 fi 8408 8409 8410 fi 8411 if test -z "$ac_cv_prog_NMEDIT"; then 8412 ac_ct_NMEDIT=$NMEDIT 8413 # Extract the first word of "nmedit", so it can be a program name with args. 8414 set dummy nmedit; ac_word=$2 8415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8416 printf %s "checking for $ac_word... " >&6; } 8417 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8418 then : 8419 printf %s "(cached) " >&6 8420 else case e in #( 8421 e) if test -n "$ac_ct_NMEDIT"; then 8422 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8423 else 8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8425 for as_dir in $PATH 8426 do 8427 IFS=$as_save_IFS 8428 case $as_dir in #((( 8429 '') as_dir=./ ;; 8430 */) ;; 8431 *) as_dir=$as_dir/ ;; 8432 esac 8433 for ac_exec_ext in '' $ac_executable_extensions; do 8434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8435 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8436 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8437 break 2 8438 fi 8439 done 8440 done 8441 IFS=$as_save_IFS 8442 8443 fi ;; 8444 esac 8445 fi 8446 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8447 if test -n "$ac_ct_NMEDIT"; then 8448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8449 printf '%s\n' "$ac_ct_NMEDIT" >&6; } 8450 else 8451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8452 printf '%s\n' "no" >&6; } 8453 fi 8454 8455 if test "x$ac_ct_NMEDIT" = x; then 8456 NMEDIT=":" 8457 else 8458 case $cross_compiling:$ac_tool_warned in 8459 yes:) 8460 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8461 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8462 ac_tool_warned=yes ;; 8463 esac 8464 NMEDIT=$ac_ct_NMEDIT 8465 fi 8466 else 8467 NMEDIT="$ac_cv_prog_NMEDIT" 8468 fi 8469 8470 if test -n "$ac_tool_prefix"; then 8471 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8472 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8473 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8474 printf %s "checking for $ac_word... " >&6; } 8475 if test ${ac_cv_prog_LIPO+y} 8476 then : 8477 printf %s "(cached) " >&6 8478 else case e in #( 8479 e) if test -n "$LIPO"; then 8480 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8481 else 8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8483 for as_dir in $PATH 8484 do 8485 IFS=$as_save_IFS 8486 case $as_dir in #((( 8487 '') as_dir=./ ;; 8488 */) ;; 8489 *) as_dir=$as_dir/ ;; 8490 esac 8491 for ac_exec_ext in '' $ac_executable_extensions; do 8492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8493 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8494 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8495 break 2 8496 fi 8497 done 8498 done 8499 IFS=$as_save_IFS 8500 8501 fi ;; 8502 esac 8503 fi 8504 LIPO=$ac_cv_prog_LIPO 8505 if test -n "$LIPO"; then 8506 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8507 printf '%s\n' "$LIPO" >&6; } 8508 else 8509 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8510 printf '%s\n' "no" >&6; } 8511 fi 8512 8513 8514 fi 8515 if test -z "$ac_cv_prog_LIPO"; then 8516 ac_ct_LIPO=$LIPO 8517 # Extract the first word of "lipo", so it can be a program name with args. 8518 set dummy lipo; ac_word=$2 8519 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8520 printf %s "checking for $ac_word... " >&6; } 8521 if test ${ac_cv_prog_ac_ct_LIPO+y} 8522 then : 8523 printf %s "(cached) " >&6 8524 else case e in #( 8525 e) if test -n "$ac_ct_LIPO"; then 8526 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8527 else 8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8529 for as_dir in $PATH 8530 do 8531 IFS=$as_save_IFS 8532 case $as_dir in #((( 8533 '') as_dir=./ ;; 8534 */) ;; 8535 *) as_dir=$as_dir/ ;; 8536 esac 8537 for ac_exec_ext in '' $ac_executable_extensions; do 8538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8539 ac_cv_prog_ac_ct_LIPO="lipo" 8540 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8541 break 2 8542 fi 8543 done 8544 done 8545 IFS=$as_save_IFS 8546 8547 fi ;; 8548 esac 8549 fi 8550 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8551 if test -n "$ac_ct_LIPO"; then 8552 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8553 printf '%s\n' "$ac_ct_LIPO" >&6; } 8554 else 8555 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8556 printf '%s\n' "no" >&6; } 8557 fi 8558 8559 if test "x$ac_ct_LIPO" = x; then 8560 LIPO=":" 8561 else 8562 case $cross_compiling:$ac_tool_warned in 8563 yes:) 8564 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8565 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8566 ac_tool_warned=yes ;; 8567 esac 8568 LIPO=$ac_ct_LIPO 8569 fi 8570 else 8571 LIPO="$ac_cv_prog_LIPO" 8572 fi 8573 8574 if test -n "$ac_tool_prefix"; then 8575 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8576 set dummy ${ac_tool_prefix}otool; ac_word=$2 8577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8578 printf %s "checking for $ac_word... " >&6; } 8579 if test ${ac_cv_prog_OTOOL+y} 8580 then : 8581 printf %s "(cached) " >&6 8582 else case e in #( 8583 e) if test -n "$OTOOL"; then 8584 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8585 else 8586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8587 for as_dir in $PATH 8588 do 8589 IFS=$as_save_IFS 8590 case $as_dir in #((( 8591 '') as_dir=./ ;; 8592 */) ;; 8593 *) as_dir=$as_dir/ ;; 8594 esac 8595 for ac_exec_ext in '' $ac_executable_extensions; do 8596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8597 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8598 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8599 break 2 8600 fi 8601 done 8602 done 8603 IFS=$as_save_IFS 8604 8605 fi ;; 8606 esac 8607 fi 8608 OTOOL=$ac_cv_prog_OTOOL 8609 if test -n "$OTOOL"; then 8610 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8611 printf '%s\n' "$OTOOL" >&6; } 8612 else 8613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8614 printf '%s\n' "no" >&6; } 8615 fi 8616 8617 8618 fi 8619 if test -z "$ac_cv_prog_OTOOL"; then 8620 ac_ct_OTOOL=$OTOOL 8621 # Extract the first word of "otool", so it can be a program name with args. 8622 set dummy otool; ac_word=$2 8623 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8624 printf %s "checking for $ac_word... " >&6; } 8625 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8626 then : 8627 printf %s "(cached) " >&6 8628 else case e in #( 8629 e) if test -n "$ac_ct_OTOOL"; then 8630 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8631 else 8632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8633 for as_dir in $PATH 8634 do 8635 IFS=$as_save_IFS 8636 case $as_dir in #((( 8637 '') as_dir=./ ;; 8638 */) ;; 8639 *) as_dir=$as_dir/ ;; 8640 esac 8641 for ac_exec_ext in '' $ac_executable_extensions; do 8642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8643 ac_cv_prog_ac_ct_OTOOL="otool" 8644 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8645 break 2 8646 fi 8647 done 8648 done 8649 IFS=$as_save_IFS 8650 8651 fi ;; 8652 esac 8653 fi 8654 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8655 if test -n "$ac_ct_OTOOL"; then 8656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8657 printf '%s\n' "$ac_ct_OTOOL" >&6; } 8658 else 8659 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8660 printf '%s\n' "no" >&6; } 8661 fi 8662 8663 if test "x$ac_ct_OTOOL" = x; then 8664 OTOOL=":" 8665 else 8666 case $cross_compiling:$ac_tool_warned in 8667 yes:) 8668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8669 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8670 ac_tool_warned=yes ;; 8671 esac 8672 OTOOL=$ac_ct_OTOOL 8673 fi 8674 else 8675 OTOOL="$ac_cv_prog_OTOOL" 8676 fi 8677 8678 if test -n "$ac_tool_prefix"; then 8679 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8680 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8682 printf %s "checking for $ac_word... " >&6; } 8683 if test ${ac_cv_prog_OTOOL64+y} 8684 then : 8685 printf %s "(cached) " >&6 8686 else case e in #( 8687 e) if test -n "$OTOOL64"; then 8688 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8689 else 8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8691 for as_dir in $PATH 8692 do 8693 IFS=$as_save_IFS 8694 case $as_dir in #((( 8695 '') as_dir=./ ;; 8696 */) ;; 8697 *) as_dir=$as_dir/ ;; 8698 esac 8699 for ac_exec_ext in '' $ac_executable_extensions; do 8700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8701 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8702 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8703 break 2 8704 fi 8705 done 8706 done 8707 IFS=$as_save_IFS 8708 8709 fi ;; 8710 esac 8711 fi 8712 OTOOL64=$ac_cv_prog_OTOOL64 8713 if test -n "$OTOOL64"; then 8714 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8715 printf '%s\n' "$OTOOL64" >&6; } 8716 else 8717 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8718 printf '%s\n' "no" >&6; } 8719 fi 8720 8721 8722 fi 8723 if test -z "$ac_cv_prog_OTOOL64"; then 8724 ac_ct_OTOOL64=$OTOOL64 8725 # Extract the first word of "otool64", so it can be a program name with args. 8726 set dummy otool64; ac_word=$2 8727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8728 printf %s "checking for $ac_word... " >&6; } 8729 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8730 then : 8731 printf %s "(cached) " >&6 8732 else case e in #( 8733 e) if test -n "$ac_ct_OTOOL64"; then 8734 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8735 else 8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8737 for as_dir in $PATH 8738 do 8739 IFS=$as_save_IFS 8740 case $as_dir in #((( 8741 '') as_dir=./ ;; 8742 */) ;; 8743 *) as_dir=$as_dir/ ;; 8744 esac 8745 for ac_exec_ext in '' $ac_executable_extensions; do 8746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8747 ac_cv_prog_ac_ct_OTOOL64="otool64" 8748 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8749 break 2 8750 fi 8751 done 8752 done 8753 IFS=$as_save_IFS 8754 8755 fi ;; 8756 esac 8757 fi 8758 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8759 if test -n "$ac_ct_OTOOL64"; then 8760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8761 printf '%s\n' "$ac_ct_OTOOL64" >&6; } 8762 else 8763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 8764 printf '%s\n' "no" >&6; } 8765 fi 8766 8767 if test "x$ac_ct_OTOOL64" = x; then 8768 OTOOL64=":" 8769 else 8770 case $cross_compiling:$ac_tool_warned in 8771 yes:) 8772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8773 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8774 ac_tool_warned=yes ;; 8775 esac 8776 OTOOL64=$ac_ct_OTOOL64 8777 fi 8778 else 8779 OTOOL64="$ac_cv_prog_OTOOL64" 8780 fi 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8809 printf %s "checking for -single_module linker flag... " >&6; } 8810 if test ${lt_cv_apple_cc_single_mod+y} 8811 then : 8812 printf %s "(cached) " >&6 8813 else case e in #( 8814 e) lt_cv_apple_cc_single_mod=no 8815 if test -z "$LT_MULTI_MODULE"; then 8816 # By default we will add the -single_module flag. You can override 8817 # by either setting the environment variable LT_MULTI_MODULE 8818 # non-empty at configure time, or by adding -multi_module to the 8819 # link flags. 8820 rm -rf libconftest.dylib* 8821 echo "int foo(void){return 1;}" > conftest.c 8822 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8823 -dynamiclib -Wl,-single_module conftest.c" >&5 8824 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8825 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8826 _lt_result=$? 8827 # If there is a non-empty error log, and "single_module" 8828 # appears in it, assume the flag caused a linker warning 8829 if test -s conftest.err && $GREP single_module conftest.err; then 8830 cat conftest.err >&5 8831 # Otherwise, if the output was created with a 0 exit code from 8832 # the compiler, it worked. 8833 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8834 lt_cv_apple_cc_single_mod=yes 8835 else 8836 cat conftest.err >&5 8837 fi 8838 rm -rf libconftest.dylib* 8839 rm -f conftest.* 8840 fi ;; 8841 esac 8842 fi 8843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8844 printf '%s\n' "$lt_cv_apple_cc_single_mod" >&6; } 8845 8846 # Feature test to disable chained fixups since it is not 8847 # compatible with '-undefined dynamic_lookup' 8848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8849 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8850 if test ${lt_cv_support_no_fixup_chains+y} 8851 then : 8852 printf %s "(cached) " >&6 8853 else case e in #( 8854 e) save_LDFLAGS=$LDFLAGS 8855 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8857 /* end confdefs.h. */ 8858 8859 int 8860 main (void) 8861 { 8862 8863 ; 8864 return 0; 8865 } 8866 _ACEOF 8867 if ac_fn_c_try_link "$LINENO" 8868 then : 8869 lt_cv_support_no_fixup_chains=yes 8870 else case e in #( 8871 e) lt_cv_support_no_fixup_chains=no 8872 ;; 8873 esac 8874 fi 8875 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8876 conftest$ac_exeext conftest.$ac_ext 8877 LDFLAGS=$save_LDFLAGS 8878 8879 ;; 8880 esac 8881 fi 8882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8883 printf '%s\n' "$lt_cv_support_no_fixup_chains" >&6; } 8884 8885 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8886 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8887 if test ${lt_cv_ld_exported_symbols_list+y} 8888 then : 8889 printf %s "(cached) " >&6 8890 else case e in #( 8891 e) lt_cv_ld_exported_symbols_list=no 8892 save_LDFLAGS=$LDFLAGS 8893 echo "_main" > conftest.sym 8894 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8896 /* end confdefs.h. */ 8897 8898 int 8899 main (void) 8900 { 8901 8902 ; 8903 return 0; 8904 } 8905 _ACEOF 8906 if ac_fn_c_try_link "$LINENO" 8907 then : 8908 lt_cv_ld_exported_symbols_list=yes 8909 else case e in #( 8910 e) lt_cv_ld_exported_symbols_list=no ;; 8911 esac 8912 fi 8913 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8914 conftest$ac_exeext conftest.$ac_ext 8915 LDFLAGS=$save_LDFLAGS 8916 ;; 8917 esac 8918 fi 8919 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8920 printf '%s\n' "$lt_cv_ld_exported_symbols_list" >&6; } 8921 8922 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8923 printf %s "checking for -force_load linker flag... " >&6; } 8924 if test ${lt_cv_ld_force_load+y} 8925 then : 8926 printf %s "(cached) " >&6 8927 else case e in #( 8928 e) lt_cv_ld_force_load=no 8929 cat > conftest.c << _LT_EOF 8930 int forced_loaded() { return 2;} 8931 _LT_EOF 8932 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8933 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8934 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8935 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8936 echo "$RANLIB libconftest.a" >&5 8937 $RANLIB libconftest.a 2>&5 8938 cat > conftest.c << _LT_EOF 8939 int main(void) { return 0;} 8940 _LT_EOF 8941 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8942 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8943 _lt_result=$? 8944 if test -s conftest.err && $GREP force_load conftest.err; then 8945 cat conftest.err >&5 8946 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8947 lt_cv_ld_force_load=yes 8948 else 8949 cat conftest.err >&5 8950 fi 8951 rm -f conftest.err libconftest.a conftest conftest.c 8952 rm -rf conftest.dSYM 8953 ;; 8954 esac 8955 fi 8956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8957 printf '%s\n' "$lt_cv_ld_force_load" >&6; } 8958 case $host_os in 8959 rhapsody* | darwin1.[012]) 8960 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8961 darwin1.*) 8962 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8963 darwin*) 8964 case $MACOSX_DEPLOYMENT_TARGET,$host in 8965 10.[012],*|,*powerpc*-darwin[5-8]*) 8966 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8967 *) 8968 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8969 if test yes = "$lt_cv_support_no_fixup_chains"; then 8970 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8971 fi 8972 ;; 8973 esac 8974 ;; 8975 esac 8976 if test yes = "$lt_cv_apple_cc_single_mod"; then 8977 _lt_dar_single_mod='$single_module' 8978 fi 8979 _lt_dar_needs_single_mod=no 8980 case $host_os in 8981 rhapsody* | darwin1.*) 8982 _lt_dar_needs_single_mod=yes ;; 8983 darwin*) 8984 # When targeting Mac OS X 10.4 (darwin 8) or later, 8985 # -single_module is the default and -multi_module is unsupported. 8986 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8987 # target any OS version that needs -single_module. 8988 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8989 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8990 _lt_dar_needs_single_mod=yes ;; 8991 esac 8992 ;; 8993 esac 8994 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8995 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8996 else 8997 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8998 fi 8999 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9000 _lt_dsymutil='~$DSYMUTIL $lib || :' 9001 else 9002 _lt_dsymutil= 9003 fi 9004 ;; 9005 esac 9006 9007 # func_munge_path_list VARIABLE PATH 9008 # ----------------------------------- 9009 # VARIABLE is name of variable containing _space_ separated list of 9010 # directories to be munged by the contents of PATH, which is string 9011 # having a format: 9012 # "DIR[:DIR]:" 9013 # string "DIR[ DIR]" will be prepended to VARIABLE 9014 # ":DIR[:DIR]" 9015 # string "DIR[ DIR]" will be appended to VARIABLE 9016 # "DIRP[:DIRP]::[DIRA:]DIRA" 9017 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9018 # "DIRA[ DIRA]" will be appended to VARIABLE 9019 # "DIR[:DIR]" 9020 # VARIABLE will be replaced by "DIR[ DIR]" 9021 func_munge_path_list () 9022 { 9023 case x$2 in 9024 x) 9025 ;; 9026 *:) 9027 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9028 ;; 9029 x:*) 9030 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9031 ;; 9032 *::*) 9033 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9034 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9035 ;; 9036 *) 9037 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9038 ;; 9039 esac 9040 } 9041 9042 ac_header= ac_cache= 9043 for ac_item in $ac_header_c_list 9044 do 9045 if test $ac_cache; then 9046 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 9047 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 9048 printf '%s\n' "#define $ac_item 1" >> confdefs.h 9049 fi 9050 ac_header= ac_cache= 9051 elif test $ac_header; then 9052 ac_cache=$ac_item 9053 else 9054 ac_header=$ac_item 9055 fi 9056 done 9057 9058 9059 9060 9061 9062 9063 9064 9065 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 9066 then : 9067 9068 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h 9069 9070 fi 9071 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9072 " 9073 if test "x$ac_cv_header_dlfcn_h" = xyes 9074 then : 9075 printf '%s\n' "#define HAVE_DLFCN_H 1" >>confdefs.h 9076 9077 fi 9078 9079 9080 9081 9082 9083 # Set options 9084 9085 9086 9087 enable_dlopen=no 9088 9089 9090 enable_win32_dll=no 9091 9092 9093 # Check whether --enable-shared was given. 9094 if test ${enable_shared+y} 9095 then : 9096 enableval=$enable_shared; p=${PACKAGE-default} 9097 case $enableval in 9098 yes) enable_shared=yes ;; 9099 no) enable_shared=no ;; 9100 *) 9101 enable_shared=no 9102 # Look at the argument we got. We use all the common list separators. 9103 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9104 for pkg in $enableval; do 9105 IFS=$lt_save_ifs 9106 if test "X$pkg" = "X$p"; then 9107 enable_shared=yes 9108 fi 9109 done 9110 IFS=$lt_save_ifs 9111 ;; 9112 esac 9113 else case e in #( 9114 e) enable_shared=yes ;; 9115 esac 9116 fi 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 # Check whether --enable-static was given. 9127 if test ${enable_static+y} 9128 then : 9129 enableval=$enable_static; p=${PACKAGE-default} 9130 case $enableval in 9131 yes) enable_static=yes ;; 9132 no) enable_static=no ;; 9133 *) 9134 enable_static=no 9135 # Look at the argument we got. We use all the common list separators. 9136 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9137 for pkg in $enableval; do 9138 IFS=$lt_save_ifs 9139 if test "X$pkg" = "X$p"; then 9140 enable_static=yes 9141 fi 9142 done 9143 IFS=$lt_save_ifs 9144 ;; 9145 esac 9146 else case e in #( 9147 e) enable_static=yes ;; 9148 esac 9149 fi 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 # Check whether --enable-pic was given. 9160 if test ${enable_pic+y} 9161 then : 9162 enableval=$enable_pic; lt_p=${PACKAGE-default} 9163 case $enableval in 9164 yes|no) pic_mode=$enableval ;; 9165 *) 9166 pic_mode=default 9167 # Look at the argument we got. We use all the common list separators. 9168 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9169 for lt_pkg in $enableval; do 9170 IFS=$lt_save_ifs 9171 if test "X$lt_pkg" = "X$lt_p"; then 9172 pic_mode=yes 9173 fi 9174 done 9175 IFS=$lt_save_ifs 9176 ;; 9177 esac 9178 else case e in #( 9179 e) # Check whether --with-pic was given. 9180 if test ${with_pic+y} 9181 then : 9182 withval=$with_pic; lt_p=${PACKAGE-default} 9183 case $withval in 9184 yes|no) pic_mode=$withval ;; 9185 *) 9186 pic_mode=default 9187 # Look at the argument we got. We use all the common list separators. 9188 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9189 for lt_pkg in $withval; do 9190 IFS=$lt_save_ifs 9191 if test "X$lt_pkg" = "X$lt_p"; then 9192 pic_mode=yes 9193 fi 9194 done 9195 IFS=$lt_save_ifs 9196 ;; 9197 esac 9198 else case e in #( 9199 e) pic_mode=default ;; 9200 esac 9201 fi 9202 9203 ;; 9204 esac 9205 fi 9206 9207 9208 9209 9210 9211 9212 9213 9214 stdlibflag=-nostdlib 9215 # Check whether --enable-cxx-stdlib was given. 9216 if test ${enable_cxx_stdlib+y} 9217 then : 9218 enableval=$enable_cxx_stdlib; p=${PACKAGE-default} 9219 case $enableval in 9220 yes) enable_cxx_stdlib=yes ;; 9221 no) enable_cxx_stdlib=no ;; 9222 *) 9223 enable_cxx_stdlib=no 9224 # Look at the argument we got. We use all the common list separators. 9225 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9226 for pkg in $enableval; do 9227 IFS=$lt_save_ifs 9228 if test "X$pkg" = "X$p"; then 9229 enable_cxx_stdlib=yes 9230 fi 9231 done 9232 IFS=$lt_save_ifs 9233 ;; 9234 esac 9235 else case e in #( 9236 e) enable_cxx_stdlib=no ;; 9237 esac 9238 fi 9239 9240 9241 if test yes = "$enable_cxx_stdlib"; then 9242 stdlibflag= 9243 fi 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 # Check whether --enable-fast-install was given. 9256 if test ${enable_fast_install+y} 9257 then : 9258 enableval=$enable_fast_install; p=${PACKAGE-default} 9259 case $enableval in 9260 yes) enable_fast_install=yes ;; 9261 no) enable_fast_install=no ;; 9262 *) 9263 enable_fast_install=no 9264 # Look at the argument we got. We use all the common list separators. 9265 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9266 for pkg in $enableval; do 9267 IFS=$lt_save_ifs 9268 if test "X$pkg" = "X$p"; then 9269 enable_fast_install=yes 9270 fi 9271 done 9272 IFS=$lt_save_ifs 9273 ;; 9274 esac 9275 else case e in #( 9276 e) enable_fast_install=yes ;; 9277 esac 9278 fi 9279 9280 9281 9282 9283 9284 9285 9286 9287 shared_archive_member_spec= 9288 case $host,$enable_shared in 9289 power*-*-aix[5-9]*,yes) 9290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9291 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9292 # Check whether --enable-aix-soname was given. 9293 if test ${enable_aix_soname+y} 9294 then : 9295 enableval=$enable_aix_soname; case $enableval in 9296 aix|svr4|both) 9297 ;; 9298 *) 9299 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 9300 ;; 9301 esac 9302 lt_cv_with_aix_soname=$enable_aix_soname 9303 else case e in #( 9304 e) # Check whether --with-aix-soname was given. 9305 if test ${with_aix_soname+y} 9306 then : 9307 withval=$with_aix_soname; case $withval in 9308 aix|svr4|both) 9309 ;; 9310 *) 9311 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9312 ;; 9313 esac 9314 lt_cv_with_aix_soname=$with_aix_soname 9315 else case e in #( 9316 e) if test ${lt_cv_with_aix_soname+y} 9317 then : 9318 printf %s "(cached) " >&6 9319 else case e in #( 9320 e) lt_cv_with_aix_soname=aix ;; 9321 esac 9322 fi 9323 ;; 9324 esac 9325 fi 9326 9327 enable_aix_soname=$lt_cv_with_aix_soname ;; 9328 esac 9329 fi 9330 9331 with_aix_soname=$enable_aix_soname 9332 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9333 printf '%s\n' "$with_aix_soname" >&6; } 9334 if test aix != "$with_aix_soname"; then 9335 # For the AIX way of multilib, we name the shared archive member 9336 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9337 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9338 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9339 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9340 if test 64 = "${OBJECT_MODE-32}"; then 9341 shared_archive_member_spec=shr_64 9342 else 9343 shared_archive_member_spec=shr 9344 fi 9345 fi 9346 ;; 9347 power*-*-aix[5-9]*,'') 9348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: for $host, specify if building shared libraries for versioning (svr4|both)" >&5 9349 printf '%s\n' "$as_me: WARNING: for $host, specify if building shared libraries for versioning (svr4|both)" >&2;} 9350 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9351 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9352 with_aix_soname=aix 9353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: (default) $with_aix_soname" >&5 9354 printf '%s\n' "(default) $with_aix_soname" >&6; } 9355 ;; 9356 *) 9357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9358 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9359 with_aix_soname=aix 9360 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: (default) $with_aix_soname" >&5 9361 printf '%s\n' "(default) $with_aix_soname" >&6; } 9362 ;; 9363 esac 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 # This can be used to rebuild libtool when needed 9375 LIBTOOL_DEPS=$ltmain 9376 9377 # Always use our own libtool. 9378 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 test -z "$LN_S" && LN_S="ln -s" 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 if test -n "${ZSH_VERSION+set}"; then 9425 setopt NO_GLOB_SUBST 9426 fi 9427 9428 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9429 printf %s "checking for objdir... " >&6; } 9430 if test ${lt_cv_objdir+y} 9431 then : 9432 printf %s "(cached) " >&6 9433 else case e in #( 9434 e) rm -f .libs 2>/dev/null 9435 mkdir .libs 2>/dev/null 9436 if test -d .libs; then 9437 lt_cv_objdir=.libs 9438 else 9439 # MS-DOS does not allow filenames that begin with a dot. 9440 lt_cv_objdir=_libs 9441 fi 9442 rmdir .libs 2>/dev/null ;; 9443 esac 9444 fi 9445 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9446 printf '%s\n' "$lt_cv_objdir" >&6; } 9447 objdir=$lt_cv_objdir 9448 9449 9450 9451 9452 9453 printf '%s\n' "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9454 9455 9456 9457 9458 case $host_os in 9459 aix3*) 9460 # AIX sometimes has problems with the GCC collect2 program. For some 9461 # reason, if we set the COLLECT_NAMES environment variable, the problems 9462 # vanish in a puff of smoke. 9463 if test set != "${COLLECT_NAMES+set}"; then 9464 COLLECT_NAMES= 9465 export COLLECT_NAMES 9466 fi 9467 ;; 9468 esac 9469 9470 # Global variables: 9471 ofile=libtool 9472 can_build_shared=yes 9473 9474 # All known linkers require a '.a' archive for static linking (except MSVC and 9475 # ICC, which need '.lib'). 9476 libext=a 9477 9478 with_gnu_ld=$lt_cv_prog_gnu_ld 9479 9480 old_CC=$CC 9481 old_CFLAGS=$CFLAGS 9482 9483 # Set sane defaults for various variables 9484 test -z "$CC" && CC=cc 9485 test -z "$LTCC" && LTCC=$CC 9486 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9487 test -z "$LD" && LD=ld 9488 test -z "$ac_objext" && ac_objext=o 9489 9490 func_cc_basename $compiler 9491 cc_basename=$func_cc_basename_result 9492 9493 9494 # Only perform the check for file, if the check method requires it 9495 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9496 case $deplibs_check_method in 9497 file_magic*) 9498 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9500 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9501 if test ${lt_cv_path_MAGIC_CMD+y} 9502 then : 9503 printf %s "(cached) " >&6 9504 else case e in #( 9505 e) case $MAGIC_CMD in 9506 [\\/*] | ?:[\\/]*) 9507 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9508 ;; 9509 *) 9510 lt_save_MAGIC_CMD=$MAGIC_CMD 9511 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9513 for ac_dir in $ac_dummy; do 9514 IFS=$lt_save_ifs 9515 test -z "$ac_dir" && ac_dir=. 9516 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9517 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9518 if test -n "$file_magic_test_file"; then 9519 case $deplibs_check_method in 9520 "file_magic "*) 9521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9522 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9524 $EGREP "$file_magic_regex" > /dev/null; then 9525 : 9526 else 9527 cat <<_LT_EOF 1>&2 9528 9529 *** Warning: the command libtool uses to detect shared libraries, 9530 *** $file_magic_cmd, produces output that libtool cannot recognize. 9531 *** The result is that libtool may fail to recognize shared libraries 9532 *** as such. This will affect the creation of libtool libraries that 9533 *** depend on shared libraries, but programs linked with such libtool 9534 *** libraries will work regardless of this problem. Nevertheless, you 9535 *** may want to report the problem to your system manager and/or to 9536 *** bug-libtool@gnu.org 9537 9538 _LT_EOF 9539 fi ;; 9540 esac 9541 fi 9542 break 9543 fi 9544 done 9545 IFS=$lt_save_ifs 9546 MAGIC_CMD=$lt_save_MAGIC_CMD 9547 ;; 9548 esac ;; 9549 esac 9550 fi 9551 9552 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9553 if test -n "$MAGIC_CMD"; then 9554 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9555 printf '%s\n' "$MAGIC_CMD" >&6; } 9556 else 9557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 9558 printf '%s\n' "no" >&6; } 9559 fi 9560 9561 9562 9563 9564 9565 if test -z "$lt_cv_path_MAGIC_CMD"; then 9566 if test -n "$ac_tool_prefix"; then 9567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9568 printf %s "checking for file... " >&6; } 9569 if test ${lt_cv_path_MAGIC_CMD+y} 9570 then : 9571 printf %s "(cached) " >&6 9572 else case e in #( 9573 e) case $MAGIC_CMD in 9574 [\\/*] | ?:[\\/]*) 9575 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9576 ;; 9577 *) 9578 lt_save_MAGIC_CMD=$MAGIC_CMD 9579 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9581 for ac_dir in $ac_dummy; do 9582 IFS=$lt_save_ifs 9583 test -z "$ac_dir" && ac_dir=. 9584 if test -f "$ac_dir/file"; then 9585 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9586 if test -n "$file_magic_test_file"; then 9587 case $deplibs_check_method in 9588 "file_magic "*) 9589 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9590 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9592 $EGREP "$file_magic_regex" > /dev/null; then 9593 : 9594 else 9595 cat <<_LT_EOF 1>&2 9596 9597 *** Warning: the command libtool uses to detect shared libraries, 9598 *** $file_magic_cmd, produces output that libtool cannot recognize. 9599 *** The result is that libtool may fail to recognize shared libraries 9600 *** as such. This will affect the creation of libtool libraries that 9601 *** depend on shared libraries, but programs linked with such libtool 9602 *** libraries will work regardless of this problem. Nevertheless, you 9603 *** may want to report the problem to your system manager and/or to 9604 *** bug-libtool@gnu.org 9605 9606 _LT_EOF 9607 fi ;; 9608 esac 9609 fi 9610 break 9611 fi 9612 done 9613 IFS=$lt_save_ifs 9614 MAGIC_CMD=$lt_save_MAGIC_CMD 9615 ;; 9616 esac ;; 9617 esac 9618 fi 9619 9620 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9621 if test -n "$MAGIC_CMD"; then 9622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9623 printf '%s\n' "$MAGIC_CMD" >&6; } 9624 else 9625 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 9626 printf '%s\n' "no" >&6; } 9627 fi 9628 9629 9630 else 9631 MAGIC_CMD=: 9632 fi 9633 fi 9634 9635 fi 9636 ;; 9637 esac 9638 9639 # Use C for the default configuration in the libtool script 9640 9641 lt_save_CC=$CC 9642 ac_ext=c 9643 ac_cpp='$CPP $CPPFLAGS' 9644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9646 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9647 9648 9649 # Source file extension for C test sources. 9650 ac_ext=c 9651 9652 # Object file extension for compiled C test sources. 9653 objext=o 9654 objext=$objext 9655 9656 # Code to be used in simple compile tests 9657 lt_simple_compile_test_code="int some_variable = 0;" 9658 9659 # Code to be used in simple link tests 9660 lt_simple_link_test_code='int main(void){return(0);}' 9661 9662 9663 9664 9665 9666 9667 9668 # If no C compiler was specified, use CC. 9669 LTCC=${LTCC-"$CC"} 9670 9671 # If no C compiler flags were specified, use CFLAGS. 9672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9673 9674 # Allow CC to be a program name with arguments. 9675 compiler=$CC 9676 9677 # Save the default compiler, since it gets overwritten when the other 9678 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9679 compiler_DEFAULT=$CC 9680 9681 # save warnings/boilerplate of simple test code 9682 ac_outfile=conftest.$ac_objext 9683 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9684 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9685 _lt_compiler_boilerplate=`cat conftest.err` 9686 $RM conftest* 9687 9688 ac_outfile=conftest.$ac_objext 9689 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9690 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9691 _lt_linker_boilerplate=`cat conftest.err` 9692 $RM -r conftest* 9693 9694 9695 ## CAVEAT EMPTOR: 9696 ## There is no encapsulation within the following macros, do not change 9697 ## the running order or otherwise move them around unless you know exactly 9698 ## what you are doing... 9699 if test -n "$compiler"; then 9700 9701 lt_prog_compiler_no_builtin_flag= 9702 9703 if test yes = "$GCC"; then 9704 case $cc_basename in 9705 nvcc*) 9706 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9707 *) 9708 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9709 esac 9710 9711 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9712 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9713 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9714 then : 9715 printf %s "(cached) " >&6 9716 else case e in #( 9717 e) lt_cv_prog_compiler_rtti_exceptions=no 9718 ac_outfile=conftest.$ac_objext 9719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9720 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9721 # Insert the option either (1) after the last *FLAGS variable, or 9722 # (2) before a word containing "conftest.", or (3) at the end. 9723 # Note that $ac_compile itself does not contain backslashes and begins 9724 # with a dollar sign (not a hyphen), so the echo should work correctly. 9725 # The option is referenced via a variable to avoid confusing sed. 9726 lt_compile=`echo "$ac_compile" | $SED \ 9727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9729 -e 's:$: $lt_compiler_flag:'` 9730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9731 (eval "$lt_compile" 2>conftest.err) 9732 ac_status=$? 9733 cat conftest.err >&5 9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9735 if (exit $ac_status) && test -s "$ac_outfile"; then 9736 # The compiler can only warn and ignore the option if not recognized 9737 # So say no if there are warnings other than the usual output. 9738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.expsym 9739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9740 if test ! -s conftest.er2 || diff conftest.expsym conftest.er2 >/dev/null; then 9741 lt_cv_prog_compiler_rtti_exceptions=yes 9742 fi 9743 fi 9744 $RM conftest* 9745 ;; 9746 esac 9747 fi 9748 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9749 printf '%s\n' "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9750 9751 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9752 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9753 else 9754 : 9755 fi 9756 9757 fi 9758 9759 9760 9761 9762 9763 9764 lt_prog_compiler_wl= 9765 lt_prog_compiler_pic= 9766 lt_prog_compiler_static= 9767 9768 9769 if test yes = "$GCC"; then 9770 lt_prog_compiler_wl='-Wl,' 9771 lt_prog_compiler_static='-static' 9772 9773 case $host_os in 9774 aix*) 9775 # All AIX code is PIC. 9776 if test ia64 = "$host_cpu"; then 9777 # AIX 5 now supports IA64 processor 9778 lt_prog_compiler_static='-Bstatic' 9779 fi 9780 lt_prog_compiler_pic='-fPIC' 9781 ;; 9782 9783 amigaos*) 9784 case $host_cpu in 9785 powerpc) 9786 # see comment about AmigaOS4 .so support 9787 lt_prog_compiler_pic='-fPIC' 9788 ;; 9789 m68k) 9790 # FIXME: we need at least 68020 code to build shared libraries, but 9791 # adding the '-m68020' flag to GCC prevents building anything better, 9792 # like '-m68040'. 9793 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9794 ;; 9795 esac 9796 ;; 9797 9798 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9799 # PIC is the default for these OSes. 9800 ;; 9801 9802 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9803 # This hack is so that the source file can tell whether it is being 9804 # built for inclusion in a dll (and should export symbols for example). 9805 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9806 # (--disable-auto-import) libraries 9807 lt_prog_compiler_pic='-DDLL_EXPORT' 9808 case $host_os in 9809 os2*) 9810 lt_prog_compiler_static='$wl-static' 9811 ;; 9812 esac 9813 ;; 9814 9815 darwin* | rhapsody*) 9816 # PIC is the default on this platform 9817 # Common symbols not allowed in MH_DYLIB files 9818 lt_prog_compiler_pic='-fno-common' 9819 ;; 9820 9821 haiku*) 9822 # PIC is the default for Haiku. 9823 # The "-static" flag exists, but is broken. 9824 lt_prog_compiler_static= 9825 ;; 9826 9827 hpux*) 9828 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9829 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9830 # sets the default TLS model and affects inlining. 9831 case $host_cpu in 9832 hppa*64*) 9833 # +Z the default 9834 ;; 9835 *) 9836 lt_prog_compiler_pic='-fPIC' 9837 ;; 9838 esac 9839 ;; 9840 9841 interix[3-9]*) 9842 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9843 # Instead, we relocate shared libraries at runtime. 9844 ;; 9845 9846 msdosdjgpp*) 9847 # Just because we use GCC doesn't mean we suddenly get shared libraries 9848 # on systems that don't support them. 9849 lt_prog_compiler_can_build_shared=no 9850 enable_shared=no 9851 ;; 9852 9853 *nto* | *qnx*) 9854 # QNX uses GNU C++, but need to define -shared option too, otherwise 9855 # it will coredump. 9856 lt_prog_compiler_pic='-fPIC -shared' 9857 ;; 9858 9859 sysv4*MP*) 9860 if test -d /usr/nec; then 9861 lt_prog_compiler_pic=-Kconform_pic 9862 fi 9863 ;; 9864 9865 *) 9866 lt_prog_compiler_pic='-fPIC' 9867 ;; 9868 esac 9869 9870 case $cc_basename in 9871 nvcc*) # Cuda Compiler Driver 2.2 9872 lt_prog_compiler_wl='-Xlinker ' 9873 if test -n "$lt_prog_compiler_pic"; then 9874 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9875 fi 9876 ;; 9877 esac 9878 else 9879 # PORTME Check for flag to pass linker flags through the system compiler. 9880 case $host_os in 9881 aix*) 9882 lt_prog_compiler_wl='-Wl,' 9883 if test ia64 = "$host_cpu"; then 9884 # AIX 5 now supports IA64 processor 9885 lt_prog_compiler_static='-Bstatic' 9886 else 9887 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.expsym' 9888 fi 9889 ;; 9890 9891 darwin* | rhapsody*) 9892 # PIC is the default on this platform 9893 # Common symbols not allowed in MH_DYLIB files 9894 lt_prog_compiler_pic='-fno-common' 9895 case $cc_basename in 9896 nagfor*) 9897 # NAG Fortran compiler 9898 lt_prog_compiler_wl='-Wl,-Wl,,' 9899 lt_prog_compiler_pic='-PIC' 9900 lt_prog_compiler_static='-Bstatic' 9901 ;; 9902 esac 9903 ;; 9904 9905 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9906 # This hack is so that the source file can tell whether it is being 9907 # built for inclusion in a dll (and should export symbols for example). 9908 lt_prog_compiler_pic='-DDLL_EXPORT' 9909 case $host_os in 9910 os2*) 9911 lt_prog_compiler_static='$wl-static' 9912 ;; 9913 esac 9914 ;; 9915 9916 hpux9* | hpux10* | hpux11*) 9917 lt_prog_compiler_wl='-Wl,' 9918 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9919 # not for PA HP-UX. 9920 case $host_cpu in 9921 hppa*64*|ia64*) 9922 # +Z the default 9923 ;; 9924 *) 9925 lt_prog_compiler_pic='+Z' 9926 ;; 9927 esac 9928 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9929 lt_prog_compiler_static='$wl-a ${wl}archive' 9930 ;; 9931 9932 irix5* | irix6* | nonstopux*) 9933 lt_prog_compiler_wl='-Wl,' 9934 # PIC (with -KPIC) is the default. 9935 lt_prog_compiler_static='-non_shared' 9936 ;; 9937 9938 *-mlibc) 9939 lt_prog_compiler_wl='-Wl,' 9940 lt_prog_compiler_pic='-fPIC' 9941 lt_prog_compiler_static='-static' 9942 ;; 9943 9944 linux* | ironclad*-gnu | k*bsd*-gnu | kopensolaris*-gnu | gnu* | freebsd*) 9945 case $cc_basename in 9946 # old Intel for x86_64, which still supported -KPIC. 9947 ecc*) 9948 lt_prog_compiler_wl='-Wl,' 9949 lt_prog_compiler_pic='-KPIC' 9950 lt_prog_compiler_static='-static' 9951 ;; 9952 *flang* | ftn | f18* | f95*) 9953 # Flang compiler. 9954 lt_prog_compiler_wl='-Wl,' 9955 lt_prog_compiler_pic='-fPIC' 9956 lt_prog_compiler_static='-static' 9957 ;; 9958 # icc used to be incompatible with GCC. 9959 # ICC 10 doesn't accept -KPIC any more. 9960 icc* | ifort* | icx* | ifx*) 9961 lt_prog_compiler_wl='-Wl,' 9962 lt_prog_compiler_pic='-fPIC' 9963 lt_prog_compiler_static='-static' 9964 ;; 9965 # Lahey Fortran 8.1. 9966 lf95*) 9967 lt_prog_compiler_wl='-Wl,' 9968 lt_prog_compiler_pic='--shared' 9969 lt_prog_compiler_static='--static' 9970 ;; 9971 nagfor*) 9972 # NAG Fortran compiler 9973 lt_prog_compiler_wl='-Wl,-Wl,,' 9974 lt_prog_compiler_pic='-PIC' 9975 lt_prog_compiler_static='-Bstatic' 9976 ;; 9977 tcc*) 9978 # Fabrice Bellard et al's Tiny C Compiler 9979 lt_prog_compiler_wl='-Wl,' 9980 lt_prog_compiler_pic='-fPIC' 9981 lt_prog_compiler_static='-static' 9982 ;; 9983 slimcc*) 9984 # Hsiang-Ying Fu and Jim Huang's x86_64 SlimCC compiler 9985 lt_prog_compiler_wl='-Wl,' 9986 lt_prog_compiler_pic='-fPIC' 9987 lt_prog_compiler_static='-static' 9988 ;; 9989 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9990 # Portland Group compilers (*not* the Pentium gcc compiler, 9991 # which looks to be a dead project) 9992 lt_prog_compiler_wl='-Wl,' 9993 lt_prog_compiler_pic='-fpic' 9994 lt_prog_compiler_static='-Bstatic' 9995 ;; 9996 ccc*) 9997 lt_prog_compiler_wl='-Wl,' 9998 # All Alpha code is PIC. 9999 lt_prog_compiler_static='-non_shared' 10000 ;; 10001 xl* | bgxl* | bgf* | mpixl*) 10002 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10003 lt_prog_compiler_wl='-Wl,' 10004 lt_prog_compiler_pic='-qpic' 10005 lt_prog_compiler_static='-qstaticlink' 10006 ;; 10007 *) 10008 case `$CC -V 2>&1 | $SED 5q` in 10009 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10010 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10011 lt_prog_compiler_pic='-KPIC' 10012 lt_prog_compiler_static='-Bstatic' 10013 lt_prog_compiler_wl='' 10014 ;; 10015 *Sun\ F* | *Sun*Fortran*) 10016 lt_prog_compiler_pic='-KPIC' 10017 lt_prog_compiler_static='-Bstatic' 10018 lt_prog_compiler_wl='-Qoption ld ' 10019 ;; 10020 *Sun\ C*) 10021 # Sun C 5.9 10022 lt_prog_compiler_pic='-KPIC' 10023 lt_prog_compiler_static='-Bstatic' 10024 lt_prog_compiler_wl='-Wl,' 10025 ;; 10026 *Intel*\ [CF]*Compiler*) 10027 lt_prog_compiler_wl='-Wl,' 10028 lt_prog_compiler_pic='-fPIC' 10029 lt_prog_compiler_static='-static' 10030 ;; 10031 *Portland\ Group*) 10032 lt_prog_compiler_wl='-Wl,' 10033 lt_prog_compiler_pic='-fpic' 10034 lt_prog_compiler_static='-Bstatic' 10035 ;; 10036 esac 10037 ;; 10038 esac 10039 ;; 10040 10041 newsos6) 10042 lt_prog_compiler_pic='-KPIC' 10043 lt_prog_compiler_static='-Bstatic' 10044 ;; 10045 10046 *nto* | *qnx*) 10047 # QNX uses GNU C++, but need to define -shared option too, otherwise 10048 # it will coredump. 10049 lt_prog_compiler_pic='-fPIC -shared' 10050 ;; 10051 10052 osf3* | osf4* | osf5*) 10053 lt_prog_compiler_wl='-Wl,' 10054 # All OSF/1 code is PIC. 10055 lt_prog_compiler_static='-non_shared' 10056 ;; 10057 10058 rdos*) 10059 lt_prog_compiler_static='-non_shared' 10060 ;; 10061 10062 serenity*) 10063 ;; 10064 10065 solaris*) 10066 lt_prog_compiler_pic='-KPIC' 10067 lt_prog_compiler_static='-Bstatic' 10068 case $cc_basename in 10069 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10070 lt_prog_compiler_wl='-Qoption ld ';; 10071 *) 10072 lt_prog_compiler_wl='-Wl,';; 10073 esac 10074 ;; 10075 10076 sunos4*) 10077 lt_prog_compiler_wl='-Qoption ld ' 10078 lt_prog_compiler_pic='-PIC' 10079 lt_prog_compiler_static='-Bstatic' 10080 ;; 10081 10082 sysv4 | sysv4.2uw2* | sysv4.3*) 10083 lt_prog_compiler_wl='-Wl,' 10084 lt_prog_compiler_pic='-KPIC' 10085 lt_prog_compiler_static='-Bstatic' 10086 ;; 10087 10088 sysv4*MP*) 10089 if test -d /usr/nec; then 10090 lt_prog_compiler_pic='-Kconform_pic' 10091 lt_prog_compiler_static='-Bstatic' 10092 fi 10093 ;; 10094 10095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10096 lt_prog_compiler_wl='-Wl,' 10097 lt_prog_compiler_pic='-KPIC' 10098 lt_prog_compiler_static='-Bstatic' 10099 ;; 10100 10101 unicos*) 10102 lt_prog_compiler_wl='-Wl,' 10103 lt_prog_compiler_can_build_shared=no 10104 ;; 10105 10106 uts4*) 10107 lt_prog_compiler_pic='-pic' 10108 lt_prog_compiler_static='-Bstatic' 10109 ;; 10110 10111 *) 10112 lt_prog_compiler_can_build_shared=no 10113 ;; 10114 esac 10115 fi 10116 10117 case $host_os in 10118 # For platforms that do not support PIC, -DPIC is meaningless: 10119 *djgpp*) 10120 lt_prog_compiler_pic= 10121 ;; 10122 *) 10123 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10124 ;; 10125 esac 10126 10127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10128 printf %s "checking for $compiler option to produce PIC... " >&6; } 10129 if test ${lt_cv_prog_compiler_pic+y} 10130 then : 10131 printf %s "(cached) " >&6 10132 else case e in #( 10133 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 10134 esac 10135 fi 10136 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10137 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; } 10138 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10139 10140 # 10141 # Check to make sure the PIC flag actually works. 10142 # 10143 if test -n "$lt_prog_compiler_pic"; then 10144 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10145 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10146 if test ${lt_cv_prog_compiler_pic_works+y} 10147 then : 10148 printf %s "(cached) " >&6 10149 else case e in #( 10150 e) lt_cv_prog_compiler_pic_works=no 10151 ac_outfile=conftest.$ac_objext 10152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10153 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10154 # Insert the option either (1) after the last *FLAGS variable, or 10155 # (2) before a word containing "conftest.", or (3) at the end. 10156 # Note that $ac_compile itself does not contain backslashes and begins 10157 # with a dollar sign (not a hyphen), so the echo should work correctly. 10158 # The option is referenced via a variable to avoid confusing sed. 10159 lt_compile=`echo "$ac_compile" | $SED \ 10160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10162 -e 's:$: $lt_compiler_flag:'` 10163 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10164 (eval "$lt_compile" 2>conftest.err) 10165 ac_status=$? 10166 cat conftest.err >&5 10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10168 if (exit $ac_status) && test -s "$ac_outfile"; then 10169 # The compiler can only warn and ignore the option if not recognized 10170 # So say no if there are warnings other than the usual output. 10171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.expsym 10172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10173 if test ! -s conftest.er2 || diff conftest.expsym conftest.er2 >/dev/null; then 10174 lt_cv_prog_compiler_pic_works=yes 10175 fi 10176 fi 10177 $RM conftest* 10178 ;; 10179 esac 10180 fi 10181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10182 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; } 10183 10184 if test yes = "$lt_cv_prog_compiler_pic_works"; then 10185 case $lt_prog_compiler_pic in 10186 "" | " "*) ;; 10187 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10188 esac 10189 else 10190 lt_prog_compiler_pic= 10191 lt_prog_compiler_can_build_shared=no 10192 fi 10193 10194 fi 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 # 10207 # Check to make sure the static flag actually works. 10208 # 10209 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10211 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10212 if test ${lt_cv_prog_compiler_static_works+y} 10213 then : 10214 printf %s "(cached) " >&6 10215 else case e in #( 10216 e) lt_cv_prog_compiler_static_works=no 10217 save_LDFLAGS=$LDFLAGS 10218 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10219 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10221 # The linker can only warn and ignore the option if not recognized 10222 # So say no if there are warnings 10223 if test -s conftest.err; then 10224 # Append any errors to the config.log. 10225 cat conftest.err 1>&5 10226 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.expsym 10227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10228 if diff conftest.expsym conftest.er2 >/dev/null; then 10229 lt_cv_prog_compiler_static_works=yes 10230 fi 10231 else 10232 lt_cv_prog_compiler_static_works=yes 10233 fi 10234 fi 10235 $RM -r conftest* 10236 LDFLAGS=$save_LDFLAGS 10237 ;; 10238 esac 10239 fi 10240 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10241 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; } 10242 10243 if test yes = "$lt_cv_prog_compiler_static_works"; then 10244 : 10245 else 10246 lt_prog_compiler_static= 10247 fi 10248 10249 10250 10251 10252 10253 10254 10255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10256 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10257 if test ${lt_cv_prog_compiler_c_o+y} 10258 then : 10259 printf %s "(cached) " >&6 10260 else case e in #( 10261 e) lt_cv_prog_compiler_c_o=no 10262 $RM -r conftest 2>/dev/null 10263 mkdir conftest 10264 cd conftest 10265 mkdir out 10266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10267 10268 lt_compiler_flag="-o out/conftest2.$ac_objext" 10269 # Insert the option either (1) after the last *FLAGS variable, or 10270 # (2) before a word containing "conftest.", or (3) at the end. 10271 # Note that $ac_compile itself does not contain backslashes and begins 10272 # with a dollar sign (not a hyphen), so the echo should work correctly. 10273 lt_compile=`echo "$ac_compile" | $SED \ 10274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10276 -e 's:$: $lt_compiler_flag:'` 10277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10278 (eval "$lt_compile" 2>out/conftest.err) 10279 ac_status=$? 10280 cat out/conftest.err >&5 10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10282 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10283 then 10284 # The compiler can only warn and ignore the option if not recognized 10285 # So say no if there are warnings 10286 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.expsym 10287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10288 if test ! -s out/conftest.er2 || diff out/conftest.expsym out/conftest.er2 >/dev/null; then 10289 lt_cv_prog_compiler_c_o=yes 10290 fi 10291 fi 10292 chmod u+w . 2>&5 10293 $RM conftest* 10294 # SGI C++ compiler will create directory out/ii_files/ for 10295 # template instantiation 10296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10297 $RM out/* && rmdir out 10298 cd .. 10299 $RM -r conftest 10300 $RM conftest* 10301 ;; 10302 esac 10303 fi 10304 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10305 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; } 10306 10307 10308 10309 10310 10311 10312 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10313 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10314 if test ${lt_cv_prog_compiler_c_o+y} 10315 then : 10316 printf %s "(cached) " >&6 10317 else case e in #( 10318 e) lt_cv_prog_compiler_c_o=no 10319 $RM -r conftest 2>/dev/null 10320 mkdir conftest 10321 cd conftest 10322 mkdir out 10323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10324 10325 lt_compiler_flag="-o out/conftest2.$ac_objext" 10326 # Insert the option either (1) after the last *FLAGS variable, or 10327 # (2) before a word containing "conftest.", or (3) at the end. 10328 # Note that $ac_compile itself does not contain backslashes and begins 10329 # with a dollar sign (not a hyphen), so the echo should work correctly. 10330 lt_compile=`echo "$ac_compile" | $SED \ 10331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10333 -e 's:$: $lt_compiler_flag:'` 10334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10335 (eval "$lt_compile" 2>out/conftest.err) 10336 ac_status=$? 10337 cat out/conftest.err >&5 10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10339 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10340 then 10341 # The compiler can only warn and ignore the option if not recognized 10342 # So say no if there are warnings 10343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.expsym 10344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10345 if test ! -s out/conftest.er2 || diff out/conftest.expsym out/conftest.er2 >/dev/null; then 10346 lt_cv_prog_compiler_c_o=yes 10347 fi 10348 fi 10349 chmod u+w . 2>&5 10350 $RM conftest* 10351 # SGI C++ compiler will create directory out/ii_files/ for 10352 # template instantiation 10353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10354 $RM out/* && rmdir out 10355 cd .. 10356 $RM -r conftest 10357 $RM conftest* 10358 ;; 10359 esac 10360 fi 10361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10362 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; } 10363 10364 10365 10366 10367 hard_links=nottested 10368 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10369 # do not overwrite the value of need_locks provided by the user 10370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10371 printf %s "checking if we can lock with hard links... " >&6; } 10372 hard_links=yes 10373 $RM conftest* 10374 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10375 touch conftest.a 10376 ln conftest.a conftest.b 2>&5 || hard_links=no 10377 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10379 printf '%s\n' "$hard_links" >&6; } 10380 if test no = "$hard_links"; then 10381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10382 printf '%s\n' "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10383 need_locks=warn 10384 fi 10385 else 10386 need_locks=no 10387 fi 10388 10389 10390 10391 10392 10393 10394 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10395 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10396 10397 runpath_var= 10398 allow_undefined_flag= 10399 always_export_symbols=no 10400 archive_cmds= 10401 archive_expsym_cmds= 10402 compiler_needs_object=no 10403 enable_shared_with_static_runtimes=no 10404 export_dynamic_flag_spec= 10405 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10406 hardcode_automatic=no 10407 hardcode_direct=no 10408 hardcode_direct_absolute=no 10409 hardcode_libdir_flag_spec= 10410 hardcode_libdir_separator= 10411 hardcode_minus_L=no 10412 hardcode_shlibpath_var=unsupported 10413 inherit_rpath=no 10414 link_all_deplibs=unknown 10415 module_cmds= 10416 module_expsym_cmds= 10417 old_archive_from_new_cmds= 10418 old_archive_from_expsyms_cmds= 10419 thread_safe_flag_spec= 10420 whole_archive_flag_spec= 10421 # include_expsyms should be a list of space-separated symbols to be *always* 10422 # included in the symbol list 10423 include_expsyms= 10424 # exclude_expsyms can be an extended regexp of symbols to exclude 10425 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10426 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10427 # as well as any symbol that contains 'd'. 10428 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10429 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10430 # platforms (ab)use it in PIC code, but their linkers get confused if 10431 # the symbol is explicitly referenced. Since portable code cannot 10432 # rely on this symbol name, it's probably fine to never include it in 10433 # preloaded symbol tables. 10434 # Exclude shared library initialization/finalization symbols. 10435 extract_expsyms_cmds= 10436 10437 case $host_os in 10438 cygwin* | mingw* | windows* | pw32* | cegcc*) 10439 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10440 # When not using gcc, we currently assume that we are using 10441 # Microsoft Visual C++ or Intel C++ Compiler. 10442 if test yes != "$GCC"; then 10443 with_gnu_ld=no 10444 fi 10445 ;; 10446 interix*) 10447 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10448 with_gnu_ld=yes 10449 ;; 10450 esac 10451 10452 ld_shlibs=yes 10453 10454 # On some targets, GNU ld is compatible enough with the native linker 10455 # that we're better off using the native interface for both. 10456 lt_use_gnu_ld_interface=no 10457 if test yes = "$with_gnu_ld"; then 10458 case $host_os in 10459 aix*) 10460 # The AIX port of GNU ld has always aspired to compatibility 10461 # with the native linker. However, as the warning in the GNU ld 10462 # block says, versions before 2.19.5* couldn't really create working 10463 # shared libraries, regardless of the interface used. 10464 case `$LD -v 2>&1` in 10465 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10466 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10467 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10468 *) 10469 lt_use_gnu_ld_interface=yes 10470 ;; 10471 esac 10472 ;; 10473 *) 10474 lt_use_gnu_ld_interface=yes 10475 ;; 10476 esac 10477 fi 10478 10479 if test yes = "$lt_use_gnu_ld_interface"; then 10480 # If archive_cmds runs LD, not CC, wlarc should be empty 10481 wlarc='$wl' 10482 10483 # Set some defaults for GNU ld with shared library support. These 10484 # are reset later if shared libraries are not supported. Putting them 10485 # here allows them to be overridden if necessary. 10486 runpath_var=LD_RUN_PATH 10487 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10488 export_dynamic_flag_spec='$wl--export-dynamic' 10489 # ancient GNU ld didn't support --whole-archive et. al. 10490 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10491 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10492 else 10493 whole_archive_flag_spec= 10494 fi 10495 supports_anon_versioning=no 10496 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10497 *GNU\ gold*) supports_anon_versioning=yes ;; 10498 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10499 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10500 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10501 *\ 2.11.*) ;; # other 2.11 versions 10502 *) supports_anon_versioning=yes ;; 10503 esac 10504 10505 # See if GNU ld supports shared libraries. 10506 case $host_os in 10507 aix[3-9]*) 10508 # On AIX/PPC, the GNU linker is very broken 10509 if test ia64 != "$host_cpu"; then 10510 ld_shlibs=no 10511 cat <<_LT_EOF 1>&2 10512 10513 *** Warning: the GNU linker, at least up to release 2.19, is reported 10514 *** to be unable to reliably create shared libraries on AIX. 10515 *** Therefore, libtool is disabling shared libraries support. If you 10516 *** really care for shared libraries, you may want to install binutils 10517 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10518 *** You will then need to restart the configuration process. 10519 10520 _LT_EOF 10521 fi 10522 ;; 10523 10524 amigaos*) 10525 case $host_cpu in 10526 powerpc) 10527 # see comment about AmigaOS4 .so support 10528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10529 archive_expsym_cmds='' 10530 ;; 10531 m68k) 10532 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10533 hardcode_libdir_flag_spec='-L$libdir' 10534 hardcode_minus_L=yes 10535 ;; 10536 esac 10537 ;; 10538 10539 beos*) 10540 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10541 allow_undefined_flag=unsupported 10542 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10543 # support --undefined. This deserves some investigation. FIXME 10544 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10545 else 10546 ld_shlibs=no 10547 fi 10548 ;; 10549 10550 cygwin* | mingw* | windows* | pw32* | cegcc*) 10551 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10552 # as there is no search path for DLLs. 10553 hardcode_libdir_flag_spec='-L$libdir' 10554 export_dynamic_flag_spec='$wl--export-all-symbols' 10555 allow_undefined_flag=unsupported 10556 always_export_symbols=no 10557 enable_shared_with_static_runtimes=yes 10558 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10559 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10560 file_list_spec='@' 10561 10562 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10564 # If the export-symbols file already is a .def file, use it as 10565 # is; otherwise, prepend EXPORTS... 10566 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10567 cp $export_symbols $output_objdir/$soname.def; 10568 else 10569 echo EXPORTS > $output_objdir/$soname.def; 10570 cat $export_symbols >> $output_objdir/$soname.def; 10571 fi~ 10572 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10573 else 10574 ld_shlibs=no 10575 fi 10576 ;; 10577 10578 haiku*) 10579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10580 link_all_deplibs=no 10581 ;; 10582 10583 os2*) 10584 hardcode_libdir_flag_spec='-L$libdir' 10585 hardcode_minus_L=yes 10586 allow_undefined_flag=unsupported 10587 shrext_cmds=.dll 10588 archive_cmds='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10589 echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10590 echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10591 echo EXPORTS >> $output_objdir/$libname.def~ 10592 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10593 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10594 emximp -o $lib $output_objdir/$libname.def' 10595 archive_expsym_cmds='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10596 echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10597 echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10598 echo EXPORTS >> $output_objdir/$libname.def~ 10599 prefix_cmds="$SED"~ 10600 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10601 prefix_cmds="$prefix_cmds -e 1d"; 10602 fi~ 10603 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10604 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10605 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10606 emximp -o $lib $output_objdir/$libname.def' 10607 enable_shared_with_static_runtimes=yes 10608 file_list_spec='@' 10609 ;; 10610 10611 interix[3-9]*) 10612 hardcode_direct=no 10613 hardcode_shlibpath_var=no 10614 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10615 export_dynamic_flag_spec='$wl-E' 10616 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10617 # Instead, shared libraries are loaded at an image base (0x10000000 by 10618 # default) and relocated if they conflict, which is a slow very memory 10619 # consuming and fragmenting process. To avoid this, we pick a random, 10620 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10621 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10623 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10624 ;; 10625 10626 *-mlibc) 10627 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10628 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10629 ;; 10630 10631 gnu* | linux* | tpf* | ironclad*-gnu | k*bsd*-gnu | kopensolaris*-gnu) 10632 tmp_diet=no 10633 if test linux-dietlibc = "$host_os"; then 10634 case $cc_basename in 10635 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10636 esac 10637 fi 10638 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10639 && test no = "$tmp_diet" 10640 then 10641 tmp_addflag=' $pic_flag' 10642 tmp_sharedflag='-shared' 10643 case $cc_basename,$host_cpu in 10644 pgcc*) # Portland Group C compiler 10645 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10646 tmp_addflag=' $pic_flag' 10647 ;; 10648 pgf77* | pgf90* | pgf95* | pgfortran*) 10649 # Portland Group f77 and f90 compilers 10650 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10651 tmp_addflag=' $pic_flag -Mnomain' ;; 10652 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10653 tmp_addflag=' -i_dynamic' ;; 10654 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10655 tmp_addflag=' -i_dynamic -nofor_main' ;; 10656 ifc* | ifort* | ifx*) # Intel Fortran compiler 10657 tmp_addflag=' -nofor_main' ;; 10658 lf95*) # Lahey Fortran 8.1 10659 whole_archive_flag_spec= 10660 tmp_sharedflag='--shared' ;; 10661 nagfor*) # NAGFOR 5.3 10662 tmp_sharedflag='-Wl,-shared' ;; 10663 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10664 tmp_sharedflag='-qmkshrobj' 10665 tmp_addflag= ;; 10666 nvcc*) # Cuda Compiler Driver 2.2 10667 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10668 compiler_needs_object=yes 10669 ;; 10670 esac 10671 case `$CC -V 2>&1 | $SED 5q` in 10672 *Sun\ C*) # Sun C 5.9 10673 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 10674 compiler_needs_object=yes 10675 tmp_sharedflag='-G' ;; 10676 *Sun\ F*) # Sun Fortran 8.3 10677 tmp_sharedflag='-G' ;; 10678 esac 10679 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10680 10681 if test yes = "$supports_anon_versioning"; then 10682 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10683 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10684 echo "local: *; };" >> $output_objdir/$libname.ver~ 10685 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10686 fi 10687 10688 case $cc_basename in 10689 tcc*) 10690 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10691 export_dynamic_flag_spec='-rdynamic' 10692 ;; 10693 xlf* | bgf* | bgxlf* | mpixlf*) 10694 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10695 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10696 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10697 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10698 if test yes = "$supports_anon_versioning"; then 10699 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10700 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10701 echo "local: *; };" >> $output_objdir/$libname.ver~ 10702 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10703 fi 10704 ;; 10705 esac 10706 else 10707 ld_shlibs=no 10708 fi 10709 ;; 10710 10711 netbsd* | netbsdelf*-gnu) 10712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10713 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10714 wlarc= 10715 else 10716 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10717 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10718 fi 10719 ;; 10720 10721 solaris*) 10722 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10723 ld_shlibs=no 10724 cat <<_LT_EOF 1>&2 10725 10726 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10727 *** create shared libraries on Solaris systems. Therefore, libtool 10728 *** is disabling shared libraries support. We urge you to upgrade GNU 10729 *** binutils to release 2.9.1 or newer. Another option is to modify 10730 *** your PATH or compiler configuration so that the native linker is 10731 *** used, and then restart. 10732 10733 _LT_EOF 10734 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10736 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10737 else 10738 ld_shlibs=no 10739 fi 10740 ;; 10741 10742 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10743 case `$LD -v 2>&1` in 10744 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10745 ld_shlibs=no 10746 cat <<_LT_EOF 1>&2 10747 10748 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10749 *** reliably create shared libraries on SCO systems. Therefore, libtool 10750 *** is disabling shared libraries support. We urge you to upgrade GNU 10751 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10752 *** your PATH or compiler configuration so that the native linker is 10753 *** used, and then restart. 10754 10755 _LT_EOF 10756 ;; 10757 *) 10758 # For security reasons, it is highly recommended that you always 10759 # use absolute paths for naming shared libraries, and exclude the 10760 # DT_RUNPATH tag from executables and libraries. But doing so 10761 # requires that you compile everything twice, which is a pain. 10762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10763 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10766 else 10767 ld_shlibs=no 10768 fi 10769 ;; 10770 esac 10771 ;; 10772 10773 sunos4*) 10774 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10775 wlarc= 10776 hardcode_direct=yes 10777 hardcode_shlibpath_var=no 10778 ;; 10779 10780 *) 10781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10782 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10783 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10784 else 10785 ld_shlibs=no 10786 fi 10787 ;; 10788 esac 10789 10790 if test no = "$ld_shlibs"; then 10791 runpath_var= 10792 hardcode_libdir_flag_spec= 10793 export_dynamic_flag_spec= 10794 whole_archive_flag_spec= 10795 fi 10796 else 10797 # PORTME fill in a description of your system's linker (not GNU ld) 10798 case $host_os in 10799 aix3*) 10800 allow_undefined_flag=unsupported 10801 always_export_symbols=yes 10802 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 10803 # Note: this linker hardcodes the directories in LIBPATH if there 10804 # are no directories specified by -L. 10805 hardcode_minus_L=yes 10806 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10807 # Neither direct hardcoding nor static linking is supported with a 10808 # broken collect2. 10809 hardcode_direct=unsupported 10810 fi 10811 ;; 10812 10813 aix[4-9]*) 10814 if test ia64 = "$host_cpu"; then 10815 # On IA64, the linker does run time linking by default, so we don't 10816 # have to do anything special. 10817 aix_use_runtimelinking=no 10818 exp_sym_flag='-Bexport' 10819 no_entry_flag= 10820 else 10821 # If we're using GNU nm, then we don't want the "-C" option. 10822 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10823 # Without the "-l" option, or with the "-B" option, AIX nm treats 10824 # weak defined symbols like other global defined symbols, whereas 10825 # GNU nm marks them as "W". 10826 # While the 'weak' keyword is ignored in the Export File, we need 10827 # it in the Import File for the 'aix-soname' feature, so we have 10828 # to replace the "-B" option with "-P" for AIX nm. 10829 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10830 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10831 else 10832 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10833 fi 10834 aix_use_runtimelinking=no 10835 10836 # Test if we are trying to use run time linking or normal 10837 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10838 # have runtime linking enabled, and use it for executables. 10839 # For shared libraries, we enable/disable runtime linking 10840 # depending on the kind of the shared library created - 10841 # when "with_aix_soname,aix_use_runtimelinking" is: 10842 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10843 # "aix,yes" lib.so shared, rtl:yes, for executables 10844 # lib.a static archive 10845 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10846 # lib.a(lib.so.V) shared, rtl:no, for executables 10847 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10848 # lib.a(lib.so.V) shared, rtl:no 10849 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10850 # lib.a static archive 10851 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10852 for ld_flag in $LDFLAGS; do 10853 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10854 aix_use_runtimelinking=yes 10855 break 10856 fi 10857 done 10858 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10859 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10860 # so we don't have lib.a shared libs to link our executables. 10861 # We have to force runtime linking in this case. 10862 aix_use_runtimelinking=yes 10863 LDFLAGS="$LDFLAGS -Wl,-brtl" 10864 fi 10865 ;; 10866 esac 10867 10868 exp_sym_flag='-bexport' 10869 no_entry_flag='-bnoentry' 10870 fi 10871 10872 # When large executables or shared objects are built, AIX ld can 10873 # have problems creating the table of contents. If linking a library 10874 # or program results in "error TOC overflow" add -mminimal-toc to 10875 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10876 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10877 10878 archive_cmds='' 10879 hardcode_direct=yes 10880 hardcode_direct_absolute=yes 10881 hardcode_libdir_separator=':' 10882 link_all_deplibs=yes 10883 file_list_spec='$wl-f,' 10884 case $with_aix_soname,$aix_use_runtimelinking in 10885 aix,*) ;; # traditional, no import file 10886 svr4,* | *,yes) # use import file 10887 # The Import File defines what to hardcode. 10888 hardcode_direct=no 10889 hardcode_direct_absolute=no 10890 ;; 10891 esac 10892 10893 if test yes = "$GCC"; then 10894 case $host_os in aix4.[012]|aix4.[012].*) 10895 # We only want to do this on AIX 4.2 and lower, the check 10896 # below for broken collect2 doesn't work under 4.3+ 10897 collect2name=`$CC -print-prog-name=collect2` 10898 if test -f "$collect2name" && 10899 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10900 then 10901 # We have reworked collect2 10902 : 10903 else 10904 # We have old collect2 10905 hardcode_direct=unsupported 10906 # It fails to find uninstalled libraries when the uninstalled 10907 # path is not listed in the libpath. Setting hardcode_minus_L 10908 # to unsupported forces relinking 10909 hardcode_minus_L=yes 10910 hardcode_libdir_flag_spec='-L$libdir' 10911 hardcode_libdir_separator= 10912 fi 10913 ;; 10914 esac 10915 shared_flag='-shared' 10916 if test yes = "$aix_use_runtimelinking"; then 10917 shared_flag="$shared_flag "'$wl-G' 10918 fi 10919 # Need to ensure runtime linking is disabled for the traditional 10920 # shared library, or the linker may eventually find shared libraries 10921 # /with/ Import File - we do not want to mix them. 10922 shared_flag_aix='-shared' 10923 shared_flag_svr4='-shared $wl-G' 10924 else 10925 # not using gcc 10926 if test ia64 = "$host_cpu"; then 10927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10928 # chokes on -Wl,-G. The following line is correct: 10929 shared_flag='-G' 10930 else 10931 if test yes = "$aix_use_runtimelinking"; then 10932 shared_flag='$wl-G' 10933 else 10934 shared_flag='$wl-bM:SRE' 10935 fi 10936 shared_flag_aix='$wl-bM:SRE' 10937 shared_flag_svr4='$wl-G' 10938 fi 10939 fi 10940 10941 export_dynamic_flag_spec='$wl-bexpall' 10942 # It seems that -bexpall does not export symbols beginning with 10943 # underscore (_), so it is better to generate a list of symbols to export. 10944 always_export_symbols=yes 10945 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10946 # Warning - without using the other runtime loading flags (-brtl), 10947 # -berok will link without error, but may produce a broken library. 10948 allow_undefined_flag='-berok' 10949 # Determine the default libpath from the value encoded in an 10950 # empty executable. 10951 if test set = "${lt_cv_aix_libpath+set}"; then 10952 aix_libpath=$lt_cv_aix_libpath 10953 else 10954 if test ${lt_cv_aix_libpath_+y} 10955 then : 10956 printf %s "(cached) " >&6 10957 else case e in #( 10958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10959 /* end confdefs.h. */ 10960 10961 int 10962 main (void) 10963 { 10964 10965 ; 10966 return 0; 10967 } 10968 _ACEOF 10969 if ac_fn_c_try_link "$LINENO" 10970 then : 10971 10972 lt_aix_libpath_sed=' 10973 /Import File Strings/,/^$/ { 10974 /^0/ { 10975 s/^0 *\([^ ]*\) *$/\1/ 10976 p 10977 } 10978 }' 10979 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10980 # Check for a 64-bit object if we didn't find anything. 10981 if test -z "$lt_cv_aix_libpath_"; then 10982 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10983 fi 10984 fi 10985 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10986 conftest$ac_exeext conftest.$ac_ext 10987 if test -z "$lt_cv_aix_libpath_"; then 10988 lt_cv_aix_libpath_=/usr/lib:/lib 10989 fi 10990 ;; 10991 esac 10992 fi 10993 10994 aix_libpath=$lt_cv_aix_libpath_ 10995 fi 10996 10997 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10998 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10999 else 11000 if test ia64 = "$host_cpu"; then 11001 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11002 allow_undefined_flag="-z nodefs" 11003 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 11004 else 11005 # Determine the default libpath from the value encoded in an 11006 # empty executable. 11007 if test set = "${lt_cv_aix_libpath+set}"; then 11008 aix_libpath=$lt_cv_aix_libpath 11009 else 11010 if test ${lt_cv_aix_libpath_+y} 11011 then : 11012 printf %s "(cached) " >&6 11013 else case e in #( 11014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11015 /* end confdefs.h. */ 11016 11017 int 11018 main (void) 11019 { 11020 11021 ; 11022 return 0; 11023 } 11024 _ACEOF 11025 if ac_fn_c_try_link "$LINENO" 11026 then : 11027 11028 lt_aix_libpath_sed=' 11029 /Import File Strings/,/^$/ { 11030 /^0/ { 11031 s/^0 *\([^ ]*\) *$/\1/ 11032 p 11033 } 11034 }' 11035 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11036 # Check for a 64-bit object if we didn't find anything. 11037 if test -z "$lt_cv_aix_libpath_"; then 11038 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11039 fi 11040 fi 11041 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11042 conftest$ac_exeext conftest.$ac_ext 11043 if test -z "$lt_cv_aix_libpath_"; then 11044 lt_cv_aix_libpath_=/usr/lib:/lib 11045 fi 11046 ;; 11047 esac 11048 fi 11049 11050 aix_libpath=$lt_cv_aix_libpath_ 11051 fi 11052 11053 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11054 # Warning - without using the other run time loading flags, 11055 # -berok will link without error, but may produce a broken library. 11056 no_undefined_flag=' $wl-bernotok' 11057 allow_undefined_flag=' $wl-berok' 11058 if test yes = "$with_gnu_ld"; then 11059 # We only use this code for GNU lds that support --whole-archive. 11060 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11061 else 11062 # Exported symbols can be pulled into shared objects from archives 11063 whole_archive_flag_spec='$convenience' 11064 fi 11065 archive_cmds_need_lc=yes 11066 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11067 # -brtl affects multiple linker settings, -berok does not and is overridden later 11068 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11069 if test svr4 != "$with_aix_soname"; then 11070 # This is similar to how AIX traditionally builds its shared libraries. 11071 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11072 fi 11073 if test aix != "$with_aix_soname"; then 11074 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11075 else 11076 # used by -dlpreopen to get the symbols 11077 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11078 fi 11079 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11080 fi 11081 fi 11082 ;; 11083 11084 amigaos*) 11085 case $host_cpu in 11086 powerpc) 11087 # see comment about AmigaOS4 .so support 11088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11089 archive_expsym_cmds='' 11090 ;; 11091 m68k) 11092 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 11093 hardcode_libdir_flag_spec='-L$libdir' 11094 hardcode_minus_L=yes 11095 ;; 11096 esac 11097 ;; 11098 11099 bsdi[45]*) 11100 export_dynamic_flag_spec=-rdynamic 11101 ;; 11102 11103 cygwin* | mingw* | windows* | pw32* | cegcc*) 11104 # When not using gcc, we currently assume that we are using 11105 # Microsoft Visual C++ or Intel C++ Compiler. 11106 # hardcode_libdir_flag_spec is actually meaningless, as there is 11107 # no search path for DLLs. 11108 case $cc_basename in 11109 cl* | icl* | icx* | icpx*) 11110 # Native MSVC and Intel compilers 11111 hardcode_libdir_flag_spec=' ' 11112 allow_undefined_flag=unsupported 11113 always_export_symbols=yes 11114 file_list_spec='@' 11115 # Tell ltmain to make .lib files, not .a files. 11116 libext=lib 11117 # Tell ltmain to make .dll files, not .so files. 11118 shrext_cmds=.dll 11119 # FIXME: Setting linknames here is a bad hack. 11120 # A check exists to verify if there are linker flags, which will use 11121 # different commands when linking. 11122 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11123 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11124 cp "$export_symbols" "$output_objdir/$soname.def"; 11125 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.expsym"; 11126 else 11127 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.expsym; 11128 fi~ 11129 if test -z "$linker_flags"; then 11130 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.expsym" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"; 11131 else 11132 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.expsym" -Wl,$linker_flags-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"; 11133 fi~ 11134 linknames=' 11135 # The linker will not automatically build a static lib if we build a DLL. 11136 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11137 enable_shared_with_static_runtimes=yes 11138 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11140 # Don't use ranlib 11141 old_postinstall_cmds='chmod 644 $oldlib' 11142 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11143 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11144 case $lt_outputfile in 11145 *.exe|*.EXE) ;; 11146 *) 11147 lt_outputfile=$lt_outputfile.exe 11148 lt_tool_outputfile=$lt_tool_outputfile.exe 11149 ;; 11150 esac~ 11151 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11152 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11153 $RM "$lt_outputfile.manifest"; 11154 fi' 11155 ;; 11156 *) 11157 # Assume MSVC and ICC wrapper 11158 hardcode_libdir_flag_spec=' ' 11159 allow_undefined_flag=unsupported 11160 # Tell ltmain to make .lib files, not .a files. 11161 libext=lib 11162 # Tell ltmain to make .dll files, not .so files. 11163 shrext_cmds=.dll 11164 # FIXME: Setting linknames here is a bad hack. 11165 archive_cmds='$CC -Fe$lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11166 # The linker will automatically build a .lib file if we build a DLL. 11167 old_archive_from_new_cmds='true' 11168 # FIXME: Should let the user specify the lib program. 11169 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11170 enable_shared_with_static_runtimes=yes 11171 ;; 11172 esac 11173 ;; 11174 11175 darwin* | rhapsody*) 11176 11177 11178 archive_cmds_need_lc=no 11179 hardcode_direct=no 11180 hardcode_automatic=yes 11181 hardcode_shlibpath_var=unsupported 11182 if test yes = "$lt_cv_ld_force_load"; then 11183 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 11184 11185 else 11186 whole_archive_flag_spec='' 11187 fi 11188 link_all_deplibs=yes 11189 allow_undefined_flag=$_lt_dar_allow_undefined 11190 case $cc_basename in 11191 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11192 *) _lt_dar_can_shared=$GCC ;; 11193 esac 11194 if test yes = "$_lt_dar_can_shared"; then 11195 output_verbose_link_cmd=func_echo_all 11196 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11197 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11198 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 11199 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 11200 11201 else 11202 ld_shlibs=no 11203 fi 11204 11205 ;; 11206 11207 dgux*) 11208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11209 hardcode_libdir_flag_spec='-L$libdir' 11210 hardcode_shlibpath_var=no 11211 ;; 11212 11213 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11214 # support. Future versions do this automatically, but an explicit c++rt0.o 11215 # does not break anything, and helps significantly (at the cost of a little 11216 # extra space). 11217 freebsd2.2*) 11218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11219 hardcode_libdir_flag_spec='-R$libdir' 11220 hardcode_direct=yes 11221 hardcode_shlibpath_var=no 11222 ;; 11223 11224 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11225 freebsd2.*) 11226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11227 hardcode_direct=yes 11228 hardcode_minus_L=yes 11229 hardcode_shlibpath_var=no 11230 ;; 11231 11232 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11233 freebsd* | dragonfly* | midnightbsd*) 11234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11235 hardcode_libdir_flag_spec='-R$libdir' 11236 hardcode_direct=yes 11237 hardcode_shlibpath_var=no 11238 ;; 11239 11240 hpux9*) 11241 if test yes = "$GCC"; then 11242 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11243 else 11244 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11245 fi 11246 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11247 hardcode_libdir_separator=: 11248 hardcode_direct=yes 11249 11250 # hardcode_minus_L: Not really in the search PATH, 11251 # but as the default location of the library. 11252 hardcode_minus_L=yes 11253 export_dynamic_flag_spec='$wl-E' 11254 ;; 11255 11256 hpux10*) 11257 if test yes,no = "$GCC,$with_gnu_ld"; then 11258 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11259 else 11260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11261 fi 11262 if test no = "$with_gnu_ld"; then 11263 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11264 hardcode_libdir_separator=: 11265 hardcode_direct=yes 11266 hardcode_direct_absolute=yes 11267 export_dynamic_flag_spec='$wl-E' 11268 # hardcode_minus_L: Not really in the search PATH, 11269 # but as the default location of the library. 11270 hardcode_minus_L=yes 11271 fi 11272 ;; 11273 11274 hpux11*) 11275 if test yes,no = "$GCC,$with_gnu_ld"; then 11276 case $host_cpu in 11277 hppa*64*) 11278 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11279 ;; 11280 ia64*) 11281 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11282 ;; 11283 *) 11284 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11285 ;; 11286 esac 11287 else 11288 case $host_cpu in 11289 hppa*64*) 11290 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11291 ;; 11292 ia64*) 11293 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11294 ;; 11295 *) 11296 11297 # Older versions of the 11.00 compiler do not understand -b yet 11298 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11299 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11300 printf %s "checking if $CC understands -b... " >&6; } 11301 if test ${lt_cv_prog_compiler__b+y} 11302 then : 11303 printf %s "(cached) " >&6 11304 else case e in #( 11305 e) lt_cv_prog_compiler__b=no 11306 save_LDFLAGS=$LDFLAGS 11307 LDFLAGS="$LDFLAGS -b" 11308 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11310 # The linker can only warn and ignore the option if not recognized 11311 # So say no if there are warnings 11312 if test -s conftest.err; then 11313 # Append any errors to the config.log. 11314 cat conftest.err 1>&5 11315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.expsym 11316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11317 if diff conftest.expsym conftest.er2 >/dev/null; then 11318 lt_cv_prog_compiler__b=yes 11319 fi 11320 else 11321 lt_cv_prog_compiler__b=yes 11322 fi 11323 fi 11324 $RM -r conftest* 11325 LDFLAGS=$save_LDFLAGS 11326 ;; 11327 esac 11328 fi 11329 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11330 printf '%s\n' "$lt_cv_prog_compiler__b" >&6; } 11331 11332 if test yes = "$lt_cv_prog_compiler__b"; then 11333 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11334 else 11335 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11336 fi 11337 11338 ;; 11339 esac 11340 fi 11341 if test no = "$with_gnu_ld"; then 11342 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11343 hardcode_libdir_separator=: 11344 11345 case $host_cpu in 11346 hppa*64*|ia64*) 11347 hardcode_direct=no 11348 hardcode_shlibpath_var=no 11349 ;; 11350 *) 11351 hardcode_direct=yes 11352 hardcode_direct_absolute=yes 11353 export_dynamic_flag_spec='$wl-E' 11354 11355 # hardcode_minus_L: Not really in the search PATH, 11356 # but as the default location of the library. 11357 hardcode_minus_L=yes 11358 ;; 11359 esac 11360 fi 11361 ;; 11362 11363 irix5* | irix6* | nonstopux*) 11364 if test yes = "$GCC"; then 11365 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11366 # Try to use the -exported_symbol ld option, if it does not 11367 # work, assume that -exports_file does not work either and 11368 # implicitly export all symbols. 11369 # This should be the same for all languages, so no per-tag cache variable. 11370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11371 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11372 if test ${lt_cv_irix_exported_symbol+y} 11373 then : 11374 printf %s "(cached) " >&6 11375 else case e in #( 11376 e) save_LDFLAGS=$LDFLAGS 11377 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11379 /* end confdefs.h. */ 11380 int foo (void) { return 0; } 11381 _ACEOF 11382 if ac_fn_c_try_link "$LINENO" 11383 then : 11384 lt_cv_irix_exported_symbol=yes 11385 else case e in #( 11386 e) lt_cv_irix_exported_symbol=no ;; 11387 esac 11388 fi 11389 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11390 conftest$ac_exeext conftest.$ac_ext 11391 LDFLAGS=$save_LDFLAGS ;; 11392 esac 11393 fi 11394 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11395 printf '%s\n' "$lt_cv_irix_exported_symbol" >&6; } 11396 if test yes = "$lt_cv_irix_exported_symbol"; then 11397 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 11398 fi 11399 else 11400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11401 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 11402 fi 11403 archive_cmds_need_lc='no' 11404 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11405 hardcode_libdir_separator=: 11406 inherit_rpath=yes 11407 link_all_deplibs=yes 11408 ;; 11409 11410 *-mlibc) 11411 ;; 11412 11413 linux*) 11414 case $cc_basename in 11415 tcc*) 11416 # Fabrice Bellard et al's Tiny C Compiler 11417 ld_shlibs=yes 11418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11419 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11420 ;; 11421 esac 11422 ;; 11423 11424 netbsd* | netbsdelf*-gnu) 11425 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11426 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11427 else 11428 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11429 fi 11430 hardcode_libdir_flag_spec='-R$libdir' 11431 hardcode_direct=yes 11432 hardcode_shlibpath_var=no 11433 ;; 11434 11435 newsos6) 11436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11437 hardcode_direct=yes 11438 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11439 hardcode_libdir_separator=: 11440 hardcode_shlibpath_var=no 11441 ;; 11442 11443 *nto* | *qnx*) 11444 ;; 11445 11446 openbsd*) 11447 if test -f /usr/libexec/ld.so; then 11448 hardcode_direct=yes 11449 hardcode_shlibpath_var=no 11450 hardcode_direct_absolute=yes 11451 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11452 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11453 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11454 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11455 export_dynamic_flag_spec='$wl-E' 11456 else 11457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11458 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11459 fi 11460 else 11461 ld_shlibs=no 11462 fi 11463 ;; 11464 11465 os2*) 11466 hardcode_libdir_flag_spec='-L$libdir' 11467 hardcode_minus_L=yes 11468 allow_undefined_flag=unsupported 11469 shrext_cmds=.dll 11470 archive_cmds='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11471 echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11472 echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11473 echo EXPORTS >> $output_objdir/$libname.def~ 11474 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11475 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11476 emximp -o $lib $output_objdir/$libname.def' 11477 archive_expsym_cmds='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11478 echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11479 echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11480 echo EXPORTS >> $output_objdir/$libname.def~ 11481 prefix_cmds="$SED"~ 11482 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11483 prefix_cmds="$prefix_cmds -e 1d"; 11484 fi~ 11485 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11486 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11487 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11488 emximp -o $lib $output_objdir/$libname.def' 11489 enable_shared_with_static_runtimes=yes 11490 file_list_spec='@' 11491 ;; 11492 11493 osf3*) 11494 if test yes = "$GCC"; then 11495 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11496 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11497 else 11498 allow_undefined_flag=' -expect_unresolved \*' 11499 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11500 fi 11501 archive_cmds_need_lc='no' 11502 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11503 hardcode_libdir_separator=: 11504 ;; 11505 11506 osf4* | osf5*) # as osf3* with the addition of -msym flag 11507 if test yes = "$GCC"; then 11508 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11509 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11510 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11511 else 11512 allow_undefined_flag=' -expect_unresolved \*' 11513 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 11514 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.expsym; done; printf "%s\\n" "-hidden">> $lib.expsym~ 11515 $CC -shared$allow_undefined_flag $wl-input $wl$lib.expsym $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.expsym' 11516 11517 # Both c and cxx compiler support -rpath directly 11518 hardcode_libdir_flag_spec='-rpath $libdir' 11519 fi 11520 archive_cmds_need_lc='no' 11521 hardcode_libdir_separator=: 11522 ;; 11523 11524 serenity*) 11525 ;; 11526 11527 solaris*) 11528 no_undefined_flag=' -z defs' 11529 if test yes = "$GCC"; then 11530 wlarc='$wl' 11531 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11532 archive_expsym_cmds='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~ 11533 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.expsym $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.expsym' 11534 else 11535 case `$CC -V 2>&1` in 11536 *"Compilers 5.0"*) 11537 wlarc='' 11538 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11539 archive_expsym_cmds='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~ 11540 $LD -G$allow_undefined_flag -M $lib.expsym -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.expsym' 11541 ;; 11542 *) 11543 wlarc='$wl' 11544 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11545 archive_expsym_cmds='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~ 11546 $CC -G$allow_undefined_flag -M $lib.expsym -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.expsym' 11547 ;; 11548 esac 11549 fi 11550 hardcode_libdir_flag_spec='-R$libdir' 11551 hardcode_shlibpath_var=no 11552 case $host_os in 11553 solaris2.[0-5] | solaris2.[0-5].*) ;; 11554 *) 11555 # The compiler driver will combine and reorder linker options, 11556 # but understands '-z linker_flag'. GCC discards it without '$wl', 11557 # but is careful enough not to reorder. 11558 # Supported since Solaris 2.6 (maybe 2.5.1?) 11559 if test yes = "$GCC"; then 11560 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11561 else 11562 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11563 fi 11564 ;; 11565 esac 11566 link_all_deplibs=yes 11567 ;; 11568 11569 sunos4*) 11570 if test sequent = "$host_vendor"; then 11571 # Use $CC to link under sequent, because it throws in some extra .o 11572 # files that make .init and .fini sections work. 11573 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11574 else 11575 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11576 fi 11577 hardcode_libdir_flag_spec='-L$libdir' 11578 hardcode_direct=yes 11579 hardcode_minus_L=yes 11580 hardcode_shlibpath_var=no 11581 ;; 11582 11583 sysv4) 11584 case $host_vendor in 11585 sni) 11586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11587 hardcode_direct=yes # is this really true??? 11588 ;; 11589 siemens) 11590 ## LD is ld it makes a PLAMLIB 11591 ## CC just makes a GrossModule. 11592 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11593 reload_cmds='$CC -r -o $output$reload_objs' 11594 hardcode_direct=no 11595 ;; 11596 motorola) 11597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11598 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11599 ;; 11600 esac 11601 runpath_var='LD_RUN_PATH' 11602 hardcode_shlibpath_var=no 11603 ;; 11604 11605 sysv4.3*) 11606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11607 hardcode_shlibpath_var=no 11608 export_dynamic_flag_spec='-Bexport' 11609 ;; 11610 11611 sysv4*MP*) 11612 if test -d /usr/nec; then 11613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11614 hardcode_shlibpath_var=no 11615 runpath_var=LD_RUN_PATH 11616 hardcode_runpath_var=yes 11617 ld_shlibs=yes 11618 fi 11619 ;; 11620 11621 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11622 no_undefined_flag='$wl-z,text' 11623 archive_cmds_need_lc=no 11624 hardcode_shlibpath_var=no 11625 runpath_var='LD_RUN_PATH' 11626 11627 if test yes = "$GCC"; then 11628 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11629 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11630 else 11631 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11632 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11633 fi 11634 ;; 11635 11636 sysv5* | sco3.2v5* | sco5v6*) 11637 # Note: We CANNOT use -z defs as we might desire, because we do not 11638 # link with -lc, and that would cause any symbols used from libc to 11639 # always be unresolved, which means just about no library would 11640 # ever link correctly. If we're not using GNU ld we use -z text 11641 # though, which does catch some bad symbols but isn't as heavy-handed 11642 # as -z defs. 11643 no_undefined_flag='$wl-z,text' 11644 allow_undefined_flag='$wl-z,nodefs' 11645 archive_cmds_need_lc=no 11646 hardcode_shlibpath_var=no 11647 hardcode_libdir_flag_spec='$wl-R,$libdir' 11648 hardcode_libdir_separator=':' 11649 link_all_deplibs=yes 11650 export_dynamic_flag_spec='$wl-Bexport' 11651 runpath_var='LD_RUN_PATH' 11652 11653 if test yes = "$GCC"; then 11654 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11655 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11656 else 11657 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11658 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11659 fi 11660 ;; 11661 11662 uts4*) 11663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11664 hardcode_libdir_flag_spec='-L$libdir' 11665 hardcode_shlibpath_var=no 11666 ;; 11667 11668 *) 11669 ld_shlibs=no 11670 ;; 11671 esac 11672 11673 if test sni = "$host_vendor"; then 11674 case $host in 11675 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11676 export_dynamic_flag_spec='$wl-Blargedynsym' 11677 ;; 11678 esac 11679 fi 11680 fi 11681 11682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11683 printf '%s\n' "$ld_shlibs" >&6; } 11684 test no = "$ld_shlibs" && can_build_shared=no 11685 11686 with_gnu_ld=$with_gnu_ld 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 # 11703 # Do we need to explicitly link libc? 11704 # 11705 case "x$archive_cmds_need_lc" in 11706 x|xyes) 11707 # Assume -lc should be added 11708 archive_cmds_need_lc=yes 11709 11710 if test yes,yes = "$GCC,$enable_shared"; then 11711 case $archive_cmds in 11712 *'~'*) 11713 # FIXME: we may have to deal with multi-command sequences. 11714 ;; 11715 '$CC '*) 11716 # Test whether the compiler implicitly links with -lc since on some 11717 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11718 # to ld, don't add -lc before -lgcc. 11719 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11720 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11721 if test ${lt_cv_archive_cmds_need_lc+y} 11722 then : 11723 printf %s "(cached) " >&6 11724 else case e in #( 11725 e) $RM conftest* 11726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11727 11728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11729 (eval $ac_compile) 2>&5 11730 ac_status=$? 11731 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11732 test $ac_status = 0; } 2>conftest.err; then 11733 soname=conftest 11734 lib=conftest 11735 libobjs=conftest.$ac_objext 11736 deplibs= 11737 wl=$lt_prog_compiler_wl 11738 pic_flag=$lt_prog_compiler_pic 11739 compiler_flags=-v 11740 linker_flags=-v 11741 verstring= 11742 output_objdir=. 11743 libname=conftest 11744 lt_save_allow_undefined_flag=$allow_undefined_flag 11745 allow_undefined_flag= 11746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11747 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11748 ac_status=$? 11749 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11750 test $ac_status = 0; } 11751 then 11752 lt_cv_archive_cmds_need_lc=no 11753 else 11754 lt_cv_archive_cmds_need_lc=yes 11755 fi 11756 allow_undefined_flag=$lt_save_allow_undefined_flag 11757 else 11758 cat conftest.err 1>&5 11759 fi 11760 $RM conftest* 11761 ;; 11762 esac 11763 fi 11764 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11765 printf '%s\n' "$lt_cv_archive_cmds_need_lc" >&6; } 11766 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11767 ;; 11768 esac 11769 fi 11770 ;; 11771 esac 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11925 printf %s "checking dynamic linker characteristics... " >&6; } 11926 11927 if test yes = "$GCC"; then 11928 case $host_os in 11929 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11930 *) lt_awk_arg='/^libraries:/' ;; 11931 esac 11932 case $host_os in 11933 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11934 *) lt_sed_strip_eq='s|=/|/|g' ;; 11935 esac 11936 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11937 case $lt_search_path_spec in 11938 *\;*) 11939 # if the path contains ";" then we assume it to be the separator 11940 # otherwise default to the standard path separator (i.e. ":") - it is 11941 # assumed that no part of a normal pathname contains ";" but that should 11942 # okay in the real world where ";" in dirpaths is itself problematic. 11943 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11944 ;; 11945 *) 11946 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11947 ;; 11948 esac 11949 # Ok, now we have the path, separated by spaces, we can step through it 11950 # and add multilib dir if necessary... 11951 lt_tmp_lt_search_path_spec= 11952 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11953 # ...but if some path component already ends with the multilib dir we assume 11954 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11955 case "$lt_multi_os_dir; $lt_search_path_spec " in 11956 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11957 lt_multi_os_dir= 11958 ;; 11959 esac 11960 for lt_sys_path in $lt_search_path_spec; do 11961 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11962 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11963 elif test -n "$lt_multi_os_dir"; then 11964 test -d "$lt_sys_path" && \ 11965 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11966 fi 11967 done 11968 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11969 BEGIN {RS = " "; FS = "/|\n";} { 11970 lt_foo = ""; 11971 lt_count = 0; 11972 for (lt_i = NF; lt_i > 0; lt_i--) { 11973 if ($lt_i != "" && $lt_i != ".") { 11974 if ($lt_i == "..") { 11975 lt_count++; 11976 } else { 11977 if (lt_count == 0) { 11978 lt_foo = "/" $lt_i lt_foo; 11979 } else { 11980 lt_count--; 11981 } 11982 } 11983 } 11984 } 11985 if (lt_foo != "") { lt_freq[lt_foo]++; } 11986 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11987 }'` 11988 # AWK program above erroneously prepends '/' to C:/dos/paths 11989 # for these hosts. 11990 case $host_os in 11991 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11992 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11993 esac 11994 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11995 else 11996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11997 fi 11998 library_names_spec= 11999 libname_spec='lib$name' 12000 soname_spec= 12001 shrext_cmds=.so 12002 postinstall_cmds= 12003 postuninstall_cmds= 12004 finish_cmds= 12005 finish_eval= 12006 shlibpath_var= 12007 shlibpath_overrides_runpath=unknown 12008 version_type=none 12009 dynamic_linker="$host_os ld.so" 12010 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12011 need_lib_prefix=unknown 12012 hardcode_into_libs=no 12013 12014 # when you set need_version to no, make sure it does not cause -set_version 12015 # flags to be left without arguments 12016 need_version=unknown 12017 12018 12019 12020 case $host_os in 12021 aix3*) 12022 version_type=linux # correct to gnu/linux during the next big refactor 12023 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12024 shlibpath_var=LIBPATH 12025 12026 # AIX 3 has no versioning support, so we append a major version to the name. 12027 soname_spec='$libname$release$shared_ext$major' 12028 ;; 12029 12030 aix[4-9]*) 12031 version_type=linux # correct to gnu/linux during the next big refactor 12032 need_lib_prefix=no 12033 need_version=no 12034 hardcode_into_libs=yes 12035 if test ia64 = "$host_cpu"; then 12036 # AIX 5 supports IA64 12037 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12038 shlibpath_var=LD_LIBRARY_PATH 12039 else 12040 # With GCC up to 2.95.x, collect2 would create an import file 12041 # for dependence libraries. The import file would start with 12042 # the line '#! .'. This would cause the generated library to 12043 # depend on '.', always an invalid library. This was fixed in 12044 # development snapshots of GCC prior to 3.0. 12045 case $host_os in 12046 aix4 | aix4.[01] | aix4.[01].*) 12047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12048 echo ' yes ' 12049 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12050 : 12051 else 12052 can_build_shared=no 12053 fi 12054 ;; 12055 esac 12056 # Using Import Files as archive members, it is possible to support 12057 # filename-based versioning of shared library archives on AIX. While 12058 # this would work for both with and without runtime linking, it will 12059 # prevent static linking of such archives. So we do filename-based 12060 # shared library versioning with .so extension only, which is used 12061 # when both runtime linking and shared linking is enabled. 12062 # Unfortunately, runtime linking may impact performance, so we do 12063 # not want this to be the default eventually. Also, we use the 12064 # versioned .so libs for executables only if there is the -brtl 12065 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 12066 # To allow for filename-based versioning support, we need to create 12067 # libNAME.so.V as an archive file, containing: 12068 # *) an Import File, referring to the versioned filename of the 12069 # archive as well as the shared archive member, telling the 12070 # bitwidth (32 or 64) of that shared object, and providing the 12071 # list of exported symbols of that shared object, eventually 12072 # decorated with the 'weak' keyword 12073 # *) the shared object with the F_LOADONLY flag set, to really avoid 12074 # it being seen by the linker. 12075 # At run time we better use the real file rather than another symlink, 12076 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12077 12078 case $with_aix_soname,$aix_use_runtimelinking in 12079 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12080 # soname into executable. Probably we can add versioning support to 12081 # collect2, so additional links can be useful in future. 12082 aix,yes) # traditional libtool 12083 dynamic_linker='AIX unversionable lib.so' 12084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12085 # instead of lib<name>.a to let people know that these are not 12086 # typical AIX shared libraries. 12087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12088 ;; 12089 aix,no) # traditional AIX only 12090 dynamic_linker='AIX lib.a(lib.so.V)' 12091 # We preserve .a as extension for shared libraries through AIX4.2 12092 # and later when we are not doing run time linking. 12093 library_names_spec='$libname$release.a $libname.a' 12094 soname_spec='$libname$release$shared_ext$major' 12095 ;; 12096 svr4,*) # full svr4 only 12097 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12098 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12099 # We do not specify a path in Import Files, so LIBPATH fires. 12100 shlibpath_overrides_runpath=yes 12101 ;; 12102 *,yes) # both, prefer svr4 12103 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12104 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12105 # unpreferred sharedlib libNAME.a needs extra handling 12106 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12107 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12108 # We do not specify a path in Import Files, so LIBPATH fires. 12109 shlibpath_overrides_runpath=yes 12110 ;; 12111 *,no) # both, prefer aix 12112 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12113 library_names_spec='$libname$release.a $libname.a' 12114 soname_spec='$libname$release$shared_ext$major' 12115 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12116 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12117 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12118 ;; 12119 esac 12120 shlibpath_var=LIBPATH 12121 fi 12122 ;; 12123 12124 amigaos*) 12125 case $host_cpu in 12126 powerpc) 12127 # Since July 2007 AmigaOS4 officially supports .so libraries. 12128 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12130 ;; 12131 m68k) 12132 library_names_spec='$libname.ixlibrary $libname.a' 12133 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12134 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 12135 ;; 12136 esac 12137 ;; 12138 12139 beos*) 12140 library_names_spec='$libname$shared_ext' 12141 dynamic_linker="$host_os ld.so" 12142 shlibpath_var=LIBRARY_PATH 12143 ;; 12144 12145 bsdi[45]*) 12146 version_type=linux # correct to gnu/linux during the next big refactor 12147 need_version=no 12148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12149 soname_spec='$libname$release$shared_ext$major' 12150 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12151 shlibpath_var=LD_LIBRARY_PATH 12152 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12153 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12154 # the default ld.so.conf also contains /usr/contrib/lib and 12155 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12156 # libtool to hard-code these into programs 12157 ;; 12158 12159 cygwin* | mingw* | windows* | pw32* | cegcc*) 12160 version_type=windows 12161 shrext_cmds=.dll 12162 need_version=no 12163 need_lib_prefix=no 12164 12165 case $GCC,$cc_basename in 12166 yes,*) 12167 # gcc 12168 library_names_spec='$libname.dll.a' 12169 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12170 # If user builds GCC with multilib enabled, 12171 # it should just install on $(libdir) 12172 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 12173 if test xyes = x"$multilib"; then 12174 postinstall_cmds='base_file=`basename \$file`~ 12175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12176 dldir=$destdir/`dirname \$dlpath`~ 12177 $install_prog $dir/$dlname $destdir/$dlname~ 12178 chmod a+x $destdir/$dlname~ 12179 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12180 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 12181 fi' 12182 else 12183 postinstall_cmds='base_file=`basename \$file`~ 12184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12185 dldir=$destdir/`dirname \$dlpath`~ 12186 test -d \$dldir || mkdir -p \$dldir~ 12187 $install_prog $dir/$dlname \$dldir/$dlname~ 12188 chmod a+x \$dldir/$dlname~ 12189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12191 fi' 12192 fi 12193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12194 dlpath=$dir/\$dldll~ 12195 $RM \$dlpath' 12196 shlibpath_overrides_runpath=yes 12197 12198 case $host_os in 12199 cygwin*) 12200 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12201 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12202 12203 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12204 ;; 12205 mingw* | windows* | cegcc*) 12206 # MinGW DLLs use traditional 'lib' prefix 12207 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12208 ;; 12209 pw32*) 12210 # pw32 DLLs use 'pw' prefix rather than 'lib' 12211 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12212 ;; 12213 esac 12214 dynamic_linker='Win32 ld.exe' 12215 ;; 12216 12217 *,cl* | *,icl* | *,icx*) 12218 # Native MSVC and Intel compilers 12219 libname_spec='$name' 12220 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12221 library_names_spec='$libname.dll.lib' 12222 12223 case $build_os in 12224 mingw* | windows*) 12225 sys_lib_search_path_spec= 12226 lt_save_ifs=$IFS 12227 IFS=';' 12228 for lt_path in $LIB 12229 do 12230 IFS=$lt_save_ifs 12231 # Let DOS variable expansion print the short 8.3 style file name. 12232 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12233 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12234 done 12235 IFS=$lt_save_ifs 12236 # Convert to MSYS style. 12237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12238 ;; 12239 cygwin*) 12240 # Convert to unix form, then to dos form, then back to unix form 12241 # but this time dos style (no spaces!) so that the unix form looks 12242 # like /cygdrive/c/PROGRA~1:/cygdr... 12243 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12244 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12245 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12246 ;; 12247 *) 12248 sys_lib_search_path_spec=$LIB 12249 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12250 # It is most probably a Windows format PATH. 12251 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12252 else 12253 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12254 fi 12255 # FIXME: find the short name or the path components, as spaces are 12256 # common. (e.g. "Program Files" -> "PROGRA~1") 12257 ;; 12258 esac 12259 12260 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12261 postinstall_cmds='base_file=`basename \$file`~ 12262 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12263 dldir=$destdir/`dirname \$dlpath`~ 12264 test -d \$dldir || mkdir -p \$dldir~ 12265 $install_prog $dir/$dlname \$dldir/$dlname' 12266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12267 dlpath=$dir/\$dldll~ 12268 $RM \$dlpath' 12269 shlibpath_overrides_runpath=yes 12270 dynamic_linker='Win32 link.exe' 12271 ;; 12272 12273 *) 12274 # Assume MSVC and ICC wrapper 12275 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12276 dynamic_linker='Win32 ld.exe' 12277 ;; 12278 esac 12279 # FIXME: first we should search . and the directory the executable is in 12280 shlibpath_var=PATH 12281 ;; 12282 12283 darwin* | rhapsody*) 12284 dynamic_linker="$host_os dyld" 12285 version_type=darwin 12286 need_lib_prefix=no 12287 need_version=no 12288 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12289 soname_spec='$libname$release$major$shared_ext' 12290 shlibpath_overrides_runpath=yes 12291 shlibpath_var=DYLD_LIBRARY_PATH 12292 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12293 12294 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12295 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12296 ;; 12297 12298 dgux*) 12299 version_type=linux # correct to gnu/linux during the next big refactor 12300 need_lib_prefix=no 12301 need_version=no 12302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12303 soname_spec='$libname$release$shared_ext$major' 12304 shlibpath_var=LD_LIBRARY_PATH 12305 ;; 12306 12307 freebsd* | dragonfly* | midnightbsd*) 12308 # DragonFly does not have aout. When/if they implement a new 12309 # versioning mechanism, adjust this. 12310 if test -x /usr/bin/objformat; then 12311 objformat=`/usr/bin/objformat` 12312 else 12313 case $host_os in 12314 freebsd[23].*) objformat=aout ;; 12315 *) objformat=elf ;; 12316 esac 12317 fi 12318 version_type=freebsd-$objformat 12319 case $version_type in 12320 freebsd-elf*) 12321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12322 soname_spec='$libname$release$shared_ext$major' 12323 need_version=no 12324 need_lib_prefix=no 12325 ;; 12326 freebsd-*) 12327 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12328 need_version=yes 12329 ;; 12330 esac 12331 case $host_cpu in 12332 powerpc64) 12333 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 12334 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12336 /* end confdefs.h. */ 12337 int test_pointer_size[sizeof (void *) - 5]; 12338 12339 _ACEOF 12340 if ac_fn_c_try_compile "$LINENO" 12341 then : 12342 shlibpath_var=LD_LIBRARY_PATH 12343 else case e in #( 12344 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 12345 esac 12346 fi 12347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12348 ;; 12349 *) 12350 shlibpath_var=LD_LIBRARY_PATH 12351 ;; 12352 esac 12353 case $host_os in 12354 freebsd2.*) 12355 shlibpath_overrides_runpath=yes 12356 ;; 12357 freebsd3.[01]* | freebsdelf3.[01]*) 12358 shlibpath_overrides_runpath=yes 12359 hardcode_into_libs=yes 12360 ;; 12361 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12362 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12363 shlibpath_overrides_runpath=no 12364 hardcode_into_libs=yes 12365 ;; 12366 *) # from 4.6 on, and DragonFly 12367 shlibpath_overrides_runpath=yes 12368 hardcode_into_libs=yes 12369 ;; 12370 esac 12371 ;; 12372 12373 haiku*) 12374 version_type=linux # correct to gnu/linux during the next big refactor 12375 need_lib_prefix=no 12376 need_version=no 12377 dynamic_linker="$host_os runtime_loader" 12378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12379 soname_spec='$libname$release$shared_ext$major' 12380 shlibpath_var=LIBRARY_PATH 12381 shlibpath_overrides_runpath=no 12382 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 12383 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 12384 hardcode_into_libs=no 12385 ;; 12386 12387 hpux9* | hpux10* | hpux11*) 12388 # Give a soname corresponding to the major version so that dld.sl refuses to 12389 # link against other versions. 12390 version_type=sunos 12391 need_lib_prefix=no 12392 need_version=no 12393 case $host_cpu in 12394 ia64*) 12395 shrext_cmds='.so' 12396 hardcode_into_libs=yes 12397 dynamic_linker="$host_os dld.so" 12398 shlibpath_var=LD_LIBRARY_PATH 12399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12401 soname_spec='$libname$release$shared_ext$major' 12402 if test 32 = "$HPUX_IA64_MODE"; then 12403 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12404 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12405 else 12406 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12407 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12408 fi 12409 ;; 12410 hppa*64*) 12411 shrext_cmds='.sl' 12412 hardcode_into_libs=yes 12413 dynamic_linker="$host_os dld.sl" 12414 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12417 soname_spec='$libname$release$shared_ext$major' 12418 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12420 ;; 12421 *) 12422 shrext_cmds='.sl' 12423 dynamic_linker="$host_os dld.sl" 12424 shlibpath_var=SHLIB_PATH 12425 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12427 soname_spec='$libname$release$shared_ext$major' 12428 ;; 12429 esac 12430 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12431 postinstall_cmds='chmod 555 $lib' 12432 # or fails outright, so override atomically: 12433 install_override_mode=555 12434 ;; 12435 12436 interix[3-9]*) 12437 version_type=linux # correct to gnu/linux during the next big refactor 12438 need_lib_prefix=no 12439 need_version=no 12440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12441 soname_spec='$libname$release$shared_ext$major' 12442 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12443 shlibpath_var=LD_LIBRARY_PATH 12444 shlibpath_overrides_runpath=no 12445 hardcode_into_libs=yes 12446 ;; 12447 12448 irix5* | irix6* | nonstopux*) 12449 case $host_os in 12450 nonstopux*) version_type=nonstopux ;; 12451 *) 12452 if test yes = "$lt_cv_prog_gnu_ld"; then 12453 version_type=linux # correct to gnu/linux during the next big refactor 12454 else 12455 version_type=irix 12456 fi ;; 12457 esac 12458 need_lib_prefix=no 12459 need_version=no 12460 soname_spec='$libname$release$shared_ext$major' 12461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12462 case $host_os in 12463 irix5* | nonstopux*) 12464 libsuff= shlibsuff= 12465 ;; 12466 *) 12467 case $LD in # libtool.m4 will add one of these switches to LD 12468 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12469 libsuff= shlibsuff= libmagic=32-bit;; 12470 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12471 libsuff=32 shlibsuff=N32 libmagic=N32;; 12472 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12473 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12474 *) libsuff= shlibsuff= libmagic=never-match;; 12475 esac 12476 ;; 12477 esac 12478 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12479 shlibpath_overrides_runpath=no 12480 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12481 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12482 hardcode_into_libs=yes 12483 ;; 12484 12485 *-mlibc) 12486 version_type=linux # correct to gnu/linux during the next big refactor 12487 need_lib_prefix=no 12488 need_version=no 12489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12490 soname_spec='$libname$release$shared_ext$major' 12491 dynamic_linker='mlibc ld.so' 12492 shlibpath_var=LD_LIBRARY_PATH 12493 shlibpath_overrides_runpath=no 12494 hardcode_into_libs=yes 12495 ;; 12496 12497 # No shared lib support for Linux oldld, aout, or coff. 12498 linux*oldld* | linux*aout* | linux*coff*) 12499 dynamic_linker=no 12500 ;; 12501 12502 linux*android*) 12503 version_type=none # Android doesn't support versioned libraries. 12504 need_lib_prefix=no 12505 need_version=no 12506 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 12507 soname_spec='$libname$release$shared_ext' 12508 finish_cmds= 12509 shlibpath_var=LD_LIBRARY_PATH 12510 shlibpath_overrides_runpath=yes 12511 12512 # This implies no fast_install, which is unacceptable. 12513 # Some rework will be needed to allow for fast_install 12514 # before this can be enabled. 12515 hardcode_into_libs=yes 12516 12517 dynamic_linker='Android linker' 12518 # -rpath works at least for libraries that are not overridden by 12519 # libraries installed in system locations. 12520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12521 ;; 12522 12523 # This must be glibc/ELF. 12524 linux* | ironclad*-gnu | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12525 version_type=linux # correct to gnu/linux during the next big refactor 12526 need_lib_prefix=no 12527 need_version=no 12528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12529 soname_spec='$libname$release$shared_ext$major' 12530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12531 shlibpath_var=LD_LIBRARY_PATH 12532 shlibpath_overrides_runpath=no 12533 12534 # Some binutils ld are patched to set DT_RUNPATH 12535 if test ${lt_cv_shlibpath_overrides_runpath+y} 12536 then : 12537 printf %s "(cached) " >&6 12538 else case e in #( 12539 e) lt_cv_shlibpath_overrides_runpath=no 12540 save_LDFLAGS=$LDFLAGS 12541 save_libdir=$libdir 12542 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12543 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12545 /* end confdefs.h. */ 12546 12547 int 12548 main (void) 12549 { 12550 12551 ; 12552 return 0; 12553 } 12554 _ACEOF 12555 if ac_fn_c_try_link "$LINENO" 12556 then : 12557 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12558 then : 12559 lt_cv_shlibpath_overrides_runpath=yes 12560 fi 12561 fi 12562 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12563 conftest$ac_exeext conftest.$ac_ext 12564 LDFLAGS=$save_LDFLAGS 12565 libdir=$save_libdir 12566 ;; 12567 esac 12568 fi 12569 12570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12571 12572 # This implies no fast_install, which is unacceptable. 12573 # Some rework will be needed to allow for fast_install 12574 # before this can be enabled. 12575 hardcode_into_libs=yes 12576 12577 # Ideally, we could use ldconfig to report *all* directories which are 12578 # searched for libraries, however this is still not possible. Aside from not 12579 # being certain /sbin/ldconfig is available, command 12580 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12581 # even though it is searched at run-time. Try to do the best guess by 12582 # appending ld.so.conf contents (and includes) to the search path. 12583 if test -f /etc/ld.so.conf; then 12584 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 12585 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12586 fi 12587 12588 # We used to test for /lib/ld.so.1 and disable shared libraries on 12589 # powerpc, because MkLinux only supported shared libraries with the 12590 # GNU dynamic linker. Since this was broken with cross compilers, 12591 # most powerpc-linux boxes support dynamic linking these days and 12592 # people can always --disable-shared, the test was removed, and we 12593 # assume the GNU/Linux dynamic linker is in use. 12594 dynamic_linker='GNU/Linux ld.so' 12595 ;; 12596 12597 netbsdelf*-gnu) 12598 version_type=linux 12599 need_lib_prefix=no 12600 need_version=no 12601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12602 soname_spec='$libname$release$shared_ext$major' 12603 shlibpath_var=LD_LIBRARY_PATH 12604 shlibpath_overrides_runpath=no 12605 hardcode_into_libs=yes 12606 dynamic_linker='NetBSD ld.elf_so' 12607 enable_cxx_stdlib=yes 12608 stdlibflag= 12609 ;; 12610 12611 netbsd*) 12612 version_type=sunos 12613 need_lib_prefix=no 12614 need_version=no 12615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12616 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12618 dynamic_linker='NetBSD (a.out) ld.so' 12619 else 12620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12621 soname_spec='$libname$release$shared_ext$major' 12622 dynamic_linker='NetBSD ld.elf_so' 12623 fi 12624 shlibpath_var=LD_LIBRARY_PATH 12625 shlibpath_overrides_runpath=yes 12626 hardcode_into_libs=yes 12627 enable_cxx_stdlib=yes 12628 stdlibflag= 12629 ;; 12630 12631 newsos6) 12632 version_type=linux # correct to gnu/linux during the next big refactor 12633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12634 shlibpath_var=LD_LIBRARY_PATH 12635 shlibpath_overrides_runpath=yes 12636 ;; 12637 12638 *nto* | *qnx*) 12639 version_type=qnx 12640 need_lib_prefix=no 12641 need_version=no 12642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12643 soname_spec='$libname$release$shared_ext$major' 12644 shlibpath_var=LD_LIBRARY_PATH 12645 shlibpath_overrides_runpath=no 12646 hardcode_into_libs=yes 12647 dynamic_linker='ldqnx.so' 12648 ;; 12649 12650 openbsd*) 12651 version_type=sunos 12652 sys_lib_dlsearch_path_spec=/usr/lib 12653 need_lib_prefix=no 12654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12655 need_version=no 12656 else 12657 need_version=yes 12658 fi 12659 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12661 shlibpath_var=LD_LIBRARY_PATH 12662 shlibpath_overrides_runpath=yes 12663 ;; 12664 12665 os2*) 12666 libname_spec='$name' 12667 version_type=windows 12668 shrext_cmds=.dll 12669 need_version=no 12670 need_lib_prefix=no 12671 # OS/2 can only load a DLL with a base name of 8 characters or less. 12672 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12673 n=$($ECHO $libname | tr -d .-); 12674 l=${#n}; test 3 -lt "$l" && l=3; mr=$((8 - $l)); 12675 r=$($ECHO $release | tr -d .-); 12676 l=${#r}; test 2 -lt "$l" && l=2; mv=$(($mr - $l)); 12677 v=$($ECHO $versuffix | tr -d .- | cut -b -$mv); 12678 r=$($ECHO $r | cut -b -$(($mr - ${#v}))); 12679 n=$($ECHO $n | cut -b -$((8 - ${#r} - ${#v}))); 12680 $ECHO $n$r$v`$shared_ext' 12681 library_names_spec='${libname}_dll.$libext' 12682 dynamic_linker='OS/2 ld.exe' 12683 shlibpath_var=BEGINLIBPATH 12684 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12686 postinstall_cmds='base_file=`basename \$file`~ 12687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12688 dldir=$destdir/`dirname \$dlpath`~ 12689 test -d \$dldir || mkdir -p \$dldir~ 12690 $install_prog $dir/$dlname \$dldir/$dlname~ 12691 chmod a+x \$dldir/$dlname~ 12692 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12693 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12694 fi' 12695 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12696 dlpath=$dir/\$dldll~ 12697 $RM \$dlpath' 12698 ;; 12699 12700 osf3* | osf4* | osf5*) 12701 version_type=osf 12702 need_lib_prefix=no 12703 need_version=no 12704 soname_spec='$libname$release$shared_ext$major' 12705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12706 shlibpath_var=LD_LIBRARY_PATH 12707 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12709 ;; 12710 12711 rdos*) 12712 dynamic_linker=no 12713 ;; 12714 12715 serenity*) 12716 version_type=linux # correct to gnu/linux during the next big refactor 12717 need_lib_prefix=no 12718 need_version=no 12719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12720 soname_spec='$libname$release$shared_ext$major' 12721 shlibpath_var=LD_LIBRARY_PATH 12722 shlibpath_overrides_runpath=no 12723 dynamic_linker='SerenityOS LibELF' 12724 ;; 12725 12726 solaris*) 12727 version_type=linux # correct to gnu/linux during the next big refactor 12728 need_lib_prefix=no 12729 need_version=no 12730 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12731 soname_spec='$libname$release$shared_ext$major' 12732 shlibpath_var=LD_LIBRARY_PATH 12733 shlibpath_overrides_runpath=yes 12734 hardcode_into_libs=yes 12735 # ldd complains unless libraries are executable 12736 postinstall_cmds='chmod +x $lib' 12737 ;; 12738 12739 sunos4*) 12740 version_type=sunos 12741 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12742 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12743 shlibpath_var=LD_LIBRARY_PATH 12744 shlibpath_overrides_runpath=yes 12745 if test yes = "$with_gnu_ld"; then 12746 need_lib_prefix=no 12747 fi 12748 need_version=yes 12749 ;; 12750 12751 sysv4 | sysv4.3*) 12752 version_type=linux # correct to gnu/linux during the next big refactor 12753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12754 soname_spec='$libname$release$shared_ext$major' 12755 shlibpath_var=LD_LIBRARY_PATH 12756 case $host_vendor in 12757 sni) 12758 shlibpath_overrides_runpath=no 12759 need_lib_prefix=no 12760 runpath_var=LD_RUN_PATH 12761 ;; 12762 siemens) 12763 need_lib_prefix=no 12764 ;; 12765 motorola) 12766 need_lib_prefix=no 12767 need_version=no 12768 shlibpath_overrides_runpath=no 12769 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12770 ;; 12771 esac 12772 ;; 12773 12774 sysv4*MP*) 12775 if test -d /usr/nec; then 12776 version_type=linux # correct to gnu/linux during the next big refactor 12777 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12778 soname_spec='$libname$shared_ext.$major' 12779 shlibpath_var=LD_LIBRARY_PATH 12780 fi 12781 ;; 12782 12783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12784 version_type=sco 12785 need_lib_prefix=no 12786 need_version=no 12787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12788 soname_spec='$libname$release$shared_ext$major' 12789 shlibpath_var=LD_LIBRARY_PATH 12790 shlibpath_overrides_runpath=yes 12791 hardcode_into_libs=yes 12792 if test yes = "$with_gnu_ld"; then 12793 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12794 else 12795 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12796 case $host_os in 12797 sco3.2v5*) 12798 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12799 ;; 12800 esac 12801 fi 12802 sys_lib_dlsearch_path_spec='/usr/lib' 12803 ;; 12804 12805 tpf*) 12806 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12807 version_type=linux # correct to gnu/linux during the next big refactor 12808 need_lib_prefix=no 12809 need_version=no 12810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12811 shlibpath_var=LD_LIBRARY_PATH 12812 shlibpath_overrides_runpath=no 12813 hardcode_into_libs=yes 12814 ;; 12815 12816 uts4*) 12817 version_type=linux # correct to gnu/linux during the next big refactor 12818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12819 soname_spec='$libname$release$shared_ext$major' 12820 shlibpath_var=LD_LIBRARY_PATH 12821 ;; 12822 12823 emscripten*) 12824 version_type=none 12825 need_lib_prefix=no 12826 need_version=no 12827 library_names_spec='$libname$release$shared_ext' 12828 soname_spec='$libname$release$shared_ext' 12829 finish_cmds= 12830 dynamic_linker="Emscripten linker" 12831 lt_prog_compiler_wl= 12832 lt_prog_compiler_pic= 12833 lt_prog_compiler_static= 12834 12835 12836 if test yes = "$GCC"; then 12837 lt_prog_compiler_wl='-Wl,' 12838 lt_prog_compiler_static='-static' 12839 12840 case $host_os in 12841 aix*) 12842 # All AIX code is PIC. 12843 if test ia64 = "$host_cpu"; then 12844 # AIX 5 now supports IA64 processor 12845 lt_prog_compiler_static='-Bstatic' 12846 fi 12847 lt_prog_compiler_pic='-fPIC' 12848 ;; 12849 12850 amigaos*) 12851 case $host_cpu in 12852 powerpc) 12853 # see comment about AmigaOS4 .so support 12854 lt_prog_compiler_pic='-fPIC' 12855 ;; 12856 m68k) 12857 # FIXME: we need at least 68020 code to build shared libraries, but 12858 # adding the '-m68020' flag to GCC prevents building anything better, 12859 # like '-m68040'. 12860 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12861 ;; 12862 esac 12863 ;; 12864 12865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12866 # PIC is the default for these OSes. 12867 ;; 12868 12869 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12870 # This hack is so that the source file can tell whether it is being 12871 # built for inclusion in a dll (and should export symbols for example). 12872 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12873 # (--disable-auto-import) libraries 12874 lt_prog_compiler_pic='-DDLL_EXPORT' 12875 case $host_os in 12876 os2*) 12877 lt_prog_compiler_static='$wl-static' 12878 ;; 12879 esac 12880 ;; 12881 12882 darwin* | rhapsody*) 12883 # PIC is the default on this platform 12884 # Common symbols not allowed in MH_DYLIB files 12885 lt_prog_compiler_pic='-fno-common' 12886 ;; 12887 12888 haiku*) 12889 # PIC is the default for Haiku. 12890 # The "-static" flag exists, but is broken. 12891 lt_prog_compiler_static= 12892 ;; 12893 12894 hpux*) 12895 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12896 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12897 # sets the default TLS model and affects inlining. 12898 case $host_cpu in 12899 hppa*64*) 12900 # +Z the default 12901 ;; 12902 *) 12903 lt_prog_compiler_pic='-fPIC' 12904 ;; 12905 esac 12906 ;; 12907 12908 interix[3-9]*) 12909 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12910 # Instead, we relocate shared libraries at runtime. 12911 ;; 12912 12913 msdosdjgpp*) 12914 # Just because we use GCC doesn't mean we suddenly get shared libraries 12915 # on systems that don't support them. 12916 lt_prog_compiler_can_build_shared=no 12917 enable_shared=no 12918 ;; 12919 12920 *nto* | *qnx*) 12921 # QNX uses GNU C++, but need to define -shared option too, otherwise 12922 # it will coredump. 12923 lt_prog_compiler_pic='-fPIC -shared' 12924 ;; 12925 12926 sysv4*MP*) 12927 if test -d /usr/nec; then 12928 lt_prog_compiler_pic=-Kconform_pic 12929 fi 12930 ;; 12931 12932 *) 12933 lt_prog_compiler_pic='-fPIC' 12934 ;; 12935 esac 12936 12937 case $cc_basename in 12938 nvcc*) # Cuda Compiler Driver 2.2 12939 lt_prog_compiler_wl='-Xlinker ' 12940 if test -n "$lt_prog_compiler_pic"; then 12941 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12942 fi 12943 ;; 12944 esac 12945 else 12946 # PORTME Check for flag to pass linker flags through the system compiler. 12947 case $host_os in 12948 aix*) 12949 lt_prog_compiler_wl='-Wl,' 12950 if test ia64 = "$host_cpu"; then 12951 # AIX 5 now supports IA64 processor 12952 lt_prog_compiler_static='-Bstatic' 12953 else 12954 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.expsym' 12955 fi 12956 ;; 12957 12958 darwin* | rhapsody*) 12959 # PIC is the default on this platform 12960 # Common symbols not allowed in MH_DYLIB files 12961 lt_prog_compiler_pic='-fno-common' 12962 case $cc_basename in 12963 nagfor*) 12964 # NAG Fortran compiler 12965 lt_prog_compiler_wl='-Wl,-Wl,,' 12966 lt_prog_compiler_pic='-PIC' 12967 lt_prog_compiler_static='-Bstatic' 12968 ;; 12969 esac 12970 ;; 12971 12972 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12973 # This hack is so that the source file can tell whether it is being 12974 # built for inclusion in a dll (and should export symbols for example). 12975 lt_prog_compiler_pic='-DDLL_EXPORT' 12976 case $host_os in 12977 os2*) 12978 lt_prog_compiler_static='$wl-static' 12979 ;; 12980 esac 12981 ;; 12982 12983 hpux9* | hpux10* | hpux11*) 12984 lt_prog_compiler_wl='-Wl,' 12985 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12986 # not for PA HP-UX. 12987 case $host_cpu in 12988 hppa*64*|ia64*) 12989 # +Z the default 12990 ;; 12991 *) 12992 lt_prog_compiler_pic='+Z' 12993 ;; 12994 esac 12995 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12996 lt_prog_compiler_static='$wl-a ${wl}archive' 12997 ;; 12998 12999 irix5* | irix6* | nonstopux*) 13000 lt_prog_compiler_wl='-Wl,' 13001 # PIC (with -KPIC) is the default. 13002 lt_prog_compiler_static='-non_shared' 13003 ;; 13004 13005 *-mlibc) 13006 lt_prog_compiler_wl='-Wl,' 13007 lt_prog_compiler_pic='-fPIC' 13008 lt_prog_compiler_static='-static' 13009 ;; 13010 13011 linux* | ironclad*-gnu | k*bsd*-gnu | kopensolaris*-gnu | gnu* | freebsd*) 13012 case $cc_basename in 13013 # old Intel for x86_64, which still supported -KPIC. 13014 ecc*) 13015 lt_prog_compiler_wl='-Wl,' 13016 lt_prog_compiler_pic='-KPIC' 13017 lt_prog_compiler_static='-static' 13018 ;; 13019 *flang* | ftn | f18* | f95*) 13020 # Flang compiler. 13021 lt_prog_compiler_wl='-Wl,' 13022 lt_prog_compiler_pic='-fPIC' 13023 lt_prog_compiler_static='-static' 13024 ;; 13025 # icc used to be incompatible with GCC. 13026 # ICC 10 doesn't accept -KPIC any more. 13027 icc* | ifort* | icx* | ifx*) 13028 lt_prog_compiler_wl='-Wl,' 13029 lt_prog_compiler_pic='-fPIC' 13030 lt_prog_compiler_static='-static' 13031 ;; 13032 # Lahey Fortran 8.1. 13033 lf95*) 13034 lt_prog_compiler_wl='-Wl,' 13035 lt_prog_compiler_pic='--shared' 13036 lt_prog_compiler_static='--static' 13037 ;; 13038 nagfor*) 13039 # NAG Fortran compiler 13040 lt_prog_compiler_wl='-Wl,-Wl,,' 13041 lt_prog_compiler_pic='-PIC' 13042 lt_prog_compiler_static='-Bstatic' 13043 ;; 13044 tcc*) 13045 # Fabrice Bellard et al's Tiny C Compiler 13046 lt_prog_compiler_wl='-Wl,' 13047 lt_prog_compiler_pic='-fPIC' 13048 lt_prog_compiler_static='-static' 13049 ;; 13050 slimcc*) 13051 # Hsiang-Ying Fu and Jim Huang's x86_64 SlimCC compiler 13052 lt_prog_compiler_wl='-Wl,' 13053 lt_prog_compiler_pic='-fPIC' 13054 lt_prog_compiler_static='-static' 13055 ;; 13056 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13057 # Portland Group compilers (*not* the Pentium gcc compiler, 13058 # which looks to be a dead project) 13059 lt_prog_compiler_wl='-Wl,' 13060 lt_prog_compiler_pic='-fpic' 13061 lt_prog_compiler_static='-Bstatic' 13062 ;; 13063 ccc*) 13064 lt_prog_compiler_wl='-Wl,' 13065 # All Alpha code is PIC. 13066 lt_prog_compiler_static='-non_shared' 13067 ;; 13068 xl* | bgxl* | bgf* | mpixl*) 13069 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13070 lt_prog_compiler_wl='-Wl,' 13071 lt_prog_compiler_pic='-qpic' 13072 lt_prog_compiler_static='-qstaticlink' 13073 ;; 13074 *) 13075 case `$CC -V 2>&1 | $SED 5q` in 13076 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13077 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13078 lt_prog_compiler_pic='-KPIC' 13079 lt_prog_compiler_static='-Bstatic' 13080 lt_prog_compiler_wl='' 13081 ;; 13082 *Sun\ F* | *Sun*Fortran*) 13083 lt_prog_compiler_pic='-KPIC' 13084 lt_prog_compiler_static='-Bstatic' 13085 lt_prog_compiler_wl='-Qoption ld ' 13086 ;; 13087 *Sun\ C*) 13088 # Sun C 5.9 13089 lt_prog_compiler_pic='-KPIC' 13090 lt_prog_compiler_static='-Bstatic' 13091 lt_prog_compiler_wl='-Wl,' 13092 ;; 13093 *Intel*\ [CF]*Compiler*) 13094 lt_prog_compiler_wl='-Wl,' 13095 lt_prog_compiler_pic='-fPIC' 13096 lt_prog_compiler_static='-static' 13097 ;; 13098 *Portland\ Group*) 13099 lt_prog_compiler_wl='-Wl,' 13100 lt_prog_compiler_pic='-fpic' 13101 lt_prog_compiler_static='-Bstatic' 13102 ;; 13103 esac 13104 ;; 13105 esac 13106 ;; 13107 13108 newsos6) 13109 lt_prog_compiler_pic='-KPIC' 13110 lt_prog_compiler_static='-Bstatic' 13111 ;; 13112 13113 *nto* | *qnx*) 13114 # QNX uses GNU C++, but need to define -shared option too, otherwise 13115 # it will coredump. 13116 lt_prog_compiler_pic='-fPIC -shared' 13117 ;; 13118 13119 osf3* | osf4* | osf5*) 13120 lt_prog_compiler_wl='-Wl,' 13121 # All OSF/1 code is PIC. 13122 lt_prog_compiler_static='-non_shared' 13123 ;; 13124 13125 rdos*) 13126 lt_prog_compiler_static='-non_shared' 13127 ;; 13128 13129 serenity*) 13130 ;; 13131 13132 solaris*) 13133 lt_prog_compiler_pic='-KPIC' 13134 lt_prog_compiler_static='-Bstatic' 13135 case $cc_basename in 13136 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13137 lt_prog_compiler_wl='-Qoption ld ';; 13138 *) 13139 lt_prog_compiler_wl='-Wl,';; 13140 esac 13141 ;; 13142 13143 sunos4*) 13144 lt_prog_compiler_wl='-Qoption ld ' 13145 lt_prog_compiler_pic='-PIC' 13146 lt_prog_compiler_static='-Bstatic' 13147 ;; 13148 13149 sysv4 | sysv4.2uw2* | sysv4.3*) 13150 lt_prog_compiler_wl='-Wl,' 13151 lt_prog_compiler_pic='-KPIC' 13152 lt_prog_compiler_static='-Bstatic' 13153 ;; 13154 13155 sysv4*MP*) 13156 if test -d /usr/nec; then 13157 lt_prog_compiler_pic='-Kconform_pic' 13158 lt_prog_compiler_static='-Bstatic' 13159 fi 13160 ;; 13161 13162 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13163 lt_prog_compiler_wl='-Wl,' 13164 lt_prog_compiler_pic='-KPIC' 13165 lt_prog_compiler_static='-Bstatic' 13166 ;; 13167 13168 unicos*) 13169 lt_prog_compiler_wl='-Wl,' 13170 lt_prog_compiler_can_build_shared=no 13171 ;; 13172 13173 uts4*) 13174 lt_prog_compiler_pic='-pic' 13175 lt_prog_compiler_static='-Bstatic' 13176 ;; 13177 13178 *) 13179 lt_prog_compiler_can_build_shared=no 13180 ;; 13181 esac 13182 fi 13183 13184 case $host_os in 13185 # For platforms that do not support PIC, -DPIC is meaningless: 13186 *djgpp*) 13187 lt_prog_compiler_pic= 13188 ;; 13189 *) 13190 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13191 ;; 13192 esac 13193 13194 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13195 printf %s "checking for $compiler option to produce PIC... " >&6; } 13196 if test ${lt_cv_prog_compiler_pic+y} 13197 then : 13198 printf %s "(cached) " >&6 13199 else case e in #( 13200 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 13201 esac 13202 fi 13203 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13204 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; } 13205 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13206 13207 # 13208 # Check to make sure the PIC flag actually works. 13209 # 13210 if test -n "$lt_prog_compiler_pic"; then 13211 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13212 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13213 if test ${lt_cv_prog_compiler_pic_works+y} 13214 then : 13215 printf %s "(cached) " >&6 13216 else case e in #( 13217 e) lt_cv_prog_compiler_pic_works=no 13218 ac_outfile=conftest.$ac_objext 13219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13220 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13221 # Insert the option either (1) after the last *FLAGS variable, or 13222 # (2) before a word containing "conftest.", or (3) at the end. 13223 # Note that $ac_compile itself does not contain backslashes and begins 13224 # with a dollar sign (not a hyphen), so the echo should work correctly. 13225 # The option is referenced via a variable to avoid confusing sed. 13226 lt_compile=`echo "$ac_compile" | $SED \ 13227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13229 -e 's:$: $lt_compiler_flag:'` 13230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13231 (eval "$lt_compile" 2>conftest.err) 13232 ac_status=$? 13233 cat conftest.err >&5 13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13235 if (exit $ac_status) && test -s "$ac_outfile"; then 13236 # The compiler can only warn and ignore the option if not recognized 13237 # So say no if there are warnings other than the usual output. 13238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.expsym 13239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13240 if test ! -s conftest.er2 || diff conftest.expsym conftest.er2 >/dev/null; then 13241 lt_cv_prog_compiler_pic_works=yes 13242 fi 13243 fi 13244 $RM conftest* 13245 ;; 13246 esac 13247 fi 13248 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13249 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; } 13250 13251 if test yes = "$lt_cv_prog_compiler_pic_works"; then 13252 case $lt_prog_compiler_pic in 13253 "" | " "*) ;; 13254 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13255 esac 13256 else 13257 lt_prog_compiler_pic= 13258 lt_prog_compiler_can_build_shared=no 13259 fi 13260 13261 fi 13262 13263 13264 13265 13266 13267 # 13268 # Check to make sure the static flag actually works. 13269 # 13270 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13272 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13273 if test ${lt_cv_prog_compiler_static_works+y} 13274 then : 13275 printf %s "(cached) " >&6 13276 else case e in #( 13277 e) lt_cv_prog_compiler_static_works=no 13278 save_LDFLAGS=$LDFLAGS 13279 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13280 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13281 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13282 # The linker can only warn and ignore the option if not recognized 13283 # So say no if there are warnings 13284 if test -s conftest.err; then 13285 # Append any errors to the config.log. 13286 cat conftest.err 1>&5 13287 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.expsym 13288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13289 if diff conftest.expsym conftest.er2 >/dev/null; then 13290 lt_cv_prog_compiler_static_works=yes 13291 fi 13292 else 13293 lt_cv_prog_compiler_static_works=yes 13294 fi 13295 fi 13296 $RM -r conftest* 13297 LDFLAGS=$save_LDFLAGS 13298 ;; 13299 esac 13300 fi 13301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13302 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; } 13303 13304 if test yes = "$lt_cv_prog_compiler_static_works"; then 13305 : 13306 else 13307 lt_prog_compiler_static= 13308 fi 13309 13310 13311 13312 ='-fPIC' 13313 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 13314 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 13315 archive_cmds_need_lc=no 13316 no_undefined_flag= 13317 ;; 13318 13319 *) 13320 dynamic_linker=no 13321 ;; 13322 esac 13323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13324 printf '%s\n' "$dynamic_linker" >&6; } 13325 test no = "$dynamic_linker" && can_build_shared=no 13326 13327 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13328 if test yes = "$GCC"; then 13329 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13330 fi 13331 13332 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13333 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13334 fi 13335 13336 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13337 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13338 fi 13339 13340 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13341 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13342 13343 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13344 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13345 13346 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13347 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13446 printf %s "checking how to hardcode library paths into programs... " >&6; } 13447 hardcode_action= 13448 if test -n "$hardcode_libdir_flag_spec" || 13449 test -n "$runpath_var" || 13450 test yes = "$hardcode_automatic"; then 13451 13452 # We can hardcode non-existent directories. 13453 if test no != "$hardcode_direct" && 13454 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13455 # have to relink, otherwise we might link with an installed library 13456 # when we should be linking with a yet-to-be-installed one 13457 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13458 test no != "$hardcode_minus_L"; then 13459 # Linking always hardcodes the temporary library directory. 13460 hardcode_action=relink 13461 else 13462 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13463 hardcode_action=immediate 13464 fi 13465 else 13466 # We cannot hardcode anything, or else we can only hardcode existing 13467 # directories. 13468 hardcode_action=unsupported 13469 fi 13470 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13471 printf '%s\n' "$hardcode_action" >&6; } 13472 13473 if test relink = "$hardcode_action" || 13474 test yes = "$inherit_rpath"; then 13475 # Fast installation is not supported 13476 enable_fast_install=no 13477 elif test yes = "$shlibpath_overrides_runpath" || 13478 test no = "$enable_shared"; then 13479 # Fast installation is not necessary 13480 enable_fast_install=needless 13481 fi 13482 13483 13484 13485 13486 13487 13488 if test yes != "$enable_dlopen"; then 13489 enable_dlopen=unknown 13490 enable_dlopen_self=unknown 13491 enable_dlopen_self_static=unknown 13492 else 13493 lt_cv_dlopen=no 13494 lt_cv_dlopen_libs= 13495 13496 case $host_os in 13497 beos*) 13498 lt_cv_dlopen=load_add_on 13499 lt_cv_dlopen_libs= 13500 lt_cv_dlopen_self=yes 13501 ;; 13502 13503 mingw* | windows* | pw32* | cegcc*) 13504 lt_cv_dlopen=LoadLibrary 13505 lt_cv_dlopen_libs= 13506 ;; 13507 13508 cygwin*) 13509 lt_cv_dlopen=dlopen 13510 lt_cv_dlopen_libs= 13511 ;; 13512 13513 darwin*) 13514 # if libdl is installed we need to link against it 13515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13516 printf %s "checking for dlopen in -ldl... " >&6; } 13517 if test ${ac_cv_lib_dl_dlopen+y} 13518 then : 13519 printf %s "(cached) " >&6 13520 else case e in #( 13521 e) ac_check_lib_save_LIBS=$LIBS 13522 LIBS="-ldl $LIBS" 13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13524 /* end confdefs.h. */ 13525 13526 /* Override any GCC internal prototype to avoid an error. 13527 Use char because int might match the return type of a GCC 13528 builtin and then its argument prototype would still apply. 13529 The 'extern "C"' is for builds by C++ compilers; 13530 although this is not generally supported in C code supporting it here 13531 has little cost and some practical benefit (sr 110532). */ 13532 #ifdef __cplusplus 13533 extern "C" 13534 #endif 13535 char dlopen (void); 13536 int 13537 main (void) 13538 { 13539 return dlopen (); 13540 ; 13541 return 0; 13542 } 13543 _ACEOF 13544 if ac_fn_c_try_link "$LINENO" 13545 then : 13546 ac_cv_lib_dl_dlopen=yes 13547 else case e in #( 13548 e) ac_cv_lib_dl_dlopen=no ;; 13549 esac 13550 fi 13551 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13552 conftest$ac_exeext conftest.$ac_ext 13553 LIBS=$ac_check_lib_save_LIBS ;; 13554 esac 13555 fi 13556 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13557 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; } 13558 if test "x$ac_cv_lib_dl_dlopen" = xyes 13559 then : 13560 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13561 else case e in #( 13562 e) 13563 lt_cv_dlopen=dyld 13564 lt_cv_dlopen_libs= 13565 lt_cv_dlopen_self=yes 13566 ;; 13567 esac 13568 fi 13569 13570 ;; 13571 13572 tpf*) 13573 # Don't try to run any link tests for TPF. We know it's impossible 13574 # because TPF is a cross-compiler, and we know how we open DSOs. 13575 lt_cv_dlopen=dlopen 13576 lt_cv_dlopen_libs= 13577 lt_cv_dlopen_self=no 13578 ;; 13579 13580 *) 13581 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13582 if test "x$ac_cv_func_shl_load" = xyes 13583 then : 13584 lt_cv_dlopen=shl_load 13585 else case e in #( 13586 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13587 printf %s "checking for shl_load in -ldld... " >&6; } 13588 if test ${ac_cv_lib_dld_shl_load+y} 13589 then : 13590 printf %s "(cached) " >&6 13591 else case e in #( 13592 e) ac_check_lib_save_LIBS=$LIBS 13593 LIBS="-ldld $LIBS" 13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13595 /* end confdefs.h. */ 13596 13597 /* Override any GCC internal prototype to avoid an error. 13598 Use char because int might match the return type of a GCC 13599 builtin and then its argument prototype would still apply. 13600 The 'extern "C"' is for builds by C++ compilers; 13601 although this is not generally supported in C code supporting it here 13602 has little cost and some practical benefit (sr 110532). */ 13603 #ifdef __cplusplus 13604 extern "C" 13605 #endif 13606 char shl_load (void); 13607 int 13608 main (void) 13609 { 13610 return shl_load (); 13611 ; 13612 return 0; 13613 } 13614 _ACEOF 13615 if ac_fn_c_try_link "$LINENO" 13616 then : 13617 ac_cv_lib_dld_shl_load=yes 13618 else case e in #( 13619 e) ac_cv_lib_dld_shl_load=no ;; 13620 esac 13621 fi 13622 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13623 conftest$ac_exeext conftest.$ac_ext 13624 LIBS=$ac_check_lib_save_LIBS ;; 13625 esac 13626 fi 13627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13628 printf '%s\n' "$ac_cv_lib_dld_shl_load" >&6; } 13629 if test "x$ac_cv_lib_dld_shl_load" = xyes 13630 then : 13631 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13632 else case e in #( 13633 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13634 if test "x$ac_cv_func_dlopen" = xyes 13635 then : 13636 lt_cv_dlopen=dlopen 13637 else case e in #( 13638 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13639 printf %s "checking for dlopen in -ldl... " >&6; } 13640 if test ${ac_cv_lib_dl_dlopen+y} 13641 then : 13642 printf %s "(cached) " >&6 13643 else case e in #( 13644 e) ac_check_lib_save_LIBS=$LIBS 13645 LIBS="-ldl $LIBS" 13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647 /* end confdefs.h. */ 13648 13649 /* Override any GCC internal prototype to avoid an error. 13650 Use char because int might match the return type of a GCC 13651 builtin and then its argument prototype would still apply. 13652 The 'extern "C"' is for builds by C++ compilers; 13653 although this is not generally supported in C code supporting it here 13654 has little cost and some practical benefit (sr 110532). */ 13655 #ifdef __cplusplus 13656 extern "C" 13657 #endif 13658 char dlopen (void); 13659 int 13660 main (void) 13661 { 13662 return dlopen (); 13663 ; 13664 return 0; 13665 } 13666 _ACEOF 13667 if ac_fn_c_try_link "$LINENO" 13668 then : 13669 ac_cv_lib_dl_dlopen=yes 13670 else case e in #( 13671 e) ac_cv_lib_dl_dlopen=no ;; 13672 esac 13673 fi 13674 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13675 conftest$ac_exeext conftest.$ac_ext 13676 LIBS=$ac_check_lib_save_LIBS ;; 13677 esac 13678 fi 13679 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13680 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; } 13681 if test "x$ac_cv_lib_dl_dlopen" = xyes 13682 then : 13683 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13684 else case e in #( 13685 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13686 printf %s "checking for dlopen in -lsvld... " >&6; } 13687 if test ${ac_cv_lib_svld_dlopen+y} 13688 then : 13689 printf %s "(cached) " >&6 13690 else case e in #( 13691 e) ac_check_lib_save_LIBS=$LIBS 13692 LIBS="-lsvld $LIBS" 13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13694 /* end confdefs.h. */ 13695 13696 /* Override any GCC internal prototype to avoid an error. 13697 Use char because int might match the return type of a GCC 13698 builtin and then its argument prototype would still apply. 13699 The 'extern "C"' is for builds by C++ compilers; 13700 although this is not generally supported in C code supporting it here 13701 has little cost and some practical benefit (sr 110532). */ 13702 #ifdef __cplusplus 13703 extern "C" 13704 #endif 13705 char dlopen (void); 13706 int 13707 main (void) 13708 { 13709 return dlopen (); 13710 ; 13711 return 0; 13712 } 13713 _ACEOF 13714 if ac_fn_c_try_link "$LINENO" 13715 then : 13716 ac_cv_lib_svld_dlopen=yes 13717 else case e in #( 13718 e) ac_cv_lib_svld_dlopen=no ;; 13719 esac 13720 fi 13721 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13722 conftest$ac_exeext conftest.$ac_ext 13723 LIBS=$ac_check_lib_save_LIBS ;; 13724 esac 13725 fi 13726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13727 printf '%s\n' "$ac_cv_lib_svld_dlopen" >&6; } 13728 if test "x$ac_cv_lib_svld_dlopen" = xyes 13729 then : 13730 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13731 else case e in #( 13732 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13733 printf %s "checking for dld_link in -ldld... " >&6; } 13734 if test ${ac_cv_lib_dld_dld_link+y} 13735 then : 13736 printf %s "(cached) " >&6 13737 else case e in #( 13738 e) ac_check_lib_save_LIBS=$LIBS 13739 LIBS="-ldld $LIBS" 13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13741 /* end confdefs.h. */ 13742 13743 /* Override any GCC internal prototype to avoid an error. 13744 Use char because int might match the return type of a GCC 13745 builtin and then its argument prototype would still apply. 13746 The 'extern "C"' is for builds by C++ compilers; 13747 although this is not generally supported in C code supporting it here 13748 has little cost and some practical benefit (sr 110532). */ 13749 #ifdef __cplusplus 13750 extern "C" 13751 #endif 13752 char dld_link (void); 13753 int 13754 main (void) 13755 { 13756 return dld_link (); 13757 ; 13758 return 0; 13759 } 13760 _ACEOF 13761 if ac_fn_c_try_link "$LINENO" 13762 then : 13763 ac_cv_lib_dld_dld_link=yes 13764 else case e in #( 13765 e) ac_cv_lib_dld_dld_link=no ;; 13766 esac 13767 fi 13768 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13769 conftest$ac_exeext conftest.$ac_ext 13770 LIBS=$ac_check_lib_save_LIBS ;; 13771 esac 13772 fi 13773 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13774 printf '%s\n' "$ac_cv_lib_dld_dld_link" >&6; } 13775 if test "x$ac_cv_lib_dld_dld_link" = xyes 13776 then : 13777 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13778 fi 13779 13780 ;; 13781 esac 13782 fi 13783 13784 ;; 13785 esac 13786 fi 13787 13788 ;; 13789 esac 13790 fi 13791 13792 ;; 13793 esac 13794 fi 13795 13796 ;; 13797 esac 13798 fi 13799 13800 ;; 13801 esac 13802 13803 if test no = "$lt_cv_dlopen"; then 13804 enable_dlopen=no 13805 else 13806 enable_dlopen=yes 13807 fi 13808 13809 case $lt_cv_dlopen in 13810 dlopen) 13811 save_CPPFLAGS=$CPPFLAGS 13812 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13813 13814 save_LDFLAGS=$LDFLAGS 13815 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13816 13817 save_LIBS=$LIBS 13818 LIBS="$lt_cv_dlopen_libs $LIBS" 13819 13820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13821 printf %s "checking whether a program can dlopen itself... " >&6; } 13822 if test ${lt_cv_dlopen_self+y} 13823 then : 13824 printf %s "(cached) " >&6 13825 else case e in #( 13826 e) if test yes = "$cross_compiling"; then : 13827 lt_cv_dlopen_self=cross 13828 else 13829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13830 lt_status=$lt_dlunknown 13831 cat > conftest.$ac_ext <<_LT_EOF 13832 #line $LINENO "configure" 13833 #include "confdefs.h" 13834 13835 #if HAVE_DLFCN_H 13836 #include <dlfcn.h> 13837 #endif 13838 13839 #include <stdio.h> 13840 13841 #ifdef RTLD_GLOBAL 13842 # define LT_DLGLOBAL RTLD_GLOBAL 13843 #else 13844 # ifdef DL_GLOBAL 13845 # define LT_DLGLOBAL DL_GLOBAL 13846 # else 13847 # define LT_DLGLOBAL 0 13848 # endif 13849 #endif 13850 13851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13852 find out it does not work in some platform. */ 13853 #ifndef LT_DLLAZY_OR_NOW 13854 # ifdef RTLD_LAZY 13855 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13856 # else 13857 # ifdef DL_LAZY 13858 # define LT_DLLAZY_OR_NOW DL_LAZY 13859 # else 13860 # ifdef RTLD_NOW 13861 # define LT_DLLAZY_OR_NOW RTLD_NOW 13862 # else 13863 # ifdef DL_NOW 13864 # define LT_DLLAZY_OR_NOW DL_NOW 13865 # else 13866 # define LT_DLLAZY_OR_NOW 0 13867 # endif 13868 # endif 13869 # endif 13870 # endif 13871 #endif 13872 13873 /* When -fvisibility=hidden is used, assume the code has been annotated 13874 correspondingly for the symbols needed. */ 13875 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13876 int fnord (void) __attribute__((visibility("default"))); 13877 #endif 13878 13879 int fnord (void) { return 42; } 13880 int main (void) 13881 { 13882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13883 int status = $lt_dlunknown; 13884 13885 if (self) 13886 { 13887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13888 else 13889 { 13890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13891 else puts (dlerror ()); 13892 } 13893 /* dlclose (self); */ 13894 } 13895 else 13896 puts (dlerror ()); 13897 13898 return status; 13899 } 13900 _LT_EOF 13901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13902 (eval $ac_link) 2>&5 13903 ac_status=$? 13904 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13905 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13906 (./conftest; exit; ) >&5 2>/dev/null 13907 lt_status=$? 13908 case x$lt_status in 13909 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13910 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13911 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13912 esac 13913 else : 13914 # compilation failed 13915 lt_cv_dlopen_self=no 13916 fi 13917 fi 13918 rm -fr conftest* 13919 13920 ;; 13921 esac 13922 fi 13923 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13924 printf '%s\n' "$lt_cv_dlopen_self" >&6; } 13925 13926 if test yes = "$lt_cv_dlopen_self"; then 13927 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13928 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13929 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13930 if test ${lt_cv_dlopen_self_static+y} 13931 then : 13932 printf %s "(cached) " >&6 13933 else case e in #( 13934 e) if test yes = "$cross_compiling"; then : 13935 lt_cv_dlopen_self_static=cross 13936 else 13937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13938 lt_status=$lt_dlunknown 13939 cat > conftest.$ac_ext <<_LT_EOF 13940 #line $LINENO "configure" 13941 #include "confdefs.h" 13942 13943 #if HAVE_DLFCN_H 13944 #include <dlfcn.h> 13945 #endif 13946 13947 #include <stdio.h> 13948 13949 #ifdef RTLD_GLOBAL 13950 # define LT_DLGLOBAL RTLD_GLOBAL 13951 #else 13952 # ifdef DL_GLOBAL 13953 # define LT_DLGLOBAL DL_GLOBAL 13954 # else 13955 # define LT_DLGLOBAL 0 13956 # endif 13957 #endif 13958 13959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13960 find out it does not work in some platform. */ 13961 #ifndef LT_DLLAZY_OR_NOW 13962 # ifdef RTLD_LAZY 13963 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13964 # else 13965 # ifdef DL_LAZY 13966 # define LT_DLLAZY_OR_NOW DL_LAZY 13967 # else 13968 # ifdef RTLD_NOW 13969 # define LT_DLLAZY_OR_NOW RTLD_NOW 13970 # else 13971 # ifdef DL_NOW 13972 # define LT_DLLAZY_OR_NOW DL_NOW 13973 # else 13974 # define LT_DLLAZY_OR_NOW 0 13975 # endif 13976 # endif 13977 # endif 13978 # endif 13979 #endif 13980 13981 /* When -fvisibility=hidden is used, assume the code has been annotated 13982 correspondingly for the symbols needed. */ 13983 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13984 int fnord (void) __attribute__((visibility("default"))); 13985 #endif 13986 13987 int fnord (void) { return 42; } 13988 int main (void) 13989 { 13990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13991 int status = $lt_dlunknown; 13992 13993 if (self) 13994 { 13995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13996 else 13997 { 13998 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13999 else puts (dlerror ()); 14000 } 14001 /* dlclose (self); */ 14002 } 14003 else 14004 puts (dlerror ()); 14005 14006 return status; 14007 } 14008 _LT_EOF 14009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14010 (eval $ac_link) 2>&5 14011 ac_status=$? 14012 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14013 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14014 (./conftest; exit; ) >&5 2>/dev/null 14015 lt_status=$? 14016 case x$lt_status in 14017 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14018 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14019 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14020 esac 14021 else : 14022 # compilation failed 14023 lt_cv_dlopen_self_static=no 14024 fi 14025 fi 14026 rm -fr conftest* 14027 14028 ;; 14029 esac 14030 fi 14031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14032 printf '%s\n' "$lt_cv_dlopen_self_static" >&6; } 14033 fi 14034 14035 CPPFLAGS=$save_CPPFLAGS 14036 LDFLAGS=$save_LDFLAGS 14037 LIBS=$save_LIBS 14038 ;; 14039 esac 14040 14041 case $lt_cv_dlopen_self in 14042 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14043 *) enable_dlopen_self=unknown ;; 14044 esac 14045 14046 case $lt_cv_dlopen_self_static in 14047 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14048 *) enable_dlopen_self_static=unknown ;; 14049 esac 14050 fi 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 striplib= 14069 old_striplib= 14070 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14071 printf %s "checking whether stripping libraries is possible... " >&6; } 14072 if test -z "$STRIP"; then 14073 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 14074 printf '%s\n' "no" >&6; } 14075 else 14076 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14077 old_striplib="$STRIP --strip-debug" 14078 striplib="$STRIP --strip-unneeded" 14079 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14080 printf '%s\n' "yes" >&6; } 14081 else 14082 case $host_os in 14083 darwin*) 14084 # FIXME - insert some real tests, host_os isn't really good enough 14085 striplib="$STRIP -x" 14086 old_striplib="$STRIP -S" 14087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14088 printf '%s\n' "yes" >&6; } 14089 ;; 14090 freebsd*) 14091 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 14092 old_striplib="$STRIP --strip-debug" 14093 striplib="$STRIP --strip-unneeded" 14094 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14095 printf '%s\n' "yes" >&6; } 14096 else 14097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 14098 printf '%s\n' "no" >&6; } 14099 fi 14100 ;; 14101 *) 14102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 14103 printf '%s\n' "no" >&6; } 14104 ;; 14105 esac 14106 fi 14107 fi 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 # Report what library types will actually be built 14121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14122 printf %s "checking if libtool supports shared libraries... " >&6; } 14123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14124 printf '%s\n' "$can_build_shared" >&6; } 14125 14126 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14127 printf %s "checking whether to build shared libraries... " >&6; } 14128 test no = "$can_build_shared" && enable_shared=no 14129 14130 # On AIX, shared libraries and static libraries use the same namespace, and 14131 # are all built from PIC. 14132 case $host_os in 14133 aix3*) 14134 test yes = "$enable_shared" && enable_static=no 14135 if test -n "$RANLIB"; then 14136 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14137 postinstall_cmds='$RANLIB $lib' 14138 fi 14139 ;; 14140 14141 aix[4-9]*) 14142 if test ia64 != "$host_cpu"; then 14143 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14144 yes,aix,yes) ;; # shared object as lib.so file only 14145 yes,svr4,*) ;; # shared object as lib.so archive member only 14146 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14147 esac 14148 fi 14149 ;; 14150 esac 14151 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14152 printf '%s\n' "$enable_shared" >&6; } 14153 14154 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14155 printf %s "checking whether to build static libraries... " >&6; } 14156 # Make sure either enable_shared or enable_static is yes. 14157 test yes = "$enable_shared" || enable_static=yes 14158 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14159 printf '%s\n' "$enable_static" >&6; } 14160 14161 14162 14163 14164 fi 14165 ac_ext=c 14166 ac_cpp='$CPP $CPPFLAGS' 14167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14169 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14170 14171 CC=$lt_save_CC 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 ac_config_commands="$ac_config_commands libtool" 14195 14196 14197 14198 14199 # Only expand once: 14200 14201 14202 14203 # Require xorg-macros minimum of 1.12 for DocBook external references 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5 14216 printf %s "checking for $CC options to detect undeclared functions... " >&6; } 14217 if test ${ac_cv_c_undeclared_builtin_options+y} 14218 then : 14219 printf %s "(cached) " >&6 14220 else case e in #( 14221 e) ac_save_CFLAGS=$CFLAGS 14222 ac_cv_c_undeclared_builtin_options='cannot detect' 14223 for ac_arg in '' -fno-builtin; do 14224 CFLAGS="$ac_save_CFLAGS $ac_arg" 14225 # This test program should *not* compile successfully. 14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14227 /* end confdefs.h. */ 14228 14229 int 14230 main (void) 14231 { 14232 (void) strchr; 14233 ; 14234 return 0; 14235 } 14236 _ACEOF 14237 if ac_fn_c_try_compile "$LINENO" 14238 then : 14239 14240 else case e in #( 14241 e) # This test program should compile successfully. 14242 # No library function is consistently available on 14243 # freestanding implementations, so test against a dummy 14244 # declaration. Include always-available headers on the 14245 # off chance that they somehow elicit warnings. 14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14247 /* end confdefs.h. */ 14248 #include <float.h> 14249 #include <limits.h> 14250 #include <stdarg.h> 14251 #include <stddef.h> 14252 extern void ac_decl (int, char *); 14253 14254 int 14255 main (void) 14256 { 14257 (void) ac_decl (0, (char *) 0); 14258 (void) ac_decl; 14259 14260 ; 14261 return 0; 14262 } 14263 _ACEOF 14264 if ac_fn_c_try_compile "$LINENO" 14265 then : 14266 if test x"$ac_arg" = x 14267 then : 14268 ac_cv_c_undeclared_builtin_options='none needed' 14269 else case e in #( 14270 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 14271 esac 14272 fi 14273 break 14274 fi 14275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14276 esac 14277 fi 14278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14279 done 14280 CFLAGS=$ac_save_CFLAGS 14281 ;; 14282 esac 14283 fi 14284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 14285 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; } 14286 case $ac_cv_c_undeclared_builtin_options in #( 14287 'cannot detect') : 14288 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14289 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 14290 as_fn_error $? "cannot make $CC report undeclared builtins 14291 See 'config.log' for more details" "$LINENO" 5; } ;; #( 14292 'none needed') : 14293 ac_c_undeclared_builtin_options='' ;; #( 14294 *) : 14295 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 14296 esac 14297 14298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5 14299 printf %s "checking for $CC options to ignore future-version functions... " >&6; } 14300 if test ${ac_cv_c_future_darwin_options+y} 14301 then : 14302 printf %s "(cached) " >&6 14303 else case e in #( 14304 e) ac_compile_saved="$ac_compile" 14305 ac_compile="$ac_compile -Werror=unguarded-availability-new" 14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14307 /* end confdefs.h. */ 14308 #if ! (defined __APPLE__ && defined __MACH__) 14309 #error "-Werror=unguarded-availability-new not needed here" 14310 #endif 14311 14312 int 14313 main (void) 14314 { 14315 14316 ; 14317 return 0; 14318 } 14319 _ACEOF 14320 if ac_fn_c_try_compile "$LINENO" 14321 then : 14322 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new' 14323 else case e in #( 14324 e) ac_cv_c_future_darwin_options='none needed' ;; 14325 esac 14326 fi 14327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14328 ac_compile="$ac_compile_saved" 14329 ;; 14330 esac 14331 fi 14332 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5 14333 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; } 14334 case $ac_cv_c_future_darwin_options in #( 14335 'none needed') : 14336 ac_c_future_darwin_options='' ;; #( 14337 *) : 14338 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;; 14339 esac 14340 14341 14342 14343 14344 14345 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 14346 if test "x$ac_cv_have_decl___clang__" = xyes 14347 then : 14348 CLANGCC="yes" 14349 else case e in #( 14350 e) CLANGCC="no" ;; 14351 esac 14352 fi 14353 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 14354 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 14355 then : 14356 INTELCC="yes" 14357 else case e in #( 14358 e) INTELCC="no" ;; 14359 esac 14360 fi 14361 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS" 14362 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 14363 then : 14364 SUNCC="yes" 14365 else case e in #( 14366 e) SUNCC="no" ;; 14367 esac 14368 fi 14369 14370 14371 14372 14373 14374 14375 14376 14377 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14378 if test -n "$ac_tool_prefix"; then 14379 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14380 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14382 printf %s "checking for $ac_word... " >&6; } 14383 if test ${ac_cv_path_PKG_CONFIG+y} 14384 then : 14385 printf %s "(cached) " >&6 14386 else case e in #( 14387 e) case $PKG_CONFIG in 14388 [\\/]* | ?:[\\/]*) 14389 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14390 ;; 14391 *) 14392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14393 for as_dir in $PATH 14394 do 14395 IFS=$as_save_IFS 14396 case $as_dir in #((( 14397 '') as_dir=./ ;; 14398 */) ;; 14399 *) as_dir=$as_dir/ ;; 14400 esac 14401 for ac_exec_ext in '' $ac_executable_extensions; do 14402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14403 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14404 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14405 break 2 14406 fi 14407 done 14408 done 14409 IFS=$as_save_IFS 14410 14411 ;; 14412 esac ;; 14413 esac 14414 fi 14415 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14416 if test -n "$PKG_CONFIG"; then 14417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14418 printf '%s\n' "$PKG_CONFIG" >&6; } 14419 else 14420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 14421 printf '%s\n' "no" >&6; } 14422 fi 14423 14424 14425 fi 14426 if test -z "$ac_cv_path_PKG_CONFIG"; then 14427 ac_pt_PKG_CONFIG=$PKG_CONFIG 14428 # Extract the first word of "pkg-config", so it can be a program name with args. 14429 set dummy pkg-config; ac_word=$2 14430 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14431 printf %s "checking for $ac_word... " >&6; } 14432 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 14433 then : 14434 printf %s "(cached) " >&6 14435 else case e in #( 14436 e) case $ac_pt_PKG_CONFIG in 14437 [\\/]* | ?:[\\/]*) 14438 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14439 ;; 14440 *) 14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14442 for as_dir in $PATH 14443 do 14444 IFS=$as_save_IFS 14445 case $as_dir in #((( 14446 '') as_dir=./ ;; 14447 */) ;; 14448 *) as_dir=$as_dir/ ;; 14449 esac 14450 for ac_exec_ext in '' $ac_executable_extensions; do 14451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14452 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14453 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14454 break 2 14455 fi 14456 done 14457 done 14458 IFS=$as_save_IFS 14459 14460 ;; 14461 esac ;; 14462 esac 14463 fi 14464 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14465 if test -n "$ac_pt_PKG_CONFIG"; then 14466 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14467 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; } 14468 else 14469 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 14470 printf '%s\n' "no" >&6; } 14471 fi 14472 14473 if test "x$ac_pt_PKG_CONFIG" = x; then 14474 PKG_CONFIG="" 14475 else 14476 case $cross_compiling:$ac_tool_warned in 14477 yes:) 14478 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14479 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14480 ac_tool_warned=yes ;; 14481 esac 14482 PKG_CONFIG=$ac_pt_PKG_CONFIG 14483 fi 14484 else 14485 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14486 fi 14487 14488 fi 14489 if test -n "$PKG_CONFIG"; then 14490 _pkg_min_version=0.9.0 14491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14492 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14493 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14494 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14495 printf '%s\n' "yes" >&6; } 14496 else 14497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 14498 printf '%s\n' "no" >&6; } 14499 PKG_CONFIG="" 14500 fi 14501 fi 14502 14503 14504 14505 14506 14507 # Check whether --enable-selective-werror was given. 14508 if test ${enable_selective_werror+y} 14509 then : 14510 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 14511 else case e in #( 14512 e) SELECTIVE_WERROR=yes ;; 14513 esac 14514 fi 14515 14516 14517 14518 14519 14520 # -v is too short to test reliably with XORG_TESTSET_CFLAG 14521 if test "x$SUNCC" = "xyes"; then 14522 BASE_CFLAGS="-v" 14523 else 14524 BASE_CFLAGS="" 14525 fi 14526 14527 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 xorg_testset_save_CFLAGS="$CFLAGS" 14542 14543 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14546 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14547 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14548 then : 14549 printf %s "(cached) " >&6 14550 else case e in #( 14551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14552 /* end confdefs.h. */ 14553 int i; 14554 _ACEOF 14555 if ac_fn_c_try_compile "$LINENO" 14556 then : 14557 xorg_cv_cc_flag_unknown_warning_option=yes 14558 else case e in #( 14559 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14560 esac 14561 fi 14562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14563 esac 14564 fi 14565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14566 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14568 CFLAGS="$xorg_testset_save_CFLAGS" 14569 fi 14570 14571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14574 fi 14575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14577 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14578 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14579 then : 14580 printf %s "(cached) " >&6 14581 else case e in #( 14582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583 /* end confdefs.h. */ 14584 int i; 14585 _ACEOF 14586 if ac_fn_c_try_compile "$LINENO" 14587 then : 14588 xorg_cv_cc_flag_unused_command_line_argument=yes 14589 else case e in #( 14590 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14591 esac 14592 fi 14593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14594 esac 14595 fi 14596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14597 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14599 CFLAGS="$xorg_testset_save_CFLAGS" 14600 fi 14601 14602 found="no" 14603 14604 if test $found = "no" ; then 14605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14607 fi 14608 14609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14611 fi 14612 14613 CFLAGS="$CFLAGS -Wall" 14614 14615 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14616 printf %s "checking if $CC supports -Wall... " >&6; } 14617 cacheid=xorg_cv_cc_flag__Wall 14618 if eval test \${$cacheid+y} 14619 then : 14620 printf %s "(cached) " >&6 14621 else case e in #( 14622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14623 /* end confdefs.h. */ 14624 int i; 14625 int 14626 main (void) 14627 { 14628 14629 ; 14630 return 0; 14631 } 14632 _ACEOF 14633 if ac_fn_c_try_link "$LINENO" 14634 then : 14635 eval $cacheid=yes 14636 else case e in #( 14637 e) eval $cacheid=no ;; 14638 esac 14639 fi 14640 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14641 conftest$ac_exeext conftest.$ac_ext ;; 14642 esac 14643 fi 14644 14645 14646 CFLAGS="$xorg_testset_save_CFLAGS" 14647 14648 eval supported=\$$cacheid 14649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14650 printf '%s\n' "$supported" >&6; } 14651 if test "$supported" = "yes" ; then 14652 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14653 found="yes" 14654 fi 14655 fi 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 xorg_testset_save_CFLAGS="$CFLAGS" 14672 14673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14675 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14676 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14677 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14678 then : 14679 printf %s "(cached) " >&6 14680 else case e in #( 14681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14682 /* end confdefs.h. */ 14683 int i; 14684 _ACEOF 14685 if ac_fn_c_try_compile "$LINENO" 14686 then : 14687 xorg_cv_cc_flag_unknown_warning_option=yes 14688 else case e in #( 14689 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14690 esac 14691 fi 14692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14693 esac 14694 fi 14695 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14696 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14698 CFLAGS="$xorg_testset_save_CFLAGS" 14699 fi 14700 14701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14704 fi 14705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14706 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14707 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14708 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14709 then : 14710 printf %s "(cached) " >&6 14711 else case e in #( 14712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14713 /* end confdefs.h. */ 14714 int i; 14715 _ACEOF 14716 if ac_fn_c_try_compile "$LINENO" 14717 then : 14718 xorg_cv_cc_flag_unused_command_line_argument=yes 14719 else case e in #( 14720 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14721 esac 14722 fi 14723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14724 esac 14725 fi 14726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14727 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14729 CFLAGS="$xorg_testset_save_CFLAGS" 14730 fi 14731 14732 found="no" 14733 14734 if test $found = "no" ; then 14735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14737 fi 14738 14739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14741 fi 14742 14743 CFLAGS="$CFLAGS -Wpointer-arith" 14744 14745 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14746 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14747 cacheid=xorg_cv_cc_flag__Wpointer_arith 14748 if eval test \${$cacheid+y} 14749 then : 14750 printf %s "(cached) " >&6 14751 else case e in #( 14752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14753 /* end confdefs.h. */ 14754 int i; 14755 int 14756 main (void) 14757 { 14758 14759 ; 14760 return 0; 14761 } 14762 _ACEOF 14763 if ac_fn_c_try_link "$LINENO" 14764 then : 14765 eval $cacheid=yes 14766 else case e in #( 14767 e) eval $cacheid=no ;; 14768 esac 14769 fi 14770 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14771 conftest$ac_exeext conftest.$ac_ext ;; 14772 esac 14773 fi 14774 14775 14776 CFLAGS="$xorg_testset_save_CFLAGS" 14777 14778 eval supported=\$$cacheid 14779 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14780 printf '%s\n' "$supported" >&6; } 14781 if test "$supported" = "yes" ; then 14782 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14783 found="yes" 14784 fi 14785 fi 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 xorg_testset_save_CFLAGS="$CFLAGS" 14802 14803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14806 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14807 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14808 then : 14809 printf %s "(cached) " >&6 14810 else case e in #( 14811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14812 /* end confdefs.h. */ 14813 int i; 14814 _ACEOF 14815 if ac_fn_c_try_compile "$LINENO" 14816 then : 14817 xorg_cv_cc_flag_unknown_warning_option=yes 14818 else case e in #( 14819 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14820 esac 14821 fi 14822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14823 esac 14824 fi 14825 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14826 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14828 CFLAGS="$xorg_testset_save_CFLAGS" 14829 fi 14830 14831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14834 fi 14835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14836 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14837 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14838 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14839 then : 14840 printf %s "(cached) " >&6 14841 else case e in #( 14842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14843 /* end confdefs.h. */ 14844 int i; 14845 _ACEOF 14846 if ac_fn_c_try_compile "$LINENO" 14847 then : 14848 xorg_cv_cc_flag_unused_command_line_argument=yes 14849 else case e in #( 14850 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14851 esac 14852 fi 14853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14854 esac 14855 fi 14856 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14857 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14859 CFLAGS="$xorg_testset_save_CFLAGS" 14860 fi 14861 14862 found="no" 14863 14864 if test $found = "no" ; then 14865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14867 fi 14868 14869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14871 fi 14872 14873 CFLAGS="$CFLAGS -Wmissing-declarations" 14874 14875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14876 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14877 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14878 if eval test \${$cacheid+y} 14879 then : 14880 printf %s "(cached) " >&6 14881 else case e in #( 14882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14883 /* end confdefs.h. */ 14884 int i; 14885 int 14886 main (void) 14887 { 14888 14889 ; 14890 return 0; 14891 } 14892 _ACEOF 14893 if ac_fn_c_try_link "$LINENO" 14894 then : 14895 eval $cacheid=yes 14896 else case e in #( 14897 e) eval $cacheid=no ;; 14898 esac 14899 fi 14900 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14901 conftest$ac_exeext conftest.$ac_ext ;; 14902 esac 14903 fi 14904 14905 14906 CFLAGS="$xorg_testset_save_CFLAGS" 14907 14908 eval supported=\$$cacheid 14909 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14910 printf '%s\n' "$supported" >&6; } 14911 if test "$supported" = "yes" ; then 14912 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14913 found="yes" 14914 fi 14915 fi 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 xorg_testset_save_CFLAGS="$CFLAGS" 14932 14933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14935 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14936 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14937 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14938 then : 14939 printf %s "(cached) " >&6 14940 else case e in #( 14941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14942 /* end confdefs.h. */ 14943 int i; 14944 _ACEOF 14945 if ac_fn_c_try_compile "$LINENO" 14946 then : 14947 xorg_cv_cc_flag_unknown_warning_option=yes 14948 else case e in #( 14949 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14950 esac 14951 fi 14952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14953 esac 14954 fi 14955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14956 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14958 CFLAGS="$xorg_testset_save_CFLAGS" 14959 fi 14960 14961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14964 fi 14965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14966 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14967 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14968 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14969 then : 14970 printf %s "(cached) " >&6 14971 else case e in #( 14972 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14973 /* end confdefs.h. */ 14974 int i; 14975 _ACEOF 14976 if ac_fn_c_try_compile "$LINENO" 14977 then : 14978 xorg_cv_cc_flag_unused_command_line_argument=yes 14979 else case e in #( 14980 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14981 esac 14982 fi 14983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14984 esac 14985 fi 14986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14987 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14989 CFLAGS="$xorg_testset_save_CFLAGS" 14990 fi 14991 14992 found="no" 14993 14994 if test $found = "no" ; then 14995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14997 fi 14998 14999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15001 fi 15002 15003 CFLAGS="$CFLAGS -Wformat=2" 15004 15005 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 15006 printf %s "checking if $CC supports -Wformat=2... " >&6; } 15007 cacheid=xorg_cv_cc_flag__Wformat_2 15008 if eval test \${$cacheid+y} 15009 then : 15010 printf %s "(cached) " >&6 15011 else case e in #( 15012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15013 /* end confdefs.h. */ 15014 int i; 15015 int 15016 main (void) 15017 { 15018 15019 ; 15020 return 0; 15021 } 15022 _ACEOF 15023 if ac_fn_c_try_link "$LINENO" 15024 then : 15025 eval $cacheid=yes 15026 else case e in #( 15027 e) eval $cacheid=no ;; 15028 esac 15029 fi 15030 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15031 conftest$ac_exeext conftest.$ac_ext ;; 15032 esac 15033 fi 15034 15035 15036 CFLAGS="$xorg_testset_save_CFLAGS" 15037 15038 eval supported=\$$cacheid 15039 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15040 printf '%s\n' "$supported" >&6; } 15041 if test "$supported" = "yes" ; then 15042 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 15043 found="yes" 15044 fi 15045 fi 15046 15047 if test $found = "no" ; then 15048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15050 fi 15051 15052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15054 fi 15055 15056 CFLAGS="$CFLAGS -Wformat" 15057 15058 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 15059 printf %s "checking if $CC supports -Wformat... " >&6; } 15060 cacheid=xorg_cv_cc_flag__Wformat 15061 if eval test \${$cacheid+y} 15062 then : 15063 printf %s "(cached) " >&6 15064 else case e in #( 15065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15066 /* end confdefs.h. */ 15067 int i; 15068 int 15069 main (void) 15070 { 15071 15072 ; 15073 return 0; 15074 } 15075 _ACEOF 15076 if ac_fn_c_try_link "$LINENO" 15077 then : 15078 eval $cacheid=yes 15079 else case e in #( 15080 e) eval $cacheid=no ;; 15081 esac 15082 fi 15083 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15084 conftest$ac_exeext conftest.$ac_ext ;; 15085 esac 15086 fi 15087 15088 15089 CFLAGS="$xorg_testset_save_CFLAGS" 15090 15091 eval supported=\$$cacheid 15092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15093 printf '%s\n' "$supported" >&6; } 15094 if test "$supported" = "yes" ; then 15095 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 15096 found="yes" 15097 fi 15098 fi 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 xorg_testset_save_CFLAGS="$CFLAGS" 15117 15118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15121 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15122 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15123 then : 15124 printf %s "(cached) " >&6 15125 else case e in #( 15126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15127 /* end confdefs.h. */ 15128 int i; 15129 _ACEOF 15130 if ac_fn_c_try_compile "$LINENO" 15131 then : 15132 xorg_cv_cc_flag_unknown_warning_option=yes 15133 else case e in #( 15134 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15135 esac 15136 fi 15137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15138 esac 15139 fi 15140 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15141 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15143 CFLAGS="$xorg_testset_save_CFLAGS" 15144 fi 15145 15146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15149 fi 15150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15151 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15152 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15153 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15154 then : 15155 printf %s "(cached) " >&6 15156 else case e in #( 15157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15158 /* end confdefs.h. */ 15159 int i; 15160 _ACEOF 15161 if ac_fn_c_try_compile "$LINENO" 15162 then : 15163 xorg_cv_cc_flag_unused_command_line_argument=yes 15164 else case e in #( 15165 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15166 esac 15167 fi 15168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15169 esac 15170 fi 15171 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15172 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15174 CFLAGS="$xorg_testset_save_CFLAGS" 15175 fi 15176 15177 found="no" 15178 15179 if test $found = "no" ; then 15180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15182 fi 15183 15184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15186 fi 15187 15188 CFLAGS="$CFLAGS -Wstrict-prototypes" 15189 15190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 15191 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 15192 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 15193 if eval test \${$cacheid+y} 15194 then : 15195 printf %s "(cached) " >&6 15196 else case e in #( 15197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15198 /* end confdefs.h. */ 15199 int i; 15200 int 15201 main (void) 15202 { 15203 15204 ; 15205 return 0; 15206 } 15207 _ACEOF 15208 if ac_fn_c_try_link "$LINENO" 15209 then : 15210 eval $cacheid=yes 15211 else case e in #( 15212 e) eval $cacheid=no ;; 15213 esac 15214 fi 15215 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15216 conftest$ac_exeext conftest.$ac_ext ;; 15217 esac 15218 fi 15219 15220 15221 CFLAGS="$xorg_testset_save_CFLAGS" 15222 15223 eval supported=\$$cacheid 15224 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15225 printf '%s\n' "$supported" >&6; } 15226 if test "$supported" = "yes" ; then 15227 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 15228 found="yes" 15229 fi 15230 fi 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 xorg_testset_save_CFLAGS="$CFLAGS" 15247 15248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15250 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15251 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15252 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15253 then : 15254 printf %s "(cached) " >&6 15255 else case e in #( 15256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15257 /* end confdefs.h. */ 15258 int i; 15259 _ACEOF 15260 if ac_fn_c_try_compile "$LINENO" 15261 then : 15262 xorg_cv_cc_flag_unknown_warning_option=yes 15263 else case e in #( 15264 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15265 esac 15266 fi 15267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15268 esac 15269 fi 15270 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15271 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15273 CFLAGS="$xorg_testset_save_CFLAGS" 15274 fi 15275 15276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15279 fi 15280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15281 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15282 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15283 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15284 then : 15285 printf %s "(cached) " >&6 15286 else case e in #( 15287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15288 /* end confdefs.h. */ 15289 int i; 15290 _ACEOF 15291 if ac_fn_c_try_compile "$LINENO" 15292 then : 15293 xorg_cv_cc_flag_unused_command_line_argument=yes 15294 else case e in #( 15295 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15296 esac 15297 fi 15298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15299 esac 15300 fi 15301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15302 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15304 CFLAGS="$xorg_testset_save_CFLAGS" 15305 fi 15306 15307 found="no" 15308 15309 if test $found = "no" ; then 15310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15312 fi 15313 15314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15316 fi 15317 15318 CFLAGS="$CFLAGS -Wmissing-prototypes" 15319 15320 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 15321 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 15322 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 15323 if eval test \${$cacheid+y} 15324 then : 15325 printf %s "(cached) " >&6 15326 else case e in #( 15327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15328 /* end confdefs.h. */ 15329 int i; 15330 int 15331 main (void) 15332 { 15333 15334 ; 15335 return 0; 15336 } 15337 _ACEOF 15338 if ac_fn_c_try_link "$LINENO" 15339 then : 15340 eval $cacheid=yes 15341 else case e in #( 15342 e) eval $cacheid=no ;; 15343 esac 15344 fi 15345 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15346 conftest$ac_exeext conftest.$ac_ext ;; 15347 esac 15348 fi 15349 15350 15351 CFLAGS="$xorg_testset_save_CFLAGS" 15352 15353 eval supported=\$$cacheid 15354 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15355 printf '%s\n' "$supported" >&6; } 15356 if test "$supported" = "yes" ; then 15357 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 15358 found="yes" 15359 fi 15360 fi 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 xorg_testset_save_CFLAGS="$CFLAGS" 15377 15378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15380 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15381 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15382 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15383 then : 15384 printf %s "(cached) " >&6 15385 else case e in #( 15386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15387 /* end confdefs.h. */ 15388 int i; 15389 _ACEOF 15390 if ac_fn_c_try_compile "$LINENO" 15391 then : 15392 xorg_cv_cc_flag_unknown_warning_option=yes 15393 else case e in #( 15394 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15395 esac 15396 fi 15397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15398 esac 15399 fi 15400 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15401 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15403 CFLAGS="$xorg_testset_save_CFLAGS" 15404 fi 15405 15406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15409 fi 15410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15411 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15412 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15413 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15414 then : 15415 printf %s "(cached) " >&6 15416 else case e in #( 15417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15418 /* end confdefs.h. */ 15419 int i; 15420 _ACEOF 15421 if ac_fn_c_try_compile "$LINENO" 15422 then : 15423 xorg_cv_cc_flag_unused_command_line_argument=yes 15424 else case e in #( 15425 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15426 esac 15427 fi 15428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15429 esac 15430 fi 15431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15432 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15434 CFLAGS="$xorg_testset_save_CFLAGS" 15435 fi 15436 15437 found="no" 15438 15439 if test $found = "no" ; then 15440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15442 fi 15443 15444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15446 fi 15447 15448 CFLAGS="$CFLAGS -Wnested-externs" 15449 15450 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 15451 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 15452 cacheid=xorg_cv_cc_flag__Wnested_externs 15453 if eval test \${$cacheid+y} 15454 then : 15455 printf %s "(cached) " >&6 15456 else case e in #( 15457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15458 /* end confdefs.h. */ 15459 int i; 15460 int 15461 main (void) 15462 { 15463 15464 ; 15465 return 0; 15466 } 15467 _ACEOF 15468 if ac_fn_c_try_link "$LINENO" 15469 then : 15470 eval $cacheid=yes 15471 else case e in #( 15472 e) eval $cacheid=no ;; 15473 esac 15474 fi 15475 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15476 conftest$ac_exeext conftest.$ac_ext ;; 15477 esac 15478 fi 15479 15480 15481 CFLAGS="$xorg_testset_save_CFLAGS" 15482 15483 eval supported=\$$cacheid 15484 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15485 printf '%s\n' "$supported" >&6; } 15486 if test "$supported" = "yes" ; then 15487 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 15488 found="yes" 15489 fi 15490 fi 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 xorg_testset_save_CFLAGS="$CFLAGS" 15507 15508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15510 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15511 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15512 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15513 then : 15514 printf %s "(cached) " >&6 15515 else case e in #( 15516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15517 /* end confdefs.h. */ 15518 int i; 15519 _ACEOF 15520 if ac_fn_c_try_compile "$LINENO" 15521 then : 15522 xorg_cv_cc_flag_unknown_warning_option=yes 15523 else case e in #( 15524 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15525 esac 15526 fi 15527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15528 esac 15529 fi 15530 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15531 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15533 CFLAGS="$xorg_testset_save_CFLAGS" 15534 fi 15535 15536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15539 fi 15540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15541 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15542 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15543 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15544 then : 15545 printf %s "(cached) " >&6 15546 else case e in #( 15547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15548 /* end confdefs.h. */ 15549 int i; 15550 _ACEOF 15551 if ac_fn_c_try_compile "$LINENO" 15552 then : 15553 xorg_cv_cc_flag_unused_command_line_argument=yes 15554 else case e in #( 15555 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15556 esac 15557 fi 15558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15559 esac 15560 fi 15561 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15562 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15564 CFLAGS="$xorg_testset_save_CFLAGS" 15565 fi 15566 15567 found="no" 15568 15569 if test $found = "no" ; then 15570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15572 fi 15573 15574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15576 fi 15577 15578 CFLAGS="$CFLAGS -Wbad-function-cast" 15579 15580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 15581 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 15582 cacheid=xorg_cv_cc_flag__Wbad_function_cast 15583 if eval test \${$cacheid+y} 15584 then : 15585 printf %s "(cached) " >&6 15586 else case e in #( 15587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15588 /* end confdefs.h. */ 15589 int i; 15590 int 15591 main (void) 15592 { 15593 15594 ; 15595 return 0; 15596 } 15597 _ACEOF 15598 if ac_fn_c_try_link "$LINENO" 15599 then : 15600 eval $cacheid=yes 15601 else case e in #( 15602 e) eval $cacheid=no ;; 15603 esac 15604 fi 15605 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15606 conftest$ac_exeext conftest.$ac_ext ;; 15607 esac 15608 fi 15609 15610 15611 CFLAGS="$xorg_testset_save_CFLAGS" 15612 15613 eval supported=\$$cacheid 15614 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15615 printf '%s\n' "$supported" >&6; } 15616 if test "$supported" = "yes" ; then 15617 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 15618 found="yes" 15619 fi 15620 fi 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 xorg_testset_save_CFLAGS="$CFLAGS" 15637 15638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15642 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15643 then : 15644 printf %s "(cached) " >&6 15645 else case e in #( 15646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15647 /* end confdefs.h. */ 15648 int i; 15649 _ACEOF 15650 if ac_fn_c_try_compile "$LINENO" 15651 then : 15652 xorg_cv_cc_flag_unknown_warning_option=yes 15653 else case e in #( 15654 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15655 esac 15656 fi 15657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15658 esac 15659 fi 15660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15661 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15663 CFLAGS="$xorg_testset_save_CFLAGS" 15664 fi 15665 15666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15669 fi 15670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15672 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15673 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15674 then : 15675 printf %s "(cached) " >&6 15676 else case e in #( 15677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15678 /* end confdefs.h. */ 15679 int i; 15680 _ACEOF 15681 if ac_fn_c_try_compile "$LINENO" 15682 then : 15683 xorg_cv_cc_flag_unused_command_line_argument=yes 15684 else case e in #( 15685 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15686 esac 15687 fi 15688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15689 esac 15690 fi 15691 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15692 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15694 CFLAGS="$xorg_testset_save_CFLAGS" 15695 fi 15696 15697 found="no" 15698 15699 if test $found = "no" ; then 15700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15702 fi 15703 15704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15706 fi 15707 15708 CFLAGS="$CFLAGS -Wold-style-definition" 15709 15710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15711 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15712 cacheid=xorg_cv_cc_flag__Wold_style_definition 15713 if eval test \${$cacheid+y} 15714 then : 15715 printf %s "(cached) " >&6 15716 else case e in #( 15717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15718 /* end confdefs.h. */ 15719 int i; 15720 int 15721 main (void) 15722 { 15723 15724 ; 15725 return 0; 15726 } 15727 _ACEOF 15728 if ac_fn_c_try_link "$LINENO" 15729 then : 15730 eval $cacheid=yes 15731 else case e in #( 15732 e) eval $cacheid=no ;; 15733 esac 15734 fi 15735 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15736 conftest$ac_exeext conftest.$ac_ext ;; 15737 esac 15738 fi 15739 15740 15741 CFLAGS="$xorg_testset_save_CFLAGS" 15742 15743 eval supported=\$$cacheid 15744 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15745 printf '%s\n' "$supported" >&6; } 15746 if test "$supported" = "yes" ; then 15747 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15748 found="yes" 15749 fi 15750 fi 15751 15752 if test $found = "no" ; then 15753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15755 fi 15756 15757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15759 fi 15760 15761 CFLAGS="$CFLAGS -fd" 15762 15763 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15764 printf %s "checking if $CC supports -fd... " >&6; } 15765 cacheid=xorg_cv_cc_flag__fd 15766 if eval test \${$cacheid+y} 15767 then : 15768 printf %s "(cached) " >&6 15769 else case e in #( 15770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15771 /* end confdefs.h. */ 15772 int i; 15773 int 15774 main (void) 15775 { 15776 15777 ; 15778 return 0; 15779 } 15780 _ACEOF 15781 if ac_fn_c_try_link "$LINENO" 15782 then : 15783 eval $cacheid=yes 15784 else case e in #( 15785 e) eval $cacheid=no ;; 15786 esac 15787 fi 15788 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15789 conftest$ac_exeext conftest.$ac_ext ;; 15790 esac 15791 fi 15792 15793 15794 CFLAGS="$xorg_testset_save_CFLAGS" 15795 15796 eval supported=\$$cacheid 15797 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15798 printf '%s\n' "$supported" >&6; } 15799 if test "$supported" = "yes" ; then 15800 BASE_CFLAGS="$BASE_CFLAGS -fd" 15801 found="yes" 15802 fi 15803 fi 15804 15805 15806 15807 15808 15809 # This chunk adds additional warnings that could catch undesired effects. 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 xorg_testset_save_CFLAGS="$CFLAGS" 15824 15825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15827 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15828 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15829 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15830 then : 15831 printf %s "(cached) " >&6 15832 else case e in #( 15833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15834 /* end confdefs.h. */ 15835 int i; 15836 _ACEOF 15837 if ac_fn_c_try_compile "$LINENO" 15838 then : 15839 xorg_cv_cc_flag_unknown_warning_option=yes 15840 else case e in #( 15841 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15842 esac 15843 fi 15844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15845 esac 15846 fi 15847 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15848 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15850 CFLAGS="$xorg_testset_save_CFLAGS" 15851 fi 15852 15853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15856 fi 15857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15859 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15860 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15861 then : 15862 printf %s "(cached) " >&6 15863 else case e in #( 15864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15865 /* end confdefs.h. */ 15866 int i; 15867 _ACEOF 15868 if ac_fn_c_try_compile "$LINENO" 15869 then : 15870 xorg_cv_cc_flag_unused_command_line_argument=yes 15871 else case e in #( 15872 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15873 esac 15874 fi 15875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15876 esac 15877 fi 15878 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15879 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15881 CFLAGS="$xorg_testset_save_CFLAGS" 15882 fi 15883 15884 found="no" 15885 15886 if test $found = "no" ; then 15887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15889 fi 15890 15891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15893 fi 15894 15895 CFLAGS="$CFLAGS -Wunused" 15896 15897 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15898 printf %s "checking if $CC supports -Wunused... " >&6; } 15899 cacheid=xorg_cv_cc_flag__Wunused 15900 if eval test \${$cacheid+y} 15901 then : 15902 printf %s "(cached) " >&6 15903 else case e in #( 15904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15905 /* end confdefs.h. */ 15906 int i; 15907 int 15908 main (void) 15909 { 15910 15911 ; 15912 return 0; 15913 } 15914 _ACEOF 15915 if ac_fn_c_try_link "$LINENO" 15916 then : 15917 eval $cacheid=yes 15918 else case e in #( 15919 e) eval $cacheid=no ;; 15920 esac 15921 fi 15922 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15923 conftest$ac_exeext conftest.$ac_ext ;; 15924 esac 15925 fi 15926 15927 15928 CFLAGS="$xorg_testset_save_CFLAGS" 15929 15930 eval supported=\$$cacheid 15931 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15932 printf '%s\n' "$supported" >&6; } 15933 if test "$supported" = "yes" ; then 15934 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15935 found="yes" 15936 fi 15937 fi 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 xorg_testset_save_CFLAGS="$CFLAGS" 15954 15955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15958 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15959 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15960 then : 15961 printf %s "(cached) " >&6 15962 else case e in #( 15963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15964 /* end confdefs.h. */ 15965 int i; 15966 _ACEOF 15967 if ac_fn_c_try_compile "$LINENO" 15968 then : 15969 xorg_cv_cc_flag_unknown_warning_option=yes 15970 else case e in #( 15971 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15972 esac 15973 fi 15974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15975 esac 15976 fi 15977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15978 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15980 CFLAGS="$xorg_testset_save_CFLAGS" 15981 fi 15982 15983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15986 fi 15987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15988 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15989 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15990 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15991 then : 15992 printf %s "(cached) " >&6 15993 else case e in #( 15994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15995 /* end confdefs.h. */ 15996 int i; 15997 _ACEOF 15998 if ac_fn_c_try_compile "$LINENO" 15999 then : 16000 xorg_cv_cc_flag_unused_command_line_argument=yes 16001 else case e in #( 16002 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16003 esac 16004 fi 16005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16006 esac 16007 fi 16008 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16009 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16011 CFLAGS="$xorg_testset_save_CFLAGS" 16012 fi 16013 16014 found="no" 16015 16016 if test $found = "no" ; then 16017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16019 fi 16020 16021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16023 fi 16024 16025 CFLAGS="$CFLAGS -Wuninitialized" 16026 16027 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 16028 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 16029 cacheid=xorg_cv_cc_flag__Wuninitialized 16030 if eval test \${$cacheid+y} 16031 then : 16032 printf %s "(cached) " >&6 16033 else case e in #( 16034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16035 /* end confdefs.h. */ 16036 int i; 16037 int 16038 main (void) 16039 { 16040 16041 ; 16042 return 0; 16043 } 16044 _ACEOF 16045 if ac_fn_c_try_link "$LINENO" 16046 then : 16047 eval $cacheid=yes 16048 else case e in #( 16049 e) eval $cacheid=no ;; 16050 esac 16051 fi 16052 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16053 conftest$ac_exeext conftest.$ac_ext ;; 16054 esac 16055 fi 16056 16057 16058 CFLAGS="$xorg_testset_save_CFLAGS" 16059 16060 eval supported=\$$cacheid 16061 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16062 printf '%s\n' "$supported" >&6; } 16063 if test "$supported" = "yes" ; then 16064 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 16065 found="yes" 16066 fi 16067 fi 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 xorg_testset_save_CFLAGS="$CFLAGS" 16084 16085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16087 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16089 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16090 then : 16091 printf %s "(cached) " >&6 16092 else case e in #( 16093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094 /* end confdefs.h. */ 16095 int i; 16096 _ACEOF 16097 if ac_fn_c_try_compile "$LINENO" 16098 then : 16099 xorg_cv_cc_flag_unknown_warning_option=yes 16100 else case e in #( 16101 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16102 esac 16103 fi 16104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16105 esac 16106 fi 16107 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16108 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16110 CFLAGS="$xorg_testset_save_CFLAGS" 16111 fi 16112 16113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16116 fi 16117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16118 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16119 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16120 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16121 then : 16122 printf %s "(cached) " >&6 16123 else case e in #( 16124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16125 /* end confdefs.h. */ 16126 int i; 16127 _ACEOF 16128 if ac_fn_c_try_compile "$LINENO" 16129 then : 16130 xorg_cv_cc_flag_unused_command_line_argument=yes 16131 else case e in #( 16132 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16133 esac 16134 fi 16135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16136 esac 16137 fi 16138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16139 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16141 CFLAGS="$xorg_testset_save_CFLAGS" 16142 fi 16143 16144 found="no" 16145 16146 if test $found = "no" ; then 16147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16149 fi 16150 16151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16153 fi 16154 16155 CFLAGS="$CFLAGS -Wshadow" 16156 16157 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 16158 printf %s "checking if $CC supports -Wshadow... " >&6; } 16159 cacheid=xorg_cv_cc_flag__Wshadow 16160 if eval test \${$cacheid+y} 16161 then : 16162 printf %s "(cached) " >&6 16163 else case e in #( 16164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16165 /* end confdefs.h. */ 16166 int i; 16167 int 16168 main (void) 16169 { 16170 16171 ; 16172 return 0; 16173 } 16174 _ACEOF 16175 if ac_fn_c_try_link "$LINENO" 16176 then : 16177 eval $cacheid=yes 16178 else case e in #( 16179 e) eval $cacheid=no ;; 16180 esac 16181 fi 16182 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16183 conftest$ac_exeext conftest.$ac_ext ;; 16184 esac 16185 fi 16186 16187 16188 CFLAGS="$xorg_testset_save_CFLAGS" 16189 16190 eval supported=\$$cacheid 16191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16192 printf '%s\n' "$supported" >&6; } 16193 if test "$supported" = "yes" ; then 16194 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 16195 found="yes" 16196 fi 16197 fi 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 xorg_testset_save_CFLAGS="$CFLAGS" 16214 16215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16217 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16218 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16219 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16220 then : 16221 printf %s "(cached) " >&6 16222 else case e in #( 16223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16224 /* end confdefs.h. */ 16225 int i; 16226 _ACEOF 16227 if ac_fn_c_try_compile "$LINENO" 16228 then : 16229 xorg_cv_cc_flag_unknown_warning_option=yes 16230 else case e in #( 16231 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16232 esac 16233 fi 16234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16235 esac 16236 fi 16237 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16238 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16240 CFLAGS="$xorg_testset_save_CFLAGS" 16241 fi 16242 16243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16246 fi 16247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16248 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16249 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16250 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16251 then : 16252 printf %s "(cached) " >&6 16253 else case e in #( 16254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16255 /* end confdefs.h. */ 16256 int i; 16257 _ACEOF 16258 if ac_fn_c_try_compile "$LINENO" 16259 then : 16260 xorg_cv_cc_flag_unused_command_line_argument=yes 16261 else case e in #( 16262 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16263 esac 16264 fi 16265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16266 esac 16267 fi 16268 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16269 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16271 CFLAGS="$xorg_testset_save_CFLAGS" 16272 fi 16273 16274 found="no" 16275 16276 if test $found = "no" ; then 16277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16279 fi 16280 16281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16283 fi 16284 16285 CFLAGS="$CFLAGS -Wmissing-noreturn" 16286 16287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 16288 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 16289 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 16290 if eval test \${$cacheid+y} 16291 then : 16292 printf %s "(cached) " >&6 16293 else case e in #( 16294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16295 /* end confdefs.h. */ 16296 int i; 16297 int 16298 main (void) 16299 { 16300 16301 ; 16302 return 0; 16303 } 16304 _ACEOF 16305 if ac_fn_c_try_link "$LINENO" 16306 then : 16307 eval $cacheid=yes 16308 else case e in #( 16309 e) eval $cacheid=no ;; 16310 esac 16311 fi 16312 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16313 conftest$ac_exeext conftest.$ac_ext ;; 16314 esac 16315 fi 16316 16317 16318 CFLAGS="$xorg_testset_save_CFLAGS" 16319 16320 eval supported=\$$cacheid 16321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16322 printf '%s\n' "$supported" >&6; } 16323 if test "$supported" = "yes" ; then 16324 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 16325 found="yes" 16326 fi 16327 fi 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 xorg_testset_save_CFLAGS="$CFLAGS" 16344 16345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16347 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16348 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16349 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16350 then : 16351 printf %s "(cached) " >&6 16352 else case e in #( 16353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16354 /* end confdefs.h. */ 16355 int i; 16356 _ACEOF 16357 if ac_fn_c_try_compile "$LINENO" 16358 then : 16359 xorg_cv_cc_flag_unknown_warning_option=yes 16360 else case e in #( 16361 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16362 esac 16363 fi 16364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16365 esac 16366 fi 16367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16368 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16370 CFLAGS="$xorg_testset_save_CFLAGS" 16371 fi 16372 16373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16376 fi 16377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16379 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16380 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16381 then : 16382 printf %s "(cached) " >&6 16383 else case e in #( 16384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16385 /* end confdefs.h. */ 16386 int i; 16387 _ACEOF 16388 if ac_fn_c_try_compile "$LINENO" 16389 then : 16390 xorg_cv_cc_flag_unused_command_line_argument=yes 16391 else case e in #( 16392 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16393 esac 16394 fi 16395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16396 esac 16397 fi 16398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16399 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16401 CFLAGS="$xorg_testset_save_CFLAGS" 16402 fi 16403 16404 found="no" 16405 16406 if test $found = "no" ; then 16407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16409 fi 16410 16411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16413 fi 16414 16415 CFLAGS="$CFLAGS -Wmissing-format-attribute" 16416 16417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 16418 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 16419 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 16420 if eval test \${$cacheid+y} 16421 then : 16422 printf %s "(cached) " >&6 16423 else case e in #( 16424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16425 /* end confdefs.h. */ 16426 int i; 16427 int 16428 main (void) 16429 { 16430 16431 ; 16432 return 0; 16433 } 16434 _ACEOF 16435 if ac_fn_c_try_link "$LINENO" 16436 then : 16437 eval $cacheid=yes 16438 else case e in #( 16439 e) eval $cacheid=no ;; 16440 esac 16441 fi 16442 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16443 conftest$ac_exeext conftest.$ac_ext ;; 16444 esac 16445 fi 16446 16447 16448 CFLAGS="$xorg_testset_save_CFLAGS" 16449 16450 eval supported=\$$cacheid 16451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16452 printf '%s\n' "$supported" >&6; } 16453 if test "$supported" = "yes" ; then 16454 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 16455 found="yes" 16456 fi 16457 fi 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 xorg_testset_save_CFLAGS="$CFLAGS" 16474 16475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16478 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16479 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16480 then : 16481 printf %s "(cached) " >&6 16482 else case e in #( 16483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16484 /* end confdefs.h. */ 16485 int i; 16486 _ACEOF 16487 if ac_fn_c_try_compile "$LINENO" 16488 then : 16489 xorg_cv_cc_flag_unknown_warning_option=yes 16490 else case e in #( 16491 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16492 esac 16493 fi 16494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16495 esac 16496 fi 16497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16498 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16500 CFLAGS="$xorg_testset_save_CFLAGS" 16501 fi 16502 16503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16506 fi 16507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16508 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16509 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16510 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16511 then : 16512 printf %s "(cached) " >&6 16513 else case e in #( 16514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16515 /* end confdefs.h. */ 16516 int i; 16517 _ACEOF 16518 if ac_fn_c_try_compile "$LINENO" 16519 then : 16520 xorg_cv_cc_flag_unused_command_line_argument=yes 16521 else case e in #( 16522 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16523 esac 16524 fi 16525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16526 esac 16527 fi 16528 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16529 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16531 CFLAGS="$xorg_testset_save_CFLAGS" 16532 fi 16533 16534 found="no" 16535 16536 if test $found = "no" ; then 16537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16539 fi 16540 16541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16543 fi 16544 16545 CFLAGS="$CFLAGS -Wredundant-decls" 16546 16547 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16548 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16549 cacheid=xorg_cv_cc_flag__Wredundant_decls 16550 if eval test \${$cacheid+y} 16551 then : 16552 printf %s "(cached) " >&6 16553 else case e in #( 16554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16555 /* end confdefs.h. */ 16556 int i; 16557 int 16558 main (void) 16559 { 16560 16561 ; 16562 return 0; 16563 } 16564 _ACEOF 16565 if ac_fn_c_try_link "$LINENO" 16566 then : 16567 eval $cacheid=yes 16568 else case e in #( 16569 e) eval $cacheid=no ;; 16570 esac 16571 fi 16572 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16573 conftest$ac_exeext conftest.$ac_ext ;; 16574 esac 16575 fi 16576 16577 16578 CFLAGS="$xorg_testset_save_CFLAGS" 16579 16580 eval supported=\$$cacheid 16581 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16582 printf '%s\n' "$supported" >&6; } 16583 if test "$supported" = "yes" ; then 16584 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16585 found="yes" 16586 fi 16587 fi 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 xorg_testset_save_CFLAGS="$CFLAGS" 16604 16605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16608 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16609 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16610 then : 16611 printf %s "(cached) " >&6 16612 else case e in #( 16613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16614 /* end confdefs.h. */ 16615 int i; 16616 _ACEOF 16617 if ac_fn_c_try_compile "$LINENO" 16618 then : 16619 xorg_cv_cc_flag_unknown_warning_option=yes 16620 else case e in #( 16621 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16622 esac 16623 fi 16624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16625 esac 16626 fi 16627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16628 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16630 CFLAGS="$xorg_testset_save_CFLAGS" 16631 fi 16632 16633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16636 fi 16637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16639 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16640 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16641 then : 16642 printf %s "(cached) " >&6 16643 else case e in #( 16644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16645 /* end confdefs.h. */ 16646 int i; 16647 _ACEOF 16648 if ac_fn_c_try_compile "$LINENO" 16649 then : 16650 xorg_cv_cc_flag_unused_command_line_argument=yes 16651 else case e in #( 16652 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16653 esac 16654 fi 16655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16656 esac 16657 fi 16658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16659 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16661 CFLAGS="$xorg_testset_save_CFLAGS" 16662 fi 16663 16664 found="no" 16665 16666 if test $found = "no" ; then 16667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16669 fi 16670 16671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16673 fi 16674 16675 CFLAGS="$CFLAGS -Wlogical-op" 16676 16677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16678 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16679 cacheid=xorg_cv_cc_flag__Wlogical_op 16680 if eval test \${$cacheid+y} 16681 then : 16682 printf %s "(cached) " >&6 16683 else case e in #( 16684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16685 /* end confdefs.h. */ 16686 int i; 16687 int 16688 main (void) 16689 { 16690 16691 ; 16692 return 0; 16693 } 16694 _ACEOF 16695 if ac_fn_c_try_link "$LINENO" 16696 then : 16697 eval $cacheid=yes 16698 else case e in #( 16699 e) eval $cacheid=no ;; 16700 esac 16701 fi 16702 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16703 conftest$ac_exeext conftest.$ac_ext ;; 16704 esac 16705 fi 16706 16707 16708 CFLAGS="$xorg_testset_save_CFLAGS" 16709 16710 eval supported=\$$cacheid 16711 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16712 printf '%s\n' "$supported" >&6; } 16713 if test "$supported" = "yes" ; then 16714 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16715 found="yes" 16716 fi 16717 fi 16718 16719 16720 16721 # These are currently disabled because they are noisy. They will be enabled 16722 # in the future once the codebase is sufficiently modernized to silence 16723 # them. For now, I don't want them to drown out the other warnings. 16724 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16725 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16726 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16727 16728 # Turn some warnings into errors, so we don't accidentally get successful builds 16729 # when there are problems that should be fixed. 16730 16731 if test "x$SELECTIVE_WERROR" = "xyes" ; then 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 xorg_testset_save_CFLAGS="$CFLAGS" 16746 16747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16750 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16751 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16752 then : 16753 printf %s "(cached) " >&6 16754 else case e in #( 16755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16756 /* end confdefs.h. */ 16757 int i; 16758 _ACEOF 16759 if ac_fn_c_try_compile "$LINENO" 16760 then : 16761 xorg_cv_cc_flag_unknown_warning_option=yes 16762 else case e in #( 16763 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16764 esac 16765 fi 16766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16767 esac 16768 fi 16769 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16770 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16772 CFLAGS="$xorg_testset_save_CFLAGS" 16773 fi 16774 16775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16778 fi 16779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16780 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16783 then : 16784 printf %s "(cached) " >&6 16785 else case e in #( 16786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16787 /* end confdefs.h. */ 16788 int i; 16789 _ACEOF 16790 if ac_fn_c_try_compile "$LINENO" 16791 then : 16792 xorg_cv_cc_flag_unused_command_line_argument=yes 16793 else case e in #( 16794 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16795 esac 16796 fi 16797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16798 esac 16799 fi 16800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16801 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16803 CFLAGS="$xorg_testset_save_CFLAGS" 16804 fi 16805 16806 found="no" 16807 16808 if test $found = "no" ; then 16809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16811 fi 16812 16813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16815 fi 16816 16817 CFLAGS="$CFLAGS -Werror=implicit" 16818 16819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16820 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16821 cacheid=xorg_cv_cc_flag__Werror_implicit 16822 if eval test \${$cacheid+y} 16823 then : 16824 printf %s "(cached) " >&6 16825 else case e in #( 16826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16827 /* end confdefs.h. */ 16828 int i; 16829 int 16830 main (void) 16831 { 16832 16833 ; 16834 return 0; 16835 } 16836 _ACEOF 16837 if ac_fn_c_try_link "$LINENO" 16838 then : 16839 eval $cacheid=yes 16840 else case e in #( 16841 e) eval $cacheid=no ;; 16842 esac 16843 fi 16844 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16845 conftest$ac_exeext conftest.$ac_ext ;; 16846 esac 16847 fi 16848 16849 16850 CFLAGS="$xorg_testset_save_CFLAGS" 16851 16852 eval supported=\$$cacheid 16853 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16854 printf '%s\n' "$supported" >&6; } 16855 if test "$supported" = "yes" ; then 16856 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16857 found="yes" 16858 fi 16859 fi 16860 16861 if test $found = "no" ; then 16862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16864 fi 16865 16866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16868 fi 16869 16870 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16871 16872 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 16873 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16874 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16875 if eval test \${$cacheid+y} 16876 then : 16877 printf %s "(cached) " >&6 16878 else case e in #( 16879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16880 /* end confdefs.h. */ 16881 int i; 16882 int 16883 main (void) 16884 { 16885 16886 ; 16887 return 0; 16888 } 16889 _ACEOF 16890 if ac_fn_c_try_link "$LINENO" 16891 then : 16892 eval $cacheid=yes 16893 else case e in #( 16894 e) eval $cacheid=no ;; 16895 esac 16896 fi 16897 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16898 conftest$ac_exeext conftest.$ac_ext ;; 16899 esac 16900 fi 16901 16902 16903 CFLAGS="$xorg_testset_save_CFLAGS" 16904 16905 eval supported=\$$cacheid 16906 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16907 printf '%s\n' "$supported" >&6; } 16908 if test "$supported" = "yes" ; then 16909 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16910 found="yes" 16911 fi 16912 fi 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 xorg_testset_save_CFLAGS="$CFLAGS" 16929 16930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16932 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16933 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16934 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16935 then : 16936 printf %s "(cached) " >&6 16937 else case e in #( 16938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16939 /* end confdefs.h. */ 16940 int i; 16941 _ACEOF 16942 if ac_fn_c_try_compile "$LINENO" 16943 then : 16944 xorg_cv_cc_flag_unknown_warning_option=yes 16945 else case e in #( 16946 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16947 esac 16948 fi 16949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16950 esac 16951 fi 16952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16953 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16955 CFLAGS="$xorg_testset_save_CFLAGS" 16956 fi 16957 16958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16961 fi 16962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16963 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16964 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16965 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16966 then : 16967 printf %s "(cached) " >&6 16968 else case e in #( 16969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16970 /* end confdefs.h. */ 16971 int i; 16972 _ACEOF 16973 if ac_fn_c_try_compile "$LINENO" 16974 then : 16975 xorg_cv_cc_flag_unused_command_line_argument=yes 16976 else case e in #( 16977 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16978 esac 16979 fi 16980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16981 esac 16982 fi 16983 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16984 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16986 CFLAGS="$xorg_testset_save_CFLAGS" 16987 fi 16988 16989 found="no" 16990 16991 if test $found = "no" ; then 16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16994 fi 16995 16996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16998 fi 16999 17000 CFLAGS="$CFLAGS -Werror=nonnull" 17001 17002 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 17003 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 17004 cacheid=xorg_cv_cc_flag__Werror_nonnull 17005 if eval test \${$cacheid+y} 17006 then : 17007 printf %s "(cached) " >&6 17008 else case e in #( 17009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17010 /* end confdefs.h. */ 17011 int i; 17012 int 17013 main (void) 17014 { 17015 17016 ; 17017 return 0; 17018 } 17019 _ACEOF 17020 if ac_fn_c_try_link "$LINENO" 17021 then : 17022 eval $cacheid=yes 17023 else case e in #( 17024 e) eval $cacheid=no ;; 17025 esac 17026 fi 17027 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17028 conftest$ac_exeext conftest.$ac_ext ;; 17029 esac 17030 fi 17031 17032 17033 CFLAGS="$xorg_testset_save_CFLAGS" 17034 17035 eval supported=\$$cacheid 17036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17037 printf '%s\n' "$supported" >&6; } 17038 if test "$supported" = "yes" ; then 17039 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 17040 found="yes" 17041 fi 17042 fi 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 xorg_testset_save_CFLAGS="$CFLAGS" 17059 17060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17063 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17064 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17065 then : 17066 printf %s "(cached) " >&6 17067 else case e in #( 17068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17069 /* end confdefs.h. */ 17070 int i; 17071 _ACEOF 17072 if ac_fn_c_try_compile "$LINENO" 17073 then : 17074 xorg_cv_cc_flag_unknown_warning_option=yes 17075 else case e in #( 17076 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17077 esac 17078 fi 17079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17080 esac 17081 fi 17082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17083 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17085 CFLAGS="$xorg_testset_save_CFLAGS" 17086 fi 17087 17088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17091 fi 17092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17093 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17094 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17095 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17096 then : 17097 printf %s "(cached) " >&6 17098 else case e in #( 17099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17100 /* end confdefs.h. */ 17101 int i; 17102 _ACEOF 17103 if ac_fn_c_try_compile "$LINENO" 17104 then : 17105 xorg_cv_cc_flag_unused_command_line_argument=yes 17106 else case e in #( 17107 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17108 esac 17109 fi 17110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17111 esac 17112 fi 17113 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17114 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17116 CFLAGS="$xorg_testset_save_CFLAGS" 17117 fi 17118 17119 found="no" 17120 17121 if test $found = "no" ; then 17122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17124 fi 17125 17126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17128 fi 17129 17130 CFLAGS="$CFLAGS -Werror=init-self" 17131 17132 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 17133 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 17134 cacheid=xorg_cv_cc_flag__Werror_init_self 17135 if eval test \${$cacheid+y} 17136 then : 17137 printf %s "(cached) " >&6 17138 else case e in #( 17139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17140 /* end confdefs.h. */ 17141 int i; 17142 int 17143 main (void) 17144 { 17145 17146 ; 17147 return 0; 17148 } 17149 _ACEOF 17150 if ac_fn_c_try_link "$LINENO" 17151 then : 17152 eval $cacheid=yes 17153 else case e in #( 17154 e) eval $cacheid=no ;; 17155 esac 17156 fi 17157 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17158 conftest$ac_exeext conftest.$ac_ext ;; 17159 esac 17160 fi 17161 17162 17163 CFLAGS="$xorg_testset_save_CFLAGS" 17164 17165 eval supported=\$$cacheid 17166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17167 printf '%s\n' "$supported" >&6; } 17168 if test "$supported" = "yes" ; then 17169 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 17170 found="yes" 17171 fi 17172 fi 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 xorg_testset_save_CFLAGS="$CFLAGS" 17189 17190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17193 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17194 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17195 then : 17196 printf %s "(cached) " >&6 17197 else case e in #( 17198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17199 /* end confdefs.h. */ 17200 int i; 17201 _ACEOF 17202 if ac_fn_c_try_compile "$LINENO" 17203 then : 17204 xorg_cv_cc_flag_unknown_warning_option=yes 17205 else case e in #( 17206 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17207 esac 17208 fi 17209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17210 esac 17211 fi 17212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17213 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17215 CFLAGS="$xorg_testset_save_CFLAGS" 17216 fi 17217 17218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17221 fi 17222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17223 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17224 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17225 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17226 then : 17227 printf %s "(cached) " >&6 17228 else case e in #( 17229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17230 /* end confdefs.h. */ 17231 int i; 17232 _ACEOF 17233 if ac_fn_c_try_compile "$LINENO" 17234 then : 17235 xorg_cv_cc_flag_unused_command_line_argument=yes 17236 else case e in #( 17237 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17238 esac 17239 fi 17240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17241 esac 17242 fi 17243 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17244 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17246 CFLAGS="$xorg_testset_save_CFLAGS" 17247 fi 17248 17249 found="no" 17250 17251 if test $found = "no" ; then 17252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17254 fi 17255 17256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17258 fi 17259 17260 CFLAGS="$CFLAGS -Werror=main" 17261 17262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 17263 printf %s "checking if $CC supports -Werror=main... " >&6; } 17264 cacheid=xorg_cv_cc_flag__Werror_main 17265 if eval test \${$cacheid+y} 17266 then : 17267 printf %s "(cached) " >&6 17268 else case e in #( 17269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17270 /* end confdefs.h. */ 17271 int i; 17272 int 17273 main (void) 17274 { 17275 17276 ; 17277 return 0; 17278 } 17279 _ACEOF 17280 if ac_fn_c_try_link "$LINENO" 17281 then : 17282 eval $cacheid=yes 17283 else case e in #( 17284 e) eval $cacheid=no ;; 17285 esac 17286 fi 17287 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17288 conftest$ac_exeext conftest.$ac_ext ;; 17289 esac 17290 fi 17291 17292 17293 CFLAGS="$xorg_testset_save_CFLAGS" 17294 17295 eval supported=\$$cacheid 17296 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17297 printf '%s\n' "$supported" >&6; } 17298 if test "$supported" = "yes" ; then 17299 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 17300 found="yes" 17301 fi 17302 fi 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 xorg_testset_save_CFLAGS="$CFLAGS" 17319 17320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17322 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17323 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17324 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17325 then : 17326 printf %s "(cached) " >&6 17327 else case e in #( 17328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17329 /* end confdefs.h. */ 17330 int i; 17331 _ACEOF 17332 if ac_fn_c_try_compile "$LINENO" 17333 then : 17334 xorg_cv_cc_flag_unknown_warning_option=yes 17335 else case e in #( 17336 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17337 esac 17338 fi 17339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17340 esac 17341 fi 17342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17343 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17345 CFLAGS="$xorg_testset_save_CFLAGS" 17346 fi 17347 17348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17351 fi 17352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17356 then : 17357 printf %s "(cached) " >&6 17358 else case e in #( 17359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17360 /* end confdefs.h. */ 17361 int i; 17362 _ACEOF 17363 if ac_fn_c_try_compile "$LINENO" 17364 then : 17365 xorg_cv_cc_flag_unused_command_line_argument=yes 17366 else case e in #( 17367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17368 esac 17369 fi 17370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17371 esac 17372 fi 17373 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17374 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17376 CFLAGS="$xorg_testset_save_CFLAGS" 17377 fi 17378 17379 found="no" 17380 17381 if test $found = "no" ; then 17382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17384 fi 17385 17386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17388 fi 17389 17390 CFLAGS="$CFLAGS -Werror=missing-braces" 17391 17392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 17393 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 17394 cacheid=xorg_cv_cc_flag__Werror_missing_braces 17395 if eval test \${$cacheid+y} 17396 then : 17397 printf %s "(cached) " >&6 17398 else case e in #( 17399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17400 /* end confdefs.h. */ 17401 int i; 17402 int 17403 main (void) 17404 { 17405 17406 ; 17407 return 0; 17408 } 17409 _ACEOF 17410 if ac_fn_c_try_link "$LINENO" 17411 then : 17412 eval $cacheid=yes 17413 else case e in #( 17414 e) eval $cacheid=no ;; 17415 esac 17416 fi 17417 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17418 conftest$ac_exeext conftest.$ac_ext ;; 17419 esac 17420 fi 17421 17422 17423 CFLAGS="$xorg_testset_save_CFLAGS" 17424 17425 eval supported=\$$cacheid 17426 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17427 printf '%s\n' "$supported" >&6; } 17428 if test "$supported" = "yes" ; then 17429 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 17430 found="yes" 17431 fi 17432 fi 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 xorg_testset_save_CFLAGS="$CFLAGS" 17449 17450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17452 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17453 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17454 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17455 then : 17456 printf %s "(cached) " >&6 17457 else case e in #( 17458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17459 /* end confdefs.h. */ 17460 int i; 17461 _ACEOF 17462 if ac_fn_c_try_compile "$LINENO" 17463 then : 17464 xorg_cv_cc_flag_unknown_warning_option=yes 17465 else case e in #( 17466 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17467 esac 17468 fi 17469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17470 esac 17471 fi 17472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17473 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17475 CFLAGS="$xorg_testset_save_CFLAGS" 17476 fi 17477 17478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17481 fi 17482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17483 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17484 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17485 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17486 then : 17487 printf %s "(cached) " >&6 17488 else case e in #( 17489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17490 /* end confdefs.h. */ 17491 int i; 17492 _ACEOF 17493 if ac_fn_c_try_compile "$LINENO" 17494 then : 17495 xorg_cv_cc_flag_unused_command_line_argument=yes 17496 else case e in #( 17497 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17498 esac 17499 fi 17500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17501 esac 17502 fi 17503 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17504 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17506 CFLAGS="$xorg_testset_save_CFLAGS" 17507 fi 17508 17509 found="no" 17510 17511 if test $found = "no" ; then 17512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17514 fi 17515 17516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17518 fi 17519 17520 CFLAGS="$CFLAGS -Werror=sequence-point" 17521 17522 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 17523 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 17524 cacheid=xorg_cv_cc_flag__Werror_sequence_point 17525 if eval test \${$cacheid+y} 17526 then : 17527 printf %s "(cached) " >&6 17528 else case e in #( 17529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17530 /* end confdefs.h. */ 17531 int i; 17532 int 17533 main (void) 17534 { 17535 17536 ; 17537 return 0; 17538 } 17539 _ACEOF 17540 if ac_fn_c_try_link "$LINENO" 17541 then : 17542 eval $cacheid=yes 17543 else case e in #( 17544 e) eval $cacheid=no ;; 17545 esac 17546 fi 17547 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17548 conftest$ac_exeext conftest.$ac_ext ;; 17549 esac 17550 fi 17551 17552 17553 CFLAGS="$xorg_testset_save_CFLAGS" 17554 17555 eval supported=\$$cacheid 17556 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17557 printf '%s\n' "$supported" >&6; } 17558 if test "$supported" = "yes" ; then 17559 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17560 found="yes" 17561 fi 17562 fi 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 xorg_testset_save_CFLAGS="$CFLAGS" 17579 17580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17582 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17583 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17584 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17585 then : 17586 printf %s "(cached) " >&6 17587 else case e in #( 17588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17589 /* end confdefs.h. */ 17590 int i; 17591 _ACEOF 17592 if ac_fn_c_try_compile "$LINENO" 17593 then : 17594 xorg_cv_cc_flag_unknown_warning_option=yes 17595 else case e in #( 17596 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17597 esac 17598 fi 17599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17600 esac 17601 fi 17602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17603 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17605 CFLAGS="$xorg_testset_save_CFLAGS" 17606 fi 17607 17608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17611 fi 17612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17614 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17615 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17616 then : 17617 printf %s "(cached) " >&6 17618 else case e in #( 17619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17620 /* end confdefs.h. */ 17621 int i; 17622 _ACEOF 17623 if ac_fn_c_try_compile "$LINENO" 17624 then : 17625 xorg_cv_cc_flag_unused_command_line_argument=yes 17626 else case e in #( 17627 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17628 esac 17629 fi 17630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17631 esac 17632 fi 17633 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17634 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17636 CFLAGS="$xorg_testset_save_CFLAGS" 17637 fi 17638 17639 found="no" 17640 17641 if test $found = "no" ; then 17642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17644 fi 17645 17646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17648 fi 17649 17650 CFLAGS="$CFLAGS -Werror=return-type" 17651 17652 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17653 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17654 cacheid=xorg_cv_cc_flag__Werror_return_type 17655 if eval test \${$cacheid+y} 17656 then : 17657 printf %s "(cached) " >&6 17658 else case e in #( 17659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17660 /* end confdefs.h. */ 17661 int i; 17662 int 17663 main (void) 17664 { 17665 17666 ; 17667 return 0; 17668 } 17669 _ACEOF 17670 if ac_fn_c_try_link "$LINENO" 17671 then : 17672 eval $cacheid=yes 17673 else case e in #( 17674 e) eval $cacheid=no ;; 17675 esac 17676 fi 17677 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17678 conftest$ac_exeext conftest.$ac_ext ;; 17679 esac 17680 fi 17681 17682 17683 CFLAGS="$xorg_testset_save_CFLAGS" 17684 17685 eval supported=\$$cacheid 17686 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17687 printf '%s\n' "$supported" >&6; } 17688 if test "$supported" = "yes" ; then 17689 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17690 found="yes" 17691 fi 17692 fi 17693 17694 if test $found = "no" ; then 17695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17697 fi 17698 17699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17701 fi 17702 17703 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17704 17705 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17706 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17707 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17708 if eval test \${$cacheid+y} 17709 then : 17710 printf %s "(cached) " >&6 17711 else case e in #( 17712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17713 /* end confdefs.h. */ 17714 int i; 17715 int 17716 main (void) 17717 { 17718 17719 ; 17720 return 0; 17721 } 17722 _ACEOF 17723 if ac_fn_c_try_link "$LINENO" 17724 then : 17725 eval $cacheid=yes 17726 else case e in #( 17727 e) eval $cacheid=no ;; 17728 esac 17729 fi 17730 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17731 conftest$ac_exeext conftest.$ac_ext ;; 17732 esac 17733 fi 17734 17735 17736 CFLAGS="$xorg_testset_save_CFLAGS" 17737 17738 eval supported=\$$cacheid 17739 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17740 printf '%s\n' "$supported" >&6; } 17741 if test "$supported" = "yes" ; then 17742 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17743 found="yes" 17744 fi 17745 fi 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 xorg_testset_save_CFLAGS="$CFLAGS" 17762 17763 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17765 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17766 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17767 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17768 then : 17769 printf %s "(cached) " >&6 17770 else case e in #( 17771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17772 /* end confdefs.h. */ 17773 int i; 17774 _ACEOF 17775 if ac_fn_c_try_compile "$LINENO" 17776 then : 17777 xorg_cv_cc_flag_unknown_warning_option=yes 17778 else case e in #( 17779 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17780 esac 17781 fi 17782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17783 esac 17784 fi 17785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17786 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17788 CFLAGS="$xorg_testset_save_CFLAGS" 17789 fi 17790 17791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17794 fi 17795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17796 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17797 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17798 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17799 then : 17800 printf %s "(cached) " >&6 17801 else case e in #( 17802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17803 /* end confdefs.h. */ 17804 int i; 17805 _ACEOF 17806 if ac_fn_c_try_compile "$LINENO" 17807 then : 17808 xorg_cv_cc_flag_unused_command_line_argument=yes 17809 else case e in #( 17810 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17811 esac 17812 fi 17813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17814 esac 17815 fi 17816 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17817 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17819 CFLAGS="$xorg_testset_save_CFLAGS" 17820 fi 17821 17822 found="no" 17823 17824 if test $found = "no" ; then 17825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17827 fi 17828 17829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17831 fi 17832 17833 CFLAGS="$CFLAGS -Werror=trigraphs" 17834 17835 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17836 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17837 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17838 if eval test \${$cacheid+y} 17839 then : 17840 printf %s "(cached) " >&6 17841 else case e in #( 17842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17843 /* end confdefs.h. */ 17844 int i; 17845 int 17846 main (void) 17847 { 17848 17849 ; 17850 return 0; 17851 } 17852 _ACEOF 17853 if ac_fn_c_try_link "$LINENO" 17854 then : 17855 eval $cacheid=yes 17856 else case e in #( 17857 e) eval $cacheid=no ;; 17858 esac 17859 fi 17860 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17861 conftest$ac_exeext conftest.$ac_ext ;; 17862 esac 17863 fi 17864 17865 17866 CFLAGS="$xorg_testset_save_CFLAGS" 17867 17868 eval supported=\$$cacheid 17869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17870 printf '%s\n' "$supported" >&6; } 17871 if test "$supported" = "yes" ; then 17872 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17873 found="yes" 17874 fi 17875 fi 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 xorg_testset_save_CFLAGS="$CFLAGS" 17892 17893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17895 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17896 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17897 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17898 then : 17899 printf %s "(cached) " >&6 17900 else case e in #( 17901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17902 /* end confdefs.h. */ 17903 int i; 17904 _ACEOF 17905 if ac_fn_c_try_compile "$LINENO" 17906 then : 17907 xorg_cv_cc_flag_unknown_warning_option=yes 17908 else case e in #( 17909 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17910 esac 17911 fi 17912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17913 esac 17914 fi 17915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17916 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17918 CFLAGS="$xorg_testset_save_CFLAGS" 17919 fi 17920 17921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17924 fi 17925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17926 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17927 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17928 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17929 then : 17930 printf %s "(cached) " >&6 17931 else case e in #( 17932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17933 /* end confdefs.h. */ 17934 int i; 17935 _ACEOF 17936 if ac_fn_c_try_compile "$LINENO" 17937 then : 17938 xorg_cv_cc_flag_unused_command_line_argument=yes 17939 else case e in #( 17940 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17941 esac 17942 fi 17943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17944 esac 17945 fi 17946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17947 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17949 CFLAGS="$xorg_testset_save_CFLAGS" 17950 fi 17951 17952 found="no" 17953 17954 if test $found = "no" ; then 17955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17957 fi 17958 17959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17961 fi 17962 17963 CFLAGS="$CFLAGS -Werror=array-bounds" 17964 17965 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17966 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17967 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17968 if eval test \${$cacheid+y} 17969 then : 17970 printf %s "(cached) " >&6 17971 else case e in #( 17972 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17973 /* end confdefs.h. */ 17974 int i; 17975 int 17976 main (void) 17977 { 17978 17979 ; 17980 return 0; 17981 } 17982 _ACEOF 17983 if ac_fn_c_try_link "$LINENO" 17984 then : 17985 eval $cacheid=yes 17986 else case e in #( 17987 e) eval $cacheid=no ;; 17988 esac 17989 fi 17990 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17991 conftest$ac_exeext conftest.$ac_ext ;; 17992 esac 17993 fi 17994 17995 17996 CFLAGS="$xorg_testset_save_CFLAGS" 17997 17998 eval supported=\$$cacheid 17999 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18000 printf '%s\n' "$supported" >&6; } 18001 if test "$supported" = "yes" ; then 18002 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 18003 found="yes" 18004 fi 18005 fi 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 xorg_testset_save_CFLAGS="$CFLAGS" 18022 18023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18025 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18026 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18027 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18028 then : 18029 printf %s "(cached) " >&6 18030 else case e in #( 18031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18032 /* end confdefs.h. */ 18033 int i; 18034 _ACEOF 18035 if ac_fn_c_try_compile "$LINENO" 18036 then : 18037 xorg_cv_cc_flag_unknown_warning_option=yes 18038 else case e in #( 18039 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18040 esac 18041 fi 18042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18043 esac 18044 fi 18045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18046 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18048 CFLAGS="$xorg_testset_save_CFLAGS" 18049 fi 18050 18051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18054 fi 18055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18056 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18057 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18058 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18059 then : 18060 printf %s "(cached) " >&6 18061 else case e in #( 18062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18063 /* end confdefs.h. */ 18064 int i; 18065 _ACEOF 18066 if ac_fn_c_try_compile "$LINENO" 18067 then : 18068 xorg_cv_cc_flag_unused_command_line_argument=yes 18069 else case e in #( 18070 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18071 esac 18072 fi 18073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18074 esac 18075 fi 18076 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18077 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18079 CFLAGS="$xorg_testset_save_CFLAGS" 18080 fi 18081 18082 found="no" 18083 18084 if test $found = "no" ; then 18085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18087 fi 18088 18089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18091 fi 18092 18093 CFLAGS="$CFLAGS -Werror=write-strings" 18094 18095 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 18096 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 18097 cacheid=xorg_cv_cc_flag__Werror_write_strings 18098 if eval test \${$cacheid+y} 18099 then : 18100 printf %s "(cached) " >&6 18101 else case e in #( 18102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18103 /* end confdefs.h. */ 18104 int i; 18105 int 18106 main (void) 18107 { 18108 18109 ; 18110 return 0; 18111 } 18112 _ACEOF 18113 if ac_fn_c_try_link "$LINENO" 18114 then : 18115 eval $cacheid=yes 18116 else case e in #( 18117 e) eval $cacheid=no ;; 18118 esac 18119 fi 18120 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18121 conftest$ac_exeext conftest.$ac_ext ;; 18122 esac 18123 fi 18124 18125 18126 CFLAGS="$xorg_testset_save_CFLAGS" 18127 18128 eval supported=\$$cacheid 18129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18130 printf '%s\n' "$supported" >&6; } 18131 if test "$supported" = "yes" ; then 18132 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 18133 found="yes" 18134 fi 18135 fi 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 xorg_testset_save_CFLAGS="$CFLAGS" 18152 18153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18155 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18156 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18157 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18158 then : 18159 printf %s "(cached) " >&6 18160 else case e in #( 18161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18162 /* end confdefs.h. */ 18163 int i; 18164 _ACEOF 18165 if ac_fn_c_try_compile "$LINENO" 18166 then : 18167 xorg_cv_cc_flag_unknown_warning_option=yes 18168 else case e in #( 18169 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18170 esac 18171 fi 18172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18173 esac 18174 fi 18175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18176 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18178 CFLAGS="$xorg_testset_save_CFLAGS" 18179 fi 18180 18181 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18184 fi 18185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18187 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18188 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18189 then : 18190 printf %s "(cached) " >&6 18191 else case e in #( 18192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18193 /* end confdefs.h. */ 18194 int i; 18195 _ACEOF 18196 if ac_fn_c_try_compile "$LINENO" 18197 then : 18198 xorg_cv_cc_flag_unused_command_line_argument=yes 18199 else case e in #( 18200 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18201 esac 18202 fi 18203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18204 esac 18205 fi 18206 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18207 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18209 CFLAGS="$xorg_testset_save_CFLAGS" 18210 fi 18211 18212 found="no" 18213 18214 if test $found = "no" ; then 18215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18217 fi 18218 18219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18221 fi 18222 18223 CFLAGS="$CFLAGS -Werror=address" 18224 18225 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 18226 printf %s "checking if $CC supports -Werror=address... " >&6; } 18227 cacheid=xorg_cv_cc_flag__Werror_address 18228 if eval test \${$cacheid+y} 18229 then : 18230 printf %s "(cached) " >&6 18231 else case e in #( 18232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18233 /* end confdefs.h. */ 18234 int i; 18235 int 18236 main (void) 18237 { 18238 18239 ; 18240 return 0; 18241 } 18242 _ACEOF 18243 if ac_fn_c_try_link "$LINENO" 18244 then : 18245 eval $cacheid=yes 18246 else case e in #( 18247 e) eval $cacheid=no ;; 18248 esac 18249 fi 18250 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18251 conftest$ac_exeext conftest.$ac_ext ;; 18252 esac 18253 fi 18254 18255 18256 CFLAGS="$xorg_testset_save_CFLAGS" 18257 18258 eval supported=\$$cacheid 18259 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18260 printf '%s\n' "$supported" >&6; } 18261 if test "$supported" = "yes" ; then 18262 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 18263 found="yes" 18264 fi 18265 fi 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 xorg_testset_save_CFLAGS="$CFLAGS" 18282 18283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18285 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18286 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18287 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18288 then : 18289 printf %s "(cached) " >&6 18290 else case e in #( 18291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18292 /* end confdefs.h. */ 18293 int i; 18294 _ACEOF 18295 if ac_fn_c_try_compile "$LINENO" 18296 then : 18297 xorg_cv_cc_flag_unknown_warning_option=yes 18298 else case e in #( 18299 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18300 esac 18301 fi 18302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18303 esac 18304 fi 18305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18306 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18308 CFLAGS="$xorg_testset_save_CFLAGS" 18309 fi 18310 18311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18314 fi 18315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18316 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18317 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18318 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18319 then : 18320 printf %s "(cached) " >&6 18321 else case e in #( 18322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18323 /* end confdefs.h. */ 18324 int i; 18325 _ACEOF 18326 if ac_fn_c_try_compile "$LINENO" 18327 then : 18328 xorg_cv_cc_flag_unused_command_line_argument=yes 18329 else case e in #( 18330 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18331 esac 18332 fi 18333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18334 esac 18335 fi 18336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18337 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18339 CFLAGS="$xorg_testset_save_CFLAGS" 18340 fi 18341 18342 found="no" 18343 18344 if test $found = "no" ; then 18345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18347 fi 18348 18349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18351 fi 18352 18353 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 18354 18355 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 18356 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 18357 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 18358 if eval test \${$cacheid+y} 18359 then : 18360 printf %s "(cached) " >&6 18361 else case e in #( 18362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18363 /* end confdefs.h. */ 18364 int i; 18365 int 18366 main (void) 18367 { 18368 18369 ; 18370 return 0; 18371 } 18372 _ACEOF 18373 if ac_fn_c_try_link "$LINENO" 18374 then : 18375 eval $cacheid=yes 18376 else case e in #( 18377 e) eval $cacheid=no ;; 18378 esac 18379 fi 18380 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18381 conftest$ac_exeext conftest.$ac_ext ;; 18382 esac 18383 fi 18384 18385 18386 CFLAGS="$xorg_testset_save_CFLAGS" 18387 18388 eval supported=\$$cacheid 18389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18390 printf '%s\n' "$supported" >&6; } 18391 if test "$supported" = "yes" ; then 18392 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 18393 found="yes" 18394 fi 18395 fi 18396 18397 if test $found = "no" ; then 18398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18400 fi 18401 18402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18404 fi 18405 18406 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18407 18408 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 18409 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 18410 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 18411 if eval test \${$cacheid+y} 18412 then : 18413 printf %s "(cached) " >&6 18414 else case e in #( 18415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18416 /* end confdefs.h. */ 18417 int i; 18418 int 18419 main (void) 18420 { 18421 18422 ; 18423 return 0; 18424 } 18425 _ACEOF 18426 if ac_fn_c_try_link "$LINENO" 18427 then : 18428 eval $cacheid=yes 18429 else case e in #( 18430 e) eval $cacheid=no ;; 18431 esac 18432 fi 18433 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18434 conftest$ac_exeext conftest.$ac_ext ;; 18435 esac 18436 fi 18437 18438 18439 CFLAGS="$xorg_testset_save_CFLAGS" 18440 18441 eval supported=\$$cacheid 18442 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18443 printf '%s\n' "$supported" >&6; } 18444 if test "$supported" = "yes" ; then 18445 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18446 found="yes" 18447 fi 18448 fi 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 xorg_testset_save_CFLAGS="$CFLAGS" 18465 18466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18468 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18469 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18470 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18471 then : 18472 printf %s "(cached) " >&6 18473 else case e in #( 18474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18475 /* end confdefs.h. */ 18476 int i; 18477 _ACEOF 18478 if ac_fn_c_try_compile "$LINENO" 18479 then : 18480 xorg_cv_cc_flag_unknown_warning_option=yes 18481 else case e in #( 18482 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18483 esac 18484 fi 18485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18486 esac 18487 fi 18488 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18489 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18491 CFLAGS="$xorg_testset_save_CFLAGS" 18492 fi 18493 18494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18497 fi 18498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18502 then : 18503 printf %s "(cached) " >&6 18504 else case e in #( 18505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18506 /* end confdefs.h. */ 18507 int i; 18508 _ACEOF 18509 if ac_fn_c_try_compile "$LINENO" 18510 then : 18511 xorg_cv_cc_flag_unused_command_line_argument=yes 18512 else case e in #( 18513 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18514 esac 18515 fi 18516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18517 esac 18518 fi 18519 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18520 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18522 CFLAGS="$xorg_testset_save_CFLAGS" 18523 fi 18524 18525 found="no" 18526 18527 if test $found = "no" ; then 18528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18530 fi 18531 18532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18534 fi 18535 18536 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 18537 18538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18539 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18540 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18541 if eval test \${$cacheid+y} 18542 then : 18543 printf %s "(cached) " >&6 18544 else case e in #( 18545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18546 /* end confdefs.h. */ 18547 int i; 18548 int 18549 main (void) 18550 { 18551 18552 ; 18553 return 0; 18554 } 18555 _ACEOF 18556 if ac_fn_c_try_link "$LINENO" 18557 then : 18558 eval $cacheid=yes 18559 else case e in #( 18560 e) eval $cacheid=no ;; 18561 esac 18562 fi 18563 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18564 conftest$ac_exeext conftest.$ac_ext ;; 18565 esac 18566 fi 18567 18568 18569 CFLAGS="$xorg_testset_save_CFLAGS" 18570 18571 eval supported=\$$cacheid 18572 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18573 printf '%s\n' "$supported" >&6; } 18574 if test "$supported" = "yes" ; then 18575 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18576 found="yes" 18577 fi 18578 fi 18579 18580 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18581 else 18582 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 18583 printf '%s\n' "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 xorg_testset_save_CFLAGS="$CFLAGS" 18598 18599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18601 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18602 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18603 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18604 then : 18605 printf %s "(cached) " >&6 18606 else case e in #( 18607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18608 /* end confdefs.h. */ 18609 int i; 18610 _ACEOF 18611 if ac_fn_c_try_compile "$LINENO" 18612 then : 18613 xorg_cv_cc_flag_unknown_warning_option=yes 18614 else case e in #( 18615 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18616 esac 18617 fi 18618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18619 esac 18620 fi 18621 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18622 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18624 CFLAGS="$xorg_testset_save_CFLAGS" 18625 fi 18626 18627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18630 fi 18631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18632 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18633 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18634 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18635 then : 18636 printf %s "(cached) " >&6 18637 else case e in #( 18638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18639 /* end confdefs.h. */ 18640 int i; 18641 _ACEOF 18642 if ac_fn_c_try_compile "$LINENO" 18643 then : 18644 xorg_cv_cc_flag_unused_command_line_argument=yes 18645 else case e in #( 18646 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18647 esac 18648 fi 18649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18650 esac 18651 fi 18652 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18653 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18655 CFLAGS="$xorg_testset_save_CFLAGS" 18656 fi 18657 18658 found="no" 18659 18660 if test $found = "no" ; then 18661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18663 fi 18664 18665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18667 fi 18668 18669 CFLAGS="$CFLAGS -Wimplicit" 18670 18671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18672 printf %s "checking if $CC supports -Wimplicit... " >&6; } 18673 cacheid=xorg_cv_cc_flag__Wimplicit 18674 if eval test \${$cacheid+y} 18675 then : 18676 printf %s "(cached) " >&6 18677 else case e in #( 18678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18679 /* end confdefs.h. */ 18680 int i; 18681 int 18682 main (void) 18683 { 18684 18685 ; 18686 return 0; 18687 } 18688 _ACEOF 18689 if ac_fn_c_try_link "$LINENO" 18690 then : 18691 eval $cacheid=yes 18692 else case e in #( 18693 e) eval $cacheid=no ;; 18694 esac 18695 fi 18696 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18697 conftest$ac_exeext conftest.$ac_ext ;; 18698 esac 18699 fi 18700 18701 18702 CFLAGS="$xorg_testset_save_CFLAGS" 18703 18704 eval supported=\$$cacheid 18705 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18706 printf '%s\n' "$supported" >&6; } 18707 if test "$supported" = "yes" ; then 18708 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18709 found="yes" 18710 fi 18711 fi 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 xorg_testset_save_CFLAGS="$CFLAGS" 18728 18729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18731 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18732 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18733 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18734 then : 18735 printf %s "(cached) " >&6 18736 else case e in #( 18737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18738 /* end confdefs.h. */ 18739 int i; 18740 _ACEOF 18741 if ac_fn_c_try_compile "$LINENO" 18742 then : 18743 xorg_cv_cc_flag_unknown_warning_option=yes 18744 else case e in #( 18745 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18746 esac 18747 fi 18748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18749 esac 18750 fi 18751 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18752 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18754 CFLAGS="$xorg_testset_save_CFLAGS" 18755 fi 18756 18757 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18760 fi 18761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18762 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18763 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18764 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18765 then : 18766 printf %s "(cached) " >&6 18767 else case e in #( 18768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18769 /* end confdefs.h. */ 18770 int i; 18771 _ACEOF 18772 if ac_fn_c_try_compile "$LINENO" 18773 then : 18774 xorg_cv_cc_flag_unused_command_line_argument=yes 18775 else case e in #( 18776 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18777 esac 18778 fi 18779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18780 esac 18781 fi 18782 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18783 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18785 CFLAGS="$xorg_testset_save_CFLAGS" 18786 fi 18787 18788 found="no" 18789 18790 if test $found = "no" ; then 18791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18793 fi 18794 18795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18797 fi 18798 18799 CFLAGS="$CFLAGS -Wnonnull" 18800 18801 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18802 printf %s "checking if $CC supports -Wnonnull... " >&6; } 18803 cacheid=xorg_cv_cc_flag__Wnonnull 18804 if eval test \${$cacheid+y} 18805 then : 18806 printf %s "(cached) " >&6 18807 else case e in #( 18808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18809 /* end confdefs.h. */ 18810 int i; 18811 int 18812 main (void) 18813 { 18814 18815 ; 18816 return 0; 18817 } 18818 _ACEOF 18819 if ac_fn_c_try_link "$LINENO" 18820 then : 18821 eval $cacheid=yes 18822 else case e in #( 18823 e) eval $cacheid=no ;; 18824 esac 18825 fi 18826 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18827 conftest$ac_exeext conftest.$ac_ext ;; 18828 esac 18829 fi 18830 18831 18832 CFLAGS="$xorg_testset_save_CFLAGS" 18833 18834 eval supported=\$$cacheid 18835 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18836 printf '%s\n' "$supported" >&6; } 18837 if test "$supported" = "yes" ; then 18838 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18839 found="yes" 18840 fi 18841 fi 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 xorg_testset_save_CFLAGS="$CFLAGS" 18858 18859 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18861 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18862 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18863 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18864 then : 18865 printf %s "(cached) " >&6 18866 else case e in #( 18867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18868 /* end confdefs.h. */ 18869 int i; 18870 _ACEOF 18871 if ac_fn_c_try_compile "$LINENO" 18872 then : 18873 xorg_cv_cc_flag_unknown_warning_option=yes 18874 else case e in #( 18875 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18876 esac 18877 fi 18878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18879 esac 18880 fi 18881 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18882 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18883 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18884 CFLAGS="$xorg_testset_save_CFLAGS" 18885 fi 18886 18887 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18890 fi 18891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18892 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18893 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18894 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18895 then : 18896 printf %s "(cached) " >&6 18897 else case e in #( 18898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18899 /* end confdefs.h. */ 18900 int i; 18901 _ACEOF 18902 if ac_fn_c_try_compile "$LINENO" 18903 then : 18904 xorg_cv_cc_flag_unused_command_line_argument=yes 18905 else case e in #( 18906 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18907 esac 18908 fi 18909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18910 esac 18911 fi 18912 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18913 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18915 CFLAGS="$xorg_testset_save_CFLAGS" 18916 fi 18917 18918 found="no" 18919 18920 if test $found = "no" ; then 18921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18923 fi 18924 18925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18927 fi 18928 18929 CFLAGS="$CFLAGS -Winit-self" 18930 18931 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18932 printf %s "checking if $CC supports -Winit-self... " >&6; } 18933 cacheid=xorg_cv_cc_flag__Winit_self 18934 if eval test \${$cacheid+y} 18935 then : 18936 printf %s "(cached) " >&6 18937 else case e in #( 18938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18939 /* end confdefs.h. */ 18940 int i; 18941 int 18942 main (void) 18943 { 18944 18945 ; 18946 return 0; 18947 } 18948 _ACEOF 18949 if ac_fn_c_try_link "$LINENO" 18950 then : 18951 eval $cacheid=yes 18952 else case e in #( 18953 e) eval $cacheid=no ;; 18954 esac 18955 fi 18956 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18957 conftest$ac_exeext conftest.$ac_ext ;; 18958 esac 18959 fi 18960 18961 18962 CFLAGS="$xorg_testset_save_CFLAGS" 18963 18964 eval supported=\$$cacheid 18965 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18966 printf '%s\n' "$supported" >&6; } 18967 if test "$supported" = "yes" ; then 18968 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18969 found="yes" 18970 fi 18971 fi 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 xorg_testset_save_CFLAGS="$CFLAGS" 18988 18989 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18991 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18992 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18993 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18994 then : 18995 printf %s "(cached) " >&6 18996 else case e in #( 18997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18998 /* end confdefs.h. */ 18999 int i; 19000 _ACEOF 19001 if ac_fn_c_try_compile "$LINENO" 19002 then : 19003 xorg_cv_cc_flag_unknown_warning_option=yes 19004 else case e in #( 19005 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19006 esac 19007 fi 19008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19009 esac 19010 fi 19011 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19012 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19014 CFLAGS="$xorg_testset_save_CFLAGS" 19015 fi 19016 19017 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19020 fi 19021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19022 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19023 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19024 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19025 then : 19026 printf %s "(cached) " >&6 19027 else case e in #( 19028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19029 /* end confdefs.h. */ 19030 int i; 19031 _ACEOF 19032 if ac_fn_c_try_compile "$LINENO" 19033 then : 19034 xorg_cv_cc_flag_unused_command_line_argument=yes 19035 else case e in #( 19036 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19037 esac 19038 fi 19039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19040 esac 19041 fi 19042 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19043 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19045 CFLAGS="$xorg_testset_save_CFLAGS" 19046 fi 19047 19048 found="no" 19049 19050 if test $found = "no" ; then 19051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19053 fi 19054 19055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19057 fi 19058 19059 CFLAGS="$CFLAGS -Wmain" 19060 19061 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 19062 printf %s "checking if $CC supports -Wmain... " >&6; } 19063 cacheid=xorg_cv_cc_flag__Wmain 19064 if eval test \${$cacheid+y} 19065 then : 19066 printf %s "(cached) " >&6 19067 else case e in #( 19068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19069 /* end confdefs.h. */ 19070 int i; 19071 int 19072 main (void) 19073 { 19074 19075 ; 19076 return 0; 19077 } 19078 _ACEOF 19079 if ac_fn_c_try_link "$LINENO" 19080 then : 19081 eval $cacheid=yes 19082 else case e in #( 19083 e) eval $cacheid=no ;; 19084 esac 19085 fi 19086 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19087 conftest$ac_exeext conftest.$ac_ext ;; 19088 esac 19089 fi 19090 19091 19092 CFLAGS="$xorg_testset_save_CFLAGS" 19093 19094 eval supported=\$$cacheid 19095 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19096 printf '%s\n' "$supported" >&6; } 19097 if test "$supported" = "yes" ; then 19098 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 19099 found="yes" 19100 fi 19101 fi 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 xorg_testset_save_CFLAGS="$CFLAGS" 19118 19119 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19122 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19123 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19124 then : 19125 printf %s "(cached) " >&6 19126 else case e in #( 19127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19128 /* end confdefs.h. */ 19129 int i; 19130 _ACEOF 19131 if ac_fn_c_try_compile "$LINENO" 19132 then : 19133 xorg_cv_cc_flag_unknown_warning_option=yes 19134 else case e in #( 19135 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19136 esac 19137 fi 19138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19139 esac 19140 fi 19141 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19142 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19144 CFLAGS="$xorg_testset_save_CFLAGS" 19145 fi 19146 19147 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19150 fi 19151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19152 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19153 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19154 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19155 then : 19156 printf %s "(cached) " >&6 19157 else case e in #( 19158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19159 /* end confdefs.h. */ 19160 int i; 19161 _ACEOF 19162 if ac_fn_c_try_compile "$LINENO" 19163 then : 19164 xorg_cv_cc_flag_unused_command_line_argument=yes 19165 else case e in #( 19166 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19167 esac 19168 fi 19169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19170 esac 19171 fi 19172 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19173 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19175 CFLAGS="$xorg_testset_save_CFLAGS" 19176 fi 19177 19178 found="no" 19179 19180 if test $found = "no" ; then 19181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19183 fi 19184 19185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19187 fi 19188 19189 CFLAGS="$CFLAGS -Wmissing-braces" 19190 19191 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 19192 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 19193 cacheid=xorg_cv_cc_flag__Wmissing_braces 19194 if eval test \${$cacheid+y} 19195 then : 19196 printf %s "(cached) " >&6 19197 else case e in #( 19198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19199 /* end confdefs.h. */ 19200 int i; 19201 int 19202 main (void) 19203 { 19204 19205 ; 19206 return 0; 19207 } 19208 _ACEOF 19209 if ac_fn_c_try_link "$LINENO" 19210 then : 19211 eval $cacheid=yes 19212 else case e in #( 19213 e) eval $cacheid=no ;; 19214 esac 19215 fi 19216 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19217 conftest$ac_exeext conftest.$ac_ext ;; 19218 esac 19219 fi 19220 19221 19222 CFLAGS="$xorg_testset_save_CFLAGS" 19223 19224 eval supported=\$$cacheid 19225 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19226 printf '%s\n' "$supported" >&6; } 19227 if test "$supported" = "yes" ; then 19228 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 19229 found="yes" 19230 fi 19231 fi 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 xorg_testset_save_CFLAGS="$CFLAGS" 19248 19249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19251 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19252 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19253 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19254 then : 19255 printf %s "(cached) " >&6 19256 else case e in #( 19257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19258 /* end confdefs.h. */ 19259 int i; 19260 _ACEOF 19261 if ac_fn_c_try_compile "$LINENO" 19262 then : 19263 xorg_cv_cc_flag_unknown_warning_option=yes 19264 else case e in #( 19265 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19266 esac 19267 fi 19268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19269 esac 19270 fi 19271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19272 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19274 CFLAGS="$xorg_testset_save_CFLAGS" 19275 fi 19276 19277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19280 fi 19281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19283 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19284 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19285 then : 19286 printf %s "(cached) " >&6 19287 else case e in #( 19288 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19289 /* end confdefs.h. */ 19290 int i; 19291 _ACEOF 19292 if ac_fn_c_try_compile "$LINENO" 19293 then : 19294 xorg_cv_cc_flag_unused_command_line_argument=yes 19295 else case e in #( 19296 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19297 esac 19298 fi 19299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19300 esac 19301 fi 19302 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19303 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19305 CFLAGS="$xorg_testset_save_CFLAGS" 19306 fi 19307 19308 found="no" 19309 19310 if test $found = "no" ; then 19311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19313 fi 19314 19315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19317 fi 19318 19319 CFLAGS="$CFLAGS -Wsequence-point" 19320 19321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 19322 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 19323 cacheid=xorg_cv_cc_flag__Wsequence_point 19324 if eval test \${$cacheid+y} 19325 then : 19326 printf %s "(cached) " >&6 19327 else case e in #( 19328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19329 /* end confdefs.h. */ 19330 int i; 19331 int 19332 main (void) 19333 { 19334 19335 ; 19336 return 0; 19337 } 19338 _ACEOF 19339 if ac_fn_c_try_link "$LINENO" 19340 then : 19341 eval $cacheid=yes 19342 else case e in #( 19343 e) eval $cacheid=no ;; 19344 esac 19345 fi 19346 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19347 conftest$ac_exeext conftest.$ac_ext ;; 19348 esac 19349 fi 19350 19351 19352 CFLAGS="$xorg_testset_save_CFLAGS" 19353 19354 eval supported=\$$cacheid 19355 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19356 printf '%s\n' "$supported" >&6; } 19357 if test "$supported" = "yes" ; then 19358 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 19359 found="yes" 19360 fi 19361 fi 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 xorg_testset_save_CFLAGS="$CFLAGS" 19378 19379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19383 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19384 then : 19385 printf %s "(cached) " >&6 19386 else case e in #( 19387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19388 /* end confdefs.h. */ 19389 int i; 19390 _ACEOF 19391 if ac_fn_c_try_compile "$LINENO" 19392 then : 19393 xorg_cv_cc_flag_unknown_warning_option=yes 19394 else case e in #( 19395 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19396 esac 19397 fi 19398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19399 esac 19400 fi 19401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19402 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19404 CFLAGS="$xorg_testset_save_CFLAGS" 19405 fi 19406 19407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19410 fi 19411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19413 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19414 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19415 then : 19416 printf %s "(cached) " >&6 19417 else case e in #( 19418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19419 /* end confdefs.h. */ 19420 int i; 19421 _ACEOF 19422 if ac_fn_c_try_compile "$LINENO" 19423 then : 19424 xorg_cv_cc_flag_unused_command_line_argument=yes 19425 else case e in #( 19426 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19427 esac 19428 fi 19429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19430 esac 19431 fi 19432 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19433 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19434 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19435 CFLAGS="$xorg_testset_save_CFLAGS" 19436 fi 19437 19438 found="no" 19439 19440 if test $found = "no" ; then 19441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19443 fi 19444 19445 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19447 fi 19448 19449 CFLAGS="$CFLAGS -Wreturn-type" 19450 19451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 19452 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 19453 cacheid=xorg_cv_cc_flag__Wreturn_type 19454 if eval test \${$cacheid+y} 19455 then : 19456 printf %s "(cached) " >&6 19457 else case e in #( 19458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19459 /* end confdefs.h. */ 19460 int i; 19461 int 19462 main (void) 19463 { 19464 19465 ; 19466 return 0; 19467 } 19468 _ACEOF 19469 if ac_fn_c_try_link "$LINENO" 19470 then : 19471 eval $cacheid=yes 19472 else case e in #( 19473 e) eval $cacheid=no ;; 19474 esac 19475 fi 19476 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19477 conftest$ac_exeext conftest.$ac_ext ;; 19478 esac 19479 fi 19480 19481 19482 CFLAGS="$xorg_testset_save_CFLAGS" 19483 19484 eval supported=\$$cacheid 19485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19486 printf '%s\n' "$supported" >&6; } 19487 if test "$supported" = "yes" ; then 19488 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 19489 found="yes" 19490 fi 19491 fi 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 xorg_testset_save_CFLAGS="$CFLAGS" 19508 19509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19512 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19513 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19514 then : 19515 printf %s "(cached) " >&6 19516 else case e in #( 19517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19518 /* end confdefs.h. */ 19519 int i; 19520 _ACEOF 19521 if ac_fn_c_try_compile "$LINENO" 19522 then : 19523 xorg_cv_cc_flag_unknown_warning_option=yes 19524 else case e in #( 19525 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19526 esac 19527 fi 19528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19529 esac 19530 fi 19531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19532 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19534 CFLAGS="$xorg_testset_save_CFLAGS" 19535 fi 19536 19537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19540 fi 19541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19542 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19543 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19544 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19545 then : 19546 printf %s "(cached) " >&6 19547 else case e in #( 19548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19549 /* end confdefs.h. */ 19550 int i; 19551 _ACEOF 19552 if ac_fn_c_try_compile "$LINENO" 19553 then : 19554 xorg_cv_cc_flag_unused_command_line_argument=yes 19555 else case e in #( 19556 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19557 esac 19558 fi 19559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19560 esac 19561 fi 19562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19563 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19564 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19565 CFLAGS="$xorg_testset_save_CFLAGS" 19566 fi 19567 19568 found="no" 19569 19570 if test $found = "no" ; then 19571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19573 fi 19574 19575 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19577 fi 19578 19579 CFLAGS="$CFLAGS -Wtrigraphs" 19580 19581 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19582 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19583 cacheid=xorg_cv_cc_flag__Wtrigraphs 19584 if eval test \${$cacheid+y} 19585 then : 19586 printf %s "(cached) " >&6 19587 else case e in #( 19588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19589 /* end confdefs.h. */ 19590 int i; 19591 int 19592 main (void) 19593 { 19594 19595 ; 19596 return 0; 19597 } 19598 _ACEOF 19599 if ac_fn_c_try_link "$LINENO" 19600 then : 19601 eval $cacheid=yes 19602 else case e in #( 19603 e) eval $cacheid=no ;; 19604 esac 19605 fi 19606 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19607 conftest$ac_exeext conftest.$ac_ext ;; 19608 esac 19609 fi 19610 19611 19612 CFLAGS="$xorg_testset_save_CFLAGS" 19613 19614 eval supported=\$$cacheid 19615 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19616 printf '%s\n' "$supported" >&6; } 19617 if test "$supported" = "yes" ; then 19618 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19619 found="yes" 19620 fi 19621 fi 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 xorg_testset_save_CFLAGS="$CFLAGS" 19638 19639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19641 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19642 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19643 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19644 then : 19645 printf %s "(cached) " >&6 19646 else case e in #( 19647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19648 /* end confdefs.h. */ 19649 int i; 19650 _ACEOF 19651 if ac_fn_c_try_compile "$LINENO" 19652 then : 19653 xorg_cv_cc_flag_unknown_warning_option=yes 19654 else case e in #( 19655 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19656 esac 19657 fi 19658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19659 esac 19660 fi 19661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19662 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19664 CFLAGS="$xorg_testset_save_CFLAGS" 19665 fi 19666 19667 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19670 fi 19671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19672 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19673 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19674 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19675 then : 19676 printf %s "(cached) " >&6 19677 else case e in #( 19678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19679 /* end confdefs.h. */ 19680 int i; 19681 _ACEOF 19682 if ac_fn_c_try_compile "$LINENO" 19683 then : 19684 xorg_cv_cc_flag_unused_command_line_argument=yes 19685 else case e in #( 19686 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19687 esac 19688 fi 19689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19690 esac 19691 fi 19692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19693 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19695 CFLAGS="$xorg_testset_save_CFLAGS" 19696 fi 19697 19698 found="no" 19699 19700 if test $found = "no" ; then 19701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19703 fi 19704 19705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19707 fi 19708 19709 CFLAGS="$CFLAGS -Warray-bounds" 19710 19711 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19712 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19713 cacheid=xorg_cv_cc_flag__Warray_bounds 19714 if eval test \${$cacheid+y} 19715 then : 19716 printf %s "(cached) " >&6 19717 else case e in #( 19718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19719 /* end confdefs.h. */ 19720 int i; 19721 int 19722 main (void) 19723 { 19724 19725 ; 19726 return 0; 19727 } 19728 _ACEOF 19729 if ac_fn_c_try_link "$LINENO" 19730 then : 19731 eval $cacheid=yes 19732 else case e in #( 19733 e) eval $cacheid=no ;; 19734 esac 19735 fi 19736 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19737 conftest$ac_exeext conftest.$ac_ext ;; 19738 esac 19739 fi 19740 19741 19742 CFLAGS="$xorg_testset_save_CFLAGS" 19743 19744 eval supported=\$$cacheid 19745 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19746 printf '%s\n' "$supported" >&6; } 19747 if test "$supported" = "yes" ; then 19748 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19749 found="yes" 19750 fi 19751 fi 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 xorg_testset_save_CFLAGS="$CFLAGS" 19768 19769 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19772 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19773 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19774 then : 19775 printf %s "(cached) " >&6 19776 else case e in #( 19777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19778 /* end confdefs.h. */ 19779 int i; 19780 _ACEOF 19781 if ac_fn_c_try_compile "$LINENO" 19782 then : 19783 xorg_cv_cc_flag_unknown_warning_option=yes 19784 else case e in #( 19785 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19786 esac 19787 fi 19788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19789 esac 19790 fi 19791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19792 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19794 CFLAGS="$xorg_testset_save_CFLAGS" 19795 fi 19796 19797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19800 fi 19801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19802 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19803 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19804 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19805 then : 19806 printf %s "(cached) " >&6 19807 else case e in #( 19808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19809 /* end confdefs.h. */ 19810 int i; 19811 _ACEOF 19812 if ac_fn_c_try_compile "$LINENO" 19813 then : 19814 xorg_cv_cc_flag_unused_command_line_argument=yes 19815 else case e in #( 19816 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19817 esac 19818 fi 19819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19820 esac 19821 fi 19822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19823 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19825 CFLAGS="$xorg_testset_save_CFLAGS" 19826 fi 19827 19828 found="no" 19829 19830 if test $found = "no" ; then 19831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19833 fi 19834 19835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19837 fi 19838 19839 CFLAGS="$CFLAGS -Wwrite-strings" 19840 19841 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19842 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19843 cacheid=xorg_cv_cc_flag__Wwrite_strings 19844 if eval test \${$cacheid+y} 19845 then : 19846 printf %s "(cached) " >&6 19847 else case e in #( 19848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19849 /* end confdefs.h. */ 19850 int i; 19851 int 19852 main (void) 19853 { 19854 19855 ; 19856 return 0; 19857 } 19858 _ACEOF 19859 if ac_fn_c_try_link "$LINENO" 19860 then : 19861 eval $cacheid=yes 19862 else case e in #( 19863 e) eval $cacheid=no ;; 19864 esac 19865 fi 19866 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19867 conftest$ac_exeext conftest.$ac_ext ;; 19868 esac 19869 fi 19870 19871 19872 CFLAGS="$xorg_testset_save_CFLAGS" 19873 19874 eval supported=\$$cacheid 19875 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19876 printf '%s\n' "$supported" >&6; } 19877 if test "$supported" = "yes" ; then 19878 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19879 found="yes" 19880 fi 19881 fi 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 xorg_testset_save_CFLAGS="$CFLAGS" 19898 19899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19902 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19903 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19904 then : 19905 printf %s "(cached) " >&6 19906 else case e in #( 19907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19908 /* end confdefs.h. */ 19909 int i; 19910 _ACEOF 19911 if ac_fn_c_try_compile "$LINENO" 19912 then : 19913 xorg_cv_cc_flag_unknown_warning_option=yes 19914 else case e in #( 19915 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19916 esac 19917 fi 19918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19919 esac 19920 fi 19921 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19922 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19924 CFLAGS="$xorg_testset_save_CFLAGS" 19925 fi 19926 19927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19930 fi 19931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19932 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19933 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19934 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19935 then : 19936 printf %s "(cached) " >&6 19937 else case e in #( 19938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19939 /* end confdefs.h. */ 19940 int i; 19941 _ACEOF 19942 if ac_fn_c_try_compile "$LINENO" 19943 then : 19944 xorg_cv_cc_flag_unused_command_line_argument=yes 19945 else case e in #( 19946 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19947 esac 19948 fi 19949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19950 esac 19951 fi 19952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19953 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19955 CFLAGS="$xorg_testset_save_CFLAGS" 19956 fi 19957 19958 found="no" 19959 19960 if test $found = "no" ; then 19961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19963 fi 19964 19965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19967 fi 19968 19969 CFLAGS="$CFLAGS -Waddress" 19970 19971 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19972 printf %s "checking if $CC supports -Waddress... " >&6; } 19973 cacheid=xorg_cv_cc_flag__Waddress 19974 if eval test \${$cacheid+y} 19975 then : 19976 printf %s "(cached) " >&6 19977 else case e in #( 19978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19979 /* end confdefs.h. */ 19980 int i; 19981 int 19982 main (void) 19983 { 19984 19985 ; 19986 return 0; 19987 } 19988 _ACEOF 19989 if ac_fn_c_try_link "$LINENO" 19990 then : 19991 eval $cacheid=yes 19992 else case e in #( 19993 e) eval $cacheid=no ;; 19994 esac 19995 fi 19996 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19997 conftest$ac_exeext conftest.$ac_ext ;; 19998 esac 19999 fi 20000 20001 20002 CFLAGS="$xorg_testset_save_CFLAGS" 20003 20004 eval supported=\$$cacheid 20005 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20006 printf '%s\n' "$supported" >&6; } 20007 if test "$supported" = "yes" ; then 20008 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 20009 found="yes" 20010 fi 20011 fi 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 xorg_testset_save_CFLAGS="$CFLAGS" 20028 20029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20032 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20033 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20034 then : 20035 printf %s "(cached) " >&6 20036 else case e in #( 20037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20038 /* end confdefs.h. */ 20039 int i; 20040 _ACEOF 20041 if ac_fn_c_try_compile "$LINENO" 20042 then : 20043 xorg_cv_cc_flag_unknown_warning_option=yes 20044 else case e in #( 20045 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20046 esac 20047 fi 20048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20049 esac 20050 fi 20051 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20052 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20054 CFLAGS="$xorg_testset_save_CFLAGS" 20055 fi 20056 20057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20060 fi 20061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20063 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20064 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20065 then : 20066 printf %s "(cached) " >&6 20067 else case e in #( 20068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20069 /* end confdefs.h. */ 20070 int i; 20071 _ACEOF 20072 if ac_fn_c_try_compile "$LINENO" 20073 then : 20074 xorg_cv_cc_flag_unused_command_line_argument=yes 20075 else case e in #( 20076 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20077 esac 20078 fi 20079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20080 esac 20081 fi 20082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20083 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20085 CFLAGS="$xorg_testset_save_CFLAGS" 20086 fi 20087 20088 found="no" 20089 20090 if test $found = "no" ; then 20091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20093 fi 20094 20095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20097 fi 20098 20099 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 20100 20101 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 20102 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 20103 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 20104 if eval test \${$cacheid+y} 20105 then : 20106 printf %s "(cached) " >&6 20107 else case e in #( 20108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20109 /* end confdefs.h. */ 20110 int i; 20111 int 20112 main (void) 20113 { 20114 20115 ; 20116 return 0; 20117 } 20118 _ACEOF 20119 if ac_fn_c_try_link "$LINENO" 20120 then : 20121 eval $cacheid=yes 20122 else case e in #( 20123 e) eval $cacheid=no ;; 20124 esac 20125 fi 20126 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20127 conftest$ac_exeext conftest.$ac_ext ;; 20128 esac 20129 fi 20130 20131 20132 CFLAGS="$xorg_testset_save_CFLAGS" 20133 20134 eval supported=\$$cacheid 20135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20136 printf '%s\n' "$supported" >&6; } 20137 if test "$supported" = "yes" ; then 20138 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 20139 found="yes" 20140 fi 20141 fi 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 xorg_testset_save_CFLAGS="$CFLAGS" 20158 20159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20161 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20163 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20164 then : 20165 printf %s "(cached) " >&6 20166 else case e in #( 20167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20168 /* end confdefs.h. */ 20169 int i; 20170 _ACEOF 20171 if ac_fn_c_try_compile "$LINENO" 20172 then : 20173 xorg_cv_cc_flag_unknown_warning_option=yes 20174 else case e in #( 20175 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20176 esac 20177 fi 20178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20179 esac 20180 fi 20181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20182 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20184 CFLAGS="$xorg_testset_save_CFLAGS" 20185 fi 20186 20187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20190 fi 20191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20193 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20194 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20195 then : 20196 printf %s "(cached) " >&6 20197 else case e in #( 20198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20199 /* end confdefs.h. */ 20200 int i; 20201 _ACEOF 20202 if ac_fn_c_try_compile "$LINENO" 20203 then : 20204 xorg_cv_cc_flag_unused_command_line_argument=yes 20205 else case e in #( 20206 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20207 esac 20208 fi 20209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20210 esac 20211 fi 20212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20213 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20215 CFLAGS="$xorg_testset_save_CFLAGS" 20216 fi 20217 20218 found="no" 20219 20220 if test $found = "no" ; then 20221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20223 fi 20224 20225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20227 fi 20228 20229 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 20230 20231 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 20232 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 20233 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 20234 if eval test \${$cacheid+y} 20235 then : 20236 printf %s "(cached) " >&6 20237 else case e in #( 20238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20239 /* end confdefs.h. */ 20240 int i; 20241 int 20242 main (void) 20243 { 20244 20245 ; 20246 return 0; 20247 } 20248 _ACEOF 20249 if ac_fn_c_try_link "$LINENO" 20250 then : 20251 eval $cacheid=yes 20252 else case e in #( 20253 e) eval $cacheid=no ;; 20254 esac 20255 fi 20256 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20257 conftest$ac_exeext conftest.$ac_ext ;; 20258 esac 20259 fi 20260 20261 20262 CFLAGS="$xorg_testset_save_CFLAGS" 20263 20264 eval supported=\$$cacheid 20265 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20266 printf '%s\n' "$supported" >&6; } 20267 if test "$supported" = "yes" ; then 20268 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 20269 found="yes" 20270 fi 20271 fi 20272 20273 20274 fi 20275 20276 20277 20278 20279 20280 20281 20282 CWARNFLAGS="$BASE_CFLAGS" 20283 if test "x$GCC" = xyes ; then 20284 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 20285 fi 20286 20287 20288 20289 20290 20291 20292 20293 20294 # Check whether --enable-strict-compilation was given. 20295 if test ${enable_strict_compilation+y} 20296 then : 20297 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 20298 else case e in #( 20299 e) STRICT_COMPILE=no ;; 20300 esac 20301 fi 20302 20303 20304 20305 20306 20307 20308 STRICT_CFLAGS="" 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 xorg_testset_save_CFLAGS="$CFLAGS" 20323 20324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20326 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20327 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20328 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20329 then : 20330 printf %s "(cached) " >&6 20331 else case e in #( 20332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20333 /* end confdefs.h. */ 20334 int i; 20335 _ACEOF 20336 if ac_fn_c_try_compile "$LINENO" 20337 then : 20338 xorg_cv_cc_flag_unknown_warning_option=yes 20339 else case e in #( 20340 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20341 esac 20342 fi 20343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20344 esac 20345 fi 20346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20347 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20349 CFLAGS="$xorg_testset_save_CFLAGS" 20350 fi 20351 20352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20355 fi 20356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20358 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20359 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20360 then : 20361 printf %s "(cached) " >&6 20362 else case e in #( 20363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20364 /* end confdefs.h. */ 20365 int i; 20366 _ACEOF 20367 if ac_fn_c_try_compile "$LINENO" 20368 then : 20369 xorg_cv_cc_flag_unused_command_line_argument=yes 20370 else case e in #( 20371 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20372 esac 20373 fi 20374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20375 esac 20376 fi 20377 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20378 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20380 CFLAGS="$xorg_testset_save_CFLAGS" 20381 fi 20382 20383 found="no" 20384 20385 if test $found = "no" ; then 20386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20388 fi 20389 20390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20392 fi 20393 20394 CFLAGS="$CFLAGS -pedantic" 20395 20396 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 20397 printf %s "checking if $CC supports -pedantic... " >&6; } 20398 cacheid=xorg_cv_cc_flag__pedantic 20399 if eval test \${$cacheid+y} 20400 then : 20401 printf %s "(cached) " >&6 20402 else case e in #( 20403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20404 /* end confdefs.h. */ 20405 int i; 20406 int 20407 main (void) 20408 { 20409 20410 ; 20411 return 0; 20412 } 20413 _ACEOF 20414 if ac_fn_c_try_link "$LINENO" 20415 then : 20416 eval $cacheid=yes 20417 else case e in #( 20418 e) eval $cacheid=no ;; 20419 esac 20420 fi 20421 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20422 conftest$ac_exeext conftest.$ac_ext ;; 20423 esac 20424 fi 20425 20426 20427 CFLAGS="$xorg_testset_save_CFLAGS" 20428 20429 eval supported=\$$cacheid 20430 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20431 printf '%s\n' "$supported" >&6; } 20432 if test "$supported" = "yes" ; then 20433 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 20434 found="yes" 20435 fi 20436 fi 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 xorg_testset_save_CFLAGS="$CFLAGS" 20453 20454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20456 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20457 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20458 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20459 then : 20460 printf %s "(cached) " >&6 20461 else case e in #( 20462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20463 /* end confdefs.h. */ 20464 int i; 20465 _ACEOF 20466 if ac_fn_c_try_compile "$LINENO" 20467 then : 20468 xorg_cv_cc_flag_unknown_warning_option=yes 20469 else case e in #( 20470 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20471 esac 20472 fi 20473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20474 esac 20475 fi 20476 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20477 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20479 CFLAGS="$xorg_testset_save_CFLAGS" 20480 fi 20481 20482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20485 fi 20486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20487 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20488 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20489 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20490 then : 20491 printf %s "(cached) " >&6 20492 else case e in #( 20493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20494 /* end confdefs.h. */ 20495 int i; 20496 _ACEOF 20497 if ac_fn_c_try_compile "$LINENO" 20498 then : 20499 xorg_cv_cc_flag_unused_command_line_argument=yes 20500 else case e in #( 20501 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20502 esac 20503 fi 20504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20505 esac 20506 fi 20507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20508 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20510 CFLAGS="$xorg_testset_save_CFLAGS" 20511 fi 20512 20513 found="no" 20514 20515 if test $found = "no" ; then 20516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20518 fi 20519 20520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20522 fi 20523 20524 CFLAGS="$CFLAGS -Werror" 20525 20526 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 20527 printf %s "checking if $CC supports -Werror... " >&6; } 20528 cacheid=xorg_cv_cc_flag__Werror 20529 if eval test \${$cacheid+y} 20530 then : 20531 printf %s "(cached) " >&6 20532 else case e in #( 20533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20534 /* end confdefs.h. */ 20535 int i; 20536 int 20537 main (void) 20538 { 20539 20540 ; 20541 return 0; 20542 } 20543 _ACEOF 20544 if ac_fn_c_try_link "$LINENO" 20545 then : 20546 eval $cacheid=yes 20547 else case e in #( 20548 e) eval $cacheid=no ;; 20549 esac 20550 fi 20551 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20552 conftest$ac_exeext conftest.$ac_ext ;; 20553 esac 20554 fi 20555 20556 20557 CFLAGS="$xorg_testset_save_CFLAGS" 20558 20559 eval supported=\$$cacheid 20560 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20561 printf '%s\n' "$supported" >&6; } 20562 if test "$supported" = "yes" ; then 20563 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20564 found="yes" 20565 fi 20566 fi 20567 20568 if test $found = "no" ; then 20569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20571 fi 20572 20573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20575 fi 20576 20577 CFLAGS="$CFLAGS -errwarn" 20578 20579 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20580 printf %s "checking if $CC supports -errwarn... " >&6; } 20581 cacheid=xorg_cv_cc_flag__errwarn 20582 if eval test \${$cacheid+y} 20583 then : 20584 printf %s "(cached) " >&6 20585 else case e in #( 20586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20587 /* end confdefs.h. */ 20588 int i; 20589 int 20590 main (void) 20591 { 20592 20593 ; 20594 return 0; 20595 } 20596 _ACEOF 20597 if ac_fn_c_try_link "$LINENO" 20598 then : 20599 eval $cacheid=yes 20600 else case e in #( 20601 e) eval $cacheid=no ;; 20602 esac 20603 fi 20604 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20605 conftest$ac_exeext conftest.$ac_ext ;; 20606 esac 20607 fi 20608 20609 20610 CFLAGS="$xorg_testset_save_CFLAGS" 20611 20612 eval supported=\$$cacheid 20613 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20614 printf '%s\n' "$supported" >&6; } 20615 if test "$supported" = "yes" ; then 20616 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20617 found="yes" 20618 fi 20619 fi 20620 20621 20622 20623 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20624 # activate it with -Werror, so we add it here explicitly. 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 xorg_testset_save_CFLAGS="$CFLAGS" 20639 20640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20643 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20644 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20645 then : 20646 printf %s "(cached) " >&6 20647 else case e in #( 20648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20649 /* end confdefs.h. */ 20650 int i; 20651 _ACEOF 20652 if ac_fn_c_try_compile "$LINENO" 20653 then : 20654 xorg_cv_cc_flag_unknown_warning_option=yes 20655 else case e in #( 20656 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20657 esac 20658 fi 20659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20660 esac 20661 fi 20662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20663 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20665 CFLAGS="$xorg_testset_save_CFLAGS" 20666 fi 20667 20668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20671 fi 20672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20674 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20675 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20676 then : 20677 printf %s "(cached) " >&6 20678 else case e in #( 20679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20680 /* end confdefs.h. */ 20681 int i; 20682 _ACEOF 20683 if ac_fn_c_try_compile "$LINENO" 20684 then : 20685 xorg_cv_cc_flag_unused_command_line_argument=yes 20686 else case e in #( 20687 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20688 esac 20689 fi 20690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20691 esac 20692 fi 20693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20694 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20696 CFLAGS="$xorg_testset_save_CFLAGS" 20697 fi 20698 20699 found="no" 20700 20701 if test $found = "no" ; then 20702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20704 fi 20705 20706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20708 fi 20709 20710 CFLAGS="$CFLAGS -Werror=attributes" 20711 20712 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20713 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20714 cacheid=xorg_cv_cc_flag__Werror_attributes 20715 if eval test \${$cacheid+y} 20716 then : 20717 printf %s "(cached) " >&6 20718 else case e in #( 20719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20720 /* end confdefs.h. */ 20721 int i; 20722 int 20723 main (void) 20724 { 20725 20726 ; 20727 return 0; 20728 } 20729 _ACEOF 20730 if ac_fn_c_try_link "$LINENO" 20731 then : 20732 eval $cacheid=yes 20733 else case e in #( 20734 e) eval $cacheid=no ;; 20735 esac 20736 fi 20737 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20738 conftest$ac_exeext conftest.$ac_ext ;; 20739 esac 20740 fi 20741 20742 20743 CFLAGS="$xorg_testset_save_CFLAGS" 20744 20745 eval supported=\$$cacheid 20746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20747 printf '%s\n' "$supported" >&6; } 20748 if test "$supported" = "yes" ; then 20749 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20750 found="yes" 20751 fi 20752 fi 20753 20754 20755 20756 if test "x$STRICT_COMPILE" = "xyes"; then 20757 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20758 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20759 fi 20760 20761 20762 20763 20764 20765 20766 20767 20768 cat >>confdefs.h <<_ACEOF 20769 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20770 _ACEOF 20771 20772 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20773 if test "x$PVM" = "x"; then 20774 PVM="0" 20775 fi 20776 20777 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20778 20779 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20780 if test "x$PVP" = "x"; then 20781 PVP="0" 20782 fi 20783 20784 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20785 20786 20787 20788 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20789 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20790 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20791 touch \$(top_srcdir)/ChangeLog; \ 20792 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20793 20794 20795 20796 20797 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20798 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20799 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20800 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20801 touch \$(top_srcdir)/INSTALL; \ 20802 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20803 20804 20805 20806 20807 20808 20809 case $host_os in 20810 solaris*) 20811 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20812 # check for a man page file found in later versions that use 20813 # traditional section numbers instead 20814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20815 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20816 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20817 then : 20818 printf %s "(cached) " >&6 20819 else case e in #( 20820 e) test "$cross_compiling" = yes && 20821 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20822 if test -r "/usr/share/man/man7/attributes.7"; then 20823 ac_cv_file__usr_share_man_man7_attributes_7=yes 20824 else 20825 ac_cv_file__usr_share_man_man7_attributes_7=no 20826 fi ;; 20827 esac 20828 fi 20829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20830 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20831 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20832 then : 20833 SYSV_MAN_SECTIONS=false 20834 else case e in #( 20835 e) SYSV_MAN_SECTIONS=true ;; 20836 esac 20837 fi 20838 20839 ;; 20840 *) SYSV_MAN_SECTIONS=false ;; 20841 esac 20842 20843 if test x$APP_MAN_SUFFIX = x ; then 20844 APP_MAN_SUFFIX=1 20845 fi 20846 if test x$APP_MAN_DIR = x ; then 20847 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20848 fi 20849 20850 if test x$LIB_MAN_SUFFIX = x ; then 20851 LIB_MAN_SUFFIX=3 20852 fi 20853 if test x$LIB_MAN_DIR = x ; then 20854 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20855 fi 20856 20857 if test x$FILE_MAN_SUFFIX = x ; then 20858 case $SYSV_MAN_SECTIONS in 20859 true) FILE_MAN_SUFFIX=4 ;; 20860 *) FILE_MAN_SUFFIX=5 ;; 20861 esac 20862 fi 20863 if test x$FILE_MAN_DIR = x ; then 20864 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20865 fi 20866 20867 if test x$MISC_MAN_SUFFIX = x ; then 20868 case $SYSV_MAN_SECTIONS in 20869 true) MISC_MAN_SUFFIX=5 ;; 20870 *) MISC_MAN_SUFFIX=7 ;; 20871 esac 20872 fi 20873 if test x$MISC_MAN_DIR = x ; then 20874 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20875 fi 20876 20877 if test x$DRIVER_MAN_SUFFIX = x ; then 20878 case $SYSV_MAN_SECTIONS in 20879 true) DRIVER_MAN_SUFFIX=7 ;; 20880 *) DRIVER_MAN_SUFFIX=4 ;; 20881 esac 20882 fi 20883 if test x$DRIVER_MAN_DIR = x ; then 20884 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20885 fi 20886 20887 if test x$ADMIN_MAN_SUFFIX = x ; then 20888 case $SYSV_MAN_SECTIONS in 20889 true) ADMIN_MAN_SUFFIX=1m ;; 20890 *) ADMIN_MAN_SUFFIX=8 ;; 20891 esac 20892 fi 20893 if test x$ADMIN_MAN_DIR = x ; then 20894 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20895 fi 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 XORG_MAN_PAGE="X Version 11" 20912 20913 MAN_SUBSTS="\ 20914 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20915 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20916 -e 's|__xservername__|Xorg|g' \ 20917 -e 's|__xconfigfile__|xorg.conf|g' \ 20918 -e 's|__projectroot__|\$(prefix)|g' \ 20919 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20920 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20921 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20922 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20923 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20924 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20925 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20926 20927 20928 20929 20930 AM_DEFAULT_VERBOSITY=0 20931 20932 20933 20934 20935 20936 20937 # Check whether --enable-docs was given. 20938 if test ${enable_docs+y} 20939 then : 20940 enableval=$enable_docs; build_docs=$enableval 20941 else case e in #( 20942 e) build_docs=yes ;; 20943 esac 20944 fi 20945 20946 20947 if test x$build_docs = xyes; then 20948 ENABLE_DOCS_TRUE= 20949 ENABLE_DOCS_FALSE='#' 20950 else 20951 ENABLE_DOCS_TRUE='#' 20952 ENABLE_DOCS_FALSE= 20953 fi 20954 20955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 20956 printf %s "checking whether to build documentation... " >&6; } 20957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 20958 printf '%s\n' "$build_docs" >&6; } 20959 20960 20961 20962 # Check whether --enable-specs was given. 20963 if test ${enable_specs+y} 20964 then : 20965 enableval=$enable_specs; build_specs=$enableval 20966 else case e in #( 20967 e) build_specs=yes ;; 20968 esac 20969 fi 20970 20971 20972 if test x$build_specs = xyes; then 20973 ENABLE_SPECS_TRUE= 20974 ENABLE_SPECS_FALSE='#' 20975 else 20976 ENABLE_SPECS_TRUE='#' 20977 ENABLE_SPECS_FALSE= 20978 fi 20979 20980 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 20981 printf %s "checking whether to build functional specifications... " >&6; } 20982 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 20983 printf '%s\n' "$build_specs" >&6; } 20984 20985 20986 20987 20988 20989 # Check whether --with-xmlto was given. 20990 if test ${with_xmlto+y} 20991 then : 20992 withval=$with_xmlto; use_xmlto=$withval 20993 else case e in #( 20994 e) use_xmlto=auto ;; 20995 esac 20996 fi 20997 20998 20999 21000 if test "x$use_xmlto" = x"auto"; then 21001 # Extract the first word of "xmlto", so it can be a program name with args. 21002 set dummy xmlto; ac_word=$2 21003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21004 printf %s "checking for $ac_word... " >&6; } 21005 if test ${ac_cv_path_XMLTO+y} 21006 then : 21007 printf %s "(cached) " >&6 21008 else case e in #( 21009 e) case $XMLTO in 21010 [\\/]* | ?:[\\/]*) 21011 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 21012 ;; 21013 *) 21014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21015 for as_dir in $PATH 21016 do 21017 IFS=$as_save_IFS 21018 case $as_dir in #((( 21019 '') as_dir=./ ;; 21020 */) ;; 21021 *) as_dir=$as_dir/ ;; 21022 esac 21023 for ac_exec_ext in '' $ac_executable_extensions; do 21024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21025 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 21026 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21027 break 2 21028 fi 21029 done 21030 done 21031 IFS=$as_save_IFS 21032 21033 ;; 21034 esac ;; 21035 esac 21036 fi 21037 XMLTO=$ac_cv_path_XMLTO 21038 if test -n "$XMLTO"; then 21039 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 21040 printf '%s\n' "$XMLTO" >&6; } 21041 else 21042 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21043 printf '%s\n' "no" >&6; } 21044 fi 21045 21046 21047 if test "x$XMLTO" = "x"; then 21048 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 21049 printf '%s\n' "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 21050 have_xmlto=no 21051 else 21052 have_xmlto=yes 21053 fi 21054 elif test "x$use_xmlto" = x"yes" ; then 21055 # Extract the first word of "xmlto", so it can be a program name with args. 21056 set dummy xmlto; ac_word=$2 21057 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21058 printf %s "checking for $ac_word... " >&6; } 21059 if test ${ac_cv_path_XMLTO+y} 21060 then : 21061 printf %s "(cached) " >&6 21062 else case e in #( 21063 e) case $XMLTO in 21064 [\\/]* | ?:[\\/]*) 21065 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 21066 ;; 21067 *) 21068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21069 for as_dir in $PATH 21070 do 21071 IFS=$as_save_IFS 21072 case $as_dir in #((( 21073 '') as_dir=./ ;; 21074 */) ;; 21075 *) as_dir=$as_dir/ ;; 21076 esac 21077 for ac_exec_ext in '' $ac_executable_extensions; do 21078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21079 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 21080 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21081 break 2 21082 fi 21083 done 21084 done 21085 IFS=$as_save_IFS 21086 21087 ;; 21088 esac ;; 21089 esac 21090 fi 21091 XMLTO=$ac_cv_path_XMLTO 21092 if test -n "$XMLTO"; then 21093 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 21094 printf '%s\n' "$XMLTO" >&6; } 21095 else 21096 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21097 printf '%s\n' "no" >&6; } 21098 fi 21099 21100 21101 if test "x$XMLTO" = "x"; then 21102 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 21103 fi 21104 have_xmlto=yes 21105 elif test "x$use_xmlto" = x"no" ; then 21106 if test "x$XMLTO" != "x"; then 21107 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 21108 printf '%s\n' "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 21109 fi 21110 have_xmlto=no 21111 else 21112 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 21113 fi 21114 21115 # Test for a minimum version of xmlto, if provided. 21116 if test "$have_xmlto" = yes; then 21117 # scrape the xmlto version 21118 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 21119 printf %s "checking the xmlto version... " >&6; } 21120 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 21121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 21122 printf '%s\n' "$xmlto_version" >&6; } 21123 as_arg_v1=$xmlto_version 21124 as_arg_v2=0.0.22 21125 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 21126 case $? in #( 21127 1) : 21128 if test "x$use_xmlto" = xauto; then 21129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 21130 printf '%s\n' "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 21131 have_xmlto=no 21132 else 21133 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 21134 fi ;; #( 21135 0) : 21136 ;; #( 21137 2) : 21138 ;; #( 21139 *) : 21140 ;; 21141 esac 21142 fi 21143 21144 # Test for the ability of xmlto to generate a text target 21145 # 21146 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 21147 # following test for empty XML docbook files. 21148 # For compatibility reasons use the following empty XML docbook file and if 21149 # it fails try it again with a non-empty XML file. 21150 have_xmlto_text=no 21151 cat > conftest.xml << "EOF" 21152 EOF 21153 if test "$have_xmlto" = yes 21154 then : 21155 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 21156 then : 21157 have_xmlto_text=yes 21158 else case e in #( 21159 e) # Try it again with a non-empty XML file. 21160 cat > conftest.xml << "EOF" 21161 <x></x> 21162 EOF 21163 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 21164 then : 21165 have_xmlto_text=yes 21166 else case e in #( 21167 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 21168 printf '%s\n' "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 21169 esac 21170 fi ;; 21171 esac 21172 fi 21173 fi 21174 rm -f conftest.xml 21175 if test $have_xmlto_text = yes; then 21176 HAVE_XMLTO_TEXT_TRUE= 21177 HAVE_XMLTO_TEXT_FALSE='#' 21178 else 21179 HAVE_XMLTO_TEXT_TRUE='#' 21180 HAVE_XMLTO_TEXT_FALSE= 21181 fi 21182 21183 if test "$have_xmlto" = yes; then 21184 HAVE_XMLTO_TRUE= 21185 HAVE_XMLTO_FALSE='#' 21186 else 21187 HAVE_XMLTO_TRUE='#' 21188 HAVE_XMLTO_FALSE= 21189 fi 21190 21191 21192 21193 21194 21195 21196 # Check whether --with-fop was given. 21197 if test ${with_fop+y} 21198 then : 21199 withval=$with_fop; use_fop=$withval 21200 else case e in #( 21201 e) use_fop=auto ;; 21202 esac 21203 fi 21204 21205 21206 21207 if test "x$use_fop" = x"auto"; then 21208 # Extract the first word of "fop", so it can be a program name with args. 21209 set dummy fop; ac_word=$2 21210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21211 printf %s "checking for $ac_word... " >&6; } 21212 if test ${ac_cv_path_FOP+y} 21213 then : 21214 printf %s "(cached) " >&6 21215 else case e in #( 21216 e) case $FOP in 21217 [\\/]* | ?:[\\/]*) 21218 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 21219 ;; 21220 *) 21221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21222 for as_dir in $PATH 21223 do 21224 IFS=$as_save_IFS 21225 case $as_dir in #((( 21226 '') as_dir=./ ;; 21227 */) ;; 21228 *) as_dir=$as_dir/ ;; 21229 esac 21230 for ac_exec_ext in '' $ac_executable_extensions; do 21231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21232 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 21233 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21234 break 2 21235 fi 21236 done 21237 done 21238 IFS=$as_save_IFS 21239 21240 ;; 21241 esac ;; 21242 esac 21243 fi 21244 FOP=$ac_cv_path_FOP 21245 if test -n "$FOP"; then 21246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 21247 printf '%s\n' "$FOP" >&6; } 21248 else 21249 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21250 printf '%s\n' "no" >&6; } 21251 fi 21252 21253 21254 if test "x$FOP" = "x"; then 21255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 21256 printf '%s\n' "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 21257 have_fop=no 21258 else 21259 have_fop=yes 21260 fi 21261 elif test "x$use_fop" = x"yes" ; then 21262 # Extract the first word of "fop", so it can be a program name with args. 21263 set dummy fop; ac_word=$2 21264 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21265 printf %s "checking for $ac_word... " >&6; } 21266 if test ${ac_cv_path_FOP+y} 21267 then : 21268 printf %s "(cached) " >&6 21269 else case e in #( 21270 e) case $FOP in 21271 [\\/]* | ?:[\\/]*) 21272 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 21273 ;; 21274 *) 21275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21276 for as_dir in $PATH 21277 do 21278 IFS=$as_save_IFS 21279 case $as_dir in #((( 21280 '') as_dir=./ ;; 21281 */) ;; 21282 *) as_dir=$as_dir/ ;; 21283 esac 21284 for ac_exec_ext in '' $ac_executable_extensions; do 21285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21286 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 21287 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21288 break 2 21289 fi 21290 done 21291 done 21292 IFS=$as_save_IFS 21293 21294 ;; 21295 esac ;; 21296 esac 21297 fi 21298 FOP=$ac_cv_path_FOP 21299 if test -n "$FOP"; then 21300 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 21301 printf '%s\n' "$FOP" >&6; } 21302 else 21303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21304 printf '%s\n' "no" >&6; } 21305 fi 21306 21307 21308 if test "x$FOP" = "x"; then 21309 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 21310 fi 21311 have_fop=yes 21312 elif test "x$use_fop" = x"no" ; then 21313 if test "x$FOP" != "x"; then 21314 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 21315 printf '%s\n' "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 21316 fi 21317 have_fop=no 21318 else 21319 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 21320 fi 21321 21322 # Test for a minimum version of fop, if provided. 21323 21324 if test "$have_fop" = yes; then 21325 HAVE_FOP_TRUE= 21326 HAVE_FOP_FALSE='#' 21327 else 21328 HAVE_FOP_TRUE='#' 21329 HAVE_FOP_FALSE= 21330 fi 21331 21332 21333 21334 21335 # Preserves the interface, should it be implemented later 21336 21337 21338 21339 # Check whether --with-xsltproc was given. 21340 if test ${with_xsltproc+y} 21341 then : 21342 withval=$with_xsltproc; use_xsltproc=$withval 21343 else case e in #( 21344 e) use_xsltproc=auto ;; 21345 esac 21346 fi 21347 21348 21349 21350 if test "x$use_xsltproc" = x"auto"; then 21351 # Extract the first word of "xsltproc", so it can be a program name with args. 21352 set dummy xsltproc; ac_word=$2 21353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21354 printf %s "checking for $ac_word... " >&6; } 21355 if test ${ac_cv_path_XSLTPROC+y} 21356 then : 21357 printf %s "(cached) " >&6 21358 else case e in #( 21359 e) case $XSLTPROC in 21360 [\\/]* | ?:[\\/]*) 21361 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 21362 ;; 21363 *) 21364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21365 for as_dir in $PATH 21366 do 21367 IFS=$as_save_IFS 21368 case $as_dir in #((( 21369 '') as_dir=./ ;; 21370 */) ;; 21371 *) as_dir=$as_dir/ ;; 21372 esac 21373 for ac_exec_ext in '' $ac_executable_extensions; do 21374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21375 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 21376 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21377 break 2 21378 fi 21379 done 21380 done 21381 IFS=$as_save_IFS 21382 21383 ;; 21384 esac ;; 21385 esac 21386 fi 21387 XSLTPROC=$ac_cv_path_XSLTPROC 21388 if test -n "$XSLTPROC"; then 21389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21390 printf '%s\n' "$XSLTPROC" >&6; } 21391 else 21392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21393 printf '%s\n' "no" >&6; } 21394 fi 21395 21396 21397 if test "x$XSLTPROC" = "x"; then 21398 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 21399 printf '%s\n' "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 21400 have_xsltproc=no 21401 else 21402 have_xsltproc=yes 21403 fi 21404 elif test "x$use_xsltproc" = x"yes" ; then 21405 # Extract the first word of "xsltproc", so it can be a program name with args. 21406 set dummy xsltproc; ac_word=$2 21407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21408 printf %s "checking for $ac_word... " >&6; } 21409 if test ${ac_cv_path_XSLTPROC+y} 21410 then : 21411 printf %s "(cached) " >&6 21412 else case e in #( 21413 e) case $XSLTPROC in 21414 [\\/]* | ?:[\\/]*) 21415 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 21416 ;; 21417 *) 21418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21419 for as_dir in $PATH 21420 do 21421 IFS=$as_save_IFS 21422 case $as_dir in #((( 21423 '') as_dir=./ ;; 21424 */) ;; 21425 *) as_dir=$as_dir/ ;; 21426 esac 21427 for ac_exec_ext in '' $ac_executable_extensions; do 21428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21429 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 21430 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21431 break 2 21432 fi 21433 done 21434 done 21435 IFS=$as_save_IFS 21436 21437 ;; 21438 esac ;; 21439 esac 21440 fi 21441 XSLTPROC=$ac_cv_path_XSLTPROC 21442 if test -n "$XSLTPROC"; then 21443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21444 printf '%s\n' "$XSLTPROC" >&6; } 21445 else 21446 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21447 printf '%s\n' "no" >&6; } 21448 fi 21449 21450 21451 if test "x$XSLTPROC" = "x"; then 21452 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 21453 fi 21454 have_xsltproc=yes 21455 elif test "x$use_xsltproc" = x"no" ; then 21456 if test "x$XSLTPROC" != "x"; then 21457 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 21458 printf '%s\n' "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 21459 fi 21460 have_xsltproc=no 21461 else 21462 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 21463 fi 21464 21465 if test "$have_xsltproc" = yes; then 21466 HAVE_XSLTPROC_TRUE= 21467 HAVE_XSLTPROC_FALSE='#' 21468 else 21469 HAVE_XSLTPROC_TRUE='#' 21470 HAVE_XSLTPROC_FALSE= 21471 fi 21472 21473 21474 21475 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 21476 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 21477 XORG_SGML_PATH= 21478 if test -n "$PKG_CONFIG" && \ 21479 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 21480 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 21481 ac_status=$? 21482 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21483 test $ac_status = 0; }; then 21484 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 21485 else 21486 : 21487 21488 fi 21489 21490 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 21491 # the path and the name of the doc stylesheet 21492 if test "x$XORG_SGML_PATH" != "x" ; then 21493 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 21494 printf '%s\n' "$XORG_SGML_PATH" >&6; } 21495 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 21496 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 21497 else 21498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21499 printf '%s\n' "no" >&6; } 21500 fi 21501 21502 21503 21504 21505 if test "x$XSL_STYLESHEET" != "x"; then 21506 HAVE_STYLESHEETS_TRUE= 21507 HAVE_STYLESHEETS_FALSE='#' 21508 else 21509 HAVE_STYLESHEETS_TRUE='#' 21510 HAVE_STYLESHEETS_FALSE= 21511 fi 21512 21513 21514 21515 21516 21517 21518 # Check whether --with-asciidoc was given. 21519 if test ${with_asciidoc+y} 21520 then : 21521 withval=$with_asciidoc; use_asciidoc=$withval 21522 else case e in #( 21523 e) use_asciidoc=auto ;; 21524 esac 21525 fi 21526 21527 21528 21529 if test "x$use_asciidoc" = x"auto"; then 21530 # Extract the first word of "asciidoc", so it can be a program name with args. 21531 set dummy asciidoc; ac_word=$2 21532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21533 printf %s "checking for $ac_word... " >&6; } 21534 if test ${ac_cv_path_ASCIIDOC+y} 21535 then : 21536 printf %s "(cached) " >&6 21537 else case e in #( 21538 e) case $ASCIIDOC in 21539 [\\/]* | ?:[\\/]*) 21540 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 21541 ;; 21542 *) 21543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21544 for as_dir in $PATH 21545 do 21546 IFS=$as_save_IFS 21547 case $as_dir in #((( 21548 '') as_dir=./ ;; 21549 */) ;; 21550 *) as_dir=$as_dir/ ;; 21551 esac 21552 for ac_exec_ext in '' $ac_executable_extensions; do 21553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21554 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext" 21555 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21556 break 2 21557 fi 21558 done 21559 done 21560 IFS=$as_save_IFS 21561 21562 ;; 21563 esac ;; 21564 esac 21565 fi 21566 ASCIIDOC=$ac_cv_path_ASCIIDOC 21567 if test -n "$ASCIIDOC"; then 21568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 21569 printf '%s\n' "$ASCIIDOC" >&6; } 21570 else 21571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21572 printf '%s\n' "no" >&6; } 21573 fi 21574 21575 21576 if test "x$ASCIIDOC" = "x"; then 21577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5 21578 printf '%s\n' "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;} 21579 have_asciidoc=no 21580 else 21581 have_asciidoc=yes 21582 fi 21583 elif test "x$use_asciidoc" = x"yes" ; then 21584 # Extract the first word of "asciidoc", so it can be a program name with args. 21585 set dummy asciidoc; ac_word=$2 21586 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21587 printf %s "checking for $ac_word... " >&6; } 21588 if test ${ac_cv_path_ASCIIDOC+y} 21589 then : 21590 printf %s "(cached) " >&6 21591 else case e in #( 21592 e) case $ASCIIDOC in 21593 [\\/]* | ?:[\\/]*) 21594 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 21595 ;; 21596 *) 21597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21598 for as_dir in $PATH 21599 do 21600 IFS=$as_save_IFS 21601 case $as_dir in #((( 21602 '') as_dir=./ ;; 21603 */) ;; 21604 *) as_dir=$as_dir/ ;; 21605 esac 21606 for ac_exec_ext in '' $ac_executable_extensions; do 21607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21608 ac_cv_path_ASCIIDOC="$as_dir$ac_word$ac_exec_ext" 21609 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21610 break 2 21611 fi 21612 done 21613 done 21614 IFS=$as_save_IFS 21615 21616 ;; 21617 esac ;; 21618 esac 21619 fi 21620 ASCIIDOC=$ac_cv_path_ASCIIDOC 21621 if test -n "$ASCIIDOC"; then 21622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 21623 printf '%s\n' "$ASCIIDOC" >&6; } 21624 else 21625 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21626 printf '%s\n' "no" >&6; } 21627 fi 21628 21629 21630 if test "x$ASCIIDOC" = "x"; then 21631 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5 21632 fi 21633 have_asciidoc=yes 21634 elif test "x$use_asciidoc" = x"no" ; then 21635 if test "x$ASCIIDOC" != "x"; then 21636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5 21637 printf '%s\n' "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;} 21638 fi 21639 have_asciidoc=no 21640 else 21641 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5 21642 fi 21643 if test "$have_asciidoc" = yes; then 21644 # scrape the asciidoc version 21645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5 21646 printf %s "checking the asciidoc version... " >&6; } 21647 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 21648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5 21649 printf '%s\n' "$asciidoc_version" >&6; } 21650 as_arg_v1=$asciidoc_version 21651 as_arg_v2=8.4.5 21652 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 21653 case $? in #( 21654 1) : 21655 if test "x$use_asciidoc" = xauto; then 21656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5 21657 printf '%s\n' "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;} 21658 have_asciidoc=no 21659 else 21660 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5 21661 fi ;; #( 21662 0) : 21663 ;; #( 21664 2) : 21665 ;; #( 21666 *) : 21667 ;; 21668 esac 21669 fi 21670 if test "$have_asciidoc" = yes; then 21671 HAVE_ASCIIDOC_TRUE= 21672 HAVE_ASCIIDOC_FALSE='#' 21673 else 21674 HAVE_ASCIIDOC_TRUE='#' 21675 HAVE_ASCIIDOC_FALSE= 21676 fi 21677 21678 21679 21680 # Check whether --enable-malloc0returnsnull was given. 21681 if test ${enable_malloc0returnsnull+y} 21682 then : 21683 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 21684 else case e in #( 21685 e) MALLOC_ZERO_RETURNS_NULL=yes ;; 21686 esac 21687 fi 21688 21689 21690 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5 21691 printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; } 21692 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 21693 printf '%s\n' "$MALLOC_ZERO_RETURNS_NULL" >&6; } 21694 21695 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 21696 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 21697 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 21698 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 21699 else 21700 MALLOC_ZERO_CFLAGS="" 21701 XMALLOC_ZERO_CFLAGS="" 21702 XTMALLOC_ZERO_CFLAGS="" 21703 fi 21704 21705 21706 21707 21708 21709 21710 # Obtain compiler/linker options for dependencies 21711 21712 pkg_failed=no 21713 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XI" >&5 21714 printf %s "checking for XI... " >&6; } 21715 21716 if test -n "$XI_CFLAGS"; then 21717 pkg_cv_XI_CFLAGS="$XI_CFLAGS" 21718 elif test -n "$PKG_CONFIG"; then 21719 if test -n "$PKG_CONFIG" && \ 21720 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1\""; } >&5 21721 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5 21722 ac_status=$? 21723 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21724 test $ac_status = 0; }; then 21725 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>/dev/null` 21726 test "x$?" != "x0" && pkg_failed=yes 21727 else 21728 pkg_failed=yes 21729 fi 21730 else 21731 pkg_failed=untried 21732 fi 21733 if test -n "$XI_LIBS"; then 21734 pkg_cv_XI_LIBS="$XI_LIBS" 21735 elif test -n "$PKG_CONFIG"; then 21736 if test -n "$PKG_CONFIG" && \ 21737 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1\""; } >&5 21738 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1") 2>&5 21739 ac_status=$? 21740 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21741 test $ac_status = 0; }; then 21742 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>/dev/null` 21743 test "x$?" != "x0" && pkg_failed=yes 21744 else 21745 pkg_failed=yes 21746 fi 21747 else 21748 pkg_failed=untried 21749 fi 21750 21751 21752 21753 if test $pkg_failed = yes; then 21754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21755 printf '%s\n' "no" >&6; } 21756 21757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21758 _pkg_short_errors_supported=yes 21759 else 21760 _pkg_short_errors_supported=no 21761 fi 21762 if test $_pkg_short_errors_supported = yes; then 21763 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>&1` 21764 else 21765 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1" 2>&1` 21766 fi 21767 # Put the nasty error message in config.log where it belongs 21768 echo "$XI_PKG_ERRORS" >&5 21769 21770 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.6 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.3.99.1) were not met: 21771 21772 $XI_PKG_ERRORS 21773 21774 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21775 installed software in a non-standard prefix. 21776 21777 Alternatively, you may set the environment variables XI_CFLAGS 21778 and XI_LIBS to avoid the need to call pkg-config. 21779 See the pkg-config man page for more details." "$LINENO" 5 21780 elif test $pkg_failed = untried; then 21781 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21782 printf '%s\n' "no" >&6; } 21783 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21784 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 21785 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21786 is in your PATH or set the PKG_CONFIG environment variable to the full 21787 path to pkg-config. 21788 21789 Alternatively, you may set the environment variables XI_CFLAGS 21790 and XI_LIBS to avoid the need to call pkg-config. 21791 See the pkg-config man page for more details. 21792 21793 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21794 See 'config.log' for more details" "$LINENO" 5; } 21795 else 21796 XI_CFLAGS=$pkg_cv_XI_CFLAGS 21797 XI_LIBS=$pkg_cv_XI_LIBS 21798 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21799 printf '%s\n' "yes" >&6; } 21800 21801 fi 21802 # CFLAGS only for PointerBarrier typedef 21803 21804 pkg_failed=no 21805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5 21806 printf %s "checking for XFIXES... " >&6; } 21807 21808 if test -n "$XFIXES_CFLAGS"; then 21809 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS" 21810 elif test -n "$PKG_CONFIG"; then 21811 if test -n "$PKG_CONFIG" && \ 21812 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 21813 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 21814 ac_status=$? 21815 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21816 test $ac_status = 0; }; then 21817 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null` 21818 test "x$?" != "x0" && pkg_failed=yes 21819 else 21820 pkg_failed=yes 21821 fi 21822 else 21823 pkg_failed=untried 21824 fi 21825 if test -n "$XFIXES_LIBS"; then 21826 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS" 21827 elif test -n "$PKG_CONFIG"; then 21828 if test -n "$PKG_CONFIG" && \ 21829 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 21830 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 21831 ac_status=$? 21832 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21833 test $ac_status = 0; }; then 21834 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null` 21835 test "x$?" != "x0" && pkg_failed=yes 21836 else 21837 pkg_failed=yes 21838 fi 21839 else 21840 pkg_failed=untried 21841 fi 21842 21843 21844 21845 if test $pkg_failed = yes; then 21846 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21847 printf '%s\n' "no" >&6; } 21848 21849 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21850 _pkg_short_errors_supported=yes 21851 else 21852 _pkg_short_errors_supported=no 21853 fi 21854 if test $_pkg_short_errors_supported = yes; then 21855 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1` 21856 else 21857 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1` 21858 fi 21859 # Put the nasty error message in config.log where it belongs 21860 echo "$XFIXES_PKG_ERRORS" >&5 21861 21862 as_fn_error $? "Package requirements (xfixes >= 5) were not met: 21863 21864 $XFIXES_PKG_ERRORS 21865 21866 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21867 installed software in a non-standard prefix. 21868 21869 Alternatively, you may set the environment variables XFIXES_CFLAGS 21870 and XFIXES_LIBS to avoid the need to call pkg-config. 21871 See the pkg-config man page for more details." "$LINENO" 5 21872 elif test $pkg_failed = untried; then 21873 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5 21874 printf '%s\n' "no" >&6; } 21875 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21876 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 21877 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21878 is in your PATH or set the PKG_CONFIG environment variable to the full 21879 path to pkg-config. 21880 21881 Alternatively, you may set the environment variables XFIXES_CFLAGS 21882 and XFIXES_LIBS to avoid the need to call pkg-config. 21883 See the pkg-config man page for more details. 21884 21885 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21886 See 'config.log' for more details" "$LINENO" 5; } 21887 else 21888 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS 21889 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS 21890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21891 printf '%s\n' "yes" >&6; } 21892 21893 fi 21894 21895 # Check for xmlto and asciidoc for man page conversion 21896 # (only needed by people building tarballs) 21897 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then 21898 have_doctools=yes 21899 else 21900 have_doctools=no 21901 fi 21902 if test $have_doctools = yes; then 21903 HAVE_DOCTOOLS_TRUE= 21904 HAVE_DOCTOOLS_FALSE='#' 21905 else 21906 HAVE_DOCTOOLS_TRUE='#' 21907 HAVE_DOCTOOLS_FALSE= 21908 fi 21909 21910 if test $have_doctools = no; then 21911 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5 21912 printf '%s\n' "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;} 21913 fi 21914 21915 # Determine if the source for man pages is available 21916 # It may already be present (tarball) or can be generated using doctools 21917 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \ 21918 test $have_doctools = yes; then 21919 INSTALL_MANPAGES_TRUE= 21920 INSTALL_MANPAGES_FALSE='#' 21921 else 21922 INSTALL_MANPAGES_TRUE='#' 21923 INSTALL_MANPAGES_FALSE= 21924 fi 21925 21926 21927 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc" 21928 21929 cat >confcache <<\_ACEOF 21930 # This file is a shell script that caches the results of configure 21931 # tests run on this system so they can be shared between configure 21932 # scripts and configure runs, see configure's option --config-cache. 21933 # It is not useful on other systems. If it contains results you don't 21934 # want to keep, you may remove or edit it. 21935 # 21936 # config.status only pays attention to the cache file if you give it 21937 # the --recheck option to rerun configure. 21938 # 21939 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 21940 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 21941 # following values. 21942 21943 _ACEOF 21944 21945 ac_cache_dump | 21946 sed ' 21947 /^ac_cv_env_/b end 21948 t clear 21949 :clear 21950 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 21951 t end 21952 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21953 :end' >>confcache 21954 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21955 if test -w "$cache_file"; then 21956 if test "x$cache_file" != "x/dev/null"; then 21957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21958 printf '%s\n' "$as_me: updating cache $cache_file" >&6;} 21959 if test ! -f "$cache_file" || test -h "$cache_file"; then 21960 cat confcache >"$cache_file" 21961 else 21962 case $cache_file in #( 21963 */* | ?:*) 21964 mv -f confcache "$cache_file"$$ && 21965 mv -f "$cache_file"$$ "$cache_file" ;; #( 21966 *) 21967 mv -f confcache "$cache_file" ;; 21968 esac 21969 fi 21970 fi 21971 else 21972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21973 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;} 21974 fi 21975 fi 21976 rm -f confcache 21977 21978 test "x$prefix" = xNONE && prefix=$ac_default_prefix 21979 # Let make expand exec_prefix. 21980 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21981 21982 DEFS=-DHAVE_CONFIG_H 21983 21984 ac_libobjs= 21985 ac_ltlibobjs= 21986 U= 21987 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21988 # 1. Remove the extension, and $U if already installed. 21989 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21990 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"` 21991 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21992 # will be set to the directory where LIBOBJS objects are built. 21993 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21994 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21995 done 21996 LIBOBJS=$ac_libobjs 21997 21998 LTLIBOBJS=$ac_ltlibobjs 21999 22000 22001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22002 printf %s "checking that generated files are newer than configure... " >&6; } 22003 if test -n "$am_sleep_pid"; then 22004 # Hide warnings about reused PIDs. 22005 wait $am_sleep_pid 2>/dev/null 22006 fi 22007 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5 22008 printf '%s\n' "done" >&6; } 22009 case $enable_silent_rules in # ((( 22010 yes) AM_DEFAULT_VERBOSITY=0;; 22011 no) AM_DEFAULT_VERBOSITY=1;; 22012 esac 22013 if test $am_cv_make_support_nested_variables = yes; then 22014 AM_V='$(V)' 22015 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 22016 else 22017 AM_V=$AM_DEFAULT_VERBOSITY 22018 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 22019 fi 22020 22021 if test -n "$EXEEXT"; then 22022 am__EXEEXT_TRUE= 22023 am__EXEEXT_FALSE='#' 22024 else 22025 am__EXEEXT_TRUE='#' 22026 am__EXEEXT_FALSE= 22027 fi 22028 22029 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22030 as_fn_error $? "conditional \"AMDEP\" was never defined. 22031 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22032 fi 22033 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22034 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22035 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22036 fi 22037 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 22038 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 22039 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22040 fi 22041 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 22042 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 22043 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22044 fi 22045 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 22046 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 22047 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22048 fi 22049 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 22050 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 22051 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22052 fi 22053 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 22054 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 22055 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22056 fi 22057 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 22058 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 22059 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22060 fi 22061 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 22062 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 22063 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22064 fi 22065 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then 22066 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined. 22067 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22068 fi 22069 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then 22070 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined. 22071 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22072 fi 22073 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 22074 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 22075 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22076 fi 22077 22078 : "${CONFIG_STATUS=./config.status}" 22079 case $CONFIG_STATUS in #( 22080 -*) : 22081 CONFIG_STATUS=./$CONFIG_STATUS ;; #( 22082 */*) : 22083 ;; #( 22084 *) : 22085 CONFIG_STATUS=./$CONFIG_STATUS ;; 22086 esac 22087 22088 ac_write_fail=0 22089 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"' 22090 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22091 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;} 22092 as_write_fail=0 22093 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1 22094 #! $SHELL 22095 # Generated by $as_me. 22096 # Run this file to recreate the current configuration. 22097 # Compiler output produced by configure, useful for debugging 22098 # configure, is in config.log if it exists. 22099 22100 debug=false 22101 ac_cs_recheck=false 22102 ac_cs_silent=false 22103 22104 SHELL=\${CONFIG_SHELL-$SHELL} 22105 export SHELL 22106 _ASEOF 22107 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1 22108 ## -------------------- ## 22109 ## M4sh Initialization. ## 22110 ## -------------------- ## 22111 22112 # Be more Bourne compatible 22113 DUALCASE=1; export DUALCASE # for MKS sh 22114 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22115 then : 22116 emulate sh 22117 NULLCMD=: 22118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22119 # contradicts POSIX and common usage. Disable this. 22120 alias -g '${1+"$@"}'='"$@"' 22121 setopt NO_GLOB_SUBST 22122 else case e in #( 22123 e) case `(set -o) 2>/dev/null` in #( 22124 *posix*) : 22125 set -o posix ;; #( 22126 *) : 22127 ;; 22128 esac ;; 22129 esac 22130 fi 22131 22132 22133 22134 # Reset variables that may have inherited troublesome values from 22135 # the environment. 22136 22137 # IFS needs to be set, to space, tab, and newline, in precisely that order. 22138 # (If _AS_PATH_WALK were called with IFS unset, it would have the 22139 # side effect of setting IFS to empty, thus disabling word splitting.) 22140 # Quoting is to prevent editors from complaining about space-tab. 22141 as_nl=' 22142 ' 22143 export as_nl 22144 IFS=" "" $as_nl" 22145 22146 PS1='$ ' 22147 PS2='> ' 22148 PS4='+ ' 22149 22150 # Ensure predictable behavior from utilities with locale-dependent output. 22151 LC_ALL=C 22152 export LC_ALL 22153 LANGUAGE=C 22154 export LANGUAGE 22155 22156 # We cannot yet rely on "unset" to work, but we need these variables 22157 # to be unset--not just set to an empty or harmless value--now, to 22158 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 22159 # also avoids known problems related to "unset" and subshell syntax 22160 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 22161 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 22162 do eval test \${$as_var+y} \ 22163 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22164 done 22165 22166 # Ensure that fds 0, 1, and 2 are open. 22167 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 22168 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 22169 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 22170 22171 # The user is always right. 22172 if ${PATH_SEPARATOR+false} :; then 22173 PATH_SEPARATOR=: 22174 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22175 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22176 PATH_SEPARATOR=';' 22177 } 22178 fi 22179 22180 22181 # Find who we are. Look in the path if we contain no directory separator. 22182 as_myself= 22183 case $0 in #(( 22184 *[\\/]* ) as_myself=$0 ;; 22185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22186 for as_dir in $PATH 22187 do 22188 IFS=$as_save_IFS 22189 case $as_dir in #((( 22190 '') as_dir=./ ;; 22191 */) ;; 22192 *) as_dir=$as_dir/ ;; 22193 esac 22194 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 22195 done 22196 IFS=$as_save_IFS 22197 22198 ;; 22199 esac 22200 # We did not find ourselves, most probably we were run as 'sh COMMAND' 22201 # in which case we are not to be found in the path. 22202 if test "x$as_myself" = x; then 22203 as_myself=$0 22204 fi 22205 if test ! -f "$as_myself"; then 22206 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22207 exit 1 22208 fi 22209 22210 22211 22212 # as_fn_error STATUS ERROR [LINENO LOG_FD] 22213 # ---------------------------------------- 22214 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22215 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22216 # script with STATUS, using 1 if that was 0. 22217 as_fn_error () 22218 { 22219 as_status=$1; test $as_status -eq 0 && as_status=1 22220 if test "$4"; then 22221 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22222 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22223 fi 22224 printf '%s\n' "$as_me: error: $2" >&2 22225 as_fn_exit $as_status 22226 } # as_fn_error 22227 22228 22229 # as_fn_set_status STATUS 22230 # ----------------------- 22231 # Set $? to STATUS, without forking. 22232 as_fn_set_status () 22233 { 22234 return $1 22235 } # as_fn_set_status 22236 22237 # as_fn_exit STATUS 22238 # ----------------- 22239 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22240 as_fn_exit () 22241 { 22242 set +e 22243 as_fn_set_status $1 22244 exit $1 22245 } # as_fn_exit 22246 22247 # as_fn_unset VAR 22248 # --------------- 22249 # Portably unset VAR. 22250 as_fn_unset () 22251 { 22252 { eval $1=; unset $1;} 22253 } 22254 as_unset=as_fn_unset 22255 22256 # as_fn_append VAR VALUE 22257 # ---------------------- 22258 # Append the text in VALUE to the end of the definition contained in VAR. Take 22259 # advantage of any shell optimizations that allow amortized linear growth over 22260 # repeated appends, instead of the typical quadratic growth present in naive 22261 # implementations. 22262 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 22263 then : 22264 eval 'as_fn_append () 22265 { 22266 eval $1+=\$2 22267 }' 22268 else case e in #( 22269 e) as_fn_append () 22270 { 22271 eval $1=\$$1\$2 22272 } ;; 22273 esac 22274 fi # as_fn_append 22275 22276 # as_fn_arith ARG... 22277 # ------------------ 22278 # Perform arithmetic evaluation on the ARGs, and store the result in the 22279 # global $as_val. Take advantage of shells that can avoid forks. The arguments 22280 # must be portable across $(()) and expr. 22281 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 22282 then : 22283 eval 'as_fn_arith () 22284 { 22285 as_val=$(( $* )) 22286 }' 22287 else case e in #( 22288 e) as_fn_arith () 22289 { 22290 as_val=`expr "$@" || test $? -eq 1` 22291 } ;; 22292 esac 22293 fi # as_fn_arith 22294 22295 22296 if expr a : '\(a\)' >/dev/null 2>&1 && 22297 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22298 as_expr=expr 22299 else 22300 as_expr=false 22301 fi 22302 22303 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22304 as_basename=basename 22305 else 22306 as_basename=false 22307 fi 22308 22309 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22310 as_dirname=dirname 22311 else 22312 as_dirname=false 22313 fi 22314 22315 as_me=`$as_basename -- "$0" || 22316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22317 X"$0" : 'X\(//\)$' \| \ 22318 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22319 printf '%s\n' X/"$0" | 22320 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22321 s//\1/ 22322 q 22323 } 22324 /^X\/\(\/\/\)$/{ 22325 s//\1/ 22326 q 22327 } 22328 /^X\/\(\/\).*/{ 22329 s//\1/ 22330 q 22331 } 22332 s/.*/./; q'` 22333 22334 # Avoid depending upon Character Ranges. 22335 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22336 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22337 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22338 as_cr_digits='0123456789' 22339 as_cr_alnum=$as_cr_Letters$as_cr_digits 22340 22341 rm -f conf$$ conf$$.exe conf$$.file 22342 if test -d conf$$.dir; then 22343 rm -f conf$$.dir/conf$$.file 22344 else 22345 rm -f conf$$.dir 22346 mkdir conf$$.dir 2>/dev/null 22347 fi 22348 if (echo >conf$$.file) 2>/dev/null; then 22349 if ln -s conf$$.file conf$$ 2>/dev/null; then 22350 as_ln_s='ln -s' 22351 # ... but there are two gotchas: 22352 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 22353 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 22354 # In both cases, we have to default to 'cp -pR'. 22355 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22356 as_ln_s='cp -pR' 22357 elif ln conf$$.file conf$$ 2>/dev/null; then 22358 as_ln_s=ln 22359 else 22360 as_ln_s='cp -pR' 22361 fi 22362 else 22363 as_ln_s='cp -pR' 22364 fi 22365 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22366 rmdir conf$$.dir 2>/dev/null 22367 22368 22369 # as_fn_mkdir_p 22370 # ------------- 22371 # Create "$as_dir" as a directory, including parents if necessary. 22372 as_fn_mkdir_p () 22373 { 22374 22375 case $as_dir in #( 22376 -*) as_dir=./$as_dir;; 22377 esac 22378 test -d "$as_dir" || eval $as_mkdir_p || { 22379 as_dirs= 22380 while :; do 22381 case $as_dir in #( 22382 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22383 *) as_qdir=$as_dir;; 22384 esac 22385 as_dirs="'$as_qdir' $as_dirs" 22386 as_dir=`$as_dirname -- "$as_dir" || 22387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22388 X"$as_dir" : 'X\(//\)[^/]' \| \ 22389 X"$as_dir" : 'X\(//\)$' \| \ 22390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22391 printf '%s\n' X"$as_dir" | 22392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22393 s//\1/ 22394 q 22395 } 22396 /^X\(\/\/\)[^/].*/{ 22397 s//\1/ 22398 q 22399 } 22400 /^X\(\/\/\)$/{ 22401 s//\1/ 22402 q 22403 } 22404 /^X\(\/\).*/{ 22405 s//\1/ 22406 q 22407 } 22408 s/.*/./; q'` 22409 test -d "$as_dir" && break 22410 done 22411 test -z "$as_dirs" || eval "mkdir $as_dirs" 22412 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22413 22414 22415 } # as_fn_mkdir_p 22416 if mkdir -p . 2>/dev/null; then 22417 as_mkdir_p='mkdir -p "$as_dir"' 22418 else 22419 test -d ./-p && rmdir ./-p 22420 as_mkdir_p=false 22421 fi 22422 22423 22424 # as_fn_executable_p FILE 22425 # ----------------------- 22426 # Test if FILE is an executable regular file. 22427 as_fn_executable_p () 22428 { 22429 test -f "$1" && test -x "$1" 22430 } # as_fn_executable_p 22431 as_test_x='test -x' 22432 as_executable_p=as_fn_executable_p 22433 22434 # Sed expression to map a string onto a valid CPP name. 22435 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22436 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 22437 22438 # Sed expression to map a string onto a valid variable name. 22439 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22440 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 22441 22442 22443 exec 6>&1 22444 ## ------------------------------------- ## 22445 ## Main body of "$CONFIG_STATUS" script. ## 22446 ## ------------------------------------- ## 22447 _ASEOF 22448 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1 22449 22450 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 22451 # Save the log message, to keep $0 and so on meaningful, and to 22452 # report actual input values of CONFIG_FILES etc. instead of their 22453 # values after options handling. 22454 ac_log=" 22455 This file was extended by libXi $as_me 1.8.4, which was 22456 generated by GNU Autoconf 2.73. Invocation command line was 22457 22458 CONFIG_FILES = $CONFIG_FILES 22459 CONFIG_HEADERS = $CONFIG_HEADERS 22460 CONFIG_LINKS = $CONFIG_LINKS 22461 CONFIG_COMMANDS = $CONFIG_COMMANDS 22462 $ $0 $@ 22463 22464 on `(hostname || uname -n) 2>/dev/null | sed 1q` 22465 " 22466 22467 _ACEOF 22468 22469 case $ac_config_files in *" 22470 "*) set x $ac_config_files; shift; ac_config_files=$*;; 22471 esac 22472 22473 case $ac_config_headers in *" 22474 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22475 esac 22476 22477 22478 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 22479 # Files that config.status was made for. 22480 config_files="$ac_config_files" 22481 config_headers="$ac_config_headers" 22482 config_commands="$ac_config_commands" 22483 22484 _ACEOF 22485 22486 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 22487 ac_cs_usage="\ 22488 '$as_me' instantiates files and other configuration actions 22489 from templates according to the current configuration. Unless the files 22490 and actions are specified as TAGs, all are instantiated by default. 22491 22492 Usage: $0 [OPTION]... [TAG]... 22493 22494 -h, --help print this help, then exit 22495 -V, --version print version number and configuration settings, then exit 22496 --config print configuration, then exit 22497 -q, --quiet, --silent 22498 do not print progress messages 22499 -d, --debug don't remove temporary files 22500 --recheck update $as_me by reconfiguring in the same conditions 22501 --file=FILE[:TEMPLATE] 22502 instantiate the configuration file FILE 22503 --header=FILE[:TEMPLATE] 22504 instantiate the configuration header FILE 22505 22506 Configuration files: 22507 $config_files 22508 22509 Configuration headers: 22510 $config_headers 22511 22512 Configuration commands: 22513 $config_commands 22514 22515 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXi/-/issues>." 22516 22517 _ACEOF 22518 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"` 22519 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 22520 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 22521 ac_cs_config='$ac_cs_config_escaped' 22522 ac_cs_version="\\ 22523 libXi config.status 1.8.4 22524 configured by $0, generated by GNU Autoconf 2.73, 22525 with options \\"\$ac_cs_config\\" 22526 22527 Copyright (C) 2026 Free Software Foundation, Inc. 22528 This config.status script is free software; the Free Software Foundation 22529 gives unlimited permission to copy, distribute and modify it." 22530 22531 ac_pwd='$ac_pwd' 22532 srcdir='$srcdir' 22533 INSTALL='$INSTALL' 22534 MKDIR_P='$MKDIR_P' 22535 AWK='$AWK' 22536 test -n "\$AWK" || { 22537 awk '' </dev/null || 22538 as_fn_error \$? "try installing gawk" 22539 AWK=awk 22540 } 22541 _ACEOF 22542 22543 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 22544 # The default lists apply if the user does not specify any file. 22545 ac_need_defaults=: 22546 while test $# != 0 22547 do 22548 case $1 in 22549 --*=?*) 22550 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22551 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22552 ac_shift=: 22553 ;; 22554 --*=) 22555 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22556 ac_optarg= 22557 ac_shift=: 22558 ;; 22559 *) 22560 ac_option=$1 22561 ac_optarg=$2 22562 ac_shift=shift 22563 ;; 22564 esac 22565 22566 case $ac_option in 22567 # Handling of the options. 22568 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22569 ac_cs_recheck=: ;; 22570 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22571 printf '%s\n' "$ac_cs_version"; exit ;; 22572 --config | --confi | --conf | --con | --co | --c ) 22573 printf '%s\n' "$ac_cs_config"; exit ;; 22574 --debug | --debu | --deb | --de | --d | -d ) 22575 debug=: ;; 22576 --file | --fil | --fi | --f ) 22577 $ac_shift 22578 case $ac_optarg in 22579 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22580 '') as_fn_error $? "missing file argument" ;; 22581 esac 22582 as_fn_append CONFIG_FILES " '$ac_optarg'" 22583 ac_need_defaults=false;; 22584 --header | --heade | --head | --hea ) 22585 $ac_shift 22586 case $ac_optarg in 22587 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22588 esac 22589 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22590 ac_need_defaults=false;; 22591 --he | --h) 22592 # Conflict between --help and --header 22593 as_fn_error $? "ambiguous option: '$1' 22594 Try '$0 --help' for more information.";; 22595 --help | --hel | -h ) 22596 printf '%s\n' "$ac_cs_usage"; exit ;; 22597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22598 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22599 ac_cs_silent=: ;; 22600 22601 # This is an error. 22602 -*) as_fn_error $? "unrecognized option: '$1' 22603 Try '$0 --help' for more information." ;; 22604 22605 *) as_fn_append ac_config_targets " $1" 22606 ac_need_defaults=false ;; 22607 22608 esac 22609 shift 22610 done 22611 22612 ac_configure_extra_args= 22613 22614 if $ac_cs_silent; then 22615 exec 6>/dev/null 22616 ac_configure_extra_args="$ac_configure_extra_args --silent" 22617 fi 22618 22619 _ACEOF 22620 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 22621 if \$ac_cs_recheck; then 22622 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22623 shift 22624 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6 22625 CONFIG_SHELL='$SHELL' 22626 export CONFIG_SHELL 22627 exec "\$@" 22628 fi 22629 22630 _ACEOF 22631 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 22632 exec 5>>config.log 22633 { 22634 echo 22635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22636 ## Running $as_me. ## 22637 _ASBOX 22638 printf '%s\n' "$ac_log" 22639 } >&5 22640 22641 _ACEOF 22642 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 22643 # 22644 # INIT-COMMANDS 22645 # 22646 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22647 22648 22649 # The HP-UX ksh and POSIX shell print the target directory to stdout 22650 # if CDPATH is set. 22651 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22652 22653 sed_quote_subst='$sed_quote_subst' 22654 double_quote_subst='$double_quote_subst' 22655 delay_variable_subst='$delay_variable_subst' 22656 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22657 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22658 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22659 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22660 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22661 enable_cxx_stdlib='`$ECHO "$enable_cxx_stdlib" | $SED "$delay_single_quote_subst"`' 22662 stdlibflag='`$ECHO "$stdlibflag" | $SED "$delay_single_quote_subst"`' 22663 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22664 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22665 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22666 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22667 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22668 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22669 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22670 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22671 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22672 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22673 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22674 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22675 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22676 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22677 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22678 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22679 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22680 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22681 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22682 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22683 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22684 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22685 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22686 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22687 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22688 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22689 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22690 lt_cv_cygpath_installed='`$ECHO "$lt_cv_cygpath_installed" | $SED "$delay_single_quote_subst"`' 22691 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22692 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22693 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 22694 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22695 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22696 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22697 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22698 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22699 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22700 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22701 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22702 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 22703 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22704 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22705 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22706 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22707 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22708 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22709 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22710 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22711 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22712 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22713 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22714 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22715 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22716 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22717 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22718 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22719 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 22720 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22721 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22722 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22723 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22724 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22725 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22726 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22727 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22728 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22729 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22730 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22731 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22732 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22733 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22734 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22735 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22736 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22737 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22738 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22739 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22740 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22741 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22742 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22743 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22744 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22745 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22746 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22747 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22748 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22749 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22750 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22751 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22752 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22753 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22754 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22755 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22756 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22757 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22758 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22759 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22760 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22761 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22762 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22763 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22764 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22765 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22766 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22767 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22768 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22769 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22770 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22771 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22772 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22773 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22774 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22775 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22776 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22777 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22778 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22779 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22780 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22781 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22782 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22783 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22784 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22785 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22786 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22787 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22788 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22789 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22790 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22791 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22792 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22793 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22794 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22795 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22796 22797 LTCC='$LTCC' 22798 LTCFLAGS='$LTCFLAGS' 22799 compiler='$compiler_DEFAULT' 22800 22801 # A function that is used when there is no print builtin or printf. 22802 func_fallback_echo () 22803 { 22804 eval 'cat <<_LTECHO_EOF 22805 \$1 22806 _LTECHO_EOF' 22807 } 22808 22809 # Quote evaled strings. 22810 for var in SHELL \ 22811 ECHO \ 22812 PATH_SEPARATOR \ 22813 SED \ 22814 GREP \ 22815 EGREP \ 22816 FGREP \ 22817 LD \ 22818 NM \ 22819 LN_S \ 22820 lt_SP2NL \ 22821 lt_NL2SP \ 22822 reload_flag \ 22823 FILECMD \ 22824 OBJDUMP \ 22825 deplibs_check_method \ 22826 file_magic_cmd \ 22827 file_magic_glob \ 22828 want_nocaseglob \ 22829 DLLTOOL \ 22830 sharedlib_from_linklib_cmd \ 22831 AR \ 22832 lt_ar_flags \ 22833 archiver_list_spec \ 22834 STRIP \ 22835 RANLIB \ 22836 CC \ 22837 CFLAGS \ 22838 compiler \ 22839 lt_cv_sys_global_symbol_pipe \ 22840 lt_cv_sys_global_symbol_to_cdecl \ 22841 lt_cv_sys_global_symbol_to_import \ 22842 lt_cv_sys_global_symbol_to_c_name_address \ 22843 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22844 lt_cv_nm_interface \ 22845 nm_file_list_spec \ 22846 lt_cv_truncate_bin \ 22847 lt_prog_compiler_no_builtin_flag \ 22848 lt_prog_compiler_pic \ 22849 lt_prog_compiler_wl \ 22850 lt_prog_compiler_static \ 22851 lt_cv_prog_compiler_c_o \ 22852 need_locks \ 22853 MANIFEST_TOOL \ 22854 DSYMUTIL \ 22855 NMEDIT \ 22856 LIPO \ 22857 OTOOL \ 22858 OTOOL64 \ 22859 shrext_cmds \ 22860 export_dynamic_flag_spec \ 22861 whole_archive_flag_spec \ 22862 compiler_needs_object \ 22863 with_gnu_ld \ 22864 allow_undefined_flag \ 22865 no_undefined_flag \ 22866 hardcode_libdir_flag_spec \ 22867 hardcode_libdir_separator \ 22868 exclude_expsyms \ 22869 include_expsyms \ 22870 file_list_spec \ 22871 variables_saved_for_relink \ 22872 libname_spec \ 22873 library_names_spec \ 22874 soname_spec \ 22875 install_override_mode \ 22876 finish_eval \ 22877 old_striplib \ 22878 striplib; do 22879 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22880 *[\\\\\\\`\\"\\\$]*) 22881 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22882 ;; 22883 *) 22884 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22885 ;; 22886 esac 22887 done 22888 22889 # Double-quote double-evaled strings. 22890 for var in reload_cmds \ 22891 old_postinstall_cmds \ 22892 old_postuninstall_cmds \ 22893 old_archive_cmds \ 22894 extract_expsyms_cmds \ 22895 old_archive_from_new_cmds \ 22896 old_archive_from_expsyms_cmds \ 22897 archive_cmds \ 22898 archive_expsym_cmds \ 22899 module_cmds \ 22900 module_expsym_cmds \ 22901 export_symbols_cmds \ 22902 prelink_cmds \ 22903 postlink_cmds \ 22904 postinstall_cmds \ 22905 postuninstall_cmds \ 22906 finish_cmds \ 22907 sys_lib_search_path_spec \ 22908 configure_time_dlsearch_path \ 22909 configure_time_lt_sys_library_path; do 22910 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22911 *[\\\\\\\`\\"\\\$]*) 22912 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22913 ;; 22914 *) 22915 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22916 ;; 22917 esac 22918 done 22919 22920 ac_aux_dir='$ac_aux_dir' 22921 22922 # See if we are running on zsh, and set the options that allow our 22923 # commands through without removal of \ escapes INIT. 22924 if test -n "\${ZSH_VERSION+set}"; then 22925 setopt NO_GLOB_SUBST 22926 fi 22927 22928 22929 PACKAGE='$PACKAGE' 22930 VERSION='$VERSION' 22931 RM='$RM' 22932 ofile='$ofile' 22933 22934 22935 22936 22937 _ACEOF 22938 22939 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 22940 22941 # Handling of arguments. 22942 for ac_config_target in $ac_config_targets 22943 do 22944 case $ac_config_target in 22945 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 22946 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22947 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22948 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22949 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22950 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22951 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 22952 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;; 22953 22954 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 22955 esac 22956 done 22957 22958 22959 # If the user did not use the arguments to specify the items to instantiate, 22960 # then the envvar interface is used. Set only those that are not. 22961 # We use the long form for the default assignment because of an extremely 22962 # bizarre bug on SunOS 4.1.3. 22963 if $ac_need_defaults; then 22964 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 22965 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 22966 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 22967 fi 22968 22969 # Have a temporary directory for convenience. Make it in the build tree 22970 # simply because there is no reason against having it here, and in addition, 22971 # creating and moving files from /tmp can sometimes cause problems. 22972 # Hook for its removal unless debugging. 22973 # Note that there is a small window in which the directory will not be cleaned: 22974 # after its creation but before its name has been assigned to '$tmp'. 22975 $debug || 22976 { 22977 tmp= ac_tmp= 22978 trap 'exit_status=$? 22979 : "${ac_tmp:=$tmp}" 22980 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22981 ' 0 22982 trap 'as_fn_exit 1' 1 2 13 15 22983 } 22984 # Create a (secure) tmp directory for tmp files. 22985 22986 { 22987 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22988 test -d "$tmp" 22989 } || 22990 { 22991 tmp=./conf$$-$RANDOM 22992 (umask 077 && mkdir "$tmp") 22993 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22994 ac_tmp=$tmp 22995 22996 # Set up the scripts for CONFIG_FILES section. 22997 # No need to generate them if there are no CONFIG_FILES. 22998 # This happens for instance with './config.status config.h'. 22999 if test -n "$CONFIG_FILES"; then 23000 23001 23002 ac_cr=`echo X | tr X '\015'` 23003 # On cygwin, bash can eat \r inside `` if the user requested igncr. 23004 # But we know of no other shell where ac_cr would be empty at this 23005 # point, so we can use a bashism as a fallback. 23006 if test "x$ac_cr" = x; then 23007 eval ac_cr=\$\'\\r\' 23008 fi 23009 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23010 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23011 ac_cs_awk_cr='\\r' 23012 else 23013 ac_cs_awk_cr=$ac_cr 23014 fi 23015 23016 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23017 _ACEOF 23018 23019 23020 { 23021 echo "cat >conf$$subs.awk <<_ACEOF" && 23022 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23023 echo "_ACEOF" 23024 } >conf$$subs.sh || 23025 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23026 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='` 23027 ac_delim='%!_!# ' 23028 for ac_last_try in false false false false false :; do 23029 . ./conf$$subs.sh || 23030 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23031 23032 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='` 23033 if test $ac_delim_n = $ac_delim_num; then 23034 break 23035 elif $ac_last_try; then 23036 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23037 else 23038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23039 fi 23040 done 23041 rm -f conf$$subs.sh 23042 23043 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 23044 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23045 _ACEOF 23046 sed -n ' 23047 h 23048 s/^/S["/; s/!.*/"]=/ 23049 p 23050 g 23051 s/^[^!]*!// 23052 :repl 23053 t repl 23054 s/'"$ac_delim"'$// 23055 t delim 23056 :nl 23057 h 23058 s/\(.\{148\}\)..*/\1/ 23059 t more1 23060 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23061 p 23062 n 23063 b repl 23064 :more1 23065 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23066 p 23067 g 23068 s/.\{148\}// 23069 t nl 23070 :delim 23071 h 23072 s/\(.\{148\}\)..*/\1/ 23073 t more2 23074 s/["\\]/\\&/g; s/^/"/; s/$/"/ 23075 p 23076 b 23077 :more2 23078 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23079 p 23080 g 23081 s/.\{148\}// 23082 t delim 23083 ' <conf$$subs.awk | sed ' 23084 /^[^""]/{ 23085 N 23086 s/\n// 23087 } 23088 ' >>"$CONFIG_STATUS" || ac_write_fail=1 23089 rm -f conf$$subs.awk 23090 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 23091 _ACAWK 23092 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23093 for (key in S) S_is_set[key] = 1 23094 FS = "" 23095 23096 } 23097 { 23098 line = $ 0 23099 nfields = split(line, field, "@") 23100 substed = 0 23101 len = length(field[1]) 23102 for (i = 2; i < nfields; i++) { 23103 key = field[i] 23104 keylen = length(key) 23105 if (S_is_set[key]) { 23106 value = S[key] 23107 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23108 len += length(value) + length(field[++i]) 23109 substed = 1 23110 } else 23111 len += 1 + keylen 23112 } 23113 23114 print line 23115 } 23116 23117 _ACAWK 23118 _ACEOF 23119 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 23120 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23121 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23122 else 23123 cat 23124 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23125 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23126 _ACEOF 23127 23128 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23129 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23130 # trailing colons and then remove the whole line if VPATH becomes empty 23131 # (actually we leave an empty line to preserve line numbers). 23132 if test "x$srcdir" = x.; then 23133 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23134 h 23135 s/// 23136 s/^/:/ 23137 s/[ ]*$/:/ 23138 s/:\$(srcdir):/:/g 23139 s/:\${srcdir}:/:/g 23140 s/:@srcdir@:/:/g 23141 s/^:*// 23142 s/:*$// 23143 x 23144 s/\(=[ ]*\).*/\1/ 23145 G 23146 s/\n// 23147 s/^[^=]*=[ ]*$// 23148 }' 23149 fi 23150 23151 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 23152 fi # test -n "$CONFIG_FILES" 23153 23154 # Set up the scripts for CONFIG_HEADERS section. 23155 # No need to generate them if there are no CONFIG_HEADERS. 23156 # This happens for instance with './config.status Makefile'. 23157 if test -n "$CONFIG_HEADERS"; then 23158 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23159 BEGIN { 23160 _ACEOF 23161 23162 # Transform confdefs.h into an awk script 'defines.awk', embedded as 23163 # here-document in config.status, that substitutes the proper values into 23164 # config.h.in to produce config.h. 23165 23166 # Create a delimiter string that does not exist in confdefs.h, to ease 23167 # handling of long lines. 23168 ac_delim='%!_!# ' 23169 for ac_last_try in false false :; do 23170 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23171 if test -z "$ac_tt"; then 23172 break 23173 elif $ac_last_try; then 23174 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23175 else 23176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23177 fi 23178 done 23179 23180 # For the awk script, D is an array of macro values keyed by name, 23181 # likewise P contains macro parameters if any. Preserve backslash 23182 # newline sequences. 23183 23184 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23185 sed -n ' 23186 s/.\{148\}/&'"$ac_delim"'/g 23187 t rset 23188 :rset 23189 s/^[ ]*#[ ]*define[ ][ ]*/ / 23190 t def 23191 d 23192 :def 23193 s/\\$// 23194 t bsnl 23195 s/["\\]/\\&/g 23196 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23197 D["\1"]=" \3"/p 23198 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23199 d 23200 :bsnl 23201 s/["\\]/\\&/g 23202 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23203 D["\1"]=" \3\\\\\\n"\\/p 23204 t cont 23205 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23206 t cont 23207 d 23208 :cont 23209 n 23210 s/.\{148\}/&'"$ac_delim"'/g 23211 t clear 23212 :clear 23213 s/\\$// 23214 t bsnlc 23215 s/["\\]/\\&/g; s/^/"/; s/$/"/p 23216 d 23217 :bsnlc 23218 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23219 b cont 23220 ' <confdefs.h | sed ' 23221 s/'"$ac_delim"'/"\\\ 23222 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1 23223 23224 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 23225 for (key in D) D_is_set[key] = 1 23226 FS = "" 23227 } 23228 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23229 line = \$ 0 23230 split(line, arg, " ") 23231 if (arg[1] == "#") { 23232 defundef = arg[2] 23233 mac1 = arg[3] 23234 } else { 23235 defundef = substr(arg[1], 2) 23236 mac1 = arg[2] 23237 } 23238 split(mac1, mac2, "(") #) 23239 macro = mac2[1] 23240 prefix = substr(line, 1, index(line, defundef) - 1) 23241 if (D_is_set[macro]) { 23242 suffix = P[macro] D[macro] 23243 while (suffix ~ /[\t ]$/) { 23244 suffix = substr(suffix, 1, length(suffix) - 1) 23245 } 23246 # Preserve the white space surrounding the "#". 23247 print prefix "define", macro suffix 23248 next 23249 } else { 23250 # Replace #undef with comments. This is necessary, for example, 23251 # in the case of _POSIX_SOURCE, which is predefined and required 23252 # on some systems where configure will not decide to define it. 23253 if (defundef == "undef") { 23254 print "/*", prefix defundef, macro, "*/" 23255 next 23256 } 23257 } 23258 } 23259 { print } 23260 _ACAWK 23261 _ACEOF 23262 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 23263 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23264 fi # test -n "$CONFIG_HEADERS" 23265 23266 23267 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23268 shift 23269 for ac_tag 23270 do 23271 case $ac_tag in 23272 :[FHLC]) ac_mode=$ac_tag; continue;; 23273 esac 23274 case $ac_mode$ac_tag in 23275 :[FHL]*:*);; 23276 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 23277 :[FH]-) ac_tag=-:-;; 23278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23279 esac 23280 ac_save_IFS=$IFS 23281 IFS=: 23282 set x $ac_tag 23283 IFS=$ac_save_IFS 23284 shift 23285 ac_file=$1 23286 shift 23287 23288 case $ac_mode in 23289 :L) ac_source=$1;; 23290 :[FH]) 23291 ac_file_inputs= 23292 for ac_f 23293 do 23294 case $ac_f in 23295 -) ac_f="$ac_tmp/stdin";; 23296 *) # Look for the file first in the build tree, then in the source tree 23297 # (if the path is not absolute). The absolute path cannot be DOS-style, 23298 # because $ac_f cannot contain ':'. 23299 test -f "$ac_f" || 23300 case $ac_f in 23301 [\\/$]*) false;; 23302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23303 esac || 23304 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 23305 esac 23306 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23307 as_fn_append ac_file_inputs " '$ac_f'" 23308 done 23309 23310 # Let's still pretend it is 'configure' which instantiates (i.e., don't 23311 # use $as_me), people would be surprised to read: 23312 # /* config.h. Generated by config.status. */ 23313 configure_input='Generated from '` 23314 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23315 `' by configure.' 23316 if test x"$ac_file" != x-; then 23317 configure_input="$ac_file. $configure_input" 23318 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23319 printf '%s\n' "$as_me: creating $ac_file" >&6;} 23320 fi 23321 # Neutralize special characters interpreted by sed in replacement strings. 23322 case $configure_input in #( 23323 *\&* | *\|* | *\\* ) 23324 ac_sed_conf_input=`printf '%s\n' "$configure_input" | 23325 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23326 *) ac_sed_conf_input=$configure_input;; 23327 esac 23328 23329 case $ac_tag in 23330 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23332 esac 23333 ;; 23334 esac 23335 23336 ac_dir=`$as_dirname -- "$ac_file" || 23337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23338 X"$ac_file" : 'X\(//\)[^/]' \| \ 23339 X"$ac_file" : 'X\(//\)$' \| \ 23340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23341 printf '%s\n' X"$ac_file" | 23342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23343 s//\1/ 23344 q 23345 } 23346 /^X\(\/\/\)[^/].*/{ 23347 s//\1/ 23348 q 23349 } 23350 /^X\(\/\/\)$/{ 23351 s//\1/ 23352 q 23353 } 23354 /^X\(\/\).*/{ 23355 s//\1/ 23356 q 23357 } 23358 s/.*/./; q'` 23359 as_dir="$ac_dir"; as_fn_mkdir_p 23360 ac_builddir=. 23361 23362 case "$ac_dir" in 23363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23364 *) 23365 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'` 23366 # A ".." for each directory in $ac_dir_suffix. 23367 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23368 case $ac_top_builddir_sub in 23369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23371 esac ;; 23372 esac 23373 ac_abs_top_builddir=$ac_pwd 23374 ac_abs_builddir=$ac_pwd$ac_dir_suffix 23375 # for backward compatibility: 23376 ac_top_builddir=$ac_top_build_prefix 23377 23378 case $srcdir in 23379 .) # We are building in place. 23380 ac_srcdir=. 23381 ac_top_srcdir=$ac_top_builddir_sub 23382 ac_abs_top_srcdir=$ac_pwd ;; 23383 [\\/]* | ?:[\\/]* ) # Absolute name. 23384 ac_srcdir=$srcdir$ac_dir_suffix; 23385 ac_top_srcdir=$srcdir 23386 ac_abs_top_srcdir=$srcdir ;; 23387 *) # Relative name. 23388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23389 ac_top_srcdir=$ac_top_build_prefix$srcdir 23390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23391 esac 23392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23393 23394 23395 case $ac_mode in 23396 :F) 23397 # 23398 # CONFIG_FILE 23399 # 23400 23401 case $INSTALL in 23402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23404 esac 23405 ac_MKDIR_P=$MKDIR_P 23406 case $MKDIR_P in 23407 [\\/$]* | ?:[\\/]* ) ;; 23408 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23409 esac 23410 _ACEOF 23411 23412 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 23413 # If the template does not know about datarootdir, expand it. 23414 # FIXME: This hack should be removed a few years after 2.60. 23415 ac_datarootdir_hack=; ac_datarootdir_seen= 23416 ac_sed_dataroot=' 23417 /datarootdir/ { 23418 p 23419 q 23420 } 23421 /@datadir@/p 23422 /@docdir@/p 23423 /@infodir@/p 23424 /@localedir@/p 23425 /@mandir@/p' 23426 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23427 *datarootdir*) ac_datarootdir_seen=yes;; 23428 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23429 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23430 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23431 _ACEOF 23432 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 23433 ac_datarootdir_hack=' 23434 s&@datadir@&$datadir&g 23435 s&@docdir@&$docdir&g 23436 s&@infodir@&$infodir&g 23437 s&@localedir@&$localedir&g 23438 s&@mandir@&$mandir&g 23439 s&\\\${datarootdir}&$datarootdir&g' ;; 23440 esac 23441 _ACEOF 23442 23443 # Neutralize VPATH when '$srcdir' = '.'. 23444 # Shell code in configure.ac might set extrasub. 23445 # FIXME: do we really want to maintain this feature? 23446 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1 23447 ac_sed_extra="$ac_vpsub 23448 $extrasub 23449 _ACEOF 23450 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1 23451 :t 23452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23453 s|@configure_input@|$ac_sed_conf_input|;t t 23454 s&@top_builddir@&$ac_top_builddir_sub&;t t 23455 s&@top_build_prefix@&$ac_top_build_prefix&;t t 23456 s&@srcdir@&$ac_srcdir&;t t 23457 s&@abs_srcdir@&$ac_abs_srcdir&;t t 23458 s&@top_srcdir@&$ac_top_srcdir&;t t 23459 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23460 s&@builddir@&$ac_builddir&;t t 23461 s&@abs_builddir@&$ac_abs_builddir&;t t 23462 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23463 s&@INSTALL@&$ac_INSTALL&;t t 23464 s&@MKDIR_P@&$ac_MKDIR_P&;t t 23465 $ac_datarootdir_hack 23466 " 23467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23468 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23469 23470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23471 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23473 "$ac_tmp/out"`; test -z "$ac_out"; } && 23474 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23475 which seems to be undefined. Please make sure it is defined" >&5 23476 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23477 which seems to be undefined. Please make sure it is defined" >&2;} 23478 23479 rm -f "$ac_tmp/stdin" 23480 case $ac_file in 23481 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23482 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23483 esac \ 23484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23485 ;; 23486 :H) 23487 # 23488 # CONFIG_HEADER 23489 # 23490 if test x"$ac_file" != x-; then 23491 { 23492 printf '%s\n' "/* $configure_input */" >&1 \ 23493 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23494 } >"$ac_tmp/config.h" \ 23495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23496 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23498 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;} 23499 else 23500 rm -f "$ac_file" 23501 mv "$ac_tmp/config.h" "$ac_file" \ 23502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23503 fi 23504 else 23505 printf '%s\n' "/* $configure_input */" >&1 \ 23506 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23507 || as_fn_error $? "could not create -" "$LINENO" 5 23508 fi 23509 # Compute "$ac_file"'s index in $config_headers. 23510 _am_arg="$ac_file" 23511 _am_stamp_count=1 23512 for _am_header in $config_headers :; do 23513 case $_am_header in 23514 $_am_arg | $_am_arg:* ) 23515 break ;; 23516 * ) 23517 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23518 esac 23519 done 23520 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23521 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23522 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23523 X"$_am_arg" : 'X\(//\)$' \| \ 23524 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23525 printf '%s\n' X"$_am_arg" | 23526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23527 s//\1/ 23528 q 23529 } 23530 /^X\(\/\/\)[^/].*/{ 23531 s//\1/ 23532 q 23533 } 23534 /^X\(\/\/\)$/{ 23535 s//\1/ 23536 q 23537 } 23538 /^X\(\/\).*/{ 23539 s//\1/ 23540 q 23541 } 23542 s/.*/./; q'`/stamp-h$_am_stamp_count 23543 ;; 23544 23545 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23546 printf '%s\n' "$as_me: executing $ac_file commands" >&6;} 23547 ;; 23548 esac 23549 23550 23551 case $ac_file$ac_mode in 23552 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23553 # Older Autoconf quotes --file arguments for eval, but not when files 23554 # are listed without --file. Let's play safe and only enable the eval 23555 # if we detect the quoting. 23556 # TODO: see whether this extra hack can be removed once we start 23557 # requiring Autoconf 2.70 or later. 23558 case $CONFIG_FILES in #( 23559 *\'*) : 23560 eval set x "$CONFIG_FILES" ;; #( 23561 *) : 23562 set x $CONFIG_FILES ;; #( 23563 *) : 23564 ;; 23565 esac 23566 shift 23567 # Used to flag and report bootstrapping failures. 23568 am_rc=0 23569 for am_mf 23570 do 23571 # Strip MF so we end up with the name of the file. 23572 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'` 23573 # Check whether this is an Automake generated Makefile which includes 23574 # dependency-tracking related rules and includes. 23575 # Grep'ing the whole file directly is not great: AIX grep has a line 23576 # limit of 2048, but all sed's we know have understand at least 4000. 23577 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23578 || continue 23579 am_dirpart=`$as_dirname -- "$am_mf" || 23580 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23581 X"$am_mf" : 'X\(//\)[^/]' \| \ 23582 X"$am_mf" : 'X\(//\)$' \| \ 23583 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23584 printf '%s\n' X"$am_mf" | 23585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23586 s//\1/ 23587 q 23588 } 23589 /^X\(\/\/\)[^/].*/{ 23590 s//\1/ 23591 q 23592 } 23593 /^X\(\/\/\)$/{ 23594 s//\1/ 23595 q 23596 } 23597 /^X\(\/\).*/{ 23598 s//\1/ 23599 q 23600 } 23601 s/.*/./; q'` 23602 am_filepart=`$as_basename -- "$am_mf" || 23603 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23604 X"$am_mf" : 'X\(//\)$' \| \ 23605 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23606 printf '%s\n' X/"$am_mf" | 23607 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23608 s//\1/ 23609 q 23610 } 23611 /^X\/\(\/\/\)$/{ 23612 s//\1/ 23613 q 23614 } 23615 /^X\/\(\/\).*/{ 23616 s//\1/ 23617 q 23618 } 23619 s/.*/./; q'` 23620 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23621 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23622 | $MAKE -f - am--depfiles" >&5 23623 (cd "$am_dirpart" \ 23624 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23625 | $MAKE -f - am--depfiles) >&5 2>&5 23626 ac_status=$? 23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23628 (exit $ac_status); } || am_rc=$? 23629 done 23630 if test $am_rc -ne 0; then 23631 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23632 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;} 23633 as_fn_error $? "Something went wrong bootstrapping makefile fragments 23634 for automatic dependency tracking. If GNU make was not used, consider 23635 re-running the configure script with MAKE=\"gmake\" (or whatever is 23636 necessary). You can also try re-running configure with the 23637 '--disable-dependency-tracking' option to at least be able to build 23638 the package (albeit without support for automatic dependency tracking). 23639 See 'config.log' for more details" "$LINENO" 5; } 23640 fi 23641 { am_dirpart=; unset am_dirpart;} 23642 { am_filepart=; unset am_filepart;} 23643 { am_mf=; unset am_mf;} 23644 { am_rc=; unset am_rc;} 23645 rm -f conftest-deps.mk 23646 } 23647 ;; 23648 "libtool":C) 23649 23650 # See if we are running on zsh, and set the options that allow our 23651 # commands through without removal of \ escapes. 23652 if test -n "${ZSH_VERSION+set}"; then 23653 setopt NO_GLOB_SUBST 23654 fi 23655 23656 cfgfile=${ofile}T 23657 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23658 $RM "$cfgfile" 23659 23660 cat <<_LT_EOF >> "$cfgfile" 23661 #! $SHELL 23662 # Generated automatically by $as_me ($PACKAGE) $VERSION 23663 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 23664 23665 # Provide generalized library-building support services. 23666 # Written by Gordon Matzigkeit, 1996 23667 23668 # Copyright (C) 2025-2026 Free Software Foundation, Inc. 23669 # This is free software; see the source for copying conditions. There is NO 23670 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23671 23672 # GNU Libtool is free software; you can redistribute it and/or modify 23673 # it under the terms of the GNU General Public License as published by 23674 # the Free Software Foundation; either version 2 of the License, or 23675 # (at your option) any later version. 23676 # 23677 # As a special exception to the GNU General Public License, if you 23678 # distribute this file as part of a program or library that is built 23679 # using GNU Libtool, you may include this file under the same 23680 # distribution terms that you use for the rest of that program. 23681 # 23682 # GNU Libtool is distributed in the hope that it will be useful, but 23683 # WITHOUT ANY WARRANTY; without even the implied warranty of 23684 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23685 # GNU General Public License for more details. 23686 # 23687 # You should have received a copy of the GNU General Public License 23688 # along with this program. If not, see <https://www.gnu.org/licenses/>. 23689 23690 23691 # The names of the tagged configurations supported by this script. 23692 available_tags='' 23693 23694 # Configured defaults for sys_lib_dlsearch_path munging. 23695 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23696 23697 # ### BEGIN LIBTOOL CONFIG 23698 23699 # Which release of libtool.m4 was used? 23700 macro_version=$macro_version 23701 macro_revision=$macro_revision 23702 23703 # Whether or not to build shared libraries. 23704 build_libtool_libs=$enable_shared 23705 23706 # Whether or not to build static libraries. 23707 build_old_libs=$enable_static 23708 23709 # What type of objects to build. 23710 pic_mode=$pic_mode 23711 23712 # Whether to let the compiler frontend decide what standard libraries to link when building C++ shared libraries and modules. 23713 enable_cxx_stdlib=$enable_cxx_stdlib 23714 23715 # Flag used for specifying not to link standard libraries. 23716 stdlibflag=$stdlibflag 23717 23718 # Whether or not to optimize for fast installation. 23719 fast_install=$enable_fast_install 23720 23721 # Shared archive member basename,for filename based shared library versioning on AIX. 23722 shared_archive_member_spec=$shared_archive_member_spec 23723 23724 # Shell to use when invoking shell scripts. 23725 SHELL=$lt_SHELL 23726 23727 # An echo program that protects backslashes. 23728 ECHO=$lt_ECHO 23729 23730 # The PATH separator for the build system. 23731 PATH_SEPARATOR=$lt_PATH_SEPARATOR 23732 23733 # The host system. 23734 host_alias=$host_alias 23735 host=$host 23736 host_os=$host_os 23737 23738 # The build system. 23739 build_alias=$build_alias 23740 build=$build 23741 build_os=$build_os 23742 23743 # A sed program that does not truncate output. 23744 SED=$lt_SED 23745 23746 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 23747 Xsed="\$SED -e 1s/^X//" 23748 23749 # A grep program that handles long lines. 23750 GREP=$lt_GREP 23751 23752 # An ERE matcher. 23753 EGREP=$lt_EGREP 23754 23755 # A literal string matcher. 23756 FGREP=$lt_FGREP 23757 23758 # A BSD- or MS-compatible name lister. 23759 NM=$lt_NM 23760 23761 # Whether we need soft or hard links. 23762 LN_S=$lt_LN_S 23763 23764 # What is the maximum length of a command? 23765 max_cmd_len=$max_cmd_len 23766 23767 # Object file suffix (normally "o"). 23768 objext=$ac_objext 23769 23770 # Executable file suffix (normally ""). 23771 exeext=$exeext 23772 23773 # whether the shell understands "unset". 23774 lt_unset=$lt_unset 23775 23776 # turn spaces into newlines. 23777 SP2NL=$lt_lt_SP2NL 23778 23779 # turn newlines into spaces. 23780 NL2SP=$lt_lt_NL2SP 23781 23782 # convert \$build file names to \$host format. 23783 to_host_file_cmd=$lt_cv_to_host_file_cmd 23784 23785 # convert \$build files to toolchain format. 23786 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23787 23788 # whether cygpath is installed. 23789 cygpath_installed=$lt_cv_cygpath_installed 23790 23791 # A file(cmd) program that detects file types. 23792 FILECMD=$lt_FILECMD 23793 23794 # An object symbol dumper. 23795 OBJDUMP=$lt_OBJDUMP 23796 23797 # Method to check whether dependent libraries are shared objects. 23798 deplibs_check_method=$lt_deplibs_check_method 23799 23800 # Command to use when deplibs_check_method = "file_magic". 23801 file_magic_cmd=$lt_file_magic_cmd 23802 23803 # How to find potential files when deplibs_check_method = "file_magic". 23804 file_magic_glob=$lt_file_magic_glob 23805 23806 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23807 want_nocaseglob=$lt_want_nocaseglob 23808 23809 # DLL creation program. 23810 DLLTOOL=$lt_DLLTOOL 23811 23812 # Command to associate shared and link libraries. 23813 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23814 23815 # The archiver. 23816 AR=$lt_AR 23817 23818 # Flags to create an archive (by configure). 23819 lt_ar_flags=$lt_lt_ar_flags 23820 23821 # Flags to create an archive. 23822 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 23823 23824 # How to feed a file listing to the archiver. 23825 archiver_list_spec=$lt_archiver_list_spec 23826 23827 # A symbol stripping program. 23828 STRIP=$lt_STRIP 23829 23830 # Commands used to install an old-style archive. 23831 RANLIB=$lt_RANLIB 23832 old_postinstall_cmds=$lt_old_postinstall_cmds 23833 old_postuninstall_cmds=$lt_old_postuninstall_cmds 23834 23835 # Whether to use a lock for old archive extraction. 23836 lock_old_archive_extraction=$lock_old_archive_extraction 23837 23838 # A C compiler. 23839 LTCC=$lt_CC 23840 23841 # LTCC compiler flags. 23842 LTCFLAGS=$lt_CFLAGS 23843 23844 # Take the output of nm and produce a listing of raw symbols and C names. 23845 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23846 23847 # Transform the output of nm in a proper C declaration. 23848 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23849 23850 # Transform the output of nm into a list of symbols to manually relocate. 23851 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23852 23853 # Transform the output of nm in a C name address pair. 23854 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23855 23856 # Transform the output of nm in a C name address pair when lib prefix is needed. 23857 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23858 23859 # The name lister interface. 23860 nm_interface=$lt_lt_cv_nm_interface 23861 23862 # Specify filename containing input files for \$NM. 23863 nm_file_list_spec=$lt_nm_file_list_spec 23864 23865 # The root where to search for dependent libraries,and where our libraries should be installed. 23866 lt_sysroot=$lt_sysroot 23867 23868 # Command to truncate a binary pipe. 23869 lt_truncate_bin=$lt_lt_cv_truncate_bin 23870 23871 # The name of the directory that contains temporary libtool files. 23872 objdir=$objdir 23873 23874 # Used to examine libraries when file_magic_cmd begins with "file". 23875 MAGIC_CMD=$MAGIC_CMD 23876 23877 # Must we lock files when doing compilation? 23878 need_locks=$lt_need_locks 23879 23880 # Manifest tool. 23881 MANIFEST_TOOL=$lt_MANIFEST_TOOL 23882 23883 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23884 DSYMUTIL=$lt_DSYMUTIL 23885 23886 # Tool to change global to local symbols on Mac OS X. 23887 NMEDIT=$lt_NMEDIT 23888 23889 # Tool to manipulate fat objects and archives on Mac OS X. 23890 LIPO=$lt_LIPO 23891 23892 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 23893 OTOOL=$lt_OTOOL 23894 23895 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23896 OTOOL64=$lt_OTOOL64 23897 23898 # Old archive suffix (normally "a"). 23899 libext=$libext 23900 23901 # Shared library suffix (normally ".so"). 23902 shrext_cmds=$lt_shrext_cmds 23903 23904 # The commands to extract the exported symbol list from a shared archive. 23905 extract_expsyms_cmds=$lt_extract_expsyms_cmds 23906 23907 # Variables whose values should be saved in libtool wrapper scripts and 23908 # restored at link time. 23909 variables_saved_for_relink=$lt_variables_saved_for_relink 23910 23911 # Do we need the "lib" prefix for modules? 23912 need_lib_prefix=$need_lib_prefix 23913 23914 # Do we need a version for libraries? 23915 need_version=$need_version 23916 23917 # Library versioning type. 23918 version_type=$version_type 23919 23920 # Shared library runtime path variable. 23921 runpath_var=$runpath_var 23922 23923 # Shared library path variable. 23924 shlibpath_var=$shlibpath_var 23925 23926 # Is shlibpath searched before the hard-coded library search path? 23927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23928 23929 # Format of library name prefix. 23930 libname_spec=$lt_libname_spec 23931 23932 # List of archive names. First name is the real one, the rest are links. 23933 # The last name is the one that the linker finds with -lNAME 23934 library_names_spec=$lt_library_names_spec 23935 23936 # The coded name of the library, if different from the real name. 23937 soname_spec=$lt_soname_spec 23938 23939 # Permission mode override for installation of shared libraries. 23940 install_override_mode=$lt_install_override_mode 23941 23942 # Command to use after installation of a shared archive. 23943 postinstall_cmds=$lt_postinstall_cmds 23944 23945 # Command to use after uninstallation of a shared archive. 23946 postuninstall_cmds=$lt_postuninstall_cmds 23947 23948 # Commands used to finish a libtool library installation in a directory. 23949 finish_cmds=$lt_finish_cmds 23950 23951 # As "finish_cmds", except a single script fragment to be evaled but 23952 # not shown. 23953 finish_eval=$lt_finish_eval 23954 23955 # Whether we should hardcode library paths into libraries. 23956 hardcode_into_libs=$hardcode_into_libs 23957 23958 # Compile-time system search path for libraries. 23959 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23960 23961 # Detected run-time system search path for libraries. 23962 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23963 23964 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23965 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23966 23967 # Whether dlopen is supported. 23968 dlopen_support=$enable_dlopen 23969 23970 # Whether dlopen of programs is supported. 23971 dlopen_self=$enable_dlopen_self 23972 23973 # Whether dlopen of statically linked programs is supported. 23974 dlopen_self_static=$enable_dlopen_self_static 23975 23976 # Commands to strip libraries. 23977 old_striplib=$lt_old_striplib 23978 striplib=$lt_striplib 23979 23980 23981 # The linker used to build libraries. 23982 LD=$lt_LD 23983 23984 # How to create reloadable object files. 23985 reload_flag=$lt_reload_flag 23986 reload_cmds=$lt_reload_cmds 23987 23988 # Commands used to build an old-style archive. 23989 old_archive_cmds=$lt_old_archive_cmds 23990 23991 # A language specific compiler. 23992 CC=$lt_compiler 23993 23994 # Is the compiler the GNU compiler? 23995 with_gcc=$GCC 23996 23997 # Compiler flag to turn off builtin functions. 23998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23999 24000 # Additional compiler flags for building library objects. 24001 pic_flag=$lt_lt_prog_compiler_pic 24002 24003 # How to pass a linker flag through the compiler. 24004 wl=$lt_lt_prog_compiler_wl 24005 24006 # Compiler flag to prevent dynamic linking. 24007 link_static_flag=$lt_lt_prog_compiler_static 24008 24009 # Does compiler simultaneously support -c and -o options? 24010 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24011 24012 # Whether or not to add -lc for building shared libraries. 24013 build_libtool_need_lc=$archive_cmds_need_lc 24014 24015 # Whether or not to disallow shared libs when runtime libs are static. 24016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24017 24018 # Compiler flag to allow reflexive dlopens. 24019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24020 24021 # Compiler flag to generate shared objects directly from archives. 24022 whole_archive_flag_spec=$lt_whole_archive_flag_spec 24023 24024 # Whether the compiler copes with passing no objects directly. 24025 compiler_needs_object=$lt_compiler_needs_object 24026 24027 # Create an old-style archive from a shared archive. 24028 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24029 24030 # Create a temporary old-style archive to link instead of a shared archive. 24031 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24032 24033 # Commands used to build a shared archive. 24034 archive_cmds=$lt_archive_cmds 24035 archive_expsym_cmds=$lt_archive_expsym_cmds 24036 24037 # Commands used to build a loadable module if different from building 24038 # a shared archive. 24039 module_cmds=$lt_module_cmds 24040 module_expsym_cmds=$lt_module_expsym_cmds 24041 24042 # Whether we are building with GNU ld or not. 24043 with_gnu_ld=$lt_with_gnu_ld 24044 24045 # Flag that allows shared libraries with undefined symbols to be built. 24046 allow_undefined_flag=$lt_allow_undefined_flag 24047 24048 # Flag that enforces no undefined symbols. 24049 no_undefined_flag=$lt_no_undefined_flag 24050 24051 # Flag to hardcode \$libdir into a binary during linking. 24052 # This must work even if \$libdir does not exist 24053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24054 24055 # Whether we need a single "-rpath" flag with a separated argument. 24056 hardcode_libdir_separator=$lt_hardcode_libdir_separator 24057 24058 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24059 # DIR into the resulting binary. 24060 hardcode_direct=$hardcode_direct 24061 24062 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24063 # DIR into the resulting binary and the resulting library dependency is 24064 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 24065 # library is relocated. 24066 hardcode_direct_absolute=$hardcode_direct_absolute 24067 24068 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24069 # into the resulting binary. 24070 hardcode_minus_L=$hardcode_minus_L 24071 24072 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24073 # into the resulting binary. 24074 hardcode_shlibpath_var=$hardcode_shlibpath_var 24075 24076 # Set to "yes" if building a shared library automatically hardcodes DIR 24077 # into the library and all subsequent libraries and executables linked 24078 # against it. 24079 hardcode_automatic=$hardcode_automatic 24080 24081 # Set to yes if linker adds runtime paths of dependent libraries 24082 # to runtime path list. 24083 inherit_rpath=$inherit_rpath 24084 24085 # Whether libtool must link a program against all its dependency libraries. 24086 link_all_deplibs=$link_all_deplibs 24087 24088 # Set to "yes" if exported symbols are required. 24089 always_export_symbols=$always_export_symbols 24090 24091 # The commands to list exported symbols. 24092 export_symbols_cmds=$lt_export_symbols_cmds 24093 24094 # Symbols that should not be listed in the preloaded symbols. 24095 exclude_expsyms=$lt_exclude_expsyms 24096 24097 # Symbols that must always be exported. 24098 include_expsyms=$lt_include_expsyms 24099 24100 # Commands necessary for linking programs (against libraries) with templates. 24101 prelink_cmds=$lt_prelink_cmds 24102 24103 # Commands necessary for finishing linking programs. 24104 postlink_cmds=$lt_postlink_cmds 24105 24106 # Specify filename containing input files. 24107 file_list_spec=$lt_file_list_spec 24108 24109 # How to hardcode a shared library path into an executable. 24110 hardcode_action=$hardcode_action 24111 24112 # ### END LIBTOOL CONFIG 24113 24114 _LT_EOF 24115 24116 cat <<'_LT_EOF' >> "$cfgfile" 24117 24118 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24119 24120 # func_munge_path_list VARIABLE PATH 24121 # ----------------------------------- 24122 # VARIABLE is name of variable containing _space_ separated list of 24123 # directories to be munged by the contents of PATH, which is string 24124 # having a format: 24125 # "DIR[:DIR]:" 24126 # string "DIR[ DIR]" will be prepended to VARIABLE 24127 # ":DIR[:DIR]" 24128 # string "DIR[ DIR]" will be appended to VARIABLE 24129 # "DIRP[:DIRP]::[DIRA:]DIRA" 24130 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24131 # "DIRA[ DIRA]" will be appended to VARIABLE 24132 # "DIR[:DIR]" 24133 # VARIABLE will be replaced by "DIR[ DIR]" 24134 func_munge_path_list () 24135 { 24136 case x$2 in 24137 x) 24138 ;; 24139 *:) 24140 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24141 ;; 24142 x:*) 24143 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24144 ;; 24145 *::*) 24146 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24147 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24148 ;; 24149 *) 24150 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24151 ;; 24152 esac 24153 } 24154 24155 24156 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24157 func_cc_basename () 24158 { 24159 for cc_temp in $*""; do 24160 case $cc_temp in 24161 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24162 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24163 \-*) ;; 24164 *) break;; 24165 esac 24166 done 24167 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24168 } 24169 24170 24171 # ### END FUNCTIONS SHARED WITH CONFIGURE 24172 24173 _LT_EOF 24174 24175 case $host_os in 24176 aix3*) 24177 cat <<\_LT_EOF >> "$cfgfile" 24178 # AIX sometimes has problems with the GCC collect2 program. For some 24179 # reason, if we set the COLLECT_NAMES environment variable, the problems 24180 # vanish in a puff of smoke. 24181 if test set != "${COLLECT_NAMES+set}"; then 24182 COLLECT_NAMES= 24183 export COLLECT_NAMES 24184 fi 24185 _LT_EOF 24186 ;; 24187 esac 24188 24189 24190 24191 ltmain=$ac_aux_dir/ltmain.sh 24192 24193 24194 # We use sed instead of cat because bash on DJGPP gets confused if 24195 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24196 # text mode, it properly converts lines to CR/LF. This bash problem 24197 # is reportedly fixed, but why not run on old versions too? 24198 $SED '$q' "$ltmain" >> "$cfgfile" \ 24199 || (rm -f "$cfgfile"; exit 1) 24200 24201 mv -f "$cfgfile" "$ofile" || 24202 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24203 chmod +x "$ofile" 24204 24205 ;; 24206 24207 esac 24208 done # for ac_tag 24209 24210 24211 as_fn_exit 0 24212 _ACEOF 24213 ac_clean_CONFIG_STATUS= 24214 24215 test $ac_write_fail = 0 || 24216 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24217 24218 24219 # configure is writing to config.log, and then calls config.status. 24220 # config.status does its own redirection, appending to config.log. 24221 # Unfortunately, on DOS this fails, as config.log is still kept open 24222 # by configure, so config.status won't be able to write to it; its 24223 # output is simply discarded. So we exec the FD to /dev/null, 24224 # effectively closing config.log, so it can be properly (re)opened and 24225 # appended to by config.status. When coming back to configure, we 24226 # need to make the FD available again. 24227 if test "$no_create" != yes; then 24228 ac_cs_success=: 24229 case $CONFIG_STATUS in #( 24230 -*) : 24231 ac_no_opts=-- ;; #( 24232 *) : 24233 ac_no_opts= ;; 24234 esac 24235 ac_config_status_args= 24236 test "$silent" = yes && 24237 ac_config_status_args="$ac_config_status_args --quiet" 24238 exec 5>/dev/null 24239 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args || 24240 ac_cs_success=false 24241 exec 5>>config.log 24242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24243 # would make configure fail if this is the last instruction. 24244 $ac_cs_success || as_fn_exit 1 24245 fi 24246 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24248 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24249 fi 24250 24251 24252