1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libXrender 0.9.12. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed 'exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195 test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197 then : 198 as_have_required=yes 199 else case e in #( 200 e) as_have_required=no ;; 201 esac 202 fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204 then : 205 206 else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208 as_found=false 209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210 do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225 then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228 then : 229 break 2 230 fi 231 fi 232 done;; 233 esac 234 as_found=false 235 done 236 IFS=$as_save_IFS 237 if $as_found 238 then : 239 240 else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243 then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245 fi ;; 246 esac 247 fi 248 249 250 if test "x$CONFIG_SHELL" != x 251 then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254 # neutralization value for shells without unset; and this also 255 # works around shells that cannot unset nonexistent variables. 256 # Preserve -v and -x to the replacement shell. 257 BASH_ENV=/dev/null 258 ENV=/dev/null 259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260 case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265 esac 266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267 # Admittedly, this is quite paranoid, since all the known shells bail 268 # out after a failed 'exec'. 269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270 exit 255 271 fi 272 273 if test x$as_have_required = xno 274 then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 282 $0: https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues 283 $0: about your system, including any error possibly output 284 $0: before this message. Then install a modern shell, or 285 $0: manually run the script under such a shell if you do 286 $0: have one." 287 fi 288 exit 1 289 fi ;; 290 esac 291 fi 292 fi 293 SHELL=${CONFIG_SHELL-/bin/sh} 294 export SHELL 295 # Unset more variables known to interfere with behavior of common tools. 296 CLICOLOR_FORCE= GREP_OPTIONS= 297 unset CLICOLOR_FORCE GREP_OPTIONS 298 299 ## --------------------- ## 300 ## M4sh Shell Functions. ## 301 ## --------------------- ## 302 # as_fn_unset VAR 303 # --------------- 304 # Portably unset VAR. 305 as_fn_unset () 306 { 307 { eval $1=; unset $1;} 308 } 309 as_unset=as_fn_unset 310 311 312 # as_fn_set_status STATUS 313 # ----------------------- 314 # Set $? to STATUS, without forking. 315 as_fn_set_status () 316 { 317 return $1 318 } # as_fn_set_status 319 320 # as_fn_exit STATUS 321 # ----------------- 322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323 as_fn_exit () 324 { 325 set +e 326 as_fn_set_status $1 327 exit $1 328 } # as_fn_exit 329 330 # as_fn_mkdir_p 331 # ------------- 332 # Create "$as_dir" as a directory, including parents if necessary. 333 as_fn_mkdir_p () 334 { 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352 printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376 } # as_fn_mkdir_p 377 378 # as_fn_executable_p FILE 379 # ----------------------- 380 # Test if FILE is an executable regular file. 381 as_fn_executable_p () 382 { 383 test -f "$1" && test -x "$1" 384 } # as_fn_executable_p 385 # as_fn_append VAR VALUE 386 # ---------------------- 387 # Append the text in VALUE to the end of the definition contained in VAR. Take 388 # advantage of any shell optimizations that allow amortized linear growth over 389 # repeated appends, instead of the typical quadratic growth present in naive 390 # implementations. 391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392 then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397 else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402 esac 403 fi # as_fn_append 404 405 # as_fn_arith ARG... 406 # ------------------ 407 # Perform arithmetic evaluation on the ARGs, and store the result in the 408 # global $as_val. Take advantage of shells that can avoid forks. The arguments 409 # must be portable across $(()) and expr. 410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411 then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416 else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421 esac 422 fi # as_fn_arith 423 424 425 # as_fn_error STATUS ERROR [LINENO LOG_FD] 426 # ---------------------------------------- 427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429 # script with STATUS, using 1 if that was 0. 430 as_fn_error () 431 { 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439 } # as_fn_error 440 441 if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444 else 445 as_expr=false 446 fi 447 448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450 else 451 as_basename=false 452 fi 453 454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456 else 457 as_dirname=false 458 fi 459 460 as_me=`$as_basename -- "$0" || 461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464 printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479 # Avoid depending upon Character Ranges. 480 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483 as_cr_digits='0123456789' 484 as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522 } 523 524 525 # Determine whether it's possible to make 'echo' print without a newline. 526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527 # for compatibility with existing Makefiles. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `echo -n x` in #((((( 530 -n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537 *) 538 ECHO_N='-n';; 539 esac 540 541 # For backward compatibility with old third-party macros, we provide 542 # the shell variables $as_echo and $as_echo_n. New code should use 543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 rm -f conf$$ conf$$.exe conf$$.file 548 if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550 else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553 fi 554 if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568 else 569 as_ln_s='cp -pR' 570 fi 571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572 rmdir conf$$.dir 2>/dev/null 573 574 if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576 else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579 fi 580 581 as_test_x='test -x' 582 as_executable_p=as_fn_executable_p 583 584 # Sed expression to map a string onto a valid CPP name. 585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588 # Sed expression to map a string onto a valid variable name. 589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592 SHELL=${CONFIG_SHELL-/bin/sh} 593 594 595 test -n "$DJDIR" || exec 7<&0 </dev/null 596 exec 6>&1 597 598 # Name of the host. 599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 600 # so uname gets run too. 601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 602 603 # 604 # Initializations. 605 # 606 ac_default_prefix=/usr/local 607 ac_clean_files= 608 ac_config_libobj_dir=. 609 LIBOBJS= 610 cross_compiling=no 611 subdirs= 612 MFLAGS= 613 MAKEFLAGS= 614 615 # Identity of this package. 616 PACKAGE_NAME='libXrender' 617 PACKAGE_TARNAME='libXrender' 618 PACKAGE_VERSION='0.9.12' 619 PACKAGE_STRING='libXrender 0.9.12' 620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues' 621 PACKAGE_URL='' 622 623 ac_unique_file="Makefile.am" 624 # Factoring default headers for most tests. 625 ac_includes_default="\ 626 #include <stddef.h> 627 #ifdef HAVE_STDIO_H 628 # include <stdio.h> 629 #endif 630 #ifdef HAVE_STDLIB_H 631 # include <stdlib.h> 632 #endif 633 #ifdef HAVE_STRING_H 634 # include <string.h> 635 #endif 636 #ifdef HAVE_INTTYPES_H 637 # include <inttypes.h> 638 #endif 639 #ifdef HAVE_STDINT_H 640 # include <stdint.h> 641 #endif 642 #ifdef HAVE_STRINGS_H 643 # include <strings.h> 644 #endif 645 #ifdef HAVE_SYS_TYPES_H 646 # include <sys/types.h> 647 #endif 648 #ifdef HAVE_SYS_STAT_H 649 # include <sys/stat.h> 650 #endif 651 #ifdef HAVE_UNISTD_H 652 # include <unistd.h> 653 #endif" 654 655 ac_header_c_list= 656 ac_subst_vars='am__EXEEXT_FALSE 657 am__EXEEXT_TRUE 658 LTLIBOBJS 659 LIBOBJS 660 RENDER_LIBS 661 RENDER_CFLAGS 662 RENDER_VERSION 663 XTMALLOC_ZERO_CFLAGS 664 XMALLOC_ZERO_CFLAGS 665 MALLOC_ZERO_CFLAGS 666 MAN_SUBSTS 667 XORG_MAN_PAGE 668 ADMIN_MAN_DIR 669 DRIVER_MAN_DIR 670 MISC_MAN_DIR 671 FILE_MAN_DIR 672 LIB_MAN_DIR 673 APP_MAN_DIR 674 ADMIN_MAN_SUFFIX 675 DRIVER_MAN_SUFFIX 676 MISC_MAN_SUFFIX 677 FILE_MAN_SUFFIX 678 LIB_MAN_SUFFIX 679 APP_MAN_SUFFIX 680 INSTALL_CMD 681 PKG_CONFIG_LIBDIR 682 PKG_CONFIG_PATH 683 PKG_CONFIG 684 CHANGELOG_CMD 685 STRICT_CFLAGS 686 CWARNFLAGS 687 BASE_CFLAGS 688 LT_SYS_LIBRARY_PATH 689 OTOOL64 690 OTOOL 691 LIPO 692 NMEDIT 693 DSYMUTIL 694 MANIFEST_TOOL 695 RANLIB 696 ac_ct_AR 697 AR 698 DLLTOOL 699 OBJDUMP 700 FILECMD 701 LN_S 702 NM 703 ac_ct_DUMPBIN 704 DUMPBIN 705 LD 706 FGREP 707 EGREP 708 GREP 709 SED 710 am__fastdepCC_FALSE 711 am__fastdepCC_TRUE 712 CCDEPMODE 713 am__nodep 714 AMDEPBACKSLASH 715 AMDEP_FALSE 716 AMDEP_TRUE 717 am__include 718 DEPDIR 719 OBJEXT 720 EXEEXT 721 ac_ct_CC 722 CPPFLAGS 723 LDFLAGS 724 CFLAGS 725 CC 726 host_os 727 host_vendor 728 host_cpu 729 host 730 build_os 731 build_vendor 732 build_cpu 733 build 734 LIBTOOL 735 am__xargs_n 736 am__rm_f_notfound 737 AM_BACKSLASH 738 AM_DEFAULT_VERBOSITY 739 AM_DEFAULT_V 740 AM_V 741 CSCOPE 742 ETAGS 743 CTAGS 744 am__untar 745 am__tar 746 AMTAR 747 am__leading_dot 748 SET_MAKE 749 AWK 750 mkdir_p 751 MKDIR_P 752 INSTALL_STRIP_PROGRAM 753 STRIP 754 install_sh 755 MAKEINFO 756 AUTOHEADER 757 AUTOMAKE 758 AUTOCONF 759 ACLOCAL 760 VERSION 761 PACKAGE 762 CYGPATH_W 763 am__isrc 764 INSTALL_DATA 765 INSTALL_SCRIPT 766 INSTALL_PROGRAM 767 PACKAGE_BRIEF 768 target_alias 769 host_alias 770 build_alias 771 LIBS 772 ECHO_T 773 ECHO_N 774 ECHO_C 775 DEFS 776 mandir 777 localedir 778 libdir 779 psdir 780 pdfdir 781 dvidir 782 htmldir 783 infodir 784 docdir 785 oldincludedir 786 includedir 787 runstatedir 788 localstatedir 789 sharedstatedir 790 sysconfdir 791 datadir 792 datarootdir 793 libexecdir 794 sbindir 795 bindir 796 program_transform_name 797 prefix 798 exec_prefix 799 PACKAGE_URL 800 PACKAGE_BUGREPORT 801 PACKAGE_STRING 802 PACKAGE_VERSION 803 PACKAGE_TARNAME 804 PACKAGE_NAME 805 PATH_SEPARATOR 806 SHELL 807 am__quote' 808 ac_subst_files='' 809 ac_user_opts=' 810 enable_option_checking 811 enable_silent_rules 812 enable_shared 813 enable_static 814 enable_pic 815 with_pic 816 enable_fast_install 817 enable_aix_soname 818 with_aix_soname 819 enable_dependency_tracking 820 with_gnu_ld 821 with_sysroot 822 enable_libtool_lock 823 enable_selective_werror 824 enable_strict_compilation 825 enable_malloc0returnsnull 826 ' 827 ac_precious_vars='build_alias 828 host_alias 829 target_alias 830 CC 831 CFLAGS 832 LDFLAGS 833 LIBS 834 CPPFLAGS 835 LT_SYS_LIBRARY_PATH 836 PKG_CONFIG 837 PKG_CONFIG_PATH 838 PKG_CONFIG_LIBDIR 839 RENDER_CFLAGS 840 RENDER_LIBS' 841 842 843 # Initialize some variables set by options. 844 ac_init_help= 845 ac_init_version=false 846 ac_unrecognized_opts= 847 ac_unrecognized_sep= 848 # The variables have the same names as the options, with 849 # dashes changed to underlines. 850 cache_file=/dev/null 851 exec_prefix=NONE 852 no_create= 853 no_recursion= 854 prefix=NONE 855 program_prefix=NONE 856 program_suffix=NONE 857 program_transform_name=s,x,x, 858 silent= 859 site= 860 srcdir= 861 verbose= 862 x_includes=NONE 863 x_libraries=NONE 864 865 # Installation directory options. 866 # These are left unexpanded so users can "make install exec_prefix=/foo" 867 # and all the variables that are supposed to be based on exec_prefix 868 # by default will actually change. 869 # Use braces instead of parens because sh, perl, etc. also accept them. 870 # (The list follows the same order as the GNU Coding Standards.) 871 bindir='${exec_prefix}/bin' 872 sbindir='${exec_prefix}/sbin' 873 libexecdir='${exec_prefix}/libexec' 874 datarootdir='${prefix}/share' 875 datadir='${datarootdir}' 876 sysconfdir='${prefix}/etc' 877 sharedstatedir='${prefix}/com' 878 localstatedir='${prefix}/var' 879 runstatedir='${localstatedir}/run' 880 includedir='${prefix}/include' 881 oldincludedir='/usr/include' 882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 883 infodir='${datarootdir}/info' 884 htmldir='${docdir}' 885 dvidir='${docdir}' 886 pdfdir='${docdir}' 887 psdir='${docdir}' 888 libdir='${exec_prefix}/lib' 889 localedir='${datarootdir}/locale' 890 mandir='${datarootdir}/man' 891 892 ac_prev= 893 ac_dashdash= 894 for ac_option 895 do 896 # If the previous option needs an argument, assign it. 897 if test -n "$ac_prev"; then 898 eval $ac_prev=\$ac_option 899 ac_prev= 900 continue 901 fi 902 903 case $ac_option in 904 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 905 *=) ac_optarg= ;; 906 *) ac_optarg=yes ;; 907 esac 908 909 case $ac_dashdash$ac_option in 910 --) 911 ac_dashdash=yes ;; 912 913 -bindir | --bindir | --bindi | --bind | --bin | --bi) 914 ac_prev=bindir ;; 915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 916 bindir=$ac_optarg ;; 917 918 -build | --build | --buil | --bui | --bu) 919 ac_prev=build_alias ;; 920 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 921 build_alias=$ac_optarg ;; 922 923 -cache-file | --cache-file | --cache-fil | --cache-fi \ 924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 925 ac_prev=cache_file ;; 926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 928 cache_file=$ac_optarg ;; 929 930 --config-cache | -C) 931 cache_file=config.cache ;; 932 933 -datadir | --datadir | --datadi | --datad) 934 ac_prev=datadir ;; 935 -datadir=* | --datadir=* | --datadi=* | --datad=*) 936 datadir=$ac_optarg ;; 937 938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 939 | --dataroo | --dataro | --datar) 940 ac_prev=datarootdir ;; 941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 943 datarootdir=$ac_optarg ;; 944 945 -disable-* | --disable-*) 946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 947 # Reject names that are not valid shell variable names. 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 949 as_fn_error $? "invalid feature name: '$ac_useropt'" 950 ac_useropt_orig=$ac_useropt 951 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 952 case $ac_user_opts in 953 *" 954 "enable_$ac_useropt" 955 "*) ;; 956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 957 ac_unrecognized_sep=', ';; 958 esac 959 eval enable_$ac_useropt=no ;; 960 961 -docdir | --docdir | --docdi | --doc | --do) 962 ac_prev=docdir ;; 963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 964 docdir=$ac_optarg ;; 965 966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 967 ac_prev=dvidir ;; 968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 969 dvidir=$ac_optarg ;; 970 971 -enable-* | --enable-*) 972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 973 # Reject names that are not valid shell variable names. 974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 975 as_fn_error $? "invalid feature name: '$ac_useropt'" 976 ac_useropt_orig=$ac_useropt 977 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 978 case $ac_user_opts in 979 *" 980 "enable_$ac_useropt" 981 "*) ;; 982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 983 ac_unrecognized_sep=', ';; 984 esac 985 eval enable_$ac_useropt=\$ac_optarg ;; 986 987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 989 | --exec | --exe | --ex) 990 ac_prev=exec_prefix ;; 991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 993 | --exec=* | --exe=* | --ex=*) 994 exec_prefix=$ac_optarg ;; 995 996 -gas | --gas | --ga | --g) 997 # Obsolete; use --with-gas. 998 with_gas=yes ;; 999 1000 -help | --help | --hel | --he | -h) 1001 ac_init_help=long ;; 1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1003 ac_init_help=recursive ;; 1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1005 ac_init_help=short ;; 1006 1007 -host | --host | --hos | --ho) 1008 ac_prev=host_alias ;; 1009 -host=* | --host=* | --hos=* | --ho=*) 1010 host_alias=$ac_optarg ;; 1011 1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1013 ac_prev=htmldir ;; 1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1015 | --ht=*) 1016 htmldir=$ac_optarg ;; 1017 1018 -includedir | --includedir | --includedi | --included | --include \ 1019 | --includ | --inclu | --incl | --inc) 1020 ac_prev=includedir ;; 1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1022 | --includ=* | --inclu=* | --incl=* | --inc=*) 1023 includedir=$ac_optarg ;; 1024 1025 -infodir | --infodir | --infodi | --infod | --info | --inf) 1026 ac_prev=infodir ;; 1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1028 infodir=$ac_optarg ;; 1029 1030 -libdir | --libdir | --libdi | --libd) 1031 ac_prev=libdir ;; 1032 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1033 libdir=$ac_optarg ;; 1034 1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1036 | --libexe | --libex | --libe) 1037 ac_prev=libexecdir ;; 1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1039 | --libexe=* | --libex=* | --libe=*) 1040 libexecdir=$ac_optarg ;; 1041 1042 -localedir | --localedir | --localedi | --localed | --locale) 1043 ac_prev=localedir ;; 1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1045 localedir=$ac_optarg ;; 1046 1047 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1048 | --localstate | --localstat | --localsta | --localst | --locals) 1049 ac_prev=localstatedir ;; 1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1052 localstatedir=$ac_optarg ;; 1053 1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1055 ac_prev=mandir ;; 1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1057 mandir=$ac_optarg ;; 1058 1059 -nfp | --nfp | --nf) 1060 # Obsolete; use --without-fp. 1061 with_fp=no ;; 1062 1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1064 | --no-cr | --no-c | -n) 1065 no_create=yes ;; 1066 1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1069 no_recursion=yes ;; 1070 1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1073 | --oldin | --oldi | --old | --ol | --o) 1074 ac_prev=oldincludedir ;; 1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1078 oldincludedir=$ac_optarg ;; 1079 1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1081 ac_prev=prefix ;; 1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1083 prefix=$ac_optarg ;; 1084 1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1086 | --program-pre | --program-pr | --program-p) 1087 ac_prev=program_prefix ;; 1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1090 program_prefix=$ac_optarg ;; 1091 1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1093 | --program-suf | --program-su | --program-s) 1094 ac_prev=program_suffix ;; 1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1097 program_suffix=$ac_optarg ;; 1098 1099 -program-transform-name | --program-transform-name \ 1100 | --program-transform-nam | --program-transform-na \ 1101 | --program-transform-n | --program-transform- \ 1102 | --program-transform | --program-transfor \ 1103 | --program-transfo | --program-transf \ 1104 | --program-trans | --program-tran \ 1105 | --progr-tra | --program-tr | --program-t) 1106 ac_prev=program_transform_name ;; 1107 -program-transform-name=* | --program-transform-name=* \ 1108 | --program-transform-nam=* | --program-transform-na=* \ 1109 | --program-transform-n=* | --program-transform-=* \ 1110 | --program-transform=* | --program-transfor=* \ 1111 | --program-transfo=* | --program-transf=* \ 1112 | --program-trans=* | --program-tran=* \ 1113 | --progr-tra=* | --program-tr=* | --program-t=*) 1114 program_transform_name=$ac_optarg ;; 1115 1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1117 ac_prev=pdfdir ;; 1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1119 pdfdir=$ac_optarg ;; 1120 1121 -psdir | --psdir | --psdi | --psd | --ps) 1122 ac_prev=psdir ;; 1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1124 psdir=$ac_optarg ;; 1125 1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1127 | -silent | --silent | --silen | --sile | --sil) 1128 silent=yes ;; 1129 1130 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1131 | --runstate | --runstat | --runsta | --runst | --runs \ 1132 | --run | --ru | --r) 1133 ac_prev=runstatedir ;; 1134 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1135 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1136 | --run=* | --ru=* | --r=*) 1137 runstatedir=$ac_optarg ;; 1138 1139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1140 ac_prev=sbindir ;; 1141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1142 | --sbi=* | --sb=*) 1143 sbindir=$ac_optarg ;; 1144 1145 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1146 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1147 | --sharedst | --shareds | --shared | --share | --shar \ 1148 | --sha | --sh) 1149 ac_prev=sharedstatedir ;; 1150 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1151 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1152 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1153 | --sha=* | --sh=*) 1154 sharedstatedir=$ac_optarg ;; 1155 1156 -site | --site | --sit) 1157 ac_prev=site ;; 1158 -site=* | --site=* | --sit=*) 1159 site=$ac_optarg ;; 1160 1161 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1162 ac_prev=srcdir ;; 1163 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1164 srcdir=$ac_optarg ;; 1165 1166 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1167 | --syscon | --sysco | --sysc | --sys | --sy) 1168 ac_prev=sysconfdir ;; 1169 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1170 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1171 sysconfdir=$ac_optarg ;; 1172 1173 -target | --target | --targe | --targ | --tar | --ta | --t) 1174 ac_prev=target_alias ;; 1175 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1176 target_alias=$ac_optarg ;; 1177 1178 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1179 verbose=yes ;; 1180 1181 -version | --version | --versio | --versi | --vers | -V) 1182 ac_init_version=: ;; 1183 1184 -with-* | --with-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid package name: '$ac_useropt'" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193 "with_$ac_useropt" 1194 "*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval with_$ac_useropt=\$ac_optarg ;; 1199 1200 -without-* | --without-*) 1201 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1202 # Reject names that are not valid shell variable names. 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1204 as_fn_error $? "invalid package name: '$ac_useropt'" 1205 ac_useropt_orig=$ac_useropt 1206 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1207 case $ac_user_opts in 1208 *" 1209 "with_$ac_useropt" 1210 "*) ;; 1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1212 ac_unrecognized_sep=', ';; 1213 esac 1214 eval with_$ac_useropt=no ;; 1215 1216 --x) 1217 # Obsolete; use --with-x. 1218 with_x=yes ;; 1219 1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1221 | --x-incl | --x-inc | --x-in | --x-i) 1222 ac_prev=x_includes ;; 1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1225 x_includes=$ac_optarg ;; 1226 1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1229 ac_prev=x_libraries ;; 1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1232 x_libraries=$ac_optarg ;; 1233 1234 -*) as_fn_error $? "unrecognized option: '$ac_option' 1235 Try '$0 --help' for more information" 1236 ;; 1237 1238 *=*) 1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1240 # Reject names that are not valid shell variable names. 1241 case $ac_envvar in #( 1242 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1243 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1244 esac 1245 eval $ac_envvar=\$ac_optarg 1246 export $ac_envvar ;; 1247 1248 *) 1249 # FIXME: should be removed in autoconf 3.0. 1250 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1252 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1253 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1254 ;; 1255 1256 esac 1257 done 1258 1259 if test -n "$ac_prev"; then 1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1261 as_fn_error $? "missing argument to $ac_option" 1262 fi 1263 1264 if test -n "$ac_unrecognized_opts"; then 1265 case $enable_option_checking in 1266 no) ;; 1267 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1268 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1269 esac 1270 fi 1271 1272 # Check all directory arguments for consistency. 1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1274 datadir sysconfdir sharedstatedir localstatedir includedir \ 1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1276 libdir localedir mandir runstatedir 1277 do 1278 eval ac_val=\$$ac_var 1279 # Remove trailing slashes. 1280 case $ac_val in 1281 */ ) 1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1283 eval $ac_var=\$ac_val;; 1284 esac 1285 # Be sure to have absolute directory names. 1286 case $ac_val in 1287 [\\/$]* | ?:[\\/]* ) continue;; 1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1289 esac 1290 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1291 done 1292 1293 # There might be people who depend on the old broken behavior: '$host' 1294 # used to hold the argument of --host etc. 1295 # FIXME: To remove some day. 1296 build=$build_alias 1297 host=$host_alias 1298 target=$target_alias 1299 1300 # FIXME: To remove some day. 1301 if test "x$host_alias" != x; then 1302 if test "x$build_alias" = x; then 1303 cross_compiling=maybe 1304 elif test "x$build_alias" != "x$host_alias"; then 1305 cross_compiling=yes 1306 fi 1307 fi 1308 1309 ac_tool_prefix= 1310 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1311 1312 test "$silent" = yes && exec 6>/dev/null 1313 1314 1315 ac_pwd=`pwd` && test -n "$ac_pwd" && 1316 ac_ls_di=`ls -di .` && 1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1318 as_fn_error $? "working directory cannot be determined" 1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1320 as_fn_error $? "pwd does not report name of working directory" 1321 1322 1323 # Find the source files, if location was not specified. 1324 if test -z "$srcdir"; then 1325 ac_srcdir_defaulted=yes 1326 # Try the directory containing this script, then the parent directory. 1327 ac_confdir=`$as_dirname -- "$as_myself" || 1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1329 X"$as_myself" : 'X\(//\)[^/]' \| \ 1330 X"$as_myself" : 'X\(//\)$' \| \ 1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1332 printf "%s\n" X"$as_myself" | 1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)[^/].*/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\).*/{ 1346 s//\1/ 1347 q 1348 } 1349 s/.*/./; q'` 1350 srcdir=$ac_confdir 1351 if test ! -r "$srcdir/$ac_unique_file"; then 1352 srcdir=.. 1353 fi 1354 else 1355 ac_srcdir_defaulted=no 1356 fi 1357 if test ! -r "$srcdir/$ac_unique_file"; then 1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1359 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1360 fi 1361 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1362 ac_abs_confdir=`( 1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1364 pwd)` 1365 # When building in place, set srcdir=. 1366 if test "$ac_abs_confdir" = "$ac_pwd"; then 1367 srcdir=. 1368 fi 1369 # Remove unnecessary trailing slashes from srcdir. 1370 # Double slashes in file names in object file debugging info 1371 # mess up M-x gdb in Emacs. 1372 case $srcdir in 1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1374 esac 1375 for ac_var in $ac_precious_vars; do 1376 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1377 eval ac_env_${ac_var}_value=\$${ac_var} 1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1380 done 1381 1382 # 1383 # Report the --help message. 1384 # 1385 if test "$ac_init_help" = "long"; then 1386 # Omit some internal or obsolete options to make the list less imposing. 1387 # This message is too long to be a string in the A/UX 3.1 sh. 1388 cat <<_ACEOF 1389 'configure' configures libXrender 0.9.12 to adapt to many kinds of systems. 1390 1391 Usage: $0 [OPTION]... [VAR=VALUE]... 1392 1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1394 VAR=VALUE. See below for descriptions of some of the useful variables. 1395 1396 Defaults for the options are specified in brackets. 1397 1398 Configuration: 1399 -h, --help display this help and exit 1400 --help=short display options specific to this package 1401 --help=recursive display the short help of all the included packages 1402 -V, --version display version information and exit 1403 -q, --quiet, --silent do not print 'checking ...' messages 1404 --cache-file=FILE cache test results in FILE [disabled] 1405 -C, --config-cache alias for '--cache-file=config.cache' 1406 -n, --no-create do not create output files 1407 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1408 1409 Installation directories: 1410 --prefix=PREFIX install architecture-independent files in PREFIX 1411 [$ac_default_prefix] 1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1413 [PREFIX] 1414 1415 By default, 'make install' will install all the files in 1416 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1417 an installation prefix other than '$ac_default_prefix' using '--prefix', 1418 for instance '--prefix=\$HOME'. 1419 1420 For better control, use the options below. 1421 1422 Fine tuning of the installation directories: 1423 --bindir=DIR user executables [EPREFIX/bin] 1424 --sbindir=DIR system admin executables [EPREFIX/sbin] 1425 --libexecdir=DIR program executables [EPREFIX/libexec] 1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1429 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1430 --libdir=DIR object code libraries [EPREFIX/lib] 1431 --includedir=DIR C header files [PREFIX/include] 1432 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1435 --infodir=DIR info documentation [DATAROOTDIR/info] 1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1437 --mandir=DIR man documentation [DATAROOTDIR/man] 1438 --docdir=DIR documentation root [DATAROOTDIR/doc/libXrender] 1439 --htmldir=DIR html documentation [DOCDIR] 1440 --dvidir=DIR dvi documentation [DOCDIR] 1441 --pdfdir=DIR pdf documentation [DOCDIR] 1442 --psdir=DIR ps documentation [DOCDIR] 1443 _ACEOF 1444 1445 cat <<\_ACEOF 1446 1447 Program names: 1448 --program-prefix=PREFIX prepend PREFIX to installed program names 1449 --program-suffix=SUFFIX append SUFFIX to installed program names 1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1451 1452 System types: 1453 --build=BUILD configure for building on BUILD [guessed] 1454 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1455 _ACEOF 1456 fi 1457 1458 if test -n "$ac_init_help"; then 1459 case $ac_init_help in 1460 short | recursive ) echo "Configuration of libXrender 0.9.12:";; 1461 esac 1462 cat <<\_ACEOF 1463 1464 Optional Features: 1465 --disable-option-checking ignore unrecognized --enable/--with options 1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1468 --enable-silent-rules less verbose build output (undo: "make V=1") 1469 --disable-silent-rules verbose build output (undo: "make V=0") 1470 --enable-shared[=PKGS] build shared libraries [default=yes] 1471 --enable-static[=PKGS] build static libraries [default=yes] 1472 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1473 both] 1474 --enable-fast-install[=PKGS] 1475 optimize for fast installation [default=yes] 1476 --enable-aix-soname=aix|svr4|both 1477 shared library versioning (aka "SONAME") variant to 1478 provide on AIX, [default=aix]. 1479 --enable-dependency-tracking 1480 do not reject slow dependency extractors 1481 --disable-dependency-tracking 1482 speeds up one-time build 1483 --disable-libtool-lock avoid locking (might break parallel builds) 1484 --disable-selective-werror 1485 Turn off selective compiler errors. (default: 1486 enabled) 1487 --enable-strict-compilation 1488 Enable all warnings from compiler and make them 1489 errors (default: disabled) 1490 --enable-malloc0returnsnull 1491 assume malloc(0) can return NULL (default: yes) 1492 1493 Optional Packages: 1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1497 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1498 compiler's sysroot if not specified). 1499 1500 Some influential environment variables: 1501 CC C compiler command 1502 CFLAGS C compiler flags 1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1504 nonstandard directory <lib dir> 1505 LIBS libraries to pass to the linker, e.g. -l<library> 1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1507 you have headers in a nonstandard directory <include dir> 1508 LT_SYS_LIBRARY_PATH 1509 User-defined run-time library search path. 1510 PKG_CONFIG path to pkg-config utility 1511 PKG_CONFIG_PATH 1512 directories to add to pkg-config's search path 1513 PKG_CONFIG_LIBDIR 1514 path overriding pkg-config's built-in search path 1515 RENDER_CFLAGS 1516 C compiler flags for RENDER, overriding pkg-config 1517 RENDER_LIBS linker flags for RENDER, overriding pkg-config 1518 1519 Use these variables to override the choices made by 'configure' or to help 1520 it to find libraries and programs with nonstandard names/locations. 1521 1522 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>. 1523 _ACEOF 1524 ac_status=$? 1525 fi 1526 1527 if test "$ac_init_help" = "recursive"; then 1528 # If there are subdirs, report their specific --help. 1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1530 test -d "$ac_dir" || 1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1532 continue 1533 ac_builddir=. 1534 1535 case "$ac_dir" in 1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1537 *) 1538 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1539 # A ".." for each directory in $ac_dir_suffix. 1540 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1541 case $ac_top_builddir_sub in 1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1544 esac ;; 1545 esac 1546 ac_abs_top_builddir=$ac_pwd 1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1548 # for backward compatibility: 1549 ac_top_builddir=$ac_top_build_prefix 1550 1551 case $srcdir in 1552 .) # We are building in place. 1553 ac_srcdir=. 1554 ac_top_srcdir=$ac_top_builddir_sub 1555 ac_abs_top_srcdir=$ac_pwd ;; 1556 [\\/]* | ?:[\\/]* ) # Absolute name. 1557 ac_srcdir=$srcdir$ac_dir_suffix; 1558 ac_top_srcdir=$srcdir 1559 ac_abs_top_srcdir=$srcdir ;; 1560 *) # Relative name. 1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1562 ac_top_srcdir=$ac_top_build_prefix$srcdir 1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1564 esac 1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1566 1567 cd "$ac_dir" || { ac_status=$?; continue; } 1568 # Check for configure.gnu first; this name is used for a wrapper for 1569 # Metaconfig's "Configure" on case-insensitive file systems. 1570 if test -f "$ac_srcdir/configure.gnu"; then 1571 echo && 1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1573 elif test -f "$ac_srcdir/configure"; then 1574 echo && 1575 $SHELL "$ac_srcdir/configure" --help=recursive 1576 else 1577 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1578 fi || ac_status=$? 1579 cd "$ac_pwd" || { ac_status=$?; break; } 1580 done 1581 fi 1582 1583 test -n "$ac_init_help" && exit $ac_status 1584 if $ac_init_version; then 1585 cat <<\_ACEOF 1586 libXrender configure 0.9.12 1587 generated by GNU Autoconf 2.72 1588 1589 Copyright (C) 2023 Free Software Foundation, Inc. 1590 This configure script is free software; the Free Software Foundation 1591 gives unlimited permission to copy, distribute and modify it. 1592 _ACEOF 1593 exit 1594 fi 1595 1596 ## ------------------------ ## 1597 ## Autoconf initialization. ## 1598 ## ------------------------ ## 1599 1600 # ac_fn_c_try_compile LINENO 1601 # -------------------------- 1602 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1603 ac_fn_c_try_compile () 1604 { 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 rm -f conftest.$ac_objext conftest.beam 1607 if { { ac_try="$ac_compile" 1608 case "(($ac_try" in 1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1610 *) ac_try_echo=$ac_try;; 1611 esac 1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1613 printf "%s\n" "$ac_try_echo"; } >&5 1614 (eval "$ac_compile") 2>conftest.err 1615 ac_status=$? 1616 if test -s conftest.err; then 1617 grep -v '^ *+' conftest.err >conftest.er1 1618 cat conftest.er1 >&5 1619 mv -f conftest.er1 conftest.err 1620 fi 1621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1622 test $ac_status = 0; } && { 1623 test -z "$ac_c_werror_flag" || 1624 test ! -s conftest.err 1625 } && test -s conftest.$ac_objext 1626 then : 1627 ac_retval=0 1628 else case e in #( 1629 e) printf "%s\n" "$as_me: failed program was:" >&5 1630 sed 's/^/| /' conftest.$ac_ext >&5 1631 1632 ac_retval=1 ;; 1633 esac 1634 fi 1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1636 as_fn_set_status $ac_retval 1637 1638 } # ac_fn_c_try_compile 1639 1640 # ac_fn_c_try_link LINENO 1641 # ----------------------- 1642 # Try to link conftest.$ac_ext, and return whether this succeeded. 1643 ac_fn_c_try_link () 1644 { 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1647 if { { ac_try="$ac_link" 1648 case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651 esac 1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653 printf "%s\n" "$ac_try_echo"; } >&5 1654 (eval "$ac_link") 2>conftest.err 1655 ac_status=$? 1656 if test -s conftest.err; then 1657 grep -v '^ *+' conftest.err >conftest.er1 1658 cat conftest.er1 >&5 1659 mv -f conftest.er1 conftest.err 1660 fi 1661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1662 test $ac_status = 0; } && { 1663 test -z "$ac_c_werror_flag" || 1664 test ! -s conftest.err 1665 } && test -s conftest$ac_exeext && { 1666 test "$cross_compiling" = yes || 1667 test -x conftest$ac_exeext 1668 } 1669 then : 1670 ac_retval=0 1671 else case e in #( 1672 e) printf "%s\n" "$as_me: failed program was:" >&5 1673 sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=1 ;; 1676 esac 1677 fi 1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1680 # interfere with the next link command; also delete a directory that is 1681 # left behind by Apple's compiler. We do this before executing the actions. 1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 as_fn_set_status $ac_retval 1685 1686 } # ac_fn_c_try_link 1687 1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1689 # ------------------------------------------------------- 1690 # Tests whether HEADER exists and can be compiled using the include files in 1691 # INCLUDES, setting the cache variable VAR accordingly. 1692 ac_fn_c_check_header_compile () 1693 { 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1696 printf %s "checking for $2... " >&6; } 1697 if eval test \${$3+y} 1698 then : 1699 printf %s "(cached) " >&6 1700 else case e in #( 1701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1702 /* end confdefs.h. */ 1703 $4 1704 #include <$2> 1705 _ACEOF 1706 if ac_fn_c_try_compile "$LINENO" 1707 then : 1708 eval "$3=yes" 1709 else case e in #( 1710 e) eval "$3=no" ;; 1711 esac 1712 fi 1713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1714 esac 1715 fi 1716 eval ac_res=\$$3 1717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1718 printf "%s\n" "$ac_res" >&6; } 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 1721 } # ac_fn_c_check_header_compile 1722 1723 # ac_fn_c_check_func LINENO FUNC VAR 1724 # ---------------------------------- 1725 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1726 ac_fn_c_check_func () 1727 { 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730 printf %s "checking for $2... " >&6; } 1731 if eval test \${$3+y} 1732 then : 1733 printf %s "(cached) " >&6 1734 else case e in #( 1735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736 /* end confdefs.h. */ 1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1739 #define $2 innocuous_$2 1740 1741 /* System header to define __stub macros and hopefully few prototypes, 1742 which can conflict with char $2 (void); below. */ 1743 1744 #include <limits.h> 1745 #undef $2 1746 1747 /* Override any GCC internal prototype to avoid an error. 1748 Use char because int might match the return type of a GCC 1749 builtin and then its argument prototype would still apply. */ 1750 #ifdef __cplusplus 1751 extern "C" 1752 #endif 1753 char $2 (void); 1754 /* The GNU C library defines this for functions which it implements 1755 to always fail with ENOSYS. Some functions are actually named 1756 something starting with __ and the normal name is an alias. */ 1757 #if defined __stub_$2 || defined __stub___$2 1758 choke me 1759 #endif 1760 1761 int 1762 main (void) 1763 { 1764 return $2 (); 1765 ; 1766 return 0; 1767 } 1768 _ACEOF 1769 if ac_fn_c_try_link "$LINENO" 1770 then : 1771 eval "$3=yes" 1772 else case e in #( 1773 e) eval "$3=no" ;; 1774 esac 1775 fi 1776 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1777 conftest$ac_exeext conftest.$ac_ext ;; 1778 esac 1779 fi 1780 eval ac_res=\$$3 1781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1782 printf "%s\n" "$ac_res" >&6; } 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 1785 } # ac_fn_c_check_func 1786 1787 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1788 # ------------------------------------------------------------------ 1789 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1790 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1791 ac_fn_check_decl () 1792 { 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 as_decl_name=`echo $2|sed 's/ *(.*//'` 1795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1796 printf %s "checking whether $as_decl_name is declared... " >&6; } 1797 if eval test \${$3+y} 1798 then : 1799 printf %s "(cached) " >&6 1800 else case e in #( 1801 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1802 eval ac_save_FLAGS=\$$6 1803 as_fn_append $6 " $5" 1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805 /* end confdefs.h. */ 1806 $4 1807 int 1808 main (void) 1809 { 1810 #ifndef $as_decl_name 1811 #ifdef __cplusplus 1812 (void) $as_decl_use; 1813 #else 1814 (void) $as_decl_name; 1815 #endif 1816 #endif 1817 1818 ; 1819 return 0; 1820 } 1821 _ACEOF 1822 if ac_fn_c_try_compile "$LINENO" 1823 then : 1824 eval "$3=yes" 1825 else case e in #( 1826 e) eval "$3=no" ;; 1827 esac 1828 fi 1829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1830 eval $6=\$ac_save_FLAGS 1831 ;; 1832 esac 1833 fi 1834 eval ac_res=\$$3 1835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1836 printf "%s\n" "$ac_res" >&6; } 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 1839 } # ac_fn_check_decl 1840 ac_configure_args_raw= 1841 for ac_arg 1842 do 1843 case $ac_arg in 1844 *\'*) 1845 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1846 esac 1847 as_fn_append ac_configure_args_raw " '$ac_arg'" 1848 done 1849 1850 case $ac_configure_args_raw in 1851 *$as_nl*) 1852 ac_safe_unquote= ;; 1853 *) 1854 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1855 ac_unsafe_a="$ac_unsafe_z#~" 1856 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1857 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1858 esac 1859 1860 cat >config.log <<_ACEOF 1861 This file contains any messages produced by compilers while 1862 running configure, to aid debugging if configure makes a mistake. 1863 1864 It was created by libXrender $as_me 0.9.12, which was 1865 generated by GNU Autoconf 2.72. Invocation command line was 1866 1867 $ $0$ac_configure_args_raw 1868 1869 _ACEOF 1870 exec 5>>config.log 1871 { 1872 cat <<_ASUNAME 1873 ## --------- ## 1874 ## Platform. ## 1875 ## --------- ## 1876 1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1878 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1879 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1880 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1881 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1882 1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1885 1886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1889 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1893 1894 _ASUNAME 1895 1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1897 for as_dir in $PATH 1898 do 1899 IFS=$as_save_IFS 1900 case $as_dir in #((( 1901 '') as_dir=./ ;; 1902 */) ;; 1903 *) as_dir=$as_dir/ ;; 1904 esac 1905 printf "%s\n" "PATH: $as_dir" 1906 done 1907 IFS=$as_save_IFS 1908 1909 } >&5 1910 1911 cat >&5 <<_ACEOF 1912 1913 1914 ## ----------- ## 1915 ## Core tests. ## 1916 ## ----------- ## 1917 1918 _ACEOF 1919 1920 1921 # Keep a trace of the command line. 1922 # Strip out --no-create and --no-recursion so they do not pile up. 1923 # Strip out --silent because we don't want to record it for future runs. 1924 # Also quote any args containing shell meta-characters. 1925 # Make two passes to allow for proper duplicate-argument suppression. 1926 ac_configure_args= 1927 ac_configure_args0= 1928 ac_configure_args1= 1929 ac_must_keep_next=false 1930 for ac_pass in 1 2 1931 do 1932 for ac_arg 1933 do 1934 case $ac_arg in 1935 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1937 | -silent | --silent | --silen | --sile | --sil) 1938 continue ;; 1939 *\'*) 1940 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1941 esac 1942 case $ac_pass in 1943 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1944 2) 1945 as_fn_append ac_configure_args1 " '$ac_arg'" 1946 if test $ac_must_keep_next = true; then 1947 ac_must_keep_next=false # Got value, back to normal. 1948 else 1949 case $ac_arg in 1950 *=* | --config-cache | -C | -disable-* | --disable-* \ 1951 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1952 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1953 | -with-* | --with-* | -without-* | --without-* | --x) 1954 case "$ac_configure_args0 " in 1955 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1956 esac 1957 ;; 1958 -* ) ac_must_keep_next=true ;; 1959 esac 1960 fi 1961 as_fn_append ac_configure_args " '$ac_arg'" 1962 ;; 1963 esac 1964 done 1965 done 1966 { ac_configure_args0=; unset ac_configure_args0;} 1967 { ac_configure_args1=; unset ac_configure_args1;} 1968 1969 # When interrupted or exit'd, cleanup temporary files, and complete 1970 # config.log. We remove comments because anyway the quotes in there 1971 # would cause problems or look ugly. 1972 # WARNING: Use '\'' to represent an apostrophe within the trap. 1973 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1974 trap 'exit_status=$? 1975 # Sanitize IFS. 1976 IFS=" "" $as_nl" 1977 # Save into config.log some information that might help in debugging. 1978 { 1979 echo 1980 1981 printf "%s\n" "## ---------------- ## 1982 ## Cache variables. ## 1983 ## ---------------- ##" 1984 echo 1985 # The following way of writing the cache mishandles newlines in values, 1986 ( 1987 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1988 eval ac_val=\$$ac_var 1989 case $ac_val in #( 1990 *${as_nl}*) 1991 case $ac_var in #( 1992 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1993 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1994 esac 1995 case $ac_var in #( 1996 _ | IFS | as_nl) ;; #( 1997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1998 *) { eval $ac_var=; unset $ac_var;} ;; 1999 esac ;; 2000 esac 2001 done 2002 (set) 2>&1 | 2003 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2004 *${as_nl}ac_space=\ *) 2005 sed -n \ 2006 "s/'\''/'\''\\\\'\'''\''/g; 2007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2008 ;; #( 2009 *) 2010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2011 ;; 2012 esac | 2013 sort 2014 ) 2015 echo 2016 2017 printf "%s\n" "## ----------------- ## 2018 ## Output variables. ## 2019 ## ----------------- ##" 2020 echo 2021 for ac_var in $ac_subst_vars 2022 do 2023 eval ac_val=\$$ac_var 2024 case $ac_val in 2025 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2026 esac 2027 printf "%s\n" "$ac_var='\''$ac_val'\''" 2028 done | sort 2029 echo 2030 2031 if test -n "$ac_subst_files"; then 2032 printf "%s\n" "## ------------------- ## 2033 ## File substitutions. ## 2034 ## ------------------- ##" 2035 echo 2036 for ac_var in $ac_subst_files 2037 do 2038 eval ac_val=\$$ac_var 2039 case $ac_val in 2040 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2041 esac 2042 printf "%s\n" "$ac_var='\''$ac_val'\''" 2043 done | sort 2044 echo 2045 fi 2046 2047 if test -s confdefs.h; then 2048 printf "%s\n" "## ----------- ## 2049 ## confdefs.h. ## 2050 ## ----------- ##" 2051 echo 2052 cat confdefs.h 2053 echo 2054 fi 2055 test "$ac_signal" != 0 && 2056 printf "%s\n" "$as_me: caught signal $ac_signal" 2057 printf "%s\n" "$as_me: exit $exit_status" 2058 } >&5 2059 rm -f core *.core core.conftest.* && 2060 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2061 exit $exit_status 2062 ' 0 2063 for ac_signal in 1 2 13 15; do 2064 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2065 done 2066 ac_signal=0 2067 2068 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2069 rm -f -r conftest* confdefs.h 2070 2071 printf "%s\n" "/* confdefs.h */" > confdefs.h 2072 2073 # Predefined preprocessor variables. 2074 2075 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2076 2077 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2078 2079 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2080 2081 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2082 2083 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2084 2085 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2086 2087 2088 # Let the site file select an alternate cache file if it wants to. 2089 # Prefer an explicitly selected file to automatically selected ones. 2090 if test -n "$CONFIG_SITE"; then 2091 ac_site_files="$CONFIG_SITE" 2092 elif test "x$prefix" != xNONE; then 2093 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2094 else 2095 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2096 fi 2097 2098 for ac_site_file in $ac_site_files 2099 do 2100 case $ac_site_file in #( 2101 */*) : 2102 ;; #( 2103 *) : 2104 ac_site_file=./$ac_site_file ;; 2105 esac 2106 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2108 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2109 sed 's/^/| /' "$ac_site_file" >&5 2110 . "$ac_site_file" \ 2111 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2112 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2113 as_fn_error $? "failed to load site script $ac_site_file 2114 See 'config.log' for more details" "$LINENO" 5; } 2115 fi 2116 done 2117 2118 if test -r "$cache_file"; then 2119 # Some versions of bash will fail to source /dev/null (special files 2120 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2121 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2123 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2124 case $cache_file in 2125 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2126 *) . "./$cache_file";; 2127 esac 2128 fi 2129 else 2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2131 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2132 >$cache_file 2133 fi 2134 2135 # Test code for whether the C compiler supports C89 (global declarations) 2136 ac_c_conftest_c89_globals=' 2137 /* Does the compiler advertise C89 conformance? 2138 Do not test the value of __STDC__, because some compilers set it to 0 2139 while being otherwise adequately conformant. */ 2140 #if !defined __STDC__ 2141 # error "Compiler does not advertise C89 conformance" 2142 #endif 2143 2144 #include <stddef.h> 2145 #include <stdarg.h> 2146 struct stat; 2147 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2148 struct buf { int x; }; 2149 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2150 static char *e (char **p, int i) 2151 { 2152 return p[i]; 2153 } 2154 static char *f (char * (*g) (char **, int), char **p, ...) 2155 { 2156 char *s; 2157 va_list v; 2158 va_start (v,p); 2159 s = g (p, va_arg (v,int)); 2160 va_end (v); 2161 return s; 2162 } 2163 2164 /* C89 style stringification. */ 2165 #define noexpand_stringify(a) #a 2166 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2167 2168 /* C89 style token pasting. Exercises some of the corner cases that 2169 e.g. old MSVC gets wrong, but not very hard. */ 2170 #define noexpand_concat(a,b) a##b 2171 #define expand_concat(a,b) noexpand_concat(a,b) 2172 extern int vA; 2173 extern int vbee; 2174 #define aye A 2175 #define bee B 2176 int *pvA = &expand_concat(v,aye); 2177 int *pvbee = &noexpand_concat(v,bee); 2178 2179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2180 function prototypes and stuff, but not \xHH hex character constants. 2181 These do not provoke an error unfortunately, instead are silently treated 2182 as an "x". The following induces an error, until -std is added to get 2183 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2184 array size at least. It is necessary to write \x00 == 0 to get something 2185 that is true only with -std. */ 2186 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2187 2188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2189 inside strings and character constants. */ 2190 #define FOO(x) '\''x'\'' 2191 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2192 2193 int test (int i, double x); 2194 struct s1 {int (*f) (int a);}; 2195 struct s2 {int (*f) (double a);}; 2196 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2197 int, int);' 2198 2199 # Test code for whether the C compiler supports C89 (body of main). 2200 ac_c_conftest_c89_main=' 2201 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2202 ' 2203 2204 # Test code for whether the C compiler supports C99 (global declarations) 2205 ac_c_conftest_c99_globals=' 2206 /* Does the compiler advertise C99 conformance? */ 2207 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2208 # error "Compiler does not advertise C99 conformance" 2209 #endif 2210 2211 // See if C++-style comments work. 2212 2213 #include <stdbool.h> 2214 extern int puts (const char *); 2215 extern int printf (const char *, ...); 2216 extern int dprintf (int, const char *, ...); 2217 extern void *malloc (size_t); 2218 extern void free (void *); 2219 2220 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2221 // dprintf is used instead of fprintf to avoid needing to declare 2222 // FILE and stderr. 2223 #define debug(...) dprintf (2, __VA_ARGS__) 2224 #define showlist(...) puts (#__VA_ARGS__) 2225 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2226 static void 2227 test_varargs_macros (void) 2228 { 2229 int x = 1234; 2230 int y = 5678; 2231 debug ("Flag"); 2232 debug ("X = %d\n", x); 2233 showlist (The first, second, and third items.); 2234 report (x>y, "x is %d but y is %d", x, y); 2235 } 2236 2237 // Check long long types. 2238 #define BIG64 18446744073709551615ull 2239 #define BIG32 4294967295ul 2240 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2241 #if !BIG_OK 2242 #error "your preprocessor is broken" 2243 #endif 2244 #if BIG_OK 2245 #else 2246 #error "your preprocessor is broken" 2247 #endif 2248 static long long int bignum = -9223372036854775807LL; 2249 static unsigned long long int ubignum = BIG64; 2250 2251 struct incomplete_array 2252 { 2253 int datasize; 2254 double data[]; 2255 }; 2256 2257 struct named_init { 2258 int number; 2259 const wchar_t *name; 2260 double average; 2261 }; 2262 2263 typedef const char *ccp; 2264 2265 static inline int 2266 test_restrict (ccp restrict text) 2267 { 2268 // Iterate through items via the restricted pointer. 2269 // Also check for declarations in for loops. 2270 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2271 continue; 2272 return 0; 2273 } 2274 2275 // Check varargs and va_copy. 2276 static bool 2277 test_varargs (const char *format, ...) 2278 { 2279 va_list args; 2280 va_start (args, format); 2281 va_list args_copy; 2282 va_copy (args_copy, args); 2283 2284 const char *str = ""; 2285 int number = 0; 2286 float fnumber = 0; 2287 2288 while (*format) 2289 { 2290 switch (*format++) 2291 { 2292 case '\''s'\'': // string 2293 str = va_arg (args_copy, const char *); 2294 break; 2295 case '\''d'\'': // int 2296 number = va_arg (args_copy, int); 2297 break; 2298 case '\''f'\'': // float 2299 fnumber = va_arg (args_copy, double); 2300 break; 2301 default: 2302 break; 2303 } 2304 } 2305 va_end (args_copy); 2306 va_end (args); 2307 2308 return *str && number && fnumber; 2309 } 2310 ' 2311 2312 # Test code for whether the C compiler supports C99 (body of main). 2313 ac_c_conftest_c99_main=' 2314 // Check bool. 2315 _Bool success = false; 2316 success |= (argc != 0); 2317 2318 // Check restrict. 2319 if (test_restrict ("String literal") == 0) 2320 success = true; 2321 char *restrict newvar = "Another string"; 2322 2323 // Check varargs. 2324 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2325 test_varargs_macros (); 2326 2327 // Check flexible array members. 2328 struct incomplete_array *ia = 2329 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2330 ia->datasize = 10; 2331 for (int i = 0; i < ia->datasize; ++i) 2332 ia->data[i] = i * 1.234; 2333 // Work around memory leak warnings. 2334 free (ia); 2335 2336 // Check named initializers. 2337 struct named_init ni = { 2338 .number = 34, 2339 .name = L"Test wide string", 2340 .average = 543.34343, 2341 }; 2342 2343 ni.number = 58; 2344 2345 int dynamic_array[ni.number]; 2346 dynamic_array[0] = argv[0][0]; 2347 dynamic_array[ni.number - 1] = 543; 2348 2349 // work around unused variable warnings 2350 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2351 || dynamic_array[ni.number - 1] != 543); 2352 ' 2353 2354 # Test code for whether the C compiler supports C11 (global declarations) 2355 ac_c_conftest_c11_globals=' 2356 /* Does the compiler advertise C11 conformance? */ 2357 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2358 # error "Compiler does not advertise C11 conformance" 2359 #endif 2360 2361 // Check _Alignas. 2362 char _Alignas (double) aligned_as_double; 2363 char _Alignas (0) no_special_alignment; 2364 extern char aligned_as_int; 2365 char _Alignas (0) _Alignas (int) aligned_as_int; 2366 2367 // Check _Alignof. 2368 enum 2369 { 2370 int_alignment = _Alignof (int), 2371 int_array_alignment = _Alignof (int[100]), 2372 char_alignment = _Alignof (char) 2373 }; 2374 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2375 2376 // Check _Noreturn. 2377 int _Noreturn does_not_return (void) { for (;;) continue; } 2378 2379 // Check _Static_assert. 2380 struct test_static_assert 2381 { 2382 int x; 2383 _Static_assert (sizeof (int) <= sizeof (long int), 2384 "_Static_assert does not work in struct"); 2385 long int y; 2386 }; 2387 2388 // Check UTF-8 literals. 2389 #define u8 syntax error! 2390 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2391 2392 // Check duplicate typedefs. 2393 typedef long *long_ptr; 2394 typedef long int *long_ptr; 2395 typedef long_ptr long_ptr; 2396 2397 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2398 struct anonymous 2399 { 2400 union { 2401 struct { int i; int j; }; 2402 struct { int k; long int l; } w; 2403 }; 2404 int m; 2405 } v1; 2406 ' 2407 2408 # Test code for whether the C compiler supports C11 (body of main). 2409 ac_c_conftest_c11_main=' 2410 _Static_assert ((offsetof (struct anonymous, i) 2411 == offsetof (struct anonymous, w.k)), 2412 "Anonymous union alignment botch"); 2413 v1.i = 2; 2414 v1.w.k = 5; 2415 ok |= v1.i != 5; 2416 ' 2417 2418 # Test code for whether the C compiler supports C11 (complete). 2419 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2420 ${ac_c_conftest_c99_globals} 2421 ${ac_c_conftest_c11_globals} 2422 2423 int 2424 main (int argc, char **argv) 2425 { 2426 int ok = 0; 2427 ${ac_c_conftest_c89_main} 2428 ${ac_c_conftest_c99_main} 2429 ${ac_c_conftest_c11_main} 2430 return ok; 2431 } 2432 " 2433 2434 # Test code for whether the C compiler supports C99 (complete). 2435 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2436 ${ac_c_conftest_c99_globals} 2437 2438 int 2439 main (int argc, char **argv) 2440 { 2441 int ok = 0; 2442 ${ac_c_conftest_c89_main} 2443 ${ac_c_conftest_c99_main} 2444 return ok; 2445 } 2446 " 2447 2448 # Test code for whether the C compiler supports C89 (complete). 2449 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2450 2451 int 2452 main (int argc, char **argv) 2453 { 2454 int ok = 0; 2455 ${ac_c_conftest_c89_main} 2456 return ok; 2457 } 2458 " 2459 2460 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2461 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2462 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2463 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2464 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2465 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2466 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2467 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2468 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2469 2470 # Auxiliary files required by this configure script. 2471 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2472 2473 # Locations in which to look for auxiliary files. 2474 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2475 2476 # Search for a directory containing all of the required auxiliary files, 2477 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2478 # If we don't find one directory that contains all the files we need, 2479 # we report the set of missing files from the *first* directory in 2480 # $ac_aux_dir_candidates and give up. 2481 ac_missing_aux_files="" 2482 ac_first_candidate=: 2483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2485 as_found=false 2486 for as_dir in $ac_aux_dir_candidates 2487 do 2488 IFS=$as_save_IFS 2489 case $as_dir in #((( 2490 '') as_dir=./ ;; 2491 */) ;; 2492 *) as_dir=$as_dir/ ;; 2493 esac 2494 as_found=: 2495 2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2497 ac_aux_dir_found=yes 2498 ac_install_sh= 2499 for ac_aux in $ac_aux_files 2500 do 2501 # As a special case, if "install-sh" is required, that requirement 2502 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2503 # and $ac_install_sh is set appropriately for whichever one is found. 2504 if test x"$ac_aux" = x"install-sh" 2505 then 2506 if test -f "${as_dir}install-sh"; then 2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2508 ac_install_sh="${as_dir}install-sh -c" 2509 elif test -f "${as_dir}install.sh"; then 2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2511 ac_install_sh="${as_dir}install.sh -c" 2512 elif test -f "${as_dir}shtool"; then 2513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2514 ac_install_sh="${as_dir}shtool install -c" 2515 else 2516 ac_aux_dir_found=no 2517 if $ac_first_candidate; then 2518 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2519 else 2520 break 2521 fi 2522 fi 2523 else 2524 if test -f "${as_dir}${ac_aux}"; then 2525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2526 else 2527 ac_aux_dir_found=no 2528 if $ac_first_candidate; then 2529 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2530 else 2531 break 2532 fi 2533 fi 2534 fi 2535 done 2536 if test "$ac_aux_dir_found" = yes; then 2537 ac_aux_dir="$as_dir" 2538 break 2539 fi 2540 ac_first_candidate=false 2541 2542 as_found=false 2543 done 2544 IFS=$as_save_IFS 2545 if $as_found 2546 then : 2547 2548 else case e in #( 2549 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2550 esac 2551 fi 2552 2553 2554 # These three variables are undocumented and unsupported, 2555 # and are intended to be withdrawn in a future Autoconf release. 2556 # They can cause serious problems if a builder's source tree is in a directory 2557 # whose full name contains unusual characters. 2558 if test -f "${ac_aux_dir}config.guess"; then 2559 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2560 fi 2561 if test -f "${ac_aux_dir}config.sub"; then 2562 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2563 fi 2564 if test -f "$ac_aux_dir/configure"; then 2565 ac_configure="$SHELL ${ac_aux_dir}configure" 2566 fi 2567 2568 # Check that the precious variables saved in the cache have kept the same 2569 # value. 2570 ac_cache_corrupted=false 2571 for ac_var in $ac_precious_vars; do 2572 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2573 eval ac_new_set=\$ac_env_${ac_var}_set 2574 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2575 eval ac_new_val=\$ac_env_${ac_var}_value 2576 case $ac_old_set,$ac_new_set in 2577 set,) 2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2579 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2580 ac_cache_corrupted=: ;; 2581 ,set) 2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2583 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2584 ac_cache_corrupted=: ;; 2585 ,);; 2586 *) 2587 if test "x$ac_old_val" != "x$ac_new_val"; then 2588 # differences in whitespace do not lead to failure. 2589 ac_old_val_w=`echo x $ac_old_val` 2590 ac_new_val_w=`echo x $ac_new_val` 2591 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2593 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2594 ac_cache_corrupted=: 2595 else 2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2597 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2598 eval $ac_var=\$ac_old_val 2599 fi 2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2601 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2603 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2604 fi;; 2605 esac 2606 # Pass precious variables to config.status. 2607 if test "$ac_new_set" = set; then 2608 case $ac_new_val in 2609 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2610 *) ac_arg=$ac_var=$ac_new_val ;; 2611 esac 2612 case " $ac_configure_args " in 2613 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2614 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2615 esac 2616 fi 2617 done 2618 if $ac_cache_corrupted; then 2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2620 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2622 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2623 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2624 and start over" "$LINENO" 5 2625 fi 2626 ## -------------------- ## 2627 ## Main body of script. ## 2628 ## -------------------- ## 2629 2630 ac_ext=c 2631 ac_cpp='$CPP $CPPFLAGS' 2632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2634 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2635 2636 2637 2638 ac_config_headers="$ac_config_headers config.h" 2639 2640 2641 2642 PACKAGE_BRIEF="Library for the Render Extension to the X11 protocol" 2643 2644 2645 # Initialize Automake 2646 am__api_version='1.17' 2647 2648 2649 2650 # Find a good install program. We prefer a C program (faster), 2651 # so one script is as good as another. But avoid the broken or 2652 # incompatible versions: 2653 # SysV /etc/install, /usr/sbin/install 2654 # SunOS /usr/etc/install 2655 # IRIX /sbin/install 2656 # AIX /bin/install 2657 # AmigaOS /C/install, which installs bootblocks on floppy discs 2658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2661 # OS/2's system install, which has a completely different semantic 2662 # ./install, which can be erroneously created by make from ./install.sh. 2663 # Reject install programs that cannot install multiple files. 2664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2665 printf %s "checking for a BSD-compatible install... " >&6; } 2666 if test -z "$INSTALL"; then 2667 if test ${ac_cv_path_install+y} 2668 then : 2669 printf %s "(cached) " >&6 2670 else case e in #( 2671 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2672 for as_dir in $PATH 2673 do 2674 IFS=$as_save_IFS 2675 case $as_dir in #((( 2676 '') as_dir=./ ;; 2677 */) ;; 2678 *) as_dir=$as_dir/ ;; 2679 esac 2680 # Account for fact that we put trailing slashes in our PATH walk. 2681 case $as_dir in #(( 2682 ./ | /[cC]/* | \ 2683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2684 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2685 /usr/ucb/* ) ;; 2686 *) 2687 # OSF1 and SCO ODT 3.0 have their own names for install. 2688 # Don't use installbsd from OSF since it installs stuff as root 2689 # by default. 2690 for ac_prog in ginstall scoinst install; do 2691 for ac_exec_ext in '' $ac_executable_extensions; do 2692 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2693 if test $ac_prog = install && 2694 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2695 # AIX install. It has an incompatible calling convention. 2696 : 2697 elif test $ac_prog = install && 2698 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2699 # program-specific install script used by HP pwplus--don't use. 2700 : 2701 else 2702 rm -rf conftest.one conftest.two conftest.dir 2703 echo one > conftest.one 2704 echo two > conftest.two 2705 mkdir conftest.dir 2706 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2707 test -s conftest.one && test -s conftest.two && 2708 test -s conftest.dir/conftest.one && 2709 test -s conftest.dir/conftest.two 2710 then 2711 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2712 break 3 2713 fi 2714 fi 2715 fi 2716 done 2717 done 2718 ;; 2719 esac 2720 2721 done 2722 IFS=$as_save_IFS 2723 2724 rm -rf conftest.one conftest.two conftest.dir 2725 ;; 2726 esac 2727 fi 2728 if test ${ac_cv_path_install+y}; then 2729 INSTALL=$ac_cv_path_install 2730 else 2731 # As a last resort, use the slow shell script. Don't cache a 2732 # value for INSTALL within a source directory, because that will 2733 # break other packages using the cache if that directory is 2734 # removed, or if the value is a relative name. 2735 INSTALL=$ac_install_sh 2736 fi 2737 fi 2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2739 printf "%s\n" "$INSTALL" >&6; } 2740 2741 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2742 # It thinks the first close brace ends the variable substitution. 2743 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2744 2745 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2746 2747 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2748 2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2750 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2751 if test ${am_cv_sleep_fractional_seconds+y} 2752 then : 2753 printf %s "(cached) " >&6 2754 else case e in #( 2755 e) if sleep 0.001 2>/dev/null 2756 then : 2757 am_cv_sleep_fractional_seconds=yes 2758 else case e in #( 2759 e) am_cv_sleep_fractional_seconds=no ;; 2760 esac 2761 fi 2762 ;; 2763 esac 2764 fi 2765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2766 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2767 2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2769 printf %s "checking filesystem timestamp resolution... " >&6; } 2770 if test ${am_cv_filesystem_timestamp_resolution+y} 2771 then : 2772 printf %s "(cached) " >&6 2773 else case e in #( 2774 e) # Default to the worst case. 2775 am_cv_filesystem_timestamp_resolution=2 2776 2777 # Only try to go finer than 1 sec if sleep can do it. 2778 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2779 # - 1 sec is not much of a win compared to 2 sec, and 2780 # - it takes 2 seconds to perform the test whether 1 sec works. 2781 # 2782 # Instead, just use the default 2s on platforms that have 1s resolution, 2783 # accept the extra 1s delay when using $sleep in the Automake tests, in 2784 # exchange for not incurring the 2s delay for running the test for all 2785 # packages. 2786 # 2787 am_try_resolutions= 2788 if test "$am_cv_sleep_fractional_seconds" = yes; then 2789 # Even a millisecond often causes a bunch of false positives, 2790 # so just try a hundredth of a second. The time saved between .001 and 2791 # .01 is not terribly consequential. 2792 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2793 fi 2794 2795 # In order to catch current-generation FAT out, we must *modify* files 2796 # that already exist; the *creation* timestamp is finer. Use names 2797 # that make ls -t sort them differently when they have equal 2798 # timestamps than when they have distinct timestamps, keeping 2799 # in mind that ls -t prints the *newest* file first. 2800 rm -f conftest.ts? 2801 : > conftest.ts1 2802 : > conftest.ts2 2803 : > conftest.ts3 2804 2805 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2806 # clobber the current shell's arguments. (Outer-level square brackets 2807 # are removed by m4; they're present so that m4 does not expand 2808 # <dollar><star>; be careful, easy to get confused.) 2809 if ( 2810 set X `ls -t conftest.ts[12]` && 2811 { 2812 test "$*" != "X conftest.ts1 conftest.ts2" || 2813 test "$*" != "X conftest.ts2 conftest.ts1"; 2814 } 2815 ); then :; else 2816 # If neither matched, then we have a broken ls. This can happen 2817 # if, for instance, CONFIG_SHELL is bash and it inherits a 2818 # broken ls alias from the environment. This has actually 2819 # happened. Such a system could not be considered "sane". 2820 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2822 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2823 as_fn_error $? "ls -t produces unexpected output. 2824 Make sure there is not a broken ls alias in your environment. 2825 See 'config.log' for more details" "$LINENO" 5; } 2826 fi 2827 2828 for am_try_res in $am_try_resolutions; do 2829 # Any one fine-grained sleep might happen to cross the boundary 2830 # between two values of a coarser actual resolution, but if we do 2831 # two fine-grained sleeps in a row, at least one of them will fall 2832 # entirely within a coarse interval. 2833 echo alpha > conftest.ts1 2834 sleep $am_try_res 2835 echo beta > conftest.ts2 2836 sleep $am_try_res 2837 echo gamma > conftest.ts3 2838 2839 # We assume that 'ls -t' will make use of high-resolution 2840 # timestamps if the operating system supports them at all. 2841 if (set X `ls -t conftest.ts?` && 2842 test "$2" = conftest.ts3 && 2843 test "$3" = conftest.ts2 && 2844 test "$4" = conftest.ts1); then 2845 # 2846 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2847 # because we don't need to test make. 2848 make_ok=true 2849 if test $am_try_res != 1; then 2850 # But if we've succeeded so far with a subsecond resolution, we 2851 # have one more thing to check: make. It can happen that 2852 # everything else supports the subsecond mtimes, but make doesn't; 2853 # notably on macOS, which ships make 3.81 from 2006 (the last one 2854 # released under GPLv2). https://bugs.gnu.org/68808 2855 # 2856 # We test $MAKE if it is defined in the environment, else "make". 2857 # It might get overridden later, but our hope is that in practice 2858 # it does not matter: it is the system "make" which is (by far) 2859 # the most likely to be broken, whereas if the user overrides it, 2860 # probably they did so with a better, or at least not worse, make. 2861 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2862 # 2863 # Create a Makefile (real tab character here): 2864 rm -f conftest.mk 2865 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2866 echo ' touch conftest.ts2' >>conftest.mk 2867 # 2868 # Now, running 2869 # touch conftest.ts1; touch conftest.ts2; make 2870 # should touch ts1 because ts2 is newer. This could happen by luck, 2871 # but most often, it will fail if make's support is insufficient. So 2872 # test for several consecutive successes. 2873 # 2874 # (We reuse conftest.ts[12] because we still want to modify existing 2875 # files, not create new ones, per above.) 2876 n=0 2877 make=${MAKE-make} 2878 until test $n -eq 3; do 2879 echo one > conftest.ts1 2880 sleep $am_try_res 2881 echo two > conftest.ts2 # ts2 should now be newer than ts1 2882 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2883 make_ok=false 2884 break # out of $n loop 2885 fi 2886 n=`expr $n + 1` 2887 done 2888 fi 2889 # 2890 if $make_ok; then 2891 # Everything we know to check worked out, so call this resolution good. 2892 am_cv_filesystem_timestamp_resolution=$am_try_res 2893 break # out of $am_try_res loop 2894 fi 2895 # Otherwise, we'll go on to check the next resolution. 2896 fi 2897 done 2898 rm -f conftest.ts? 2899 # (end _am_filesystem_timestamp_resolution) 2900 ;; 2901 esac 2902 fi 2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2904 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2905 2906 # This check should not be cached, as it may vary across builds of 2907 # different projects. 2908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2909 printf %s "checking whether build environment is sane... " >&6; } 2910 # Reject unsafe characters in $srcdir or the absolute working directory 2911 # name. Accept space and tab only in the latter. 2912 am_lf=' 2913 ' 2914 case `pwd` in 2915 *[\\\"\#\$\&\'\`$am_lf]*) 2916 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2917 esac 2918 case $srcdir in 2919 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2920 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2921 esac 2922 2923 # Do 'set' in a subshell so we don't clobber the current shell's 2924 # arguments. Must try -L first in case configure is actually a 2925 # symlink; some systems play weird games with the mod time of symlinks 2926 # (eg FreeBSD returns the mod time of the symlink's containing 2927 # directory). 2928 am_build_env_is_sane=no 2929 am_has_slept=no 2930 rm -f conftest.file 2931 for am_try in 1 2; do 2932 echo "timestamp, slept: $am_has_slept" > conftest.file 2933 if ( 2934 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2935 if test "$*" = "X"; then 2936 # -L didn't work. 2937 set X `ls -t "$srcdir/configure" conftest.file` 2938 fi 2939 test "$2" = conftest.file 2940 ); then 2941 am_build_env_is_sane=yes 2942 break 2943 fi 2944 # Just in case. 2945 sleep "$am_cv_filesystem_timestamp_resolution" 2946 am_has_slept=yes 2947 done 2948 2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2950 printf "%s\n" "$am_build_env_is_sane" >&6; } 2951 if test "$am_build_env_is_sane" = no; then 2952 as_fn_error $? "newly created file is older than distributed files! 2953 Check your system clock" "$LINENO" 5 2954 fi 2955 2956 # If we didn't sleep, we still need to ensure time stamps of config.status and 2957 # generated files are strictly newer. 2958 am_sleep_pid= 2959 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2960 then : 2961 2962 else case e in #( 2963 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2964 am_sleep_pid=$! 2965 ;; 2966 esac 2967 fi 2968 2969 rm -f conftest.file 2970 2971 test "$program_prefix" != NONE && 2972 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2973 # Use a double $ so make ignores it. 2974 test "$program_suffix" != NONE && 2975 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2976 # Double any \ or $. 2977 # By default was 's,x,x', remove it if useless. 2978 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2979 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2980 2981 2982 # Expand $ac_aux_dir to an absolute path. 2983 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2984 2985 2986 if test x"${MISSING+set}" != xset; then 2987 MISSING="\${SHELL} '$am_aux_dir/missing'" 2988 fi 2989 # Use eval to expand $SHELL 2990 if eval "$MISSING --is-lightweight"; then 2991 am_missing_run="$MISSING " 2992 else 2993 am_missing_run= 2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2995 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2996 fi 2997 2998 if test x"${install_sh+set}" != xset; then 2999 case $am_aux_dir in 3000 *\ * | *\ *) 3001 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3002 *) 3003 install_sh="\${SHELL} $am_aux_dir/install-sh" 3004 esac 3005 fi 3006 3007 # Installed binaries are usually stripped using 'strip' when the user 3008 # run "make install-strip". However 'strip' might not be the right 3009 # tool to use in cross-compilation environments, therefore Automake 3010 # will honor the 'STRIP' environment variable to overrule this program. 3011 if test "$cross_compiling" != no; then 3012 if test -n "$ac_tool_prefix"; then 3013 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3014 set dummy ${ac_tool_prefix}strip; ac_word=$2 3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3016 printf %s "checking for $ac_word... " >&6; } 3017 if test ${ac_cv_prog_STRIP+y} 3018 then : 3019 printf %s "(cached) " >&6 3020 else case e in #( 3021 e) if test -n "$STRIP"; then 3022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3023 else 3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3025 for as_dir in $PATH 3026 do 3027 IFS=$as_save_IFS 3028 case $as_dir in #((( 3029 '') as_dir=./ ;; 3030 */) ;; 3031 *) as_dir=$as_dir/ ;; 3032 esac 3033 for ac_exec_ext in '' $ac_executable_extensions; do 3034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3035 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3037 break 2 3038 fi 3039 done 3040 done 3041 IFS=$as_save_IFS 3042 3043 fi ;; 3044 esac 3045 fi 3046 STRIP=$ac_cv_prog_STRIP 3047 if test -n "$STRIP"; then 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3049 printf "%s\n" "$STRIP" >&6; } 3050 else 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052 printf "%s\n" "no" >&6; } 3053 fi 3054 3055 3056 fi 3057 if test -z "$ac_cv_prog_STRIP"; then 3058 ac_ct_STRIP=$STRIP 3059 # Extract the first word of "strip", so it can be a program name with args. 3060 set dummy strip; ac_word=$2 3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062 printf %s "checking for $ac_word... " >&6; } 3063 if test ${ac_cv_prog_ac_ct_STRIP+y} 3064 then : 3065 printf %s "(cached) " >&6 3066 else case e in #( 3067 e) if test -n "$ac_ct_STRIP"; then 3068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3069 else 3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3071 for as_dir in $PATH 3072 do 3073 IFS=$as_save_IFS 3074 case $as_dir in #((( 3075 '') as_dir=./ ;; 3076 */) ;; 3077 *) as_dir=$as_dir/ ;; 3078 esac 3079 for ac_exec_ext in '' $ac_executable_extensions; do 3080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3081 ac_cv_prog_ac_ct_STRIP="strip" 3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3083 break 2 3084 fi 3085 done 3086 done 3087 IFS=$as_save_IFS 3088 3089 fi ;; 3090 esac 3091 fi 3092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3093 if test -n "$ac_ct_STRIP"; then 3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3095 printf "%s\n" "$ac_ct_STRIP" >&6; } 3096 else 3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3098 printf "%s\n" "no" >&6; } 3099 fi 3100 3101 if test "x$ac_ct_STRIP" = x; then 3102 STRIP=":" 3103 else 3104 case $cross_compiling:$ac_tool_warned in 3105 yes:) 3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3107 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3108 ac_tool_warned=yes ;; 3109 esac 3110 STRIP=$ac_ct_STRIP 3111 fi 3112 else 3113 STRIP="$ac_cv_prog_STRIP" 3114 fi 3115 3116 fi 3117 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3118 3119 3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3121 printf %s "checking for a race-free mkdir -p... " >&6; } 3122 if test -z "$MKDIR_P"; then 3123 if test ${ac_cv_path_mkdir+y} 3124 then : 3125 printf %s "(cached) " >&6 3126 else case e in #( 3127 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3128 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3129 do 3130 IFS=$as_save_IFS 3131 case $as_dir in #((( 3132 '') as_dir=./ ;; 3133 */) ;; 3134 *) as_dir=$as_dir/ ;; 3135 esac 3136 for ac_prog in mkdir gmkdir; do 3137 for ac_exec_ext in '' $ac_executable_extensions; do 3138 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3139 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3140 'mkdir ('*'coreutils) '* | \ 3141 *'BusyBox '* | \ 3142 'mkdir (fileutils) '4.1*) 3143 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3144 break 3;; 3145 esac 3146 done 3147 done 3148 done 3149 IFS=$as_save_IFS 3150 ;; 3151 esac 3152 fi 3153 3154 test -d ./--version && rmdir ./--version 3155 if test ${ac_cv_path_mkdir+y}; then 3156 MKDIR_P="$ac_cv_path_mkdir -p" 3157 else 3158 # As a last resort, use plain mkdir -p, 3159 # in the hope it doesn't have the bugs of ancient mkdir. 3160 MKDIR_P='mkdir -p' 3161 fi 3162 fi 3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3164 printf "%s\n" "$MKDIR_P" >&6; } 3165 3166 for ac_prog in gawk mawk nawk awk 3167 do 3168 # Extract the first word of "$ac_prog", so it can be a program name with args. 3169 set dummy $ac_prog; ac_word=$2 3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3171 printf %s "checking for $ac_word... " >&6; } 3172 if test ${ac_cv_prog_AWK+y} 3173 then : 3174 printf %s "(cached) " >&6 3175 else case e in #( 3176 e) if test -n "$AWK"; then 3177 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3178 else 3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180 for as_dir in $PATH 3181 do 3182 IFS=$as_save_IFS 3183 case $as_dir in #((( 3184 '') as_dir=./ ;; 3185 */) ;; 3186 *) as_dir=$as_dir/ ;; 3187 esac 3188 for ac_exec_ext in '' $ac_executable_extensions; do 3189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3190 ac_cv_prog_AWK="$ac_prog" 3191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3192 break 2 3193 fi 3194 done 3195 done 3196 IFS=$as_save_IFS 3197 3198 fi ;; 3199 esac 3200 fi 3201 AWK=$ac_cv_prog_AWK 3202 if test -n "$AWK"; then 3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3204 printf "%s\n" "$AWK" >&6; } 3205 else 3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3207 printf "%s\n" "no" >&6; } 3208 fi 3209 3210 3211 test -n "$AWK" && break 3212 done 3213 3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3215 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3216 set x ${MAKE-make} 3217 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3218 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3219 then : 3220 printf %s "(cached) " >&6 3221 else case e in #( 3222 e) cat >conftest.make <<\_ACEOF 3223 SHELL = /bin/sh 3224 all: 3225 @echo '@@@%%%=$(MAKE)=@@@%%%' 3226 _ACEOF 3227 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3228 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3229 *@@@%%%=?*=@@@%%%*) 3230 eval ac_cv_prog_make_${ac_make}_set=yes;; 3231 *) 3232 eval ac_cv_prog_make_${ac_make}_set=no;; 3233 esac 3234 rm -f conftest.make ;; 3235 esac 3236 fi 3237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3239 printf "%s\n" "yes" >&6; } 3240 SET_MAKE= 3241 else 3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243 printf "%s\n" "no" >&6; } 3244 SET_MAKE="MAKE=${MAKE-make}" 3245 fi 3246 3247 rm -rf .tst 2>/dev/null 3248 mkdir .tst 2>/dev/null 3249 if test -d .tst; then 3250 am__leading_dot=. 3251 else 3252 am__leading_dot=_ 3253 fi 3254 rmdir .tst 2>/dev/null 3255 3256 AM_DEFAULT_VERBOSITY=1 3257 # Check whether --enable-silent-rules was given. 3258 if test ${enable_silent_rules+y} 3259 then : 3260 enableval=$enable_silent_rules; 3261 fi 3262 3263 am_make=${MAKE-make} 3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3265 printf %s "checking whether $am_make supports nested variables... " >&6; } 3266 if test ${am_cv_make_support_nested_variables+y} 3267 then : 3268 printf %s "(cached) " >&6 3269 else case e in #( 3270 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3271 BAR0=false 3272 BAR1=true 3273 V=1 3274 am__doit: 3275 @$(TRUE) 3276 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3277 am_cv_make_support_nested_variables=yes 3278 else 3279 am_cv_make_support_nested_variables=no 3280 fi ;; 3281 esac 3282 fi 3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3284 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3285 AM_BACKSLASH='\' 3286 3287 am__rm_f_notfound= 3288 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3289 then : 3290 3291 else case e in #( 3292 e) am__rm_f_notfound='""' ;; 3293 esac 3294 fi 3295 3296 3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3298 printf %s "checking xargs -n works... " >&6; } 3299 if test ${am_cv_xargs_n_works+y} 3300 then : 3301 printf %s "(cached) " >&6 3302 else case e in #( 3303 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3304 3" 3305 then : 3306 am_cv_xargs_n_works=yes 3307 else case e in #( 3308 e) am_cv_xargs_n_works=no ;; 3309 esac 3310 fi ;; 3311 esac 3312 fi 3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3314 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3315 if test "$am_cv_xargs_n_works" = yes 3316 then : 3317 am__xargs_n='xargs -n' 3318 else case e in #( 3319 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3320 ;; 3321 esac 3322 fi 3323 3324 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3325 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3326 # is not polluted with repeated "-I." 3327 am__isrc=' -I$(srcdir)' 3328 # test to see if srcdir already configured 3329 if test -f $srcdir/config.status; then 3330 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3331 fi 3332 fi 3333 3334 # test whether we have cygpath 3335 if test -z "$CYGPATH_W"; then 3336 if (cygpath --version) >/dev/null 2>/dev/null; then 3337 CYGPATH_W='cygpath -w' 3338 else 3339 CYGPATH_W=echo 3340 fi 3341 fi 3342 3343 3344 # Define the identity of the package. 3345 PACKAGE='libXrender' 3346 VERSION='0.9.12' 3347 3348 3349 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3350 3351 3352 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3353 3354 # Some tools Automake needs. 3355 3356 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3357 3358 3359 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3360 3361 3362 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3363 3364 3365 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3366 3367 3368 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3369 3370 # For better backward compatibility. To be removed once Automake 1.9.x 3371 # dies out for good. For more background, see: 3372 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3373 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3374 mkdir_p='$(MKDIR_P)' 3375 3376 # We need awk for the "check" target (and possibly the TAP driver). The 3377 # system "awk" is bad on some platforms. 3378 # Always define AMTAR for backward compatibility. Yes, it's still used 3379 # in the wild :-( We should find a proper way to deprecate it ... 3380 AMTAR='$${TAR-tar}' 3381 3382 3383 # We'll loop over all known methods to create a tar archive until one works. 3384 _am_tools='gnutar pax cpio none' 3385 3386 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3387 3388 3389 3390 3391 3392 # Variables for tags utilities; see am/tags.am 3393 if test -z "$CTAGS"; then 3394 CTAGS=ctags 3395 fi 3396 3397 if test -z "$ETAGS"; then 3398 ETAGS=etags 3399 fi 3400 3401 if test -z "$CSCOPE"; then 3402 CSCOPE=cscope 3403 fi 3404 3405 3406 3407 3408 3409 3410 3411 3412 # Initialize libtool 3413 case `pwd` in 3414 *\ * | *\ *) 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3416 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3417 esac 3418 3419 3420 3421 macro_version='2.5.4' 3422 macro_revision='2.5.4' 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 ltmain=$ac_aux_dir/ltmain.sh 3438 3439 3440 3441 # Make sure we can run config.sub. 3442 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3443 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3444 3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3446 printf %s "checking build system type... " >&6; } 3447 if test ${ac_cv_build+y} 3448 then : 3449 printf %s "(cached) " >&6 3450 else case e in #( 3451 e) ac_build_alias=$build_alias 3452 test "x$ac_build_alias" = x && 3453 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3454 test "x$ac_build_alias" = x && 3455 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3456 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3457 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3458 ;; 3459 esac 3460 fi 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3462 printf "%s\n" "$ac_cv_build" >&6; } 3463 case $ac_cv_build in 3464 *-*-*) ;; 3465 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3466 esac 3467 build=$ac_cv_build 3468 ac_save_IFS=$IFS; IFS='-' 3469 set x $ac_cv_build 3470 shift 3471 build_cpu=$1 3472 build_vendor=$2 3473 shift; shift 3474 # Remember, the first character of IFS is used to create $*, 3475 # except with old shells: 3476 build_os=$* 3477 IFS=$ac_save_IFS 3478 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3479 3480 3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3482 printf %s "checking host system type... " >&6; } 3483 if test ${ac_cv_host+y} 3484 then : 3485 printf %s "(cached) " >&6 3486 else case e in #( 3487 e) if test "x$host_alias" = x; then 3488 ac_cv_host=$ac_cv_build 3489 else 3490 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3491 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3492 fi 3493 ;; 3494 esac 3495 fi 3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3497 printf "%s\n" "$ac_cv_host" >&6; } 3498 case $ac_cv_host in 3499 *-*-*) ;; 3500 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3501 esac 3502 host=$ac_cv_host 3503 ac_save_IFS=$IFS; IFS='-' 3504 set x $ac_cv_host 3505 shift 3506 host_cpu=$1 3507 host_vendor=$2 3508 shift; shift 3509 # Remember, the first character of IFS is used to create $*, 3510 # except with old shells: 3511 host_os=$* 3512 IFS=$ac_save_IFS 3513 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3514 3515 3516 # Backslashify metacharacters that are still active within 3517 # double-quoted strings. 3518 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3519 3520 # Same as above, but do not quote variable references. 3521 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3522 3523 # Sed substitution to delay expansion of an escaped shell variable in a 3524 # double_quote_subst'ed string. 3525 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3526 3527 # Sed substitution to delay expansion of an escaped single quote. 3528 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3529 3530 # Sed substitution to avoid accidental globbing in evaled expressions 3531 no_glob_subst='s/\*/\\\*/g' 3532 3533 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3534 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3535 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3536 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3538 printf %s "checking how to print strings... " >&6; } 3539 # Test print first, because it will be a builtin if present. 3540 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3541 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3542 ECHO='print -r --' 3543 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3544 ECHO='printf %s\n' 3545 else 3546 # Use this function as a fallback that always works. 3547 func_fallback_echo () 3548 { 3549 eval 'cat <<_LTECHO_EOF 3550 $1 3551 _LTECHO_EOF' 3552 } 3553 ECHO='func_fallback_echo' 3554 fi 3555 3556 # func_echo_all arg... 3557 # Invoke $ECHO with all args, space-separated. 3558 func_echo_all () 3559 { 3560 $ECHO "" 3561 } 3562 3563 case $ECHO in 3564 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3565 printf "%s\n" "printf" >&6; } ;; 3566 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3567 printf "%s\n" "print -r" >&6; } ;; 3568 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3569 printf "%s\n" "cat" >&6; } ;; 3570 esac 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 DEPDIR="${am__leading_dot}deps" 3595 3596 ac_config_commands="$ac_config_commands depfiles" 3597 3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3599 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3600 cat > confinc.mk << 'END' 3601 am__doit: 3602 @echo this is the am__doit target >confinc.out 3603 .PHONY: am__doit 3604 END 3605 am__include="#" 3606 am__quote= 3607 # BSD make does it like this. 3608 echo '.include "confinc.mk" # ignored' > confmf.BSD 3609 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3610 echo 'include confinc.mk # ignored' > confmf.GNU 3611 _am_result=no 3612 for s in GNU BSD; do 3613 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3614 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3615 ac_status=$? 3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 (exit $ac_status); } 3618 case $?:`cat confinc.out 2>/dev/null` in #( 3619 '0:this is the am__doit target') : 3620 case $s in #( 3621 BSD) : 3622 am__include='.include' am__quote='"' ;; #( 3623 *) : 3624 am__include='include' am__quote='' ;; 3625 esac ;; #( 3626 *) : 3627 ;; 3628 esac 3629 if test "$am__include" != "#"; then 3630 _am_result="yes ($s style)" 3631 break 3632 fi 3633 done 3634 rm -f confinc.* confmf.* 3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3636 printf "%s\n" "${_am_result}" >&6; } 3637 3638 # Check whether --enable-dependency-tracking was given. 3639 if test ${enable_dependency_tracking+y} 3640 then : 3641 enableval=$enable_dependency_tracking; 3642 fi 3643 3644 if test "x$enable_dependency_tracking" != xno; then 3645 am_depcomp="$ac_aux_dir/depcomp" 3646 AMDEPBACKSLASH='\' 3647 am__nodep='_no' 3648 fi 3649 if test "x$enable_dependency_tracking" != xno; then 3650 AMDEP_TRUE= 3651 AMDEP_FALSE='#' 3652 else 3653 AMDEP_TRUE='#' 3654 AMDEP_FALSE= 3655 fi 3656 3657 3658 ac_ext=c 3659 ac_cpp='$CPP $CPPFLAGS' 3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3663 if test -n "$ac_tool_prefix"; then 3664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3665 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3667 printf %s "checking for $ac_word... " >&6; } 3668 if test ${ac_cv_prog_CC+y} 3669 then : 3670 printf %s "(cached) " >&6 3671 else case e in #( 3672 e) if test -n "$CC"; then 3673 ac_cv_prog_CC="$CC" # Let the user override the test. 3674 else 3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3676 for as_dir in $PATH 3677 do 3678 IFS=$as_save_IFS 3679 case $as_dir in #((( 3680 '') as_dir=./ ;; 3681 */) ;; 3682 *) as_dir=$as_dir/ ;; 3683 esac 3684 for ac_exec_ext in '' $ac_executable_extensions; do 3685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3686 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3688 break 2 3689 fi 3690 done 3691 done 3692 IFS=$as_save_IFS 3693 3694 fi ;; 3695 esac 3696 fi 3697 CC=$ac_cv_prog_CC 3698 if test -n "$CC"; then 3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3700 printf "%s\n" "$CC" >&6; } 3701 else 3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3703 printf "%s\n" "no" >&6; } 3704 fi 3705 3706 3707 fi 3708 if test -z "$ac_cv_prog_CC"; then 3709 ac_ct_CC=$CC 3710 # Extract the first word of "gcc", so it can be a program name with args. 3711 set dummy gcc; ac_word=$2 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3713 printf %s "checking for $ac_word... " >&6; } 3714 if test ${ac_cv_prog_ac_ct_CC+y} 3715 then : 3716 printf %s "(cached) " >&6 3717 else case e in #( 3718 e) if test -n "$ac_ct_CC"; then 3719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3720 else 3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3722 for as_dir in $PATH 3723 do 3724 IFS=$as_save_IFS 3725 case $as_dir in #((( 3726 '') as_dir=./ ;; 3727 */) ;; 3728 *) as_dir=$as_dir/ ;; 3729 esac 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_ac_ct_CC="gcc" 3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736 done 3737 done 3738 IFS=$as_save_IFS 3739 3740 fi ;; 3741 esac 3742 fi 3743 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3744 if test -n "$ac_ct_CC"; then 3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3746 printf "%s\n" "$ac_ct_CC" >&6; } 3747 else 3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3749 printf "%s\n" "no" >&6; } 3750 fi 3751 3752 if test "x$ac_ct_CC" = x; then 3753 CC="" 3754 else 3755 case $cross_compiling:$ac_tool_warned in 3756 yes:) 3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3759 ac_tool_warned=yes ;; 3760 esac 3761 CC=$ac_ct_CC 3762 fi 3763 else 3764 CC="$ac_cv_prog_CC" 3765 fi 3766 3767 if test -z "$CC"; then 3768 if test -n "$ac_tool_prefix"; then 3769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3770 set dummy ${ac_tool_prefix}cc; ac_word=$2 3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3772 printf %s "checking for $ac_word... " >&6; } 3773 if test ${ac_cv_prog_CC+y} 3774 then : 3775 printf %s "(cached) " >&6 3776 else case e in #( 3777 e) if test -n "$CC"; then 3778 ac_cv_prog_CC="$CC" # Let the user override the test. 3779 else 3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3781 for as_dir in $PATH 3782 do 3783 IFS=$as_save_IFS 3784 case $as_dir in #((( 3785 '') as_dir=./ ;; 3786 */) ;; 3787 *) as_dir=$as_dir/ ;; 3788 esac 3789 for ac_exec_ext in '' $ac_executable_extensions; do 3790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3791 ac_cv_prog_CC="${ac_tool_prefix}cc" 3792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3793 break 2 3794 fi 3795 done 3796 done 3797 IFS=$as_save_IFS 3798 3799 fi ;; 3800 esac 3801 fi 3802 CC=$ac_cv_prog_CC 3803 if test -n "$CC"; then 3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3805 printf "%s\n" "$CC" >&6; } 3806 else 3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3808 printf "%s\n" "no" >&6; } 3809 fi 3810 3811 3812 fi 3813 fi 3814 if test -z "$CC"; then 3815 # Extract the first word of "cc", so it can be a program name with args. 3816 set dummy cc; ac_word=$2 3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3818 printf %s "checking for $ac_word... " >&6; } 3819 if test ${ac_cv_prog_CC+y} 3820 then : 3821 printf %s "(cached) " >&6 3822 else case e in #( 3823 e) if test -n "$CC"; then 3824 ac_cv_prog_CC="$CC" # Let the user override the test. 3825 else 3826 ac_prog_rejected=no 3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3828 for as_dir in $PATH 3829 do 3830 IFS=$as_save_IFS 3831 case $as_dir in #((( 3832 '') as_dir=./ ;; 3833 */) ;; 3834 *) as_dir=$as_dir/ ;; 3835 esac 3836 for ac_exec_ext in '' $ac_executable_extensions; do 3837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3838 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3839 ac_prog_rejected=yes 3840 continue 3841 fi 3842 ac_cv_prog_CC="cc" 3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3844 break 2 3845 fi 3846 done 3847 done 3848 IFS=$as_save_IFS 3849 3850 if test $ac_prog_rejected = yes; then 3851 # We found a bogon in the path, so make sure we never use it. 3852 set dummy $ac_cv_prog_CC 3853 shift 3854 if test $# != 0; then 3855 # We chose a different compiler from the bogus one. 3856 # However, it has the same basename, so the bogon will be chosen 3857 # first if we set CC to just the basename; use the full file name. 3858 shift 3859 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3860 fi 3861 fi 3862 fi ;; 3863 esac 3864 fi 3865 CC=$ac_cv_prog_CC 3866 if test -n "$CC"; then 3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3868 printf "%s\n" "$CC" >&6; } 3869 else 3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3871 printf "%s\n" "no" >&6; } 3872 fi 3873 3874 3875 fi 3876 if test -z "$CC"; then 3877 if test -n "$ac_tool_prefix"; then 3878 for ac_prog in cl.exe 3879 do 3880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3883 printf %s "checking for $ac_word... " >&6; } 3884 if test ${ac_cv_prog_CC+y} 3885 then : 3886 printf %s "(cached) " >&6 3887 else case e in #( 3888 e) if test -n "$CC"; then 3889 ac_cv_prog_CC="$CC" # Let the user override the test. 3890 else 3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3892 for as_dir in $PATH 3893 do 3894 IFS=$as_save_IFS 3895 case $as_dir in #((( 3896 '') as_dir=./ ;; 3897 */) ;; 3898 *) as_dir=$as_dir/ ;; 3899 esac 3900 for ac_exec_ext in '' $ac_executable_extensions; do 3901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3902 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3904 break 2 3905 fi 3906 done 3907 done 3908 IFS=$as_save_IFS 3909 3910 fi ;; 3911 esac 3912 fi 3913 CC=$ac_cv_prog_CC 3914 if test -n "$CC"; then 3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3916 printf "%s\n" "$CC" >&6; } 3917 else 3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3919 printf "%s\n" "no" >&6; } 3920 fi 3921 3922 3923 test -n "$CC" && break 3924 done 3925 fi 3926 if test -z "$CC"; then 3927 ac_ct_CC=$CC 3928 for ac_prog in cl.exe 3929 do 3930 # Extract the first word of "$ac_prog", so it can be a program name with args. 3931 set dummy $ac_prog; ac_word=$2 3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3933 printf %s "checking for $ac_word... " >&6; } 3934 if test ${ac_cv_prog_ac_ct_CC+y} 3935 then : 3936 printf %s "(cached) " >&6 3937 else case e in #( 3938 e) if test -n "$ac_ct_CC"; then 3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3940 else 3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3942 for as_dir in $PATH 3943 do 3944 IFS=$as_save_IFS 3945 case $as_dir in #((( 3946 '') as_dir=./ ;; 3947 */) ;; 3948 *) as_dir=$as_dir/ ;; 3949 esac 3950 for ac_exec_ext in '' $ac_executable_extensions; do 3951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3952 ac_cv_prog_ac_ct_CC="$ac_prog" 3953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3954 break 2 3955 fi 3956 done 3957 done 3958 IFS=$as_save_IFS 3959 3960 fi ;; 3961 esac 3962 fi 3963 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3964 if test -n "$ac_ct_CC"; then 3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3966 printf "%s\n" "$ac_ct_CC" >&6; } 3967 else 3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3969 printf "%s\n" "no" >&6; } 3970 fi 3971 3972 3973 test -n "$ac_ct_CC" && break 3974 done 3975 3976 if test "x$ac_ct_CC" = x; then 3977 CC="" 3978 else 3979 case $cross_compiling:$ac_tool_warned in 3980 yes:) 3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3982 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3983 ac_tool_warned=yes ;; 3984 esac 3985 CC=$ac_ct_CC 3986 fi 3987 fi 3988 3989 fi 3990 if test -z "$CC"; then 3991 if test -n "$ac_tool_prefix"; then 3992 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3993 set dummy ${ac_tool_prefix}clang; ac_word=$2 3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3995 printf %s "checking for $ac_word... " >&6; } 3996 if test ${ac_cv_prog_CC+y} 3997 then : 3998 printf %s "(cached) " >&6 3999 else case e in #( 4000 e) if test -n "$CC"; then 4001 ac_cv_prog_CC="$CC" # Let the user override the test. 4002 else 4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4004 for as_dir in $PATH 4005 do 4006 IFS=$as_save_IFS 4007 case $as_dir in #((( 4008 '') as_dir=./ ;; 4009 */) ;; 4010 *) as_dir=$as_dir/ ;; 4011 esac 4012 for ac_exec_ext in '' $ac_executable_extensions; do 4013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4014 ac_cv_prog_CC="${ac_tool_prefix}clang" 4015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4016 break 2 4017 fi 4018 done 4019 done 4020 IFS=$as_save_IFS 4021 4022 fi ;; 4023 esac 4024 fi 4025 CC=$ac_cv_prog_CC 4026 if test -n "$CC"; then 4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4028 printf "%s\n" "$CC" >&6; } 4029 else 4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4031 printf "%s\n" "no" >&6; } 4032 fi 4033 4034 4035 fi 4036 if test -z "$ac_cv_prog_CC"; then 4037 ac_ct_CC=$CC 4038 # Extract the first word of "clang", so it can be a program name with args. 4039 set dummy clang; ac_word=$2 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4041 printf %s "checking for $ac_word... " >&6; } 4042 if test ${ac_cv_prog_ac_ct_CC+y} 4043 then : 4044 printf %s "(cached) " >&6 4045 else case e in #( 4046 e) if test -n "$ac_ct_CC"; then 4047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4048 else 4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4050 for as_dir in $PATH 4051 do 4052 IFS=$as_save_IFS 4053 case $as_dir in #((( 4054 '') as_dir=./ ;; 4055 */) ;; 4056 *) as_dir=$as_dir/ ;; 4057 esac 4058 for ac_exec_ext in '' $ac_executable_extensions; do 4059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4060 ac_cv_prog_ac_ct_CC="clang" 4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4062 break 2 4063 fi 4064 done 4065 done 4066 IFS=$as_save_IFS 4067 4068 fi ;; 4069 esac 4070 fi 4071 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4072 if test -n "$ac_ct_CC"; then 4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4074 printf "%s\n" "$ac_ct_CC" >&6; } 4075 else 4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4077 printf "%s\n" "no" >&6; } 4078 fi 4079 4080 if test "x$ac_ct_CC" = x; then 4081 CC="" 4082 else 4083 case $cross_compiling:$ac_tool_warned in 4084 yes:) 4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4086 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4087 ac_tool_warned=yes ;; 4088 esac 4089 CC=$ac_ct_CC 4090 fi 4091 else 4092 CC="$ac_cv_prog_CC" 4093 fi 4094 4095 fi 4096 4097 4098 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4099 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4100 as_fn_error $? "no acceptable C compiler found in \$PATH 4101 See 'config.log' for more details" "$LINENO" 5; } 4102 4103 # Provide some information about the compiler. 4104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4105 set X $ac_compile 4106 ac_compiler=$2 4107 for ac_option in --version -v -V -qversion -version; do 4108 { { ac_try="$ac_compiler $ac_option >&5" 4109 case "(($ac_try" in 4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4111 *) ac_try_echo=$ac_try;; 4112 esac 4113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4114 printf "%s\n" "$ac_try_echo"; } >&5 4115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4116 ac_status=$? 4117 if test -s conftest.err; then 4118 sed '10a\ 4119 ... rest of stderr output deleted ... 4120 10q' conftest.err >conftest.er1 4121 cat conftest.er1 >&5 4122 fi 4123 rm -f conftest.er1 conftest.err 4124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4125 test $ac_status = 0; } 4126 done 4127 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129 /* end confdefs.h. */ 4130 4131 int 4132 main (void) 4133 { 4134 4135 ; 4136 return 0; 4137 } 4138 _ACEOF 4139 ac_clean_files_save=$ac_clean_files 4140 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4141 # Try to create an executable without -o first, disregard a.out. 4142 # It will help us diagnose broken compilers, and finding out an intuition 4143 # of exeext. 4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4145 printf %s "checking whether the C compiler works... " >&6; } 4146 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4147 4148 # The possible output files: 4149 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4150 4151 ac_rmfiles= 4152 for ac_file in $ac_files 4153 do 4154 case $ac_file in 4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4156 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4157 esac 4158 done 4159 rm -f $ac_rmfiles 4160 4161 if { { ac_try="$ac_link_default" 4162 case "(($ac_try" in 4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4164 *) ac_try_echo=$ac_try;; 4165 esac 4166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4167 printf "%s\n" "$ac_try_echo"; } >&5 4168 (eval "$ac_link_default") 2>&5 4169 ac_status=$? 4170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4171 test $ac_status = 0; } 4172 then : 4173 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4174 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4175 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4176 # so that the user can short-circuit this test for compilers unknown to 4177 # Autoconf. 4178 for ac_file in $ac_files '' 4179 do 4180 test -f "$ac_file" || continue 4181 case $ac_file in 4182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4183 ;; 4184 [ab].out ) 4185 # We found the default executable, but exeext='' is most 4186 # certainly right. 4187 break;; 4188 *.* ) 4189 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4190 then :; else 4191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4192 fi 4193 # We set ac_cv_exeext here because the later test for it is not 4194 # safe: cross compilers may not add the suffix if given an '-o' 4195 # argument, so we may need to know it at that point already. 4196 # Even if this section looks crufty: it has the advantage of 4197 # actually working. 4198 break;; 4199 * ) 4200 break;; 4201 esac 4202 done 4203 test "$ac_cv_exeext" = no && ac_cv_exeext= 4204 4205 else case e in #( 4206 e) ac_file='' ;; 4207 esac 4208 fi 4209 if test -z "$ac_file" 4210 then : 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4212 printf "%s\n" "no" >&6; } 4213 printf "%s\n" "$as_me: failed program was:" >&5 4214 sed 's/^/| /' conftest.$ac_ext >&5 4215 4216 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4217 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4218 as_fn_error 77 "C compiler cannot create executables 4219 See 'config.log' for more details" "$LINENO" 5; } 4220 else case e in #( 4221 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4222 printf "%s\n" "yes" >&6; } ;; 4223 esac 4224 fi 4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4226 printf %s "checking for C compiler default output file name... " >&6; } 4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4228 printf "%s\n" "$ac_file" >&6; } 4229 ac_exeext=$ac_cv_exeext 4230 4231 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4232 ac_clean_files=$ac_clean_files_save 4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4234 printf %s "checking for suffix of executables... " >&6; } 4235 if { { ac_try="$ac_link" 4236 case "(($ac_try" in 4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4238 *) ac_try_echo=$ac_try;; 4239 esac 4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4241 printf "%s\n" "$ac_try_echo"; } >&5 4242 (eval "$ac_link") 2>&5 4243 ac_status=$? 4244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4245 test $ac_status = 0; } 4246 then : 4247 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4248 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4249 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4250 # 'rm'. 4251 for ac_file in conftest.exe conftest conftest.*; do 4252 test -f "$ac_file" || continue 4253 case $ac_file in 4254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4255 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4256 break;; 4257 * ) break;; 4258 esac 4259 done 4260 else case e in #( 4261 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4262 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4263 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4264 See 'config.log' for more details" "$LINENO" 5; } ;; 4265 esac 4266 fi 4267 rm -f conftest conftest$ac_cv_exeext 4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4269 printf "%s\n" "$ac_cv_exeext" >&6; } 4270 4271 rm -f conftest.$ac_ext 4272 EXEEXT=$ac_cv_exeext 4273 ac_exeext=$EXEEXT 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275 /* end confdefs.h. */ 4276 #include <stdio.h> 4277 int 4278 main (void) 4279 { 4280 FILE *f = fopen ("conftest.out", "w"); 4281 if (!f) 4282 return 1; 4283 return ferror (f) || fclose (f) != 0; 4284 4285 ; 4286 return 0; 4287 } 4288 _ACEOF 4289 ac_clean_files="$ac_clean_files conftest.out" 4290 # Check that the compiler produces executables we can run. If not, either 4291 # the compiler is broken, or we cross compile. 4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4293 printf %s "checking whether we are cross compiling... " >&6; } 4294 if test "$cross_compiling" != yes; then 4295 { { ac_try="$ac_link" 4296 case "(($ac_try" in 4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4298 *) ac_try_echo=$ac_try;; 4299 esac 4300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4301 printf "%s\n" "$ac_try_echo"; } >&5 4302 (eval "$ac_link") 2>&5 4303 ac_status=$? 4304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4305 test $ac_status = 0; } 4306 if { ac_try='./conftest$ac_cv_exeext' 4307 { { case "(($ac_try" in 4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4309 *) ac_try_echo=$ac_try;; 4310 esac 4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4312 printf "%s\n" "$ac_try_echo"; } >&5 4313 (eval "$ac_try") 2>&5 4314 ac_status=$? 4315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4316 test $ac_status = 0; }; }; then 4317 cross_compiling=no 4318 else 4319 if test "$cross_compiling" = maybe; then 4320 cross_compiling=yes 4321 else 4322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4323 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4324 as_fn_error 77 "cannot run C compiled programs. 4325 If you meant to cross compile, use '--host'. 4326 See 'config.log' for more details" "$LINENO" 5; } 4327 fi 4328 fi 4329 fi 4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4331 printf "%s\n" "$cross_compiling" >&6; } 4332 4333 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4334 conftest.o conftest.obj conftest.out 4335 ac_clean_files=$ac_clean_files_save 4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4337 printf %s "checking for suffix of object files... " >&6; } 4338 if test ${ac_cv_objext+y} 4339 then : 4340 printf %s "(cached) " >&6 4341 else case e in #( 4342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4343 /* end confdefs.h. */ 4344 4345 int 4346 main (void) 4347 { 4348 4349 ; 4350 return 0; 4351 } 4352 _ACEOF 4353 rm -f conftest.o conftest.obj 4354 if { { ac_try="$ac_compile" 4355 case "(($ac_try" in 4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4357 *) ac_try_echo=$ac_try;; 4358 esac 4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4360 printf "%s\n" "$ac_try_echo"; } >&5 4361 (eval "$ac_compile") 2>&5 4362 ac_status=$? 4363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4364 test $ac_status = 0; } 4365 then : 4366 for ac_file in conftest.o conftest.obj conftest.*; do 4367 test -f "$ac_file" || continue; 4368 case $ac_file in 4369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4370 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4371 break;; 4372 esac 4373 done 4374 else case e in #( 4375 e) printf "%s\n" "$as_me: failed program was:" >&5 4376 sed 's/^/| /' conftest.$ac_ext >&5 4377 4378 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4379 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4380 as_fn_error $? "cannot compute suffix of object files: cannot compile 4381 See 'config.log' for more details" "$LINENO" 5; } ;; 4382 esac 4383 fi 4384 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4385 esac 4386 fi 4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4388 printf "%s\n" "$ac_cv_objext" >&6; } 4389 OBJEXT=$ac_cv_objext 4390 ac_objext=$OBJEXT 4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4392 printf %s "checking whether the compiler supports GNU C... " >&6; } 4393 if test ${ac_cv_c_compiler_gnu+y} 4394 then : 4395 printf %s "(cached) " >&6 4396 else case e in #( 4397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398 /* end confdefs.h. */ 4399 4400 int 4401 main (void) 4402 { 4403 #ifndef __GNUC__ 4404 choke me 4405 #endif 4406 4407 ; 4408 return 0; 4409 } 4410 _ACEOF 4411 if ac_fn_c_try_compile "$LINENO" 4412 then : 4413 ac_compiler_gnu=yes 4414 else case e in #( 4415 e) ac_compiler_gnu=no ;; 4416 esac 4417 fi 4418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4419 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4420 ;; 4421 esac 4422 fi 4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4424 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4426 4427 if test $ac_compiler_gnu = yes; then 4428 GCC=yes 4429 else 4430 GCC= 4431 fi 4432 ac_test_CFLAGS=${CFLAGS+y} 4433 ac_save_CFLAGS=$CFLAGS 4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4435 printf %s "checking whether $CC accepts -g... " >&6; } 4436 if test ${ac_cv_prog_cc_g+y} 4437 then : 4438 printf %s "(cached) " >&6 4439 else case e in #( 4440 e) ac_save_c_werror_flag=$ac_c_werror_flag 4441 ac_c_werror_flag=yes 4442 ac_cv_prog_cc_g=no 4443 CFLAGS="-g" 4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4445 /* end confdefs.h. */ 4446 4447 int 4448 main (void) 4449 { 4450 4451 ; 4452 return 0; 4453 } 4454 _ACEOF 4455 if ac_fn_c_try_compile "$LINENO" 4456 then : 4457 ac_cv_prog_cc_g=yes 4458 else case e in #( 4459 e) CFLAGS="" 4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4461 /* end confdefs.h. */ 4462 4463 int 4464 main (void) 4465 { 4466 4467 ; 4468 return 0; 4469 } 4470 _ACEOF 4471 if ac_fn_c_try_compile "$LINENO" 4472 then : 4473 4474 else case e in #( 4475 e) ac_c_werror_flag=$ac_save_c_werror_flag 4476 CFLAGS="-g" 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478 /* end confdefs.h. */ 4479 4480 int 4481 main (void) 4482 { 4483 4484 ; 4485 return 0; 4486 } 4487 _ACEOF 4488 if ac_fn_c_try_compile "$LINENO" 4489 then : 4490 ac_cv_prog_cc_g=yes 4491 fi 4492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4493 esac 4494 fi 4495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4496 esac 4497 fi 4498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4499 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4500 esac 4501 fi 4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4503 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4504 if test $ac_test_CFLAGS; then 4505 CFLAGS=$ac_save_CFLAGS 4506 elif test $ac_cv_prog_cc_g = yes; then 4507 if test "$GCC" = yes; then 4508 CFLAGS="-g -O2" 4509 else 4510 CFLAGS="-g" 4511 fi 4512 else 4513 if test "$GCC" = yes; then 4514 CFLAGS="-O2" 4515 else 4516 CFLAGS= 4517 fi 4518 fi 4519 ac_prog_cc_stdc=no 4520 if test x$ac_prog_cc_stdc = xno 4521 then : 4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4523 printf %s "checking for $CC option to enable C11 features... " >&6; } 4524 if test ${ac_cv_prog_cc_c11+y} 4525 then : 4526 printf %s "(cached) " >&6 4527 else case e in #( 4528 e) ac_cv_prog_cc_c11=no 4529 ac_save_CC=$CC 4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4531 /* end confdefs.h. */ 4532 $ac_c_conftest_c11_program 4533 _ACEOF 4534 for ac_arg in '' -std=gnu11 4535 do 4536 CC="$ac_save_CC $ac_arg" 4537 if ac_fn_c_try_compile "$LINENO" 4538 then : 4539 ac_cv_prog_cc_c11=$ac_arg 4540 fi 4541 rm -f core conftest.err conftest.$ac_objext conftest.beam 4542 test "x$ac_cv_prog_cc_c11" != "xno" && break 4543 done 4544 rm -f conftest.$ac_ext 4545 CC=$ac_save_CC ;; 4546 esac 4547 fi 4548 4549 if test "x$ac_cv_prog_cc_c11" = xno 4550 then : 4551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4552 printf "%s\n" "unsupported" >&6; } 4553 else case e in #( 4554 e) if test "x$ac_cv_prog_cc_c11" = x 4555 then : 4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4557 printf "%s\n" "none needed" >&6; } 4558 else case e in #( 4559 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4560 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4561 CC="$CC $ac_cv_prog_cc_c11" ;; 4562 esac 4563 fi 4564 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4565 ac_prog_cc_stdc=c11 ;; 4566 esac 4567 fi 4568 fi 4569 if test x$ac_prog_cc_stdc = xno 4570 then : 4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4572 printf %s "checking for $CC option to enable C99 features... " >&6; } 4573 if test ${ac_cv_prog_cc_c99+y} 4574 then : 4575 printf %s "(cached) " >&6 4576 else case e in #( 4577 e) ac_cv_prog_cc_c99=no 4578 ac_save_CC=$CC 4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4580 /* end confdefs.h. */ 4581 $ac_c_conftest_c99_program 4582 _ACEOF 4583 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4584 do 4585 CC="$ac_save_CC $ac_arg" 4586 if ac_fn_c_try_compile "$LINENO" 4587 then : 4588 ac_cv_prog_cc_c99=$ac_arg 4589 fi 4590 rm -f core conftest.err conftest.$ac_objext conftest.beam 4591 test "x$ac_cv_prog_cc_c99" != "xno" && break 4592 done 4593 rm -f conftest.$ac_ext 4594 CC=$ac_save_CC ;; 4595 esac 4596 fi 4597 4598 if test "x$ac_cv_prog_cc_c99" = xno 4599 then : 4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4601 printf "%s\n" "unsupported" >&6; } 4602 else case e in #( 4603 e) if test "x$ac_cv_prog_cc_c99" = x 4604 then : 4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4606 printf "%s\n" "none needed" >&6; } 4607 else case e in #( 4608 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4609 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4610 CC="$CC $ac_cv_prog_cc_c99" ;; 4611 esac 4612 fi 4613 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4614 ac_prog_cc_stdc=c99 ;; 4615 esac 4616 fi 4617 fi 4618 if test x$ac_prog_cc_stdc = xno 4619 then : 4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4621 printf %s "checking for $CC option to enable C89 features... " >&6; } 4622 if test ${ac_cv_prog_cc_c89+y} 4623 then : 4624 printf %s "(cached) " >&6 4625 else case e in #( 4626 e) ac_cv_prog_cc_c89=no 4627 ac_save_CC=$CC 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4629 /* end confdefs.h. */ 4630 $ac_c_conftest_c89_program 4631 _ACEOF 4632 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4633 do 4634 CC="$ac_save_CC $ac_arg" 4635 if ac_fn_c_try_compile "$LINENO" 4636 then : 4637 ac_cv_prog_cc_c89=$ac_arg 4638 fi 4639 rm -f core conftest.err conftest.$ac_objext conftest.beam 4640 test "x$ac_cv_prog_cc_c89" != "xno" && break 4641 done 4642 rm -f conftest.$ac_ext 4643 CC=$ac_save_CC ;; 4644 esac 4645 fi 4646 4647 if test "x$ac_cv_prog_cc_c89" = xno 4648 then : 4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4650 printf "%s\n" "unsupported" >&6; } 4651 else case e in #( 4652 e) if test "x$ac_cv_prog_cc_c89" = x 4653 then : 4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4655 printf "%s\n" "none needed" >&6; } 4656 else case e in #( 4657 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4658 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4659 CC="$CC $ac_cv_prog_cc_c89" ;; 4660 esac 4661 fi 4662 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4663 ac_prog_cc_stdc=c89 ;; 4664 esac 4665 fi 4666 fi 4667 4668 ac_ext=c 4669 ac_cpp='$CPP $CPPFLAGS' 4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4673 4674 4675 ac_ext=c 4676 ac_cpp='$CPP $CPPFLAGS' 4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4681 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4682 if test ${am_cv_prog_cc_c_o+y} 4683 then : 4684 printf %s "(cached) " >&6 4685 else case e in #( 4686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4687 /* end confdefs.h. */ 4688 4689 int 4690 main (void) 4691 { 4692 4693 ; 4694 return 0; 4695 } 4696 _ACEOF 4697 # Make sure it works both with $CC and with simple cc. 4698 # Following AC_PROG_CC_C_O, we do the test twice because some 4699 # compilers refuse to overwrite an existing .o file with -o, 4700 # though they will create one. 4701 am_cv_prog_cc_c_o=yes 4702 for am_i in 1 2; do 4703 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4704 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4705 ac_status=$? 4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4707 (exit $ac_status); } \ 4708 && test -f conftest2.$ac_objext; then 4709 : OK 4710 else 4711 am_cv_prog_cc_c_o=no 4712 break 4713 fi 4714 done 4715 rm -f core conftest* 4716 unset am_i ;; 4717 esac 4718 fi 4719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4720 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4721 if test "$am_cv_prog_cc_c_o" != yes; then 4722 # Losing compiler, so override with the script. 4723 # FIXME: It is wrong to rewrite CC. 4724 # But if we don't then we get into trouble of one sort or another. 4725 # A longer-term fix would be to have automake use am__CC in this case, 4726 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4727 CC="$am_aux_dir/compile $CC" 4728 fi 4729 ac_ext=c 4730 ac_cpp='$CPP $CPPFLAGS' 4731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4733 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4734 4735 4736 depcc="$CC" am_compiler_list= 4737 4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4739 printf %s "checking dependency style of $depcc... " >&6; } 4740 if test ${am_cv_CC_dependencies_compiler_type+y} 4741 then : 4742 printf %s "(cached) " >&6 4743 else case e in #( 4744 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4745 # We make a subdir and do the tests there. Otherwise we can end up 4746 # making bogus files that we don't know about and never remove. For 4747 # instance it was reported that on HP-UX the gcc test will end up 4748 # making a dummy file named 'D' -- because '-MD' means "put the output 4749 # in D". 4750 rm -rf conftest.dir 4751 mkdir conftest.dir 4752 # Copy depcomp to subdir because otherwise we won't find it if we're 4753 # using a relative directory. 4754 cp "$am_depcomp" conftest.dir 4755 cd conftest.dir 4756 # We will build objects and dependencies in a subdirectory because 4757 # it helps to detect inapplicable dependency modes. For instance 4758 # both Tru64's cc and ICC support -MD to output dependencies as a 4759 # side effect of compilation, but ICC will put the dependencies in 4760 # the current directory while Tru64 will put them in the object 4761 # directory. 4762 mkdir sub 4763 4764 am_cv_CC_dependencies_compiler_type=none 4765 if test "$am_compiler_list" = ""; then 4766 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4767 fi 4768 am__universal=false 4769 case " $depcc " in #( 4770 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4771 esac 4772 4773 for depmode in $am_compiler_list; do 4774 # Setup a source with many dependencies, because some compilers 4775 # like to wrap large dependency lists on column 80 (with \), and 4776 # we should not choose a depcomp mode which is confused by this. 4777 # 4778 # We need to recreate these files for each test, as the compiler may 4779 # overwrite some of them when testing with obscure command lines. 4780 # This happens at least with the AIX C compiler. 4781 : > sub/conftest.c 4782 for i in 1 2 3 4 5 6; do 4783 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4784 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4785 # Solaris 10 /bin/sh. 4786 echo '/* dummy */' > sub/conftst$i.h 4787 done 4788 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4789 4790 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4791 # mode. It turns out that the SunPro C++ compiler does not properly 4792 # handle '-M -o', and we need to detect this. Also, some Intel 4793 # versions had trouble with output in subdirs. 4794 am__obj=sub/conftest.${OBJEXT-o} 4795 am__minus_obj="-o $am__obj" 4796 case $depmode in 4797 gcc) 4798 # This depmode causes a compiler race in universal mode. 4799 test "$am__universal" = false || continue 4800 ;; 4801 nosideeffect) 4802 # After this tag, mechanisms are not by side-effect, so they'll 4803 # only be used when explicitly requested. 4804 if test "x$enable_dependency_tracking" = xyes; then 4805 continue 4806 else 4807 break 4808 fi 4809 ;; 4810 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4811 # This compiler won't grok '-c -o', but also, the minuso test has 4812 # not run yet. These depmodes are late enough in the game, and 4813 # so weak that their functioning should not be impacted. 4814 am__obj=conftest.${OBJEXT-o} 4815 am__minus_obj= 4816 ;; 4817 none) break ;; 4818 esac 4819 if depmode=$depmode \ 4820 source=sub/conftest.c object=$am__obj \ 4821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4822 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4823 >/dev/null 2>conftest.err && 4824 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4825 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4826 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4827 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4828 # icc doesn't choke on unknown options, it will just issue warnings 4829 # or remarks (even with -Werror). So we grep stderr for any message 4830 # that says an option was ignored or not supported. 4831 # When given -MP, icc 7.0 and 7.1 complain thus: 4832 # icc: Command line warning: ignoring option '-M'; no argument required 4833 # The diagnosis changed in icc 8.0: 4834 # icc: Command line remark: option '-MP' not supported 4835 if (grep 'ignoring option' conftest.err || 4836 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4837 am_cv_CC_dependencies_compiler_type=$depmode 4838 break 4839 fi 4840 fi 4841 done 4842 4843 cd .. 4844 rm -rf conftest.dir 4845 else 4846 am_cv_CC_dependencies_compiler_type=none 4847 fi 4848 ;; 4849 esac 4850 fi 4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4852 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4853 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4854 4855 if 4856 test "x$enable_dependency_tracking" != xno \ 4857 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4858 am__fastdepCC_TRUE= 4859 am__fastdepCC_FALSE='#' 4860 else 4861 am__fastdepCC_TRUE='#' 4862 am__fastdepCC_FALSE= 4863 fi 4864 4865 4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4867 printf %s "checking for a sed that does not truncate output... " >&6; } 4868 if test ${ac_cv_path_SED+y} 4869 then : 4870 printf %s "(cached) " >&6 4871 else case e in #( 4872 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4873 for ac_i in 1 2 3 4 5 6 7; do 4874 ac_script="$ac_script$as_nl$ac_script" 4875 done 4876 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4877 { ac_script=; unset ac_script;} 4878 if test -z "$SED"; then 4879 ac_path_SED_found=false 4880 # Loop through the user's path and test for each of PROGNAME-LIST 4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4882 for as_dir in $PATH 4883 do 4884 IFS=$as_save_IFS 4885 case $as_dir in #((( 4886 '') as_dir=./ ;; 4887 */) ;; 4888 *) as_dir=$as_dir/ ;; 4889 esac 4890 for ac_prog in sed gsed 4891 do 4892 for ac_exec_ext in '' $ac_executable_extensions; do 4893 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4894 as_fn_executable_p "$ac_path_SED" || continue 4895 # Check for GNU ac_path_SED and select it if it is found. 4896 # Check for GNU $ac_path_SED 4897 case `"$ac_path_SED" --version 2>&1` in #( 4898 *GNU*) 4899 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4900 #( 4901 *) 4902 ac_count=0 4903 printf %s 0123456789 >"conftest.in" 4904 while : 4905 do 4906 cat "conftest.in" "conftest.in" >"conftest.tmp" 4907 mv "conftest.tmp" "conftest.in" 4908 cp "conftest.in" "conftest.nl" 4909 printf "%s\n" '' >> "conftest.nl" 4910 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4912 as_fn_arith $ac_count + 1 && ac_count=$as_val 4913 if test $ac_count -gt ${ac_path_SED_max-0}; then 4914 # Best one so far, save it but keep looking for a better one 4915 ac_cv_path_SED="$ac_path_SED" 4916 ac_path_SED_max=$ac_count 4917 fi 4918 # 10*(2^10) chars as input seems more than enough 4919 test $ac_count -gt 10 && break 4920 done 4921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4922 esac 4923 4924 $ac_path_SED_found && break 3 4925 done 4926 done 4927 done 4928 IFS=$as_save_IFS 4929 if test -z "$ac_cv_path_SED"; then 4930 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4931 fi 4932 else 4933 ac_cv_path_SED=$SED 4934 fi 4935 ;; 4936 esac 4937 fi 4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4939 printf "%s\n" "$ac_cv_path_SED" >&6; } 4940 SED="$ac_cv_path_SED" 4941 rm -f conftest.sed 4942 4943 test -z "$SED" && SED=sed 4944 Xsed="$SED -e 1s/^X//" 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4957 printf %s "checking for grep that handles long lines and -e... " >&6; } 4958 if test ${ac_cv_path_GREP+y} 4959 then : 4960 printf %s "(cached) " >&6 4961 else case e in #( 4962 e) if test -z "$GREP"; then 4963 ac_path_GREP_found=false 4964 # Loop through the user's path and test for each of PROGNAME-LIST 4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4967 do 4968 IFS=$as_save_IFS 4969 case $as_dir in #((( 4970 '') as_dir=./ ;; 4971 */) ;; 4972 *) as_dir=$as_dir/ ;; 4973 esac 4974 for ac_prog in grep ggrep 4975 do 4976 for ac_exec_ext in '' $ac_executable_extensions; do 4977 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4978 as_fn_executable_p "$ac_path_GREP" || continue 4979 # Check for GNU ac_path_GREP and select it if it is found. 4980 # Check for GNU $ac_path_GREP 4981 case `"$ac_path_GREP" --version 2>&1` in #( 4982 *GNU*) 4983 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4984 #( 4985 *) 4986 ac_count=0 4987 printf %s 0123456789 >"conftest.in" 4988 while : 4989 do 4990 cat "conftest.in" "conftest.in" >"conftest.tmp" 4991 mv "conftest.tmp" "conftest.in" 4992 cp "conftest.in" "conftest.nl" 4993 printf "%s\n" 'GREP' >> "conftest.nl" 4994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4996 as_fn_arith $ac_count + 1 && ac_count=$as_val 4997 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4998 # Best one so far, save it but keep looking for a better one 4999 ac_cv_path_GREP="$ac_path_GREP" 5000 ac_path_GREP_max=$ac_count 5001 fi 5002 # 10*(2^10) chars as input seems more than enough 5003 test $ac_count -gt 10 && break 5004 done 5005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5006 esac 5007 5008 $ac_path_GREP_found && break 3 5009 done 5010 done 5011 done 5012 IFS=$as_save_IFS 5013 if test -z "$ac_cv_path_GREP"; then 5014 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5015 fi 5016 else 5017 ac_cv_path_GREP=$GREP 5018 fi 5019 ;; 5020 esac 5021 fi 5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5023 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5024 GREP="$ac_cv_path_GREP" 5025 5026 5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5028 printf %s "checking for egrep... " >&6; } 5029 if test ${ac_cv_path_EGREP+y} 5030 then : 5031 printf %s "(cached) " >&6 5032 else case e in #( 5033 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5034 then ac_cv_path_EGREP="$GREP -E" 5035 else 5036 if test -z "$EGREP"; then 5037 ac_path_EGREP_found=false 5038 # Loop through the user's path and test for each of PROGNAME-LIST 5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5041 do 5042 IFS=$as_save_IFS 5043 case $as_dir in #((( 5044 '') as_dir=./ ;; 5045 */) ;; 5046 *) as_dir=$as_dir/ ;; 5047 esac 5048 for ac_prog in egrep 5049 do 5050 for ac_exec_ext in '' $ac_executable_extensions; do 5051 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5052 as_fn_executable_p "$ac_path_EGREP" || continue 5053 # Check for GNU ac_path_EGREP and select it if it is found. 5054 # Check for GNU $ac_path_EGREP 5055 case `"$ac_path_EGREP" --version 2>&1` in #( 5056 *GNU*) 5057 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5058 #( 5059 *) 5060 ac_count=0 5061 printf %s 0123456789 >"conftest.in" 5062 while : 5063 do 5064 cat "conftest.in" "conftest.in" >"conftest.tmp" 5065 mv "conftest.tmp" "conftest.in" 5066 cp "conftest.in" "conftest.nl" 5067 printf "%s\n" 'EGREP' >> "conftest.nl" 5068 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5070 as_fn_arith $ac_count + 1 && ac_count=$as_val 5071 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5072 # Best one so far, save it but keep looking for a better one 5073 ac_cv_path_EGREP="$ac_path_EGREP" 5074 ac_path_EGREP_max=$ac_count 5075 fi 5076 # 10*(2^10) chars as input seems more than enough 5077 test $ac_count -gt 10 && break 5078 done 5079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5080 esac 5081 5082 $ac_path_EGREP_found && break 3 5083 done 5084 done 5085 done 5086 IFS=$as_save_IFS 5087 if test -z "$ac_cv_path_EGREP"; then 5088 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5089 fi 5090 else 5091 ac_cv_path_EGREP=$EGREP 5092 fi 5093 5094 fi ;; 5095 esac 5096 fi 5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5098 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5099 EGREP="$ac_cv_path_EGREP" 5100 5101 EGREP_TRADITIONAL=$EGREP 5102 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5103 5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5105 printf %s "checking for fgrep... " >&6; } 5106 if test ${ac_cv_path_FGREP+y} 5107 then : 5108 printf %s "(cached) " >&6 5109 else case e in #( 5110 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5111 then ac_cv_path_FGREP="$GREP -F" 5112 else 5113 if test -z "$FGREP"; then 5114 ac_path_FGREP_found=false 5115 # Loop through the user's path and test for each of PROGNAME-LIST 5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5118 do 5119 IFS=$as_save_IFS 5120 case $as_dir in #((( 5121 '') as_dir=./ ;; 5122 */) ;; 5123 *) as_dir=$as_dir/ ;; 5124 esac 5125 for ac_prog in fgrep 5126 do 5127 for ac_exec_ext in '' $ac_executable_extensions; do 5128 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5129 as_fn_executable_p "$ac_path_FGREP" || continue 5130 # Check for GNU ac_path_FGREP and select it if it is found. 5131 # Check for GNU $ac_path_FGREP 5132 case `"$ac_path_FGREP" --version 2>&1` in #( 5133 *GNU*) 5134 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5135 #( 5136 *) 5137 ac_count=0 5138 printf %s 0123456789 >"conftest.in" 5139 while : 5140 do 5141 cat "conftest.in" "conftest.in" >"conftest.tmp" 5142 mv "conftest.tmp" "conftest.in" 5143 cp "conftest.in" "conftest.nl" 5144 printf "%s\n" 'FGREP' >> "conftest.nl" 5145 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5147 as_fn_arith $ac_count + 1 && ac_count=$as_val 5148 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5149 # Best one so far, save it but keep looking for a better one 5150 ac_cv_path_FGREP="$ac_path_FGREP" 5151 ac_path_FGREP_max=$ac_count 5152 fi 5153 # 10*(2^10) chars as input seems more than enough 5154 test $ac_count -gt 10 && break 5155 done 5156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5157 esac 5158 5159 $ac_path_FGREP_found && break 3 5160 done 5161 done 5162 done 5163 IFS=$as_save_IFS 5164 if test -z "$ac_cv_path_FGREP"; then 5165 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5166 fi 5167 else 5168 ac_cv_path_FGREP=$FGREP 5169 fi 5170 5171 fi ;; 5172 esac 5173 fi 5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5175 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5176 FGREP="$ac_cv_path_FGREP" 5177 5178 5179 test -z "$GREP" && GREP=grep 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 # Check whether --with-gnu-ld was given. 5200 if test ${with_gnu_ld+y} 5201 then : 5202 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5203 else case e in #( 5204 e) with_gnu_ld=no ;; 5205 esac 5206 fi 5207 5208 ac_prog=ld 5209 if test yes = "$GCC"; then 5210 # Check if gcc -print-prog-name=ld gives a path. 5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5212 printf %s "checking for ld used by $CC... " >&6; } 5213 case $host in 5214 *-*-mingw* | *-*-windows*) 5215 # gcc leaves a trailing carriage return, which upsets mingw 5216 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5217 *) 5218 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5219 esac 5220 case $ac_prog in 5221 # Accept absolute paths. 5222 [\\/]* | ?:[\\/]*) 5223 re_direlt='/[^/][^/]*/\.\./' 5224 # Canonicalize the pathname of ld 5225 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5226 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5227 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5228 done 5229 test -z "$LD" && LD=$ac_prog 5230 ;; 5231 "") 5232 # If it fails, then pretend we aren't using GCC. 5233 ac_prog=ld 5234 ;; 5235 *) 5236 # If it is relative, then search for the first ld in PATH. 5237 with_gnu_ld=unknown 5238 ;; 5239 esac 5240 elif test yes = "$with_gnu_ld"; then 5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5242 printf %s "checking for GNU ld... " >&6; } 5243 else 5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5245 printf %s "checking for non-GNU ld... " >&6; } 5246 fi 5247 if test ${lt_cv_path_LD+y} 5248 then : 5249 printf %s "(cached) " >&6 5250 else case e in #( 5251 e) if test -z "$LD"; then 5252 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5253 for ac_dir in $PATH; do 5254 IFS=$lt_save_ifs 5255 test -z "$ac_dir" && ac_dir=. 5256 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5257 lt_cv_path_LD=$ac_dir/$ac_prog 5258 # Check to see if the program is GNU ld. I'd rather use --version, 5259 # but apparently some variants of GNU ld only accept -v. 5260 # Break only if it was the GNU/non-GNU ld that we prefer. 5261 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5262 *GNU* | *'with BFD'*) 5263 test no != "$with_gnu_ld" && break 5264 ;; 5265 *) 5266 test yes != "$with_gnu_ld" && break 5267 ;; 5268 esac 5269 fi 5270 done 5271 IFS=$lt_save_ifs 5272 else 5273 lt_cv_path_LD=$LD # Let the user override the test with a path. 5274 fi ;; 5275 esac 5276 fi 5277 5278 LD=$lt_cv_path_LD 5279 if test -n "$LD"; then 5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5281 printf "%s\n" "$LD" >&6; } 5282 else 5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5284 printf "%s\n" "no" >&6; } 5285 fi 5286 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5288 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5289 if test ${lt_cv_prog_gnu_ld+y} 5290 then : 5291 printf %s "(cached) " >&6 5292 else case e in #( 5293 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5294 case `$LD -v 2>&1 </dev/null` in 5295 *GNU* | *'with BFD'*) 5296 lt_cv_prog_gnu_ld=yes 5297 ;; 5298 *) 5299 lt_cv_prog_gnu_ld=no 5300 ;; 5301 esac ;; 5302 esac 5303 fi 5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5305 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5306 with_gnu_ld=$lt_cv_prog_gnu_ld 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5317 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5318 if test ${lt_cv_path_NM+y} 5319 then : 5320 printf %s "(cached) " >&6 5321 else case e in #( 5322 e) if test -n "$NM"; then 5323 # Let the user override the test. 5324 lt_cv_path_NM=$NM 5325 else 5326 lt_nm_to_check=${ac_tool_prefix}nm 5327 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5328 lt_nm_to_check="$lt_nm_to_check nm" 5329 fi 5330 for lt_tmp_nm in $lt_nm_to_check; do 5331 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5332 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5333 IFS=$lt_save_ifs 5334 test -z "$ac_dir" && ac_dir=. 5335 tmp_nm=$ac_dir/$lt_tmp_nm 5336 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5337 # Check to see if the nm accepts a BSD-compat flag. 5338 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5339 # nm: unknown option "B" ignored 5340 # Tru64's nm complains that /dev/null is an invalid object file 5341 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5342 case $build_os in 5343 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5344 *) lt_bad_file=/dev/null ;; 5345 esac 5346 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5347 *$lt_bad_file* | *'Invalid file or object type'*) 5348 lt_cv_path_NM="$tmp_nm -B" 5349 break 2 5350 ;; 5351 *) 5352 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5353 */dev/null*) 5354 lt_cv_path_NM="$tmp_nm -p" 5355 break 2 5356 ;; 5357 *) 5358 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5359 continue # so that we can try to find one that supports BSD flags 5360 ;; 5361 esac 5362 ;; 5363 esac 5364 fi 5365 done 5366 IFS=$lt_save_ifs 5367 done 5368 : ${lt_cv_path_NM=no} 5369 fi ;; 5370 esac 5371 fi 5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5373 printf "%s\n" "$lt_cv_path_NM" >&6; } 5374 if test no != "$lt_cv_path_NM"; then 5375 NM=$lt_cv_path_NM 5376 else 5377 # Didn't find any BSD compatible name lister, look for dumpbin. 5378 if test -n "$DUMPBIN"; then : 5379 # Let the user override the test. 5380 else 5381 if test -n "$ac_tool_prefix"; then 5382 for ac_prog in dumpbin "link -dump" 5383 do 5384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5387 printf %s "checking for $ac_word... " >&6; } 5388 if test ${ac_cv_prog_DUMPBIN+y} 5389 then : 5390 printf %s "(cached) " >&6 5391 else case e in #( 5392 e) if test -n "$DUMPBIN"; then 5393 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5394 else 5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5396 for as_dir in $PATH 5397 do 5398 IFS=$as_save_IFS 5399 case $as_dir in #((( 5400 '') as_dir=./ ;; 5401 */) ;; 5402 *) as_dir=$as_dir/ ;; 5403 esac 5404 for ac_exec_ext in '' $ac_executable_extensions; do 5405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5406 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5408 break 2 5409 fi 5410 done 5411 done 5412 IFS=$as_save_IFS 5413 5414 fi ;; 5415 esac 5416 fi 5417 DUMPBIN=$ac_cv_prog_DUMPBIN 5418 if test -n "$DUMPBIN"; then 5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5420 printf "%s\n" "$DUMPBIN" >&6; } 5421 else 5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423 printf "%s\n" "no" >&6; } 5424 fi 5425 5426 5427 test -n "$DUMPBIN" && break 5428 done 5429 fi 5430 if test -z "$DUMPBIN"; then 5431 ac_ct_DUMPBIN=$DUMPBIN 5432 for ac_prog in dumpbin "link -dump" 5433 do 5434 # Extract the first word of "$ac_prog", so it can be a program name with args. 5435 set dummy $ac_prog; ac_word=$2 5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5437 printf %s "checking for $ac_word... " >&6; } 5438 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5439 then : 5440 printf %s "(cached) " >&6 5441 else case e in #( 5442 e) if test -n "$ac_ct_DUMPBIN"; then 5443 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5444 else 5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5446 for as_dir in $PATH 5447 do 5448 IFS=$as_save_IFS 5449 case $as_dir in #((( 5450 '') as_dir=./ ;; 5451 */) ;; 5452 *) as_dir=$as_dir/ ;; 5453 esac 5454 for ac_exec_ext in '' $ac_executable_extensions; do 5455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5456 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5458 break 2 5459 fi 5460 done 5461 done 5462 IFS=$as_save_IFS 5463 5464 fi ;; 5465 esac 5466 fi 5467 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5468 if test -n "$ac_ct_DUMPBIN"; then 5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5470 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5471 else 5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5473 printf "%s\n" "no" >&6; } 5474 fi 5475 5476 5477 test -n "$ac_ct_DUMPBIN" && break 5478 done 5479 5480 if test "x$ac_ct_DUMPBIN" = x; then 5481 DUMPBIN=":" 5482 else 5483 case $cross_compiling:$ac_tool_warned in 5484 yes:) 5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5486 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5487 ac_tool_warned=yes ;; 5488 esac 5489 DUMPBIN=$ac_ct_DUMPBIN 5490 fi 5491 fi 5492 5493 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5494 *COFF*) 5495 DUMPBIN="$DUMPBIN -symbols -headers" 5496 ;; 5497 *) 5498 DUMPBIN=: 5499 ;; 5500 esac 5501 fi 5502 5503 if test : != "$DUMPBIN"; then 5504 NM=$DUMPBIN 5505 fi 5506 fi 5507 test -z "$NM" && NM=nm 5508 5509 5510 5511 5512 5513 5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5515 printf %s "checking the name lister ($NM) interface... " >&6; } 5516 if test ${lt_cv_nm_interface+y} 5517 then : 5518 printf %s "(cached) " >&6 5519 else case e in #( 5520 e) lt_cv_nm_interface="BSD nm" 5521 echo "int some_variable = 0;" > conftest.$ac_ext 5522 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5523 (eval "$ac_compile" 2>conftest.err) 5524 cat conftest.err >&5 5525 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5526 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5527 cat conftest.err >&5 5528 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5529 cat conftest.out >&5 5530 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5531 lt_cv_nm_interface="MS dumpbin" 5532 fi 5533 rm -f conftest* ;; 5534 esac 5535 fi 5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5537 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5538 5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5540 printf %s "checking whether ln -s works... " >&6; } 5541 LN_S=$as_ln_s 5542 if test "$LN_S" = "ln -s"; then 5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5544 printf "%s\n" "yes" >&6; } 5545 else 5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5547 printf "%s\n" "no, using $LN_S" >&6; } 5548 fi 5549 5550 # find the maximum length of command line arguments 5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5552 printf %s "checking the maximum length of command line arguments... " >&6; } 5553 if test ${lt_cv_sys_max_cmd_len+y} 5554 then : 5555 printf %s "(cached) " >&6 5556 else case e in #( 5557 e) i=0 5558 teststring=ABCD 5559 5560 case $build_os in 5561 msdosdjgpp*) 5562 # On DJGPP, this test can blow up pretty badly due to problems in libc 5563 # (any single argument exceeding 2000 bytes causes a buffer overrun 5564 # during glob expansion). Even if it were fixed, the result of this 5565 # check would be larger than it should be. 5566 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5567 ;; 5568 5569 gnu* | ironclad*) 5570 # Under GNU Hurd and Ironclad, this test is not required because there 5571 # is no limit to the length of command line arguments. 5572 # Libtool will interpret -1 as no limit whatsoever 5573 lt_cv_sys_max_cmd_len=-1; 5574 ;; 5575 5576 cygwin* | mingw* | windows* | cegcc*) 5577 # On Win9x/ME, this test blows up -- it succeeds, but takes 5578 # about 5 minutes as the teststring grows exponentially. 5579 # Worse, since 9x/ME are not pre-emptively multitasking, 5580 # you end up with a "frozen" computer, even though with patience 5581 # the test eventually succeeds (with a max line length of 256k). 5582 # Instead, let's just punt: use the minimum linelength reported by 5583 # all of the supported platforms: 8192 (on NT/2K/XP). 5584 lt_cv_sys_max_cmd_len=8192; 5585 ;; 5586 5587 mint*) 5588 # On MiNT this can take a long time and run out of memory. 5589 lt_cv_sys_max_cmd_len=8192; 5590 ;; 5591 5592 amigaos*) 5593 # On AmigaOS with pdksh, this test takes hours, literally. 5594 # So we just punt and use a minimum line length of 8192. 5595 lt_cv_sys_max_cmd_len=8192; 5596 ;; 5597 5598 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5599 # This has been around since 386BSD, at least. Likely further. 5600 if test -x /sbin/sysctl; then 5601 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5602 elif test -x /usr/sbin/sysctl; then 5603 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5604 else 5605 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5606 fi 5607 # And add a safety zone 5608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5610 ;; 5611 5612 interix*) 5613 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5614 lt_cv_sys_max_cmd_len=196608 5615 ;; 5616 5617 os2*) 5618 # The test takes a long time on OS/2. 5619 lt_cv_sys_max_cmd_len=8192 5620 ;; 5621 5622 osf*) 5623 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5624 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5625 # nice to cause kernel panics so lets avoid the loop below. 5626 # First set a reasonable default. 5627 lt_cv_sys_max_cmd_len=16384 5628 # 5629 if test -x /sbin/sysconfig; then 5630 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5631 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5632 esac 5633 fi 5634 ;; 5635 sco3.2v5*) 5636 lt_cv_sys_max_cmd_len=102400 5637 ;; 5638 sysv5* | sco5v6* | sysv4.2uw2*) 5639 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5640 if test -n "$kargmax"; then 5641 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5642 else 5643 lt_cv_sys_max_cmd_len=32768 5644 fi 5645 ;; 5646 *) 5647 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5648 if test -n "$lt_cv_sys_max_cmd_len" && \ 5649 test undefined != "$lt_cv_sys_max_cmd_len"; then 5650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5652 else 5653 # Make teststring a little bigger before we do anything with it. 5654 # a 1K string should be a reasonable start. 5655 for i in 1 2 3 4 5 6 7 8; do 5656 teststring=$teststring$teststring 5657 done 5658 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5659 # If test is not a shell built-in, we'll probably end up computing a 5660 # maximum length that is only half of the actual maximum length, but 5661 # we can't tell. 5662 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5663 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5664 test 17 != "$i" # 1/2 MB should be enough 5665 do 5666 i=`expr $i + 1` 5667 teststring=$teststring$teststring 5668 done 5669 # Only check the string length outside the loop. 5670 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5671 teststring= 5672 # Add a significant safety factor because C++ compilers can tack on 5673 # massive amounts of additional arguments before passing them to the 5674 # linker. It appears as though 1/2 is a usable value. 5675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5676 fi 5677 ;; 5678 esac 5679 ;; 5680 esac 5681 fi 5682 5683 if test -n "$lt_cv_sys_max_cmd_len"; then 5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5685 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5686 else 5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5688 printf "%s\n" "none" >&6; } 5689 fi 5690 max_cmd_len=$lt_cv_sys_max_cmd_len 5691 5692 5693 5694 5695 5696 5697 : ${CP="cp -f"} 5698 : ${MV="mv -f"} 5699 : ${RM="rm -f"} 5700 5701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5702 lt_unset=unset 5703 else 5704 lt_unset=false 5705 fi 5706 5707 5708 5709 5710 5711 # test EBCDIC or ASCII 5712 case `echo X|tr X '\101'` in 5713 A) # ASCII based system 5714 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5715 lt_SP2NL='tr \040 \012' 5716 lt_NL2SP='tr \015\012 \040\040' 5717 ;; 5718 *) # EBCDIC based system 5719 lt_SP2NL='tr \100 \n' 5720 lt_NL2SP='tr \r\n \100\100' 5721 ;; 5722 esac 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5733 printf %s "checking how to convert $build file names to $host format... " >&6; } 5734 if test ${lt_cv_to_host_file_cmd+y} 5735 then : 5736 printf %s "(cached) " >&6 5737 else case e in #( 5738 e) case $host in 5739 *-*-mingw* ) 5740 case $build in 5741 *-*-mingw* | *-*-windows* ) # actually msys 5742 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5743 ;; 5744 *-*-cygwin* ) 5745 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5746 ;; 5747 * ) # otherwise, assume *nix 5748 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5749 ;; 5750 esac 5751 ;; 5752 *-*-cygwin* ) 5753 case $build in 5754 *-*-mingw* | *-*-windows* ) # actually msys 5755 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5756 ;; 5757 *-*-cygwin* ) 5758 lt_cv_to_host_file_cmd=func_convert_file_noop 5759 ;; 5760 * ) # otherwise, assume *nix 5761 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5762 ;; 5763 esac 5764 ;; 5765 * ) # unhandled hosts (and "normal" native builds) 5766 lt_cv_to_host_file_cmd=func_convert_file_noop 5767 ;; 5768 esac 5769 ;; 5770 esac 5771 fi 5772 5773 to_host_file_cmd=$lt_cv_to_host_file_cmd 5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5775 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5776 5777 5778 5779 5780 5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5782 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5783 if test ${lt_cv_to_tool_file_cmd+y} 5784 then : 5785 printf %s "(cached) " >&6 5786 else case e in #( 5787 e) #assume ordinary cross tools, or native build. 5788 lt_cv_to_tool_file_cmd=func_convert_file_noop 5789 case $host in 5790 *-*-mingw* | *-*-windows* ) 5791 case $build in 5792 *-*-mingw* | *-*-windows* ) # actually msys 5793 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5794 ;; 5795 esac 5796 ;; 5797 esac 5798 ;; 5799 esac 5800 fi 5801 5802 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5804 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5805 5806 5807 5808 5809 5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5811 printf %s "checking for $LD option to reload object files... " >&6; } 5812 if test ${lt_cv_ld_reload_flag+y} 5813 then : 5814 printf %s "(cached) " >&6 5815 else case e in #( 5816 e) lt_cv_ld_reload_flag='-r' ;; 5817 esac 5818 fi 5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5820 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5821 reload_flag=$lt_cv_ld_reload_flag 5822 case $reload_flag in 5823 "" | " "*) ;; 5824 *) reload_flag=" $reload_flag" ;; 5825 esac 5826 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5827 case $host_os in 5828 cygwin* | mingw* | windows* | pw32* | cegcc*) 5829 if test yes != "$GCC"; then 5830 reload_cmds=false 5831 fi 5832 ;; 5833 darwin*) 5834 if test yes = "$GCC"; then 5835 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5836 else 5837 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5838 fi 5839 ;; 5840 esac 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 # Extract the first word of "file", so it can be a program name with args. 5851 set dummy file; ac_word=$2 5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5853 printf %s "checking for $ac_word... " >&6; } 5854 if test ${ac_cv_prog_FILECMD+y} 5855 then : 5856 printf %s "(cached) " >&6 5857 else case e in #( 5858 e) if test -n "$FILECMD"; then 5859 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5860 else 5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5862 for as_dir in $PATH 5863 do 5864 IFS=$as_save_IFS 5865 case $as_dir in #((( 5866 '') as_dir=./ ;; 5867 */) ;; 5868 *) as_dir=$as_dir/ ;; 5869 esac 5870 for ac_exec_ext in '' $ac_executable_extensions; do 5871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5872 ac_cv_prog_FILECMD="file" 5873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5874 break 2 5875 fi 5876 done 5877 done 5878 IFS=$as_save_IFS 5879 5880 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 5881 fi ;; 5882 esac 5883 fi 5884 FILECMD=$ac_cv_prog_FILECMD 5885 if test -n "$FILECMD"; then 5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5887 printf "%s\n" "$FILECMD" >&6; } 5888 else 5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5890 printf "%s\n" "no" >&6; } 5891 fi 5892 5893 5894 5895 5896 5897 5898 5899 5900 if test -n "$ac_tool_prefix"; then 5901 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5902 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5904 printf %s "checking for $ac_word... " >&6; } 5905 if test ${ac_cv_prog_OBJDUMP+y} 5906 then : 5907 printf %s "(cached) " >&6 5908 else case e in #( 5909 e) if test -n "$OBJDUMP"; then 5910 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5911 else 5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5913 for as_dir in $PATH 5914 do 5915 IFS=$as_save_IFS 5916 case $as_dir in #((( 5917 '') as_dir=./ ;; 5918 */) ;; 5919 *) as_dir=$as_dir/ ;; 5920 esac 5921 for ac_exec_ext in '' $ac_executable_extensions; do 5922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5923 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5925 break 2 5926 fi 5927 done 5928 done 5929 IFS=$as_save_IFS 5930 5931 fi ;; 5932 esac 5933 fi 5934 OBJDUMP=$ac_cv_prog_OBJDUMP 5935 if test -n "$OBJDUMP"; then 5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5937 printf "%s\n" "$OBJDUMP" >&6; } 5938 else 5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5940 printf "%s\n" "no" >&6; } 5941 fi 5942 5943 5944 fi 5945 if test -z "$ac_cv_prog_OBJDUMP"; then 5946 ac_ct_OBJDUMP=$OBJDUMP 5947 # Extract the first word of "objdump", so it can be a program name with args. 5948 set dummy objdump; ac_word=$2 5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5950 printf %s "checking for $ac_word... " >&6; } 5951 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5952 then : 5953 printf %s "(cached) " >&6 5954 else case e in #( 5955 e) if test -n "$ac_ct_OBJDUMP"; then 5956 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5957 else 5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5959 for as_dir in $PATH 5960 do 5961 IFS=$as_save_IFS 5962 case $as_dir in #((( 5963 '') as_dir=./ ;; 5964 */) ;; 5965 *) as_dir=$as_dir/ ;; 5966 esac 5967 for ac_exec_ext in '' $ac_executable_extensions; do 5968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5969 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5971 break 2 5972 fi 5973 done 5974 done 5975 IFS=$as_save_IFS 5976 5977 fi ;; 5978 esac 5979 fi 5980 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5981 if test -n "$ac_ct_OBJDUMP"; then 5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5983 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5984 else 5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5986 printf "%s\n" "no" >&6; } 5987 fi 5988 5989 if test "x$ac_ct_OBJDUMP" = x; then 5990 OBJDUMP="false" 5991 else 5992 case $cross_compiling:$ac_tool_warned in 5993 yes:) 5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5995 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5996 ac_tool_warned=yes ;; 5997 esac 5998 OBJDUMP=$ac_ct_OBJDUMP 5999 fi 6000 else 6001 OBJDUMP="$ac_cv_prog_OBJDUMP" 6002 fi 6003 6004 test -z "$OBJDUMP" && OBJDUMP=objdump 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6015 printf %s "checking how to recognize dependent libraries... " >&6; } 6016 if test ${lt_cv_deplibs_check_method+y} 6017 then : 6018 printf %s "(cached) " >&6 6019 else case e in #( 6020 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6021 lt_cv_file_magic_test_file= 6022 lt_cv_deplibs_check_method='unknown' 6023 # Need to set the preceding variable on all platforms that support 6024 # interlibrary dependencies. 6025 # 'none' -- dependencies not supported. 6026 # 'unknown' -- same as none, but documents that we really don't know. 6027 # 'pass_all' -- all dependencies passed with no checks. 6028 # 'file_magic [[regex]]' -- check by looking for files in library path 6029 # that responds to the $file_magic_cmd with a given extended regex. 6030 # If you have 'file' or equivalent on your system and you're not sure 6031 # whether 'pass_all' will *always* work, you probably want this one. 6032 6033 case $host_os in 6034 aix[4-9]*) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037 6038 beos*) 6039 lt_cv_deplibs_check_method=pass_all 6040 ;; 6041 6042 bsdi[45]*) 6043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6044 lt_cv_file_magic_cmd='$FILECMD -L' 6045 lt_cv_file_magic_test_file=/shlib/libc.so 6046 ;; 6047 6048 cygwin*) 6049 # func_win32_libid is a shell function defined in ltmain.sh 6050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6051 lt_cv_file_magic_cmd='func_win32_libid' 6052 ;; 6053 6054 mingw* | windows* | pw32*) 6055 # Base MSYS/MinGW do not provide the 'file' command needed by 6056 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6057 # unless we find 'file', for example because we are cross-compiling. 6058 if ( file / ) >/dev/null 2>&1; then 6059 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6060 lt_cv_file_magic_cmd='func_win32_libid' 6061 else 6062 # Keep this pattern in sync with the one in func_win32_libid. 6063 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6064 lt_cv_file_magic_cmd='$OBJDUMP -f' 6065 fi 6066 ;; 6067 6068 cegcc*) 6069 # use the weaker test based on 'objdump'. See mingw*. 6070 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6071 lt_cv_file_magic_cmd='$OBJDUMP -f' 6072 ;; 6073 6074 darwin* | rhapsody*) 6075 lt_cv_deplibs_check_method=pass_all 6076 ;; 6077 6078 freebsd* | dragonfly* | midnightbsd*) 6079 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6080 case $host_cpu in 6081 i*86 ) 6082 # Not sure whether the presence of OpenBSD here was a mistake. 6083 # Let's accept both of them until this is cleared up. 6084 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6085 lt_cv_file_magic_cmd=$FILECMD 6086 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6087 ;; 6088 esac 6089 else 6090 lt_cv_deplibs_check_method=pass_all 6091 fi 6092 ;; 6093 6094 haiku*) 6095 lt_cv_deplibs_check_method=pass_all 6096 ;; 6097 6098 hpux10.20* | hpux11*) 6099 lt_cv_file_magic_cmd=$FILECMD 6100 case $host_cpu in 6101 ia64*) 6102 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6103 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6104 ;; 6105 hppa*64*) 6106 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]' 6107 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6108 ;; 6109 *) 6110 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6111 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6112 ;; 6113 esac 6114 ;; 6115 6116 interix[3-9]*) 6117 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6119 ;; 6120 6121 irix5* | irix6* | nonstopux*) 6122 case $LD in 6123 *-32|*"-32 ") libmagic=32-bit;; 6124 *-n32|*"-n32 ") libmagic=N32;; 6125 *-64|*"-64 ") libmagic=64-bit;; 6126 *) libmagic=never-match;; 6127 esac 6128 lt_cv_deplibs_check_method=pass_all 6129 ;; 6130 6131 # This must be glibc/ELF. 6132 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6133 lt_cv_deplibs_check_method=pass_all 6134 ;; 6135 6136 *-mlibc) 6137 lt_cv_deplibs_check_method=pass_all 6138 ;; 6139 6140 netbsd* | netbsdelf*-gnu) 6141 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6143 else 6144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6145 fi 6146 ;; 6147 6148 newos6*) 6149 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6150 lt_cv_file_magic_cmd=$FILECMD 6151 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6152 ;; 6153 6154 *nto* | *qnx*) 6155 lt_cv_deplibs_check_method=pass_all 6156 ;; 6157 6158 openbsd*) 6159 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6161 else 6162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6163 fi 6164 ;; 6165 6166 osf3* | osf4* | osf5*) 6167 lt_cv_deplibs_check_method=pass_all 6168 ;; 6169 6170 rdos*) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173 6174 serenity*) 6175 lt_cv_deplibs_check_method=pass_all 6176 ;; 6177 6178 solaris*) 6179 lt_cv_deplibs_check_method=pass_all 6180 ;; 6181 6182 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6183 lt_cv_deplibs_check_method=pass_all 6184 ;; 6185 6186 sysv4 | sysv4.3*) 6187 case $host_vendor in 6188 motorola) 6189 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]' 6190 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6191 ;; 6192 ncr) 6193 lt_cv_deplibs_check_method=pass_all 6194 ;; 6195 sequent) 6196 lt_cv_file_magic_cmd='/bin/file' 6197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6198 ;; 6199 sni) 6200 lt_cv_file_magic_cmd='/bin/file' 6201 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6202 lt_cv_file_magic_test_file=/lib/libc.so 6203 ;; 6204 siemens) 6205 lt_cv_deplibs_check_method=pass_all 6206 ;; 6207 pc) 6208 lt_cv_deplibs_check_method=pass_all 6209 ;; 6210 esac 6211 ;; 6212 6213 tpf*) 6214 lt_cv_deplibs_check_method=pass_all 6215 ;; 6216 os2*) 6217 lt_cv_deplibs_check_method=pass_all 6218 ;; 6219 esac 6220 ;; 6221 esac 6222 fi 6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6224 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6225 6226 file_magic_glob= 6227 want_nocaseglob=no 6228 if test "$build" = "$host"; then 6229 case $host_os in 6230 mingw* | windows* | pw32*) 6231 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6232 want_nocaseglob=yes 6233 else 6234 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6235 fi 6236 ;; 6237 esac 6238 fi 6239 6240 file_magic_cmd=$lt_cv_file_magic_cmd 6241 deplibs_check_method=$lt_cv_deplibs_check_method 6242 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 if test -n "$ac_tool_prefix"; then 6266 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6267 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6269 printf %s "checking for $ac_word... " >&6; } 6270 if test ${ac_cv_prog_DLLTOOL+y} 6271 then : 6272 printf %s "(cached) " >&6 6273 else case e in #( 6274 e) if test -n "$DLLTOOL"; then 6275 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6276 else 6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278 for as_dir in $PATH 6279 do 6280 IFS=$as_save_IFS 6281 case $as_dir in #((( 6282 '') as_dir=./ ;; 6283 */) ;; 6284 *) as_dir=$as_dir/ ;; 6285 esac 6286 for ac_exec_ext in '' $ac_executable_extensions; do 6287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6288 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6290 break 2 6291 fi 6292 done 6293 done 6294 IFS=$as_save_IFS 6295 6296 fi ;; 6297 esac 6298 fi 6299 DLLTOOL=$ac_cv_prog_DLLTOOL 6300 if test -n "$DLLTOOL"; then 6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6302 printf "%s\n" "$DLLTOOL" >&6; } 6303 else 6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6305 printf "%s\n" "no" >&6; } 6306 fi 6307 6308 6309 fi 6310 if test -z "$ac_cv_prog_DLLTOOL"; then 6311 ac_ct_DLLTOOL=$DLLTOOL 6312 # Extract the first word of "dlltool", so it can be a program name with args. 6313 set dummy dlltool; ac_word=$2 6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6315 printf %s "checking for $ac_word... " >&6; } 6316 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6317 then : 6318 printf %s "(cached) " >&6 6319 else case e in #( 6320 e) if test -n "$ac_ct_DLLTOOL"; then 6321 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6322 else 6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6324 for as_dir in $PATH 6325 do 6326 IFS=$as_save_IFS 6327 case $as_dir in #((( 6328 '') as_dir=./ ;; 6329 */) ;; 6330 *) as_dir=$as_dir/ ;; 6331 esac 6332 for ac_exec_ext in '' $ac_executable_extensions; do 6333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6334 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6336 break 2 6337 fi 6338 done 6339 done 6340 IFS=$as_save_IFS 6341 6342 fi ;; 6343 esac 6344 fi 6345 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6346 if test -n "$ac_ct_DLLTOOL"; then 6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6348 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6349 else 6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6351 printf "%s\n" "no" >&6; } 6352 fi 6353 6354 if test "x$ac_ct_DLLTOOL" = x; then 6355 DLLTOOL="false" 6356 else 6357 case $cross_compiling:$ac_tool_warned in 6358 yes:) 6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6361 ac_tool_warned=yes ;; 6362 esac 6363 DLLTOOL=$ac_ct_DLLTOOL 6364 fi 6365 else 6366 DLLTOOL="$ac_cv_prog_DLLTOOL" 6367 fi 6368 6369 test -z "$DLLTOOL" && DLLTOOL=dlltool 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6381 printf %s "checking how to associate runtime and link libraries... " >&6; } 6382 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6383 then : 6384 printf %s "(cached) " >&6 6385 else case e in #( 6386 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6387 6388 case $host_os in 6389 cygwin* | mingw* | windows* | pw32* | cegcc*) 6390 # two different shell functions defined in ltmain.sh; 6391 # decide which one to use based on capabilities of $DLLTOOL 6392 case `$DLLTOOL --help 2>&1` in 6393 *--identify-strict*) 6394 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6395 ;; 6396 *) 6397 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6398 ;; 6399 esac 6400 ;; 6401 *) 6402 # fallback: assume linklib IS sharedlib 6403 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6404 ;; 6405 esac 6406 ;; 6407 esac 6408 fi 6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6410 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6411 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6412 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6413 6414 6415 6416 6417 6418 6419 6420 6421 if test -n "$ac_tool_prefix"; then 6422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6425 printf %s "checking for $ac_word... " >&6; } 6426 if test ${ac_cv_prog_RANLIB+y} 6427 then : 6428 printf %s "(cached) " >&6 6429 else case e in #( 6430 e) if test -n "$RANLIB"; then 6431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6432 else 6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6434 for as_dir in $PATH 6435 do 6436 IFS=$as_save_IFS 6437 case $as_dir in #((( 6438 '') as_dir=./ ;; 6439 */) ;; 6440 *) as_dir=$as_dir/ ;; 6441 esac 6442 for ac_exec_ext in '' $ac_executable_extensions; do 6443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6446 break 2 6447 fi 6448 done 6449 done 6450 IFS=$as_save_IFS 6451 6452 fi ;; 6453 esac 6454 fi 6455 RANLIB=$ac_cv_prog_RANLIB 6456 if test -n "$RANLIB"; then 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6458 printf "%s\n" "$RANLIB" >&6; } 6459 else 6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6461 printf "%s\n" "no" >&6; } 6462 fi 6463 6464 6465 fi 6466 if test -z "$ac_cv_prog_RANLIB"; then 6467 ac_ct_RANLIB=$RANLIB 6468 # Extract the first word of "ranlib", so it can be a program name with args. 6469 set dummy ranlib; ac_word=$2 6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6471 printf %s "checking for $ac_word... " >&6; } 6472 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6473 then : 6474 printf %s "(cached) " >&6 6475 else case e in #( 6476 e) if test -n "$ac_ct_RANLIB"; then 6477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6478 else 6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480 for as_dir in $PATH 6481 do 6482 IFS=$as_save_IFS 6483 case $as_dir in #((( 6484 '') as_dir=./ ;; 6485 */) ;; 6486 *) as_dir=$as_dir/ ;; 6487 esac 6488 for ac_exec_ext in '' $ac_executable_extensions; do 6489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6490 ac_cv_prog_ac_ct_RANLIB="ranlib" 6491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6492 break 2 6493 fi 6494 done 6495 done 6496 IFS=$as_save_IFS 6497 6498 fi ;; 6499 esac 6500 fi 6501 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6502 if test -n "$ac_ct_RANLIB"; then 6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6504 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6505 else 6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6507 printf "%s\n" "no" >&6; } 6508 fi 6509 6510 if test "x$ac_ct_RANLIB" = x; then 6511 RANLIB=":" 6512 else 6513 case $cross_compiling:$ac_tool_warned in 6514 yes:) 6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6516 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6517 ac_tool_warned=yes ;; 6518 esac 6519 RANLIB=$ac_ct_RANLIB 6520 fi 6521 else 6522 RANLIB="$ac_cv_prog_RANLIB" 6523 fi 6524 6525 if test -n "$ac_tool_prefix"; then 6526 for ac_prog in ar 6527 do 6528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6531 printf %s "checking for $ac_word... " >&6; } 6532 if test ${ac_cv_prog_AR+y} 6533 then : 6534 printf %s "(cached) " >&6 6535 else case e in #( 6536 e) if test -n "$AR"; then 6537 ac_cv_prog_AR="$AR" # Let the user override the test. 6538 else 6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6540 for as_dir in $PATH 6541 do 6542 IFS=$as_save_IFS 6543 case $as_dir in #((( 6544 '') as_dir=./ ;; 6545 */) ;; 6546 *) as_dir=$as_dir/ ;; 6547 esac 6548 for ac_exec_ext in '' $ac_executable_extensions; do 6549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6550 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6552 break 2 6553 fi 6554 done 6555 done 6556 IFS=$as_save_IFS 6557 6558 fi ;; 6559 esac 6560 fi 6561 AR=$ac_cv_prog_AR 6562 if test -n "$AR"; then 6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6564 printf "%s\n" "$AR" >&6; } 6565 else 6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6567 printf "%s\n" "no" >&6; } 6568 fi 6569 6570 6571 test -n "$AR" && break 6572 done 6573 fi 6574 if test -z "$AR"; then 6575 ac_ct_AR=$AR 6576 for ac_prog in ar 6577 do 6578 # Extract the first word of "$ac_prog", so it can be a program name with args. 6579 set dummy $ac_prog; ac_word=$2 6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6581 printf %s "checking for $ac_word... " >&6; } 6582 if test ${ac_cv_prog_ac_ct_AR+y} 6583 then : 6584 printf %s "(cached) " >&6 6585 else case e in #( 6586 e) if test -n "$ac_ct_AR"; then 6587 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6588 else 6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6590 for as_dir in $PATH 6591 do 6592 IFS=$as_save_IFS 6593 case $as_dir in #((( 6594 '') as_dir=./ ;; 6595 */) ;; 6596 *) as_dir=$as_dir/ ;; 6597 esac 6598 for ac_exec_ext in '' $ac_executable_extensions; do 6599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6600 ac_cv_prog_ac_ct_AR="$ac_prog" 6601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6602 break 2 6603 fi 6604 done 6605 done 6606 IFS=$as_save_IFS 6607 6608 fi ;; 6609 esac 6610 fi 6611 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6612 if test -n "$ac_ct_AR"; then 6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6614 printf "%s\n" "$ac_ct_AR" >&6; } 6615 else 6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6617 printf "%s\n" "no" >&6; } 6618 fi 6619 6620 6621 test -n "$ac_ct_AR" && break 6622 done 6623 6624 if test "x$ac_ct_AR" = x; then 6625 AR="false" 6626 else 6627 case $cross_compiling:$ac_tool_warned in 6628 yes:) 6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6630 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6631 ac_tool_warned=yes ;; 6632 esac 6633 AR=$ac_ct_AR 6634 fi 6635 fi 6636 6637 : ${AR=ar} 6638 6639 6640 6641 6642 6643 6644 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6645 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6646 # higher priority because that's what people were doing historically (setting 6647 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6648 # variable obsoleted/removed. 6649 6650 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6651 lt_ar_flags=$AR_FLAGS 6652 6653 6654 6655 6656 6657 6658 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6659 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6660 6661 6662 6663 6664 6665 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6667 printf %s "checking for archiver @FILE support... " >&6; } 6668 if test ${lt_cv_ar_at_file+y} 6669 then : 6670 printf %s "(cached) " >&6 6671 else case e in #( 6672 e) lt_cv_ar_at_file=no 6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6674 /* end confdefs.h. */ 6675 6676 int 6677 main (void) 6678 { 6679 6680 ; 6681 return 0; 6682 } 6683 _ACEOF 6684 if ac_fn_c_try_compile "$LINENO" 6685 then : 6686 echo conftest.$ac_objext > conftest.lst 6687 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6689 (eval $lt_ar_try) 2>&5 6690 ac_status=$? 6691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6692 test $ac_status = 0; } 6693 if test 0 -eq "$ac_status"; then 6694 # Ensure the archiver fails upon bogus file names. 6695 rm -f conftest.$ac_objext libconftest.a 6696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6697 (eval $lt_ar_try) 2>&5 6698 ac_status=$? 6699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6700 test $ac_status = 0; } 6701 if test 0 -ne "$ac_status"; then 6702 lt_cv_ar_at_file=@ 6703 fi 6704 fi 6705 rm -f conftest.* libconftest.a 6706 6707 fi 6708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6709 ;; 6710 esac 6711 fi 6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6713 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6714 6715 if test no = "$lt_cv_ar_at_file"; then 6716 archiver_list_spec= 6717 else 6718 archiver_list_spec=$lt_cv_ar_at_file 6719 fi 6720 6721 6722 6723 6724 6725 6726 6727 if test -n "$ac_tool_prefix"; then 6728 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6729 set dummy ${ac_tool_prefix}strip; ac_word=$2 6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6731 printf %s "checking for $ac_word... " >&6; } 6732 if test ${ac_cv_prog_STRIP+y} 6733 then : 6734 printf %s "(cached) " >&6 6735 else case e in #( 6736 e) if test -n "$STRIP"; then 6737 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6738 else 6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6740 for as_dir in $PATH 6741 do 6742 IFS=$as_save_IFS 6743 case $as_dir in #((( 6744 '') as_dir=./ ;; 6745 */) ;; 6746 *) as_dir=$as_dir/ ;; 6747 esac 6748 for ac_exec_ext in '' $ac_executable_extensions; do 6749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6750 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6752 break 2 6753 fi 6754 done 6755 done 6756 IFS=$as_save_IFS 6757 6758 fi ;; 6759 esac 6760 fi 6761 STRIP=$ac_cv_prog_STRIP 6762 if test -n "$STRIP"; then 6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6764 printf "%s\n" "$STRIP" >&6; } 6765 else 6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6767 printf "%s\n" "no" >&6; } 6768 fi 6769 6770 6771 fi 6772 if test -z "$ac_cv_prog_STRIP"; then 6773 ac_ct_STRIP=$STRIP 6774 # Extract the first word of "strip", so it can be a program name with args. 6775 set dummy strip; ac_word=$2 6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6777 printf %s "checking for $ac_word... " >&6; } 6778 if test ${ac_cv_prog_ac_ct_STRIP+y} 6779 then : 6780 printf %s "(cached) " >&6 6781 else case e in #( 6782 e) if test -n "$ac_ct_STRIP"; then 6783 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6784 else 6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6786 for as_dir in $PATH 6787 do 6788 IFS=$as_save_IFS 6789 case $as_dir in #((( 6790 '') as_dir=./ ;; 6791 */) ;; 6792 *) as_dir=$as_dir/ ;; 6793 esac 6794 for ac_exec_ext in '' $ac_executable_extensions; do 6795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6796 ac_cv_prog_ac_ct_STRIP="strip" 6797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6798 break 2 6799 fi 6800 done 6801 done 6802 IFS=$as_save_IFS 6803 6804 fi ;; 6805 esac 6806 fi 6807 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6808 if test -n "$ac_ct_STRIP"; then 6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6810 printf "%s\n" "$ac_ct_STRIP" >&6; } 6811 else 6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6813 printf "%s\n" "no" >&6; } 6814 fi 6815 6816 if test "x$ac_ct_STRIP" = x; then 6817 STRIP=":" 6818 else 6819 case $cross_compiling:$ac_tool_warned in 6820 yes:) 6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6822 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6823 ac_tool_warned=yes ;; 6824 esac 6825 STRIP=$ac_ct_STRIP 6826 fi 6827 else 6828 STRIP="$ac_cv_prog_STRIP" 6829 fi 6830 6831 test -z "$STRIP" && STRIP=: 6832 6833 6834 6835 6836 6837 6838 6839 test -z "$RANLIB" && RANLIB=: 6840 6841 6842 6843 6844 6845 6846 # Determine commands to create old-style static archives. 6847 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6848 old_postinstall_cmds='chmod 644 $oldlib' 6849 old_postuninstall_cmds= 6850 6851 if test -n "$RANLIB"; then 6852 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6853 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6854 fi 6855 6856 case $host_os in 6857 darwin*) 6858 lock_old_archive_extraction=yes ;; 6859 *) 6860 lock_old_archive_extraction=no ;; 6861 esac 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 # If no C compiler was specified, use CC. 6902 LTCC=${LTCC-"$CC"} 6903 6904 # If no C compiler flags were specified, use CFLAGS. 6905 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6906 6907 # Allow CC to be a program name with arguments. 6908 compiler=$CC 6909 6910 6911 # Check for command to grab the raw symbol name followed by C symbol from nm. 6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6913 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6914 if test ${lt_cv_sys_global_symbol_pipe+y} 6915 then : 6916 printf %s "(cached) " >&6 6917 else case e in #( 6918 e) 6919 # These are sane defaults that work on at least a few old systems. 6920 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6921 6922 # Character class describing NM global symbol codes. 6923 symcode='[BCDEGRST]' 6924 6925 # Regexp to match symbols that can be accessed directly from C. 6926 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6927 6928 # Define system-specific variables. 6929 case $host_os in 6930 aix*) 6931 symcode='[BCDT]' 6932 ;; 6933 cygwin* | mingw* | windows* | pw32* | cegcc*) 6934 symcode='[ABCDGISTW]' 6935 ;; 6936 hpux*) 6937 if test ia64 = "$host_cpu"; then 6938 symcode='[ABCDEGRST]' 6939 fi 6940 ;; 6941 irix* | nonstopux*) 6942 symcode='[BCDEGRST]' 6943 ;; 6944 osf*) 6945 symcode='[BCDEGQRST]' 6946 ;; 6947 solaris*) 6948 symcode='[BCDRT]' 6949 ;; 6950 sco3.2v5*) 6951 symcode='[DT]' 6952 ;; 6953 sysv4.2uw2*) 6954 symcode='[DT]' 6955 ;; 6956 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6957 symcode='[ABDT]' 6958 ;; 6959 sysv4) 6960 symcode='[DFNSTU]' 6961 ;; 6962 esac 6963 6964 # If we're using GNU nm, then use its standard symbol codes. 6965 case `$NM -V 2>&1` in 6966 *GNU* | *'with BFD'*) 6967 symcode='[ABCDGIRSTW]' ;; 6968 esac 6969 6970 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6971 # Gets list of data symbols to import. 6972 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6973 # Adjust the below global symbol transforms to fixup imported variables. 6974 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6975 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6976 lt_c_name_lib_hook="\ 6977 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6978 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6979 else 6980 # Disable hooks by default. 6981 lt_cv_sys_global_symbol_to_import= 6982 lt_cdecl_hook= 6983 lt_c_name_hook= 6984 lt_c_name_lib_hook= 6985 fi 6986 6987 # Transform an extracted symbol line into a proper C declaration. 6988 # Some systems (esp. on ia64) link data and code symbols differently, 6989 # so use this general approach. 6990 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6991 $lt_cdecl_hook\ 6992 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6993 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6994 6995 # Transform an extracted symbol line into symbol name and symbol address 6996 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6997 $lt_c_name_hook\ 6998 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6999 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7000 7001 # Transform an extracted symbol line into symbol name with lib prefix and 7002 # symbol address. 7003 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7004 $lt_c_name_lib_hook\ 7005 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7006 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7007 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7008 7009 # Handle CRLF in mingw tool chain 7010 opt_cr= 7011 case $build_os in 7012 mingw* | windows*) 7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7014 ;; 7015 esac 7016 7017 # Try without a prefix underscore, then with it. 7018 for ac_symprfx in "" "_"; do 7019 7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7021 symxfrm="\\1 $ac_symprfx\\2 \\2" 7022 7023 # Write the raw and C identifiers. 7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7025 # Fake it for dumpbin and say T for any non-static function, 7026 # D for any global variable and I for any imported variable. 7027 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7028 # which start with @ or ?. 7029 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7030 " {last_section=section; section=\$ 3};"\ 7031 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7032 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7033 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7034 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7035 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7036 " \$ 0!~/External *\|/{next};"\ 7037 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7038 " {if(hide[section]) next};"\ 7039 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7040 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7041 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7042 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7043 " ' prfx=^$ac_symprfx" 7044 else 7045 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7046 fi 7047 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7048 7049 # Check to see that the pipe works correctly. 7050 pipe_works=no 7051 7052 rm -f conftest* 7053 cat > conftest.$ac_ext <<_LT_EOF 7054 #ifdef __cplusplus 7055 extern "C" { 7056 #endif 7057 char nm_test_var; 7058 void nm_test_func(void); 7059 void nm_test_func(void){} 7060 #ifdef __cplusplus 7061 } 7062 #endif 7063 int main(void){nm_test_var='a';nm_test_func();return(0);} 7064 _LT_EOF 7065 7066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7067 (eval $ac_compile) 2>&5 7068 ac_status=$? 7069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7070 test $ac_status = 0; }; then 7071 # Now try to grab the symbols. 7072 nlist=conftest.nm 7073 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7074 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7075 # Try sorting and uniquifying the output. 7076 if sort "$nlist" | uniq > "$nlist"T; then 7077 mv -f "$nlist"T "$nlist" 7078 else 7079 rm -f "$nlist"T 7080 fi 7081 7082 # Make sure that we snagged all the symbols we need. 7083 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7084 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7085 cat <<_LT_EOF > conftest.$ac_ext 7086 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7087 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7088 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7089 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7090 # define LT_DLSYM_CONST 7091 #elif defined __osf__ 7092 /* This system does not cope well with relocations in const data. */ 7093 # define LT_DLSYM_CONST 7094 #else 7095 # define LT_DLSYM_CONST const 7096 #endif 7097 7098 #ifdef __cplusplus 7099 extern "C" { 7100 #endif 7101 7102 _LT_EOF 7103 # Now generate the symbol file. 7104 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7105 7106 cat <<_LT_EOF >> conftest.$ac_ext 7107 7108 /* The mapping between symbol names and symbols. */ 7109 LT_DLSYM_CONST struct { 7110 const char *name; 7111 void *address; 7112 } 7113 lt__PROGRAM__LTX_preloaded_symbols[] = 7114 { 7115 { "@PROGRAM@", (void *) 0 }, 7116 _LT_EOF 7117 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7118 cat <<\_LT_EOF >> conftest.$ac_ext 7119 {0, (void *) 0} 7120 }; 7121 7122 /* This works around a problem in FreeBSD linker */ 7123 #ifdef FREEBSD_WORKAROUND 7124 static const void *lt_preloaded_setup() { 7125 return lt__PROGRAM__LTX_preloaded_symbols; 7126 } 7127 #endif 7128 7129 #ifdef __cplusplus 7130 } 7131 #endif 7132 _LT_EOF 7133 # Now try linking the two files. 7134 mv conftest.$ac_objext conftstm.$ac_objext 7135 lt_globsym_save_LIBS=$LIBS 7136 lt_globsym_save_CFLAGS=$CFLAGS 7137 LIBS=conftstm.$ac_objext 7138 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7140 (eval $ac_link) 2>&5 7141 ac_status=$? 7142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7143 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7144 pipe_works=yes 7145 fi 7146 LIBS=$lt_globsym_save_LIBS 7147 CFLAGS=$lt_globsym_save_CFLAGS 7148 else 7149 echo "cannot find nm_test_func in $nlist" >&5 7150 fi 7151 else 7152 echo "cannot find nm_test_var in $nlist" >&5 7153 fi 7154 else 7155 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7156 fi 7157 else 7158 echo "$progname: failed program was:" >&5 7159 cat conftest.$ac_ext >&5 7160 fi 7161 rm -rf conftest* conftst* 7162 7163 # Do not use the global_symbol_pipe unless it works. 7164 if test yes = "$pipe_works"; then 7165 break 7166 else 7167 lt_cv_sys_global_symbol_pipe= 7168 fi 7169 done 7170 ;; 7171 esac 7172 fi 7173 7174 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7175 lt_cv_sys_global_symbol_to_cdecl= 7176 fi 7177 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7179 printf "%s\n" "failed" >&6; } 7180 else 7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7182 printf "%s\n" "ok" >&6; } 7183 fi 7184 7185 # Response file support. 7186 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7187 nm_file_list_spec='@' 7188 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7189 nm_file_list_spec='@' 7190 fi 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7229 printf %s "checking for sysroot... " >&6; } 7230 7231 # Check whether --with-sysroot was given. 7232 if test ${with_sysroot+y} 7233 then : 7234 withval=$with_sysroot; 7235 else case e in #( 7236 e) with_sysroot=no ;; 7237 esac 7238 fi 7239 7240 7241 lt_sysroot= 7242 case $with_sysroot in #( 7243 yes) 7244 if test yes = "$GCC"; then 7245 # Trim trailing / since we'll always append absolute paths and we want 7246 # to avoid //, if only for less confusing output for the user. 7247 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7248 fi 7249 ;; #( 7250 /*) 7251 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7252 ;; #( 7253 no|'') 7254 ;; #( 7255 *) 7256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7257 printf "%s\n" "$with_sysroot" >&6; } 7258 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7259 ;; 7260 esac 7261 7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7263 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7264 7265 7266 7267 7268 7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7270 printf %s "checking for a working dd... " >&6; } 7271 if test ${ac_cv_path_lt_DD+y} 7272 then : 7273 printf %s "(cached) " >&6 7274 else case e in #( 7275 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7276 cat conftest.i conftest.i >conftest2.i 7277 : ${lt_DD:=$DD} 7278 if test -z "$lt_DD"; then 7279 ac_path_lt_DD_found=false 7280 # Loop through the user's path and test for each of PROGNAME-LIST 7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7282 for as_dir in $PATH 7283 do 7284 IFS=$as_save_IFS 7285 case $as_dir in #((( 7286 '') as_dir=./ ;; 7287 */) ;; 7288 *) as_dir=$as_dir/ ;; 7289 esac 7290 for ac_prog in dd 7291 do 7292 for ac_exec_ext in '' $ac_executable_extensions; do 7293 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7294 as_fn_executable_p "$ac_path_lt_DD" || continue 7295 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7296 cmp -s conftest.i conftest.out \ 7297 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7298 fi 7299 $ac_path_lt_DD_found && break 3 7300 done 7301 done 7302 done 7303 IFS=$as_save_IFS 7304 if test -z "$ac_cv_path_lt_DD"; then 7305 : 7306 fi 7307 else 7308 ac_cv_path_lt_DD=$lt_DD 7309 fi 7310 7311 rm -f conftest.i conftest2.i conftest.out ;; 7312 esac 7313 fi 7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7315 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7316 7317 7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7319 printf %s "checking how to truncate binary pipes... " >&6; } 7320 if test ${lt_cv_truncate_bin+y} 7321 then : 7322 printf %s "(cached) " >&6 7323 else case e in #( 7324 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7325 cat conftest.i conftest.i >conftest2.i 7326 lt_cv_truncate_bin= 7327 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7328 cmp -s conftest.i conftest.out \ 7329 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7330 fi 7331 rm -f conftest.i conftest2.i conftest.out 7332 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7333 esac 7334 fi 7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7336 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7337 7338 7339 7340 7341 7342 7343 7344 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7345 func_cc_basename () 7346 { 7347 for cc_temp in $*""; do 7348 case $cc_temp in 7349 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7350 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7351 \-*) ;; 7352 *) break;; 7353 esac 7354 done 7355 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7356 } 7357 7358 # Check whether --enable-libtool-lock was given. 7359 if test ${enable_libtool_lock+y} 7360 then : 7361 enableval=$enable_libtool_lock; 7362 fi 7363 7364 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7365 7366 # Some flags need to be propagated to the compiler or linker for good 7367 # libtool support. 7368 case $host in 7369 ia64-*-hpux*) 7370 # Find out what ABI is being produced by ac_compile, and set mode 7371 # options accordingly. 7372 echo 'int i;' > conftest.$ac_ext 7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7374 (eval $ac_compile) 2>&5 7375 ac_status=$? 7376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7377 test $ac_status = 0; }; then 7378 case `$FILECMD conftest.$ac_objext` in 7379 *ELF-32*) 7380 HPUX_IA64_MODE=32 7381 ;; 7382 *ELF-64*) 7383 HPUX_IA64_MODE=64 7384 ;; 7385 esac 7386 fi 7387 rm -rf conftest* 7388 ;; 7389 *-*-irix6*) 7390 # Find out what ABI is being produced by ac_compile, and set linker 7391 # options accordingly. 7392 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7394 (eval $ac_compile) 2>&5 7395 ac_status=$? 7396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7397 test $ac_status = 0; }; then 7398 if test yes = "$lt_cv_prog_gnu_ld"; then 7399 case `$FILECMD conftest.$ac_objext` in 7400 *32-bit*) 7401 LD="${LD-ld} -melf32bsmip" 7402 ;; 7403 *N32*) 7404 LD="${LD-ld} -melf32bmipn32" 7405 ;; 7406 *64-bit*) 7407 LD="${LD-ld} -melf64bmip" 7408 ;; 7409 esac 7410 else 7411 case `$FILECMD conftest.$ac_objext` in 7412 *32-bit*) 7413 LD="${LD-ld} -32" 7414 ;; 7415 *N32*) 7416 LD="${LD-ld} -n32" 7417 ;; 7418 *64-bit*) 7419 LD="${LD-ld} -64" 7420 ;; 7421 esac 7422 fi 7423 fi 7424 rm -rf conftest* 7425 ;; 7426 7427 mips64*-*linux*) 7428 # Find out what ABI is being produced by ac_compile, and set linker 7429 # options accordingly. 7430 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7432 (eval $ac_compile) 2>&5 7433 ac_status=$? 7434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7435 test $ac_status = 0; }; then 7436 emul=elf 7437 case `$FILECMD conftest.$ac_objext` in 7438 *32-bit*) 7439 emul="${emul}32" 7440 ;; 7441 *64-bit*) 7442 emul="${emul}64" 7443 ;; 7444 esac 7445 case `$FILECMD conftest.$ac_objext` in 7446 *MSB*) 7447 emul="${emul}btsmip" 7448 ;; 7449 *LSB*) 7450 emul="${emul}ltsmip" 7451 ;; 7452 esac 7453 case `$FILECMD conftest.$ac_objext` in 7454 *N32*) 7455 emul="${emul}n32" 7456 ;; 7457 esac 7458 LD="${LD-ld} -m $emul" 7459 fi 7460 rm -rf conftest* 7461 ;; 7462 7463 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7464 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7465 # Find out what ABI is being produced by ac_compile, and set linker 7466 # options accordingly. Note that the listed cases only cover the 7467 # situations where additional linker options are needed (such as when 7468 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7469 # vice versa); the common cases where no linker options are needed do 7470 # not appear in the list. 7471 echo 'int i;' > conftest.$ac_ext 7472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7473 (eval $ac_compile) 2>&5 7474 ac_status=$? 7475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7476 test $ac_status = 0; }; then 7477 case `$FILECMD conftest.o` in 7478 *32-bit*) 7479 case $host in 7480 x86_64-*kfreebsd*-gnu) 7481 LD="${LD-ld} -m elf_i386_fbsd" 7482 ;; 7483 x86_64-*linux*|x86_64-gnu*) 7484 case `$FILECMD conftest.o` in 7485 *x86-64*) 7486 LD="${LD-ld} -m elf32_x86_64" 7487 ;; 7488 *) 7489 LD="${LD-ld} -m elf_i386" 7490 ;; 7491 esac 7492 ;; 7493 powerpc64le-*linux*) 7494 LD="${LD-ld} -m elf32lppclinux" 7495 ;; 7496 powerpc64-*linux*) 7497 LD="${LD-ld} -m elf32ppclinux" 7498 ;; 7499 s390x-*linux*) 7500 LD="${LD-ld} -m elf_s390" 7501 ;; 7502 sparc64-*linux*) 7503 LD="${LD-ld} -m elf32_sparc" 7504 ;; 7505 esac 7506 ;; 7507 *64-bit*) 7508 case $host in 7509 x86_64-*kfreebsd*-gnu) 7510 LD="${LD-ld} -m elf_x86_64_fbsd" 7511 ;; 7512 x86_64-*linux*|x86_64-gnu*) 7513 LD="${LD-ld} -m elf_x86_64" 7514 ;; 7515 powerpcle-*linux*) 7516 LD="${LD-ld} -m elf64lppc" 7517 ;; 7518 powerpc-*linux*) 7519 LD="${LD-ld} -m elf64ppc" 7520 ;; 7521 s390*-*linux*|s390*-*tpf*) 7522 LD="${LD-ld} -m elf64_s390" 7523 ;; 7524 sparc*-*linux*) 7525 LD="${LD-ld} -m elf64_sparc" 7526 ;; 7527 esac 7528 ;; 7529 esac 7530 fi 7531 rm -rf conftest* 7532 ;; 7533 7534 *-*-sco3.2v5*) 7535 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7536 SAVE_CFLAGS=$CFLAGS 7537 CFLAGS="$CFLAGS -belf" 7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7539 printf %s "checking whether the C compiler needs -belf... " >&6; } 7540 if test ${lt_cv_cc_needs_belf+y} 7541 then : 7542 printf %s "(cached) " >&6 7543 else case e in #( 7544 e) ac_ext=c 7545 ac_cpp='$CPP $CPPFLAGS' 7546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7548 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7549 7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7551 /* end confdefs.h. */ 7552 7553 int 7554 main (void) 7555 { 7556 7557 ; 7558 return 0; 7559 } 7560 _ACEOF 7561 if ac_fn_c_try_link "$LINENO" 7562 then : 7563 lt_cv_cc_needs_belf=yes 7564 else case e in #( 7565 e) lt_cv_cc_needs_belf=no ;; 7566 esac 7567 fi 7568 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7569 conftest$ac_exeext conftest.$ac_ext 7570 ac_ext=c 7571 ac_cpp='$CPP $CPPFLAGS' 7572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7574 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7575 ;; 7576 esac 7577 fi 7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7579 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7580 if test yes != "$lt_cv_cc_needs_belf"; then 7581 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7582 CFLAGS=$SAVE_CFLAGS 7583 fi 7584 ;; 7585 *-*solaris*) 7586 # Find out what ABI is being produced by ac_compile, and set linker 7587 # options accordingly. 7588 echo 'int i;' > conftest.$ac_ext 7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7590 (eval $ac_compile) 2>&5 7591 ac_status=$? 7592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7593 test $ac_status = 0; }; then 7594 case `$FILECMD conftest.o` in 7595 *64-bit*) 7596 case $lt_cv_prog_gnu_ld in 7597 yes*) 7598 case $host in 7599 i?86-*-solaris*|x86_64-*-solaris*) 7600 LD="${LD-ld} -m elf_x86_64" 7601 ;; 7602 sparc*-*-solaris*) 7603 LD="${LD-ld} -m elf64_sparc" 7604 ;; 7605 esac 7606 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7607 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7608 LD=${LD-ld}_sol2 7609 fi 7610 ;; 7611 *) 7612 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7613 LD="${LD-ld} -64" 7614 fi 7615 ;; 7616 esac 7617 ;; 7618 esac 7619 fi 7620 rm -rf conftest* 7621 ;; 7622 esac 7623 7624 need_locks=$enable_libtool_lock 7625 7626 if test -n "$ac_tool_prefix"; then 7627 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7628 set dummy ${ac_tool_prefix}mt; ac_word=$2 7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7630 printf %s "checking for $ac_word... " >&6; } 7631 if test ${ac_cv_prog_MANIFEST_TOOL+y} 7632 then : 7633 printf %s "(cached) " >&6 7634 else case e in #( 7635 e) if test -n "$MANIFEST_TOOL"; then 7636 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7637 else 7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7639 for as_dir in $PATH 7640 do 7641 IFS=$as_save_IFS 7642 case $as_dir in #((( 7643 '') as_dir=./ ;; 7644 */) ;; 7645 *) as_dir=$as_dir/ ;; 7646 esac 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7649 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7651 break 2 7652 fi 7653 done 7654 done 7655 IFS=$as_save_IFS 7656 7657 fi ;; 7658 esac 7659 fi 7660 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7661 if test -n "$MANIFEST_TOOL"; then 7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7663 printf "%s\n" "$MANIFEST_TOOL" >&6; } 7664 else 7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7666 printf "%s\n" "no" >&6; } 7667 fi 7668 7669 7670 fi 7671 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7672 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7673 # Extract the first word of "mt", so it can be a program name with args. 7674 set dummy mt; ac_word=$2 7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7676 printf %s "checking for $ac_word... " >&6; } 7677 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7678 then : 7679 printf %s "(cached) " >&6 7680 else case e in #( 7681 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7682 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7683 else 7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7685 for as_dir in $PATH 7686 do 7687 IFS=$as_save_IFS 7688 case $as_dir in #((( 7689 '') as_dir=./ ;; 7690 */) ;; 7691 *) as_dir=$as_dir/ ;; 7692 esac 7693 for ac_exec_ext in '' $ac_executable_extensions; do 7694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7695 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7697 break 2 7698 fi 7699 done 7700 done 7701 IFS=$as_save_IFS 7702 7703 fi ;; 7704 esac 7705 fi 7706 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7707 if test -n "$ac_ct_MANIFEST_TOOL"; then 7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7709 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7710 else 7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7712 printf "%s\n" "no" >&6; } 7713 fi 7714 7715 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7716 MANIFEST_TOOL=":" 7717 else 7718 case $cross_compiling:$ac_tool_warned in 7719 yes:) 7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7721 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7722 ac_tool_warned=yes ;; 7723 esac 7724 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7725 fi 7726 else 7727 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7728 fi 7729 7730 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7732 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7733 if test ${lt_cv_path_manifest_tool+y} 7734 then : 7735 printf %s "(cached) " >&6 7736 else case e in #( 7737 e) lt_cv_path_manifest_tool=no 7738 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7739 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7740 cat conftest.err >&5 7741 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7742 lt_cv_path_manifest_tool=yes 7743 fi 7744 rm -f conftest* ;; 7745 esac 7746 fi 7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 7748 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 7749 if test yes != "$lt_cv_path_manifest_tool"; then 7750 MANIFEST_TOOL=: 7751 fi 7752 7753 7754 7755 7756 7757 7758 case $host_os in 7759 rhapsody* | darwin*) 7760 if test -n "$ac_tool_prefix"; then 7761 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7762 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7764 printf %s "checking for $ac_word... " >&6; } 7765 if test ${ac_cv_prog_DSYMUTIL+y} 7766 then : 7767 printf %s "(cached) " >&6 7768 else case e in #( 7769 e) if test -n "$DSYMUTIL"; then 7770 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7771 else 7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7773 for as_dir in $PATH 7774 do 7775 IFS=$as_save_IFS 7776 case $as_dir in #((( 7777 '') as_dir=./ ;; 7778 */) ;; 7779 *) as_dir=$as_dir/ ;; 7780 esac 7781 for ac_exec_ext in '' $ac_executable_extensions; do 7782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7783 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7785 break 2 7786 fi 7787 done 7788 done 7789 IFS=$as_save_IFS 7790 7791 fi ;; 7792 esac 7793 fi 7794 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7795 if test -n "$DSYMUTIL"; then 7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7797 printf "%s\n" "$DSYMUTIL" >&6; } 7798 else 7799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7800 printf "%s\n" "no" >&6; } 7801 fi 7802 7803 7804 fi 7805 if test -z "$ac_cv_prog_DSYMUTIL"; then 7806 ac_ct_DSYMUTIL=$DSYMUTIL 7807 # Extract the first word of "dsymutil", so it can be a program name with args. 7808 set dummy dsymutil; ac_word=$2 7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7810 printf %s "checking for $ac_word... " >&6; } 7811 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7812 then : 7813 printf %s "(cached) " >&6 7814 else case e in #( 7815 e) if test -n "$ac_ct_DSYMUTIL"; then 7816 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7817 else 7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7819 for as_dir in $PATH 7820 do 7821 IFS=$as_save_IFS 7822 case $as_dir in #((( 7823 '') as_dir=./ ;; 7824 */) ;; 7825 *) as_dir=$as_dir/ ;; 7826 esac 7827 for ac_exec_ext in '' $ac_executable_extensions; do 7828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7829 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7831 break 2 7832 fi 7833 done 7834 done 7835 IFS=$as_save_IFS 7836 7837 fi ;; 7838 esac 7839 fi 7840 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7841 if test -n "$ac_ct_DSYMUTIL"; then 7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7843 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7844 else 7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7846 printf "%s\n" "no" >&6; } 7847 fi 7848 7849 if test "x$ac_ct_DSYMUTIL" = x; then 7850 DSYMUTIL=":" 7851 else 7852 case $cross_compiling:$ac_tool_warned in 7853 yes:) 7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7855 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7856 ac_tool_warned=yes ;; 7857 esac 7858 DSYMUTIL=$ac_ct_DSYMUTIL 7859 fi 7860 else 7861 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7862 fi 7863 7864 if test -n "$ac_tool_prefix"; then 7865 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7866 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7868 printf %s "checking for $ac_word... " >&6; } 7869 if test ${ac_cv_prog_NMEDIT+y} 7870 then : 7871 printf %s "(cached) " >&6 7872 else case e in #( 7873 e) if test -n "$NMEDIT"; then 7874 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7875 else 7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7877 for as_dir in $PATH 7878 do 7879 IFS=$as_save_IFS 7880 case $as_dir in #((( 7881 '') as_dir=./ ;; 7882 */) ;; 7883 *) as_dir=$as_dir/ ;; 7884 esac 7885 for ac_exec_ext in '' $ac_executable_extensions; do 7886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7887 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7889 break 2 7890 fi 7891 done 7892 done 7893 IFS=$as_save_IFS 7894 7895 fi ;; 7896 esac 7897 fi 7898 NMEDIT=$ac_cv_prog_NMEDIT 7899 if test -n "$NMEDIT"; then 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7901 printf "%s\n" "$NMEDIT" >&6; } 7902 else 7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7904 printf "%s\n" "no" >&6; } 7905 fi 7906 7907 7908 fi 7909 if test -z "$ac_cv_prog_NMEDIT"; then 7910 ac_ct_NMEDIT=$NMEDIT 7911 # Extract the first word of "nmedit", so it can be a program name with args. 7912 set dummy nmedit; ac_word=$2 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7914 printf %s "checking for $ac_word... " >&6; } 7915 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7916 then : 7917 printf %s "(cached) " >&6 7918 else case e in #( 7919 e) if test -n "$ac_ct_NMEDIT"; then 7920 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7921 else 7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7923 for as_dir in $PATH 7924 do 7925 IFS=$as_save_IFS 7926 case $as_dir in #((( 7927 '') as_dir=./ ;; 7928 */) ;; 7929 *) as_dir=$as_dir/ ;; 7930 esac 7931 for ac_exec_ext in '' $ac_executable_extensions; do 7932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7933 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7935 break 2 7936 fi 7937 done 7938 done 7939 IFS=$as_save_IFS 7940 7941 fi ;; 7942 esac 7943 fi 7944 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7945 if test -n "$ac_ct_NMEDIT"; then 7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7947 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7948 else 7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7950 printf "%s\n" "no" >&6; } 7951 fi 7952 7953 if test "x$ac_ct_NMEDIT" = x; then 7954 NMEDIT=":" 7955 else 7956 case $cross_compiling:$ac_tool_warned in 7957 yes:) 7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7959 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7960 ac_tool_warned=yes ;; 7961 esac 7962 NMEDIT=$ac_ct_NMEDIT 7963 fi 7964 else 7965 NMEDIT="$ac_cv_prog_NMEDIT" 7966 fi 7967 7968 if test -n "$ac_tool_prefix"; then 7969 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7970 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7972 printf %s "checking for $ac_word... " >&6; } 7973 if test ${ac_cv_prog_LIPO+y} 7974 then : 7975 printf %s "(cached) " >&6 7976 else case e in #( 7977 e) if test -n "$LIPO"; then 7978 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7979 else 7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7981 for as_dir in $PATH 7982 do 7983 IFS=$as_save_IFS 7984 case $as_dir in #((( 7985 '') as_dir=./ ;; 7986 */) ;; 7987 *) as_dir=$as_dir/ ;; 7988 esac 7989 for ac_exec_ext in '' $ac_executable_extensions; do 7990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7991 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7993 break 2 7994 fi 7995 done 7996 done 7997 IFS=$as_save_IFS 7998 7999 fi ;; 8000 esac 8001 fi 8002 LIPO=$ac_cv_prog_LIPO 8003 if test -n "$LIPO"; then 8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8005 printf "%s\n" "$LIPO" >&6; } 8006 else 8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8008 printf "%s\n" "no" >&6; } 8009 fi 8010 8011 8012 fi 8013 if test -z "$ac_cv_prog_LIPO"; then 8014 ac_ct_LIPO=$LIPO 8015 # Extract the first word of "lipo", so it can be a program name with args. 8016 set dummy lipo; ac_word=$2 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8018 printf %s "checking for $ac_word... " >&6; } 8019 if test ${ac_cv_prog_ac_ct_LIPO+y} 8020 then : 8021 printf %s "(cached) " >&6 8022 else case e in #( 8023 e) if test -n "$ac_ct_LIPO"; then 8024 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8025 else 8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8027 for as_dir in $PATH 8028 do 8029 IFS=$as_save_IFS 8030 case $as_dir in #((( 8031 '') as_dir=./ ;; 8032 */) ;; 8033 *) as_dir=$as_dir/ ;; 8034 esac 8035 for ac_exec_ext in '' $ac_executable_extensions; do 8036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8037 ac_cv_prog_ac_ct_LIPO="lipo" 8038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8039 break 2 8040 fi 8041 done 8042 done 8043 IFS=$as_save_IFS 8044 8045 fi ;; 8046 esac 8047 fi 8048 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8049 if test -n "$ac_ct_LIPO"; then 8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8051 printf "%s\n" "$ac_ct_LIPO" >&6; } 8052 else 8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8054 printf "%s\n" "no" >&6; } 8055 fi 8056 8057 if test "x$ac_ct_LIPO" = x; then 8058 LIPO=":" 8059 else 8060 case $cross_compiling:$ac_tool_warned in 8061 yes:) 8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8064 ac_tool_warned=yes ;; 8065 esac 8066 LIPO=$ac_ct_LIPO 8067 fi 8068 else 8069 LIPO="$ac_cv_prog_LIPO" 8070 fi 8071 8072 if test -n "$ac_tool_prefix"; then 8073 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8074 set dummy ${ac_tool_prefix}otool; ac_word=$2 8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8076 printf %s "checking for $ac_word... " >&6; } 8077 if test ${ac_cv_prog_OTOOL+y} 8078 then : 8079 printf %s "(cached) " >&6 8080 else case e in #( 8081 e) if test -n "$OTOOL"; then 8082 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8083 else 8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8085 for as_dir in $PATH 8086 do 8087 IFS=$as_save_IFS 8088 case $as_dir in #((( 8089 '') as_dir=./ ;; 8090 */) ;; 8091 *) as_dir=$as_dir/ ;; 8092 esac 8093 for ac_exec_ext in '' $ac_executable_extensions; do 8094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8095 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8097 break 2 8098 fi 8099 done 8100 done 8101 IFS=$as_save_IFS 8102 8103 fi ;; 8104 esac 8105 fi 8106 OTOOL=$ac_cv_prog_OTOOL 8107 if test -n "$OTOOL"; then 8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8109 printf "%s\n" "$OTOOL" >&6; } 8110 else 8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8112 printf "%s\n" "no" >&6; } 8113 fi 8114 8115 8116 fi 8117 if test -z "$ac_cv_prog_OTOOL"; then 8118 ac_ct_OTOOL=$OTOOL 8119 # Extract the first word of "otool", so it can be a program name with args. 8120 set dummy otool; ac_word=$2 8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8122 printf %s "checking for $ac_word... " >&6; } 8123 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8124 then : 8125 printf %s "(cached) " >&6 8126 else case e in #( 8127 e) if test -n "$ac_ct_OTOOL"; then 8128 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8129 else 8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8131 for as_dir in $PATH 8132 do 8133 IFS=$as_save_IFS 8134 case $as_dir in #((( 8135 '') as_dir=./ ;; 8136 */) ;; 8137 *) as_dir=$as_dir/ ;; 8138 esac 8139 for ac_exec_ext in '' $ac_executable_extensions; do 8140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8141 ac_cv_prog_ac_ct_OTOOL="otool" 8142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8143 break 2 8144 fi 8145 done 8146 done 8147 IFS=$as_save_IFS 8148 8149 fi ;; 8150 esac 8151 fi 8152 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8153 if test -n "$ac_ct_OTOOL"; then 8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8155 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8156 else 8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8158 printf "%s\n" "no" >&6; } 8159 fi 8160 8161 if test "x$ac_ct_OTOOL" = x; then 8162 OTOOL=":" 8163 else 8164 case $cross_compiling:$ac_tool_warned in 8165 yes:) 8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8167 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8168 ac_tool_warned=yes ;; 8169 esac 8170 OTOOL=$ac_ct_OTOOL 8171 fi 8172 else 8173 OTOOL="$ac_cv_prog_OTOOL" 8174 fi 8175 8176 if test -n "$ac_tool_prefix"; then 8177 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8178 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8180 printf %s "checking for $ac_word... " >&6; } 8181 if test ${ac_cv_prog_OTOOL64+y} 8182 then : 8183 printf %s "(cached) " >&6 8184 else case e in #( 8185 e) if test -n "$OTOOL64"; then 8186 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8187 else 8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8189 for as_dir in $PATH 8190 do 8191 IFS=$as_save_IFS 8192 case $as_dir in #((( 8193 '') as_dir=./ ;; 8194 */) ;; 8195 *) as_dir=$as_dir/ ;; 8196 esac 8197 for ac_exec_ext in '' $ac_executable_extensions; do 8198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8199 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8201 break 2 8202 fi 8203 done 8204 done 8205 IFS=$as_save_IFS 8206 8207 fi ;; 8208 esac 8209 fi 8210 OTOOL64=$ac_cv_prog_OTOOL64 8211 if test -n "$OTOOL64"; then 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8213 printf "%s\n" "$OTOOL64" >&6; } 8214 else 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8216 printf "%s\n" "no" >&6; } 8217 fi 8218 8219 8220 fi 8221 if test -z "$ac_cv_prog_OTOOL64"; then 8222 ac_ct_OTOOL64=$OTOOL64 8223 # Extract the first word of "otool64", so it can be a program name with args. 8224 set dummy otool64; ac_word=$2 8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8226 printf %s "checking for $ac_word... " >&6; } 8227 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8228 then : 8229 printf %s "(cached) " >&6 8230 else case e in #( 8231 e) if test -n "$ac_ct_OTOOL64"; then 8232 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8233 else 8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8235 for as_dir in $PATH 8236 do 8237 IFS=$as_save_IFS 8238 case $as_dir in #((( 8239 '') as_dir=./ ;; 8240 */) ;; 8241 *) as_dir=$as_dir/ ;; 8242 esac 8243 for ac_exec_ext in '' $ac_executable_extensions; do 8244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8245 ac_cv_prog_ac_ct_OTOOL64="otool64" 8246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8247 break 2 8248 fi 8249 done 8250 done 8251 IFS=$as_save_IFS 8252 8253 fi ;; 8254 esac 8255 fi 8256 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8257 if test -n "$ac_ct_OTOOL64"; then 8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8259 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8260 else 8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8262 printf "%s\n" "no" >&6; } 8263 fi 8264 8265 if test "x$ac_ct_OTOOL64" = x; then 8266 OTOOL64=":" 8267 else 8268 case $cross_compiling:$ac_tool_warned in 8269 yes:) 8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8271 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8272 ac_tool_warned=yes ;; 8273 esac 8274 OTOOL64=$ac_ct_OTOOL64 8275 fi 8276 else 8277 OTOOL64="$ac_cv_prog_OTOOL64" 8278 fi 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8307 printf %s "checking for -single_module linker flag... " >&6; } 8308 if test ${lt_cv_apple_cc_single_mod+y} 8309 then : 8310 printf %s "(cached) " >&6 8311 else case e in #( 8312 e) lt_cv_apple_cc_single_mod=no 8313 if test -z "$LT_MULTI_MODULE"; then 8314 # By default we will add the -single_module flag. You can override 8315 # by either setting the environment variable LT_MULTI_MODULE 8316 # non-empty at configure time, or by adding -multi_module to the 8317 # link flags. 8318 rm -rf libconftest.dylib* 8319 echo "int foo(void){return 1;}" > conftest.c 8320 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8321 -dynamiclib -Wl,-single_module conftest.c" >&5 8322 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8323 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8324 _lt_result=$? 8325 # If there is a non-empty error log, and "single_module" 8326 # appears in it, assume the flag caused a linker warning 8327 if test -s conftest.err && $GREP single_module conftest.err; then 8328 cat conftest.err >&5 8329 # Otherwise, if the output was created with a 0 exit code from 8330 # the compiler, it worked. 8331 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8332 lt_cv_apple_cc_single_mod=yes 8333 else 8334 cat conftest.err >&5 8335 fi 8336 rm -rf libconftest.dylib* 8337 rm -f conftest.* 8338 fi ;; 8339 esac 8340 fi 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8342 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8343 8344 # Feature test to disable chained fixups since it is not 8345 # compatible with '-undefined dynamic_lookup' 8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8347 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8348 if test ${lt_cv_support_no_fixup_chains+y} 8349 then : 8350 printf %s "(cached) " >&6 8351 else case e in #( 8352 e) save_LDFLAGS=$LDFLAGS 8353 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8355 /* end confdefs.h. */ 8356 8357 int 8358 main (void) 8359 { 8360 8361 ; 8362 return 0; 8363 } 8364 _ACEOF 8365 if ac_fn_c_try_link "$LINENO" 8366 then : 8367 lt_cv_support_no_fixup_chains=yes 8368 else case e in #( 8369 e) lt_cv_support_no_fixup_chains=no 8370 ;; 8371 esac 8372 fi 8373 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8374 conftest$ac_exeext conftest.$ac_ext 8375 LDFLAGS=$save_LDFLAGS 8376 8377 ;; 8378 esac 8379 fi 8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8381 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8382 8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8384 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8385 if test ${lt_cv_ld_exported_symbols_list+y} 8386 then : 8387 printf %s "(cached) " >&6 8388 else case e in #( 8389 e) lt_cv_ld_exported_symbols_list=no 8390 save_LDFLAGS=$LDFLAGS 8391 echo "_main" > conftest.sym 8392 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8394 /* end confdefs.h. */ 8395 8396 int 8397 main (void) 8398 { 8399 8400 ; 8401 return 0; 8402 } 8403 _ACEOF 8404 if ac_fn_c_try_link "$LINENO" 8405 then : 8406 lt_cv_ld_exported_symbols_list=yes 8407 else case e in #( 8408 e) lt_cv_ld_exported_symbols_list=no ;; 8409 esac 8410 fi 8411 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8412 conftest$ac_exeext conftest.$ac_ext 8413 LDFLAGS=$save_LDFLAGS 8414 ;; 8415 esac 8416 fi 8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8418 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8419 8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8421 printf %s "checking for -force_load linker flag... " >&6; } 8422 if test ${lt_cv_ld_force_load+y} 8423 then : 8424 printf %s "(cached) " >&6 8425 else case e in #( 8426 e) lt_cv_ld_force_load=no 8427 cat > conftest.c << _LT_EOF 8428 int forced_loaded() { return 2;} 8429 _LT_EOF 8430 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8431 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8432 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8433 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8434 echo "$RANLIB libconftest.a" >&5 8435 $RANLIB libconftest.a 2>&5 8436 cat > conftest.c << _LT_EOF 8437 int main(void) { return 0;} 8438 _LT_EOF 8439 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8440 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8441 _lt_result=$? 8442 if test -s conftest.err && $GREP force_load conftest.err; then 8443 cat conftest.err >&5 8444 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8445 lt_cv_ld_force_load=yes 8446 else 8447 cat conftest.err >&5 8448 fi 8449 rm -f conftest.err libconftest.a conftest conftest.c 8450 rm -rf conftest.dSYM 8451 ;; 8452 esac 8453 fi 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8455 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8456 case $host_os in 8457 rhapsody* | darwin1.[012]) 8458 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8459 darwin1.*) 8460 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8461 darwin*) 8462 case $MACOSX_DEPLOYMENT_TARGET,$host in 8463 10.[012],*|,*powerpc*-darwin[5-8]*) 8464 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8465 *) 8466 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8467 if test yes = "$lt_cv_support_no_fixup_chains"; then 8468 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8469 fi 8470 ;; 8471 esac 8472 ;; 8473 esac 8474 if test yes = "$lt_cv_apple_cc_single_mod"; then 8475 _lt_dar_single_mod='$single_module' 8476 fi 8477 _lt_dar_needs_single_mod=no 8478 case $host_os in 8479 rhapsody* | darwin1.*) 8480 _lt_dar_needs_single_mod=yes ;; 8481 darwin*) 8482 # When targeting Mac OS X 10.4 (darwin 8) or later, 8483 # -single_module is the default and -multi_module is unsupported. 8484 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8485 # target any OS version that needs -single_module. 8486 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8487 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8488 _lt_dar_needs_single_mod=yes ;; 8489 esac 8490 ;; 8491 esac 8492 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8493 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8494 else 8495 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8496 fi 8497 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8498 _lt_dsymutil='~$DSYMUTIL $lib || :' 8499 else 8500 _lt_dsymutil= 8501 fi 8502 ;; 8503 esac 8504 8505 # func_munge_path_list VARIABLE PATH 8506 # ----------------------------------- 8507 # VARIABLE is name of variable containing _space_ separated list of 8508 # directories to be munged by the contents of PATH, which is string 8509 # having a format: 8510 # "DIR[:DIR]:" 8511 # string "DIR[ DIR]" will be prepended to VARIABLE 8512 # ":DIR[:DIR]" 8513 # string "DIR[ DIR]" will be appended to VARIABLE 8514 # "DIRP[:DIRP]::[DIRA:]DIRA" 8515 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8516 # "DIRA[ DIRA]" will be appended to VARIABLE 8517 # "DIR[:DIR]" 8518 # VARIABLE will be replaced by "DIR[ DIR]" 8519 func_munge_path_list () 8520 { 8521 case x$2 in 8522 x) 8523 ;; 8524 *:) 8525 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8526 ;; 8527 x:*) 8528 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8529 ;; 8530 *::*) 8531 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8532 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8533 ;; 8534 *) 8535 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8536 ;; 8537 esac 8538 } 8539 8540 ac_header= ac_cache= 8541 for ac_item in $ac_header_c_list 8542 do 8543 if test $ac_cache; then 8544 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8545 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8546 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8547 fi 8548 ac_header= ac_cache= 8549 elif test $ac_header; then 8550 ac_cache=$ac_item 8551 else 8552 ac_header=$ac_item 8553 fi 8554 done 8555 8556 8557 8558 8559 8560 8561 8562 8563 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8564 then : 8565 8566 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8567 8568 fi 8569 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8570 " 8571 if test "x$ac_cv_header_dlfcn_h" = xyes 8572 then : 8573 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8574 8575 fi 8576 8577 8578 8579 8580 8581 # Set options 8582 8583 8584 8585 enable_dlopen=no 8586 8587 8588 enable_win32_dll=no 8589 8590 8591 # Check whether --enable-shared was given. 8592 if test ${enable_shared+y} 8593 then : 8594 enableval=$enable_shared; p=${PACKAGE-default} 8595 case $enableval in 8596 yes) enable_shared=yes ;; 8597 no) enable_shared=no ;; 8598 *) 8599 enable_shared=no 8600 # Look at the argument we got. We use all the common list separators. 8601 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8602 for pkg in $enableval; do 8603 IFS=$lt_save_ifs 8604 if test "X$pkg" = "X$p"; then 8605 enable_shared=yes 8606 fi 8607 done 8608 IFS=$lt_save_ifs 8609 ;; 8610 esac 8611 else case e in #( 8612 e) enable_shared=yes ;; 8613 esac 8614 fi 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 # Check whether --enable-static was given. 8625 if test ${enable_static+y} 8626 then : 8627 enableval=$enable_static; p=${PACKAGE-default} 8628 case $enableval in 8629 yes) enable_static=yes ;; 8630 no) enable_static=no ;; 8631 *) 8632 enable_static=no 8633 # Look at the argument we got. We use all the common list separators. 8634 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8635 for pkg in $enableval; do 8636 IFS=$lt_save_ifs 8637 if test "X$pkg" = "X$p"; then 8638 enable_static=yes 8639 fi 8640 done 8641 IFS=$lt_save_ifs 8642 ;; 8643 esac 8644 else case e in #( 8645 e) enable_static=yes ;; 8646 esac 8647 fi 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 # Check whether --enable-pic was given. 8658 if test ${enable_pic+y} 8659 then : 8660 enableval=$enable_pic; lt_p=${PACKAGE-default} 8661 case $enableval in 8662 yes|no) pic_mode=$enableval ;; 8663 *) 8664 pic_mode=default 8665 # Look at the argument we got. We use all the common list separators. 8666 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8667 for lt_pkg in $enableval; do 8668 IFS=$lt_save_ifs 8669 if test "X$lt_pkg" = "X$lt_p"; then 8670 pic_mode=yes 8671 fi 8672 done 8673 IFS=$lt_save_ifs 8674 ;; 8675 esac 8676 else case e in #( 8677 e) # Check whether --with-pic was given. 8678 if test ${with_pic+y} 8679 then : 8680 withval=$with_pic; lt_p=${PACKAGE-default} 8681 case $withval in 8682 yes|no) pic_mode=$withval ;; 8683 *) 8684 pic_mode=default 8685 # Look at the argument we got. We use all the common list separators. 8686 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8687 for lt_pkg in $withval; do 8688 IFS=$lt_save_ifs 8689 if test "X$lt_pkg" = "X$lt_p"; then 8690 pic_mode=yes 8691 fi 8692 done 8693 IFS=$lt_save_ifs 8694 ;; 8695 esac 8696 else case e in #( 8697 e) pic_mode=default ;; 8698 esac 8699 fi 8700 8701 ;; 8702 esac 8703 fi 8704 8705 8706 8707 8708 8709 8710 8711 8712 # Check whether --enable-fast-install was given. 8713 if test ${enable_fast_install+y} 8714 then : 8715 enableval=$enable_fast_install; p=${PACKAGE-default} 8716 case $enableval in 8717 yes) enable_fast_install=yes ;; 8718 no) enable_fast_install=no ;; 8719 *) 8720 enable_fast_install=no 8721 # Look at the argument we got. We use all the common list separators. 8722 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8723 for pkg in $enableval; do 8724 IFS=$lt_save_ifs 8725 if test "X$pkg" = "X$p"; then 8726 enable_fast_install=yes 8727 fi 8728 done 8729 IFS=$lt_save_ifs 8730 ;; 8731 esac 8732 else case e in #( 8733 e) enable_fast_install=yes ;; 8734 esac 8735 fi 8736 8737 8738 8739 8740 8741 8742 8743 8744 shared_archive_member_spec= 8745 case $host,$enable_shared in 8746 power*-*-aix[5-9]*,yes) 8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8748 printf %s "checking which variant of shared library versioning to provide... " >&6; } 8749 # Check whether --enable-aix-soname was given. 8750 if test ${enable_aix_soname+y} 8751 then : 8752 enableval=$enable_aix_soname; case $enableval in 8753 aix|svr4|both) 8754 ;; 8755 *) 8756 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 8757 ;; 8758 esac 8759 lt_cv_with_aix_soname=$enable_aix_soname 8760 else case e in #( 8761 e) # Check whether --with-aix-soname was given. 8762 if test ${with_aix_soname+y} 8763 then : 8764 withval=$with_aix_soname; case $withval in 8765 aix|svr4|both) 8766 ;; 8767 *) 8768 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8769 ;; 8770 esac 8771 lt_cv_with_aix_soname=$with_aix_soname 8772 else case e in #( 8773 e) if test ${lt_cv_with_aix_soname+y} 8774 then : 8775 printf %s "(cached) " >&6 8776 else case e in #( 8777 e) lt_cv_with_aix_soname=aix ;; 8778 esac 8779 fi 8780 ;; 8781 esac 8782 fi 8783 8784 enable_aix_soname=$lt_cv_with_aix_soname ;; 8785 esac 8786 fi 8787 8788 with_aix_soname=$enable_aix_soname 8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8790 printf "%s\n" "$with_aix_soname" >&6; } 8791 if test aix != "$with_aix_soname"; then 8792 # For the AIX way of multilib, we name the shared archive member 8793 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8794 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8795 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8796 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8797 if test 64 = "${OBJECT_MODE-32}"; then 8798 shared_archive_member_spec=shr_64 8799 else 8800 shared_archive_member_spec=shr 8801 fi 8802 fi 8803 ;; 8804 *) 8805 with_aix_soname=aix 8806 ;; 8807 esac 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 # This can be used to rebuild libtool when needed 8819 LIBTOOL_DEPS=$ltmain 8820 8821 # Always use our own libtool. 8822 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 test -z "$LN_S" && LN_S="ln -s" 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 if test -n "${ZSH_VERSION+set}"; then 8869 setopt NO_GLOB_SUBST 8870 fi 8871 8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8873 printf %s "checking for objdir... " >&6; } 8874 if test ${lt_cv_objdir+y} 8875 then : 8876 printf %s "(cached) " >&6 8877 else case e in #( 8878 e) rm -f .libs 2>/dev/null 8879 mkdir .libs 2>/dev/null 8880 if test -d .libs; then 8881 lt_cv_objdir=.libs 8882 else 8883 # MS-DOS does not allow filenames that begin with a dot. 8884 lt_cv_objdir=_libs 8885 fi 8886 rmdir .libs 2>/dev/null ;; 8887 esac 8888 fi 8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8890 printf "%s\n" "$lt_cv_objdir" >&6; } 8891 objdir=$lt_cv_objdir 8892 8893 8894 8895 8896 8897 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8898 8899 8900 8901 8902 case $host_os in 8903 aix3*) 8904 # AIX sometimes has problems with the GCC collect2 program. For some 8905 # reason, if we set the COLLECT_NAMES environment variable, the problems 8906 # vanish in a puff of smoke. 8907 if test set != "${COLLECT_NAMES+set}"; then 8908 COLLECT_NAMES= 8909 export COLLECT_NAMES 8910 fi 8911 ;; 8912 esac 8913 8914 # Global variables: 8915 ofile=libtool 8916 can_build_shared=yes 8917 8918 # All known linkers require a '.a' archive for static linking (except MSVC and 8919 # ICC, which need '.lib'). 8920 libext=a 8921 8922 with_gnu_ld=$lt_cv_prog_gnu_ld 8923 8924 old_CC=$CC 8925 old_CFLAGS=$CFLAGS 8926 8927 # Set sane defaults for various variables 8928 test -z "$CC" && CC=cc 8929 test -z "$LTCC" && LTCC=$CC 8930 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8931 test -z "$LD" && LD=ld 8932 test -z "$ac_objext" && ac_objext=o 8933 8934 func_cc_basename $compiler 8935 cc_basename=$func_cc_basename_result 8936 8937 8938 # Only perform the check for file, if the check method requires it 8939 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8940 case $deplibs_check_method in 8941 file_magic*) 8942 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8944 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8945 if test ${lt_cv_path_MAGIC_CMD+y} 8946 then : 8947 printf %s "(cached) " >&6 8948 else case e in #( 8949 e) case $MAGIC_CMD in 8950 [\\/*] | ?:[\\/]*) 8951 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8952 ;; 8953 *) 8954 lt_save_MAGIC_CMD=$MAGIC_CMD 8955 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8956 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8957 for ac_dir in $ac_dummy; do 8958 IFS=$lt_save_ifs 8959 test -z "$ac_dir" && ac_dir=. 8960 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8961 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8962 if test -n "$file_magic_test_file"; then 8963 case $deplibs_check_method in 8964 "file_magic "*) 8965 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8966 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8967 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8968 $EGREP "$file_magic_regex" > /dev/null; then 8969 : 8970 else 8971 cat <<_LT_EOF 1>&2 8972 8973 *** Warning: the command libtool uses to detect shared libraries, 8974 *** $file_magic_cmd, produces output that libtool cannot recognize. 8975 *** The result is that libtool may fail to recognize shared libraries 8976 *** as such. This will affect the creation of libtool libraries that 8977 *** depend on shared libraries, but programs linked with such libtool 8978 *** libraries will work regardless of this problem. Nevertheless, you 8979 *** may want to report the problem to your system manager and/or to 8980 *** bug-libtool@gnu.org 8981 8982 _LT_EOF 8983 fi ;; 8984 esac 8985 fi 8986 break 8987 fi 8988 done 8989 IFS=$lt_save_ifs 8990 MAGIC_CMD=$lt_save_MAGIC_CMD 8991 ;; 8992 esac ;; 8993 esac 8994 fi 8995 8996 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8997 if test -n "$MAGIC_CMD"; then 8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8999 printf "%s\n" "$MAGIC_CMD" >&6; } 9000 else 9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9002 printf "%s\n" "no" >&6; } 9003 fi 9004 9005 9006 9007 9008 9009 if test -z "$lt_cv_path_MAGIC_CMD"; then 9010 if test -n "$ac_tool_prefix"; then 9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9012 printf %s "checking for file... " >&6; } 9013 if test ${lt_cv_path_MAGIC_CMD+y} 9014 then : 9015 printf %s "(cached) " >&6 9016 else case e in #( 9017 e) case $MAGIC_CMD in 9018 [\\/*] | ?:[\\/]*) 9019 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9020 ;; 9021 *) 9022 lt_save_MAGIC_CMD=$MAGIC_CMD 9023 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9024 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9025 for ac_dir in $ac_dummy; do 9026 IFS=$lt_save_ifs 9027 test -z "$ac_dir" && ac_dir=. 9028 if test -f "$ac_dir/file"; then 9029 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9030 if test -n "$file_magic_test_file"; then 9031 case $deplibs_check_method in 9032 "file_magic "*) 9033 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9034 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9036 $EGREP "$file_magic_regex" > /dev/null; then 9037 : 9038 else 9039 cat <<_LT_EOF 1>&2 9040 9041 *** Warning: the command libtool uses to detect shared libraries, 9042 *** $file_magic_cmd, produces output that libtool cannot recognize. 9043 *** The result is that libtool may fail to recognize shared libraries 9044 *** as such. This will affect the creation of libtool libraries that 9045 *** depend on shared libraries, but programs linked with such libtool 9046 *** libraries will work regardless of this problem. Nevertheless, you 9047 *** may want to report the problem to your system manager and/or to 9048 *** bug-libtool@gnu.org 9049 9050 _LT_EOF 9051 fi ;; 9052 esac 9053 fi 9054 break 9055 fi 9056 done 9057 IFS=$lt_save_ifs 9058 MAGIC_CMD=$lt_save_MAGIC_CMD 9059 ;; 9060 esac ;; 9061 esac 9062 fi 9063 9064 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9065 if test -n "$MAGIC_CMD"; then 9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9067 printf "%s\n" "$MAGIC_CMD" >&6; } 9068 else 9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9070 printf "%s\n" "no" >&6; } 9071 fi 9072 9073 9074 else 9075 MAGIC_CMD=: 9076 fi 9077 fi 9078 9079 fi 9080 ;; 9081 esac 9082 9083 # Use C for the default configuration in the libtool script 9084 9085 lt_save_CC=$CC 9086 ac_ext=c 9087 ac_cpp='$CPP $CPPFLAGS' 9088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9090 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9091 9092 9093 # Source file extension for C test sources. 9094 ac_ext=c 9095 9096 # Object file extension for compiled C test sources. 9097 objext=o 9098 objext=$objext 9099 9100 # Code to be used in simple compile tests 9101 lt_simple_compile_test_code="int some_variable = 0;" 9102 9103 # Code to be used in simple link tests 9104 lt_simple_link_test_code='int main(void){return(0);}' 9105 9106 9107 9108 9109 9110 9111 9112 # If no C compiler was specified, use CC. 9113 LTCC=${LTCC-"$CC"} 9114 9115 # If no C compiler flags were specified, use CFLAGS. 9116 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9117 9118 # Allow CC to be a program name with arguments. 9119 compiler=$CC 9120 9121 # Save the default compiler, since it gets overwritten when the other 9122 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9123 compiler_DEFAULT=$CC 9124 9125 # save warnings/boilerplate of simple test code 9126 ac_outfile=conftest.$ac_objext 9127 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9128 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9129 _lt_compiler_boilerplate=`cat conftest.err` 9130 $RM conftest* 9131 9132 ac_outfile=conftest.$ac_objext 9133 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9134 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9135 _lt_linker_boilerplate=`cat conftest.err` 9136 $RM -r conftest* 9137 9138 9139 ## CAVEAT EMPTOR: 9140 ## There is no encapsulation within the following macros, do not change 9141 ## the running order or otherwise move them around unless you know exactly 9142 ## what you are doing... 9143 if test -n "$compiler"; then 9144 9145 lt_prog_compiler_no_builtin_flag= 9146 9147 if test yes = "$GCC"; then 9148 case $cc_basename in 9149 nvcc*) 9150 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9151 *) 9152 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9153 esac 9154 9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9156 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9157 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9158 then : 9159 printf %s "(cached) " >&6 9160 else case e in #( 9161 e) lt_cv_prog_compiler_rtti_exceptions=no 9162 ac_outfile=conftest.$ac_objext 9163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9164 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9165 # Insert the option either (1) after the last *FLAGS variable, or 9166 # (2) before a word containing "conftest.", or (3) at the end. 9167 # Note that $ac_compile itself does not contain backslashes and begins 9168 # with a dollar sign (not a hyphen), so the echo should work correctly. 9169 # The option is referenced via a variable to avoid confusing sed. 9170 lt_compile=`echo "$ac_compile" | $SED \ 9171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9173 -e 's:$: $lt_compiler_flag:'` 9174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9175 (eval "$lt_compile" 2>conftest.err) 9176 ac_status=$? 9177 cat conftest.err >&5 9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9179 if (exit $ac_status) && test -s "$ac_outfile"; then 9180 # The compiler can only warn and ignore the option if not recognized 9181 # So say no if there are warnings other than the usual output. 9182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9184 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9185 lt_cv_prog_compiler_rtti_exceptions=yes 9186 fi 9187 fi 9188 $RM conftest* 9189 ;; 9190 esac 9191 fi 9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9193 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9194 9195 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9196 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9197 else 9198 : 9199 fi 9200 9201 fi 9202 9203 9204 9205 9206 9207 9208 lt_prog_compiler_wl= 9209 lt_prog_compiler_pic= 9210 lt_prog_compiler_static= 9211 9212 9213 if test yes = "$GCC"; then 9214 lt_prog_compiler_wl='-Wl,' 9215 lt_prog_compiler_static='-static' 9216 9217 case $host_os in 9218 aix*) 9219 # All AIX code is PIC. 9220 if test ia64 = "$host_cpu"; then 9221 # AIX 5 now supports IA64 processor 9222 lt_prog_compiler_static='-Bstatic' 9223 fi 9224 lt_prog_compiler_pic='-fPIC' 9225 ;; 9226 9227 amigaos*) 9228 case $host_cpu in 9229 powerpc) 9230 # see comment about AmigaOS4 .so support 9231 lt_prog_compiler_pic='-fPIC' 9232 ;; 9233 m68k) 9234 # FIXME: we need at least 68020 code to build shared libraries, but 9235 # adding the '-m68020' flag to GCC prevents building anything better, 9236 # like '-m68040'. 9237 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9238 ;; 9239 esac 9240 ;; 9241 9242 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9243 # PIC is the default for these OSes. 9244 ;; 9245 9246 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9247 # This hack is so that the source file can tell whether it is being 9248 # built for inclusion in a dll (and should export symbols for example). 9249 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9250 # (--disable-auto-import) libraries 9251 lt_prog_compiler_pic='-DDLL_EXPORT' 9252 case $host_os in 9253 os2*) 9254 lt_prog_compiler_static='$wl-static' 9255 ;; 9256 esac 9257 ;; 9258 9259 darwin* | rhapsody*) 9260 # PIC is the default on this platform 9261 # Common symbols not allowed in MH_DYLIB files 9262 lt_prog_compiler_pic='-fno-common' 9263 ;; 9264 9265 haiku*) 9266 # PIC is the default for Haiku. 9267 # The "-static" flag exists, but is broken. 9268 lt_prog_compiler_static= 9269 ;; 9270 9271 hpux*) 9272 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9273 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9274 # sets the default TLS model and affects inlining. 9275 case $host_cpu in 9276 hppa*64*) 9277 # +Z the default 9278 ;; 9279 *) 9280 lt_prog_compiler_pic='-fPIC' 9281 ;; 9282 esac 9283 ;; 9284 9285 interix[3-9]*) 9286 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9287 # Instead, we relocate shared libraries at runtime. 9288 ;; 9289 9290 msdosdjgpp*) 9291 # Just because we use GCC doesn't mean we suddenly get shared libraries 9292 # on systems that don't support them. 9293 lt_prog_compiler_can_build_shared=no 9294 enable_shared=no 9295 ;; 9296 9297 *nto* | *qnx*) 9298 # QNX uses GNU C++, but need to define -shared option too, otherwise 9299 # it will coredump. 9300 lt_prog_compiler_pic='-fPIC -shared' 9301 ;; 9302 9303 sysv4*MP*) 9304 if test -d /usr/nec; then 9305 lt_prog_compiler_pic=-Kconform_pic 9306 fi 9307 ;; 9308 9309 *) 9310 lt_prog_compiler_pic='-fPIC' 9311 ;; 9312 esac 9313 9314 case $cc_basename in 9315 nvcc*) # Cuda Compiler Driver 2.2 9316 lt_prog_compiler_wl='-Xlinker ' 9317 if test -n "$lt_prog_compiler_pic"; then 9318 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9319 fi 9320 ;; 9321 esac 9322 else 9323 # PORTME Check for flag to pass linker flags through the system compiler. 9324 case $host_os in 9325 aix*) 9326 lt_prog_compiler_wl='-Wl,' 9327 if test ia64 = "$host_cpu"; then 9328 # AIX 5 now supports IA64 processor 9329 lt_prog_compiler_static='-Bstatic' 9330 else 9331 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9332 fi 9333 ;; 9334 9335 darwin* | rhapsody*) 9336 # PIC is the default on this platform 9337 # Common symbols not allowed in MH_DYLIB files 9338 lt_prog_compiler_pic='-fno-common' 9339 case $cc_basename in 9340 nagfor*) 9341 # NAG Fortran compiler 9342 lt_prog_compiler_wl='-Wl,-Wl,,' 9343 lt_prog_compiler_pic='-PIC' 9344 lt_prog_compiler_static='-Bstatic' 9345 ;; 9346 esac 9347 ;; 9348 9349 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9350 # This hack is so that the source file can tell whether it is being 9351 # built for inclusion in a dll (and should export symbols for example). 9352 lt_prog_compiler_pic='-DDLL_EXPORT' 9353 case $host_os in 9354 os2*) 9355 lt_prog_compiler_static='$wl-static' 9356 ;; 9357 esac 9358 ;; 9359 9360 hpux9* | hpux10* | hpux11*) 9361 lt_prog_compiler_wl='-Wl,' 9362 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9363 # not for PA HP-UX. 9364 case $host_cpu in 9365 hppa*64*|ia64*) 9366 # +Z the default 9367 ;; 9368 *) 9369 lt_prog_compiler_pic='+Z' 9370 ;; 9371 esac 9372 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9373 lt_prog_compiler_static='$wl-a ${wl}archive' 9374 ;; 9375 9376 irix5* | irix6* | nonstopux*) 9377 lt_prog_compiler_wl='-Wl,' 9378 # PIC (with -KPIC) is the default. 9379 lt_prog_compiler_static='-non_shared' 9380 ;; 9381 9382 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9383 case $cc_basename in 9384 # old Intel for x86_64, which still supported -KPIC. 9385 ecc*) 9386 lt_prog_compiler_wl='-Wl,' 9387 lt_prog_compiler_pic='-KPIC' 9388 lt_prog_compiler_static='-static' 9389 ;; 9390 *flang* | ftn | f18* | f95*) 9391 # Flang compiler. 9392 lt_prog_compiler_wl='-Wl,' 9393 lt_prog_compiler_pic='-fPIC' 9394 lt_prog_compiler_static='-static' 9395 ;; 9396 # icc used to be incompatible with GCC. 9397 # ICC 10 doesn't accept -KPIC any more. 9398 icc* | ifort*) 9399 lt_prog_compiler_wl='-Wl,' 9400 lt_prog_compiler_pic='-fPIC' 9401 lt_prog_compiler_static='-static' 9402 ;; 9403 # Lahey Fortran 8.1. 9404 lf95*) 9405 lt_prog_compiler_wl='-Wl,' 9406 lt_prog_compiler_pic='--shared' 9407 lt_prog_compiler_static='--static' 9408 ;; 9409 nagfor*) 9410 # NAG Fortran compiler 9411 lt_prog_compiler_wl='-Wl,-Wl,,' 9412 lt_prog_compiler_pic='-PIC' 9413 lt_prog_compiler_static='-Bstatic' 9414 ;; 9415 tcc*) 9416 # Fabrice Bellard et al's Tiny C Compiler 9417 lt_prog_compiler_wl='-Wl,' 9418 lt_prog_compiler_pic='-fPIC' 9419 lt_prog_compiler_static='-static' 9420 ;; 9421 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9422 # Portland Group compilers (*not* the Pentium gcc compiler, 9423 # which looks to be a dead project) 9424 lt_prog_compiler_wl='-Wl,' 9425 lt_prog_compiler_pic='-fpic' 9426 lt_prog_compiler_static='-Bstatic' 9427 ;; 9428 ccc*) 9429 lt_prog_compiler_wl='-Wl,' 9430 # All Alpha code is PIC. 9431 lt_prog_compiler_static='-non_shared' 9432 ;; 9433 xl* | bgxl* | bgf* | mpixl*) 9434 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9435 lt_prog_compiler_wl='-Wl,' 9436 lt_prog_compiler_pic='-qpic' 9437 lt_prog_compiler_static='-qstaticlink' 9438 ;; 9439 *) 9440 case `$CC -V 2>&1 | $SED 5q` in 9441 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9442 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9443 lt_prog_compiler_pic='-KPIC' 9444 lt_prog_compiler_static='-Bstatic' 9445 lt_prog_compiler_wl='' 9446 ;; 9447 *Sun\ F* | *Sun*Fortran*) 9448 lt_prog_compiler_pic='-KPIC' 9449 lt_prog_compiler_static='-Bstatic' 9450 lt_prog_compiler_wl='-Qoption ld ' 9451 ;; 9452 *Sun\ C*) 9453 # Sun C 5.9 9454 lt_prog_compiler_pic='-KPIC' 9455 lt_prog_compiler_static='-Bstatic' 9456 lt_prog_compiler_wl='-Wl,' 9457 ;; 9458 *Intel*\ [CF]*Compiler*) 9459 lt_prog_compiler_wl='-Wl,' 9460 lt_prog_compiler_pic='-fPIC' 9461 lt_prog_compiler_static='-static' 9462 ;; 9463 *Portland\ Group*) 9464 lt_prog_compiler_wl='-Wl,' 9465 lt_prog_compiler_pic='-fpic' 9466 lt_prog_compiler_static='-Bstatic' 9467 ;; 9468 esac 9469 ;; 9470 esac 9471 ;; 9472 9473 newsos6) 9474 lt_prog_compiler_pic='-KPIC' 9475 lt_prog_compiler_static='-Bstatic' 9476 ;; 9477 9478 *-mlibc) 9479 lt_prog_compiler_wl='-Wl,' 9480 lt_prog_compiler_pic='-fPIC' 9481 lt_prog_compiler_static='-static' 9482 ;; 9483 9484 *nto* | *qnx*) 9485 # QNX uses GNU C++, but need to define -shared option too, otherwise 9486 # it will coredump. 9487 lt_prog_compiler_pic='-fPIC -shared' 9488 ;; 9489 9490 osf3* | osf4* | osf5*) 9491 lt_prog_compiler_wl='-Wl,' 9492 # All OSF/1 code is PIC. 9493 lt_prog_compiler_static='-non_shared' 9494 ;; 9495 9496 rdos*) 9497 lt_prog_compiler_static='-non_shared' 9498 ;; 9499 9500 serenity*) 9501 ;; 9502 9503 solaris*) 9504 lt_prog_compiler_pic='-KPIC' 9505 lt_prog_compiler_static='-Bstatic' 9506 case $cc_basename in 9507 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9508 lt_prog_compiler_wl='-Qoption ld ';; 9509 *) 9510 lt_prog_compiler_wl='-Wl,';; 9511 esac 9512 ;; 9513 9514 sunos4*) 9515 lt_prog_compiler_wl='-Qoption ld ' 9516 lt_prog_compiler_pic='-PIC' 9517 lt_prog_compiler_static='-Bstatic' 9518 ;; 9519 9520 sysv4 | sysv4.2uw2* | sysv4.3*) 9521 lt_prog_compiler_wl='-Wl,' 9522 lt_prog_compiler_pic='-KPIC' 9523 lt_prog_compiler_static='-Bstatic' 9524 ;; 9525 9526 sysv4*MP*) 9527 if test -d /usr/nec; then 9528 lt_prog_compiler_pic='-Kconform_pic' 9529 lt_prog_compiler_static='-Bstatic' 9530 fi 9531 ;; 9532 9533 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9534 lt_prog_compiler_wl='-Wl,' 9535 lt_prog_compiler_pic='-KPIC' 9536 lt_prog_compiler_static='-Bstatic' 9537 ;; 9538 9539 unicos*) 9540 lt_prog_compiler_wl='-Wl,' 9541 lt_prog_compiler_can_build_shared=no 9542 ;; 9543 9544 uts4*) 9545 lt_prog_compiler_pic='-pic' 9546 lt_prog_compiler_static='-Bstatic' 9547 ;; 9548 9549 *) 9550 lt_prog_compiler_can_build_shared=no 9551 ;; 9552 esac 9553 fi 9554 9555 case $host_os in 9556 # For platforms that do not support PIC, -DPIC is meaningless: 9557 *djgpp*) 9558 lt_prog_compiler_pic= 9559 ;; 9560 *) 9561 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9562 ;; 9563 esac 9564 9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9566 printf %s "checking for $compiler option to produce PIC... " >&6; } 9567 if test ${lt_cv_prog_compiler_pic+y} 9568 then : 9569 printf %s "(cached) " >&6 9570 else case e in #( 9571 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9572 esac 9573 fi 9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9575 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9576 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9577 9578 # 9579 # Check to make sure the PIC flag actually works. 9580 # 9581 if test -n "$lt_prog_compiler_pic"; then 9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9583 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9584 if test ${lt_cv_prog_compiler_pic_works+y} 9585 then : 9586 printf %s "(cached) " >&6 9587 else case e in #( 9588 e) lt_cv_prog_compiler_pic_works=no 9589 ac_outfile=conftest.$ac_objext 9590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9591 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9592 # Insert the option either (1) after the last *FLAGS variable, or 9593 # (2) before a word containing "conftest.", or (3) at the end. 9594 # Note that $ac_compile itself does not contain backslashes and begins 9595 # with a dollar sign (not a hyphen), so the echo should work correctly. 9596 # The option is referenced via a variable to avoid confusing sed. 9597 lt_compile=`echo "$ac_compile" | $SED \ 9598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9600 -e 's:$: $lt_compiler_flag:'` 9601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9602 (eval "$lt_compile" 2>conftest.err) 9603 ac_status=$? 9604 cat conftest.err >&5 9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9606 if (exit $ac_status) && test -s "$ac_outfile"; then 9607 # The compiler can only warn and ignore the option if not recognized 9608 # So say no if there are warnings other than the usual output. 9609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9610 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9611 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9612 lt_cv_prog_compiler_pic_works=yes 9613 fi 9614 fi 9615 $RM conftest* 9616 ;; 9617 esac 9618 fi 9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9620 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9621 9622 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9623 case $lt_prog_compiler_pic in 9624 "" | " "*) ;; 9625 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9626 esac 9627 else 9628 lt_prog_compiler_pic= 9629 lt_prog_compiler_can_build_shared=no 9630 fi 9631 9632 fi 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 # 9645 # Check to make sure the static flag actually works. 9646 # 9647 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9649 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9650 if test ${lt_cv_prog_compiler_static_works+y} 9651 then : 9652 printf %s "(cached) " >&6 9653 else case e in #( 9654 e) lt_cv_prog_compiler_static_works=no 9655 save_LDFLAGS=$LDFLAGS 9656 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9657 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9659 # The linker can only warn and ignore the option if not recognized 9660 # So say no if there are warnings 9661 if test -s conftest.err; then 9662 # Append any errors to the config.log. 9663 cat conftest.err 1>&5 9664 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9666 if diff conftest.exp conftest.er2 >/dev/null; then 9667 lt_cv_prog_compiler_static_works=yes 9668 fi 9669 else 9670 lt_cv_prog_compiler_static_works=yes 9671 fi 9672 fi 9673 $RM -r conftest* 9674 LDFLAGS=$save_LDFLAGS 9675 ;; 9676 esac 9677 fi 9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9679 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9680 9681 if test yes = "$lt_cv_prog_compiler_static_works"; then 9682 : 9683 else 9684 lt_prog_compiler_static= 9685 fi 9686 9687 9688 9689 9690 9691 9692 9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9694 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9695 if test ${lt_cv_prog_compiler_c_o+y} 9696 then : 9697 printf %s "(cached) " >&6 9698 else case e in #( 9699 e) lt_cv_prog_compiler_c_o=no 9700 $RM -r conftest 2>/dev/null 9701 mkdir conftest 9702 cd conftest 9703 mkdir out 9704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9705 9706 lt_compiler_flag="-o out/conftest2.$ac_objext" 9707 # Insert the option either (1) after the last *FLAGS variable, or 9708 # (2) before a word containing "conftest.", or (3) at the end. 9709 # Note that $ac_compile itself does not contain backslashes and begins 9710 # with a dollar sign (not a hyphen), so the echo should work correctly. 9711 lt_compile=`echo "$ac_compile" | $SED \ 9712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9714 -e 's:$: $lt_compiler_flag:'` 9715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9716 (eval "$lt_compile" 2>out/conftest.err) 9717 ac_status=$? 9718 cat out/conftest.err >&5 9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9720 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9721 then 9722 # The compiler can only warn and ignore the option if not recognized 9723 # So say no if there are warnings 9724 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9725 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9726 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9727 lt_cv_prog_compiler_c_o=yes 9728 fi 9729 fi 9730 chmod u+w . 2>&5 9731 $RM conftest* 9732 # SGI C++ compiler will create directory out/ii_files/ for 9733 # template instantiation 9734 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9735 $RM out/* && rmdir out 9736 cd .. 9737 $RM -r conftest 9738 $RM conftest* 9739 ;; 9740 esac 9741 fi 9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9743 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9744 9745 9746 9747 9748 9749 9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9751 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9752 if test ${lt_cv_prog_compiler_c_o+y} 9753 then : 9754 printf %s "(cached) " >&6 9755 else case e in #( 9756 e) lt_cv_prog_compiler_c_o=no 9757 $RM -r conftest 2>/dev/null 9758 mkdir conftest 9759 cd conftest 9760 mkdir out 9761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9762 9763 lt_compiler_flag="-o out/conftest2.$ac_objext" 9764 # Insert the option either (1) after the last *FLAGS variable, or 9765 # (2) before a word containing "conftest.", or (3) at the end. 9766 # Note that $ac_compile itself does not contain backslashes and begins 9767 # with a dollar sign (not a hyphen), so the echo should work correctly. 9768 lt_compile=`echo "$ac_compile" | $SED \ 9769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9771 -e 's:$: $lt_compiler_flag:'` 9772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9773 (eval "$lt_compile" 2>out/conftest.err) 9774 ac_status=$? 9775 cat out/conftest.err >&5 9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9777 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9778 then 9779 # The compiler can only warn and ignore the option if not recognized 9780 # So say no if there are warnings 9781 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9782 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9783 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9784 lt_cv_prog_compiler_c_o=yes 9785 fi 9786 fi 9787 chmod u+w . 2>&5 9788 $RM conftest* 9789 # SGI C++ compiler will create directory out/ii_files/ for 9790 # template instantiation 9791 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9792 $RM out/* && rmdir out 9793 cd .. 9794 $RM -r conftest 9795 $RM conftest* 9796 ;; 9797 esac 9798 fi 9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9800 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9801 9802 9803 9804 9805 hard_links=nottested 9806 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9807 # do not overwrite the value of need_locks provided by the user 9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9809 printf %s "checking if we can lock with hard links... " >&6; } 9810 hard_links=yes 9811 $RM conftest* 9812 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9813 touch conftest.a 9814 ln conftest.a conftest.b 2>&5 || hard_links=no 9815 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9817 printf "%s\n" "$hard_links" >&6; } 9818 if test no = "$hard_links"; then 9819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9820 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9821 need_locks=warn 9822 fi 9823 else 9824 need_locks=no 9825 fi 9826 9827 9828 9829 9830 9831 9832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9833 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9834 9835 runpath_var= 9836 allow_undefined_flag= 9837 always_export_symbols=no 9838 archive_cmds= 9839 archive_expsym_cmds= 9840 compiler_needs_object=no 9841 enable_shared_with_static_runtimes=no 9842 export_dynamic_flag_spec= 9843 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9844 hardcode_automatic=no 9845 hardcode_direct=no 9846 hardcode_direct_absolute=no 9847 hardcode_libdir_flag_spec= 9848 hardcode_libdir_separator= 9849 hardcode_minus_L=no 9850 hardcode_shlibpath_var=unsupported 9851 inherit_rpath=no 9852 link_all_deplibs=unknown 9853 module_cmds= 9854 module_expsym_cmds= 9855 old_archive_from_new_cmds= 9856 old_archive_from_expsyms_cmds= 9857 thread_safe_flag_spec= 9858 whole_archive_flag_spec= 9859 # include_expsyms should be a list of space-separated symbols to be *always* 9860 # included in the symbol list 9861 include_expsyms= 9862 # exclude_expsyms can be an extended regexp of symbols to exclude 9863 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9864 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9865 # as well as any symbol that contains 'd'. 9866 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9868 # platforms (ab)use it in PIC code, but their linkers get confused if 9869 # the symbol is explicitly referenced. Since portable code cannot 9870 # rely on this symbol name, it's probably fine to never include it in 9871 # preloaded symbol tables. 9872 # Exclude shared library initialization/finalization symbols. 9873 extract_expsyms_cmds= 9874 9875 case $host_os in 9876 cygwin* | mingw* | windows* | pw32* | cegcc*) 9877 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9878 # When not using gcc, we currently assume that we are using 9879 # Microsoft Visual C++ or Intel C++ Compiler. 9880 if test yes != "$GCC"; then 9881 with_gnu_ld=no 9882 fi 9883 ;; 9884 interix*) 9885 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9886 with_gnu_ld=yes 9887 ;; 9888 esac 9889 9890 ld_shlibs=yes 9891 9892 # On some targets, GNU ld is compatible enough with the native linker 9893 # that we're better off using the native interface for both. 9894 lt_use_gnu_ld_interface=no 9895 if test yes = "$with_gnu_ld"; then 9896 case $host_os in 9897 aix*) 9898 # The AIX port of GNU ld has always aspired to compatibility 9899 # with the native linker. However, as the warning in the GNU ld 9900 # block says, versions before 2.19.5* couldn't really create working 9901 # shared libraries, regardless of the interface used. 9902 case `$LD -v 2>&1` in 9903 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9904 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9905 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9906 *) 9907 lt_use_gnu_ld_interface=yes 9908 ;; 9909 esac 9910 ;; 9911 *) 9912 lt_use_gnu_ld_interface=yes 9913 ;; 9914 esac 9915 fi 9916 9917 if test yes = "$lt_use_gnu_ld_interface"; then 9918 # If archive_cmds runs LD, not CC, wlarc should be empty 9919 wlarc='$wl' 9920 9921 # Set some defaults for GNU ld with shared library support. These 9922 # are reset later if shared libraries are not supported. Putting them 9923 # here allows them to be overridden if necessary. 9924 runpath_var=LD_RUN_PATH 9925 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9926 export_dynamic_flag_spec='$wl--export-dynamic' 9927 # ancient GNU ld didn't support --whole-archive et. al. 9928 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9929 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9930 else 9931 whole_archive_flag_spec= 9932 fi 9933 supports_anon_versioning=no 9934 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9935 *GNU\ gold*) supports_anon_versioning=yes ;; 9936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9939 *\ 2.11.*) ;; # other 2.11 versions 9940 *) supports_anon_versioning=yes ;; 9941 esac 9942 9943 # See if GNU ld supports shared libraries. 9944 case $host_os in 9945 aix[3-9]*) 9946 # On AIX/PPC, the GNU linker is very broken 9947 if test ia64 != "$host_cpu"; then 9948 ld_shlibs=no 9949 cat <<_LT_EOF 1>&2 9950 9951 *** Warning: the GNU linker, at least up to release 2.19, is reported 9952 *** to be unable to reliably create shared libraries on AIX. 9953 *** Therefore, libtool is disabling shared libraries support. If you 9954 *** really care for shared libraries, you may want to install binutils 9955 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9956 *** You will then need to restart the configuration process. 9957 9958 _LT_EOF 9959 fi 9960 ;; 9961 9962 amigaos*) 9963 case $host_cpu in 9964 powerpc) 9965 # see comment about AmigaOS4 .so support 9966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9967 archive_expsym_cmds='' 9968 ;; 9969 m68k) 9970 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)' 9971 hardcode_libdir_flag_spec='-L$libdir' 9972 hardcode_minus_L=yes 9973 ;; 9974 esac 9975 ;; 9976 9977 beos*) 9978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9979 allow_undefined_flag=unsupported 9980 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9981 # support --undefined. This deserves some investigation. FIXME 9982 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9983 else 9984 ld_shlibs=no 9985 fi 9986 ;; 9987 9988 cygwin* | mingw* | windows* | pw32* | cegcc*) 9989 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9990 # as there is no search path for DLLs. 9991 hardcode_libdir_flag_spec='-L$libdir' 9992 export_dynamic_flag_spec='$wl--export-all-symbols' 9993 allow_undefined_flag=unsupported 9994 always_export_symbols=no 9995 enable_shared_with_static_runtimes=yes 9996 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' 9997 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9998 file_list_spec='@' 9999 10000 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10002 # If the export-symbols file already is a .def file, use it as 10003 # is; otherwise, prepend EXPORTS... 10004 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10005 cp $export_symbols $output_objdir/$soname.def; 10006 else 10007 echo EXPORTS > $output_objdir/$soname.def; 10008 cat $export_symbols >> $output_objdir/$soname.def; 10009 fi~ 10010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10011 else 10012 ld_shlibs=no 10013 fi 10014 ;; 10015 10016 haiku*) 10017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10018 link_all_deplibs=no 10019 ;; 10020 10021 os2*) 10022 hardcode_libdir_flag_spec='-L$libdir' 10023 hardcode_minus_L=yes 10024 allow_undefined_flag=unsupported 10025 shrext_cmds=.dll 10026 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10027 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10028 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10029 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10030 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10031 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10032 emximp -o $lib $output_objdir/$libname.def' 10033 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10034 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10035 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10036 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10037 prefix_cmds="$SED"~ 10038 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10039 prefix_cmds="$prefix_cmds -e 1d"; 10040 fi~ 10041 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10042 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10043 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10044 emximp -o $lib $output_objdir/$libname.def' 10045 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10046 enable_shared_with_static_runtimes=yes 10047 file_list_spec='@' 10048 ;; 10049 10050 interix[3-9]*) 10051 hardcode_direct=no 10052 hardcode_shlibpath_var=no 10053 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10054 export_dynamic_flag_spec='$wl-E' 10055 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10056 # Instead, shared libraries are loaded at an image base (0x10000000 by 10057 # default) and relocated if they conflict, which is a slow very memory 10058 # consuming and fragmenting process. To avoid this, we pick a random, 10059 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10060 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10061 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10062 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' 10063 ;; 10064 10065 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10066 tmp_diet=no 10067 if test linux-dietlibc = "$host_os"; then 10068 case $cc_basename in 10069 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10070 esac 10071 fi 10072 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10073 && test no = "$tmp_diet" 10074 then 10075 tmp_addflag=' $pic_flag' 10076 tmp_sharedflag='-shared' 10077 case $cc_basename,$host_cpu in 10078 pgcc*) # Portland Group C compiler 10079 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' 10080 tmp_addflag=' $pic_flag' 10081 ;; 10082 pgf77* | pgf90* | pgf95* | pgfortran*) 10083 # Portland Group f77 and f90 compilers 10084 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' 10085 tmp_addflag=' $pic_flag -Mnomain' ;; 10086 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10087 tmp_addflag=' -i_dynamic' ;; 10088 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10089 tmp_addflag=' -i_dynamic -nofor_main' ;; 10090 ifc* | ifort*) # Intel Fortran compiler 10091 tmp_addflag=' -nofor_main' ;; 10092 lf95*) # Lahey Fortran 8.1 10093 whole_archive_flag_spec= 10094 tmp_sharedflag='--shared' ;; 10095 nagfor*) # NAGFOR 5.3 10096 tmp_sharedflag='-Wl,-shared' ;; 10097 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10098 tmp_sharedflag='-qmkshrobj' 10099 tmp_addflag= ;; 10100 nvcc*) # Cuda Compiler Driver 2.2 10101 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' 10102 compiler_needs_object=yes 10103 ;; 10104 esac 10105 case `$CC -V 2>&1 | $SED 5q` in 10106 *Sun\ C*) # Sun C 5.9 10107 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' 10108 compiler_needs_object=yes 10109 tmp_sharedflag='-G' ;; 10110 *Sun\ F*) # Sun Fortran 8.3 10111 tmp_sharedflag='-G' ;; 10112 esac 10113 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10114 10115 if test yes = "$supports_anon_versioning"; then 10116 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10117 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10118 echo "local: *; };" >> $output_objdir/$libname.ver~ 10119 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10120 fi 10121 10122 case $cc_basename in 10123 tcc*) 10124 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10125 export_dynamic_flag_spec='-rdynamic' 10126 ;; 10127 xlf* | bgf* | bgxlf* | mpixlf*) 10128 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10129 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10130 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10131 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10132 if test yes = "$supports_anon_versioning"; then 10133 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10134 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10135 echo "local: *; };" >> $output_objdir/$libname.ver~ 10136 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10137 fi 10138 ;; 10139 esac 10140 else 10141 ld_shlibs=no 10142 fi 10143 ;; 10144 10145 *-mlibc) 10146 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10147 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10148 ;; 10149 10150 netbsd* | netbsdelf*-gnu) 10151 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10152 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10153 wlarc= 10154 else 10155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10156 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10157 fi 10158 ;; 10159 10160 solaris*) 10161 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10162 ld_shlibs=no 10163 cat <<_LT_EOF 1>&2 10164 10165 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10166 *** create shared libraries on Solaris systems. Therefore, libtool 10167 *** is disabling shared libraries support. We urge you to upgrade GNU 10168 *** binutils to release 2.9.1 or newer. Another option is to modify 10169 *** your PATH or compiler configuration so that the native linker is 10170 *** used, and then restart. 10171 10172 _LT_EOF 10173 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10174 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10175 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10176 else 10177 ld_shlibs=no 10178 fi 10179 ;; 10180 10181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10182 case `$LD -v 2>&1` in 10183 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10184 ld_shlibs=no 10185 cat <<_LT_EOF 1>&2 10186 10187 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10188 *** reliably create shared libraries on SCO systems. Therefore, libtool 10189 *** is disabling shared libraries support. We urge you to upgrade GNU 10190 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10191 *** your PATH or compiler configuration so that the native linker is 10192 *** used, and then restart. 10193 10194 _LT_EOF 10195 ;; 10196 *) 10197 # For security reasons, it is highly recommended that you always 10198 # use absolute paths for naming shared libraries, and exclude the 10199 # DT_RUNPATH tag from executables and libraries. But doing so 10200 # requires that you compile everything twice, which is a pain. 10201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10202 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10205 else 10206 ld_shlibs=no 10207 fi 10208 ;; 10209 esac 10210 ;; 10211 10212 sunos4*) 10213 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10214 wlarc= 10215 hardcode_direct=yes 10216 hardcode_shlibpath_var=no 10217 ;; 10218 10219 *) 10220 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10221 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10222 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10223 else 10224 ld_shlibs=no 10225 fi 10226 ;; 10227 esac 10228 10229 if test no = "$ld_shlibs"; then 10230 runpath_var= 10231 hardcode_libdir_flag_spec= 10232 export_dynamic_flag_spec= 10233 whole_archive_flag_spec= 10234 fi 10235 else 10236 # PORTME fill in a description of your system's linker (not GNU ld) 10237 case $host_os in 10238 aix3*) 10239 allow_undefined_flag=unsupported 10240 always_export_symbols=yes 10241 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' 10242 # Note: this linker hardcodes the directories in LIBPATH if there 10243 # are no directories specified by -L. 10244 hardcode_minus_L=yes 10245 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10246 # Neither direct hardcoding nor static linking is supported with a 10247 # broken collect2. 10248 hardcode_direct=unsupported 10249 fi 10250 ;; 10251 10252 aix[4-9]*) 10253 if test ia64 = "$host_cpu"; then 10254 # On IA64, the linker does run time linking by default, so we don't 10255 # have to do anything special. 10256 aix_use_runtimelinking=no 10257 exp_sym_flag='-Bexport' 10258 no_entry_flag= 10259 else 10260 # If we're using GNU nm, then we don't want the "-C" option. 10261 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10262 # Without the "-l" option, or with the "-B" option, AIX nm treats 10263 # weak defined symbols like other global defined symbols, whereas 10264 # GNU nm marks them as "W". 10265 # While the 'weak' keyword is ignored in the Export File, we need 10266 # it in the Import File for the 'aix-soname' feature, so we have 10267 # to replace the "-B" option with "-P" for AIX nm. 10268 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10269 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' 10270 else 10271 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' 10272 fi 10273 aix_use_runtimelinking=no 10274 10275 # Test if we are trying to use run time linking or normal 10276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10277 # have runtime linking enabled, and use it for executables. 10278 # For shared libraries, we enable/disable runtime linking 10279 # depending on the kind of the shared library created - 10280 # when "with_aix_soname,aix_use_runtimelinking" is: 10281 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10282 # "aix,yes" lib.so shared, rtl:yes, for executables 10283 # lib.a static archive 10284 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10285 # lib.a(lib.so.V) shared, rtl:no, for executables 10286 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10287 # lib.a(lib.so.V) shared, rtl:no 10288 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10289 # lib.a static archive 10290 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10291 for ld_flag in $LDFLAGS; do 10292 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10293 aix_use_runtimelinking=yes 10294 break 10295 fi 10296 done 10297 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10298 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10299 # so we don't have lib.a shared libs to link our executables. 10300 # We have to force runtime linking in this case. 10301 aix_use_runtimelinking=yes 10302 LDFLAGS="$LDFLAGS -Wl,-brtl" 10303 fi 10304 ;; 10305 esac 10306 10307 exp_sym_flag='-bexport' 10308 no_entry_flag='-bnoentry' 10309 fi 10310 10311 # When large executables or shared objects are built, AIX ld can 10312 # have problems creating the table of contents. If linking a library 10313 # or program results in "error TOC overflow" add -mminimal-toc to 10314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10316 10317 archive_cmds='' 10318 hardcode_direct=yes 10319 hardcode_direct_absolute=yes 10320 hardcode_libdir_separator=':' 10321 link_all_deplibs=yes 10322 file_list_spec='$wl-f,' 10323 case $with_aix_soname,$aix_use_runtimelinking in 10324 aix,*) ;; # traditional, no import file 10325 svr4,* | *,yes) # use import file 10326 # The Import File defines what to hardcode. 10327 hardcode_direct=no 10328 hardcode_direct_absolute=no 10329 ;; 10330 esac 10331 10332 if test yes = "$GCC"; then 10333 case $host_os in aix4.[012]|aix4.[012].*) 10334 # We only want to do this on AIX 4.2 and lower, the check 10335 # below for broken collect2 doesn't work under 4.3+ 10336 collect2name=`$CC -print-prog-name=collect2` 10337 if test -f "$collect2name" && 10338 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10339 then 10340 # We have reworked collect2 10341 : 10342 else 10343 # We have old collect2 10344 hardcode_direct=unsupported 10345 # It fails to find uninstalled libraries when the uninstalled 10346 # path is not listed in the libpath. Setting hardcode_minus_L 10347 # to unsupported forces relinking 10348 hardcode_minus_L=yes 10349 hardcode_libdir_flag_spec='-L$libdir' 10350 hardcode_libdir_separator= 10351 fi 10352 ;; 10353 esac 10354 shared_flag='-shared' 10355 if test yes = "$aix_use_runtimelinking"; then 10356 shared_flag="$shared_flag "'$wl-G' 10357 fi 10358 # Need to ensure runtime linking is disabled for the traditional 10359 # shared library, or the linker may eventually find shared libraries 10360 # /with/ Import File - we do not want to mix them. 10361 shared_flag_aix='-shared' 10362 shared_flag_svr4='-shared $wl-G' 10363 else 10364 # not using gcc 10365 if test ia64 = "$host_cpu"; then 10366 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10367 # chokes on -Wl,-G. The following line is correct: 10368 shared_flag='-G' 10369 else 10370 if test yes = "$aix_use_runtimelinking"; then 10371 shared_flag='$wl-G' 10372 else 10373 shared_flag='$wl-bM:SRE' 10374 fi 10375 shared_flag_aix='$wl-bM:SRE' 10376 shared_flag_svr4='$wl-G' 10377 fi 10378 fi 10379 10380 export_dynamic_flag_spec='$wl-bexpall' 10381 # It seems that -bexpall does not export symbols beginning with 10382 # underscore (_), so it is better to generate a list of symbols to export. 10383 always_export_symbols=yes 10384 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10385 # Warning - without using the other runtime loading flags (-brtl), 10386 # -berok will link without error, but may produce a broken library. 10387 allow_undefined_flag='-berok' 10388 # Determine the default libpath from the value encoded in an 10389 # empty executable. 10390 if test set = "${lt_cv_aix_libpath+set}"; then 10391 aix_libpath=$lt_cv_aix_libpath 10392 else 10393 if test ${lt_cv_aix_libpath_+y} 10394 then : 10395 printf %s "(cached) " >&6 10396 else case e in #( 10397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10398 /* end confdefs.h. */ 10399 10400 int 10401 main (void) 10402 { 10403 10404 ; 10405 return 0; 10406 } 10407 _ACEOF 10408 if ac_fn_c_try_link "$LINENO" 10409 then : 10410 10411 lt_aix_libpath_sed=' 10412 /Import File Strings/,/^$/ { 10413 /^0/ { 10414 s/^0 *\([^ ]*\) *$/\1/ 10415 p 10416 } 10417 }' 10418 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10419 # Check for a 64-bit object if we didn't find anything. 10420 if test -z "$lt_cv_aix_libpath_"; then 10421 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10422 fi 10423 fi 10424 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10425 conftest$ac_exeext conftest.$ac_ext 10426 if test -z "$lt_cv_aix_libpath_"; then 10427 lt_cv_aix_libpath_=/usr/lib:/lib 10428 fi 10429 ;; 10430 esac 10431 fi 10432 10433 aix_libpath=$lt_cv_aix_libpath_ 10434 fi 10435 10436 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10437 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 10438 else 10439 if test ia64 = "$host_cpu"; then 10440 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10441 allow_undefined_flag="-z nodefs" 10442 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" 10443 else 10444 # Determine the default libpath from the value encoded in an 10445 # empty executable. 10446 if test set = "${lt_cv_aix_libpath+set}"; then 10447 aix_libpath=$lt_cv_aix_libpath 10448 else 10449 if test ${lt_cv_aix_libpath_+y} 10450 then : 10451 printf %s "(cached) " >&6 10452 else case e in #( 10453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10454 /* end confdefs.h. */ 10455 10456 int 10457 main (void) 10458 { 10459 10460 ; 10461 return 0; 10462 } 10463 _ACEOF 10464 if ac_fn_c_try_link "$LINENO" 10465 then : 10466 10467 lt_aix_libpath_sed=' 10468 /Import File Strings/,/^$/ { 10469 /^0/ { 10470 s/^0 *\([^ ]*\) *$/\1/ 10471 p 10472 } 10473 }' 10474 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10475 # Check for a 64-bit object if we didn't find anything. 10476 if test -z "$lt_cv_aix_libpath_"; then 10477 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10478 fi 10479 fi 10480 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10481 conftest$ac_exeext conftest.$ac_ext 10482 if test -z "$lt_cv_aix_libpath_"; then 10483 lt_cv_aix_libpath_=/usr/lib:/lib 10484 fi 10485 ;; 10486 esac 10487 fi 10488 10489 aix_libpath=$lt_cv_aix_libpath_ 10490 fi 10491 10492 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10493 # Warning - without using the other run time loading flags, 10494 # -berok will link without error, but may produce a broken library. 10495 no_undefined_flag=' $wl-bernotok' 10496 allow_undefined_flag=' $wl-berok' 10497 if test yes = "$with_gnu_ld"; then 10498 # We only use this code for GNU lds that support --whole-archive. 10499 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10500 else 10501 # Exported symbols can be pulled into shared objects from archives 10502 whole_archive_flag_spec='$convenience' 10503 fi 10504 archive_cmds_need_lc=yes 10505 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10506 # -brtl affects multiple linker settings, -berok does not and is overridden later 10507 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10508 if test svr4 != "$with_aix_soname"; then 10509 # This is similar to how AIX traditionally builds its shared libraries. 10510 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' 10511 fi 10512 if test aix != "$with_aix_soname"; then 10513 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' 10514 else 10515 # used by -dlpreopen to get the symbols 10516 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10517 fi 10518 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10519 fi 10520 fi 10521 ;; 10522 10523 amigaos*) 10524 case $host_cpu in 10525 powerpc) 10526 # see comment about AmigaOS4 .so support 10527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10528 archive_expsym_cmds='' 10529 ;; 10530 m68k) 10531 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)' 10532 hardcode_libdir_flag_spec='-L$libdir' 10533 hardcode_minus_L=yes 10534 ;; 10535 esac 10536 ;; 10537 10538 bsdi[45]*) 10539 export_dynamic_flag_spec=-rdynamic 10540 ;; 10541 10542 cygwin* | mingw* | windows* | pw32* | cegcc*) 10543 # When not using gcc, we currently assume that we are using 10544 # Microsoft Visual C++ or Intel C++ Compiler. 10545 # hardcode_libdir_flag_spec is actually meaningless, as there is 10546 # no search path for DLLs. 10547 case $cc_basename in 10548 cl* | icl*) 10549 # Native MSVC or ICC 10550 hardcode_libdir_flag_spec=' ' 10551 allow_undefined_flag=unsupported 10552 always_export_symbols=yes 10553 file_list_spec='@' 10554 # Tell ltmain to make .lib files, not .a files. 10555 libext=lib 10556 # Tell ltmain to make .dll files, not .so files. 10557 shrext_cmds=.dll 10558 # FIXME: Setting linknames here is a bad hack. 10559 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10560 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10561 cp "$export_symbols" "$output_objdir/$soname.def"; 10562 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10563 else 10564 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10565 fi~ 10566 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10567 linknames=' 10568 # The linker will not automatically build a static lib if we build a DLL. 10569 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10570 enable_shared_with_static_runtimes=yes 10571 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10572 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10573 # Don't use ranlib 10574 old_postinstall_cmds='chmod 644 $oldlib' 10575 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10576 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10577 case $lt_outputfile in 10578 *.exe|*.EXE) ;; 10579 *) 10580 lt_outputfile=$lt_outputfile.exe 10581 lt_tool_outputfile=$lt_tool_outputfile.exe 10582 ;; 10583 esac~ 10584 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10585 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10586 $RM "$lt_outputfile.manifest"; 10587 fi' 10588 ;; 10589 *) 10590 # Assume MSVC and ICC wrapper 10591 hardcode_libdir_flag_spec=' ' 10592 allow_undefined_flag=unsupported 10593 # Tell ltmain to make .lib files, not .a files. 10594 libext=lib 10595 # Tell ltmain to make .dll files, not .so files. 10596 shrext_cmds=.dll 10597 # FIXME: Setting linknames here is a bad hack. 10598 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10599 # The linker will automatically build a .lib file if we build a DLL. 10600 old_archive_from_new_cmds='true' 10601 # FIXME: Should let the user specify the lib program. 10602 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10603 enable_shared_with_static_runtimes=yes 10604 ;; 10605 esac 10606 ;; 10607 10608 darwin* | rhapsody*) 10609 10610 10611 archive_cmds_need_lc=no 10612 hardcode_direct=no 10613 hardcode_automatic=yes 10614 hardcode_shlibpath_var=unsupported 10615 if test yes = "$lt_cv_ld_force_load"; then 10616 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\"`' 10617 10618 else 10619 whole_archive_flag_spec='' 10620 fi 10621 link_all_deplibs=yes 10622 allow_undefined_flag=$_lt_dar_allow_undefined 10623 case $cc_basename in 10624 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10625 *) _lt_dar_can_shared=$GCC ;; 10626 esac 10627 if test yes = "$_lt_dar_can_shared"; then 10628 output_verbose_link_cmd=func_echo_all 10629 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10630 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10631 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" 10632 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" 10633 10634 else 10635 ld_shlibs=no 10636 fi 10637 10638 ;; 10639 10640 dgux*) 10641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10642 hardcode_libdir_flag_spec='-L$libdir' 10643 hardcode_shlibpath_var=no 10644 ;; 10645 10646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10647 # support. Future versions do this automatically, but an explicit c++rt0.o 10648 # does not break anything, and helps significantly (at the cost of a little 10649 # extra space). 10650 freebsd2.2*) 10651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10652 hardcode_libdir_flag_spec='-R$libdir' 10653 hardcode_direct=yes 10654 hardcode_shlibpath_var=no 10655 ;; 10656 10657 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10658 freebsd2.*) 10659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10660 hardcode_direct=yes 10661 hardcode_minus_L=yes 10662 hardcode_shlibpath_var=no 10663 ;; 10664 10665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10666 freebsd* | dragonfly* | midnightbsd*) 10667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10668 hardcode_libdir_flag_spec='-R$libdir' 10669 hardcode_direct=yes 10670 hardcode_shlibpath_var=no 10671 ;; 10672 10673 hpux9*) 10674 if test yes = "$GCC"; then 10675 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' 10676 else 10677 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' 10678 fi 10679 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10680 hardcode_libdir_separator=: 10681 hardcode_direct=yes 10682 10683 # hardcode_minus_L: Not really in the search PATH, 10684 # but as the default location of the library. 10685 hardcode_minus_L=yes 10686 export_dynamic_flag_spec='$wl-E' 10687 ;; 10688 10689 hpux10*) 10690 if test yes,no = "$GCC,$with_gnu_ld"; then 10691 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10692 else 10693 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10694 fi 10695 if test no = "$with_gnu_ld"; then 10696 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10697 hardcode_libdir_separator=: 10698 hardcode_direct=yes 10699 hardcode_direct_absolute=yes 10700 export_dynamic_flag_spec='$wl-E' 10701 # hardcode_minus_L: Not really in the search PATH, 10702 # but as the default location of the library. 10703 hardcode_minus_L=yes 10704 fi 10705 ;; 10706 10707 hpux11*) 10708 if test yes,no = "$GCC,$with_gnu_ld"; then 10709 case $host_cpu in 10710 hppa*64*) 10711 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10712 ;; 10713 ia64*) 10714 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10715 ;; 10716 *) 10717 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10718 ;; 10719 esac 10720 else 10721 case $host_cpu in 10722 hppa*64*) 10723 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10724 ;; 10725 ia64*) 10726 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10727 ;; 10728 *) 10729 10730 # Older versions of the 11.00 compiler do not understand -b yet 10731 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10733 printf %s "checking if $CC understands -b... " >&6; } 10734 if test ${lt_cv_prog_compiler__b+y} 10735 then : 10736 printf %s "(cached) " >&6 10737 else case e in #( 10738 e) lt_cv_prog_compiler__b=no 10739 save_LDFLAGS=$LDFLAGS 10740 LDFLAGS="$LDFLAGS -b" 10741 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10743 # The linker can only warn and ignore the option if not recognized 10744 # So say no if there are warnings 10745 if test -s conftest.err; then 10746 # Append any errors to the config.log. 10747 cat conftest.err 1>&5 10748 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10750 if diff conftest.exp conftest.er2 >/dev/null; then 10751 lt_cv_prog_compiler__b=yes 10752 fi 10753 else 10754 lt_cv_prog_compiler__b=yes 10755 fi 10756 fi 10757 $RM -r conftest* 10758 LDFLAGS=$save_LDFLAGS 10759 ;; 10760 esac 10761 fi 10762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10763 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10764 10765 if test yes = "$lt_cv_prog_compiler__b"; then 10766 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10767 else 10768 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10769 fi 10770 10771 ;; 10772 esac 10773 fi 10774 if test no = "$with_gnu_ld"; then 10775 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10776 hardcode_libdir_separator=: 10777 10778 case $host_cpu in 10779 hppa*64*|ia64*) 10780 hardcode_direct=no 10781 hardcode_shlibpath_var=no 10782 ;; 10783 *) 10784 hardcode_direct=yes 10785 hardcode_direct_absolute=yes 10786 export_dynamic_flag_spec='$wl-E' 10787 10788 # hardcode_minus_L: Not really in the search PATH, 10789 # but as the default location of the library. 10790 hardcode_minus_L=yes 10791 ;; 10792 esac 10793 fi 10794 ;; 10795 10796 irix5* | irix6* | nonstopux*) 10797 if test yes = "$GCC"; then 10798 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' 10799 # Try to use the -exported_symbol ld option, if it does not 10800 # work, assume that -exports_file does not work either and 10801 # implicitly export all symbols. 10802 # This should be the same for all languages, so no per-tag cache variable. 10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10804 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10805 if test ${lt_cv_irix_exported_symbol+y} 10806 then : 10807 printf %s "(cached) " >&6 10808 else case e in #( 10809 e) save_LDFLAGS=$LDFLAGS 10810 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10812 /* end confdefs.h. */ 10813 int foo (void) { return 0; } 10814 _ACEOF 10815 if ac_fn_c_try_link "$LINENO" 10816 then : 10817 lt_cv_irix_exported_symbol=yes 10818 else case e in #( 10819 e) lt_cv_irix_exported_symbol=no ;; 10820 esac 10821 fi 10822 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10823 conftest$ac_exeext conftest.$ac_ext 10824 LDFLAGS=$save_LDFLAGS ;; 10825 esac 10826 fi 10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10828 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10829 if test yes = "$lt_cv_irix_exported_symbol"; then 10830 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' 10831 fi 10832 else 10833 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' 10834 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' 10835 fi 10836 archive_cmds_need_lc='no' 10837 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10838 hardcode_libdir_separator=: 10839 inherit_rpath=yes 10840 link_all_deplibs=yes 10841 ;; 10842 10843 linux*) 10844 case $cc_basename in 10845 tcc*) 10846 # Fabrice Bellard et al's Tiny C Compiler 10847 ld_shlibs=yes 10848 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10849 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10850 ;; 10851 esac 10852 ;; 10853 10854 *-mlibc) 10855 ;; 10856 10857 netbsd* | netbsdelf*-gnu) 10858 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10860 else 10861 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10862 fi 10863 hardcode_libdir_flag_spec='-R$libdir' 10864 hardcode_direct=yes 10865 hardcode_shlibpath_var=no 10866 ;; 10867 10868 newsos6) 10869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10870 hardcode_direct=yes 10871 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10872 hardcode_libdir_separator=: 10873 hardcode_shlibpath_var=no 10874 ;; 10875 10876 *nto* | *qnx*) 10877 ;; 10878 10879 openbsd*) 10880 if test -f /usr/libexec/ld.so; then 10881 hardcode_direct=yes 10882 hardcode_shlibpath_var=no 10883 hardcode_direct_absolute=yes 10884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10885 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10886 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10887 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10888 export_dynamic_flag_spec='$wl-E' 10889 else 10890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10891 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10892 fi 10893 else 10894 ld_shlibs=no 10895 fi 10896 ;; 10897 10898 os2*) 10899 hardcode_libdir_flag_spec='-L$libdir' 10900 hardcode_minus_L=yes 10901 allow_undefined_flag=unsupported 10902 shrext_cmds=.dll 10903 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10904 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10905 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10906 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10907 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10908 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10909 emximp -o $lib $output_objdir/$libname.def' 10910 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10911 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10912 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10913 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10914 prefix_cmds="$SED"~ 10915 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10916 prefix_cmds="$prefix_cmds -e 1d"; 10917 fi~ 10918 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10919 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10920 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10921 emximp -o $lib $output_objdir/$libname.def' 10922 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10923 enable_shared_with_static_runtimes=yes 10924 file_list_spec='@' 10925 ;; 10926 10927 osf3*) 10928 if test yes = "$GCC"; then 10929 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10930 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' 10931 else 10932 allow_undefined_flag=' -expect_unresolved \*' 10933 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' 10934 fi 10935 archive_cmds_need_lc='no' 10936 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10937 hardcode_libdir_separator=: 10938 ;; 10939 10940 osf4* | osf5*) # as osf3* with the addition of -msym flag 10941 if test yes = "$GCC"; then 10942 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10943 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' 10944 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10945 else 10946 allow_undefined_flag=' -expect_unresolved \*' 10947 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' 10948 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10949 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10950 10951 # Both c and cxx compiler support -rpath directly 10952 hardcode_libdir_flag_spec='-rpath $libdir' 10953 fi 10954 archive_cmds_need_lc='no' 10955 hardcode_libdir_separator=: 10956 ;; 10957 10958 serenity*) 10959 ;; 10960 10961 solaris*) 10962 no_undefined_flag=' -z defs' 10963 if test yes = "$GCC"; then 10964 wlarc='$wl' 10965 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10966 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10967 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10968 else 10969 case `$CC -V 2>&1` in 10970 *"Compilers 5.0"*) 10971 wlarc='' 10972 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10973 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10974 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10975 ;; 10976 *) 10977 wlarc='$wl' 10978 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10979 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10980 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10981 ;; 10982 esac 10983 fi 10984 hardcode_libdir_flag_spec='-R$libdir' 10985 hardcode_shlibpath_var=no 10986 case $host_os in 10987 solaris2.[0-5] | solaris2.[0-5].*) ;; 10988 *) 10989 # The compiler driver will combine and reorder linker options, 10990 # but understands '-z linker_flag'. GCC discards it without '$wl', 10991 # but is careful enough not to reorder. 10992 # Supported since Solaris 2.6 (maybe 2.5.1?) 10993 if test yes = "$GCC"; then 10994 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10995 else 10996 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10997 fi 10998 ;; 10999 esac 11000 link_all_deplibs=yes 11001 ;; 11002 11003 sunos4*) 11004 if test sequent = "$host_vendor"; then 11005 # Use $CC to link under sequent, because it throws in some extra .o 11006 # files that make .init and .fini sections work. 11007 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11008 else 11009 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11010 fi 11011 hardcode_libdir_flag_spec='-L$libdir' 11012 hardcode_direct=yes 11013 hardcode_minus_L=yes 11014 hardcode_shlibpath_var=no 11015 ;; 11016 11017 sysv4) 11018 case $host_vendor in 11019 sni) 11020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11021 hardcode_direct=yes # is this really true??? 11022 ;; 11023 siemens) 11024 ## LD is ld it makes a PLAMLIB 11025 ## CC just makes a GrossModule. 11026 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11027 reload_cmds='$CC -r -o $output$reload_objs' 11028 hardcode_direct=no 11029 ;; 11030 motorola) 11031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11032 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11033 ;; 11034 esac 11035 runpath_var='LD_RUN_PATH' 11036 hardcode_shlibpath_var=no 11037 ;; 11038 11039 sysv4.3*) 11040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11041 hardcode_shlibpath_var=no 11042 export_dynamic_flag_spec='-Bexport' 11043 ;; 11044 11045 sysv4*MP*) 11046 if test -d /usr/nec; then 11047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11048 hardcode_shlibpath_var=no 11049 runpath_var=LD_RUN_PATH 11050 hardcode_runpath_var=yes 11051 ld_shlibs=yes 11052 fi 11053 ;; 11054 11055 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11056 no_undefined_flag='$wl-z,text' 11057 archive_cmds_need_lc=no 11058 hardcode_shlibpath_var=no 11059 runpath_var='LD_RUN_PATH' 11060 11061 if test yes = "$GCC"; then 11062 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11063 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11064 else 11065 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11066 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11067 fi 11068 ;; 11069 11070 sysv5* | sco3.2v5* | sco5v6*) 11071 # Note: We CANNOT use -z defs as we might desire, because we do not 11072 # link with -lc, and that would cause any symbols used from libc to 11073 # always be unresolved, which means just about no library would 11074 # ever link correctly. If we're not using GNU ld we use -z text 11075 # though, which does catch some bad symbols but isn't as heavy-handed 11076 # as -z defs. 11077 no_undefined_flag='$wl-z,text' 11078 allow_undefined_flag='$wl-z,nodefs' 11079 archive_cmds_need_lc=no 11080 hardcode_shlibpath_var=no 11081 hardcode_libdir_flag_spec='$wl-R,$libdir' 11082 hardcode_libdir_separator=':' 11083 link_all_deplibs=yes 11084 export_dynamic_flag_spec='$wl-Bexport' 11085 runpath_var='LD_RUN_PATH' 11086 11087 if test yes = "$GCC"; then 11088 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11089 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11090 else 11091 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11092 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11093 fi 11094 ;; 11095 11096 uts4*) 11097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11098 hardcode_libdir_flag_spec='-L$libdir' 11099 hardcode_shlibpath_var=no 11100 ;; 11101 11102 *) 11103 ld_shlibs=no 11104 ;; 11105 esac 11106 11107 if test sni = "$host_vendor"; then 11108 case $host in 11109 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11110 export_dynamic_flag_spec='$wl-Blargedynsym' 11111 ;; 11112 esac 11113 fi 11114 fi 11115 11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11117 printf "%s\n" "$ld_shlibs" >&6; } 11118 test no = "$ld_shlibs" && can_build_shared=no 11119 11120 with_gnu_ld=$with_gnu_ld 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 # 11137 # Do we need to explicitly link libc? 11138 # 11139 case "x$archive_cmds_need_lc" in 11140 x|xyes) 11141 # Assume -lc should be added 11142 archive_cmds_need_lc=yes 11143 11144 if test yes,yes = "$GCC,$enable_shared"; then 11145 case $archive_cmds in 11146 *'~'*) 11147 # FIXME: we may have to deal with multi-command sequences. 11148 ;; 11149 '$CC '*) 11150 # Test whether the compiler implicitly links with -lc since on some 11151 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11152 # to ld, don't add -lc before -lgcc. 11153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11154 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11155 if test ${lt_cv_archive_cmds_need_lc+y} 11156 then : 11157 printf %s "(cached) " >&6 11158 else case e in #( 11159 e) $RM conftest* 11160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11161 11162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11163 (eval $ac_compile) 2>&5 11164 ac_status=$? 11165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11166 test $ac_status = 0; } 2>conftest.err; then 11167 soname=conftest 11168 lib=conftest 11169 libobjs=conftest.$ac_objext 11170 deplibs= 11171 wl=$lt_prog_compiler_wl 11172 pic_flag=$lt_prog_compiler_pic 11173 compiler_flags=-v 11174 linker_flags=-v 11175 verstring= 11176 output_objdir=. 11177 libname=conftest 11178 lt_save_allow_undefined_flag=$allow_undefined_flag 11179 allow_undefined_flag= 11180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11181 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11182 ac_status=$? 11183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11184 test $ac_status = 0; } 11185 then 11186 lt_cv_archive_cmds_need_lc=no 11187 else 11188 lt_cv_archive_cmds_need_lc=yes 11189 fi 11190 allow_undefined_flag=$lt_save_allow_undefined_flag 11191 else 11192 cat conftest.err 1>&5 11193 fi 11194 $RM conftest* 11195 ;; 11196 esac 11197 fi 11198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11199 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11200 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11201 ;; 11202 esac 11203 fi 11204 ;; 11205 esac 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11359 printf %s "checking dynamic linker characteristics... " >&6; } 11360 11361 if test yes = "$GCC"; then 11362 case $host_os in 11363 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11364 *) lt_awk_arg='/^libraries:/' ;; 11365 esac 11366 case $host_os in 11367 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11368 *) lt_sed_strip_eq='s|=/|/|g' ;; 11369 esac 11370 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11371 case $lt_search_path_spec in 11372 *\;*) 11373 # if the path contains ";" then we assume it to be the separator 11374 # otherwise default to the standard path separator (i.e. ":") - it is 11375 # assumed that no part of a normal pathname contains ";" but that should 11376 # okay in the real world where ";" in dirpaths is itself problematic. 11377 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11378 ;; 11379 *) 11380 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11381 ;; 11382 esac 11383 # Ok, now we have the path, separated by spaces, we can step through it 11384 # and add multilib dir if necessary... 11385 lt_tmp_lt_search_path_spec= 11386 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11387 # ...but if some path component already ends with the multilib dir we assume 11388 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11389 case "$lt_multi_os_dir; $lt_search_path_spec " in 11390 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11391 lt_multi_os_dir= 11392 ;; 11393 esac 11394 for lt_sys_path in $lt_search_path_spec; do 11395 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11396 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11397 elif test -n "$lt_multi_os_dir"; then 11398 test -d "$lt_sys_path" && \ 11399 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11400 fi 11401 done 11402 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11403 BEGIN {RS = " "; FS = "/|\n";} { 11404 lt_foo = ""; 11405 lt_count = 0; 11406 for (lt_i = NF; lt_i > 0; lt_i--) { 11407 if ($lt_i != "" && $lt_i != ".") { 11408 if ($lt_i == "..") { 11409 lt_count++; 11410 } else { 11411 if (lt_count == 0) { 11412 lt_foo = "/" $lt_i lt_foo; 11413 } else { 11414 lt_count--; 11415 } 11416 } 11417 } 11418 } 11419 if (lt_foo != "") { lt_freq[lt_foo]++; } 11420 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11421 }'` 11422 # AWK program above erroneously prepends '/' to C:/dos/paths 11423 # for these hosts. 11424 case $host_os in 11425 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11426 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11427 esac 11428 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11429 else 11430 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11431 fi 11432 library_names_spec= 11433 libname_spec='lib$name' 11434 soname_spec= 11435 shrext_cmds=.so 11436 postinstall_cmds= 11437 postuninstall_cmds= 11438 finish_cmds= 11439 finish_eval= 11440 shlibpath_var= 11441 shlibpath_overrides_runpath=unknown 11442 version_type=none 11443 dynamic_linker="$host_os ld.so" 11444 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11445 need_lib_prefix=unknown 11446 hardcode_into_libs=no 11447 11448 # when you set need_version to no, make sure it does not cause -set_version 11449 # flags to be left without arguments 11450 need_version=unknown 11451 11452 11453 11454 case $host_os in 11455 aix3*) 11456 version_type=linux # correct to gnu/linux during the next big refactor 11457 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11458 shlibpath_var=LIBPATH 11459 11460 # AIX 3 has no versioning support, so we append a major version to the name. 11461 soname_spec='$libname$release$shared_ext$major' 11462 ;; 11463 11464 aix[4-9]*) 11465 version_type=linux # correct to gnu/linux during the next big refactor 11466 need_lib_prefix=no 11467 need_version=no 11468 hardcode_into_libs=yes 11469 if test ia64 = "$host_cpu"; then 11470 # AIX 5 supports IA64 11471 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11472 shlibpath_var=LD_LIBRARY_PATH 11473 else 11474 # With GCC up to 2.95.x, collect2 would create an import file 11475 # for dependence libraries. The import file would start with 11476 # the line '#! .'. This would cause the generated library to 11477 # depend on '.', always an invalid library. This was fixed in 11478 # development snapshots of GCC prior to 3.0. 11479 case $host_os in 11480 aix4 | aix4.[01] | aix4.[01].*) 11481 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11482 echo ' yes ' 11483 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11484 : 11485 else 11486 can_build_shared=no 11487 fi 11488 ;; 11489 esac 11490 # Using Import Files as archive members, it is possible to support 11491 # filename-based versioning of shared library archives on AIX. While 11492 # this would work for both with and without runtime linking, it will 11493 # prevent static linking of such archives. So we do filename-based 11494 # shared library versioning with .so extension only, which is used 11495 # when both runtime linking and shared linking is enabled. 11496 # Unfortunately, runtime linking may impact performance, so we do 11497 # not want this to be the default eventually. Also, we use the 11498 # versioned .so libs for executables only if there is the -brtl 11499 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 11500 # To allow for filename-based versioning support, we need to create 11501 # libNAME.so.V as an archive file, containing: 11502 # *) an Import File, referring to the versioned filename of the 11503 # archive as well as the shared archive member, telling the 11504 # bitwidth (32 or 64) of that shared object, and providing the 11505 # list of exported symbols of that shared object, eventually 11506 # decorated with the 'weak' keyword 11507 # *) the shared object with the F_LOADONLY flag set, to really avoid 11508 # it being seen by the linker. 11509 # At run time we better use the real file rather than another symlink, 11510 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11511 11512 case $with_aix_soname,$aix_use_runtimelinking in 11513 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11514 # soname into executable. Probably we can add versioning support to 11515 # collect2, so additional links can be useful in future. 11516 aix,yes) # traditional libtool 11517 dynamic_linker='AIX unversionable lib.so' 11518 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11519 # instead of lib<name>.a to let people know that these are not 11520 # typical AIX shared libraries. 11521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11522 ;; 11523 aix,no) # traditional AIX only 11524 dynamic_linker='AIX lib.a(lib.so.V)' 11525 # We preserve .a as extension for shared libraries through AIX4.2 11526 # and later when we are not doing run time linking. 11527 library_names_spec='$libname$release.a $libname.a' 11528 soname_spec='$libname$release$shared_ext$major' 11529 ;; 11530 svr4,*) # full svr4 only 11531 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11532 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11533 # We do not specify a path in Import Files, so LIBPATH fires. 11534 shlibpath_overrides_runpath=yes 11535 ;; 11536 *,yes) # both, prefer svr4 11537 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11538 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11539 # unpreferred sharedlib libNAME.a needs extra handling 11540 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"' 11541 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"' 11542 # We do not specify a path in Import Files, so LIBPATH fires. 11543 shlibpath_overrides_runpath=yes 11544 ;; 11545 *,no) # both, prefer aix 11546 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11547 library_names_spec='$libname$release.a $libname.a' 11548 soname_spec='$libname$release$shared_ext$major' 11549 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11550 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)' 11551 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"' 11552 ;; 11553 esac 11554 shlibpath_var=LIBPATH 11555 fi 11556 ;; 11557 11558 amigaos*) 11559 case $host_cpu in 11560 powerpc) 11561 # Since July 2007 AmigaOS4 officially supports .so libraries. 11562 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11564 ;; 11565 m68k) 11566 library_names_spec='$libname.ixlibrary $libname.a' 11567 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11568 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' 11569 ;; 11570 esac 11571 ;; 11572 11573 beos*) 11574 library_names_spec='$libname$shared_ext' 11575 dynamic_linker="$host_os ld.so" 11576 shlibpath_var=LIBRARY_PATH 11577 ;; 11578 11579 bsdi[45]*) 11580 version_type=linux # correct to gnu/linux during the next big refactor 11581 need_version=no 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11583 soname_spec='$libname$release$shared_ext$major' 11584 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11585 shlibpath_var=LD_LIBRARY_PATH 11586 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11587 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11588 # the default ld.so.conf also contains /usr/contrib/lib and 11589 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11590 # libtool to hard-code these into programs 11591 ;; 11592 11593 cygwin* | mingw* | windows* | pw32* | cegcc*) 11594 version_type=windows 11595 shrext_cmds=.dll 11596 need_version=no 11597 need_lib_prefix=no 11598 11599 case $GCC,$cc_basename in 11600 yes,*) 11601 # gcc 11602 library_names_spec='$libname.dll.a' 11603 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11604 # If user builds GCC with multilib enabled, 11605 # it should just install on $(libdir) 11606 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 11607 if test xyes = x"$multilib"; then 11608 postinstall_cmds='base_file=`basename \$file`~ 11609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11610 dldir=$destdir/`dirname \$dlpath`~ 11611 $install_prog $dir/$dlname $destdir/$dlname~ 11612 chmod a+x $destdir/$dlname~ 11613 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11614 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 11615 fi' 11616 else 11617 postinstall_cmds='base_file=`basename \$file`~ 11618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11619 dldir=$destdir/`dirname \$dlpath`~ 11620 test -d \$dldir || mkdir -p \$dldir~ 11621 $install_prog $dir/$dlname \$dldir/$dlname~ 11622 chmod a+x \$dldir/$dlname~ 11623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11624 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11625 fi' 11626 fi 11627 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11628 dlpath=$dir/\$dldll~ 11629 $RM \$dlpath' 11630 shlibpath_overrides_runpath=yes 11631 11632 case $host_os in 11633 cygwin*) 11634 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11635 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11636 11637 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11638 ;; 11639 mingw* | windows* | cegcc*) 11640 # MinGW DLLs use traditional 'lib' prefix 11641 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11642 ;; 11643 pw32*) 11644 # pw32 DLLs use 'pw' prefix rather than 'lib' 11645 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11646 ;; 11647 esac 11648 dynamic_linker='Win32 ld.exe' 11649 ;; 11650 11651 *,cl* | *,icl*) 11652 # Native MSVC or ICC 11653 libname_spec='$name' 11654 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11655 library_names_spec='$libname.dll.lib' 11656 11657 case $build_os in 11658 mingw* | windows*) 11659 sys_lib_search_path_spec= 11660 lt_save_ifs=$IFS 11661 IFS=';' 11662 for lt_path in $LIB 11663 do 11664 IFS=$lt_save_ifs 11665 # Let DOS variable expansion print the short 8.3 style file name. 11666 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11667 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11668 done 11669 IFS=$lt_save_ifs 11670 # Convert to MSYS style. 11671 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11672 ;; 11673 cygwin*) 11674 # Convert to unix form, then to dos form, then back to unix form 11675 # but this time dos style (no spaces!) so that the unix form looks 11676 # like /cygdrive/c/PROGRA~1:/cygdr... 11677 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11678 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11679 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11680 ;; 11681 *) 11682 sys_lib_search_path_spec=$LIB 11683 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11684 # It is most probably a Windows format PATH. 11685 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11686 else 11687 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11688 fi 11689 # FIXME: find the short name or the path components, as spaces are 11690 # common. (e.g. "Program Files" -> "PROGRA~1") 11691 ;; 11692 esac 11693 11694 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11695 postinstall_cmds='base_file=`basename \$file`~ 11696 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11697 dldir=$destdir/`dirname \$dlpath`~ 11698 test -d \$dldir || mkdir -p \$dldir~ 11699 $install_prog $dir/$dlname \$dldir/$dlname' 11700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11701 dlpath=$dir/\$dldll~ 11702 $RM \$dlpath' 11703 shlibpath_overrides_runpath=yes 11704 dynamic_linker='Win32 link.exe' 11705 ;; 11706 11707 *) 11708 # Assume MSVC and ICC wrapper 11709 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11710 dynamic_linker='Win32 ld.exe' 11711 ;; 11712 esac 11713 # FIXME: first we should search . and the directory the executable is in 11714 shlibpath_var=PATH 11715 ;; 11716 11717 darwin* | rhapsody*) 11718 dynamic_linker="$host_os dyld" 11719 version_type=darwin 11720 need_lib_prefix=no 11721 need_version=no 11722 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11723 soname_spec='$libname$release$major$shared_ext' 11724 shlibpath_overrides_runpath=yes 11725 shlibpath_var=DYLD_LIBRARY_PATH 11726 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11727 11728 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11729 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11730 ;; 11731 11732 dgux*) 11733 version_type=linux # correct to gnu/linux during the next big refactor 11734 need_lib_prefix=no 11735 need_version=no 11736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11737 soname_spec='$libname$release$shared_ext$major' 11738 shlibpath_var=LD_LIBRARY_PATH 11739 ;; 11740 11741 freebsd* | dragonfly* | midnightbsd*) 11742 # DragonFly does not have aout. When/if they implement a new 11743 # versioning mechanism, adjust this. 11744 if test -x /usr/bin/objformat; then 11745 objformat=`/usr/bin/objformat` 11746 else 11747 case $host_os in 11748 freebsd[23].*) objformat=aout ;; 11749 *) objformat=elf ;; 11750 esac 11751 fi 11752 version_type=freebsd-$objformat 11753 case $version_type in 11754 freebsd-elf*) 11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11756 soname_spec='$libname$release$shared_ext$major' 11757 need_version=no 11758 need_lib_prefix=no 11759 ;; 11760 freebsd-*) 11761 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11762 need_version=yes 11763 ;; 11764 esac 11765 case $host_cpu in 11766 powerpc64) 11767 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 11768 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11770 /* end confdefs.h. */ 11771 int test_pointer_size[sizeof (void *) - 5]; 11772 11773 _ACEOF 11774 if ac_fn_c_try_compile "$LINENO" 11775 then : 11776 shlibpath_var=LD_LIBRARY_PATH 11777 else case e in #( 11778 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 11779 esac 11780 fi 11781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11782 ;; 11783 *) 11784 shlibpath_var=LD_LIBRARY_PATH 11785 ;; 11786 esac 11787 case $host_os in 11788 freebsd2.*) 11789 shlibpath_overrides_runpath=yes 11790 ;; 11791 freebsd3.[01]* | freebsdelf3.[01]*) 11792 shlibpath_overrides_runpath=yes 11793 hardcode_into_libs=yes 11794 ;; 11795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11797 shlibpath_overrides_runpath=no 11798 hardcode_into_libs=yes 11799 ;; 11800 *) # from 4.6 on, and DragonFly 11801 shlibpath_overrides_runpath=yes 11802 hardcode_into_libs=yes 11803 ;; 11804 esac 11805 ;; 11806 11807 haiku*) 11808 version_type=linux # correct to gnu/linux during the next big refactor 11809 need_lib_prefix=no 11810 need_version=no 11811 dynamic_linker="$host_os runtime_loader" 11812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11813 soname_spec='$libname$release$shared_ext$major' 11814 shlibpath_var=LIBRARY_PATH 11815 shlibpath_overrides_runpath=no 11816 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 11817 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 11818 hardcode_into_libs=no 11819 ;; 11820 11821 hpux9* | hpux10* | hpux11*) 11822 # Give a soname corresponding to the major version so that dld.sl refuses to 11823 # link against other versions. 11824 version_type=sunos 11825 need_lib_prefix=no 11826 need_version=no 11827 case $host_cpu in 11828 ia64*) 11829 shrext_cmds='.so' 11830 hardcode_into_libs=yes 11831 dynamic_linker="$host_os dld.so" 11832 shlibpath_var=LD_LIBRARY_PATH 11833 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11835 soname_spec='$libname$release$shared_ext$major' 11836 if test 32 = "$HPUX_IA64_MODE"; then 11837 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11838 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11839 else 11840 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11841 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11842 fi 11843 ;; 11844 hppa*64*) 11845 shrext_cmds='.sl' 11846 hardcode_into_libs=yes 11847 dynamic_linker="$host_os dld.sl" 11848 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11851 soname_spec='$libname$release$shared_ext$major' 11852 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11854 ;; 11855 *) 11856 shrext_cmds='.sl' 11857 dynamic_linker="$host_os dld.sl" 11858 shlibpath_var=SHLIB_PATH 11859 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11861 soname_spec='$libname$release$shared_ext$major' 11862 ;; 11863 esac 11864 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11865 postinstall_cmds='chmod 555 $lib' 11866 # or fails outright, so override atomically: 11867 install_override_mode=555 11868 ;; 11869 11870 interix[3-9]*) 11871 version_type=linux # correct to gnu/linux during the next big refactor 11872 need_lib_prefix=no 11873 need_version=no 11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11875 soname_spec='$libname$release$shared_ext$major' 11876 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11877 shlibpath_var=LD_LIBRARY_PATH 11878 shlibpath_overrides_runpath=no 11879 hardcode_into_libs=yes 11880 ;; 11881 11882 irix5* | irix6* | nonstopux*) 11883 case $host_os in 11884 nonstopux*) version_type=nonstopux ;; 11885 *) 11886 if test yes = "$lt_cv_prog_gnu_ld"; then 11887 version_type=linux # correct to gnu/linux during the next big refactor 11888 else 11889 version_type=irix 11890 fi ;; 11891 esac 11892 need_lib_prefix=no 11893 need_version=no 11894 soname_spec='$libname$release$shared_ext$major' 11895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11896 case $host_os in 11897 irix5* | nonstopux*) 11898 libsuff= shlibsuff= 11899 ;; 11900 *) 11901 case $LD in # libtool.m4 will add one of these switches to LD 11902 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11903 libsuff= shlibsuff= libmagic=32-bit;; 11904 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11905 libsuff=32 shlibsuff=N32 libmagic=N32;; 11906 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11907 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11908 *) libsuff= shlibsuff= libmagic=never-match;; 11909 esac 11910 ;; 11911 esac 11912 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11913 shlibpath_overrides_runpath=no 11914 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11915 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11916 hardcode_into_libs=yes 11917 ;; 11918 11919 # No shared lib support for Linux oldld, aout, or coff. 11920 linux*oldld* | linux*aout* | linux*coff*) 11921 dynamic_linker=no 11922 ;; 11923 11924 linux*android*) 11925 version_type=none # Android doesn't support versioned libraries. 11926 need_lib_prefix=no 11927 need_version=no 11928 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 11929 soname_spec='$libname$release$shared_ext' 11930 finish_cmds= 11931 shlibpath_var=LD_LIBRARY_PATH 11932 shlibpath_overrides_runpath=yes 11933 11934 # This implies no fast_install, which is unacceptable. 11935 # Some rework will be needed to allow for fast_install 11936 # before this can be enabled. 11937 hardcode_into_libs=yes 11938 11939 dynamic_linker='Android linker' 11940 # -rpath works at least for libraries that are not overridden by 11941 # libraries installed in system locations. 11942 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11943 ;; 11944 11945 # This must be glibc/ELF. 11946 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11947 version_type=linux # correct to gnu/linux during the next big refactor 11948 need_lib_prefix=no 11949 need_version=no 11950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11951 soname_spec='$libname$release$shared_ext$major' 11952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11953 shlibpath_var=LD_LIBRARY_PATH 11954 shlibpath_overrides_runpath=no 11955 11956 # Some binutils ld are patched to set DT_RUNPATH 11957 if test ${lt_cv_shlibpath_overrides_runpath+y} 11958 then : 11959 printf %s "(cached) " >&6 11960 else case e in #( 11961 e) lt_cv_shlibpath_overrides_runpath=no 11962 save_LDFLAGS=$LDFLAGS 11963 save_libdir=$libdir 11964 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11965 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11967 /* end confdefs.h. */ 11968 11969 int 11970 main (void) 11971 { 11972 11973 ; 11974 return 0; 11975 } 11976 _ACEOF 11977 if ac_fn_c_try_link "$LINENO" 11978 then : 11979 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11980 then : 11981 lt_cv_shlibpath_overrides_runpath=yes 11982 fi 11983 fi 11984 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11985 conftest$ac_exeext conftest.$ac_ext 11986 LDFLAGS=$save_LDFLAGS 11987 libdir=$save_libdir 11988 ;; 11989 esac 11990 fi 11991 11992 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11993 11994 # This implies no fast_install, which is unacceptable. 11995 # Some rework will be needed to allow for fast_install 11996 # before this can be enabled. 11997 hardcode_into_libs=yes 11998 11999 # Ideally, we could use ldconfig to report *all* directories which are 12000 # searched for libraries, however this is still not possible. Aside from not 12001 # being certain /sbin/ldconfig is available, command 12002 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12003 # even though it is searched at run-time. Try to do the best guess by 12004 # appending ld.so.conf contents (and includes) to the search path. 12005 if test -f /etc/ld.so.conf; then 12006 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' ' '` 12007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12008 fi 12009 12010 # We used to test for /lib/ld.so.1 and disable shared libraries on 12011 # powerpc, because MkLinux only supported shared libraries with the 12012 # GNU dynamic linker. Since this was broken with cross compilers, 12013 # most powerpc-linux boxes support dynamic linking these days and 12014 # people can always --disable-shared, the test was removed, and we 12015 # assume the GNU/Linux dynamic linker is in use. 12016 dynamic_linker='GNU/Linux ld.so' 12017 ;; 12018 12019 netbsdelf*-gnu) 12020 version_type=linux 12021 need_lib_prefix=no 12022 need_version=no 12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12024 soname_spec='$libname$release$shared_ext$major' 12025 shlibpath_var=LD_LIBRARY_PATH 12026 shlibpath_overrides_runpath=no 12027 hardcode_into_libs=yes 12028 dynamic_linker='NetBSD ld.elf_so' 12029 ;; 12030 12031 netbsd*) 12032 version_type=sunos 12033 need_lib_prefix=no 12034 need_version=no 12035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12036 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12038 dynamic_linker='NetBSD (a.out) ld.so' 12039 else 12040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12041 soname_spec='$libname$release$shared_ext$major' 12042 dynamic_linker='NetBSD ld.elf_so' 12043 fi 12044 shlibpath_var=LD_LIBRARY_PATH 12045 shlibpath_overrides_runpath=yes 12046 hardcode_into_libs=yes 12047 ;; 12048 12049 *-mlibc) 12050 version_type=linux # correct to gnu/linux during the next big refactor 12051 need_lib_prefix=no 12052 need_version=no 12053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12054 soname_spec='$libname$release$shared_ext$major' 12055 dynamic_linker='mlibc ld.so' 12056 shlibpath_var=LD_LIBRARY_PATH 12057 shlibpath_overrides_runpath=no 12058 hardcode_into_libs=yes 12059 ;; 12060 12061 newsos6) 12062 version_type=linux # correct to gnu/linux during the next big refactor 12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12064 shlibpath_var=LD_LIBRARY_PATH 12065 shlibpath_overrides_runpath=yes 12066 ;; 12067 12068 *nto* | *qnx*) 12069 version_type=qnx 12070 need_lib_prefix=no 12071 need_version=no 12072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12073 soname_spec='$libname$release$shared_ext$major' 12074 shlibpath_var=LD_LIBRARY_PATH 12075 shlibpath_overrides_runpath=no 12076 hardcode_into_libs=yes 12077 dynamic_linker='ldqnx.so' 12078 ;; 12079 12080 openbsd*) 12081 version_type=sunos 12082 sys_lib_dlsearch_path_spec=/usr/lib 12083 need_lib_prefix=no 12084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12085 need_version=no 12086 else 12087 need_version=yes 12088 fi 12089 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12091 shlibpath_var=LD_LIBRARY_PATH 12092 shlibpath_overrides_runpath=yes 12093 ;; 12094 12095 os2*) 12096 libname_spec='$name' 12097 version_type=windows 12098 shrext_cmds=.dll 12099 need_version=no 12100 need_lib_prefix=no 12101 # OS/2 can only load a DLL with a base name of 8 characters or less. 12102 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12103 v=$($ECHO $release$versuffix | tr -d .-); 12104 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12105 $ECHO $n$v`$shared_ext' 12106 library_names_spec='${libname}_dll.$libext' 12107 dynamic_linker='OS/2 ld.exe' 12108 shlibpath_var=BEGINLIBPATH 12109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12111 postinstall_cmds='base_file=`basename \$file`~ 12112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12113 dldir=$destdir/`dirname \$dlpath`~ 12114 test -d \$dldir || mkdir -p \$dldir~ 12115 $install_prog $dir/$dlname \$dldir/$dlname~ 12116 chmod a+x \$dldir/$dlname~ 12117 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12118 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12119 fi' 12120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12121 dlpath=$dir/\$dldll~ 12122 $RM \$dlpath' 12123 ;; 12124 12125 osf3* | osf4* | osf5*) 12126 version_type=osf 12127 need_lib_prefix=no 12128 need_version=no 12129 soname_spec='$libname$release$shared_ext$major' 12130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12131 shlibpath_var=LD_LIBRARY_PATH 12132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12134 ;; 12135 12136 rdos*) 12137 dynamic_linker=no 12138 ;; 12139 12140 serenity*) 12141 version_type=linux # correct to gnu/linux during the next big refactor 12142 need_lib_prefix=no 12143 need_version=no 12144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12145 soname_spec='$libname$release$shared_ext$major' 12146 shlibpath_var=LD_LIBRARY_PATH 12147 shlibpath_overrides_runpath=no 12148 dynamic_linker='SerenityOS LibELF' 12149 ;; 12150 12151 solaris*) 12152 version_type=linux # correct to gnu/linux during the next big refactor 12153 need_lib_prefix=no 12154 need_version=no 12155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12156 soname_spec='$libname$release$shared_ext$major' 12157 shlibpath_var=LD_LIBRARY_PATH 12158 shlibpath_overrides_runpath=yes 12159 hardcode_into_libs=yes 12160 # ldd complains unless libraries are executable 12161 postinstall_cmds='chmod +x $lib' 12162 ;; 12163 12164 sunos4*) 12165 version_type=sunos 12166 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12168 shlibpath_var=LD_LIBRARY_PATH 12169 shlibpath_overrides_runpath=yes 12170 if test yes = "$with_gnu_ld"; then 12171 need_lib_prefix=no 12172 fi 12173 need_version=yes 12174 ;; 12175 12176 sysv4 | sysv4.3*) 12177 version_type=linux # correct to gnu/linux during the next big refactor 12178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12179 soname_spec='$libname$release$shared_ext$major' 12180 shlibpath_var=LD_LIBRARY_PATH 12181 case $host_vendor in 12182 sni) 12183 shlibpath_overrides_runpath=no 12184 need_lib_prefix=no 12185 runpath_var=LD_RUN_PATH 12186 ;; 12187 siemens) 12188 need_lib_prefix=no 12189 ;; 12190 motorola) 12191 need_lib_prefix=no 12192 need_version=no 12193 shlibpath_overrides_runpath=no 12194 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12195 ;; 12196 esac 12197 ;; 12198 12199 sysv4*MP*) 12200 if test -d /usr/nec; then 12201 version_type=linux # correct to gnu/linux during the next big refactor 12202 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12203 soname_spec='$libname$shared_ext.$major' 12204 shlibpath_var=LD_LIBRARY_PATH 12205 fi 12206 ;; 12207 12208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12209 version_type=sco 12210 need_lib_prefix=no 12211 need_version=no 12212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12213 soname_spec='$libname$release$shared_ext$major' 12214 shlibpath_var=LD_LIBRARY_PATH 12215 shlibpath_overrides_runpath=yes 12216 hardcode_into_libs=yes 12217 if test yes = "$with_gnu_ld"; then 12218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12219 else 12220 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12221 case $host_os in 12222 sco3.2v5*) 12223 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12224 ;; 12225 esac 12226 fi 12227 sys_lib_dlsearch_path_spec='/usr/lib' 12228 ;; 12229 12230 tpf*) 12231 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12232 version_type=linux # correct to gnu/linux during the next big refactor 12233 need_lib_prefix=no 12234 need_version=no 12235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12236 shlibpath_var=LD_LIBRARY_PATH 12237 shlibpath_overrides_runpath=no 12238 hardcode_into_libs=yes 12239 ;; 12240 12241 uts4*) 12242 version_type=linux # correct to gnu/linux during the next big refactor 12243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12244 soname_spec='$libname$release$shared_ext$major' 12245 shlibpath_var=LD_LIBRARY_PATH 12246 ;; 12247 12248 emscripten*) 12249 version_type=none 12250 need_lib_prefix=no 12251 need_version=no 12252 library_names_spec='$libname$release$shared_ext' 12253 soname_spec='$libname$release$shared_ext' 12254 finish_cmds= 12255 dynamic_linker="Emscripten linker" 12256 lt_prog_compiler_wl= 12257 lt_prog_compiler_pic= 12258 lt_prog_compiler_static= 12259 12260 12261 if test yes = "$GCC"; then 12262 lt_prog_compiler_wl='-Wl,' 12263 lt_prog_compiler_static='-static' 12264 12265 case $host_os in 12266 aix*) 12267 # All AIX code is PIC. 12268 if test ia64 = "$host_cpu"; then 12269 # AIX 5 now supports IA64 processor 12270 lt_prog_compiler_static='-Bstatic' 12271 fi 12272 lt_prog_compiler_pic='-fPIC' 12273 ;; 12274 12275 amigaos*) 12276 case $host_cpu in 12277 powerpc) 12278 # see comment about AmigaOS4 .so support 12279 lt_prog_compiler_pic='-fPIC' 12280 ;; 12281 m68k) 12282 # FIXME: we need at least 68020 code to build shared libraries, but 12283 # adding the '-m68020' flag to GCC prevents building anything better, 12284 # like '-m68040'. 12285 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12286 ;; 12287 esac 12288 ;; 12289 12290 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12291 # PIC is the default for these OSes. 12292 ;; 12293 12294 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12295 # This hack is so that the source file can tell whether it is being 12296 # built for inclusion in a dll (and should export symbols for example). 12297 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12298 # (--disable-auto-import) libraries 12299 lt_prog_compiler_pic='-DDLL_EXPORT' 12300 case $host_os in 12301 os2*) 12302 lt_prog_compiler_static='$wl-static' 12303 ;; 12304 esac 12305 ;; 12306 12307 darwin* | rhapsody*) 12308 # PIC is the default on this platform 12309 # Common symbols not allowed in MH_DYLIB files 12310 lt_prog_compiler_pic='-fno-common' 12311 ;; 12312 12313 haiku*) 12314 # PIC is the default for Haiku. 12315 # The "-static" flag exists, but is broken. 12316 lt_prog_compiler_static= 12317 ;; 12318 12319 hpux*) 12320 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12321 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12322 # sets the default TLS model and affects inlining. 12323 case $host_cpu in 12324 hppa*64*) 12325 # +Z the default 12326 ;; 12327 *) 12328 lt_prog_compiler_pic='-fPIC' 12329 ;; 12330 esac 12331 ;; 12332 12333 interix[3-9]*) 12334 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12335 # Instead, we relocate shared libraries at runtime. 12336 ;; 12337 12338 msdosdjgpp*) 12339 # Just because we use GCC doesn't mean we suddenly get shared libraries 12340 # on systems that don't support them. 12341 lt_prog_compiler_can_build_shared=no 12342 enable_shared=no 12343 ;; 12344 12345 *nto* | *qnx*) 12346 # QNX uses GNU C++, but need to define -shared option too, otherwise 12347 # it will coredump. 12348 lt_prog_compiler_pic='-fPIC -shared' 12349 ;; 12350 12351 sysv4*MP*) 12352 if test -d /usr/nec; then 12353 lt_prog_compiler_pic=-Kconform_pic 12354 fi 12355 ;; 12356 12357 *) 12358 lt_prog_compiler_pic='-fPIC' 12359 ;; 12360 esac 12361 12362 case $cc_basename in 12363 nvcc*) # Cuda Compiler Driver 2.2 12364 lt_prog_compiler_wl='-Xlinker ' 12365 if test -n "$lt_prog_compiler_pic"; then 12366 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12367 fi 12368 ;; 12369 esac 12370 else 12371 # PORTME Check for flag to pass linker flags through the system compiler. 12372 case $host_os in 12373 aix*) 12374 lt_prog_compiler_wl='-Wl,' 12375 if test ia64 = "$host_cpu"; then 12376 # AIX 5 now supports IA64 processor 12377 lt_prog_compiler_static='-Bstatic' 12378 else 12379 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12380 fi 12381 ;; 12382 12383 darwin* | rhapsody*) 12384 # PIC is the default on this platform 12385 # Common symbols not allowed in MH_DYLIB files 12386 lt_prog_compiler_pic='-fno-common' 12387 case $cc_basename in 12388 nagfor*) 12389 # NAG Fortran compiler 12390 lt_prog_compiler_wl='-Wl,-Wl,,' 12391 lt_prog_compiler_pic='-PIC' 12392 lt_prog_compiler_static='-Bstatic' 12393 ;; 12394 esac 12395 ;; 12396 12397 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12398 # This hack is so that the source file can tell whether it is being 12399 # built for inclusion in a dll (and should export symbols for example). 12400 lt_prog_compiler_pic='-DDLL_EXPORT' 12401 case $host_os in 12402 os2*) 12403 lt_prog_compiler_static='$wl-static' 12404 ;; 12405 esac 12406 ;; 12407 12408 hpux9* | hpux10* | hpux11*) 12409 lt_prog_compiler_wl='-Wl,' 12410 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12411 # not for PA HP-UX. 12412 case $host_cpu in 12413 hppa*64*|ia64*) 12414 # +Z the default 12415 ;; 12416 *) 12417 lt_prog_compiler_pic='+Z' 12418 ;; 12419 esac 12420 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12421 lt_prog_compiler_static='$wl-a ${wl}archive' 12422 ;; 12423 12424 irix5* | irix6* | nonstopux*) 12425 lt_prog_compiler_wl='-Wl,' 12426 # PIC (with -KPIC) is the default. 12427 lt_prog_compiler_static='-non_shared' 12428 ;; 12429 12430 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12431 case $cc_basename in 12432 # old Intel for x86_64, which still supported -KPIC. 12433 ecc*) 12434 lt_prog_compiler_wl='-Wl,' 12435 lt_prog_compiler_pic='-KPIC' 12436 lt_prog_compiler_static='-static' 12437 ;; 12438 *flang* | ftn | f18* | f95*) 12439 # Flang compiler. 12440 lt_prog_compiler_wl='-Wl,' 12441 lt_prog_compiler_pic='-fPIC' 12442 lt_prog_compiler_static='-static' 12443 ;; 12444 # icc used to be incompatible with GCC. 12445 # ICC 10 doesn't accept -KPIC any more. 12446 icc* | ifort*) 12447 lt_prog_compiler_wl='-Wl,' 12448 lt_prog_compiler_pic='-fPIC' 12449 lt_prog_compiler_static='-static' 12450 ;; 12451 # Lahey Fortran 8.1. 12452 lf95*) 12453 lt_prog_compiler_wl='-Wl,' 12454 lt_prog_compiler_pic='--shared' 12455 lt_prog_compiler_static='--static' 12456 ;; 12457 nagfor*) 12458 # NAG Fortran compiler 12459 lt_prog_compiler_wl='-Wl,-Wl,,' 12460 lt_prog_compiler_pic='-PIC' 12461 lt_prog_compiler_static='-Bstatic' 12462 ;; 12463 tcc*) 12464 # Fabrice Bellard et al's Tiny C Compiler 12465 lt_prog_compiler_wl='-Wl,' 12466 lt_prog_compiler_pic='-fPIC' 12467 lt_prog_compiler_static='-static' 12468 ;; 12469 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12470 # Portland Group compilers (*not* the Pentium gcc compiler, 12471 # which looks to be a dead project) 12472 lt_prog_compiler_wl='-Wl,' 12473 lt_prog_compiler_pic='-fpic' 12474 lt_prog_compiler_static='-Bstatic' 12475 ;; 12476 ccc*) 12477 lt_prog_compiler_wl='-Wl,' 12478 # All Alpha code is PIC. 12479 lt_prog_compiler_static='-non_shared' 12480 ;; 12481 xl* | bgxl* | bgf* | mpixl*) 12482 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12483 lt_prog_compiler_wl='-Wl,' 12484 lt_prog_compiler_pic='-qpic' 12485 lt_prog_compiler_static='-qstaticlink' 12486 ;; 12487 *) 12488 case `$CC -V 2>&1 | $SED 5q` in 12489 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12490 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12491 lt_prog_compiler_pic='-KPIC' 12492 lt_prog_compiler_static='-Bstatic' 12493 lt_prog_compiler_wl='' 12494 ;; 12495 *Sun\ F* | *Sun*Fortran*) 12496 lt_prog_compiler_pic='-KPIC' 12497 lt_prog_compiler_static='-Bstatic' 12498 lt_prog_compiler_wl='-Qoption ld ' 12499 ;; 12500 *Sun\ C*) 12501 # Sun C 5.9 12502 lt_prog_compiler_pic='-KPIC' 12503 lt_prog_compiler_static='-Bstatic' 12504 lt_prog_compiler_wl='-Wl,' 12505 ;; 12506 *Intel*\ [CF]*Compiler*) 12507 lt_prog_compiler_wl='-Wl,' 12508 lt_prog_compiler_pic='-fPIC' 12509 lt_prog_compiler_static='-static' 12510 ;; 12511 *Portland\ Group*) 12512 lt_prog_compiler_wl='-Wl,' 12513 lt_prog_compiler_pic='-fpic' 12514 lt_prog_compiler_static='-Bstatic' 12515 ;; 12516 esac 12517 ;; 12518 esac 12519 ;; 12520 12521 newsos6) 12522 lt_prog_compiler_pic='-KPIC' 12523 lt_prog_compiler_static='-Bstatic' 12524 ;; 12525 12526 *-mlibc) 12527 lt_prog_compiler_wl='-Wl,' 12528 lt_prog_compiler_pic='-fPIC' 12529 lt_prog_compiler_static='-static' 12530 ;; 12531 12532 *nto* | *qnx*) 12533 # QNX uses GNU C++, but need to define -shared option too, otherwise 12534 # it will coredump. 12535 lt_prog_compiler_pic='-fPIC -shared' 12536 ;; 12537 12538 osf3* | osf4* | osf5*) 12539 lt_prog_compiler_wl='-Wl,' 12540 # All OSF/1 code is PIC. 12541 lt_prog_compiler_static='-non_shared' 12542 ;; 12543 12544 rdos*) 12545 lt_prog_compiler_static='-non_shared' 12546 ;; 12547 12548 serenity*) 12549 ;; 12550 12551 solaris*) 12552 lt_prog_compiler_pic='-KPIC' 12553 lt_prog_compiler_static='-Bstatic' 12554 case $cc_basename in 12555 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12556 lt_prog_compiler_wl='-Qoption ld ';; 12557 *) 12558 lt_prog_compiler_wl='-Wl,';; 12559 esac 12560 ;; 12561 12562 sunos4*) 12563 lt_prog_compiler_wl='-Qoption ld ' 12564 lt_prog_compiler_pic='-PIC' 12565 lt_prog_compiler_static='-Bstatic' 12566 ;; 12567 12568 sysv4 | sysv4.2uw2* | sysv4.3*) 12569 lt_prog_compiler_wl='-Wl,' 12570 lt_prog_compiler_pic='-KPIC' 12571 lt_prog_compiler_static='-Bstatic' 12572 ;; 12573 12574 sysv4*MP*) 12575 if test -d /usr/nec; then 12576 lt_prog_compiler_pic='-Kconform_pic' 12577 lt_prog_compiler_static='-Bstatic' 12578 fi 12579 ;; 12580 12581 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12582 lt_prog_compiler_wl='-Wl,' 12583 lt_prog_compiler_pic='-KPIC' 12584 lt_prog_compiler_static='-Bstatic' 12585 ;; 12586 12587 unicos*) 12588 lt_prog_compiler_wl='-Wl,' 12589 lt_prog_compiler_can_build_shared=no 12590 ;; 12591 12592 uts4*) 12593 lt_prog_compiler_pic='-pic' 12594 lt_prog_compiler_static='-Bstatic' 12595 ;; 12596 12597 *) 12598 lt_prog_compiler_can_build_shared=no 12599 ;; 12600 esac 12601 fi 12602 12603 case $host_os in 12604 # For platforms that do not support PIC, -DPIC is meaningless: 12605 *djgpp*) 12606 lt_prog_compiler_pic= 12607 ;; 12608 *) 12609 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12610 ;; 12611 esac 12612 12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12614 printf %s "checking for $compiler option to produce PIC... " >&6; } 12615 if test ${lt_cv_prog_compiler_pic+y} 12616 then : 12617 printf %s "(cached) " >&6 12618 else case e in #( 12619 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 12620 esac 12621 fi 12622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12623 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12624 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12625 12626 # 12627 # Check to make sure the PIC flag actually works. 12628 # 12629 if test -n "$lt_prog_compiler_pic"; then 12630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12631 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12632 if test ${lt_cv_prog_compiler_pic_works+y} 12633 then : 12634 printf %s "(cached) " >&6 12635 else case e in #( 12636 e) lt_cv_prog_compiler_pic_works=no 12637 ac_outfile=conftest.$ac_objext 12638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12639 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12640 # Insert the option either (1) after the last *FLAGS variable, or 12641 # (2) before a word containing "conftest.", or (3) at the end. 12642 # Note that $ac_compile itself does not contain backslashes and begins 12643 # with a dollar sign (not a hyphen), so the echo should work correctly. 12644 # The option is referenced via a variable to avoid confusing sed. 12645 lt_compile=`echo "$ac_compile" | $SED \ 12646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12648 -e 's:$: $lt_compiler_flag:'` 12649 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12650 (eval "$lt_compile" 2>conftest.err) 12651 ac_status=$? 12652 cat conftest.err >&5 12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12654 if (exit $ac_status) && test -s "$ac_outfile"; then 12655 # The compiler can only warn and ignore the option if not recognized 12656 # So say no if there are warnings other than the usual output. 12657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12659 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12660 lt_cv_prog_compiler_pic_works=yes 12661 fi 12662 fi 12663 $RM conftest* 12664 ;; 12665 esac 12666 fi 12667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12668 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12669 12670 if test yes = "$lt_cv_prog_compiler_pic_works"; then 12671 case $lt_prog_compiler_pic in 12672 "" | " "*) ;; 12673 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12674 esac 12675 else 12676 lt_prog_compiler_pic= 12677 lt_prog_compiler_can_build_shared=no 12678 fi 12679 12680 fi 12681 12682 12683 12684 12685 12686 # 12687 # Check to make sure the static flag actually works. 12688 # 12689 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12691 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12692 if test ${lt_cv_prog_compiler_static_works+y} 12693 then : 12694 printf %s "(cached) " >&6 12695 else case e in #( 12696 e) lt_cv_prog_compiler_static_works=no 12697 save_LDFLAGS=$LDFLAGS 12698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12699 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12701 # The linker can only warn and ignore the option if not recognized 12702 # So say no if there are warnings 12703 if test -s conftest.err; then 12704 # Append any errors to the config.log. 12705 cat conftest.err 1>&5 12706 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12708 if diff conftest.exp conftest.er2 >/dev/null; then 12709 lt_cv_prog_compiler_static_works=yes 12710 fi 12711 else 12712 lt_cv_prog_compiler_static_works=yes 12713 fi 12714 fi 12715 $RM -r conftest* 12716 LDFLAGS=$save_LDFLAGS 12717 ;; 12718 esac 12719 fi 12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12721 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12722 12723 if test yes = "$lt_cv_prog_compiler_static_works"; then 12724 : 12725 else 12726 lt_prog_compiler_static= 12727 fi 12728 12729 12730 12731 ='-fPIC' 12732 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 12733 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' 12734 archive_cmds_need_lc=no 12735 no_undefined_flag= 12736 ;; 12737 12738 *) 12739 dynamic_linker=no 12740 ;; 12741 esac 12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12743 printf "%s\n" "$dynamic_linker" >&6; } 12744 test no = "$dynamic_linker" && can_build_shared=no 12745 12746 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12747 if test yes = "$GCC"; then 12748 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12749 fi 12750 12751 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12752 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12753 fi 12754 12755 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12756 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12757 fi 12758 12759 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12760 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12761 12762 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12763 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12764 12765 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12766 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12865 printf %s "checking how to hardcode library paths into programs... " >&6; } 12866 hardcode_action= 12867 if test -n "$hardcode_libdir_flag_spec" || 12868 test -n "$runpath_var" || 12869 test yes = "$hardcode_automatic"; then 12870 12871 # We can hardcode non-existent directories. 12872 if test no != "$hardcode_direct" && 12873 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12874 # have to relink, otherwise we might link with an installed library 12875 # when we should be linking with a yet-to-be-installed one 12876 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12877 test no != "$hardcode_minus_L"; then 12878 # Linking always hardcodes the temporary library directory. 12879 hardcode_action=relink 12880 else 12881 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12882 hardcode_action=immediate 12883 fi 12884 else 12885 # We cannot hardcode anything, or else we can only hardcode existing 12886 # directories. 12887 hardcode_action=unsupported 12888 fi 12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12890 printf "%s\n" "$hardcode_action" >&6; } 12891 12892 if test relink = "$hardcode_action" || 12893 test yes = "$inherit_rpath"; then 12894 # Fast installation is not supported 12895 enable_fast_install=no 12896 elif test yes = "$shlibpath_overrides_runpath" || 12897 test no = "$enable_shared"; then 12898 # Fast installation is not necessary 12899 enable_fast_install=needless 12900 fi 12901 12902 12903 12904 12905 12906 12907 if test yes != "$enable_dlopen"; then 12908 enable_dlopen=unknown 12909 enable_dlopen_self=unknown 12910 enable_dlopen_self_static=unknown 12911 else 12912 lt_cv_dlopen=no 12913 lt_cv_dlopen_libs= 12914 12915 case $host_os in 12916 beos*) 12917 lt_cv_dlopen=load_add_on 12918 lt_cv_dlopen_libs= 12919 lt_cv_dlopen_self=yes 12920 ;; 12921 12922 mingw* | windows* | pw32* | cegcc*) 12923 lt_cv_dlopen=LoadLibrary 12924 lt_cv_dlopen_libs= 12925 ;; 12926 12927 cygwin*) 12928 lt_cv_dlopen=dlopen 12929 lt_cv_dlopen_libs= 12930 ;; 12931 12932 darwin*) 12933 # if libdl is installed we need to link against it 12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12935 printf %s "checking for dlopen in -ldl... " >&6; } 12936 if test ${ac_cv_lib_dl_dlopen+y} 12937 then : 12938 printf %s "(cached) " >&6 12939 else case e in #( 12940 e) ac_check_lib_save_LIBS=$LIBS 12941 LIBS="-ldl $LIBS" 12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12943 /* end confdefs.h. */ 12944 12945 /* Override any GCC internal prototype to avoid an error. 12946 Use char because int might match the return type of a GCC 12947 builtin and then its argument prototype would still apply. 12948 The 'extern "C"' is for builds by C++ compilers; 12949 although this is not generally supported in C code supporting it here 12950 has little cost and some practical benefit (sr 110532). */ 12951 #ifdef __cplusplus 12952 extern "C" 12953 #endif 12954 char dlopen (void); 12955 int 12956 main (void) 12957 { 12958 return dlopen (); 12959 ; 12960 return 0; 12961 } 12962 _ACEOF 12963 if ac_fn_c_try_link "$LINENO" 12964 then : 12965 ac_cv_lib_dl_dlopen=yes 12966 else case e in #( 12967 e) ac_cv_lib_dl_dlopen=no ;; 12968 esac 12969 fi 12970 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12971 conftest$ac_exeext conftest.$ac_ext 12972 LIBS=$ac_check_lib_save_LIBS ;; 12973 esac 12974 fi 12975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12976 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12977 if test "x$ac_cv_lib_dl_dlopen" = xyes 12978 then : 12979 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12980 else case e in #( 12981 e) 12982 lt_cv_dlopen=dyld 12983 lt_cv_dlopen_libs= 12984 lt_cv_dlopen_self=yes 12985 ;; 12986 esac 12987 fi 12988 12989 ;; 12990 12991 tpf*) 12992 # Don't try to run any link tests for TPF. We know it's impossible 12993 # because TPF is a cross-compiler, and we know how we open DSOs. 12994 lt_cv_dlopen=dlopen 12995 lt_cv_dlopen_libs= 12996 lt_cv_dlopen_self=no 12997 ;; 12998 12999 *) 13000 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13001 if test "x$ac_cv_func_shl_load" = xyes 13002 then : 13003 lt_cv_dlopen=shl_load 13004 else case e in #( 13005 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13006 printf %s "checking for shl_load in -ldld... " >&6; } 13007 if test ${ac_cv_lib_dld_shl_load+y} 13008 then : 13009 printf %s "(cached) " >&6 13010 else case e in #( 13011 e) ac_check_lib_save_LIBS=$LIBS 13012 LIBS="-ldld $LIBS" 13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13014 /* end confdefs.h. */ 13015 13016 /* Override any GCC internal prototype to avoid an error. 13017 Use char because int might match the return type of a GCC 13018 builtin and then its argument prototype would still apply. 13019 The 'extern "C"' is for builds by C++ compilers; 13020 although this is not generally supported in C code supporting it here 13021 has little cost and some practical benefit (sr 110532). */ 13022 #ifdef __cplusplus 13023 extern "C" 13024 #endif 13025 char shl_load (void); 13026 int 13027 main (void) 13028 { 13029 return shl_load (); 13030 ; 13031 return 0; 13032 } 13033 _ACEOF 13034 if ac_fn_c_try_link "$LINENO" 13035 then : 13036 ac_cv_lib_dld_shl_load=yes 13037 else case e in #( 13038 e) ac_cv_lib_dld_shl_load=no ;; 13039 esac 13040 fi 13041 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13042 conftest$ac_exeext conftest.$ac_ext 13043 LIBS=$ac_check_lib_save_LIBS ;; 13044 esac 13045 fi 13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13047 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13048 if test "x$ac_cv_lib_dld_shl_load" = xyes 13049 then : 13050 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13051 else case e in #( 13052 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13053 if test "x$ac_cv_func_dlopen" = xyes 13054 then : 13055 lt_cv_dlopen=dlopen 13056 else case e in #( 13057 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13058 printf %s "checking for dlopen in -ldl... " >&6; } 13059 if test ${ac_cv_lib_dl_dlopen+y} 13060 then : 13061 printf %s "(cached) " >&6 13062 else case e in #( 13063 e) ac_check_lib_save_LIBS=$LIBS 13064 LIBS="-ldl $LIBS" 13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13066 /* end confdefs.h. */ 13067 13068 /* Override any GCC internal prototype to avoid an error. 13069 Use char because int might match the return type of a GCC 13070 builtin and then its argument prototype would still apply. 13071 The 'extern "C"' is for builds by C++ compilers; 13072 although this is not generally supported in C code supporting it here 13073 has little cost and some practical benefit (sr 110532). */ 13074 #ifdef __cplusplus 13075 extern "C" 13076 #endif 13077 char dlopen (void); 13078 int 13079 main (void) 13080 { 13081 return dlopen (); 13082 ; 13083 return 0; 13084 } 13085 _ACEOF 13086 if ac_fn_c_try_link "$LINENO" 13087 then : 13088 ac_cv_lib_dl_dlopen=yes 13089 else case e in #( 13090 e) ac_cv_lib_dl_dlopen=no ;; 13091 esac 13092 fi 13093 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13094 conftest$ac_exeext conftest.$ac_ext 13095 LIBS=$ac_check_lib_save_LIBS ;; 13096 esac 13097 fi 13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13099 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13100 if test "x$ac_cv_lib_dl_dlopen" = xyes 13101 then : 13102 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13103 else case e in #( 13104 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13105 printf %s "checking for dlopen in -lsvld... " >&6; } 13106 if test ${ac_cv_lib_svld_dlopen+y} 13107 then : 13108 printf %s "(cached) " >&6 13109 else case e in #( 13110 e) ac_check_lib_save_LIBS=$LIBS 13111 LIBS="-lsvld $LIBS" 13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13113 /* end confdefs.h. */ 13114 13115 /* Override any GCC internal prototype to avoid an error. 13116 Use char because int might match the return type of a GCC 13117 builtin and then its argument prototype would still apply. 13118 The 'extern "C"' is for builds by C++ compilers; 13119 although this is not generally supported in C code supporting it here 13120 has little cost and some practical benefit (sr 110532). */ 13121 #ifdef __cplusplus 13122 extern "C" 13123 #endif 13124 char dlopen (void); 13125 int 13126 main (void) 13127 { 13128 return dlopen (); 13129 ; 13130 return 0; 13131 } 13132 _ACEOF 13133 if ac_fn_c_try_link "$LINENO" 13134 then : 13135 ac_cv_lib_svld_dlopen=yes 13136 else case e in #( 13137 e) ac_cv_lib_svld_dlopen=no ;; 13138 esac 13139 fi 13140 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13141 conftest$ac_exeext conftest.$ac_ext 13142 LIBS=$ac_check_lib_save_LIBS ;; 13143 esac 13144 fi 13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13146 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13147 if test "x$ac_cv_lib_svld_dlopen" = xyes 13148 then : 13149 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13150 else case e in #( 13151 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13152 printf %s "checking for dld_link in -ldld... " >&6; } 13153 if test ${ac_cv_lib_dld_dld_link+y} 13154 then : 13155 printf %s "(cached) " >&6 13156 else case e in #( 13157 e) ac_check_lib_save_LIBS=$LIBS 13158 LIBS="-ldld $LIBS" 13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13160 /* end confdefs.h. */ 13161 13162 /* Override any GCC internal prototype to avoid an error. 13163 Use char because int might match the return type of a GCC 13164 builtin and then its argument prototype would still apply. 13165 The 'extern "C"' is for builds by C++ compilers; 13166 although this is not generally supported in C code supporting it here 13167 has little cost and some practical benefit (sr 110532). */ 13168 #ifdef __cplusplus 13169 extern "C" 13170 #endif 13171 char dld_link (void); 13172 int 13173 main (void) 13174 { 13175 return dld_link (); 13176 ; 13177 return 0; 13178 } 13179 _ACEOF 13180 if ac_fn_c_try_link "$LINENO" 13181 then : 13182 ac_cv_lib_dld_dld_link=yes 13183 else case e in #( 13184 e) ac_cv_lib_dld_dld_link=no ;; 13185 esac 13186 fi 13187 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13188 conftest$ac_exeext conftest.$ac_ext 13189 LIBS=$ac_check_lib_save_LIBS ;; 13190 esac 13191 fi 13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13193 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13194 if test "x$ac_cv_lib_dld_dld_link" = xyes 13195 then : 13196 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13197 fi 13198 13199 ;; 13200 esac 13201 fi 13202 13203 ;; 13204 esac 13205 fi 13206 13207 ;; 13208 esac 13209 fi 13210 13211 ;; 13212 esac 13213 fi 13214 13215 ;; 13216 esac 13217 fi 13218 13219 ;; 13220 esac 13221 13222 if test no = "$lt_cv_dlopen"; then 13223 enable_dlopen=no 13224 else 13225 enable_dlopen=yes 13226 fi 13227 13228 case $lt_cv_dlopen in 13229 dlopen) 13230 save_CPPFLAGS=$CPPFLAGS 13231 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13232 13233 save_LDFLAGS=$LDFLAGS 13234 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13235 13236 save_LIBS=$LIBS 13237 LIBS="$lt_cv_dlopen_libs $LIBS" 13238 13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13240 printf %s "checking whether a program can dlopen itself... " >&6; } 13241 if test ${lt_cv_dlopen_self+y} 13242 then : 13243 printf %s "(cached) " >&6 13244 else case e in #( 13245 e) if test yes = "$cross_compiling"; then : 13246 lt_cv_dlopen_self=cross 13247 else 13248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13249 lt_status=$lt_dlunknown 13250 cat > conftest.$ac_ext <<_LT_EOF 13251 #line $LINENO "configure" 13252 #include "confdefs.h" 13253 13254 #if HAVE_DLFCN_H 13255 #include <dlfcn.h> 13256 #endif 13257 13258 #include <stdio.h> 13259 13260 #ifdef RTLD_GLOBAL 13261 # define LT_DLGLOBAL RTLD_GLOBAL 13262 #else 13263 # ifdef DL_GLOBAL 13264 # define LT_DLGLOBAL DL_GLOBAL 13265 # else 13266 # define LT_DLGLOBAL 0 13267 # endif 13268 #endif 13269 13270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13271 find out it does not work in some platform. */ 13272 #ifndef LT_DLLAZY_OR_NOW 13273 # ifdef RTLD_LAZY 13274 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13275 # else 13276 # ifdef DL_LAZY 13277 # define LT_DLLAZY_OR_NOW DL_LAZY 13278 # else 13279 # ifdef RTLD_NOW 13280 # define LT_DLLAZY_OR_NOW RTLD_NOW 13281 # else 13282 # ifdef DL_NOW 13283 # define LT_DLLAZY_OR_NOW DL_NOW 13284 # else 13285 # define LT_DLLAZY_OR_NOW 0 13286 # endif 13287 # endif 13288 # endif 13289 # endif 13290 #endif 13291 13292 /* When -fvisibility=hidden is used, assume the code has been annotated 13293 correspondingly for the symbols needed. */ 13294 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13295 int fnord (void) __attribute__((visibility("default"))); 13296 #endif 13297 13298 int fnord (void) { return 42; } 13299 int main (void) 13300 { 13301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13302 int status = $lt_dlunknown; 13303 13304 if (self) 13305 { 13306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13307 else 13308 { 13309 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13310 else puts (dlerror ()); 13311 } 13312 /* dlclose (self); */ 13313 } 13314 else 13315 puts (dlerror ()); 13316 13317 return status; 13318 } 13319 _LT_EOF 13320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13321 (eval $ac_link) 2>&5 13322 ac_status=$? 13323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13324 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13325 (./conftest; exit; ) >&5 2>/dev/null 13326 lt_status=$? 13327 case x$lt_status in 13328 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13329 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13330 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13331 esac 13332 else : 13333 # compilation failed 13334 lt_cv_dlopen_self=no 13335 fi 13336 fi 13337 rm -fr conftest* 13338 13339 ;; 13340 esac 13341 fi 13342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13343 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13344 13345 if test yes = "$lt_cv_dlopen_self"; then 13346 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13348 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13349 if test ${lt_cv_dlopen_self_static+y} 13350 then : 13351 printf %s "(cached) " >&6 13352 else case e in #( 13353 e) if test yes = "$cross_compiling"; then : 13354 lt_cv_dlopen_self_static=cross 13355 else 13356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13357 lt_status=$lt_dlunknown 13358 cat > conftest.$ac_ext <<_LT_EOF 13359 #line $LINENO "configure" 13360 #include "confdefs.h" 13361 13362 #if HAVE_DLFCN_H 13363 #include <dlfcn.h> 13364 #endif 13365 13366 #include <stdio.h> 13367 13368 #ifdef RTLD_GLOBAL 13369 # define LT_DLGLOBAL RTLD_GLOBAL 13370 #else 13371 # ifdef DL_GLOBAL 13372 # define LT_DLGLOBAL DL_GLOBAL 13373 # else 13374 # define LT_DLGLOBAL 0 13375 # endif 13376 #endif 13377 13378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13379 find out it does not work in some platform. */ 13380 #ifndef LT_DLLAZY_OR_NOW 13381 # ifdef RTLD_LAZY 13382 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13383 # else 13384 # ifdef DL_LAZY 13385 # define LT_DLLAZY_OR_NOW DL_LAZY 13386 # else 13387 # ifdef RTLD_NOW 13388 # define LT_DLLAZY_OR_NOW RTLD_NOW 13389 # else 13390 # ifdef DL_NOW 13391 # define LT_DLLAZY_OR_NOW DL_NOW 13392 # else 13393 # define LT_DLLAZY_OR_NOW 0 13394 # endif 13395 # endif 13396 # endif 13397 # endif 13398 #endif 13399 13400 /* When -fvisibility=hidden is used, assume the code has been annotated 13401 correspondingly for the symbols needed. */ 13402 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13403 int fnord (void) __attribute__((visibility("default"))); 13404 #endif 13405 13406 int fnord (void) { return 42; } 13407 int main (void) 13408 { 13409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13410 int status = $lt_dlunknown; 13411 13412 if (self) 13413 { 13414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13415 else 13416 { 13417 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13418 else puts (dlerror ()); 13419 } 13420 /* dlclose (self); */ 13421 } 13422 else 13423 puts (dlerror ()); 13424 13425 return status; 13426 } 13427 _LT_EOF 13428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13429 (eval $ac_link) 2>&5 13430 ac_status=$? 13431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13432 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13433 (./conftest; exit; ) >&5 2>/dev/null 13434 lt_status=$? 13435 case x$lt_status in 13436 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13437 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13438 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13439 esac 13440 else : 13441 # compilation failed 13442 lt_cv_dlopen_self_static=no 13443 fi 13444 fi 13445 rm -fr conftest* 13446 13447 ;; 13448 esac 13449 fi 13450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13451 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13452 fi 13453 13454 CPPFLAGS=$save_CPPFLAGS 13455 LDFLAGS=$save_LDFLAGS 13456 LIBS=$save_LIBS 13457 ;; 13458 esac 13459 13460 case $lt_cv_dlopen_self in 13461 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13462 *) enable_dlopen_self=unknown ;; 13463 esac 13464 13465 case $lt_cv_dlopen_self_static in 13466 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13467 *) enable_dlopen_self_static=unknown ;; 13468 esac 13469 fi 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 striplib= 13488 old_striplib= 13489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13490 printf %s "checking whether stripping libraries is possible... " >&6; } 13491 if test -z "$STRIP"; then 13492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13493 printf "%s\n" "no" >&6; } 13494 else 13495 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13496 old_striplib="$STRIP --strip-debug" 13497 striplib="$STRIP --strip-unneeded" 13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13499 printf "%s\n" "yes" >&6; } 13500 else 13501 case $host_os in 13502 darwin*) 13503 # FIXME - insert some real tests, host_os isn't really good enough 13504 striplib="$STRIP -x" 13505 old_striplib="$STRIP -S" 13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13507 printf "%s\n" "yes" >&6; } 13508 ;; 13509 freebsd*) 13510 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13511 old_striplib="$STRIP --strip-debug" 13512 striplib="$STRIP --strip-unneeded" 13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13514 printf "%s\n" "yes" >&6; } 13515 else 13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13517 printf "%s\n" "no" >&6; } 13518 fi 13519 ;; 13520 *) 13521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13522 printf "%s\n" "no" >&6; } 13523 ;; 13524 esac 13525 fi 13526 fi 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 # Report what library types will actually be built 13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13541 printf %s "checking if libtool supports shared libraries... " >&6; } 13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13543 printf "%s\n" "$can_build_shared" >&6; } 13544 13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13546 printf %s "checking whether to build shared libraries... " >&6; } 13547 test no = "$can_build_shared" && enable_shared=no 13548 13549 # On AIX, shared libraries and static libraries use the same namespace, and 13550 # are all built from PIC. 13551 case $host_os in 13552 aix3*) 13553 test yes = "$enable_shared" && enable_static=no 13554 if test -n "$RANLIB"; then 13555 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13556 postinstall_cmds='$RANLIB $lib' 13557 fi 13558 ;; 13559 13560 aix[4-9]*) 13561 if test ia64 != "$host_cpu"; then 13562 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13563 yes,aix,yes) ;; # shared object as lib.so file only 13564 yes,svr4,*) ;; # shared object as lib.so archive member only 13565 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13566 esac 13567 fi 13568 ;; 13569 esac 13570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13571 printf "%s\n" "$enable_shared" >&6; } 13572 13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13574 printf %s "checking whether to build static libraries... " >&6; } 13575 # Make sure either enable_shared or enable_static is yes. 13576 test yes = "$enable_shared" || enable_static=yes 13577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13578 printf "%s\n" "$enable_static" >&6; } 13579 13580 13581 13582 13583 fi 13584 ac_ext=c 13585 ac_cpp='$CPP $CPPFLAGS' 13586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13588 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13589 13590 CC=$lt_save_CC 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 ac_config_commands="$ac_config_commands libtool" 13607 13608 13609 13610 13611 # Only expand once: 13612 13613 13614 13615 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13628 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13629 if test ${ac_cv_c_undeclared_builtin_options+y} 13630 then : 13631 printf %s "(cached) " >&6 13632 else case e in #( 13633 e) ac_save_CFLAGS=$CFLAGS 13634 ac_cv_c_undeclared_builtin_options='cannot detect' 13635 for ac_arg in '' -fno-builtin; do 13636 CFLAGS="$ac_save_CFLAGS $ac_arg" 13637 # This test program should *not* compile successfully. 13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13639 /* end confdefs.h. */ 13640 13641 int 13642 main (void) 13643 { 13644 (void) strchr; 13645 ; 13646 return 0; 13647 } 13648 _ACEOF 13649 if ac_fn_c_try_compile "$LINENO" 13650 then : 13651 13652 else case e in #( 13653 e) # This test program should compile successfully. 13654 # No library function is consistently available on 13655 # freestanding implementations, so test against a dummy 13656 # declaration. Include always-available headers on the 13657 # off chance that they somehow elicit warnings. 13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13659 /* end confdefs.h. */ 13660 #include <float.h> 13661 #include <limits.h> 13662 #include <stdarg.h> 13663 #include <stddef.h> 13664 extern void ac_decl (int, char *); 13665 13666 int 13667 main (void) 13668 { 13669 (void) ac_decl (0, (char *) 0); 13670 (void) ac_decl; 13671 13672 ; 13673 return 0; 13674 } 13675 _ACEOF 13676 if ac_fn_c_try_compile "$LINENO" 13677 then : 13678 if test x"$ac_arg" = x 13679 then : 13680 ac_cv_c_undeclared_builtin_options='none needed' 13681 else case e in #( 13682 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13683 esac 13684 fi 13685 break 13686 fi 13687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13688 esac 13689 fi 13690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13691 done 13692 CFLAGS=$ac_save_CFLAGS 13693 ;; 13694 esac 13695 fi 13696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13697 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13698 case $ac_cv_c_undeclared_builtin_options in #( 13699 'cannot detect') : 13700 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13701 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13702 as_fn_error $? "cannot make $CC report undeclared builtins 13703 See 'config.log' for more details" "$LINENO" 5; } ;; #( 13704 'none needed') : 13705 ac_c_undeclared_builtin_options='' ;; #( 13706 *) : 13707 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13708 esac 13709 13710 13711 13712 13713 13714 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13715 if test "x$ac_cv_have_decl___clang__" = xyes 13716 then : 13717 CLANGCC="yes" 13718 else case e in #( 13719 e) CLANGCC="no" ;; 13720 esac 13721 fi 13722 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13723 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13724 then : 13725 INTELCC="yes" 13726 else case e in #( 13727 e) INTELCC="no" ;; 13728 esac 13729 fi 13730 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13731 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13732 then : 13733 SUNCC="yes" 13734 else case e in #( 13735 e) SUNCC="no" ;; 13736 esac 13737 fi 13738 13739 13740 13741 13742 13743 13744 13745 13746 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13747 if test -n "$ac_tool_prefix"; then 13748 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13749 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13751 printf %s "checking for $ac_word... " >&6; } 13752 if test ${ac_cv_path_PKG_CONFIG+y} 13753 then : 13754 printf %s "(cached) " >&6 13755 else case e in #( 13756 e) case $PKG_CONFIG in 13757 [\\/]* | ?:[\\/]*) 13758 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13759 ;; 13760 *) 13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13762 for as_dir in $PATH 13763 do 13764 IFS=$as_save_IFS 13765 case $as_dir in #((( 13766 '') as_dir=./ ;; 13767 */) ;; 13768 *) as_dir=$as_dir/ ;; 13769 esac 13770 for ac_exec_ext in '' $ac_executable_extensions; do 13771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13772 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13774 break 2 13775 fi 13776 done 13777 done 13778 IFS=$as_save_IFS 13779 13780 ;; 13781 esac ;; 13782 esac 13783 fi 13784 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13785 if test -n "$PKG_CONFIG"; then 13786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13787 printf "%s\n" "$PKG_CONFIG" >&6; } 13788 else 13789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13790 printf "%s\n" "no" >&6; } 13791 fi 13792 13793 13794 fi 13795 if test -z "$ac_cv_path_PKG_CONFIG"; then 13796 ac_pt_PKG_CONFIG=$PKG_CONFIG 13797 # Extract the first word of "pkg-config", so it can be a program name with args. 13798 set dummy pkg-config; ac_word=$2 13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13800 printf %s "checking for $ac_word... " >&6; } 13801 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13802 then : 13803 printf %s "(cached) " >&6 13804 else case e in #( 13805 e) case $ac_pt_PKG_CONFIG in 13806 [\\/]* | ?:[\\/]*) 13807 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13808 ;; 13809 *) 13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13811 for as_dir in $PATH 13812 do 13813 IFS=$as_save_IFS 13814 case $as_dir in #((( 13815 '') as_dir=./ ;; 13816 */) ;; 13817 *) as_dir=$as_dir/ ;; 13818 esac 13819 for ac_exec_ext in '' $ac_executable_extensions; do 13820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13821 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13823 break 2 13824 fi 13825 done 13826 done 13827 IFS=$as_save_IFS 13828 13829 ;; 13830 esac ;; 13831 esac 13832 fi 13833 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13834 if test -n "$ac_pt_PKG_CONFIG"; then 13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13836 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13837 else 13838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13839 printf "%s\n" "no" >&6; } 13840 fi 13841 13842 if test "x$ac_pt_PKG_CONFIG" = x; then 13843 PKG_CONFIG="" 13844 else 13845 case $cross_compiling:$ac_tool_warned in 13846 yes:) 13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13849 ac_tool_warned=yes ;; 13850 esac 13851 PKG_CONFIG=$ac_pt_PKG_CONFIG 13852 fi 13853 else 13854 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13855 fi 13856 13857 fi 13858 if test -n "$PKG_CONFIG"; then 13859 _pkg_min_version=0.9.0 13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13861 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13862 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13864 printf "%s\n" "yes" >&6; } 13865 else 13866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13867 printf "%s\n" "no" >&6; } 13868 PKG_CONFIG="" 13869 fi 13870 fi 13871 13872 13873 13874 13875 13876 # Check whether --enable-selective-werror was given. 13877 if test ${enable_selective_werror+y} 13878 then : 13879 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13880 else case e in #( 13881 e) SELECTIVE_WERROR=yes ;; 13882 esac 13883 fi 13884 13885 13886 13887 13888 13889 # -v is too short to test reliably with XORG_TESTSET_CFLAG 13890 if test "x$SUNCC" = "xyes"; then 13891 BASE_CFLAGS="-v" 13892 else 13893 BASE_CFLAGS="" 13894 fi 13895 13896 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 xorg_testset_save_CFLAGS="$CFLAGS" 13911 13912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13915 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13916 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13917 then : 13918 printf %s "(cached) " >&6 13919 else case e in #( 13920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13921 /* end confdefs.h. */ 13922 int i; 13923 _ACEOF 13924 if ac_fn_c_try_compile "$LINENO" 13925 then : 13926 xorg_cv_cc_flag_unknown_warning_option=yes 13927 else case e in #( 13928 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13929 esac 13930 fi 13931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13932 esac 13933 fi 13934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13935 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13937 CFLAGS="$xorg_testset_save_CFLAGS" 13938 fi 13939 13940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13943 fi 13944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13946 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13947 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13948 then : 13949 printf %s "(cached) " >&6 13950 else case e in #( 13951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13952 /* end confdefs.h. */ 13953 int i; 13954 _ACEOF 13955 if ac_fn_c_try_compile "$LINENO" 13956 then : 13957 xorg_cv_cc_flag_unused_command_line_argument=yes 13958 else case e in #( 13959 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13960 esac 13961 fi 13962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13963 esac 13964 fi 13965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13966 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13968 CFLAGS="$xorg_testset_save_CFLAGS" 13969 fi 13970 13971 found="no" 13972 13973 if test $found = "no" ; then 13974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13976 fi 13977 13978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13980 fi 13981 13982 CFLAGS="$CFLAGS -Wall" 13983 13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13985 printf %s "checking if $CC supports -Wall... " >&6; } 13986 cacheid=xorg_cv_cc_flag__Wall 13987 if eval test \${$cacheid+y} 13988 then : 13989 printf %s "(cached) " >&6 13990 else case e in #( 13991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13992 /* end confdefs.h. */ 13993 int i; 13994 int 13995 main (void) 13996 { 13997 13998 ; 13999 return 0; 14000 } 14001 _ACEOF 14002 if ac_fn_c_try_link "$LINENO" 14003 then : 14004 eval $cacheid=yes 14005 else case e in #( 14006 e) eval $cacheid=no ;; 14007 esac 14008 fi 14009 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14010 conftest$ac_exeext conftest.$ac_ext ;; 14011 esac 14012 fi 14013 14014 14015 CFLAGS="$xorg_testset_save_CFLAGS" 14016 14017 eval supported=\$$cacheid 14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14019 printf "%s\n" "$supported" >&6; } 14020 if test "$supported" = "yes" ; then 14021 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14022 found="yes" 14023 fi 14024 fi 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 xorg_testset_save_CFLAGS="$CFLAGS" 14041 14042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14045 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14046 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14047 then : 14048 printf %s "(cached) " >&6 14049 else case e in #( 14050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14051 /* end confdefs.h. */ 14052 int i; 14053 _ACEOF 14054 if ac_fn_c_try_compile "$LINENO" 14055 then : 14056 xorg_cv_cc_flag_unknown_warning_option=yes 14057 else case e in #( 14058 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14059 esac 14060 fi 14061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14062 esac 14063 fi 14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14065 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14067 CFLAGS="$xorg_testset_save_CFLAGS" 14068 fi 14069 14070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14073 fi 14074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14076 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14077 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14078 then : 14079 printf %s "(cached) " >&6 14080 else case e in #( 14081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14082 /* end confdefs.h. */ 14083 int i; 14084 _ACEOF 14085 if ac_fn_c_try_compile "$LINENO" 14086 then : 14087 xorg_cv_cc_flag_unused_command_line_argument=yes 14088 else case e in #( 14089 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14090 esac 14091 fi 14092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14093 esac 14094 fi 14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14096 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14098 CFLAGS="$xorg_testset_save_CFLAGS" 14099 fi 14100 14101 found="no" 14102 14103 if test $found = "no" ; then 14104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14106 fi 14107 14108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14110 fi 14111 14112 CFLAGS="$CFLAGS -Wpointer-arith" 14113 14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14115 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14116 cacheid=xorg_cv_cc_flag__Wpointer_arith 14117 if eval test \${$cacheid+y} 14118 then : 14119 printf %s "(cached) " >&6 14120 else case e in #( 14121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14122 /* end confdefs.h. */ 14123 int i; 14124 int 14125 main (void) 14126 { 14127 14128 ; 14129 return 0; 14130 } 14131 _ACEOF 14132 if ac_fn_c_try_link "$LINENO" 14133 then : 14134 eval $cacheid=yes 14135 else case e in #( 14136 e) eval $cacheid=no ;; 14137 esac 14138 fi 14139 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14140 conftest$ac_exeext conftest.$ac_ext ;; 14141 esac 14142 fi 14143 14144 14145 CFLAGS="$xorg_testset_save_CFLAGS" 14146 14147 eval supported=\$$cacheid 14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14149 printf "%s\n" "$supported" >&6; } 14150 if test "$supported" = "yes" ; then 14151 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14152 found="yes" 14153 fi 14154 fi 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 xorg_testset_save_CFLAGS="$CFLAGS" 14171 14172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14176 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14177 then : 14178 printf %s "(cached) " >&6 14179 else case e in #( 14180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14181 /* end confdefs.h. */ 14182 int i; 14183 _ACEOF 14184 if ac_fn_c_try_compile "$LINENO" 14185 then : 14186 xorg_cv_cc_flag_unknown_warning_option=yes 14187 else case e in #( 14188 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14189 esac 14190 fi 14191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14192 esac 14193 fi 14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14195 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14197 CFLAGS="$xorg_testset_save_CFLAGS" 14198 fi 14199 14200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14203 fi 14204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14206 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14207 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14208 then : 14209 printf %s "(cached) " >&6 14210 else case e in #( 14211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14212 /* end confdefs.h. */ 14213 int i; 14214 _ACEOF 14215 if ac_fn_c_try_compile "$LINENO" 14216 then : 14217 xorg_cv_cc_flag_unused_command_line_argument=yes 14218 else case e in #( 14219 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14220 esac 14221 fi 14222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14223 esac 14224 fi 14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14226 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14228 CFLAGS="$xorg_testset_save_CFLAGS" 14229 fi 14230 14231 found="no" 14232 14233 if test $found = "no" ; then 14234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14236 fi 14237 14238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14240 fi 14241 14242 CFLAGS="$CFLAGS -Wmissing-declarations" 14243 14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14245 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14246 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14247 if eval test \${$cacheid+y} 14248 then : 14249 printf %s "(cached) " >&6 14250 else case e in #( 14251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14252 /* end confdefs.h. */ 14253 int i; 14254 int 14255 main (void) 14256 { 14257 14258 ; 14259 return 0; 14260 } 14261 _ACEOF 14262 if ac_fn_c_try_link "$LINENO" 14263 then : 14264 eval $cacheid=yes 14265 else case e in #( 14266 e) eval $cacheid=no ;; 14267 esac 14268 fi 14269 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14270 conftest$ac_exeext conftest.$ac_ext ;; 14271 esac 14272 fi 14273 14274 14275 CFLAGS="$xorg_testset_save_CFLAGS" 14276 14277 eval supported=\$$cacheid 14278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14279 printf "%s\n" "$supported" >&6; } 14280 if test "$supported" = "yes" ; then 14281 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14282 found="yes" 14283 fi 14284 fi 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 xorg_testset_save_CFLAGS="$CFLAGS" 14301 14302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14305 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14306 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14307 then : 14308 printf %s "(cached) " >&6 14309 else case e in #( 14310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14311 /* end confdefs.h. */ 14312 int i; 14313 _ACEOF 14314 if ac_fn_c_try_compile "$LINENO" 14315 then : 14316 xorg_cv_cc_flag_unknown_warning_option=yes 14317 else case e in #( 14318 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14319 esac 14320 fi 14321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14322 esac 14323 fi 14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14325 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14327 CFLAGS="$xorg_testset_save_CFLAGS" 14328 fi 14329 14330 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14333 fi 14334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14336 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14337 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14338 then : 14339 printf %s "(cached) " >&6 14340 else case e in #( 14341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14342 /* end confdefs.h. */ 14343 int i; 14344 _ACEOF 14345 if ac_fn_c_try_compile "$LINENO" 14346 then : 14347 xorg_cv_cc_flag_unused_command_line_argument=yes 14348 else case e in #( 14349 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14350 esac 14351 fi 14352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14353 esac 14354 fi 14355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14356 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14358 CFLAGS="$xorg_testset_save_CFLAGS" 14359 fi 14360 14361 found="no" 14362 14363 if test $found = "no" ; then 14364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14366 fi 14367 14368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14370 fi 14371 14372 CFLAGS="$CFLAGS -Wformat=2" 14373 14374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14375 printf %s "checking if $CC supports -Wformat=2... " >&6; } 14376 cacheid=xorg_cv_cc_flag__Wformat_2 14377 if eval test \${$cacheid+y} 14378 then : 14379 printf %s "(cached) " >&6 14380 else case e in #( 14381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14382 /* end confdefs.h. */ 14383 int i; 14384 int 14385 main (void) 14386 { 14387 14388 ; 14389 return 0; 14390 } 14391 _ACEOF 14392 if ac_fn_c_try_link "$LINENO" 14393 then : 14394 eval $cacheid=yes 14395 else case e in #( 14396 e) eval $cacheid=no ;; 14397 esac 14398 fi 14399 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14400 conftest$ac_exeext conftest.$ac_ext ;; 14401 esac 14402 fi 14403 14404 14405 CFLAGS="$xorg_testset_save_CFLAGS" 14406 14407 eval supported=\$$cacheid 14408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14409 printf "%s\n" "$supported" >&6; } 14410 if test "$supported" = "yes" ; then 14411 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14412 found="yes" 14413 fi 14414 fi 14415 14416 if test $found = "no" ; then 14417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14419 fi 14420 14421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14423 fi 14424 14425 CFLAGS="$CFLAGS -Wformat" 14426 14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14428 printf %s "checking if $CC supports -Wformat... " >&6; } 14429 cacheid=xorg_cv_cc_flag__Wformat 14430 if eval test \${$cacheid+y} 14431 then : 14432 printf %s "(cached) " >&6 14433 else case e in #( 14434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14435 /* end confdefs.h. */ 14436 int i; 14437 int 14438 main (void) 14439 { 14440 14441 ; 14442 return 0; 14443 } 14444 _ACEOF 14445 if ac_fn_c_try_link "$LINENO" 14446 then : 14447 eval $cacheid=yes 14448 else case e in #( 14449 e) eval $cacheid=no ;; 14450 esac 14451 fi 14452 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14453 conftest$ac_exeext conftest.$ac_ext ;; 14454 esac 14455 fi 14456 14457 14458 CFLAGS="$xorg_testset_save_CFLAGS" 14459 14460 eval supported=\$$cacheid 14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14462 printf "%s\n" "$supported" >&6; } 14463 if test "$supported" = "yes" ; then 14464 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14465 found="yes" 14466 fi 14467 fi 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 xorg_testset_save_CFLAGS="$CFLAGS" 14486 14487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14490 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14491 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14492 then : 14493 printf %s "(cached) " >&6 14494 else case e in #( 14495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14496 /* end confdefs.h. */ 14497 int i; 14498 _ACEOF 14499 if ac_fn_c_try_compile "$LINENO" 14500 then : 14501 xorg_cv_cc_flag_unknown_warning_option=yes 14502 else case e in #( 14503 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14504 esac 14505 fi 14506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14507 esac 14508 fi 14509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14510 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14512 CFLAGS="$xorg_testset_save_CFLAGS" 14513 fi 14514 14515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14518 fi 14519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14521 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14522 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14523 then : 14524 printf %s "(cached) " >&6 14525 else case e in #( 14526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527 /* end confdefs.h. */ 14528 int i; 14529 _ACEOF 14530 if ac_fn_c_try_compile "$LINENO" 14531 then : 14532 xorg_cv_cc_flag_unused_command_line_argument=yes 14533 else case e in #( 14534 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14535 esac 14536 fi 14537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14538 esac 14539 fi 14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14541 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14543 CFLAGS="$xorg_testset_save_CFLAGS" 14544 fi 14545 14546 found="no" 14547 14548 if test $found = "no" ; then 14549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14551 fi 14552 14553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14555 fi 14556 14557 CFLAGS="$CFLAGS -Wstrict-prototypes" 14558 14559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14560 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14561 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14562 if eval test \${$cacheid+y} 14563 then : 14564 printf %s "(cached) " >&6 14565 else case e in #( 14566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14567 /* end confdefs.h. */ 14568 int i; 14569 int 14570 main (void) 14571 { 14572 14573 ; 14574 return 0; 14575 } 14576 _ACEOF 14577 if ac_fn_c_try_link "$LINENO" 14578 then : 14579 eval $cacheid=yes 14580 else case e in #( 14581 e) eval $cacheid=no ;; 14582 esac 14583 fi 14584 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14585 conftest$ac_exeext conftest.$ac_ext ;; 14586 esac 14587 fi 14588 14589 14590 CFLAGS="$xorg_testset_save_CFLAGS" 14591 14592 eval supported=\$$cacheid 14593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14594 printf "%s\n" "$supported" >&6; } 14595 if test "$supported" = "yes" ; then 14596 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14597 found="yes" 14598 fi 14599 fi 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 xorg_testset_save_CFLAGS="$CFLAGS" 14616 14617 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14620 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14621 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14622 then : 14623 printf %s "(cached) " >&6 14624 else case e in #( 14625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14626 /* end confdefs.h. */ 14627 int i; 14628 _ACEOF 14629 if ac_fn_c_try_compile "$LINENO" 14630 then : 14631 xorg_cv_cc_flag_unknown_warning_option=yes 14632 else case e in #( 14633 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14634 esac 14635 fi 14636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14637 esac 14638 fi 14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14640 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14642 CFLAGS="$xorg_testset_save_CFLAGS" 14643 fi 14644 14645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14648 fi 14649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14651 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14652 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14653 then : 14654 printf %s "(cached) " >&6 14655 else case e in #( 14656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14657 /* end confdefs.h. */ 14658 int i; 14659 _ACEOF 14660 if ac_fn_c_try_compile "$LINENO" 14661 then : 14662 xorg_cv_cc_flag_unused_command_line_argument=yes 14663 else case e in #( 14664 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14665 esac 14666 fi 14667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14668 esac 14669 fi 14670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14671 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14673 CFLAGS="$xorg_testset_save_CFLAGS" 14674 fi 14675 14676 found="no" 14677 14678 if test $found = "no" ; then 14679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14681 fi 14682 14683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14685 fi 14686 14687 CFLAGS="$CFLAGS -Wmissing-prototypes" 14688 14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14690 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14691 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14692 if eval test \${$cacheid+y} 14693 then : 14694 printf %s "(cached) " >&6 14695 else case e in #( 14696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14697 /* end confdefs.h. */ 14698 int i; 14699 int 14700 main (void) 14701 { 14702 14703 ; 14704 return 0; 14705 } 14706 _ACEOF 14707 if ac_fn_c_try_link "$LINENO" 14708 then : 14709 eval $cacheid=yes 14710 else case e in #( 14711 e) eval $cacheid=no ;; 14712 esac 14713 fi 14714 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14715 conftest$ac_exeext conftest.$ac_ext ;; 14716 esac 14717 fi 14718 14719 14720 CFLAGS="$xorg_testset_save_CFLAGS" 14721 14722 eval supported=\$$cacheid 14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14724 printf "%s\n" "$supported" >&6; } 14725 if test "$supported" = "yes" ; then 14726 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14727 found="yes" 14728 fi 14729 fi 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 xorg_testset_save_CFLAGS="$CFLAGS" 14746 14747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14750 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14751 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14752 then : 14753 printf %s "(cached) " >&6 14754 else case e in #( 14755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14756 /* end confdefs.h. */ 14757 int i; 14758 _ACEOF 14759 if ac_fn_c_try_compile "$LINENO" 14760 then : 14761 xorg_cv_cc_flag_unknown_warning_option=yes 14762 else case e in #( 14763 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14764 esac 14765 fi 14766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14767 esac 14768 fi 14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14770 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14772 CFLAGS="$xorg_testset_save_CFLAGS" 14773 fi 14774 14775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14778 fi 14779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14783 then : 14784 printf %s "(cached) " >&6 14785 else case e in #( 14786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14787 /* end confdefs.h. */ 14788 int i; 14789 _ACEOF 14790 if ac_fn_c_try_compile "$LINENO" 14791 then : 14792 xorg_cv_cc_flag_unused_command_line_argument=yes 14793 else case e in #( 14794 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14795 esac 14796 fi 14797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14798 esac 14799 fi 14800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14801 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14803 CFLAGS="$xorg_testset_save_CFLAGS" 14804 fi 14805 14806 found="no" 14807 14808 if test $found = "no" ; then 14809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14811 fi 14812 14813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14815 fi 14816 14817 CFLAGS="$CFLAGS -Wnested-externs" 14818 14819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14820 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14821 cacheid=xorg_cv_cc_flag__Wnested_externs 14822 if eval test \${$cacheid+y} 14823 then : 14824 printf %s "(cached) " >&6 14825 else case e in #( 14826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827 /* end confdefs.h. */ 14828 int i; 14829 int 14830 main (void) 14831 { 14832 14833 ; 14834 return 0; 14835 } 14836 _ACEOF 14837 if ac_fn_c_try_link "$LINENO" 14838 then : 14839 eval $cacheid=yes 14840 else case e in #( 14841 e) eval $cacheid=no ;; 14842 esac 14843 fi 14844 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14845 conftest$ac_exeext conftest.$ac_ext ;; 14846 esac 14847 fi 14848 14849 14850 CFLAGS="$xorg_testset_save_CFLAGS" 14851 14852 eval supported=\$$cacheid 14853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14854 printf "%s\n" "$supported" >&6; } 14855 if test "$supported" = "yes" ; then 14856 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14857 found="yes" 14858 fi 14859 fi 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 xorg_testset_save_CFLAGS="$CFLAGS" 14876 14877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14880 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14881 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14882 then : 14883 printf %s "(cached) " >&6 14884 else case e in #( 14885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14886 /* end confdefs.h. */ 14887 int i; 14888 _ACEOF 14889 if ac_fn_c_try_compile "$LINENO" 14890 then : 14891 xorg_cv_cc_flag_unknown_warning_option=yes 14892 else case e in #( 14893 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14894 esac 14895 fi 14896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14897 esac 14898 fi 14899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14900 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14902 CFLAGS="$xorg_testset_save_CFLAGS" 14903 fi 14904 14905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14908 fi 14909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14911 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14912 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14913 then : 14914 printf %s "(cached) " >&6 14915 else case e in #( 14916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917 /* end confdefs.h. */ 14918 int i; 14919 _ACEOF 14920 if ac_fn_c_try_compile "$LINENO" 14921 then : 14922 xorg_cv_cc_flag_unused_command_line_argument=yes 14923 else case e in #( 14924 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14925 esac 14926 fi 14927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14928 esac 14929 fi 14930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14931 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14933 CFLAGS="$xorg_testset_save_CFLAGS" 14934 fi 14935 14936 found="no" 14937 14938 if test $found = "no" ; then 14939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14941 fi 14942 14943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14945 fi 14946 14947 CFLAGS="$CFLAGS -Wbad-function-cast" 14948 14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14950 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14951 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14952 if eval test \${$cacheid+y} 14953 then : 14954 printf %s "(cached) " >&6 14955 else case e in #( 14956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14957 /* end confdefs.h. */ 14958 int i; 14959 int 14960 main (void) 14961 { 14962 14963 ; 14964 return 0; 14965 } 14966 _ACEOF 14967 if ac_fn_c_try_link "$LINENO" 14968 then : 14969 eval $cacheid=yes 14970 else case e in #( 14971 e) eval $cacheid=no ;; 14972 esac 14973 fi 14974 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14975 conftest$ac_exeext conftest.$ac_ext ;; 14976 esac 14977 fi 14978 14979 14980 CFLAGS="$xorg_testset_save_CFLAGS" 14981 14982 eval supported=\$$cacheid 14983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14984 printf "%s\n" "$supported" >&6; } 14985 if test "$supported" = "yes" ; then 14986 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14987 found="yes" 14988 fi 14989 fi 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 xorg_testset_save_CFLAGS="$CFLAGS" 15006 15007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15011 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15012 then : 15013 printf %s "(cached) " >&6 15014 else case e in #( 15015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15016 /* end confdefs.h. */ 15017 int i; 15018 _ACEOF 15019 if ac_fn_c_try_compile "$LINENO" 15020 then : 15021 xorg_cv_cc_flag_unknown_warning_option=yes 15022 else case e in #( 15023 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15024 esac 15025 fi 15026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15027 esac 15028 fi 15029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15030 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15032 CFLAGS="$xorg_testset_save_CFLAGS" 15033 fi 15034 15035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15038 fi 15039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15041 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15042 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15043 then : 15044 printf %s "(cached) " >&6 15045 else case e in #( 15046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15047 /* end confdefs.h. */ 15048 int i; 15049 _ACEOF 15050 if ac_fn_c_try_compile "$LINENO" 15051 then : 15052 xorg_cv_cc_flag_unused_command_line_argument=yes 15053 else case e in #( 15054 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15055 esac 15056 fi 15057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15058 esac 15059 fi 15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15061 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15063 CFLAGS="$xorg_testset_save_CFLAGS" 15064 fi 15065 15066 found="no" 15067 15068 if test $found = "no" ; then 15069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15071 fi 15072 15073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15075 fi 15076 15077 CFLAGS="$CFLAGS -Wold-style-definition" 15078 15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15080 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15081 cacheid=xorg_cv_cc_flag__Wold_style_definition 15082 if eval test \${$cacheid+y} 15083 then : 15084 printf %s "(cached) " >&6 15085 else case e in #( 15086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15087 /* end confdefs.h. */ 15088 int i; 15089 int 15090 main (void) 15091 { 15092 15093 ; 15094 return 0; 15095 } 15096 _ACEOF 15097 if ac_fn_c_try_link "$LINENO" 15098 then : 15099 eval $cacheid=yes 15100 else case e in #( 15101 e) eval $cacheid=no ;; 15102 esac 15103 fi 15104 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15105 conftest$ac_exeext conftest.$ac_ext ;; 15106 esac 15107 fi 15108 15109 15110 CFLAGS="$xorg_testset_save_CFLAGS" 15111 15112 eval supported=\$$cacheid 15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15114 printf "%s\n" "$supported" >&6; } 15115 if test "$supported" = "yes" ; then 15116 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15117 found="yes" 15118 fi 15119 fi 15120 15121 if test $found = "no" ; then 15122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15124 fi 15125 15126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15128 fi 15129 15130 CFLAGS="$CFLAGS -fd" 15131 15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15133 printf %s "checking if $CC supports -fd... " >&6; } 15134 cacheid=xorg_cv_cc_flag__fd 15135 if eval test \${$cacheid+y} 15136 then : 15137 printf %s "(cached) " >&6 15138 else case e in #( 15139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15140 /* end confdefs.h. */ 15141 int i; 15142 int 15143 main (void) 15144 { 15145 15146 ; 15147 return 0; 15148 } 15149 _ACEOF 15150 if ac_fn_c_try_link "$LINENO" 15151 then : 15152 eval $cacheid=yes 15153 else case e in #( 15154 e) eval $cacheid=no ;; 15155 esac 15156 fi 15157 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15158 conftest$ac_exeext conftest.$ac_ext ;; 15159 esac 15160 fi 15161 15162 15163 CFLAGS="$xorg_testset_save_CFLAGS" 15164 15165 eval supported=\$$cacheid 15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15167 printf "%s\n" "$supported" >&6; } 15168 if test "$supported" = "yes" ; then 15169 BASE_CFLAGS="$BASE_CFLAGS -fd" 15170 found="yes" 15171 fi 15172 fi 15173 15174 15175 15176 15177 15178 # This chunk adds additional warnings that could catch undesired effects. 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 xorg_testset_save_CFLAGS="$CFLAGS" 15193 15194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15197 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15198 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15199 then : 15200 printf %s "(cached) " >&6 15201 else case e in #( 15202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15203 /* end confdefs.h. */ 15204 int i; 15205 _ACEOF 15206 if ac_fn_c_try_compile "$LINENO" 15207 then : 15208 xorg_cv_cc_flag_unknown_warning_option=yes 15209 else case e in #( 15210 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15211 esac 15212 fi 15213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15214 esac 15215 fi 15216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15217 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15219 CFLAGS="$xorg_testset_save_CFLAGS" 15220 fi 15221 15222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15225 fi 15226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15228 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15229 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15230 then : 15231 printf %s "(cached) " >&6 15232 else case e in #( 15233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15234 /* end confdefs.h. */ 15235 int i; 15236 _ACEOF 15237 if ac_fn_c_try_compile "$LINENO" 15238 then : 15239 xorg_cv_cc_flag_unused_command_line_argument=yes 15240 else case e in #( 15241 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15242 esac 15243 fi 15244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15245 esac 15246 fi 15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15248 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15250 CFLAGS="$xorg_testset_save_CFLAGS" 15251 fi 15252 15253 found="no" 15254 15255 if test $found = "no" ; then 15256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15258 fi 15259 15260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15262 fi 15263 15264 CFLAGS="$CFLAGS -Wunused" 15265 15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15267 printf %s "checking if $CC supports -Wunused... " >&6; } 15268 cacheid=xorg_cv_cc_flag__Wunused 15269 if eval test \${$cacheid+y} 15270 then : 15271 printf %s "(cached) " >&6 15272 else case e in #( 15273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15274 /* end confdefs.h. */ 15275 int i; 15276 int 15277 main (void) 15278 { 15279 15280 ; 15281 return 0; 15282 } 15283 _ACEOF 15284 if ac_fn_c_try_link "$LINENO" 15285 then : 15286 eval $cacheid=yes 15287 else case e in #( 15288 e) eval $cacheid=no ;; 15289 esac 15290 fi 15291 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15292 conftest$ac_exeext conftest.$ac_ext ;; 15293 esac 15294 fi 15295 15296 15297 CFLAGS="$xorg_testset_save_CFLAGS" 15298 15299 eval supported=\$$cacheid 15300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15301 printf "%s\n" "$supported" >&6; } 15302 if test "$supported" = "yes" ; then 15303 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15304 found="yes" 15305 fi 15306 fi 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 xorg_testset_save_CFLAGS="$CFLAGS" 15323 15324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15327 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15328 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15329 then : 15330 printf %s "(cached) " >&6 15331 else case e in #( 15332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15333 /* end confdefs.h. */ 15334 int i; 15335 _ACEOF 15336 if ac_fn_c_try_compile "$LINENO" 15337 then : 15338 xorg_cv_cc_flag_unknown_warning_option=yes 15339 else case e in #( 15340 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15341 esac 15342 fi 15343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15344 esac 15345 fi 15346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15347 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15349 CFLAGS="$xorg_testset_save_CFLAGS" 15350 fi 15351 15352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15355 fi 15356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15358 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15359 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15360 then : 15361 printf %s "(cached) " >&6 15362 else case e in #( 15363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15364 /* end confdefs.h. */ 15365 int i; 15366 _ACEOF 15367 if ac_fn_c_try_compile "$LINENO" 15368 then : 15369 xorg_cv_cc_flag_unused_command_line_argument=yes 15370 else case e in #( 15371 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15372 esac 15373 fi 15374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15375 esac 15376 fi 15377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15378 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15380 CFLAGS="$xorg_testset_save_CFLAGS" 15381 fi 15382 15383 found="no" 15384 15385 if test $found = "no" ; then 15386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15388 fi 15389 15390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15392 fi 15393 15394 CFLAGS="$CFLAGS -Wuninitialized" 15395 15396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15397 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15398 cacheid=xorg_cv_cc_flag__Wuninitialized 15399 if eval test \${$cacheid+y} 15400 then : 15401 printf %s "(cached) " >&6 15402 else case e in #( 15403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15404 /* end confdefs.h. */ 15405 int i; 15406 int 15407 main (void) 15408 { 15409 15410 ; 15411 return 0; 15412 } 15413 _ACEOF 15414 if ac_fn_c_try_link "$LINENO" 15415 then : 15416 eval $cacheid=yes 15417 else case e in #( 15418 e) eval $cacheid=no ;; 15419 esac 15420 fi 15421 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15422 conftest$ac_exeext conftest.$ac_ext ;; 15423 esac 15424 fi 15425 15426 15427 CFLAGS="$xorg_testset_save_CFLAGS" 15428 15429 eval supported=\$$cacheid 15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15431 printf "%s\n" "$supported" >&6; } 15432 if test "$supported" = "yes" ; then 15433 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15434 found="yes" 15435 fi 15436 fi 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 xorg_testset_save_CFLAGS="$CFLAGS" 15453 15454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15457 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15458 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15459 then : 15460 printf %s "(cached) " >&6 15461 else case e in #( 15462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15463 /* end confdefs.h. */ 15464 int i; 15465 _ACEOF 15466 if ac_fn_c_try_compile "$LINENO" 15467 then : 15468 xorg_cv_cc_flag_unknown_warning_option=yes 15469 else case e in #( 15470 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15471 esac 15472 fi 15473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15474 esac 15475 fi 15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15477 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15479 CFLAGS="$xorg_testset_save_CFLAGS" 15480 fi 15481 15482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15485 fi 15486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15488 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15489 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15490 then : 15491 printf %s "(cached) " >&6 15492 else case e in #( 15493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15494 /* end confdefs.h. */ 15495 int i; 15496 _ACEOF 15497 if ac_fn_c_try_compile "$LINENO" 15498 then : 15499 xorg_cv_cc_flag_unused_command_line_argument=yes 15500 else case e in #( 15501 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15502 esac 15503 fi 15504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15505 esac 15506 fi 15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15508 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15510 CFLAGS="$xorg_testset_save_CFLAGS" 15511 fi 15512 15513 found="no" 15514 15515 if test $found = "no" ; then 15516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15518 fi 15519 15520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15522 fi 15523 15524 CFLAGS="$CFLAGS -Wshadow" 15525 15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15527 printf %s "checking if $CC supports -Wshadow... " >&6; } 15528 cacheid=xorg_cv_cc_flag__Wshadow 15529 if eval test \${$cacheid+y} 15530 then : 15531 printf %s "(cached) " >&6 15532 else case e in #( 15533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534 /* end confdefs.h. */ 15535 int i; 15536 int 15537 main (void) 15538 { 15539 15540 ; 15541 return 0; 15542 } 15543 _ACEOF 15544 if ac_fn_c_try_link "$LINENO" 15545 then : 15546 eval $cacheid=yes 15547 else case e in #( 15548 e) eval $cacheid=no ;; 15549 esac 15550 fi 15551 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15552 conftest$ac_exeext conftest.$ac_ext ;; 15553 esac 15554 fi 15555 15556 15557 CFLAGS="$xorg_testset_save_CFLAGS" 15558 15559 eval supported=\$$cacheid 15560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15561 printf "%s\n" "$supported" >&6; } 15562 if test "$supported" = "yes" ; then 15563 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15564 found="yes" 15565 fi 15566 fi 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 xorg_testset_save_CFLAGS="$CFLAGS" 15583 15584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15587 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15588 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15589 then : 15590 printf %s "(cached) " >&6 15591 else case e in #( 15592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15593 /* end confdefs.h. */ 15594 int i; 15595 _ACEOF 15596 if ac_fn_c_try_compile "$LINENO" 15597 then : 15598 xorg_cv_cc_flag_unknown_warning_option=yes 15599 else case e in #( 15600 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15601 esac 15602 fi 15603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15604 esac 15605 fi 15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15607 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15609 CFLAGS="$xorg_testset_save_CFLAGS" 15610 fi 15611 15612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15615 fi 15616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15618 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15619 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15620 then : 15621 printf %s "(cached) " >&6 15622 else case e in #( 15623 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15624 /* end confdefs.h. */ 15625 int i; 15626 _ACEOF 15627 if ac_fn_c_try_compile "$LINENO" 15628 then : 15629 xorg_cv_cc_flag_unused_command_line_argument=yes 15630 else case e in #( 15631 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15632 esac 15633 fi 15634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15635 esac 15636 fi 15637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15638 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15640 CFLAGS="$xorg_testset_save_CFLAGS" 15641 fi 15642 15643 found="no" 15644 15645 if test $found = "no" ; then 15646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15648 fi 15649 15650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15652 fi 15653 15654 CFLAGS="$CFLAGS -Wmissing-noreturn" 15655 15656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15657 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15658 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15659 if eval test \${$cacheid+y} 15660 then : 15661 printf %s "(cached) " >&6 15662 else case e in #( 15663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15664 /* end confdefs.h. */ 15665 int i; 15666 int 15667 main (void) 15668 { 15669 15670 ; 15671 return 0; 15672 } 15673 _ACEOF 15674 if ac_fn_c_try_link "$LINENO" 15675 then : 15676 eval $cacheid=yes 15677 else case e in #( 15678 e) eval $cacheid=no ;; 15679 esac 15680 fi 15681 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15682 conftest$ac_exeext conftest.$ac_ext ;; 15683 esac 15684 fi 15685 15686 15687 CFLAGS="$xorg_testset_save_CFLAGS" 15688 15689 eval supported=\$$cacheid 15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15691 printf "%s\n" "$supported" >&6; } 15692 if test "$supported" = "yes" ; then 15693 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15694 found="yes" 15695 fi 15696 fi 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 xorg_testset_save_CFLAGS="$CFLAGS" 15713 15714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15717 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15718 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15719 then : 15720 printf %s "(cached) " >&6 15721 else case e in #( 15722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15723 /* end confdefs.h. */ 15724 int i; 15725 _ACEOF 15726 if ac_fn_c_try_compile "$LINENO" 15727 then : 15728 xorg_cv_cc_flag_unknown_warning_option=yes 15729 else case e in #( 15730 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15731 esac 15732 fi 15733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15734 esac 15735 fi 15736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15737 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15739 CFLAGS="$xorg_testset_save_CFLAGS" 15740 fi 15741 15742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15745 fi 15746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15748 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15749 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15750 then : 15751 printf %s "(cached) " >&6 15752 else case e in #( 15753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15754 /* end confdefs.h. */ 15755 int i; 15756 _ACEOF 15757 if ac_fn_c_try_compile "$LINENO" 15758 then : 15759 xorg_cv_cc_flag_unused_command_line_argument=yes 15760 else case e in #( 15761 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15762 esac 15763 fi 15764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15765 esac 15766 fi 15767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15768 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15770 CFLAGS="$xorg_testset_save_CFLAGS" 15771 fi 15772 15773 found="no" 15774 15775 if test $found = "no" ; then 15776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15778 fi 15779 15780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15782 fi 15783 15784 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15785 15786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15787 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15788 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15789 if eval test \${$cacheid+y} 15790 then : 15791 printf %s "(cached) " >&6 15792 else case e in #( 15793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15794 /* end confdefs.h. */ 15795 int i; 15796 int 15797 main (void) 15798 { 15799 15800 ; 15801 return 0; 15802 } 15803 _ACEOF 15804 if ac_fn_c_try_link "$LINENO" 15805 then : 15806 eval $cacheid=yes 15807 else case e in #( 15808 e) eval $cacheid=no ;; 15809 esac 15810 fi 15811 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15812 conftest$ac_exeext conftest.$ac_ext ;; 15813 esac 15814 fi 15815 15816 15817 CFLAGS="$xorg_testset_save_CFLAGS" 15818 15819 eval supported=\$$cacheid 15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15821 printf "%s\n" "$supported" >&6; } 15822 if test "$supported" = "yes" ; then 15823 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15824 found="yes" 15825 fi 15826 fi 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 xorg_testset_save_CFLAGS="$CFLAGS" 15843 15844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15847 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15848 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15849 then : 15850 printf %s "(cached) " >&6 15851 else case e in #( 15852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15853 /* end confdefs.h. */ 15854 int i; 15855 _ACEOF 15856 if ac_fn_c_try_compile "$LINENO" 15857 then : 15858 xorg_cv_cc_flag_unknown_warning_option=yes 15859 else case e in #( 15860 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15861 esac 15862 fi 15863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15864 esac 15865 fi 15866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15867 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15869 CFLAGS="$xorg_testset_save_CFLAGS" 15870 fi 15871 15872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15875 fi 15876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15878 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15879 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15880 then : 15881 printf %s "(cached) " >&6 15882 else case e in #( 15883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15884 /* end confdefs.h. */ 15885 int i; 15886 _ACEOF 15887 if ac_fn_c_try_compile "$LINENO" 15888 then : 15889 xorg_cv_cc_flag_unused_command_line_argument=yes 15890 else case e in #( 15891 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15892 esac 15893 fi 15894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15895 esac 15896 fi 15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15898 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15900 CFLAGS="$xorg_testset_save_CFLAGS" 15901 fi 15902 15903 found="no" 15904 15905 if test $found = "no" ; then 15906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15908 fi 15909 15910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15912 fi 15913 15914 CFLAGS="$CFLAGS -Wredundant-decls" 15915 15916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15917 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15918 cacheid=xorg_cv_cc_flag__Wredundant_decls 15919 if eval test \${$cacheid+y} 15920 then : 15921 printf %s "(cached) " >&6 15922 else case e in #( 15923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15924 /* end confdefs.h. */ 15925 int i; 15926 int 15927 main (void) 15928 { 15929 15930 ; 15931 return 0; 15932 } 15933 _ACEOF 15934 if ac_fn_c_try_link "$LINENO" 15935 then : 15936 eval $cacheid=yes 15937 else case e in #( 15938 e) eval $cacheid=no ;; 15939 esac 15940 fi 15941 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15942 conftest$ac_exeext conftest.$ac_ext ;; 15943 esac 15944 fi 15945 15946 15947 CFLAGS="$xorg_testset_save_CFLAGS" 15948 15949 eval supported=\$$cacheid 15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15951 printf "%s\n" "$supported" >&6; } 15952 if test "$supported" = "yes" ; then 15953 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15954 found="yes" 15955 fi 15956 fi 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 xorg_testset_save_CFLAGS="$CFLAGS" 15973 15974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15977 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15978 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15979 then : 15980 printf %s "(cached) " >&6 15981 else case e in #( 15982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15983 /* end confdefs.h. */ 15984 int i; 15985 _ACEOF 15986 if ac_fn_c_try_compile "$LINENO" 15987 then : 15988 xorg_cv_cc_flag_unknown_warning_option=yes 15989 else case e in #( 15990 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15991 esac 15992 fi 15993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15994 esac 15995 fi 15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15999 CFLAGS="$xorg_testset_save_CFLAGS" 16000 fi 16001 16002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16005 fi 16006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16010 then : 16011 printf %s "(cached) " >&6 16012 else case e in #( 16013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16014 /* end confdefs.h. */ 16015 int i; 16016 _ACEOF 16017 if ac_fn_c_try_compile "$LINENO" 16018 then : 16019 xorg_cv_cc_flag_unused_command_line_argument=yes 16020 else case e in #( 16021 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16022 esac 16023 fi 16024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16025 esac 16026 fi 16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16028 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16030 CFLAGS="$xorg_testset_save_CFLAGS" 16031 fi 16032 16033 found="no" 16034 16035 if test $found = "no" ; then 16036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16038 fi 16039 16040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16042 fi 16043 16044 CFLAGS="$CFLAGS -Wlogical-op" 16045 16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16047 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16048 cacheid=xorg_cv_cc_flag__Wlogical_op 16049 if eval test \${$cacheid+y} 16050 then : 16051 printf %s "(cached) " >&6 16052 else case e in #( 16053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16054 /* end confdefs.h. */ 16055 int i; 16056 int 16057 main (void) 16058 { 16059 16060 ; 16061 return 0; 16062 } 16063 _ACEOF 16064 if ac_fn_c_try_link "$LINENO" 16065 then : 16066 eval $cacheid=yes 16067 else case e in #( 16068 e) eval $cacheid=no ;; 16069 esac 16070 fi 16071 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16072 conftest$ac_exeext conftest.$ac_ext ;; 16073 esac 16074 fi 16075 16076 16077 CFLAGS="$xorg_testset_save_CFLAGS" 16078 16079 eval supported=\$$cacheid 16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16081 printf "%s\n" "$supported" >&6; } 16082 if test "$supported" = "yes" ; then 16083 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16084 found="yes" 16085 fi 16086 fi 16087 16088 16089 16090 # These are currently disabled because they are noisy. They will be enabled 16091 # in the future once the codebase is sufficiently modernized to silence 16092 # them. For now, I don't want them to drown out the other warnings. 16093 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16094 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16095 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16096 16097 # Turn some warnings into errors, so we don't accidentally get successful builds 16098 # when there are problems that should be fixed. 16099 16100 if test "x$SELECTIVE_WERROR" = "xyes" ; then 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 xorg_testset_save_CFLAGS="$CFLAGS" 16115 16116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16119 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16120 if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes 16131 else case e in #( 16132 e) xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 16139 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16141 CFLAGS="$xorg_testset_save_CFLAGS" 16142 fi 16143 16144 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16147 fi 16148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16150 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16151 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16152 then : 16153 printf %s "(cached) " >&6 16154 else case e in #( 16155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16156 /* end confdefs.h. */ 16157 int i; 16158 _ACEOF 16159 if ac_fn_c_try_compile "$LINENO" 16160 then : 16161 xorg_cv_cc_flag_unused_command_line_argument=yes 16162 else case e in #( 16163 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16164 esac 16165 fi 16166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16167 esac 16168 fi 16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16170 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16172 CFLAGS="$xorg_testset_save_CFLAGS" 16173 fi 16174 16175 found="no" 16176 16177 if test $found = "no" ; then 16178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16180 fi 16181 16182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16184 fi 16185 16186 CFLAGS="$CFLAGS -Werror=implicit" 16187 16188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16189 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16190 cacheid=xorg_cv_cc_flag__Werror_implicit 16191 if eval test \${$cacheid+y} 16192 then : 16193 printf %s "(cached) " >&6 16194 else case e in #( 16195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16196 /* end confdefs.h. */ 16197 int i; 16198 int 16199 main (void) 16200 { 16201 16202 ; 16203 return 0; 16204 } 16205 _ACEOF 16206 if ac_fn_c_try_link "$LINENO" 16207 then : 16208 eval $cacheid=yes 16209 else case e in #( 16210 e) eval $cacheid=no ;; 16211 esac 16212 fi 16213 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16214 conftest$ac_exeext conftest.$ac_ext ;; 16215 esac 16216 fi 16217 16218 16219 CFLAGS="$xorg_testset_save_CFLAGS" 16220 16221 eval supported=\$$cacheid 16222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16223 printf "%s\n" "$supported" >&6; } 16224 if test "$supported" = "yes" ; then 16225 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16226 found="yes" 16227 fi 16228 fi 16229 16230 if test $found = "no" ; then 16231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16233 fi 16234 16235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16237 fi 16238 16239 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16240 16241 { 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 16242 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16243 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16244 if eval test \${$cacheid+y} 16245 then : 16246 printf %s "(cached) " >&6 16247 else case e in #( 16248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16249 /* end confdefs.h. */ 16250 int i; 16251 int 16252 main (void) 16253 { 16254 16255 ; 16256 return 0; 16257 } 16258 _ACEOF 16259 if ac_fn_c_try_link "$LINENO" 16260 then : 16261 eval $cacheid=yes 16262 else case e in #( 16263 e) eval $cacheid=no ;; 16264 esac 16265 fi 16266 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16267 conftest$ac_exeext conftest.$ac_ext ;; 16268 esac 16269 fi 16270 16271 16272 CFLAGS="$xorg_testset_save_CFLAGS" 16273 16274 eval supported=\$$cacheid 16275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16276 printf "%s\n" "$supported" >&6; } 16277 if test "$supported" = "yes" ; then 16278 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16279 found="yes" 16280 fi 16281 fi 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 xorg_testset_save_CFLAGS="$CFLAGS" 16298 16299 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16302 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16303 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16304 then : 16305 printf %s "(cached) " >&6 16306 else case e in #( 16307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16308 /* end confdefs.h. */ 16309 int i; 16310 _ACEOF 16311 if ac_fn_c_try_compile "$LINENO" 16312 then : 16313 xorg_cv_cc_flag_unknown_warning_option=yes 16314 else case e in #( 16315 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16316 esac 16317 fi 16318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16319 esac 16320 fi 16321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16322 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16324 CFLAGS="$xorg_testset_save_CFLAGS" 16325 fi 16326 16327 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16330 fi 16331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16333 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16334 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16335 then : 16336 printf %s "(cached) " >&6 16337 else case e in #( 16338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16339 /* end confdefs.h. */ 16340 int i; 16341 _ACEOF 16342 if ac_fn_c_try_compile "$LINENO" 16343 then : 16344 xorg_cv_cc_flag_unused_command_line_argument=yes 16345 else case e in #( 16346 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16347 esac 16348 fi 16349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16350 esac 16351 fi 16352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16353 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16355 CFLAGS="$xorg_testset_save_CFLAGS" 16356 fi 16357 16358 found="no" 16359 16360 if test $found = "no" ; then 16361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16363 fi 16364 16365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16367 fi 16368 16369 CFLAGS="$CFLAGS -Werror=nonnull" 16370 16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16372 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16373 cacheid=xorg_cv_cc_flag__Werror_nonnull 16374 if eval test \${$cacheid+y} 16375 then : 16376 printf %s "(cached) " >&6 16377 else case e in #( 16378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16379 /* end confdefs.h. */ 16380 int i; 16381 int 16382 main (void) 16383 { 16384 16385 ; 16386 return 0; 16387 } 16388 _ACEOF 16389 if ac_fn_c_try_link "$LINENO" 16390 then : 16391 eval $cacheid=yes 16392 else case e in #( 16393 e) eval $cacheid=no ;; 16394 esac 16395 fi 16396 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16397 conftest$ac_exeext conftest.$ac_ext ;; 16398 esac 16399 fi 16400 16401 16402 CFLAGS="$xorg_testset_save_CFLAGS" 16403 16404 eval supported=\$$cacheid 16405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16406 printf "%s\n" "$supported" >&6; } 16407 if test "$supported" = "yes" ; then 16408 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16409 found="yes" 16410 fi 16411 fi 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 xorg_testset_save_CFLAGS="$CFLAGS" 16428 16429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16432 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16433 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16434 then : 16435 printf %s "(cached) " >&6 16436 else case e in #( 16437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16438 /* end confdefs.h. */ 16439 int i; 16440 _ACEOF 16441 if ac_fn_c_try_compile "$LINENO" 16442 then : 16443 xorg_cv_cc_flag_unknown_warning_option=yes 16444 else case e in #( 16445 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16446 esac 16447 fi 16448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16449 esac 16450 fi 16451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16452 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16454 CFLAGS="$xorg_testset_save_CFLAGS" 16455 fi 16456 16457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16460 fi 16461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16463 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16464 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16465 then : 16466 printf %s "(cached) " >&6 16467 else case e in #( 16468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16469 /* end confdefs.h. */ 16470 int i; 16471 _ACEOF 16472 if ac_fn_c_try_compile "$LINENO" 16473 then : 16474 xorg_cv_cc_flag_unused_command_line_argument=yes 16475 else case e in #( 16476 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16477 esac 16478 fi 16479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16480 esac 16481 fi 16482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16483 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16485 CFLAGS="$xorg_testset_save_CFLAGS" 16486 fi 16487 16488 found="no" 16489 16490 if test $found = "no" ; then 16491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16493 fi 16494 16495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16497 fi 16498 16499 CFLAGS="$CFLAGS -Werror=init-self" 16500 16501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16502 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16503 cacheid=xorg_cv_cc_flag__Werror_init_self 16504 if eval test \${$cacheid+y} 16505 then : 16506 printf %s "(cached) " >&6 16507 else case e in #( 16508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16509 /* end confdefs.h. */ 16510 int i; 16511 int 16512 main (void) 16513 { 16514 16515 ; 16516 return 0; 16517 } 16518 _ACEOF 16519 if ac_fn_c_try_link "$LINENO" 16520 then : 16521 eval $cacheid=yes 16522 else case e in #( 16523 e) eval $cacheid=no ;; 16524 esac 16525 fi 16526 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16527 conftest$ac_exeext conftest.$ac_ext ;; 16528 esac 16529 fi 16530 16531 16532 CFLAGS="$xorg_testset_save_CFLAGS" 16533 16534 eval supported=\$$cacheid 16535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16536 printf "%s\n" "$supported" >&6; } 16537 if test "$supported" = "yes" ; then 16538 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16539 found="yes" 16540 fi 16541 fi 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 xorg_testset_save_CFLAGS="$CFLAGS" 16558 16559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16562 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16563 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16564 then : 16565 printf %s "(cached) " >&6 16566 else case e in #( 16567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16568 /* end confdefs.h. */ 16569 int i; 16570 _ACEOF 16571 if ac_fn_c_try_compile "$LINENO" 16572 then : 16573 xorg_cv_cc_flag_unknown_warning_option=yes 16574 else case e in #( 16575 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16576 esac 16577 fi 16578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16579 esac 16580 fi 16581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16584 CFLAGS="$xorg_testset_save_CFLAGS" 16585 fi 16586 16587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16590 fi 16591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16594 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16595 then : 16596 printf %s "(cached) " >&6 16597 else case e in #( 16598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16599 /* end confdefs.h. */ 16600 int i; 16601 _ACEOF 16602 if ac_fn_c_try_compile "$LINENO" 16603 then : 16604 xorg_cv_cc_flag_unused_command_line_argument=yes 16605 else case e in #( 16606 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16607 esac 16608 fi 16609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16610 esac 16611 fi 16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16613 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16615 CFLAGS="$xorg_testset_save_CFLAGS" 16616 fi 16617 16618 found="no" 16619 16620 if test $found = "no" ; then 16621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16623 fi 16624 16625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16627 fi 16628 16629 CFLAGS="$CFLAGS -Werror=main" 16630 16631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16632 printf %s "checking if $CC supports -Werror=main... " >&6; } 16633 cacheid=xorg_cv_cc_flag__Werror_main 16634 if eval test \${$cacheid+y} 16635 then : 16636 printf %s "(cached) " >&6 16637 else case e in #( 16638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16639 /* end confdefs.h. */ 16640 int i; 16641 int 16642 main (void) 16643 { 16644 16645 ; 16646 return 0; 16647 } 16648 _ACEOF 16649 if ac_fn_c_try_link "$LINENO" 16650 then : 16651 eval $cacheid=yes 16652 else case e in #( 16653 e) eval $cacheid=no ;; 16654 esac 16655 fi 16656 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16657 conftest$ac_exeext conftest.$ac_ext ;; 16658 esac 16659 fi 16660 16661 16662 CFLAGS="$xorg_testset_save_CFLAGS" 16663 16664 eval supported=\$$cacheid 16665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16666 printf "%s\n" "$supported" >&6; } 16667 if test "$supported" = "yes" ; then 16668 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16669 found="yes" 16670 fi 16671 fi 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 xorg_testset_save_CFLAGS="$CFLAGS" 16688 16689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16692 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16693 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16694 then : 16695 printf %s "(cached) " >&6 16696 else case e in #( 16697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16698 /* end confdefs.h. */ 16699 int i; 16700 _ACEOF 16701 if ac_fn_c_try_compile "$LINENO" 16702 then : 16703 xorg_cv_cc_flag_unknown_warning_option=yes 16704 else case e in #( 16705 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16706 esac 16707 fi 16708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16709 esac 16710 fi 16711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16712 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16714 CFLAGS="$xorg_testset_save_CFLAGS" 16715 fi 16716 16717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16720 fi 16721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16723 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16724 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16725 then : 16726 printf %s "(cached) " >&6 16727 else case e in #( 16728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16729 /* end confdefs.h. */ 16730 int i; 16731 _ACEOF 16732 if ac_fn_c_try_compile "$LINENO" 16733 then : 16734 xorg_cv_cc_flag_unused_command_line_argument=yes 16735 else case e in #( 16736 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16737 esac 16738 fi 16739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16740 esac 16741 fi 16742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16745 CFLAGS="$xorg_testset_save_CFLAGS" 16746 fi 16747 16748 found="no" 16749 16750 if test $found = "no" ; then 16751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16753 fi 16754 16755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16757 fi 16758 16759 CFLAGS="$CFLAGS -Werror=missing-braces" 16760 16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16762 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16763 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16764 if eval test \${$cacheid+y} 16765 then : 16766 printf %s "(cached) " >&6 16767 else case e in #( 16768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16769 /* end confdefs.h. */ 16770 int i; 16771 int 16772 main (void) 16773 { 16774 16775 ; 16776 return 0; 16777 } 16778 _ACEOF 16779 if ac_fn_c_try_link "$LINENO" 16780 then : 16781 eval $cacheid=yes 16782 else case e in #( 16783 e) eval $cacheid=no ;; 16784 esac 16785 fi 16786 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16787 conftest$ac_exeext conftest.$ac_ext ;; 16788 esac 16789 fi 16790 16791 16792 CFLAGS="$xorg_testset_save_CFLAGS" 16793 16794 eval supported=\$$cacheid 16795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16796 printf "%s\n" "$supported" >&6; } 16797 if test "$supported" = "yes" ; then 16798 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16799 found="yes" 16800 fi 16801 fi 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 xorg_testset_save_CFLAGS="$CFLAGS" 16818 16819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16822 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16823 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16824 then : 16825 printf %s "(cached) " >&6 16826 else case e in #( 16827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16828 /* end confdefs.h. */ 16829 int i; 16830 _ACEOF 16831 if ac_fn_c_try_compile "$LINENO" 16832 then : 16833 xorg_cv_cc_flag_unknown_warning_option=yes 16834 else case e in #( 16835 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16836 esac 16837 fi 16838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16839 esac 16840 fi 16841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16842 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16844 CFLAGS="$xorg_testset_save_CFLAGS" 16845 fi 16846 16847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16850 fi 16851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16853 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16854 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16855 then : 16856 printf %s "(cached) " >&6 16857 else case e in #( 16858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16859 /* end confdefs.h. */ 16860 int i; 16861 _ACEOF 16862 if ac_fn_c_try_compile "$LINENO" 16863 then : 16864 xorg_cv_cc_flag_unused_command_line_argument=yes 16865 else case e in #( 16866 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16867 esac 16868 fi 16869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16870 esac 16871 fi 16872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16875 CFLAGS="$xorg_testset_save_CFLAGS" 16876 fi 16877 16878 found="no" 16879 16880 if test $found = "no" ; then 16881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16883 fi 16884 16885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16887 fi 16888 16889 CFLAGS="$CFLAGS -Werror=sequence-point" 16890 16891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16892 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16893 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16894 if eval test \${$cacheid+y} 16895 then : 16896 printf %s "(cached) " >&6 16897 else case e in #( 16898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16899 /* end confdefs.h. */ 16900 int i; 16901 int 16902 main (void) 16903 { 16904 16905 ; 16906 return 0; 16907 } 16908 _ACEOF 16909 if ac_fn_c_try_link "$LINENO" 16910 then : 16911 eval $cacheid=yes 16912 else case e in #( 16913 e) eval $cacheid=no ;; 16914 esac 16915 fi 16916 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16917 conftest$ac_exeext conftest.$ac_ext ;; 16918 esac 16919 fi 16920 16921 16922 CFLAGS="$xorg_testset_save_CFLAGS" 16923 16924 eval supported=\$$cacheid 16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16926 printf "%s\n" "$supported" >&6; } 16927 if test "$supported" = "yes" ; then 16928 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16929 found="yes" 16930 fi 16931 fi 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 xorg_testset_save_CFLAGS="$CFLAGS" 16948 16949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16953 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16954 then : 16955 printf %s "(cached) " >&6 16956 else case e in #( 16957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16958 /* end confdefs.h. */ 16959 int i; 16960 _ACEOF 16961 if ac_fn_c_try_compile "$LINENO" 16962 then : 16963 xorg_cv_cc_flag_unknown_warning_option=yes 16964 else case e in #( 16965 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16966 esac 16967 fi 16968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16969 esac 16970 fi 16971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16972 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16974 CFLAGS="$xorg_testset_save_CFLAGS" 16975 fi 16976 16977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16980 fi 16981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16983 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16984 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16985 then : 16986 printf %s "(cached) " >&6 16987 else case e in #( 16988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16989 /* end confdefs.h. */ 16990 int i; 16991 _ACEOF 16992 if ac_fn_c_try_compile "$LINENO" 16993 then : 16994 xorg_cv_cc_flag_unused_command_line_argument=yes 16995 else case e in #( 16996 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16997 esac 16998 fi 16999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17000 esac 17001 fi 17002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17005 CFLAGS="$xorg_testset_save_CFLAGS" 17006 fi 17007 17008 found="no" 17009 17010 if test $found = "no" ; then 17011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17013 fi 17014 17015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17017 fi 17018 17019 CFLAGS="$CFLAGS -Werror=return-type" 17020 17021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17022 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17023 cacheid=xorg_cv_cc_flag__Werror_return_type 17024 if eval test \${$cacheid+y} 17025 then : 17026 printf %s "(cached) " >&6 17027 else case e in #( 17028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17029 /* end confdefs.h. */ 17030 int i; 17031 int 17032 main (void) 17033 { 17034 17035 ; 17036 return 0; 17037 } 17038 _ACEOF 17039 if ac_fn_c_try_link "$LINENO" 17040 then : 17041 eval $cacheid=yes 17042 else case e in #( 17043 e) eval $cacheid=no ;; 17044 esac 17045 fi 17046 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17047 conftest$ac_exeext conftest.$ac_ext ;; 17048 esac 17049 fi 17050 17051 17052 CFLAGS="$xorg_testset_save_CFLAGS" 17053 17054 eval supported=\$$cacheid 17055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17056 printf "%s\n" "$supported" >&6; } 17057 if test "$supported" = "yes" ; then 17058 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17059 found="yes" 17060 fi 17061 fi 17062 17063 if test $found = "no" ; then 17064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17066 fi 17067 17068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17070 fi 17071 17072 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17073 17074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17075 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17076 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17077 if eval test \${$cacheid+y} 17078 then : 17079 printf %s "(cached) " >&6 17080 else case e in #( 17081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17082 /* end confdefs.h. */ 17083 int i; 17084 int 17085 main (void) 17086 { 17087 17088 ; 17089 return 0; 17090 } 17091 _ACEOF 17092 if ac_fn_c_try_link "$LINENO" 17093 then : 17094 eval $cacheid=yes 17095 else case e in #( 17096 e) eval $cacheid=no ;; 17097 esac 17098 fi 17099 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17100 conftest$ac_exeext conftest.$ac_ext ;; 17101 esac 17102 fi 17103 17104 17105 CFLAGS="$xorg_testset_save_CFLAGS" 17106 17107 eval supported=\$$cacheid 17108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17109 printf "%s\n" "$supported" >&6; } 17110 if test "$supported" = "yes" ; then 17111 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17112 found="yes" 17113 fi 17114 fi 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 xorg_testset_save_CFLAGS="$CFLAGS" 17131 17132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17135 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17136 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17137 then : 17138 printf %s "(cached) " >&6 17139 else case e in #( 17140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17141 /* end confdefs.h. */ 17142 int i; 17143 _ACEOF 17144 if ac_fn_c_try_compile "$LINENO" 17145 then : 17146 xorg_cv_cc_flag_unknown_warning_option=yes 17147 else case e in #( 17148 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17149 esac 17150 fi 17151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17152 esac 17153 fi 17154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17155 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17157 CFLAGS="$xorg_testset_save_CFLAGS" 17158 fi 17159 17160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17163 fi 17164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17166 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17167 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17168 then : 17169 printf %s "(cached) " >&6 17170 else case e in #( 17171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17172 /* end confdefs.h. */ 17173 int i; 17174 _ACEOF 17175 if ac_fn_c_try_compile "$LINENO" 17176 then : 17177 xorg_cv_cc_flag_unused_command_line_argument=yes 17178 else case e in #( 17179 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17180 esac 17181 fi 17182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17183 esac 17184 fi 17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17186 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17188 CFLAGS="$xorg_testset_save_CFLAGS" 17189 fi 17190 17191 found="no" 17192 17193 if test $found = "no" ; then 17194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17196 fi 17197 17198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17200 fi 17201 17202 CFLAGS="$CFLAGS -Werror=trigraphs" 17203 17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17205 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17206 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17207 if eval test \${$cacheid+y} 17208 then : 17209 printf %s "(cached) " >&6 17210 else case e in #( 17211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17212 /* end confdefs.h. */ 17213 int i; 17214 int 17215 main (void) 17216 { 17217 17218 ; 17219 return 0; 17220 } 17221 _ACEOF 17222 if ac_fn_c_try_link "$LINENO" 17223 then : 17224 eval $cacheid=yes 17225 else case e in #( 17226 e) eval $cacheid=no ;; 17227 esac 17228 fi 17229 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17230 conftest$ac_exeext conftest.$ac_ext ;; 17231 esac 17232 fi 17233 17234 17235 CFLAGS="$xorg_testset_save_CFLAGS" 17236 17237 eval supported=\$$cacheid 17238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17239 printf "%s\n" "$supported" >&6; } 17240 if test "$supported" = "yes" ; then 17241 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17242 found="yes" 17243 fi 17244 fi 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 xorg_testset_save_CFLAGS="$CFLAGS" 17261 17262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17265 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17266 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17267 then : 17268 printf %s "(cached) " >&6 17269 else case e in #( 17270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271 /* end confdefs.h. */ 17272 int i; 17273 _ACEOF 17274 if ac_fn_c_try_compile "$LINENO" 17275 then : 17276 xorg_cv_cc_flag_unknown_warning_option=yes 17277 else case e in #( 17278 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17279 esac 17280 fi 17281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17282 esac 17283 fi 17284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17285 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17287 CFLAGS="$xorg_testset_save_CFLAGS" 17288 fi 17289 17290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17293 fi 17294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17296 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17297 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17298 then : 17299 printf %s "(cached) " >&6 17300 else case e in #( 17301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17302 /* end confdefs.h. */ 17303 int i; 17304 _ACEOF 17305 if ac_fn_c_try_compile "$LINENO" 17306 then : 17307 xorg_cv_cc_flag_unused_command_line_argument=yes 17308 else case e in #( 17309 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17310 esac 17311 fi 17312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17313 esac 17314 fi 17315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17316 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17318 CFLAGS="$xorg_testset_save_CFLAGS" 17319 fi 17320 17321 found="no" 17322 17323 if test $found = "no" ; then 17324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17326 fi 17327 17328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17330 fi 17331 17332 CFLAGS="$CFLAGS -Werror=array-bounds" 17333 17334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17335 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17336 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17337 if eval test \${$cacheid+y} 17338 then : 17339 printf %s "(cached) " >&6 17340 else case e in #( 17341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17342 /* end confdefs.h. */ 17343 int i; 17344 int 17345 main (void) 17346 { 17347 17348 ; 17349 return 0; 17350 } 17351 _ACEOF 17352 if ac_fn_c_try_link "$LINENO" 17353 then : 17354 eval $cacheid=yes 17355 else case e in #( 17356 e) eval $cacheid=no ;; 17357 esac 17358 fi 17359 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17360 conftest$ac_exeext conftest.$ac_ext ;; 17361 esac 17362 fi 17363 17364 17365 CFLAGS="$xorg_testset_save_CFLAGS" 17366 17367 eval supported=\$$cacheid 17368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17369 printf "%s\n" "$supported" >&6; } 17370 if test "$supported" = "yes" ; then 17371 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17372 found="yes" 17373 fi 17374 fi 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 xorg_testset_save_CFLAGS="$CFLAGS" 17391 17392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17395 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17396 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17397 then : 17398 printf %s "(cached) " >&6 17399 else case e in #( 17400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17401 /* end confdefs.h. */ 17402 int i; 17403 _ACEOF 17404 if ac_fn_c_try_compile "$LINENO" 17405 then : 17406 xorg_cv_cc_flag_unknown_warning_option=yes 17407 else case e in #( 17408 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17409 esac 17410 fi 17411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17412 esac 17413 fi 17414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17415 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17417 CFLAGS="$xorg_testset_save_CFLAGS" 17418 fi 17419 17420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17423 fi 17424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17426 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17427 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17428 then : 17429 printf %s "(cached) " >&6 17430 else case e in #( 17431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17432 /* end confdefs.h. */ 17433 int i; 17434 _ACEOF 17435 if ac_fn_c_try_compile "$LINENO" 17436 then : 17437 xorg_cv_cc_flag_unused_command_line_argument=yes 17438 else case e in #( 17439 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17440 esac 17441 fi 17442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17443 esac 17444 fi 17445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17446 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17448 CFLAGS="$xorg_testset_save_CFLAGS" 17449 fi 17450 17451 found="no" 17452 17453 if test $found = "no" ; then 17454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17456 fi 17457 17458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17460 fi 17461 17462 CFLAGS="$CFLAGS -Werror=write-strings" 17463 17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17465 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17466 cacheid=xorg_cv_cc_flag__Werror_write_strings 17467 if eval test \${$cacheid+y} 17468 then : 17469 printf %s "(cached) " >&6 17470 else case e in #( 17471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17472 /* end confdefs.h. */ 17473 int i; 17474 int 17475 main (void) 17476 { 17477 17478 ; 17479 return 0; 17480 } 17481 _ACEOF 17482 if ac_fn_c_try_link "$LINENO" 17483 then : 17484 eval $cacheid=yes 17485 else case e in #( 17486 e) eval $cacheid=no ;; 17487 esac 17488 fi 17489 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17490 conftest$ac_exeext conftest.$ac_ext ;; 17491 esac 17492 fi 17493 17494 17495 CFLAGS="$xorg_testset_save_CFLAGS" 17496 17497 eval supported=\$$cacheid 17498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17499 printf "%s\n" "$supported" >&6; } 17500 if test "$supported" = "yes" ; then 17501 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17502 found="yes" 17503 fi 17504 fi 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 xorg_testset_save_CFLAGS="$CFLAGS" 17521 17522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17525 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17526 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17527 then : 17528 printf %s "(cached) " >&6 17529 else case e in #( 17530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17531 /* end confdefs.h. */ 17532 int i; 17533 _ACEOF 17534 if ac_fn_c_try_compile "$LINENO" 17535 then : 17536 xorg_cv_cc_flag_unknown_warning_option=yes 17537 else case e in #( 17538 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17539 esac 17540 fi 17541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17542 esac 17543 fi 17544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17545 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17547 CFLAGS="$xorg_testset_save_CFLAGS" 17548 fi 17549 17550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17553 fi 17554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17556 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17557 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17558 then : 17559 printf %s "(cached) " >&6 17560 else case e in #( 17561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17562 /* end confdefs.h. */ 17563 int i; 17564 _ACEOF 17565 if ac_fn_c_try_compile "$LINENO" 17566 then : 17567 xorg_cv_cc_flag_unused_command_line_argument=yes 17568 else case e in #( 17569 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17570 esac 17571 fi 17572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17573 esac 17574 fi 17575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17576 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17578 CFLAGS="$xorg_testset_save_CFLAGS" 17579 fi 17580 17581 found="no" 17582 17583 if test $found = "no" ; then 17584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17586 fi 17587 17588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17590 fi 17591 17592 CFLAGS="$CFLAGS -Werror=address" 17593 17594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17595 printf %s "checking if $CC supports -Werror=address... " >&6; } 17596 cacheid=xorg_cv_cc_flag__Werror_address 17597 if eval test \${$cacheid+y} 17598 then : 17599 printf %s "(cached) " >&6 17600 else case e in #( 17601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17602 /* end confdefs.h. */ 17603 int i; 17604 int 17605 main (void) 17606 { 17607 17608 ; 17609 return 0; 17610 } 17611 _ACEOF 17612 if ac_fn_c_try_link "$LINENO" 17613 then : 17614 eval $cacheid=yes 17615 else case e in #( 17616 e) eval $cacheid=no ;; 17617 esac 17618 fi 17619 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17620 conftest$ac_exeext conftest.$ac_ext ;; 17621 esac 17622 fi 17623 17624 17625 CFLAGS="$xorg_testset_save_CFLAGS" 17626 17627 eval supported=\$$cacheid 17628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17629 printf "%s\n" "$supported" >&6; } 17630 if test "$supported" = "yes" ; then 17631 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17632 found="yes" 17633 fi 17634 fi 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 xorg_testset_save_CFLAGS="$CFLAGS" 17651 17652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17655 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17656 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17657 then : 17658 printf %s "(cached) " >&6 17659 else case e in #( 17660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17661 /* end confdefs.h. */ 17662 int i; 17663 _ACEOF 17664 if ac_fn_c_try_compile "$LINENO" 17665 then : 17666 xorg_cv_cc_flag_unknown_warning_option=yes 17667 else case e in #( 17668 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17669 esac 17670 fi 17671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17672 esac 17673 fi 17674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17675 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17677 CFLAGS="$xorg_testset_save_CFLAGS" 17678 fi 17679 17680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17683 fi 17684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17686 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17687 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17688 then : 17689 printf %s "(cached) " >&6 17690 else case e in #( 17691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17692 /* end confdefs.h. */ 17693 int i; 17694 _ACEOF 17695 if ac_fn_c_try_compile "$LINENO" 17696 then : 17697 xorg_cv_cc_flag_unused_command_line_argument=yes 17698 else case e in #( 17699 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17700 esac 17701 fi 17702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17703 esac 17704 fi 17705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17706 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17708 CFLAGS="$xorg_testset_save_CFLAGS" 17709 fi 17710 17711 found="no" 17712 17713 if test $found = "no" ; then 17714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17716 fi 17717 17718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17720 fi 17721 17722 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17723 17724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17725 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17726 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17727 if eval test \${$cacheid+y} 17728 then : 17729 printf %s "(cached) " >&6 17730 else case e in #( 17731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17732 /* end confdefs.h. */ 17733 int i; 17734 int 17735 main (void) 17736 { 17737 17738 ; 17739 return 0; 17740 } 17741 _ACEOF 17742 if ac_fn_c_try_link "$LINENO" 17743 then : 17744 eval $cacheid=yes 17745 else case e in #( 17746 e) eval $cacheid=no ;; 17747 esac 17748 fi 17749 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17750 conftest$ac_exeext conftest.$ac_ext ;; 17751 esac 17752 fi 17753 17754 17755 CFLAGS="$xorg_testset_save_CFLAGS" 17756 17757 eval supported=\$$cacheid 17758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17759 printf "%s\n" "$supported" >&6; } 17760 if test "$supported" = "yes" ; then 17761 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17762 found="yes" 17763 fi 17764 fi 17765 17766 if test $found = "no" ; then 17767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17769 fi 17770 17771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17773 fi 17774 17775 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17776 17777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17778 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17779 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17780 if eval test \${$cacheid+y} 17781 then : 17782 printf %s "(cached) " >&6 17783 else case e in #( 17784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17785 /* end confdefs.h. */ 17786 int i; 17787 int 17788 main (void) 17789 { 17790 17791 ; 17792 return 0; 17793 } 17794 _ACEOF 17795 if ac_fn_c_try_link "$LINENO" 17796 then : 17797 eval $cacheid=yes 17798 else case e in #( 17799 e) eval $cacheid=no ;; 17800 esac 17801 fi 17802 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17803 conftest$ac_exeext conftest.$ac_ext ;; 17804 esac 17805 fi 17806 17807 17808 CFLAGS="$xorg_testset_save_CFLAGS" 17809 17810 eval supported=\$$cacheid 17811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17812 printf "%s\n" "$supported" >&6; } 17813 if test "$supported" = "yes" ; then 17814 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17815 found="yes" 17816 fi 17817 fi 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 xorg_testset_save_CFLAGS="$CFLAGS" 17834 17835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17839 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17840 then : 17841 printf %s "(cached) " >&6 17842 else case e in #( 17843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17844 /* end confdefs.h. */ 17845 int i; 17846 _ACEOF 17847 if ac_fn_c_try_compile "$LINENO" 17848 then : 17849 xorg_cv_cc_flag_unknown_warning_option=yes 17850 else case e in #( 17851 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17852 esac 17853 fi 17854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17855 esac 17856 fi 17857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17860 CFLAGS="$xorg_testset_save_CFLAGS" 17861 fi 17862 17863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17866 fi 17867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17871 then : 17872 printf %s "(cached) " >&6 17873 else case e in #( 17874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17875 /* end confdefs.h. */ 17876 int i; 17877 _ACEOF 17878 if ac_fn_c_try_compile "$LINENO" 17879 then : 17880 xorg_cv_cc_flag_unused_command_line_argument=yes 17881 else case e in #( 17882 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17883 esac 17884 fi 17885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17886 esac 17887 fi 17888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17889 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17891 CFLAGS="$xorg_testset_save_CFLAGS" 17892 fi 17893 17894 found="no" 17895 17896 if test $found = "no" ; then 17897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17899 fi 17900 17901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17903 fi 17904 17905 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17906 17907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17908 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17909 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17910 if eval test \${$cacheid+y} 17911 then : 17912 printf %s "(cached) " >&6 17913 else case e in #( 17914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17915 /* end confdefs.h. */ 17916 int i; 17917 int 17918 main (void) 17919 { 17920 17921 ; 17922 return 0; 17923 } 17924 _ACEOF 17925 if ac_fn_c_try_link "$LINENO" 17926 then : 17927 eval $cacheid=yes 17928 else case e in #( 17929 e) eval $cacheid=no ;; 17930 esac 17931 fi 17932 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17933 conftest$ac_exeext conftest.$ac_ext ;; 17934 esac 17935 fi 17936 17937 17938 CFLAGS="$xorg_testset_save_CFLAGS" 17939 17940 eval supported=\$$cacheid 17941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17942 printf "%s\n" "$supported" >&6; } 17943 if test "$supported" = "yes" ; then 17944 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17945 found="yes" 17946 fi 17947 fi 17948 17949 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17950 else 17951 { 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 17952 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;} 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 xorg_testset_save_CFLAGS="$CFLAGS" 17967 17968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17972 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17973 then : 17974 printf %s "(cached) " >&6 17975 else case e in #( 17976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17977 /* end confdefs.h. */ 17978 int i; 17979 _ACEOF 17980 if ac_fn_c_try_compile "$LINENO" 17981 then : 17982 xorg_cv_cc_flag_unknown_warning_option=yes 17983 else case e in #( 17984 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17985 esac 17986 fi 17987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17988 esac 17989 fi 17990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17991 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17993 CFLAGS="$xorg_testset_save_CFLAGS" 17994 fi 17995 17996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17999 fi 18000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18002 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18003 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18004 then : 18005 printf %s "(cached) " >&6 18006 else case e in #( 18007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18008 /* end confdefs.h. */ 18009 int i; 18010 _ACEOF 18011 if ac_fn_c_try_compile "$LINENO" 18012 then : 18013 xorg_cv_cc_flag_unused_command_line_argument=yes 18014 else case e in #( 18015 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18016 esac 18017 fi 18018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18019 esac 18020 fi 18021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18022 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18024 CFLAGS="$xorg_testset_save_CFLAGS" 18025 fi 18026 18027 found="no" 18028 18029 if test $found = "no" ; then 18030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18032 fi 18033 18034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18036 fi 18037 18038 CFLAGS="$CFLAGS -Wimplicit" 18039 18040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18041 printf %s "checking if $CC supports -Wimplicit... " >&6; } 18042 cacheid=xorg_cv_cc_flag__Wimplicit 18043 if eval test \${$cacheid+y} 18044 then : 18045 printf %s "(cached) " >&6 18046 else case e in #( 18047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18048 /* end confdefs.h. */ 18049 int i; 18050 int 18051 main (void) 18052 { 18053 18054 ; 18055 return 0; 18056 } 18057 _ACEOF 18058 if ac_fn_c_try_link "$LINENO" 18059 then : 18060 eval $cacheid=yes 18061 else case e in #( 18062 e) eval $cacheid=no ;; 18063 esac 18064 fi 18065 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18066 conftest$ac_exeext conftest.$ac_ext ;; 18067 esac 18068 fi 18069 18070 18071 CFLAGS="$xorg_testset_save_CFLAGS" 18072 18073 eval supported=\$$cacheid 18074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18075 printf "%s\n" "$supported" >&6; } 18076 if test "$supported" = "yes" ; then 18077 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18078 found="yes" 18079 fi 18080 fi 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 xorg_testset_save_CFLAGS="$CFLAGS" 18097 18098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18101 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18102 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18103 then : 18104 printf %s "(cached) " >&6 18105 else case e in #( 18106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18107 /* end confdefs.h. */ 18108 int i; 18109 _ACEOF 18110 if ac_fn_c_try_compile "$LINENO" 18111 then : 18112 xorg_cv_cc_flag_unknown_warning_option=yes 18113 else case e in #( 18114 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18115 esac 18116 fi 18117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18118 esac 18119 fi 18120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18121 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18123 CFLAGS="$xorg_testset_save_CFLAGS" 18124 fi 18125 18126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18129 fi 18130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18132 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18133 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18134 then : 18135 printf %s "(cached) " >&6 18136 else case e in #( 18137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18138 /* end confdefs.h. */ 18139 int i; 18140 _ACEOF 18141 if ac_fn_c_try_compile "$LINENO" 18142 then : 18143 xorg_cv_cc_flag_unused_command_line_argument=yes 18144 else case e in #( 18145 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18146 esac 18147 fi 18148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18149 esac 18150 fi 18151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18152 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18154 CFLAGS="$xorg_testset_save_CFLAGS" 18155 fi 18156 18157 found="no" 18158 18159 if test $found = "no" ; then 18160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18162 fi 18163 18164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18166 fi 18167 18168 CFLAGS="$CFLAGS -Wnonnull" 18169 18170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18171 printf %s "checking if $CC supports -Wnonnull... " >&6; } 18172 cacheid=xorg_cv_cc_flag__Wnonnull 18173 if eval test \${$cacheid+y} 18174 then : 18175 printf %s "(cached) " >&6 18176 else case e in #( 18177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18178 /* end confdefs.h. */ 18179 int i; 18180 int 18181 main (void) 18182 { 18183 18184 ; 18185 return 0; 18186 } 18187 _ACEOF 18188 if ac_fn_c_try_link "$LINENO" 18189 then : 18190 eval $cacheid=yes 18191 else case e in #( 18192 e) eval $cacheid=no ;; 18193 esac 18194 fi 18195 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18196 conftest$ac_exeext conftest.$ac_ext ;; 18197 esac 18198 fi 18199 18200 18201 CFLAGS="$xorg_testset_save_CFLAGS" 18202 18203 eval supported=\$$cacheid 18204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18205 printf "%s\n" "$supported" >&6; } 18206 if test "$supported" = "yes" ; then 18207 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18208 found="yes" 18209 fi 18210 fi 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 xorg_testset_save_CFLAGS="$CFLAGS" 18227 18228 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18231 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18232 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18233 then : 18234 printf %s "(cached) " >&6 18235 else case e in #( 18236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18237 /* end confdefs.h. */ 18238 int i; 18239 _ACEOF 18240 if ac_fn_c_try_compile "$LINENO" 18241 then : 18242 xorg_cv_cc_flag_unknown_warning_option=yes 18243 else case e in #( 18244 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18245 esac 18246 fi 18247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18248 esac 18249 fi 18250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18251 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18253 CFLAGS="$xorg_testset_save_CFLAGS" 18254 fi 18255 18256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18259 fi 18260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18262 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18263 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18264 then : 18265 printf %s "(cached) " >&6 18266 else case e in #( 18267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18268 /* end confdefs.h. */ 18269 int i; 18270 _ACEOF 18271 if ac_fn_c_try_compile "$LINENO" 18272 then : 18273 xorg_cv_cc_flag_unused_command_line_argument=yes 18274 else case e in #( 18275 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18276 esac 18277 fi 18278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18279 esac 18280 fi 18281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18284 CFLAGS="$xorg_testset_save_CFLAGS" 18285 fi 18286 18287 found="no" 18288 18289 if test $found = "no" ; then 18290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18292 fi 18293 18294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18296 fi 18297 18298 CFLAGS="$CFLAGS -Winit-self" 18299 18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18301 printf %s "checking if $CC supports -Winit-self... " >&6; } 18302 cacheid=xorg_cv_cc_flag__Winit_self 18303 if eval test \${$cacheid+y} 18304 then : 18305 printf %s "(cached) " >&6 18306 else case e in #( 18307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18308 /* end confdefs.h. */ 18309 int i; 18310 int 18311 main (void) 18312 { 18313 18314 ; 18315 return 0; 18316 } 18317 _ACEOF 18318 if ac_fn_c_try_link "$LINENO" 18319 then : 18320 eval $cacheid=yes 18321 else case e in #( 18322 e) eval $cacheid=no ;; 18323 esac 18324 fi 18325 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18326 conftest$ac_exeext conftest.$ac_ext ;; 18327 esac 18328 fi 18329 18330 18331 CFLAGS="$xorg_testset_save_CFLAGS" 18332 18333 eval supported=\$$cacheid 18334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18335 printf "%s\n" "$supported" >&6; } 18336 if test "$supported" = "yes" ; then 18337 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18338 found="yes" 18339 fi 18340 fi 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 xorg_testset_save_CFLAGS="$CFLAGS" 18357 18358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18361 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18362 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18363 then : 18364 printf %s "(cached) " >&6 18365 else case e in #( 18366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18367 /* end confdefs.h. */ 18368 int i; 18369 _ACEOF 18370 if ac_fn_c_try_compile "$LINENO" 18371 then : 18372 xorg_cv_cc_flag_unknown_warning_option=yes 18373 else case e in #( 18374 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18375 esac 18376 fi 18377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18378 esac 18379 fi 18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18381 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18383 CFLAGS="$xorg_testset_save_CFLAGS" 18384 fi 18385 18386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18389 fi 18390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18392 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18393 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18394 then : 18395 printf %s "(cached) " >&6 18396 else case e in #( 18397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18398 /* end confdefs.h. */ 18399 int i; 18400 _ACEOF 18401 if ac_fn_c_try_compile "$LINENO" 18402 then : 18403 xorg_cv_cc_flag_unused_command_line_argument=yes 18404 else case e in #( 18405 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18406 esac 18407 fi 18408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18409 esac 18410 fi 18411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18412 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18414 CFLAGS="$xorg_testset_save_CFLAGS" 18415 fi 18416 18417 found="no" 18418 18419 if test $found = "no" ; then 18420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18422 fi 18423 18424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18426 fi 18427 18428 CFLAGS="$CFLAGS -Wmain" 18429 18430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18431 printf %s "checking if $CC supports -Wmain... " >&6; } 18432 cacheid=xorg_cv_cc_flag__Wmain 18433 if eval test \${$cacheid+y} 18434 then : 18435 printf %s "(cached) " >&6 18436 else case e in #( 18437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18438 /* end confdefs.h. */ 18439 int i; 18440 int 18441 main (void) 18442 { 18443 18444 ; 18445 return 0; 18446 } 18447 _ACEOF 18448 if ac_fn_c_try_link "$LINENO" 18449 then : 18450 eval $cacheid=yes 18451 else case e in #( 18452 e) eval $cacheid=no ;; 18453 esac 18454 fi 18455 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18456 conftest$ac_exeext conftest.$ac_ext ;; 18457 esac 18458 fi 18459 18460 18461 CFLAGS="$xorg_testset_save_CFLAGS" 18462 18463 eval supported=\$$cacheid 18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18465 printf "%s\n" "$supported" >&6; } 18466 if test "$supported" = "yes" ; then 18467 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18468 found="yes" 18469 fi 18470 fi 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 xorg_testset_save_CFLAGS="$CFLAGS" 18487 18488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18492 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18493 then : 18494 printf %s "(cached) " >&6 18495 else case e in #( 18496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18497 /* end confdefs.h. */ 18498 int i; 18499 _ACEOF 18500 if ac_fn_c_try_compile "$LINENO" 18501 then : 18502 xorg_cv_cc_flag_unknown_warning_option=yes 18503 else case e in #( 18504 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18505 esac 18506 fi 18507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18508 esac 18509 fi 18510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18511 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18513 CFLAGS="$xorg_testset_save_CFLAGS" 18514 fi 18515 18516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18519 fi 18520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18522 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18523 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18524 then : 18525 printf %s "(cached) " >&6 18526 else case e in #( 18527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18528 /* end confdefs.h. */ 18529 int i; 18530 _ACEOF 18531 if ac_fn_c_try_compile "$LINENO" 18532 then : 18533 xorg_cv_cc_flag_unused_command_line_argument=yes 18534 else case e in #( 18535 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18536 esac 18537 fi 18538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18539 esac 18540 fi 18541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18542 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18544 CFLAGS="$xorg_testset_save_CFLAGS" 18545 fi 18546 18547 found="no" 18548 18549 if test $found = "no" ; then 18550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18552 fi 18553 18554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18556 fi 18557 18558 CFLAGS="$CFLAGS -Wmissing-braces" 18559 18560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18561 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18562 cacheid=xorg_cv_cc_flag__Wmissing_braces 18563 if eval test \${$cacheid+y} 18564 then : 18565 printf %s "(cached) " >&6 18566 else case e in #( 18567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18568 /* end confdefs.h. */ 18569 int i; 18570 int 18571 main (void) 18572 { 18573 18574 ; 18575 return 0; 18576 } 18577 _ACEOF 18578 if ac_fn_c_try_link "$LINENO" 18579 then : 18580 eval $cacheid=yes 18581 else case e in #( 18582 e) eval $cacheid=no ;; 18583 esac 18584 fi 18585 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18586 conftest$ac_exeext conftest.$ac_ext ;; 18587 esac 18588 fi 18589 18590 18591 CFLAGS="$xorg_testset_save_CFLAGS" 18592 18593 eval supported=\$$cacheid 18594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18595 printf "%s\n" "$supported" >&6; } 18596 if test "$supported" = "yes" ; then 18597 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18598 found="yes" 18599 fi 18600 fi 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 xorg_testset_save_CFLAGS="$CFLAGS" 18617 18618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18621 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18622 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18623 then : 18624 printf %s "(cached) " >&6 18625 else case e in #( 18626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18627 /* end confdefs.h. */ 18628 int i; 18629 _ACEOF 18630 if ac_fn_c_try_compile "$LINENO" 18631 then : 18632 xorg_cv_cc_flag_unknown_warning_option=yes 18633 else case e in #( 18634 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18635 esac 18636 fi 18637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18638 esac 18639 fi 18640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18641 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18643 CFLAGS="$xorg_testset_save_CFLAGS" 18644 fi 18645 18646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18649 fi 18650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18652 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18653 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18654 then : 18655 printf %s "(cached) " >&6 18656 else case e in #( 18657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18658 /* end confdefs.h. */ 18659 int i; 18660 _ACEOF 18661 if ac_fn_c_try_compile "$LINENO" 18662 then : 18663 xorg_cv_cc_flag_unused_command_line_argument=yes 18664 else case e in #( 18665 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18666 esac 18667 fi 18668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18669 esac 18670 fi 18671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18672 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18674 CFLAGS="$xorg_testset_save_CFLAGS" 18675 fi 18676 18677 found="no" 18678 18679 if test $found = "no" ; then 18680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18682 fi 18683 18684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18686 fi 18687 18688 CFLAGS="$CFLAGS -Wsequence-point" 18689 18690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18691 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18692 cacheid=xorg_cv_cc_flag__Wsequence_point 18693 if eval test \${$cacheid+y} 18694 then : 18695 printf %s "(cached) " >&6 18696 else case e in #( 18697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18698 /* end confdefs.h. */ 18699 int i; 18700 int 18701 main (void) 18702 { 18703 18704 ; 18705 return 0; 18706 } 18707 _ACEOF 18708 if ac_fn_c_try_link "$LINENO" 18709 then : 18710 eval $cacheid=yes 18711 else case e in #( 18712 e) eval $cacheid=no ;; 18713 esac 18714 fi 18715 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18716 conftest$ac_exeext conftest.$ac_ext ;; 18717 esac 18718 fi 18719 18720 18721 CFLAGS="$xorg_testset_save_CFLAGS" 18722 18723 eval supported=\$$cacheid 18724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18725 printf "%s\n" "$supported" >&6; } 18726 if test "$supported" = "yes" ; then 18727 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18728 found="yes" 18729 fi 18730 fi 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 xorg_testset_save_CFLAGS="$CFLAGS" 18747 18748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18751 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18752 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18753 then : 18754 printf %s "(cached) " >&6 18755 else case e in #( 18756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18757 /* end confdefs.h. */ 18758 int i; 18759 _ACEOF 18760 if ac_fn_c_try_compile "$LINENO" 18761 then : 18762 xorg_cv_cc_flag_unknown_warning_option=yes 18763 else case e in #( 18764 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18765 esac 18766 fi 18767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18768 esac 18769 fi 18770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18771 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18773 CFLAGS="$xorg_testset_save_CFLAGS" 18774 fi 18775 18776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18779 fi 18780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18782 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18783 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18784 then : 18785 printf %s "(cached) " >&6 18786 else case e in #( 18787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18788 /* end confdefs.h. */ 18789 int i; 18790 _ACEOF 18791 if ac_fn_c_try_compile "$LINENO" 18792 then : 18793 xorg_cv_cc_flag_unused_command_line_argument=yes 18794 else case e in #( 18795 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18796 esac 18797 fi 18798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18799 esac 18800 fi 18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18802 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18804 CFLAGS="$xorg_testset_save_CFLAGS" 18805 fi 18806 18807 found="no" 18808 18809 if test $found = "no" ; then 18810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18812 fi 18813 18814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18816 fi 18817 18818 CFLAGS="$CFLAGS -Wreturn-type" 18819 18820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18821 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18822 cacheid=xorg_cv_cc_flag__Wreturn_type 18823 if eval test \${$cacheid+y} 18824 then : 18825 printf %s "(cached) " >&6 18826 else case e in #( 18827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18828 /* end confdefs.h. */ 18829 int i; 18830 int 18831 main (void) 18832 { 18833 18834 ; 18835 return 0; 18836 } 18837 _ACEOF 18838 if ac_fn_c_try_link "$LINENO" 18839 then : 18840 eval $cacheid=yes 18841 else case e in #( 18842 e) eval $cacheid=no ;; 18843 esac 18844 fi 18845 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18846 conftest$ac_exeext conftest.$ac_ext ;; 18847 esac 18848 fi 18849 18850 18851 CFLAGS="$xorg_testset_save_CFLAGS" 18852 18853 eval supported=\$$cacheid 18854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18855 printf "%s\n" "$supported" >&6; } 18856 if test "$supported" = "yes" ; then 18857 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18858 found="yes" 18859 fi 18860 fi 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 xorg_testset_save_CFLAGS="$CFLAGS" 18877 18878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18881 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18882 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18883 then : 18884 printf %s "(cached) " >&6 18885 else case e in #( 18886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18887 /* end confdefs.h. */ 18888 int i; 18889 _ACEOF 18890 if ac_fn_c_try_compile "$LINENO" 18891 then : 18892 xorg_cv_cc_flag_unknown_warning_option=yes 18893 else case e in #( 18894 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18895 esac 18896 fi 18897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18898 esac 18899 fi 18900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18901 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18903 CFLAGS="$xorg_testset_save_CFLAGS" 18904 fi 18905 18906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18909 fi 18910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18912 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18913 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18914 then : 18915 printf %s "(cached) " >&6 18916 else case e in #( 18917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18918 /* end confdefs.h. */ 18919 int i; 18920 _ACEOF 18921 if ac_fn_c_try_compile "$LINENO" 18922 then : 18923 xorg_cv_cc_flag_unused_command_line_argument=yes 18924 else case e in #( 18925 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18926 esac 18927 fi 18928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18929 esac 18930 fi 18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18932 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18934 CFLAGS="$xorg_testset_save_CFLAGS" 18935 fi 18936 18937 found="no" 18938 18939 if test $found = "no" ; then 18940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18942 fi 18943 18944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18946 fi 18947 18948 CFLAGS="$CFLAGS -Wtrigraphs" 18949 18950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18951 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18952 cacheid=xorg_cv_cc_flag__Wtrigraphs 18953 if eval test \${$cacheid+y} 18954 then : 18955 printf %s "(cached) " >&6 18956 else case e in #( 18957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18958 /* end confdefs.h. */ 18959 int i; 18960 int 18961 main (void) 18962 { 18963 18964 ; 18965 return 0; 18966 } 18967 _ACEOF 18968 if ac_fn_c_try_link "$LINENO" 18969 then : 18970 eval $cacheid=yes 18971 else case e in #( 18972 e) eval $cacheid=no ;; 18973 esac 18974 fi 18975 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18976 conftest$ac_exeext conftest.$ac_ext ;; 18977 esac 18978 fi 18979 18980 18981 CFLAGS="$xorg_testset_save_CFLAGS" 18982 18983 eval supported=\$$cacheid 18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18985 printf "%s\n" "$supported" >&6; } 18986 if test "$supported" = "yes" ; then 18987 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18988 found="yes" 18989 fi 18990 fi 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 xorg_testset_save_CFLAGS="$CFLAGS" 19007 19008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19011 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19012 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19013 then : 19014 printf %s "(cached) " >&6 19015 else case e in #( 19016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19017 /* end confdefs.h. */ 19018 int i; 19019 _ACEOF 19020 if ac_fn_c_try_compile "$LINENO" 19021 then : 19022 xorg_cv_cc_flag_unknown_warning_option=yes 19023 else case e in #( 19024 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19025 esac 19026 fi 19027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19028 esac 19029 fi 19030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19031 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19033 CFLAGS="$xorg_testset_save_CFLAGS" 19034 fi 19035 19036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19039 fi 19040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19042 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19043 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19044 then : 19045 printf %s "(cached) " >&6 19046 else case e in #( 19047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19048 /* end confdefs.h. */ 19049 int i; 19050 _ACEOF 19051 if ac_fn_c_try_compile "$LINENO" 19052 then : 19053 xorg_cv_cc_flag_unused_command_line_argument=yes 19054 else case e in #( 19055 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19056 esac 19057 fi 19058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19059 esac 19060 fi 19061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19062 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19064 CFLAGS="$xorg_testset_save_CFLAGS" 19065 fi 19066 19067 found="no" 19068 19069 if test $found = "no" ; then 19070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19072 fi 19073 19074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19076 fi 19077 19078 CFLAGS="$CFLAGS -Warray-bounds" 19079 19080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19081 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19082 cacheid=xorg_cv_cc_flag__Warray_bounds 19083 if eval test \${$cacheid+y} 19084 then : 19085 printf %s "(cached) " >&6 19086 else case e in #( 19087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19088 /* end confdefs.h. */ 19089 int i; 19090 int 19091 main (void) 19092 { 19093 19094 ; 19095 return 0; 19096 } 19097 _ACEOF 19098 if ac_fn_c_try_link "$LINENO" 19099 then : 19100 eval $cacheid=yes 19101 else case e in #( 19102 e) eval $cacheid=no ;; 19103 esac 19104 fi 19105 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19106 conftest$ac_exeext conftest.$ac_ext ;; 19107 esac 19108 fi 19109 19110 19111 CFLAGS="$xorg_testset_save_CFLAGS" 19112 19113 eval supported=\$$cacheid 19114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19115 printf "%s\n" "$supported" >&6; } 19116 if test "$supported" = "yes" ; then 19117 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19118 found="yes" 19119 fi 19120 fi 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 xorg_testset_save_CFLAGS="$CFLAGS" 19137 19138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19141 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19142 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19143 then : 19144 printf %s "(cached) " >&6 19145 else case e in #( 19146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19147 /* end confdefs.h. */ 19148 int i; 19149 _ACEOF 19150 if ac_fn_c_try_compile "$LINENO" 19151 then : 19152 xorg_cv_cc_flag_unknown_warning_option=yes 19153 else case e in #( 19154 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19155 esac 19156 fi 19157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19158 esac 19159 fi 19160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19161 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19163 CFLAGS="$xorg_testset_save_CFLAGS" 19164 fi 19165 19166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19169 fi 19170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19172 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19173 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19174 then : 19175 printf %s "(cached) " >&6 19176 else case e in #( 19177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19178 /* end confdefs.h. */ 19179 int i; 19180 _ACEOF 19181 if ac_fn_c_try_compile "$LINENO" 19182 then : 19183 xorg_cv_cc_flag_unused_command_line_argument=yes 19184 else case e in #( 19185 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19186 esac 19187 fi 19188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19189 esac 19190 fi 19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19192 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19194 CFLAGS="$xorg_testset_save_CFLAGS" 19195 fi 19196 19197 found="no" 19198 19199 if test $found = "no" ; then 19200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19202 fi 19203 19204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19206 fi 19207 19208 CFLAGS="$CFLAGS -Wwrite-strings" 19209 19210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19211 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19212 cacheid=xorg_cv_cc_flag__Wwrite_strings 19213 if eval test \${$cacheid+y} 19214 then : 19215 printf %s "(cached) " >&6 19216 else case e in #( 19217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19218 /* end confdefs.h. */ 19219 int i; 19220 int 19221 main (void) 19222 { 19223 19224 ; 19225 return 0; 19226 } 19227 _ACEOF 19228 if ac_fn_c_try_link "$LINENO" 19229 then : 19230 eval $cacheid=yes 19231 else case e in #( 19232 e) eval $cacheid=no ;; 19233 esac 19234 fi 19235 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19236 conftest$ac_exeext conftest.$ac_ext ;; 19237 esac 19238 fi 19239 19240 19241 CFLAGS="$xorg_testset_save_CFLAGS" 19242 19243 eval supported=\$$cacheid 19244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19245 printf "%s\n" "$supported" >&6; } 19246 if test "$supported" = "yes" ; then 19247 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19248 found="yes" 19249 fi 19250 fi 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 xorg_testset_save_CFLAGS="$CFLAGS" 19267 19268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19271 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19272 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19273 then : 19274 printf %s "(cached) " >&6 19275 else case e in #( 19276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19277 /* end confdefs.h. */ 19278 int i; 19279 _ACEOF 19280 if ac_fn_c_try_compile "$LINENO" 19281 then : 19282 xorg_cv_cc_flag_unknown_warning_option=yes 19283 else case e in #( 19284 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19285 esac 19286 fi 19287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19288 esac 19289 fi 19290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19291 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19293 CFLAGS="$xorg_testset_save_CFLAGS" 19294 fi 19295 19296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19299 fi 19300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19302 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19303 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19304 then : 19305 printf %s "(cached) " >&6 19306 else case e in #( 19307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19308 /* end confdefs.h. */ 19309 int i; 19310 _ACEOF 19311 if ac_fn_c_try_compile "$LINENO" 19312 then : 19313 xorg_cv_cc_flag_unused_command_line_argument=yes 19314 else case e in #( 19315 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19316 esac 19317 fi 19318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19319 esac 19320 fi 19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19322 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19324 CFLAGS="$xorg_testset_save_CFLAGS" 19325 fi 19326 19327 found="no" 19328 19329 if test $found = "no" ; then 19330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19332 fi 19333 19334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19336 fi 19337 19338 CFLAGS="$CFLAGS -Waddress" 19339 19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19341 printf %s "checking if $CC supports -Waddress... " >&6; } 19342 cacheid=xorg_cv_cc_flag__Waddress 19343 if eval test \${$cacheid+y} 19344 then : 19345 printf %s "(cached) " >&6 19346 else case e in #( 19347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19348 /* end confdefs.h. */ 19349 int i; 19350 int 19351 main (void) 19352 { 19353 19354 ; 19355 return 0; 19356 } 19357 _ACEOF 19358 if ac_fn_c_try_link "$LINENO" 19359 then : 19360 eval $cacheid=yes 19361 else case e in #( 19362 e) eval $cacheid=no ;; 19363 esac 19364 fi 19365 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19366 conftest$ac_exeext conftest.$ac_ext ;; 19367 esac 19368 fi 19369 19370 19371 CFLAGS="$xorg_testset_save_CFLAGS" 19372 19373 eval supported=\$$cacheid 19374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19375 printf "%s\n" "$supported" >&6; } 19376 if test "$supported" = "yes" ; then 19377 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19378 found="yes" 19379 fi 19380 fi 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 xorg_testset_save_CFLAGS="$CFLAGS" 19397 19398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19401 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19402 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19403 then : 19404 printf %s "(cached) " >&6 19405 else case e in #( 19406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19407 /* end confdefs.h. */ 19408 int i; 19409 _ACEOF 19410 if ac_fn_c_try_compile "$LINENO" 19411 then : 19412 xorg_cv_cc_flag_unknown_warning_option=yes 19413 else case e in #( 19414 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19415 esac 19416 fi 19417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19418 esac 19419 fi 19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19421 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19423 CFLAGS="$xorg_testset_save_CFLAGS" 19424 fi 19425 19426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19429 fi 19430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19432 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19433 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19434 then : 19435 printf %s "(cached) " >&6 19436 else case e in #( 19437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19438 /* end confdefs.h. */ 19439 int i; 19440 _ACEOF 19441 if ac_fn_c_try_compile "$LINENO" 19442 then : 19443 xorg_cv_cc_flag_unused_command_line_argument=yes 19444 else case e in #( 19445 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19446 esac 19447 fi 19448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19449 esac 19450 fi 19451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19452 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19454 CFLAGS="$xorg_testset_save_CFLAGS" 19455 fi 19456 19457 found="no" 19458 19459 if test $found = "no" ; then 19460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19462 fi 19463 19464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19466 fi 19467 19468 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19469 19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19471 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19472 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19473 if eval test \${$cacheid+y} 19474 then : 19475 printf %s "(cached) " >&6 19476 else case e in #( 19477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19478 /* end confdefs.h. */ 19479 int i; 19480 int 19481 main (void) 19482 { 19483 19484 ; 19485 return 0; 19486 } 19487 _ACEOF 19488 if ac_fn_c_try_link "$LINENO" 19489 then : 19490 eval $cacheid=yes 19491 else case e in #( 19492 e) eval $cacheid=no ;; 19493 esac 19494 fi 19495 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19496 conftest$ac_exeext conftest.$ac_ext ;; 19497 esac 19498 fi 19499 19500 19501 CFLAGS="$xorg_testset_save_CFLAGS" 19502 19503 eval supported=\$$cacheid 19504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19505 printf "%s\n" "$supported" >&6; } 19506 if test "$supported" = "yes" ; then 19507 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19508 found="yes" 19509 fi 19510 fi 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 xorg_testset_save_CFLAGS="$CFLAGS" 19527 19528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19531 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19532 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19533 then : 19534 printf %s "(cached) " >&6 19535 else case e in #( 19536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19537 /* end confdefs.h. */ 19538 int i; 19539 _ACEOF 19540 if ac_fn_c_try_compile "$LINENO" 19541 then : 19542 xorg_cv_cc_flag_unknown_warning_option=yes 19543 else case e in #( 19544 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19545 esac 19546 fi 19547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19548 esac 19549 fi 19550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19551 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19553 CFLAGS="$xorg_testset_save_CFLAGS" 19554 fi 19555 19556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19559 fi 19560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19562 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19563 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19564 then : 19565 printf %s "(cached) " >&6 19566 else case e in #( 19567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19568 /* end confdefs.h. */ 19569 int i; 19570 _ACEOF 19571 if ac_fn_c_try_compile "$LINENO" 19572 then : 19573 xorg_cv_cc_flag_unused_command_line_argument=yes 19574 else case e in #( 19575 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19576 esac 19577 fi 19578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19579 esac 19580 fi 19581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19582 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19584 CFLAGS="$xorg_testset_save_CFLAGS" 19585 fi 19586 19587 found="no" 19588 19589 if test $found = "no" ; then 19590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19592 fi 19593 19594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19596 fi 19597 19598 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19599 19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19601 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19602 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19603 if eval test \${$cacheid+y} 19604 then : 19605 printf %s "(cached) " >&6 19606 else case e in #( 19607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19608 /* end confdefs.h. */ 19609 int i; 19610 int 19611 main (void) 19612 { 19613 19614 ; 19615 return 0; 19616 } 19617 _ACEOF 19618 if ac_fn_c_try_link "$LINENO" 19619 then : 19620 eval $cacheid=yes 19621 else case e in #( 19622 e) eval $cacheid=no ;; 19623 esac 19624 fi 19625 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19626 conftest$ac_exeext conftest.$ac_ext ;; 19627 esac 19628 fi 19629 19630 19631 CFLAGS="$xorg_testset_save_CFLAGS" 19632 19633 eval supported=\$$cacheid 19634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19635 printf "%s\n" "$supported" >&6; } 19636 if test "$supported" = "yes" ; then 19637 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19638 found="yes" 19639 fi 19640 fi 19641 19642 19643 fi 19644 19645 19646 19647 19648 19649 19650 19651 CWARNFLAGS="$BASE_CFLAGS" 19652 if test "x$GCC" = xyes ; then 19653 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19654 fi 19655 19656 19657 19658 19659 19660 19661 19662 19663 # Check whether --enable-strict-compilation was given. 19664 if test ${enable_strict_compilation+y} 19665 then : 19666 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19667 else case e in #( 19668 e) STRICT_COMPILE=no ;; 19669 esac 19670 fi 19671 19672 19673 19674 19675 19676 19677 STRICT_CFLAGS="" 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 xorg_testset_save_CFLAGS="$CFLAGS" 19692 19693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19697 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19698 then : 19699 printf %s "(cached) " >&6 19700 else case e in #( 19701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19702 /* end confdefs.h. */ 19703 int i; 19704 _ACEOF 19705 if ac_fn_c_try_compile "$LINENO" 19706 then : 19707 xorg_cv_cc_flag_unknown_warning_option=yes 19708 else case e in #( 19709 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19710 esac 19711 fi 19712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19713 esac 19714 fi 19715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19716 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19718 CFLAGS="$xorg_testset_save_CFLAGS" 19719 fi 19720 19721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19724 fi 19725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19727 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19728 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19729 then : 19730 printf %s "(cached) " >&6 19731 else case e in #( 19732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19733 /* end confdefs.h. */ 19734 int i; 19735 _ACEOF 19736 if ac_fn_c_try_compile "$LINENO" 19737 then : 19738 xorg_cv_cc_flag_unused_command_line_argument=yes 19739 else case e in #( 19740 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19741 esac 19742 fi 19743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19744 esac 19745 fi 19746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19747 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19749 CFLAGS="$xorg_testset_save_CFLAGS" 19750 fi 19751 19752 found="no" 19753 19754 if test $found = "no" ; then 19755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19757 fi 19758 19759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19761 fi 19762 19763 CFLAGS="$CFLAGS -pedantic" 19764 19765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19766 printf %s "checking if $CC supports -pedantic... " >&6; } 19767 cacheid=xorg_cv_cc_flag__pedantic 19768 if eval test \${$cacheid+y} 19769 then : 19770 printf %s "(cached) " >&6 19771 else case e in #( 19772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19773 /* end confdefs.h. */ 19774 int i; 19775 int 19776 main (void) 19777 { 19778 19779 ; 19780 return 0; 19781 } 19782 _ACEOF 19783 if ac_fn_c_try_link "$LINENO" 19784 then : 19785 eval $cacheid=yes 19786 else case e in #( 19787 e) eval $cacheid=no ;; 19788 esac 19789 fi 19790 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19791 conftest$ac_exeext conftest.$ac_ext ;; 19792 esac 19793 fi 19794 19795 19796 CFLAGS="$xorg_testset_save_CFLAGS" 19797 19798 eval supported=\$$cacheid 19799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19800 printf "%s\n" "$supported" >&6; } 19801 if test "$supported" = "yes" ; then 19802 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19803 found="yes" 19804 fi 19805 fi 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 xorg_testset_save_CFLAGS="$CFLAGS" 19822 19823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19826 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19827 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19828 then : 19829 printf %s "(cached) " >&6 19830 else case e in #( 19831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19832 /* end confdefs.h. */ 19833 int i; 19834 _ACEOF 19835 if ac_fn_c_try_compile "$LINENO" 19836 then : 19837 xorg_cv_cc_flag_unknown_warning_option=yes 19838 else case e in #( 19839 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19840 esac 19841 fi 19842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19843 esac 19844 fi 19845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19846 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19848 CFLAGS="$xorg_testset_save_CFLAGS" 19849 fi 19850 19851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19854 fi 19855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19857 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19858 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19859 then : 19860 printf %s "(cached) " >&6 19861 else case e in #( 19862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19863 /* end confdefs.h. */ 19864 int i; 19865 _ACEOF 19866 if ac_fn_c_try_compile "$LINENO" 19867 then : 19868 xorg_cv_cc_flag_unused_command_line_argument=yes 19869 else case e in #( 19870 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19871 esac 19872 fi 19873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19874 esac 19875 fi 19876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19877 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19879 CFLAGS="$xorg_testset_save_CFLAGS" 19880 fi 19881 19882 found="no" 19883 19884 if test $found = "no" ; then 19885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19887 fi 19888 19889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19891 fi 19892 19893 CFLAGS="$CFLAGS -Werror" 19894 19895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19896 printf %s "checking if $CC supports -Werror... " >&6; } 19897 cacheid=xorg_cv_cc_flag__Werror 19898 if eval test \${$cacheid+y} 19899 then : 19900 printf %s "(cached) " >&6 19901 else case e in #( 19902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19903 /* end confdefs.h. */ 19904 int i; 19905 int 19906 main (void) 19907 { 19908 19909 ; 19910 return 0; 19911 } 19912 _ACEOF 19913 if ac_fn_c_try_link "$LINENO" 19914 then : 19915 eval $cacheid=yes 19916 else case e in #( 19917 e) eval $cacheid=no ;; 19918 esac 19919 fi 19920 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19921 conftest$ac_exeext conftest.$ac_ext ;; 19922 esac 19923 fi 19924 19925 19926 CFLAGS="$xorg_testset_save_CFLAGS" 19927 19928 eval supported=\$$cacheid 19929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19930 printf "%s\n" "$supported" >&6; } 19931 if test "$supported" = "yes" ; then 19932 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19933 found="yes" 19934 fi 19935 fi 19936 19937 if test $found = "no" ; then 19938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19940 fi 19941 19942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19944 fi 19945 19946 CFLAGS="$CFLAGS -errwarn" 19947 19948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19949 printf %s "checking if $CC supports -errwarn... " >&6; } 19950 cacheid=xorg_cv_cc_flag__errwarn 19951 if eval test \${$cacheid+y} 19952 then : 19953 printf %s "(cached) " >&6 19954 else case e in #( 19955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19956 /* end confdefs.h. */ 19957 int i; 19958 int 19959 main (void) 19960 { 19961 19962 ; 19963 return 0; 19964 } 19965 _ACEOF 19966 if ac_fn_c_try_link "$LINENO" 19967 then : 19968 eval $cacheid=yes 19969 else case e in #( 19970 e) eval $cacheid=no ;; 19971 esac 19972 fi 19973 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19974 conftest$ac_exeext conftest.$ac_ext ;; 19975 esac 19976 fi 19977 19978 19979 CFLAGS="$xorg_testset_save_CFLAGS" 19980 19981 eval supported=\$$cacheid 19982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19983 printf "%s\n" "$supported" >&6; } 19984 if test "$supported" = "yes" ; then 19985 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19986 found="yes" 19987 fi 19988 fi 19989 19990 19991 19992 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19993 # activate it with -Werror, so we add it here explicitly. 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 xorg_testset_save_CFLAGS="$CFLAGS" 20008 20009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20012 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20013 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20014 then : 20015 printf %s "(cached) " >&6 20016 else case e in #( 20017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20018 /* end confdefs.h. */ 20019 int i; 20020 _ACEOF 20021 if ac_fn_c_try_compile "$LINENO" 20022 then : 20023 xorg_cv_cc_flag_unknown_warning_option=yes 20024 else case e in #( 20025 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20026 esac 20027 fi 20028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20029 esac 20030 fi 20031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20032 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20034 CFLAGS="$xorg_testset_save_CFLAGS" 20035 fi 20036 20037 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20040 fi 20041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20043 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20044 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20045 then : 20046 printf %s "(cached) " >&6 20047 else case e in #( 20048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20049 /* end confdefs.h. */ 20050 int i; 20051 _ACEOF 20052 if ac_fn_c_try_compile "$LINENO" 20053 then : 20054 xorg_cv_cc_flag_unused_command_line_argument=yes 20055 else case e in #( 20056 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20057 esac 20058 fi 20059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20060 esac 20061 fi 20062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20063 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20065 CFLAGS="$xorg_testset_save_CFLAGS" 20066 fi 20067 20068 found="no" 20069 20070 if test $found = "no" ; then 20071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20073 fi 20074 20075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20077 fi 20078 20079 CFLAGS="$CFLAGS -Werror=attributes" 20080 20081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20082 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20083 cacheid=xorg_cv_cc_flag__Werror_attributes 20084 if eval test \${$cacheid+y} 20085 then : 20086 printf %s "(cached) " >&6 20087 else case e in #( 20088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20089 /* end confdefs.h. */ 20090 int i; 20091 int 20092 main (void) 20093 { 20094 20095 ; 20096 return 0; 20097 } 20098 _ACEOF 20099 if ac_fn_c_try_link "$LINENO" 20100 then : 20101 eval $cacheid=yes 20102 else case e in #( 20103 e) eval $cacheid=no ;; 20104 esac 20105 fi 20106 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20107 conftest$ac_exeext conftest.$ac_ext ;; 20108 esac 20109 fi 20110 20111 20112 CFLAGS="$xorg_testset_save_CFLAGS" 20113 20114 eval supported=\$$cacheid 20115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20116 printf "%s\n" "$supported" >&6; } 20117 if test "$supported" = "yes" ; then 20118 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20119 found="yes" 20120 fi 20121 fi 20122 20123 20124 20125 if test "x$STRICT_COMPILE" = "xyes"; then 20126 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20127 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20128 fi 20129 20130 20131 20132 20133 20134 20135 20136 20137 cat >>confdefs.h <<_ACEOF 20138 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20139 _ACEOF 20140 20141 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20142 if test "x$PVM" = "x"; then 20143 PVM="0" 20144 fi 20145 20146 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20147 20148 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20149 if test "x$PVP" = "x"; then 20150 PVP="0" 20151 fi 20152 20153 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20154 20155 20156 20157 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20158 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20159 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20160 touch \$(top_srcdir)/ChangeLog; \ 20161 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20162 20163 20164 20165 20166 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20167 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20168 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20169 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20170 touch \$(top_srcdir)/INSTALL; \ 20171 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20172 20173 20174 20175 20176 20177 20178 case $host_os in 20179 solaris*) 20180 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20181 # check for a man page file found in later versions that use 20182 # traditional section numbers instead 20183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20184 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20185 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20186 then : 20187 printf %s "(cached) " >&6 20188 else case e in #( 20189 e) test "$cross_compiling" = yes && 20190 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20191 if test -r "/usr/share/man/man7/attributes.7"; then 20192 ac_cv_file__usr_share_man_man7_attributes_7=yes 20193 else 20194 ac_cv_file__usr_share_man_man7_attributes_7=no 20195 fi ;; 20196 esac 20197 fi 20198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20199 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20200 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20201 then : 20202 SYSV_MAN_SECTIONS=false 20203 else case e in #( 20204 e) SYSV_MAN_SECTIONS=true ;; 20205 esac 20206 fi 20207 20208 ;; 20209 *) SYSV_MAN_SECTIONS=false ;; 20210 esac 20211 20212 if test x$APP_MAN_SUFFIX = x ; then 20213 APP_MAN_SUFFIX=1 20214 fi 20215 if test x$APP_MAN_DIR = x ; then 20216 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20217 fi 20218 20219 if test x$LIB_MAN_SUFFIX = x ; then 20220 LIB_MAN_SUFFIX=3 20221 fi 20222 if test x$LIB_MAN_DIR = x ; then 20223 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20224 fi 20225 20226 if test x$FILE_MAN_SUFFIX = x ; then 20227 case $SYSV_MAN_SECTIONS in 20228 true) FILE_MAN_SUFFIX=4 ;; 20229 *) FILE_MAN_SUFFIX=5 ;; 20230 esac 20231 fi 20232 if test x$FILE_MAN_DIR = x ; then 20233 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20234 fi 20235 20236 if test x$MISC_MAN_SUFFIX = x ; then 20237 case $SYSV_MAN_SECTIONS in 20238 true) MISC_MAN_SUFFIX=5 ;; 20239 *) MISC_MAN_SUFFIX=7 ;; 20240 esac 20241 fi 20242 if test x$MISC_MAN_DIR = x ; then 20243 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20244 fi 20245 20246 if test x$DRIVER_MAN_SUFFIX = x ; then 20247 case $SYSV_MAN_SECTIONS in 20248 true) DRIVER_MAN_SUFFIX=7 ;; 20249 *) DRIVER_MAN_SUFFIX=4 ;; 20250 esac 20251 fi 20252 if test x$DRIVER_MAN_DIR = x ; then 20253 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20254 fi 20255 20256 if test x$ADMIN_MAN_SUFFIX = x ; then 20257 case $SYSV_MAN_SECTIONS in 20258 true) ADMIN_MAN_SUFFIX=1m ;; 20259 *) ADMIN_MAN_SUFFIX=8 ;; 20260 esac 20261 fi 20262 if test x$ADMIN_MAN_DIR = x ; then 20263 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20264 fi 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 20275 20276 20277 20278 20279 20280 XORG_MAN_PAGE="X Version 11" 20281 20282 MAN_SUBSTS="\ 20283 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20284 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20285 -e 's|__xservername__|Xorg|g' \ 20286 -e 's|__xconfigfile__|xorg.conf|g' \ 20287 -e 's|__projectroot__|\$(prefix)|g' \ 20288 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20289 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20290 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20291 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20292 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20293 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20294 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20295 20296 20297 20298 20299 AM_DEFAULT_VERBOSITY=0 20300 20301 20302 20303 # Check whether --enable-malloc0returnsnull was given. 20304 if test ${enable_malloc0returnsnull+y} 20305 then : 20306 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20307 else case e in #( 20308 e) MALLOC_ZERO_RETURNS_NULL=yes ;; 20309 esac 20310 fi 20311 20312 20313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5 20314 printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; } 20315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20316 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20317 20318 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20319 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20320 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20321 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20322 else 20323 MALLOC_ZERO_CFLAGS="" 20324 XMALLOC_ZERO_CFLAGS="" 20325 XTMALLOC_ZERO_CFLAGS="" 20326 fi 20327 20328 20329 20330 20331 20332 20333 # Check render configuration, strip extra digits from package version to 20334 # find the required protocol version 20335 if test "$VERSION" = "" ; then 20336 VERSION=$PACKAGE_VERSION; 20337 fi 20338 RENDER_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 20339 20340 20341 # Obtain compiler/linker options for dependencies 20342 20343 pkg_failed=no 20344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RENDER" >&5 20345 printf %s "checking for RENDER... " >&6; } 20346 20347 if test -n "$RENDER_CFLAGS"; then 20348 pkg_cv_RENDER_CFLAGS="$RENDER_CFLAGS" 20349 elif test -n "$PKG_CONFIG"; then 20350 if test -n "$PKG_CONFIG" && \ 20351 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5 20352 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5 20353 ac_status=$? 20354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20355 test $ac_status = 0; }; then 20356 pkg_cv_RENDER_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null` 20357 test "x$?" != "x0" && pkg_failed=yes 20358 else 20359 pkg_failed=yes 20360 fi 20361 else 20362 pkg_failed=untried 20363 fi 20364 if test -n "$RENDER_LIBS"; then 20365 pkg_cv_RENDER_LIBS="$RENDER_LIBS" 20366 elif test -n "$PKG_CONFIG"; then 20367 if test -n "$PKG_CONFIG" && \ 20368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 renderproto >= \$RENDER_VERSION\""; } >&5 20369 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 renderproto >= $RENDER_VERSION") 2>&5 20370 ac_status=$? 20371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20372 test $ac_status = 0; }; then 20373 pkg_cv_RENDER_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>/dev/null` 20374 test "x$?" != "x0" && pkg_failed=yes 20375 else 20376 pkg_failed=yes 20377 fi 20378 else 20379 pkg_failed=untried 20380 fi 20381 20382 20383 20384 if test $pkg_failed = yes; then 20385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20386 printf "%s\n" "no" >&6; } 20387 20388 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20389 _pkg_short_errors_supported=yes 20390 else 20391 _pkg_short_errors_supported=no 20392 fi 20393 if test $_pkg_short_errors_supported = yes; then 20394 RENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1` 20395 else 20396 RENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 renderproto >= $RENDER_VERSION" 2>&1` 20397 fi 20398 # Put the nasty error message in config.log where it belongs 20399 echo "$RENDER_PKG_ERRORS" >&5 20400 20401 as_fn_error $? "Package requirements (x11 >= 1.6 renderproto >= $RENDER_VERSION) were not met: 20402 20403 $RENDER_PKG_ERRORS 20404 20405 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20406 installed software in a non-standard prefix. 20407 20408 Alternatively, you may set the environment variables RENDER_CFLAGS 20409 and RENDER_LIBS to avoid the need to call pkg-config. 20410 See the pkg-config man page for more details." "$LINENO" 5 20411 elif test $pkg_failed = untried; then 20412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20413 printf "%s\n" "no" >&6; } 20414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20415 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20416 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20417 is in your PATH or set the PKG_CONFIG environment variable to the full 20418 path to pkg-config. 20419 20420 Alternatively, you may set the environment variables RENDER_CFLAGS 20421 and RENDER_LIBS to avoid the need to call pkg-config. 20422 See the pkg-config man page for more details. 20423 20424 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20425 See 'config.log' for more details" "$LINENO" 5; } 20426 else 20427 RENDER_CFLAGS=$pkg_cv_RENDER_CFLAGS 20428 RENDER_LIBS=$pkg_cv_RENDER_LIBS 20429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20430 printf "%s\n" "yes" >&6; } 20431 20432 fi 20433 20434 ac_config_files="$ac_config_files Makefile src/Makefile Doxyfile xrender.pc" 20435 20436 cat >confcache <<\_ACEOF 20437 # This file is a shell script that caches the results of configure 20438 # tests run on this system so they can be shared between configure 20439 # scripts and configure runs, see configure's option --config-cache. 20440 # It is not useful on other systems. If it contains results you don't 20441 # want to keep, you may remove or edit it. 20442 # 20443 # config.status only pays attention to the cache file if you give it 20444 # the --recheck option to rerun configure. 20445 # 20446 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 20447 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 20448 # following values. 20449 20450 _ACEOF 20451 20452 # The following way of writing the cache mishandles newlines in values, 20453 # but we know of no workaround that is simple, portable, and efficient. 20454 # So, we kill variables containing newlines. 20455 # Ultrix sh set writes to stderr and can't be redirected directly, 20456 # and sets the high bit in the cache file unless we assign to the vars. 20457 ( 20458 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20459 eval ac_val=\$$ac_var 20460 case $ac_val in #( 20461 *${as_nl}*) 20462 case $ac_var in #( 20463 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20464 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20465 esac 20466 case $ac_var in #( 20467 _ | IFS | as_nl) ;; #( 20468 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20469 *) { eval $ac_var=; unset $ac_var;} ;; 20470 esac ;; 20471 esac 20472 done 20473 20474 (set) 2>&1 | 20475 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20476 *${as_nl}ac_space=\ *) 20477 # 'set' does not quote correctly, so add quotes: double-quote 20478 # substitution turns \\\\ into \\, and sed turns \\ into \. 20479 sed -n \ 20480 "s/'/'\\\\''/g; 20481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20482 ;; #( 20483 *) 20484 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20485 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20486 ;; 20487 esac | 20488 sort 20489 ) | 20490 sed ' 20491 /^ac_cv_env_/b end 20492 t clear 20493 :clear 20494 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20495 t end 20496 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20497 :end' >>confcache 20498 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20499 if test -w "$cache_file"; then 20500 if test "x$cache_file" != "x/dev/null"; then 20501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20502 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20503 if test ! -f "$cache_file" || test -h "$cache_file"; then 20504 cat confcache >"$cache_file" 20505 else 20506 case $cache_file in #( 20507 */* | ?:*) 20508 mv -f confcache "$cache_file"$$ && 20509 mv -f "$cache_file"$$ "$cache_file" ;; #( 20510 *) 20511 mv -f confcache "$cache_file" ;; 20512 esac 20513 fi 20514 fi 20515 else 20516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20517 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20518 fi 20519 fi 20520 rm -f confcache 20521 20522 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20523 # Let make expand exec_prefix. 20524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20525 20526 DEFS=-DHAVE_CONFIG_H 20527 20528 ac_libobjs= 20529 ac_ltlibobjs= 20530 U= 20531 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20532 # 1. Remove the extension, and $U if already installed. 20533 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20534 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20535 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20536 # will be set to the directory where LIBOBJS objects are built. 20537 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20538 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20539 done 20540 LIBOBJS=$ac_libobjs 20541 20542 LTLIBOBJS=$ac_ltlibobjs 20543 20544 20545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20546 printf %s "checking that generated files are newer than configure... " >&6; } 20547 if test -n "$am_sleep_pid"; then 20548 # Hide warnings about reused PIDs. 20549 wait $am_sleep_pid 2>/dev/null 20550 fi 20551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20552 printf "%s\n" "done" >&6; } 20553 case $enable_silent_rules in # ((( 20554 yes) AM_DEFAULT_VERBOSITY=0;; 20555 no) AM_DEFAULT_VERBOSITY=1;; 20556 esac 20557 if test $am_cv_make_support_nested_variables = yes; then 20558 AM_V='$(V)' 20559 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20560 else 20561 AM_V=$AM_DEFAULT_VERBOSITY 20562 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20563 fi 20564 20565 if test -n "$EXEEXT"; then 20566 am__EXEEXT_TRUE= 20567 am__EXEEXT_FALSE='#' 20568 else 20569 am__EXEEXT_TRUE='#' 20570 am__EXEEXT_FALSE= 20571 fi 20572 20573 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20574 as_fn_error $? "conditional \"AMDEP\" was never defined. 20575 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20576 fi 20577 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20578 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20579 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20580 fi 20581 20582 : "${CONFIG_STATUS=./config.status}" 20583 ac_write_fail=0 20584 ac_clean_files_save=$ac_clean_files 20585 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20587 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20588 as_write_fail=0 20589 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20590 #! $SHELL 20591 # Generated by $as_me. 20592 # Run this file to recreate the current configuration. 20593 # Compiler output produced by configure, useful for debugging 20594 # configure, is in config.log if it exists. 20595 20596 debug=false 20597 ac_cs_recheck=false 20598 ac_cs_silent=false 20599 20600 SHELL=\${CONFIG_SHELL-$SHELL} 20601 export SHELL 20602 _ASEOF 20603 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20604 ## -------------------- ## 20605 ## M4sh Initialization. ## 20606 ## -------------------- ## 20607 20608 # Be more Bourne compatible 20609 DUALCASE=1; export DUALCASE # for MKS sh 20610 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20611 then : 20612 emulate sh 20613 NULLCMD=: 20614 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20615 # is contrary to our usage. Disable this feature. 20616 alias -g '${1+"$@"}'='"$@"' 20617 setopt NO_GLOB_SUBST 20618 else case e in #( 20619 e) case `(set -o) 2>/dev/null` in #( 20620 *posix*) : 20621 set -o posix ;; #( 20622 *) : 20623 ;; 20624 esac ;; 20625 esac 20626 fi 20627 20628 20629 20630 # Reset variables that may have inherited troublesome values from 20631 # the environment. 20632 20633 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20634 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20635 # side effect of setting IFS to empty, thus disabling word splitting.) 20636 # Quoting is to prevent editors from complaining about space-tab. 20637 as_nl=' 20638 ' 20639 export as_nl 20640 IFS=" "" $as_nl" 20641 20642 PS1='$ ' 20643 PS2='> ' 20644 PS4='+ ' 20645 20646 # Ensure predictable behavior from utilities with locale-dependent output. 20647 LC_ALL=C 20648 export LC_ALL 20649 LANGUAGE=C 20650 export LANGUAGE 20651 20652 # We cannot yet rely on "unset" to work, but we need these variables 20653 # to be unset--not just set to an empty or harmless value--now, to 20654 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20655 # also avoids known problems related to "unset" and subshell syntax 20656 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20657 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20658 do eval test \${$as_var+y} \ 20659 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20660 done 20661 20662 # Ensure that fds 0, 1, and 2 are open. 20663 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20664 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20665 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20666 20667 # The user is always right. 20668 if ${PATH_SEPARATOR+false} :; then 20669 PATH_SEPARATOR=: 20670 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20671 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20672 PATH_SEPARATOR=';' 20673 } 20674 fi 20675 20676 20677 # Find who we are. Look in the path if we contain no directory separator. 20678 as_myself= 20679 case $0 in #(( 20680 *[\\/]* ) as_myself=$0 ;; 20681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20682 for as_dir in $PATH 20683 do 20684 IFS=$as_save_IFS 20685 case $as_dir in #((( 20686 '') as_dir=./ ;; 20687 */) ;; 20688 *) as_dir=$as_dir/ ;; 20689 esac 20690 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20691 done 20692 IFS=$as_save_IFS 20693 20694 ;; 20695 esac 20696 # We did not find ourselves, most probably we were run as 'sh COMMAND' 20697 # in which case we are not to be found in the path. 20698 if test "x$as_myself" = x; then 20699 as_myself=$0 20700 fi 20701 if test ! -f "$as_myself"; then 20702 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20703 exit 1 20704 fi 20705 20706 20707 20708 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20709 # ---------------------------------------- 20710 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20711 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20712 # script with STATUS, using 1 if that was 0. 20713 as_fn_error () 20714 { 20715 as_status=$1; test $as_status -eq 0 && as_status=1 20716 if test "$4"; then 20717 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20719 fi 20720 printf "%s\n" "$as_me: error: $2" >&2 20721 as_fn_exit $as_status 20722 } # as_fn_error 20723 20724 20725 # as_fn_set_status STATUS 20726 # ----------------------- 20727 # Set $? to STATUS, without forking. 20728 as_fn_set_status () 20729 { 20730 return $1 20731 } # as_fn_set_status 20732 20733 # as_fn_exit STATUS 20734 # ----------------- 20735 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20736 as_fn_exit () 20737 { 20738 set +e 20739 as_fn_set_status $1 20740 exit $1 20741 } # as_fn_exit 20742 20743 # as_fn_unset VAR 20744 # --------------- 20745 # Portably unset VAR. 20746 as_fn_unset () 20747 { 20748 { eval $1=; unset $1;} 20749 } 20750 as_unset=as_fn_unset 20751 20752 # as_fn_append VAR VALUE 20753 # ---------------------- 20754 # Append the text in VALUE to the end of the definition contained in VAR. Take 20755 # advantage of any shell optimizations that allow amortized linear growth over 20756 # repeated appends, instead of the typical quadratic growth present in naive 20757 # implementations. 20758 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20759 then : 20760 eval 'as_fn_append () 20761 { 20762 eval $1+=\$2 20763 }' 20764 else case e in #( 20765 e) as_fn_append () 20766 { 20767 eval $1=\$$1\$2 20768 } ;; 20769 esac 20770 fi # as_fn_append 20771 20772 # as_fn_arith ARG... 20773 # ------------------ 20774 # Perform arithmetic evaluation on the ARGs, and store the result in the 20775 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20776 # must be portable across $(()) and expr. 20777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20778 then : 20779 eval 'as_fn_arith () 20780 { 20781 as_val=$(( $* )) 20782 }' 20783 else case e in #( 20784 e) as_fn_arith () 20785 { 20786 as_val=`expr "$@" || test $? -eq 1` 20787 } ;; 20788 esac 20789 fi # as_fn_arith 20790 20791 20792 if expr a : '\(a\)' >/dev/null 2>&1 && 20793 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20794 as_expr=expr 20795 else 20796 as_expr=false 20797 fi 20798 20799 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20800 as_basename=basename 20801 else 20802 as_basename=false 20803 fi 20804 20805 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20806 as_dirname=dirname 20807 else 20808 as_dirname=false 20809 fi 20810 20811 as_me=`$as_basename -- "$0" || 20812 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20813 X"$0" : 'X\(//\)$' \| \ 20814 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20815 printf "%s\n" X/"$0" | 20816 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20817 s//\1/ 20818 q 20819 } 20820 /^X\/\(\/\/\)$/{ 20821 s//\1/ 20822 q 20823 } 20824 /^X\/\(\/\).*/{ 20825 s//\1/ 20826 q 20827 } 20828 s/.*/./; q'` 20829 20830 # Avoid depending upon Character Ranges. 20831 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20832 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20833 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20834 as_cr_digits='0123456789' 20835 as_cr_alnum=$as_cr_Letters$as_cr_digits 20836 20837 20838 # Determine whether it's possible to make 'echo' print without a newline. 20839 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20840 # for compatibility with existing Makefiles. 20841 ECHO_C= ECHO_N= ECHO_T= 20842 case `echo -n x` in #((((( 20843 -n*) 20844 case `echo 'xy\c'` in 20845 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20846 xy) ECHO_C='\c';; 20847 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20848 ECHO_T=' ';; 20849 esac;; 20850 *) 20851 ECHO_N='-n';; 20852 esac 20853 20854 # For backward compatibility with old third-party macros, we provide 20855 # the shell variables $as_echo and $as_echo_n. New code should use 20856 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20857 as_echo='printf %s\n' 20858 as_echo_n='printf %s' 20859 20860 rm -f conf$$ conf$$.exe conf$$.file 20861 if test -d conf$$.dir; then 20862 rm -f conf$$.dir/conf$$.file 20863 else 20864 rm -f conf$$.dir 20865 mkdir conf$$.dir 2>/dev/null 20866 fi 20867 if (echo >conf$$.file) 2>/dev/null; then 20868 if ln -s conf$$.file conf$$ 2>/dev/null; then 20869 as_ln_s='ln -s' 20870 # ... but there are two gotchas: 20871 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 20872 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 20873 # In both cases, we have to default to 'cp -pR'. 20874 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20875 as_ln_s='cp -pR' 20876 elif ln conf$$.file conf$$ 2>/dev/null; then 20877 as_ln_s=ln 20878 else 20879 as_ln_s='cp -pR' 20880 fi 20881 else 20882 as_ln_s='cp -pR' 20883 fi 20884 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20885 rmdir conf$$.dir 2>/dev/null 20886 20887 20888 # as_fn_mkdir_p 20889 # ------------- 20890 # Create "$as_dir" as a directory, including parents if necessary. 20891 as_fn_mkdir_p () 20892 { 20893 20894 case $as_dir in #( 20895 -*) as_dir=./$as_dir;; 20896 esac 20897 test -d "$as_dir" || eval $as_mkdir_p || { 20898 as_dirs= 20899 while :; do 20900 case $as_dir in #( 20901 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20902 *) as_qdir=$as_dir;; 20903 esac 20904 as_dirs="'$as_qdir' $as_dirs" 20905 as_dir=`$as_dirname -- "$as_dir" || 20906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20907 X"$as_dir" : 'X\(//\)[^/]' \| \ 20908 X"$as_dir" : 'X\(//\)$' \| \ 20909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20910 printf "%s\n" X"$as_dir" | 20911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20912 s//\1/ 20913 q 20914 } 20915 /^X\(\/\/\)[^/].*/{ 20916 s//\1/ 20917 q 20918 } 20919 /^X\(\/\/\)$/{ 20920 s//\1/ 20921 q 20922 } 20923 /^X\(\/\).*/{ 20924 s//\1/ 20925 q 20926 } 20927 s/.*/./; q'` 20928 test -d "$as_dir" && break 20929 done 20930 test -z "$as_dirs" || eval "mkdir $as_dirs" 20931 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20932 20933 20934 } # as_fn_mkdir_p 20935 if mkdir -p . 2>/dev/null; then 20936 as_mkdir_p='mkdir -p "$as_dir"' 20937 else 20938 test -d ./-p && rmdir ./-p 20939 as_mkdir_p=false 20940 fi 20941 20942 20943 # as_fn_executable_p FILE 20944 # ----------------------- 20945 # Test if FILE is an executable regular file. 20946 as_fn_executable_p () 20947 { 20948 test -f "$1" && test -x "$1" 20949 } # as_fn_executable_p 20950 as_test_x='test -x' 20951 as_executable_p=as_fn_executable_p 20952 20953 # Sed expression to map a string onto a valid CPP name. 20954 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 20955 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 20956 20957 # Sed expression to map a string onto a valid variable name. 20958 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20959 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 20960 20961 20962 exec 6>&1 20963 ## ----------------------------------- ## 20964 ## Main body of $CONFIG_STATUS script. ## 20965 ## ----------------------------------- ## 20966 _ASEOF 20967 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20968 20969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20970 # Save the log message, to keep $0 and so on meaningful, and to 20971 # report actual input values of CONFIG_FILES etc. instead of their 20972 # values after options handling. 20973 ac_log=" 20974 This file was extended by libXrender $as_me 0.9.12, which was 20975 generated by GNU Autoconf 2.72. Invocation command line was 20976 20977 CONFIG_FILES = $CONFIG_FILES 20978 CONFIG_HEADERS = $CONFIG_HEADERS 20979 CONFIG_LINKS = $CONFIG_LINKS 20980 CONFIG_COMMANDS = $CONFIG_COMMANDS 20981 $ $0 $@ 20982 20983 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20984 " 20985 20986 _ACEOF 20987 20988 case $ac_config_files in *" 20989 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20990 esac 20991 20992 case $ac_config_headers in *" 20993 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20994 esac 20995 20996 20997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20998 # Files that config.status was made for. 20999 config_files="$ac_config_files" 21000 config_headers="$ac_config_headers" 21001 config_commands="$ac_config_commands" 21002 21003 _ACEOF 21004 21005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21006 ac_cs_usage="\ 21007 '$as_me' instantiates files and other configuration actions 21008 from templates according to the current configuration. Unless the files 21009 and actions are specified as TAGs, all are instantiated by default. 21010 21011 Usage: $0 [OPTION]... [TAG]... 21012 21013 -h, --help print this help, then exit 21014 -V, --version print version number and configuration settings, then exit 21015 --config print configuration, then exit 21016 -q, --quiet, --silent 21017 do not print progress messages 21018 -d, --debug don't remove temporary files 21019 --recheck update $as_me by reconfiguring in the same conditions 21020 --file=FILE[:TEMPLATE] 21021 instantiate the configuration file FILE 21022 --header=FILE[:TEMPLATE] 21023 instantiate the configuration header FILE 21024 21025 Configuration files: 21026 $config_files 21027 21028 Configuration headers: 21029 $config_headers 21030 21031 Configuration commands: 21032 $config_commands 21033 21034 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues>." 21035 21036 _ACEOF 21037 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21038 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21040 ac_cs_config='$ac_cs_config_escaped' 21041 ac_cs_version="\\ 21042 libXrender config.status 0.9.12 21043 configured by $0, generated by GNU Autoconf 2.72, 21044 with options \\"\$ac_cs_config\\" 21045 21046 Copyright (C) 2023 Free Software Foundation, Inc. 21047 This config.status script is free software; the Free Software Foundation 21048 gives unlimited permission to copy, distribute and modify it." 21049 21050 ac_pwd='$ac_pwd' 21051 srcdir='$srcdir' 21052 INSTALL='$INSTALL' 21053 MKDIR_P='$MKDIR_P' 21054 AWK='$AWK' 21055 test -n "\$AWK" || AWK=awk 21056 _ACEOF 21057 21058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21059 # The default lists apply if the user does not specify any file. 21060 ac_need_defaults=: 21061 while test $# != 0 21062 do 21063 case $1 in 21064 --*=?*) 21065 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21066 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21067 ac_shift=: 21068 ;; 21069 --*=) 21070 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21071 ac_optarg= 21072 ac_shift=: 21073 ;; 21074 *) 21075 ac_option=$1 21076 ac_optarg=$2 21077 ac_shift=shift 21078 ;; 21079 esac 21080 21081 case $ac_option in 21082 # Handling of the options. 21083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21084 ac_cs_recheck=: ;; 21085 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21086 printf "%s\n" "$ac_cs_version"; exit ;; 21087 --config | --confi | --conf | --con | --co | --c ) 21088 printf "%s\n" "$ac_cs_config"; exit ;; 21089 --debug | --debu | --deb | --de | --d | -d ) 21090 debug=: ;; 21091 --file | --fil | --fi | --f ) 21092 $ac_shift 21093 case $ac_optarg in 21094 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21095 '') as_fn_error $? "missing file argument" ;; 21096 esac 21097 as_fn_append CONFIG_FILES " '$ac_optarg'" 21098 ac_need_defaults=false;; 21099 --header | --heade | --head | --hea ) 21100 $ac_shift 21101 case $ac_optarg in 21102 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21103 esac 21104 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21105 ac_need_defaults=false;; 21106 --he | --h) 21107 # Conflict between --help and --header 21108 as_fn_error $? "ambiguous option: '$1' 21109 Try '$0 --help' for more information.";; 21110 --help | --hel | -h ) 21111 printf "%s\n" "$ac_cs_usage"; exit ;; 21112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21113 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21114 ac_cs_silent=: ;; 21115 21116 # This is an error. 21117 -*) as_fn_error $? "unrecognized option: '$1' 21118 Try '$0 --help' for more information." ;; 21119 21120 *) as_fn_append ac_config_targets " $1" 21121 ac_need_defaults=false ;; 21122 21123 esac 21124 shift 21125 done 21126 21127 ac_configure_extra_args= 21128 21129 if $ac_cs_silent; then 21130 exec 6>/dev/null 21131 ac_configure_extra_args="$ac_configure_extra_args --silent" 21132 fi 21133 21134 _ACEOF 21135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21136 if \$ac_cs_recheck; then 21137 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21138 shift 21139 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21140 CONFIG_SHELL='$SHELL' 21141 export CONFIG_SHELL 21142 exec "\$@" 21143 fi 21144 21145 _ACEOF 21146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21147 exec 5>>config.log 21148 { 21149 echo 21150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21151 ## Running $as_me. ## 21152 _ASBOX 21153 printf "%s\n" "$ac_log" 21154 } >&5 21155 21156 _ACEOF 21157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21158 # 21159 # INIT-COMMANDS 21160 # 21161 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21162 21163 21164 # The HP-UX ksh and POSIX shell print the target directory to stdout 21165 # if CDPATH is set. 21166 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21167 21168 sed_quote_subst='$sed_quote_subst' 21169 double_quote_subst='$double_quote_subst' 21170 delay_variable_subst='$delay_variable_subst' 21171 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21172 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21173 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21174 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21175 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21176 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21177 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21178 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21179 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21180 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21181 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21182 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21183 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21184 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21185 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21186 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21187 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21188 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21189 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21190 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21191 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21192 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21193 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21194 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21195 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21196 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21197 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21198 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21199 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21200 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21201 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21202 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21203 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21204 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21205 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21206 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21207 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21208 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21209 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21210 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21211 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21212 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21213 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21214 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21215 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21216 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21217 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21218 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21219 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21220 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21221 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21222 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21223 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21224 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21225 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21226 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21227 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21228 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21229 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21230 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21231 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"`' 21232 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21233 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21234 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21235 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21236 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21237 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21238 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21239 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21240 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21241 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21242 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21243 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21244 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21245 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21246 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21247 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21248 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21249 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21250 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21251 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21252 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21253 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21254 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21255 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21256 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21257 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21258 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21259 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21260 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21261 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21262 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21263 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21264 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21265 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21266 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21267 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21268 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21269 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21270 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21271 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21272 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21273 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21274 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21275 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21276 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21277 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21278 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21279 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21280 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21281 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21282 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21283 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21284 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21285 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21286 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21287 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21288 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21289 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21290 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21291 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21292 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21293 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21294 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21295 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21296 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21297 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21298 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21299 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21300 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21301 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21302 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21303 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21304 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21305 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21306 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21307 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21308 21309 LTCC='$LTCC' 21310 LTCFLAGS='$LTCFLAGS' 21311 compiler='$compiler_DEFAULT' 21312 21313 # A function that is used when there is no print builtin or printf. 21314 func_fallback_echo () 21315 { 21316 eval 'cat <<_LTECHO_EOF 21317 \$1 21318 _LTECHO_EOF' 21319 } 21320 21321 # Quote evaled strings. 21322 for var in SHELL \ 21323 ECHO \ 21324 PATH_SEPARATOR \ 21325 SED \ 21326 GREP \ 21327 EGREP \ 21328 FGREP \ 21329 LD \ 21330 NM \ 21331 LN_S \ 21332 lt_SP2NL \ 21333 lt_NL2SP \ 21334 reload_flag \ 21335 FILECMD \ 21336 OBJDUMP \ 21337 deplibs_check_method \ 21338 file_magic_cmd \ 21339 file_magic_glob \ 21340 want_nocaseglob \ 21341 DLLTOOL \ 21342 sharedlib_from_linklib_cmd \ 21343 AR \ 21344 archiver_list_spec \ 21345 STRIP \ 21346 RANLIB \ 21347 CC \ 21348 CFLAGS \ 21349 compiler \ 21350 lt_cv_sys_global_symbol_pipe \ 21351 lt_cv_sys_global_symbol_to_cdecl \ 21352 lt_cv_sys_global_symbol_to_import \ 21353 lt_cv_sys_global_symbol_to_c_name_address \ 21354 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21355 lt_cv_nm_interface \ 21356 nm_file_list_spec \ 21357 lt_cv_truncate_bin \ 21358 lt_prog_compiler_no_builtin_flag \ 21359 lt_prog_compiler_pic \ 21360 lt_prog_compiler_wl \ 21361 lt_prog_compiler_static \ 21362 lt_cv_prog_compiler_c_o \ 21363 need_locks \ 21364 MANIFEST_TOOL \ 21365 DSYMUTIL \ 21366 NMEDIT \ 21367 LIPO \ 21368 OTOOL \ 21369 OTOOL64 \ 21370 shrext_cmds \ 21371 export_dynamic_flag_spec \ 21372 whole_archive_flag_spec \ 21373 compiler_needs_object \ 21374 with_gnu_ld \ 21375 allow_undefined_flag \ 21376 no_undefined_flag \ 21377 hardcode_libdir_flag_spec \ 21378 hardcode_libdir_separator \ 21379 exclude_expsyms \ 21380 include_expsyms \ 21381 file_list_spec \ 21382 variables_saved_for_relink \ 21383 libname_spec \ 21384 library_names_spec \ 21385 soname_spec \ 21386 install_override_mode \ 21387 finish_eval \ 21388 old_striplib \ 21389 striplib; do 21390 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21391 *[\\\\\\\`\\"\\\$]*) 21392 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21393 ;; 21394 *) 21395 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21396 ;; 21397 esac 21398 done 21399 21400 # Double-quote double-evaled strings. 21401 for var in reload_cmds \ 21402 old_postinstall_cmds \ 21403 old_postuninstall_cmds \ 21404 old_archive_cmds \ 21405 extract_expsyms_cmds \ 21406 old_archive_from_new_cmds \ 21407 old_archive_from_expsyms_cmds \ 21408 archive_cmds \ 21409 archive_expsym_cmds \ 21410 module_cmds \ 21411 module_expsym_cmds \ 21412 export_symbols_cmds \ 21413 prelink_cmds \ 21414 postlink_cmds \ 21415 postinstall_cmds \ 21416 postuninstall_cmds \ 21417 finish_cmds \ 21418 sys_lib_search_path_spec \ 21419 configure_time_dlsearch_path \ 21420 configure_time_lt_sys_library_path; do 21421 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21422 *[\\\\\\\`\\"\\\$]*) 21423 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21424 ;; 21425 *) 21426 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21427 ;; 21428 esac 21429 done 21430 21431 ac_aux_dir='$ac_aux_dir' 21432 21433 # See if we are running on zsh, and set the options that allow our 21434 # commands through without removal of \ escapes INIT. 21435 if test -n "\${ZSH_VERSION+set}"; then 21436 setopt NO_GLOB_SUBST 21437 fi 21438 21439 21440 PACKAGE='$PACKAGE' 21441 VERSION='$VERSION' 21442 RM='$RM' 21443 ofile='$ofile' 21444 21445 21446 21447 21448 _ACEOF 21449 21450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21451 21452 # Handling of arguments. 21453 for ac_config_target in $ac_config_targets 21454 do 21455 case $ac_config_target in 21456 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21457 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21458 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21460 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21461 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; 21462 "xrender.pc") CONFIG_FILES="$CONFIG_FILES xrender.pc" ;; 21463 21464 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21465 esac 21466 done 21467 21468 21469 # If the user did not use the arguments to specify the items to instantiate, 21470 # then the envvar interface is used. Set only those that are not. 21471 # We use the long form for the default assignment because of an extremely 21472 # bizarre bug on SunOS 4.1.3. 21473 if $ac_need_defaults; then 21474 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21475 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21476 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21477 fi 21478 21479 # Have a temporary directory for convenience. Make it in the build tree 21480 # simply because there is no reason against having it here, and in addition, 21481 # creating and moving files from /tmp can sometimes cause problems. 21482 # Hook for its removal unless debugging. 21483 # Note that there is a small window in which the directory will not be cleaned: 21484 # after its creation but before its name has been assigned to '$tmp'. 21485 $debug || 21486 { 21487 tmp= ac_tmp= 21488 trap 'exit_status=$? 21489 : "${ac_tmp:=$tmp}" 21490 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21491 ' 0 21492 trap 'as_fn_exit 1' 1 2 13 15 21493 } 21494 # Create a (secure) tmp directory for tmp files. 21495 21496 { 21497 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21498 test -d "$tmp" 21499 } || 21500 { 21501 tmp=./conf$$-$RANDOM 21502 (umask 077 && mkdir "$tmp") 21503 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21504 ac_tmp=$tmp 21505 21506 # Set up the scripts for CONFIG_FILES section. 21507 # No need to generate them if there are no CONFIG_FILES. 21508 # This happens for instance with './config.status config.h'. 21509 if test -n "$CONFIG_FILES"; then 21510 21511 21512 ac_cr=`echo X | tr X '\015'` 21513 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21514 # But we know of no other shell where ac_cr would be empty at this 21515 # point, so we can use a bashism as a fallback. 21516 if test "x$ac_cr" = x; then 21517 eval ac_cr=\$\'\\r\' 21518 fi 21519 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21520 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21521 ac_cs_awk_cr='\\r' 21522 else 21523 ac_cs_awk_cr=$ac_cr 21524 fi 21525 21526 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21527 _ACEOF 21528 21529 21530 { 21531 echo "cat >conf$$subs.awk <<_ACEOF" && 21532 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21533 echo "_ACEOF" 21534 } >conf$$subs.sh || 21535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21536 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21537 ac_delim='%!_!# ' 21538 for ac_last_try in false false false false false :; do 21539 . ./conf$$subs.sh || 21540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21541 21542 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21543 if test $ac_delim_n = $ac_delim_num; then 21544 break 21545 elif $ac_last_try; then 21546 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21547 else 21548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21549 fi 21550 done 21551 rm -f conf$$subs.sh 21552 21553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21554 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21555 _ACEOF 21556 sed -n ' 21557 h 21558 s/^/S["/; s/!.*/"]=/ 21559 p 21560 g 21561 s/^[^!]*!// 21562 :repl 21563 t repl 21564 s/'"$ac_delim"'$// 21565 t delim 21566 :nl 21567 h 21568 s/\(.\{148\}\)..*/\1/ 21569 t more1 21570 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21571 p 21572 n 21573 b repl 21574 :more1 21575 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21576 p 21577 g 21578 s/.\{148\}// 21579 t nl 21580 :delim 21581 h 21582 s/\(.\{148\}\)..*/\1/ 21583 t more2 21584 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21585 p 21586 b 21587 :more2 21588 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21589 p 21590 g 21591 s/.\{148\}// 21592 t delim 21593 ' <conf$$subs.awk | sed ' 21594 /^[^""]/{ 21595 N 21596 s/\n// 21597 } 21598 ' >>$CONFIG_STATUS || ac_write_fail=1 21599 rm -f conf$$subs.awk 21600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21601 _ACAWK 21602 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21603 for (key in S) S_is_set[key] = 1 21604 FS = "" 21605 21606 } 21607 { 21608 line = $ 0 21609 nfields = split(line, field, "@") 21610 substed = 0 21611 len = length(field[1]) 21612 for (i = 2; i < nfields; i++) { 21613 key = field[i] 21614 keylen = length(key) 21615 if (S_is_set[key]) { 21616 value = S[key] 21617 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21618 len += length(value) + length(field[++i]) 21619 substed = 1 21620 } else 21621 len += 1 + keylen 21622 } 21623 21624 print line 21625 } 21626 21627 _ACAWK 21628 _ACEOF 21629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21630 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21631 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21632 else 21633 cat 21634 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21635 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21636 _ACEOF 21637 21638 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21639 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21640 # trailing colons and then remove the whole line if VPATH becomes empty 21641 # (actually we leave an empty line to preserve line numbers). 21642 if test "x$srcdir" = x.; then 21643 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21644 h 21645 s/// 21646 s/^/:/ 21647 s/[ ]*$/:/ 21648 s/:\$(srcdir):/:/g 21649 s/:\${srcdir}:/:/g 21650 s/:@srcdir@:/:/g 21651 s/^:*// 21652 s/:*$// 21653 x 21654 s/\(=[ ]*\).*/\1/ 21655 G 21656 s/\n// 21657 s/^[^=]*=[ ]*$// 21658 }' 21659 fi 21660 21661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21662 fi # test -n "$CONFIG_FILES" 21663 21664 # Set up the scripts for CONFIG_HEADERS section. 21665 # No need to generate them if there are no CONFIG_HEADERS. 21666 # This happens for instance with './config.status Makefile'. 21667 if test -n "$CONFIG_HEADERS"; then 21668 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21669 BEGIN { 21670 _ACEOF 21671 21672 # Transform confdefs.h into an awk script 'defines.awk', embedded as 21673 # here-document in config.status, that substitutes the proper values into 21674 # config.h.in to produce config.h. 21675 21676 # Create a delimiter string that does not exist in confdefs.h, to ease 21677 # handling of long lines. 21678 ac_delim='%!_!# ' 21679 for ac_last_try in false false :; do 21680 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21681 if test -z "$ac_tt"; then 21682 break 21683 elif $ac_last_try; then 21684 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21685 else 21686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21687 fi 21688 done 21689 21690 # For the awk script, D is an array of macro values keyed by name, 21691 # likewise P contains macro parameters if any. Preserve backslash 21692 # newline sequences. 21693 21694 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21695 sed -n ' 21696 s/.\{148\}/&'"$ac_delim"'/g 21697 t rset 21698 :rset 21699 s/^[ ]*#[ ]*define[ ][ ]*/ / 21700 t def 21701 d 21702 :def 21703 s/\\$// 21704 t bsnl 21705 s/["\\]/\\&/g 21706 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21707 D["\1"]=" \3"/p 21708 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21709 d 21710 :bsnl 21711 s/["\\]/\\&/g 21712 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21713 D["\1"]=" \3\\\\\\n"\\/p 21714 t cont 21715 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21716 t cont 21717 d 21718 :cont 21719 n 21720 s/.\{148\}/&'"$ac_delim"'/g 21721 t clear 21722 :clear 21723 s/\\$// 21724 t bsnlc 21725 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21726 d 21727 :bsnlc 21728 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21729 b cont 21730 ' <confdefs.h | sed ' 21731 s/'"$ac_delim"'/"\\\ 21732 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21733 21734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21735 for (key in D) D_is_set[key] = 1 21736 FS = "" 21737 } 21738 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21739 line = \$ 0 21740 split(line, arg, " ") 21741 if (arg[1] == "#") { 21742 defundef = arg[2] 21743 mac1 = arg[3] 21744 } else { 21745 defundef = substr(arg[1], 2) 21746 mac1 = arg[2] 21747 } 21748 split(mac1, mac2, "(") #) 21749 macro = mac2[1] 21750 prefix = substr(line, 1, index(line, defundef) - 1) 21751 if (D_is_set[macro]) { 21752 # Preserve the white space surrounding the "#". 21753 print prefix "define", macro P[macro] D[macro] 21754 next 21755 } else { 21756 # Replace #undef with comments. This is necessary, for example, 21757 # in the case of _POSIX_SOURCE, which is predefined and required 21758 # on some systems where configure will not decide to define it. 21759 if (defundef == "undef") { 21760 print "/*", prefix defundef, macro, "*/" 21761 next 21762 } 21763 } 21764 } 21765 { print } 21766 _ACAWK 21767 _ACEOF 21768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21769 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21770 fi # test -n "$CONFIG_HEADERS" 21771 21772 21773 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21774 shift 21775 for ac_tag 21776 do 21777 case $ac_tag in 21778 :[FHLC]) ac_mode=$ac_tag; continue;; 21779 esac 21780 case $ac_mode$ac_tag in 21781 :[FHL]*:*);; 21782 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21783 :[FH]-) ac_tag=-:-;; 21784 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21785 esac 21786 ac_save_IFS=$IFS 21787 IFS=: 21788 set x $ac_tag 21789 IFS=$ac_save_IFS 21790 shift 21791 ac_file=$1 21792 shift 21793 21794 case $ac_mode in 21795 :L) ac_source=$1;; 21796 :[FH]) 21797 ac_file_inputs= 21798 for ac_f 21799 do 21800 case $ac_f in 21801 -) ac_f="$ac_tmp/stdin";; 21802 *) # Look for the file first in the build tree, then in the source tree 21803 # (if the path is not absolute). The absolute path cannot be DOS-style, 21804 # because $ac_f cannot contain ':'. 21805 test -f "$ac_f" || 21806 case $ac_f in 21807 [\\/$]*) false;; 21808 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21809 esac || 21810 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21811 esac 21812 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21813 as_fn_append ac_file_inputs " '$ac_f'" 21814 done 21815 21816 # Let's still pretend it is 'configure' which instantiates (i.e., don't 21817 # use $as_me), people would be surprised to read: 21818 # /* config.h. Generated by config.status. */ 21819 configure_input='Generated from '` 21820 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21821 `' by configure.' 21822 if test x"$ac_file" != x-; then 21823 configure_input="$ac_file. $configure_input" 21824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21825 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21826 fi 21827 # Neutralize special characters interpreted by sed in replacement strings. 21828 case $configure_input in #( 21829 *\&* | *\|* | *\\* ) 21830 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21831 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21832 *) ac_sed_conf_input=$configure_input;; 21833 esac 21834 21835 case $ac_tag in 21836 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21838 esac 21839 ;; 21840 esac 21841 21842 ac_dir=`$as_dirname -- "$ac_file" || 21843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21844 X"$ac_file" : 'X\(//\)[^/]' \| \ 21845 X"$ac_file" : 'X\(//\)$' \| \ 21846 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21847 printf "%s\n" X"$ac_file" | 21848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21849 s//\1/ 21850 q 21851 } 21852 /^X\(\/\/\)[^/].*/{ 21853 s//\1/ 21854 q 21855 } 21856 /^X\(\/\/\)$/{ 21857 s//\1/ 21858 q 21859 } 21860 /^X\(\/\).*/{ 21861 s//\1/ 21862 q 21863 } 21864 s/.*/./; q'` 21865 as_dir="$ac_dir"; as_fn_mkdir_p 21866 ac_builddir=. 21867 21868 case "$ac_dir" in 21869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21870 *) 21871 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21872 # A ".." for each directory in $ac_dir_suffix. 21873 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21874 case $ac_top_builddir_sub in 21875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21877 esac ;; 21878 esac 21879 ac_abs_top_builddir=$ac_pwd 21880 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21881 # for backward compatibility: 21882 ac_top_builddir=$ac_top_build_prefix 21883 21884 case $srcdir in 21885 .) # We are building in place. 21886 ac_srcdir=. 21887 ac_top_srcdir=$ac_top_builddir_sub 21888 ac_abs_top_srcdir=$ac_pwd ;; 21889 [\\/]* | ?:[\\/]* ) # Absolute name. 21890 ac_srcdir=$srcdir$ac_dir_suffix; 21891 ac_top_srcdir=$srcdir 21892 ac_abs_top_srcdir=$srcdir ;; 21893 *) # Relative name. 21894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21895 ac_top_srcdir=$ac_top_build_prefix$srcdir 21896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21897 esac 21898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21899 21900 21901 case $ac_mode in 21902 :F) 21903 # 21904 # CONFIG_FILE 21905 # 21906 21907 case $INSTALL in 21908 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21909 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21910 esac 21911 ac_MKDIR_P=$MKDIR_P 21912 case $MKDIR_P in 21913 [\\/$]* | ?:[\\/]* ) ;; 21914 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21915 esac 21916 _ACEOF 21917 21918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21919 # If the template does not know about datarootdir, expand it. 21920 # FIXME: This hack should be removed a few years after 2.60. 21921 ac_datarootdir_hack=; ac_datarootdir_seen= 21922 ac_sed_dataroot=' 21923 /datarootdir/ { 21924 p 21925 q 21926 } 21927 /@datadir@/p 21928 /@docdir@/p 21929 /@infodir@/p 21930 /@localedir@/p 21931 /@mandir@/p' 21932 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21933 *datarootdir*) ac_datarootdir_seen=yes;; 21934 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21936 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21937 _ACEOF 21938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21939 ac_datarootdir_hack=' 21940 s&@datadir@&$datadir&g 21941 s&@docdir@&$docdir&g 21942 s&@infodir@&$infodir&g 21943 s&@localedir@&$localedir&g 21944 s&@mandir@&$mandir&g 21945 s&\\\${datarootdir}&$datarootdir&g' ;; 21946 esac 21947 _ACEOF 21948 21949 # Neutralize VPATH when '$srcdir' = '.'. 21950 # Shell code in configure.ac might set extrasub. 21951 # FIXME: do we really want to maintain this feature? 21952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21953 ac_sed_extra="$ac_vpsub 21954 $extrasub 21955 _ACEOF 21956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21957 :t 21958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21959 s|@configure_input@|$ac_sed_conf_input|;t t 21960 s&@top_builddir@&$ac_top_builddir_sub&;t t 21961 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21962 s&@srcdir@&$ac_srcdir&;t t 21963 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21964 s&@top_srcdir@&$ac_top_srcdir&;t t 21965 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21966 s&@builddir@&$ac_builddir&;t t 21967 s&@abs_builddir@&$ac_abs_builddir&;t t 21968 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21969 s&@INSTALL@&$ac_INSTALL&;t t 21970 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21971 $ac_datarootdir_hack 21972 " 21973 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21974 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21975 21976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21977 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21979 "$ac_tmp/out"`; test -z "$ac_out"; } && 21980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21981 which seems to be undefined. Please make sure it is defined" >&5 21982 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21983 which seems to be undefined. Please make sure it is defined" >&2;} 21984 21985 rm -f "$ac_tmp/stdin" 21986 case $ac_file in 21987 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21988 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21989 esac \ 21990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21991 ;; 21992 :H) 21993 # 21994 # CONFIG_HEADER 21995 # 21996 if test x"$ac_file" != x-; then 21997 { 21998 printf "%s\n" "/* $configure_input */" >&1 \ 21999 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22000 } >"$ac_tmp/config.h" \ 22001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22002 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22004 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22005 else 22006 rm -f "$ac_file" 22007 mv "$ac_tmp/config.h" "$ac_file" \ 22008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22009 fi 22010 else 22011 printf "%s\n" "/* $configure_input */" >&1 \ 22012 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22013 || as_fn_error $? "could not create -" "$LINENO" 5 22014 fi 22015 # Compute "$ac_file"'s index in $config_headers. 22016 _am_arg="$ac_file" 22017 _am_stamp_count=1 22018 for _am_header in $config_headers :; do 22019 case $_am_header in 22020 $_am_arg | $_am_arg:* ) 22021 break ;; 22022 * ) 22023 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22024 esac 22025 done 22026 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22027 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22028 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22029 X"$_am_arg" : 'X\(//\)$' \| \ 22030 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22031 printf "%s\n" X"$_am_arg" | 22032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22033 s//\1/ 22034 q 22035 } 22036 /^X\(\/\/\)[^/].*/{ 22037 s//\1/ 22038 q 22039 } 22040 /^X\(\/\/\)$/{ 22041 s//\1/ 22042 q 22043 } 22044 /^X\(\/\).*/{ 22045 s//\1/ 22046 q 22047 } 22048 s/.*/./; q'`/stamp-h$_am_stamp_count 22049 ;; 22050 22051 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22052 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22053 ;; 22054 esac 22055 22056 22057 case $ac_file$ac_mode in 22058 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22059 # Older Autoconf quotes --file arguments for eval, but not when files 22060 # are listed without --file. Let's play safe and only enable the eval 22061 # if we detect the quoting. 22062 # TODO: see whether this extra hack can be removed once we start 22063 # requiring Autoconf 2.70 or later. 22064 case $CONFIG_FILES in #( 22065 *\'*) : 22066 eval set x "$CONFIG_FILES" ;; #( 22067 *) : 22068 set x $CONFIG_FILES ;; #( 22069 *) : 22070 ;; 22071 esac 22072 shift 22073 # Used to flag and report bootstrapping failures. 22074 am_rc=0 22075 for am_mf 22076 do 22077 # Strip MF so we end up with the name of the file. 22078 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22079 # Check whether this is an Automake generated Makefile which includes 22080 # dependency-tracking related rules and includes. 22081 # Grep'ing the whole file directly is not great: AIX grep has a line 22082 # limit of 2048, but all sed's we know have understand at least 4000. 22083 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22084 || continue 22085 am_dirpart=`$as_dirname -- "$am_mf" || 22086 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22087 X"$am_mf" : 'X\(//\)[^/]' \| \ 22088 X"$am_mf" : 'X\(//\)$' \| \ 22089 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22090 printf "%s\n" X"$am_mf" | 22091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22092 s//\1/ 22093 q 22094 } 22095 /^X\(\/\/\)[^/].*/{ 22096 s//\1/ 22097 q 22098 } 22099 /^X\(\/\/\)$/{ 22100 s//\1/ 22101 q 22102 } 22103 /^X\(\/\).*/{ 22104 s//\1/ 22105 q 22106 } 22107 s/.*/./; q'` 22108 am_filepart=`$as_basename -- "$am_mf" || 22109 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22110 X"$am_mf" : 'X\(//\)$' \| \ 22111 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22112 printf "%s\n" X/"$am_mf" | 22113 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22114 s//\1/ 22115 q 22116 } 22117 /^X\/\(\/\/\)$/{ 22118 s//\1/ 22119 q 22120 } 22121 /^X\/\(\/\).*/{ 22122 s//\1/ 22123 q 22124 } 22125 s/.*/./; q'` 22126 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22127 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22128 | $MAKE -f - am--depfiles" >&5 22129 (cd "$am_dirpart" \ 22130 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22131 | $MAKE -f - am--depfiles) >&5 2>&5 22132 ac_status=$? 22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22134 (exit $ac_status); } || am_rc=$? 22135 done 22136 if test $am_rc -ne 0; then 22137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22138 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22139 as_fn_error $? "Something went wrong bootstrapping makefile fragments 22140 for automatic dependency tracking. If GNU make was not used, consider 22141 re-running the configure script with MAKE=\"gmake\" (or whatever is 22142 necessary). You can also try re-running configure with the 22143 '--disable-dependency-tracking' option to at least be able to build 22144 the package (albeit without support for automatic dependency tracking). 22145 See 'config.log' for more details" "$LINENO" 5; } 22146 fi 22147 { am_dirpart=; unset am_dirpart;} 22148 { am_filepart=; unset am_filepart;} 22149 { am_mf=; unset am_mf;} 22150 { am_rc=; unset am_rc;} 22151 rm -f conftest-deps.mk 22152 } 22153 ;; 22154 "libtool":C) 22155 22156 # See if we are running on zsh, and set the options that allow our 22157 # commands through without removal of \ escapes. 22158 if test -n "${ZSH_VERSION+set}"; then 22159 setopt NO_GLOB_SUBST 22160 fi 22161 22162 cfgfile=${ofile}T 22163 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22164 $RM "$cfgfile" 22165 22166 cat <<_LT_EOF >> "$cfgfile" 22167 #! $SHELL 22168 # Generated automatically by $as_me ($PACKAGE) $VERSION 22169 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 22170 22171 # Provide generalized library-building support services. 22172 # Written by Gordon Matzigkeit, 1996 22173 22174 # Copyright (C) 2024 Free Software Foundation, Inc. 22175 # This is free software; see the source for copying conditions. There is NO 22176 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22177 22178 # GNU Libtool is free software; you can redistribute it and/or modify 22179 # it under the terms of the GNU General Public License as published by 22180 # the Free Software Foundation; either version 2 of the License, or 22181 # (at your option) any later version. 22182 # 22183 # As a special exception to the GNU General Public License, if you 22184 # distribute this file as part of a program or library that is built 22185 # using GNU Libtool, you may include this file under the same 22186 # distribution terms that you use for the rest of that program. 22187 # 22188 # GNU Libtool is distributed in the hope that it will be useful, but 22189 # WITHOUT ANY WARRANTY; without even the implied warranty of 22190 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22191 # GNU General Public License for more details. 22192 # 22193 # You should have received a copy of the GNU General Public License 22194 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22195 22196 22197 # The names of the tagged configurations supported by this script. 22198 available_tags='' 22199 22200 # Configured defaults for sys_lib_dlsearch_path munging. 22201 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22202 22203 # ### BEGIN LIBTOOL CONFIG 22204 22205 # Which release of libtool.m4 was used? 22206 macro_version=$macro_version 22207 macro_revision=$macro_revision 22208 22209 # Whether or not to build shared libraries. 22210 build_libtool_libs=$enable_shared 22211 22212 # Whether or not to build static libraries. 22213 build_old_libs=$enable_static 22214 22215 # What type of objects to build. 22216 pic_mode=$pic_mode 22217 22218 # Whether or not to optimize for fast installation. 22219 fast_install=$enable_fast_install 22220 22221 # Shared archive member basename,for filename based shared library versioning on AIX. 22222 shared_archive_member_spec=$shared_archive_member_spec 22223 22224 # Shell to use when invoking shell scripts. 22225 SHELL=$lt_SHELL 22226 22227 # An echo program that protects backslashes. 22228 ECHO=$lt_ECHO 22229 22230 # The PATH separator for the build system. 22231 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22232 22233 # The host system. 22234 host_alias=$host_alias 22235 host=$host 22236 host_os=$host_os 22237 22238 # The build system. 22239 build_alias=$build_alias 22240 build=$build 22241 build_os=$build_os 22242 22243 # A sed program that does not truncate output. 22244 SED=$lt_SED 22245 22246 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22247 Xsed="\$SED -e 1s/^X//" 22248 22249 # A grep program that handles long lines. 22250 GREP=$lt_GREP 22251 22252 # An ERE matcher. 22253 EGREP=$lt_EGREP 22254 22255 # A literal string matcher. 22256 FGREP=$lt_FGREP 22257 22258 # A BSD- or MS-compatible name lister. 22259 NM=$lt_NM 22260 22261 # Whether we need soft or hard links. 22262 LN_S=$lt_LN_S 22263 22264 # What is the maximum length of a command? 22265 max_cmd_len=$max_cmd_len 22266 22267 # Object file suffix (normally "o"). 22268 objext=$ac_objext 22269 22270 # Executable file suffix (normally ""). 22271 exeext=$exeext 22272 22273 # whether the shell understands "unset". 22274 lt_unset=$lt_unset 22275 22276 # turn spaces into newlines. 22277 SP2NL=$lt_lt_SP2NL 22278 22279 # turn newlines into spaces. 22280 NL2SP=$lt_lt_NL2SP 22281 22282 # convert \$build file names to \$host format. 22283 to_host_file_cmd=$lt_cv_to_host_file_cmd 22284 22285 # convert \$build files to toolchain format. 22286 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22287 22288 # A file(cmd) program that detects file types. 22289 FILECMD=$lt_FILECMD 22290 22291 # An object symbol dumper. 22292 OBJDUMP=$lt_OBJDUMP 22293 22294 # Method to check whether dependent libraries are shared objects. 22295 deplibs_check_method=$lt_deplibs_check_method 22296 22297 # Command to use when deplibs_check_method = "file_magic". 22298 file_magic_cmd=$lt_file_magic_cmd 22299 22300 # How to find potential files when deplibs_check_method = "file_magic". 22301 file_magic_glob=$lt_file_magic_glob 22302 22303 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22304 want_nocaseglob=$lt_want_nocaseglob 22305 22306 # DLL creation program. 22307 DLLTOOL=$lt_DLLTOOL 22308 22309 # Command to associate shared and link libraries. 22310 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22311 22312 # The archiver. 22313 AR=$lt_AR 22314 22315 # Flags to create an archive (by configure). 22316 lt_ar_flags=$lt_ar_flags 22317 22318 # Flags to create an archive. 22319 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22320 22321 # How to feed a file listing to the archiver. 22322 archiver_list_spec=$lt_archiver_list_spec 22323 22324 # A symbol stripping program. 22325 STRIP=$lt_STRIP 22326 22327 # Commands used to install an old-style archive. 22328 RANLIB=$lt_RANLIB 22329 old_postinstall_cmds=$lt_old_postinstall_cmds 22330 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22331 22332 # Whether to use a lock for old archive extraction. 22333 lock_old_archive_extraction=$lock_old_archive_extraction 22334 22335 # A C compiler. 22336 LTCC=$lt_CC 22337 22338 # LTCC compiler flags. 22339 LTCFLAGS=$lt_CFLAGS 22340 22341 # Take the output of nm and produce a listing of raw symbols and C names. 22342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22343 22344 # Transform the output of nm in a proper C declaration. 22345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22346 22347 # Transform the output of nm into a list of symbols to manually relocate. 22348 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22349 22350 # Transform the output of nm in a C name address pair. 22351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22352 22353 # Transform the output of nm in a C name address pair when lib prefix is needed. 22354 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22355 22356 # The name lister interface. 22357 nm_interface=$lt_lt_cv_nm_interface 22358 22359 # Specify filename containing input files for \$NM. 22360 nm_file_list_spec=$lt_nm_file_list_spec 22361 22362 # The root where to search for dependent libraries,and where our libraries should be installed. 22363 lt_sysroot=$lt_sysroot 22364 22365 # Command to truncate a binary pipe. 22366 lt_truncate_bin=$lt_lt_cv_truncate_bin 22367 22368 # The name of the directory that contains temporary libtool files. 22369 objdir=$objdir 22370 22371 # Used to examine libraries when file_magic_cmd begins with "file". 22372 MAGIC_CMD=$MAGIC_CMD 22373 22374 # Must we lock files when doing compilation? 22375 need_locks=$lt_need_locks 22376 22377 # Manifest tool. 22378 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22379 22380 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22381 DSYMUTIL=$lt_DSYMUTIL 22382 22383 # Tool to change global to local symbols on Mac OS X. 22384 NMEDIT=$lt_NMEDIT 22385 22386 # Tool to manipulate fat objects and archives on Mac OS X. 22387 LIPO=$lt_LIPO 22388 22389 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22390 OTOOL=$lt_OTOOL 22391 22392 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22393 OTOOL64=$lt_OTOOL64 22394 22395 # Old archive suffix (normally "a"). 22396 libext=$libext 22397 22398 # Shared library suffix (normally ".so"). 22399 shrext_cmds=$lt_shrext_cmds 22400 22401 # The commands to extract the exported symbol list from a shared archive. 22402 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22403 22404 # Variables whose values should be saved in libtool wrapper scripts and 22405 # restored at link time. 22406 variables_saved_for_relink=$lt_variables_saved_for_relink 22407 22408 # Do we need the "lib" prefix for modules? 22409 need_lib_prefix=$need_lib_prefix 22410 22411 # Do we need a version for libraries? 22412 need_version=$need_version 22413 22414 # Library versioning type. 22415 version_type=$version_type 22416 22417 # Shared library runtime path variable. 22418 runpath_var=$runpath_var 22419 22420 # Shared library path variable. 22421 shlibpath_var=$shlibpath_var 22422 22423 # Is shlibpath searched before the hard-coded library search path? 22424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22425 22426 # Format of library name prefix. 22427 libname_spec=$lt_libname_spec 22428 22429 # List of archive names. First name is the real one, the rest are links. 22430 # The last name is the one that the linker finds with -lNAME 22431 library_names_spec=$lt_library_names_spec 22432 22433 # The coded name of the library, if different from the real name. 22434 soname_spec=$lt_soname_spec 22435 22436 # Permission mode override for installation of shared libraries. 22437 install_override_mode=$lt_install_override_mode 22438 22439 # Command to use after installation of a shared archive. 22440 postinstall_cmds=$lt_postinstall_cmds 22441 22442 # Command to use after uninstallation of a shared archive. 22443 postuninstall_cmds=$lt_postuninstall_cmds 22444 22445 # Commands used to finish a libtool library installation in a directory. 22446 finish_cmds=$lt_finish_cmds 22447 22448 # As "finish_cmds", except a single script fragment to be evaled but 22449 # not shown. 22450 finish_eval=$lt_finish_eval 22451 22452 # Whether we should hardcode library paths into libraries. 22453 hardcode_into_libs=$hardcode_into_libs 22454 22455 # Compile-time system search path for libraries. 22456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22457 22458 # Detected run-time system search path for libraries. 22459 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22460 22461 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22462 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22463 22464 # Whether dlopen is supported. 22465 dlopen_support=$enable_dlopen 22466 22467 # Whether dlopen of programs is supported. 22468 dlopen_self=$enable_dlopen_self 22469 22470 # Whether dlopen of statically linked programs is supported. 22471 dlopen_self_static=$enable_dlopen_self_static 22472 22473 # Commands to strip libraries. 22474 old_striplib=$lt_old_striplib 22475 striplib=$lt_striplib 22476 22477 22478 # The linker used to build libraries. 22479 LD=$lt_LD 22480 22481 # How to create reloadable object files. 22482 reload_flag=$lt_reload_flag 22483 reload_cmds=$lt_reload_cmds 22484 22485 # Commands used to build an old-style archive. 22486 old_archive_cmds=$lt_old_archive_cmds 22487 22488 # A language specific compiler. 22489 CC=$lt_compiler 22490 22491 # Is the compiler the GNU compiler? 22492 with_gcc=$GCC 22493 22494 # Compiler flag to turn off builtin functions. 22495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22496 22497 # Additional compiler flags for building library objects. 22498 pic_flag=$lt_lt_prog_compiler_pic 22499 22500 # How to pass a linker flag through the compiler. 22501 wl=$lt_lt_prog_compiler_wl 22502 22503 # Compiler flag to prevent dynamic linking. 22504 link_static_flag=$lt_lt_prog_compiler_static 22505 22506 # Does compiler simultaneously support -c and -o options? 22507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22508 22509 # Whether or not to add -lc for building shared libraries. 22510 build_libtool_need_lc=$archive_cmds_need_lc 22511 22512 # Whether or not to disallow shared libs when runtime libs are static. 22513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22514 22515 # Compiler flag to allow reflexive dlopens. 22516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22517 22518 # Compiler flag to generate shared objects directly from archives. 22519 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22520 22521 # Whether the compiler copes with passing no objects directly. 22522 compiler_needs_object=$lt_compiler_needs_object 22523 22524 # Create an old-style archive from a shared archive. 22525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22526 22527 # Create a temporary old-style archive to link instead of a shared archive. 22528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22529 22530 # Commands used to build a shared archive. 22531 archive_cmds=$lt_archive_cmds 22532 archive_expsym_cmds=$lt_archive_expsym_cmds 22533 22534 # Commands used to build a loadable module if different from building 22535 # a shared archive. 22536 module_cmds=$lt_module_cmds 22537 module_expsym_cmds=$lt_module_expsym_cmds 22538 22539 # Whether we are building with GNU ld or not. 22540 with_gnu_ld=$lt_with_gnu_ld 22541 22542 # Flag that allows shared libraries with undefined symbols to be built. 22543 allow_undefined_flag=$lt_allow_undefined_flag 22544 22545 # Flag that enforces no undefined symbols. 22546 no_undefined_flag=$lt_no_undefined_flag 22547 22548 # Flag to hardcode \$libdir into a binary during linking. 22549 # This must work even if \$libdir does not exist 22550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22551 22552 # Whether we need a single "-rpath" flag with a separated argument. 22553 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22554 22555 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22556 # DIR into the resulting binary. 22557 hardcode_direct=$hardcode_direct 22558 22559 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22560 # DIR into the resulting binary and the resulting library dependency is 22561 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 22562 # library is relocated. 22563 hardcode_direct_absolute=$hardcode_direct_absolute 22564 22565 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22566 # into the resulting binary. 22567 hardcode_minus_L=$hardcode_minus_L 22568 22569 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22570 # into the resulting binary. 22571 hardcode_shlibpath_var=$hardcode_shlibpath_var 22572 22573 # Set to "yes" if building a shared library automatically hardcodes DIR 22574 # into the library and all subsequent libraries and executables linked 22575 # against it. 22576 hardcode_automatic=$hardcode_automatic 22577 22578 # Set to yes if linker adds runtime paths of dependent libraries 22579 # to runtime path list. 22580 inherit_rpath=$inherit_rpath 22581 22582 # Whether libtool must link a program against all its dependency libraries. 22583 link_all_deplibs=$link_all_deplibs 22584 22585 # Set to "yes" if exported symbols are required. 22586 always_export_symbols=$always_export_symbols 22587 22588 # The commands to list exported symbols. 22589 export_symbols_cmds=$lt_export_symbols_cmds 22590 22591 # Symbols that should not be listed in the preloaded symbols. 22592 exclude_expsyms=$lt_exclude_expsyms 22593 22594 # Symbols that must always be exported. 22595 include_expsyms=$lt_include_expsyms 22596 22597 # Commands necessary for linking programs (against libraries) with templates. 22598 prelink_cmds=$lt_prelink_cmds 22599 22600 # Commands necessary for finishing linking programs. 22601 postlink_cmds=$lt_postlink_cmds 22602 22603 # Specify filename containing input files. 22604 file_list_spec=$lt_file_list_spec 22605 22606 # How to hardcode a shared library path into an executable. 22607 hardcode_action=$hardcode_action 22608 22609 # ### END LIBTOOL CONFIG 22610 22611 _LT_EOF 22612 22613 cat <<'_LT_EOF' >> "$cfgfile" 22614 22615 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22616 22617 # func_munge_path_list VARIABLE PATH 22618 # ----------------------------------- 22619 # VARIABLE is name of variable containing _space_ separated list of 22620 # directories to be munged by the contents of PATH, which is string 22621 # having a format: 22622 # "DIR[:DIR]:" 22623 # string "DIR[ DIR]" will be prepended to VARIABLE 22624 # ":DIR[:DIR]" 22625 # string "DIR[ DIR]" will be appended to VARIABLE 22626 # "DIRP[:DIRP]::[DIRA:]DIRA" 22627 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22628 # "DIRA[ DIRA]" will be appended to VARIABLE 22629 # "DIR[:DIR]" 22630 # VARIABLE will be replaced by "DIR[ DIR]" 22631 func_munge_path_list () 22632 { 22633 case x$2 in 22634 x) 22635 ;; 22636 *:) 22637 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22638 ;; 22639 x:*) 22640 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22641 ;; 22642 *::*) 22643 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22644 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22645 ;; 22646 *) 22647 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22648 ;; 22649 esac 22650 } 22651 22652 22653 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22654 func_cc_basename () 22655 { 22656 for cc_temp in $*""; do 22657 case $cc_temp in 22658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22660 \-*) ;; 22661 *) break;; 22662 esac 22663 done 22664 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22665 } 22666 22667 22668 # ### END FUNCTIONS SHARED WITH CONFIGURE 22669 22670 _LT_EOF 22671 22672 case $host_os in 22673 aix3*) 22674 cat <<\_LT_EOF >> "$cfgfile" 22675 # AIX sometimes has problems with the GCC collect2 program. For some 22676 # reason, if we set the COLLECT_NAMES environment variable, the problems 22677 # vanish in a puff of smoke. 22678 if test set != "${COLLECT_NAMES+set}"; then 22679 COLLECT_NAMES= 22680 export COLLECT_NAMES 22681 fi 22682 _LT_EOF 22683 ;; 22684 esac 22685 22686 22687 22688 ltmain=$ac_aux_dir/ltmain.sh 22689 22690 22691 # We use sed instead of cat because bash on DJGPP gets confused if 22692 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22693 # text mode, it properly converts lines to CR/LF. This bash problem 22694 # is reportedly fixed, but why not run on old versions too? 22695 $SED '$q' "$ltmain" >> "$cfgfile" \ 22696 || (rm -f "$cfgfile"; exit 1) 22697 22698 mv -f "$cfgfile" "$ofile" || 22699 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22700 chmod +x "$ofile" 22701 22702 ;; 22703 22704 esac 22705 done # for ac_tag 22706 22707 22708 as_fn_exit 0 22709 _ACEOF 22710 ac_clean_files=$ac_clean_files_save 22711 22712 test $ac_write_fail = 0 || 22713 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22714 22715 22716 # configure is writing to config.log, and then calls config.status. 22717 # config.status does its own redirection, appending to config.log. 22718 # Unfortunately, on DOS this fails, as config.log is still kept open 22719 # by configure, so config.status won't be able to write to it; its 22720 # output is simply discarded. So we exec the FD to /dev/null, 22721 # effectively closing config.log, so it can be properly (re)opened and 22722 # appended to by config.status. When coming back to configure, we 22723 # need to make the FD available again. 22724 if test "$no_create" != yes; then 22725 ac_cs_success=: 22726 ac_config_status_args= 22727 test "$silent" = yes && 22728 ac_config_status_args="$ac_config_status_args --quiet" 22729 exec 5>/dev/null 22730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22731 exec 5>>config.log 22732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22733 # would make configure fail if this is the last instruction. 22734 $ac_cs_success || as_fn_exit 1 22735 fi 22736 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22738 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22739 fi 22740 22741 22742