1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for xf86-video-mach64 6.9.7. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 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="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 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 \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 test \$(( 1 + 1 )) = 2 || 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 if (eval "$as_required") 2>/dev/null 196 then : 197 as_have_required=yes 198 else $as_nop 199 as_have_required=no 200 fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202 then : 203 204 else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206 as_found=false 207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208 do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223 then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226 then : 227 break 2 228 fi 229 fi 230 done;; 231 esac 232 as_found=false 233 done 234 IFS=$as_save_IFS 235 if $as_found 236 then : 237 238 else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241 then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243 fi 244 fi 245 246 247 if test "x$CONFIG_SHELL" != x 248 then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno 271 then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 279 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/issues 280 $0: about your system, including any error possibly output 281 $0: before this message. Then install a modern shell, or 282 $0: manually run the script under such a shell if you do 283 $0: have one." 284 fi 285 exit 1 286 fi 287 fi 288 fi 289 SHELL=${CONFIG_SHELL-/bin/sh} 290 export SHELL 291 # Unset more variables known to interfere with behavior of common tools. 292 CLICOLOR_FORCE= GREP_OPTIONS= 293 unset CLICOLOR_FORCE GREP_OPTIONS 294 295 ## --------------------- ## 296 ## M4sh Shell Functions. ## 297 ## --------------------- ## 298 # as_fn_unset VAR 299 # --------------- 300 # Portably unset VAR. 301 as_fn_unset () 302 { 303 { eval $1=; unset $1;} 304 } 305 as_unset=as_fn_unset 306 307 308 # as_fn_set_status STATUS 309 # ----------------------- 310 # Set $? to STATUS, without forking. 311 as_fn_set_status () 312 { 313 return $1 314 } # as_fn_set_status 315 316 # as_fn_exit STATUS 317 # ----------------- 318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319 as_fn_exit () 320 { 321 set +e 322 as_fn_set_status $1 323 exit $1 324 } # as_fn_exit 325 # as_fn_nop 326 # --------- 327 # Do nothing but, unlike ":", preserve the value of $?. 328 as_fn_nop () 329 { 330 return $? 331 } 332 as_nop=as_fn_nop 333 334 # as_fn_mkdir_p 335 # ------------- 336 # Create "$as_dir" as a directory, including parents if necessary. 337 as_fn_mkdir_p () 338 { 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356 printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380 } # as_fn_mkdir_p 381 382 # as_fn_executable_p FILE 383 # ----------------------- 384 # Test if FILE is an executable regular file. 385 as_fn_executable_p () 386 { 387 test -f "$1" && test -x "$1" 388 } # as_fn_executable_p 389 # as_fn_append VAR VALUE 390 # ---------------------- 391 # Append the text in VALUE to the end of the definition contained in VAR. Take 392 # advantage of any shell optimizations that allow amortized linear growth over 393 # repeated appends, instead of the typical quadratic growth present in naive 394 # implementations. 395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396 then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401 else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406 fi # as_fn_append 407 408 # as_fn_arith ARG... 409 # ------------------ 410 # Perform arithmetic evaluation on the ARGs, and store the result in the 411 # global $as_val. Take advantage of shells that can avoid forks. The arguments 412 # must be portable across $(()) and expr. 413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414 then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419 else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424 fi # as_fn_arith 425 426 # as_fn_nop 427 # --------- 428 # Do nothing but, unlike ":", preserve the value of $?. 429 as_fn_nop () 430 { 431 return $? 432 } 433 as_nop=as_fn_nop 434 435 # as_fn_error STATUS ERROR [LINENO LOG_FD] 436 # ---------------------------------------- 437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439 # script with STATUS, using 1 if that was 0. 440 as_fn_error () 441 { 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449 } # as_fn_error 450 451 if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454 else 455 as_expr=false 456 fi 457 458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460 else 461 as_basename=false 462 fi 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 as_me=`$as_basename -- "$0" || 471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474 printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489 # Avoid depending upon Character Ranges. 490 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493 as_cr_digits='0123456789' 494 as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530 } 531 532 533 # Determine whether it's possible to make 'echo' print without a newline. 534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535 # for compatibility with existing Makefiles. 536 ECHO_C= ECHO_N= ECHO_T= 537 case `echo -n x` in #((((( 538 -n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545 *) 546 ECHO_N='-n';; 547 esac 548 549 # For backward compatibility with old third-party macros, we provide 550 # the shell variables $as_echo and $as_echo_n. New code should use 551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552 as_echo='printf %s\n' 553 as_echo_n='printf %s' 554 555 556 rm -f conf$$ conf$$.exe conf$$.file 557 if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559 else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562 fi 563 if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577 else 578 as_ln_s='cp -pR' 579 fi 580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581 rmdir conf$$.dir 2>/dev/null 582 583 if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585 else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588 fi 589 590 as_test_x='test -x' 591 as_executable_p=as_fn_executable_p 592 593 # Sed expression to map a string onto a valid CPP name. 594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596 # Sed expression to map a string onto a valid variable name. 597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599 SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602 test -n "$DJDIR" || exec 7<&0 </dev/null 603 exec 6>&1 604 605 # Name of the host. 606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607 # so uname gets run too. 608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610 # 611 # Initializations. 612 # 613 ac_default_prefix=/usr/local 614 ac_clean_files= 615 ac_config_libobj_dir=. 616 LIBOBJS= 617 cross_compiling=no 618 subdirs= 619 MFLAGS= 620 MAKEFLAGS= 621 622 # Identity of this package. 623 PACKAGE_NAME='xf86-video-mach64' 624 PACKAGE_TARNAME='xf86-video-mach64' 625 PACKAGE_VERSION='6.9.7' 626 PACKAGE_STRING='xf86-video-mach64 6.9.7' 627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/issues' 628 PACKAGE_URL='' 629 630 ac_unique_file="Makefile.am" 631 # Factoring default headers for most tests. 632 ac_includes_default="\ 633 #include <stddef.h> 634 #ifdef HAVE_STDIO_H 635 # include <stdio.h> 636 #endif 637 #ifdef HAVE_STDLIB_H 638 # include <stdlib.h> 639 #endif 640 #ifdef HAVE_STRING_H 641 # include <string.h> 642 #endif 643 #ifdef HAVE_INTTYPES_H 644 # include <inttypes.h> 645 #endif 646 #ifdef HAVE_STDINT_H 647 # include <stdint.h> 648 #endif 649 #ifdef HAVE_STRINGS_H 650 # include <strings.h> 651 #endif 652 #ifdef HAVE_SYS_TYPES_H 653 # include <sys/types.h> 654 #endif 655 #ifdef HAVE_SYS_STAT_H 656 # include <sys/stat.h> 657 #endif 658 #ifdef HAVE_UNISTD_H 659 # include <unistd.h> 660 #endif" 661 662 ac_header_c_list= 663 ac_subst_vars='am__EXEEXT_FALSE 664 am__EXEEXT_TRUE 665 LTLIBOBJS 666 LIBOBJS 667 DRIVER_NAME 668 moduledir 669 XSERVER_LIBPCIACCESS_FALSE 670 XSERVER_LIBPCIACCESS_TRUE 671 PCIACCESS_LIBS 672 PCIACCESS_CFLAGS 673 USE_EXA_FALSE 674 USE_EXA_TRUE 675 XAA_FALSE 676 XAA_TRUE 677 CPP 678 ATIMISC_TV_OUT_FALSE 679 ATIMISC_TV_OUT_TRUE 680 ATIMISC_DGA_FALSE 681 ATIMISC_DGA_TRUE 682 ATIMISC_CPIO_FALSE 683 ATIMISC_CPIO_TRUE 684 DRI_LIBS 685 DRI_CFLAGS 686 DRI_FALSE 687 DRI_TRUE 688 HAVE_XEXTPROTO_71_FALSE 689 HAVE_XEXTPROTO_71_TRUE 690 XEXT_LIBS 691 XEXT_CFLAGS 692 XORG_LIBS 693 XORG_CFLAGS 694 LT_SYS_LIBRARY_PATH 695 OTOOL64 696 OTOOL 697 LIPO 698 NMEDIT 699 DSYMUTIL 700 MANIFEST_TOOL 701 RANLIB 702 ac_ct_AR 703 AR 704 DLLTOOL 705 OBJDUMP 706 FILECMD 707 LN_S 708 NM 709 ac_ct_DUMPBIN 710 DUMPBIN 711 LD 712 FGREP 713 EGREP 714 GREP 715 LIBTOOL 716 MAN_SUBSTS 717 XORG_MAN_PAGE 718 ADMIN_MAN_DIR 719 DRIVER_MAN_DIR 720 MISC_MAN_DIR 721 FILE_MAN_DIR 722 LIB_MAN_DIR 723 APP_MAN_DIR 724 ADMIN_MAN_SUFFIX 725 DRIVER_MAN_SUFFIX 726 MISC_MAN_SUFFIX 727 FILE_MAN_SUFFIX 728 LIB_MAN_SUFFIX 729 APP_MAN_SUFFIX 730 SED 731 host_os 732 host_vendor 733 host_cpu 734 host 735 build_os 736 build_vendor 737 build_cpu 738 build 739 INSTALL_CMD 740 PKG_CONFIG_LIBDIR 741 PKG_CONFIG_PATH 742 PKG_CONFIG 743 CHANGELOG_CMD 744 STRICT_CFLAGS 745 CWARNFLAGS 746 BASE_CFLAGS 747 am__fastdepCC_FALSE 748 am__fastdepCC_TRUE 749 CCDEPMODE 750 am__nodep 751 AMDEPBACKSLASH 752 AMDEP_FALSE 753 AMDEP_TRUE 754 am__include 755 DEPDIR 756 OBJEXT 757 EXEEXT 758 ac_ct_CC 759 CPPFLAGS 760 LDFLAGS 761 CFLAGS 762 CC 763 AM_BACKSLASH 764 AM_DEFAULT_VERBOSITY 765 AM_DEFAULT_V 766 AM_V 767 CSCOPE 768 ETAGS 769 CTAGS 770 am__untar 771 am__tar 772 AMTAR 773 am__leading_dot 774 SET_MAKE 775 AWK 776 mkdir_p 777 MKDIR_P 778 INSTALL_STRIP_PROGRAM 779 STRIP 780 install_sh 781 MAKEINFO 782 AUTOHEADER 783 AUTOMAKE 784 AUTOCONF 785 ACLOCAL 786 VERSION 787 PACKAGE 788 CYGPATH_W 789 am__isrc 790 INSTALL_DATA 791 INSTALL_SCRIPT 792 INSTALL_PROGRAM 793 target_alias 794 host_alias 795 build_alias 796 LIBS 797 ECHO_T 798 ECHO_N 799 ECHO_C 800 DEFS 801 mandir 802 localedir 803 libdir 804 psdir 805 pdfdir 806 dvidir 807 htmldir 808 infodir 809 docdir 810 oldincludedir 811 includedir 812 runstatedir 813 localstatedir 814 sharedstatedir 815 sysconfdir 816 datadir 817 datarootdir 818 libexecdir 819 sbindir 820 bindir 821 program_transform_name 822 prefix 823 exec_prefix 824 PACKAGE_URL 825 PACKAGE_BUGREPORT 826 PACKAGE_STRING 827 PACKAGE_VERSION 828 PACKAGE_TARNAME 829 PACKAGE_NAME 830 PATH_SEPARATOR 831 SHELL 832 am__quote' 833 ac_subst_files='' 834 ac_user_opts=' 835 enable_option_checking 836 enable_silent_rules 837 enable_dependency_tracking 838 enable_selective_werror 839 enable_strict_compilation 840 enable_static 841 enable_shared 842 with_pic 843 enable_fast_install 844 with_aix_soname 845 with_gnu_ld 846 with_sysroot 847 enable_libtool_lock 848 with_xorg_module_dir 849 enable_dri 850 enable_exa 851 enable_xaa 852 ' 853 ac_precious_vars='build_alias 854 host_alias 855 target_alias 856 CC 857 CFLAGS 858 LDFLAGS 859 LIBS 860 CPPFLAGS 861 PKG_CONFIG 862 PKG_CONFIG_PATH 863 PKG_CONFIG_LIBDIR 864 LT_SYS_LIBRARY_PATH 865 XORG_CFLAGS 866 XORG_LIBS 867 XEXT_CFLAGS 868 XEXT_LIBS 869 DRI_CFLAGS 870 DRI_LIBS 871 CPP 872 PCIACCESS_CFLAGS 873 PCIACCESS_LIBS' 874 875 876 # Initialize some variables set by options. 877 ac_init_help= 878 ac_init_version=false 879 ac_unrecognized_opts= 880 ac_unrecognized_sep= 881 # The variables have the same names as the options, with 882 # dashes changed to underlines. 883 cache_file=/dev/null 884 exec_prefix=NONE 885 no_create= 886 no_recursion= 887 prefix=NONE 888 program_prefix=NONE 889 program_suffix=NONE 890 program_transform_name=s,x,x, 891 silent= 892 site= 893 srcdir= 894 verbose= 895 x_includes=NONE 896 x_libraries=NONE 897 898 # Installation directory options. 899 # These are left unexpanded so users can "make install exec_prefix=/foo" 900 # and all the variables that are supposed to be based on exec_prefix 901 # by default will actually change. 902 # Use braces instead of parens because sh, perl, etc. also accept them. 903 # (The list follows the same order as the GNU Coding Standards.) 904 bindir='${exec_prefix}/bin' 905 sbindir='${exec_prefix}/sbin' 906 libexecdir='${exec_prefix}/libexec' 907 datarootdir='${prefix}/share' 908 datadir='${datarootdir}' 909 sysconfdir='${prefix}/etc' 910 sharedstatedir='${prefix}/com' 911 localstatedir='${prefix}/var' 912 runstatedir='${localstatedir}/run' 913 includedir='${prefix}/include' 914 oldincludedir='/usr/include' 915 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 916 infodir='${datarootdir}/info' 917 htmldir='${docdir}' 918 dvidir='${docdir}' 919 pdfdir='${docdir}' 920 psdir='${docdir}' 921 libdir='${exec_prefix}/lib' 922 localedir='${datarootdir}/locale' 923 mandir='${datarootdir}/man' 924 925 ac_prev= 926 ac_dashdash= 927 for ac_option 928 do 929 # If the previous option needs an argument, assign it. 930 if test -n "$ac_prev"; then 931 eval $ac_prev=\$ac_option 932 ac_prev= 933 continue 934 fi 935 936 case $ac_option in 937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 938 *=) ac_optarg= ;; 939 *) ac_optarg=yes ;; 940 esac 941 942 case $ac_dashdash$ac_option in 943 --) 944 ac_dashdash=yes ;; 945 946 -bindir | --bindir | --bindi | --bind | --bin | --bi) 947 ac_prev=bindir ;; 948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 949 bindir=$ac_optarg ;; 950 951 -build | --build | --buil | --bui | --bu) 952 ac_prev=build_alias ;; 953 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 954 build_alias=$ac_optarg ;; 955 956 -cache-file | --cache-file | --cache-fil | --cache-fi \ 957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 958 ac_prev=cache_file ;; 959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 961 cache_file=$ac_optarg ;; 962 963 --config-cache | -C) 964 cache_file=config.cache ;; 965 966 -datadir | --datadir | --datadi | --datad) 967 ac_prev=datadir ;; 968 -datadir=* | --datadir=* | --datadi=* | --datad=*) 969 datadir=$ac_optarg ;; 970 971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 972 | --dataroo | --dataro | --datar) 973 ac_prev=datarootdir ;; 974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 976 datarootdir=$ac_optarg ;; 977 978 -disable-* | --disable-*) 979 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 980 # Reject names that are not valid shell variable names. 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 982 as_fn_error $? "invalid feature name: \`$ac_useropt'" 983 ac_useropt_orig=$ac_useropt 984 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 985 case $ac_user_opts in 986 *" 987 "enable_$ac_useropt" 988 "*) ;; 989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 990 ac_unrecognized_sep=', ';; 991 esac 992 eval enable_$ac_useropt=no ;; 993 994 -docdir | --docdir | --docdi | --doc | --do) 995 ac_prev=docdir ;; 996 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 997 docdir=$ac_optarg ;; 998 999 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1000 ac_prev=dvidir ;; 1001 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1002 dvidir=$ac_optarg ;; 1003 1004 -enable-* | --enable-*) 1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1008 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1009 ac_useropt_orig=$ac_useropt 1010 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 case $ac_user_opts in 1012 *" 1013 "enable_$ac_useropt" 1014 "*) ;; 1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1016 ac_unrecognized_sep=', ';; 1017 esac 1018 eval enable_$ac_useropt=\$ac_optarg ;; 1019 1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1022 | --exec | --exe | --ex) 1023 ac_prev=exec_prefix ;; 1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1026 | --exec=* | --exe=* | --ex=*) 1027 exec_prefix=$ac_optarg ;; 1028 1029 -gas | --gas | --ga | --g) 1030 # Obsolete; use --with-gas. 1031 with_gas=yes ;; 1032 1033 -help | --help | --hel | --he | -h) 1034 ac_init_help=long ;; 1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1036 ac_init_help=recursive ;; 1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1038 ac_init_help=short ;; 1039 1040 -host | --host | --hos | --ho) 1041 ac_prev=host_alias ;; 1042 -host=* | --host=* | --hos=* | --ho=*) 1043 host_alias=$ac_optarg ;; 1044 1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1046 ac_prev=htmldir ;; 1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1048 | --ht=*) 1049 htmldir=$ac_optarg ;; 1050 1051 -includedir | --includedir | --includedi | --included | --include \ 1052 | --includ | --inclu | --incl | --inc) 1053 ac_prev=includedir ;; 1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1055 | --includ=* | --inclu=* | --incl=* | --inc=*) 1056 includedir=$ac_optarg ;; 1057 1058 -infodir | --infodir | --infodi | --infod | --info | --inf) 1059 ac_prev=infodir ;; 1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1061 infodir=$ac_optarg ;; 1062 1063 -libdir | --libdir | --libdi | --libd) 1064 ac_prev=libdir ;; 1065 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1066 libdir=$ac_optarg ;; 1067 1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1069 | --libexe | --libex | --libe) 1070 ac_prev=libexecdir ;; 1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1072 | --libexe=* | --libex=* | --libe=*) 1073 libexecdir=$ac_optarg ;; 1074 1075 -localedir | --localedir | --localedi | --localed | --locale) 1076 ac_prev=localedir ;; 1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1078 localedir=$ac_optarg ;; 1079 1080 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1081 | --localstate | --localstat | --localsta | --localst | --locals) 1082 ac_prev=localstatedir ;; 1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1085 localstatedir=$ac_optarg ;; 1086 1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1088 ac_prev=mandir ;; 1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1090 mandir=$ac_optarg ;; 1091 1092 -nfp | --nfp | --nf) 1093 # Obsolete; use --without-fp. 1094 with_fp=no ;; 1095 1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1097 | --no-cr | --no-c | -n) 1098 no_create=yes ;; 1099 1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1102 no_recursion=yes ;; 1103 1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1106 | --oldin | --oldi | --old | --ol | --o) 1107 ac_prev=oldincludedir ;; 1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1111 oldincludedir=$ac_optarg ;; 1112 1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1114 ac_prev=prefix ;; 1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1116 prefix=$ac_optarg ;; 1117 1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1119 | --program-pre | --program-pr | --program-p) 1120 ac_prev=program_prefix ;; 1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1123 program_prefix=$ac_optarg ;; 1124 1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1126 | --program-suf | --program-su | --program-s) 1127 ac_prev=program_suffix ;; 1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1130 program_suffix=$ac_optarg ;; 1131 1132 -program-transform-name | --program-transform-name \ 1133 | --program-transform-nam | --program-transform-na \ 1134 | --program-transform-n | --program-transform- \ 1135 | --program-transform | --program-transfor \ 1136 | --program-transfo | --program-transf \ 1137 | --program-trans | --program-tran \ 1138 | --progr-tra | --program-tr | --program-t) 1139 ac_prev=program_transform_name ;; 1140 -program-transform-name=* | --program-transform-name=* \ 1141 | --program-transform-nam=* | --program-transform-na=* \ 1142 | --program-transform-n=* | --program-transform-=* \ 1143 | --program-transform=* | --program-transfor=* \ 1144 | --program-transfo=* | --program-transf=* \ 1145 | --program-trans=* | --program-tran=* \ 1146 | --progr-tra=* | --program-tr=* | --program-t=*) 1147 program_transform_name=$ac_optarg ;; 1148 1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1150 ac_prev=pdfdir ;; 1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1152 pdfdir=$ac_optarg ;; 1153 1154 -psdir | --psdir | --psdi | --psd | --ps) 1155 ac_prev=psdir ;; 1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1157 psdir=$ac_optarg ;; 1158 1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1160 | -silent | --silent | --silen | --sile | --sil) 1161 silent=yes ;; 1162 1163 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1164 | --runstate | --runstat | --runsta | --runst | --runs \ 1165 | --run | --ru | --r) 1166 ac_prev=runstatedir ;; 1167 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1168 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1169 | --run=* | --ru=* | --r=*) 1170 runstatedir=$ac_optarg ;; 1171 1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1173 ac_prev=sbindir ;; 1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1175 | --sbi=* | --sb=*) 1176 sbindir=$ac_optarg ;; 1177 1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1180 | --sharedst | --shareds | --shared | --share | --shar \ 1181 | --sha | --sh) 1182 ac_prev=sharedstatedir ;; 1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1186 | --sha=* | --sh=*) 1187 sharedstatedir=$ac_optarg ;; 1188 1189 -site | --site | --sit) 1190 ac_prev=site ;; 1191 -site=* | --site=* | --sit=*) 1192 site=$ac_optarg ;; 1193 1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1195 ac_prev=srcdir ;; 1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1197 srcdir=$ac_optarg ;; 1198 1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1200 | --syscon | --sysco | --sysc | --sys | --sy) 1201 ac_prev=sysconfdir ;; 1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1204 sysconfdir=$ac_optarg ;; 1205 1206 -target | --target | --targe | --targ | --tar | --ta | --t) 1207 ac_prev=target_alias ;; 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1209 target_alias=$ac_optarg ;; 1210 1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1212 verbose=yes ;; 1213 1214 -version | --version | --versio | --versi | --vers | -V) 1215 ac_init_version=: ;; 1216 1217 -with-* | --with-*) 1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1221 as_fn_error $? "invalid package name: \`$ac_useropt'" 1222 ac_useropt_orig=$ac_useropt 1223 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1224 case $ac_user_opts in 1225 *" 1226 "with_$ac_useropt" 1227 "*) ;; 1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1229 ac_unrecognized_sep=', ';; 1230 esac 1231 eval with_$ac_useropt=\$ac_optarg ;; 1232 1233 -without-* | --without-*) 1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1235 # Reject names that are not valid shell variable names. 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1237 as_fn_error $? "invalid package name: \`$ac_useropt'" 1238 ac_useropt_orig=$ac_useropt 1239 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1240 case $ac_user_opts in 1241 *" 1242 "with_$ac_useropt" 1243 "*) ;; 1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1245 ac_unrecognized_sep=', ';; 1246 esac 1247 eval with_$ac_useropt=no ;; 1248 1249 --x) 1250 # Obsolete; use --with-x. 1251 with_x=yes ;; 1252 1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1254 | --x-incl | --x-inc | --x-in | --x-i) 1255 ac_prev=x_includes ;; 1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1258 x_includes=$ac_optarg ;; 1259 1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1262 ac_prev=x_libraries ;; 1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1265 x_libraries=$ac_optarg ;; 1266 1267 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1268 Try \`$0 --help' for more information" 1269 ;; 1270 1271 *=*) 1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1273 # Reject names that are not valid shell variable names. 1274 case $ac_envvar in #( 1275 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1277 esac 1278 eval $ac_envvar=\$ac_optarg 1279 export $ac_envvar ;; 1280 1281 *) 1282 # FIXME: should be removed in autoconf 3.0. 1283 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1285 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1286 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1287 ;; 1288 1289 esac 1290 done 1291 1292 if test -n "$ac_prev"; then 1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1294 as_fn_error $? "missing argument to $ac_option" 1295 fi 1296 1297 if test -n "$ac_unrecognized_opts"; then 1298 case $enable_option_checking in 1299 no) ;; 1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1301 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1302 esac 1303 fi 1304 1305 # Check all directory arguments for consistency. 1306 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1307 datadir sysconfdir sharedstatedir localstatedir includedir \ 1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1309 libdir localedir mandir runstatedir 1310 do 1311 eval ac_val=\$$ac_var 1312 # Remove trailing slashes. 1313 case $ac_val in 1314 */ ) 1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1316 eval $ac_var=\$ac_val;; 1317 esac 1318 # Be sure to have absolute directory names. 1319 case $ac_val in 1320 [\\/$]* | ?:[\\/]* ) continue;; 1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1322 esac 1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1324 done 1325 1326 # There might be people who depend on the old broken behavior: `$host' 1327 # used to hold the argument of --host etc. 1328 # FIXME: To remove some day. 1329 build=$build_alias 1330 host=$host_alias 1331 target=$target_alias 1332 1333 # FIXME: To remove some day. 1334 if test "x$host_alias" != x; then 1335 if test "x$build_alias" = x; then 1336 cross_compiling=maybe 1337 elif test "x$build_alias" != "x$host_alias"; then 1338 cross_compiling=yes 1339 fi 1340 fi 1341 1342 ac_tool_prefix= 1343 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1344 1345 test "$silent" = yes && exec 6>/dev/null 1346 1347 1348 ac_pwd=`pwd` && test -n "$ac_pwd" && 1349 ac_ls_di=`ls -di .` && 1350 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1351 as_fn_error $? "working directory cannot be determined" 1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1353 as_fn_error $? "pwd does not report name of working directory" 1354 1355 1356 # Find the source files, if location was not specified. 1357 if test -z "$srcdir"; then 1358 ac_srcdir_defaulted=yes 1359 # Try the directory containing this script, then the parent directory. 1360 ac_confdir=`$as_dirname -- "$as_myself" || 1361 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1362 X"$as_myself" : 'X\(//\)[^/]' \| \ 1363 X"$as_myself" : 'X\(//\)$' \| \ 1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1365 printf "%s\n" X"$as_myself" | 1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1367 s//\1/ 1368 q 1369 } 1370 /^X\(\/\/\)[^/].*/{ 1371 s//\1/ 1372 q 1373 } 1374 /^X\(\/\/\)$/{ 1375 s//\1/ 1376 q 1377 } 1378 /^X\(\/\).*/{ 1379 s//\1/ 1380 q 1381 } 1382 s/.*/./; q'` 1383 srcdir=$ac_confdir 1384 if test ! -r "$srcdir/$ac_unique_file"; then 1385 srcdir=.. 1386 fi 1387 else 1388 ac_srcdir_defaulted=no 1389 fi 1390 if test ! -r "$srcdir/$ac_unique_file"; then 1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1392 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1393 fi 1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1395 ac_abs_confdir=`( 1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1397 pwd)` 1398 # When building in place, set srcdir=. 1399 if test "$ac_abs_confdir" = "$ac_pwd"; then 1400 srcdir=. 1401 fi 1402 # Remove unnecessary trailing slashes from srcdir. 1403 # Double slashes in file names in object file debugging info 1404 # mess up M-x gdb in Emacs. 1405 case $srcdir in 1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1407 esac 1408 for ac_var in $ac_precious_vars; do 1409 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1410 eval ac_env_${ac_var}_value=\$${ac_var} 1411 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1412 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1413 done 1414 1415 # 1416 # Report the --help message. 1417 # 1418 if test "$ac_init_help" = "long"; then 1419 # Omit some internal or obsolete options to make the list less imposing. 1420 # This message is too long to be a string in the A/UX 3.1 sh. 1421 cat <<_ACEOF 1422 \`configure' configures xf86-video-mach64 6.9.7 to adapt to many kinds of systems. 1423 1424 Usage: $0 [OPTION]... [VAR=VALUE]... 1425 1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1427 VAR=VALUE. See below for descriptions of some of the useful variables. 1428 1429 Defaults for the options are specified in brackets. 1430 1431 Configuration: 1432 -h, --help display this help and exit 1433 --help=short display options specific to this package 1434 --help=recursive display the short help of all the included packages 1435 -V, --version display version information and exit 1436 -q, --quiet, --silent do not print \`checking ...' messages 1437 --cache-file=FILE cache test results in FILE [disabled] 1438 -C, --config-cache alias for \`--cache-file=config.cache' 1439 -n, --no-create do not create output files 1440 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1441 1442 Installation directories: 1443 --prefix=PREFIX install architecture-independent files in PREFIX 1444 [$ac_default_prefix] 1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1446 [PREFIX] 1447 1448 By default, \`make install' will install all the files in 1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1451 for instance \`--prefix=\$HOME'. 1452 1453 For better control, use the options below. 1454 1455 Fine tuning of the installation directories: 1456 --bindir=DIR user executables [EPREFIX/bin] 1457 --sbindir=DIR system admin executables [EPREFIX/sbin] 1458 --libexecdir=DIR program executables [EPREFIX/libexec] 1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1462 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1463 --libdir=DIR object code libraries [EPREFIX/lib] 1464 --includedir=DIR C header files [PREFIX/include] 1465 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1468 --infodir=DIR info documentation [DATAROOTDIR/info] 1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1470 --mandir=DIR man documentation [DATAROOTDIR/man] 1471 --docdir=DIR documentation root 1472 [DATAROOTDIR/doc/xf86-video-mach64] 1473 --htmldir=DIR html documentation [DOCDIR] 1474 --dvidir=DIR dvi documentation [DOCDIR] 1475 --pdfdir=DIR pdf documentation [DOCDIR] 1476 --psdir=DIR ps documentation [DOCDIR] 1477 _ACEOF 1478 1479 cat <<\_ACEOF 1480 1481 Program names: 1482 --program-prefix=PREFIX prepend PREFIX to installed program names 1483 --program-suffix=SUFFIX append SUFFIX to installed program names 1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1485 1486 System types: 1487 --build=BUILD configure for building on BUILD [guessed] 1488 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1489 _ACEOF 1490 fi 1491 1492 if test -n "$ac_init_help"; then 1493 case $ac_init_help in 1494 short | recursive ) echo "Configuration of xf86-video-mach64 6.9.7:";; 1495 esac 1496 cat <<\_ACEOF 1497 1498 Optional Features: 1499 --disable-option-checking ignore unrecognized --enable/--with options 1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1502 --enable-silent-rules less verbose build output (undo: "make V=1") 1503 --disable-silent-rules verbose build output (undo: "make V=0") 1504 --enable-dependency-tracking 1505 do not reject slow dependency extractors 1506 --disable-dependency-tracking 1507 speeds up one-time build 1508 --disable-selective-werror 1509 Turn off selective compiler errors. (default: 1510 enabled) 1511 --enable-strict-compilation 1512 Enable all warnings from compiler and make them 1513 errors (default: disabled) 1514 --enable-static[=PKGS] build static libraries [default=no] 1515 --enable-shared[=PKGS] build shared libraries [default=yes] 1516 --enable-fast-install[=PKGS] 1517 optimize for fast installation [default=yes] 1518 --disable-libtool-lock avoid locking (might break parallel builds) 1519 --disable-dri Disable DRI support [[default=auto]] 1520 --disable-exa Disable EXA support [[default=enabled]] 1521 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1522 [default=auto] 1523 1524 Optional Packages: 1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1527 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1528 both] 1529 --with-aix-soname=aix|svr4|both 1530 shared library versioning (aka "SONAME") variant to 1531 provide on AIX, [default=aix]. 1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1533 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1534 compiler's sysroot if not specified). 1535 --with-xorg-module-dir=DIR 1536 Default xorg module directory 1537 [[default=$libdir/xorg/modules]] 1538 1539 Some influential environment variables: 1540 CC C compiler command 1541 CFLAGS C compiler flags 1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1543 nonstandard directory <lib dir> 1544 LIBS libraries to pass to the linker, e.g. -l<library> 1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1546 you have headers in a nonstandard directory <include dir> 1547 PKG_CONFIG path to pkg-config utility 1548 PKG_CONFIG_PATH 1549 directories to add to pkg-config's search path 1550 PKG_CONFIG_LIBDIR 1551 path overriding pkg-config's built-in search path 1552 LT_SYS_LIBRARY_PATH 1553 User-defined run-time library search path. 1554 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1555 XORG_LIBS linker flags for XORG, overriding pkg-config 1556 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1557 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1558 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1559 DRI_LIBS linker flags for DRI, overriding pkg-config 1560 CPP C preprocessor 1561 PCIACCESS_CFLAGS 1562 C compiler flags for PCIACCESS, overriding pkg-config 1563 PCIACCESS_LIBS 1564 linker flags for PCIACCESS, overriding pkg-config 1565 1566 Use these variables to override the choices made by `configure' or to help 1567 it to find libraries and programs with nonstandard names/locations. 1568 1569 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/issues>. 1570 _ACEOF 1571 ac_status=$? 1572 fi 1573 1574 if test "$ac_init_help" = "recursive"; then 1575 # If there are subdirs, report their specific --help. 1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1577 test -d "$ac_dir" || 1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1579 continue 1580 ac_builddir=. 1581 1582 case "$ac_dir" in 1583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1584 *) 1585 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1586 # A ".." for each directory in $ac_dir_suffix. 1587 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1588 case $ac_top_builddir_sub in 1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1591 esac ;; 1592 esac 1593 ac_abs_top_builddir=$ac_pwd 1594 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1595 # for backward compatibility: 1596 ac_top_builddir=$ac_top_build_prefix 1597 1598 case $srcdir in 1599 .) # We are building in place. 1600 ac_srcdir=. 1601 ac_top_srcdir=$ac_top_builddir_sub 1602 ac_abs_top_srcdir=$ac_pwd ;; 1603 [\\/]* | ?:[\\/]* ) # Absolute name. 1604 ac_srcdir=$srcdir$ac_dir_suffix; 1605 ac_top_srcdir=$srcdir 1606 ac_abs_top_srcdir=$srcdir ;; 1607 *) # Relative name. 1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1609 ac_top_srcdir=$ac_top_build_prefix$srcdir 1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1611 esac 1612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1613 1614 cd "$ac_dir" || { ac_status=$?; continue; } 1615 # Check for configure.gnu first; this name is used for a wrapper for 1616 # Metaconfig's "Configure" on case-insensitive file systems. 1617 if test -f "$ac_srcdir/configure.gnu"; then 1618 echo && 1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1620 elif test -f "$ac_srcdir/configure"; then 1621 echo && 1622 $SHELL "$ac_srcdir/configure" --help=recursive 1623 else 1624 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1625 fi || ac_status=$? 1626 cd "$ac_pwd" || { ac_status=$?; break; } 1627 done 1628 fi 1629 1630 test -n "$ac_init_help" && exit $ac_status 1631 if $ac_init_version; then 1632 cat <<\_ACEOF 1633 xf86-video-mach64 configure 6.9.7 1634 generated by GNU Autoconf 2.71 1635 1636 Copyright (C) 2021 Free Software Foundation, Inc. 1637 This configure script is free software; the Free Software Foundation 1638 gives unlimited permission to copy, distribute and modify it. 1639 _ACEOF 1640 exit 1641 fi 1642 1643 ## ------------------------ ## 1644 ## Autoconf initialization. ## 1645 ## ------------------------ ## 1646 1647 # ac_fn_c_try_compile LINENO 1648 # -------------------------- 1649 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1650 ac_fn_c_try_compile () 1651 { 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 rm -f conftest.$ac_objext conftest.beam 1654 if { { ac_try="$ac_compile" 1655 case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658 esac 1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660 printf "%s\n" "$ac_try_echo"; } >&5 1661 (eval "$ac_compile") 2>conftest.err 1662 ac_status=$? 1663 if test -s conftest.err; then 1664 grep -v '^ *+' conftest.err >conftest.er1 1665 cat conftest.er1 >&5 1666 mv -f conftest.er1 conftest.err 1667 fi 1668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; } && { 1670 test -z "$ac_c_werror_flag" || 1671 test ! -s conftest.err 1672 } && test -s conftest.$ac_objext 1673 then : 1674 ac_retval=0 1675 else $as_nop 1676 printf "%s\n" "$as_me: failed program was:" >&5 1677 sed 's/^/| /' conftest.$ac_ext >&5 1678 1679 ac_retval=1 1680 fi 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 as_fn_set_status $ac_retval 1683 1684 } # ac_fn_c_try_compile 1685 1686 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1687 # ------------------------------------------------------------------ 1688 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1689 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1690 ac_fn_check_decl () 1691 { 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 as_decl_name=`echo $2|sed 's/ *(.*//'` 1694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1695 printf %s "checking whether $as_decl_name is declared... " >&6; } 1696 if eval test \${$3+y} 1697 then : 1698 printf %s "(cached) " >&6 1699 else $as_nop 1700 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1701 eval ac_save_FLAGS=\$$6 1702 as_fn_append $6 " $5" 1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704 /* end confdefs.h. */ 1705 $4 1706 int 1707 main (void) 1708 { 1709 #ifndef $as_decl_name 1710 #ifdef __cplusplus 1711 (void) $as_decl_use; 1712 #else 1713 (void) $as_decl_name; 1714 #endif 1715 #endif 1716 1717 ; 1718 return 0; 1719 } 1720 _ACEOF 1721 if ac_fn_c_try_compile "$LINENO" 1722 then : 1723 eval "$3=yes" 1724 else $as_nop 1725 eval "$3=no" 1726 fi 1727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1728 eval $6=\$ac_save_FLAGS 1729 1730 fi 1731 eval ac_res=\$$3 1732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1733 printf "%s\n" "$ac_res" >&6; } 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 1736 } # ac_fn_check_decl 1737 1738 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1739 # ------------------------------------------------------- 1740 # Tests whether HEADER exists and can be compiled using the include files in 1741 # INCLUDES, setting the cache variable VAR accordingly. 1742 ac_fn_c_check_header_compile () 1743 { 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1746 printf %s "checking for $2... " >&6; } 1747 if eval test \${$3+y} 1748 then : 1749 printf %s "(cached) " >&6 1750 else $as_nop 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752 /* end confdefs.h. */ 1753 $4 1754 #include <$2> 1755 _ACEOF 1756 if ac_fn_c_try_compile "$LINENO" 1757 then : 1758 eval "$3=yes" 1759 else $as_nop 1760 eval "$3=no" 1761 fi 1762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1763 fi 1764 eval ac_res=\$$3 1765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1766 printf "%s\n" "$ac_res" >&6; } 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 1769 } # ac_fn_c_check_header_compile 1770 1771 # ac_fn_c_try_link LINENO 1772 # ----------------------- 1773 # Try to link conftest.$ac_ext, and return whether this succeeded. 1774 ac_fn_c_try_link () 1775 { 1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1777 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1778 if { { ac_try="$ac_link" 1779 case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782 esac 1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784 printf "%s\n" "$ac_try_echo"; } >&5 1785 (eval "$ac_link") 2>conftest.err 1786 ac_status=$? 1787 if test -s conftest.err; then 1788 grep -v '^ *+' conftest.err >conftest.er1 1789 cat conftest.er1 >&5 1790 mv -f conftest.er1 conftest.err 1791 fi 1792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1793 test $ac_status = 0; } && { 1794 test -z "$ac_c_werror_flag" || 1795 test ! -s conftest.err 1796 } && test -s conftest$ac_exeext && { 1797 test "$cross_compiling" = yes || 1798 test -x conftest$ac_exeext 1799 } 1800 then : 1801 ac_retval=0 1802 else $as_nop 1803 printf "%s\n" "$as_me: failed program was:" >&5 1804 sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=1 1807 fi 1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1810 # interfere with the next link command; also delete a directory that is 1811 # left behind by Apple's compiler. We do this before executing the actions. 1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 as_fn_set_status $ac_retval 1815 1816 } # ac_fn_c_try_link 1817 1818 # ac_fn_c_check_func LINENO FUNC VAR 1819 # ---------------------------------- 1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1821 ac_fn_c_check_func () 1822 { 1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1825 printf %s "checking for $2... " >&6; } 1826 if eval test \${$3+y} 1827 then : 1828 printf %s "(cached) " >&6 1829 else $as_nop 1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831 /* end confdefs.h. */ 1832 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1834 #define $2 innocuous_$2 1835 1836 /* System header to define __stub macros and hopefully few prototypes, 1837 which can conflict with char $2 (); below. */ 1838 1839 #include <limits.h> 1840 #undef $2 1841 1842 /* Override any GCC internal prototype to avoid an error. 1843 Use char because int might match the return type of a GCC 1844 builtin and then its argument prototype would still apply. */ 1845 #ifdef __cplusplus 1846 extern "C" 1847 #endif 1848 char $2 (); 1849 /* The GNU C library defines this for functions which it implements 1850 to always fail with ENOSYS. Some functions are actually named 1851 something starting with __ and the normal name is an alias. */ 1852 #if defined __stub_$2 || defined __stub___$2 1853 choke me 1854 #endif 1855 1856 int 1857 main (void) 1858 { 1859 return $2 (); 1860 ; 1861 return 0; 1862 } 1863 _ACEOF 1864 if ac_fn_c_try_link "$LINENO" 1865 then : 1866 eval "$3=yes" 1867 else $as_nop 1868 eval "$3=no" 1869 fi 1870 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1871 conftest$ac_exeext conftest.$ac_ext 1872 fi 1873 eval ac_res=\$$3 1874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1875 printf "%s\n" "$ac_res" >&6; } 1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1877 1878 } # ac_fn_c_check_func 1879 1880 # ac_fn_c_try_cpp LINENO 1881 # ---------------------- 1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1883 ac_fn_c_try_cpp () 1884 { 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 if { { ac_try="$ac_cpp conftest.$ac_ext" 1887 case "(($ac_try" in 1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1889 *) ac_try_echo=$ac_try;; 1890 esac 1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1892 printf "%s\n" "$ac_try_echo"; } >&5 1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1894 ac_status=$? 1895 if test -s conftest.err; then 1896 grep -v '^ *+' conftest.err >conftest.er1 1897 cat conftest.er1 >&5 1898 mv -f conftest.er1 conftest.err 1899 fi 1900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1901 test $ac_status = 0; } > conftest.i && { 1902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1903 test ! -s conftest.err 1904 } 1905 then : 1906 ac_retval=0 1907 else $as_nop 1908 printf "%s\n" "$as_me: failed program was:" >&5 1909 sed 's/^/| /' conftest.$ac_ext >&5 1910 1911 ac_retval=1 1912 fi 1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1914 as_fn_set_status $ac_retval 1915 1916 } # ac_fn_c_try_cpp 1917 ac_configure_args_raw= 1918 for ac_arg 1919 do 1920 case $ac_arg in 1921 *\'*) 1922 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1923 esac 1924 as_fn_append ac_configure_args_raw " '$ac_arg'" 1925 done 1926 1927 case $ac_configure_args_raw in 1928 *$as_nl*) 1929 ac_safe_unquote= ;; 1930 *) 1931 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1932 ac_unsafe_a="$ac_unsafe_z#~" 1933 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1934 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1935 esac 1936 1937 cat >config.log <<_ACEOF 1938 This file contains any messages produced by compilers while 1939 running configure, to aid debugging if configure makes a mistake. 1940 1941 It was created by xf86-video-mach64 $as_me 6.9.7, which was 1942 generated by GNU Autoconf 2.71. Invocation command line was 1943 1944 $ $0$ac_configure_args_raw 1945 1946 _ACEOF 1947 exec 5>>config.log 1948 { 1949 cat <<_ASUNAME 1950 ## --------- ## 1951 ## Platform. ## 1952 ## --------- ## 1953 1954 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1955 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1956 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1957 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1958 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1959 1960 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1961 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1962 1963 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1964 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1965 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1966 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1967 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1968 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1969 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1970 1971 _ASUNAME 1972 1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974 for as_dir in $PATH 1975 do 1976 IFS=$as_save_IFS 1977 case $as_dir in #((( 1978 '') as_dir=./ ;; 1979 */) ;; 1980 *) as_dir=$as_dir/ ;; 1981 esac 1982 printf "%s\n" "PATH: $as_dir" 1983 done 1984 IFS=$as_save_IFS 1985 1986 } >&5 1987 1988 cat >&5 <<_ACEOF 1989 1990 1991 ## ----------- ## 1992 ## Core tests. ## 1993 ## ----------- ## 1994 1995 _ACEOF 1996 1997 1998 # Keep a trace of the command line. 1999 # Strip out --no-create and --no-recursion so they do not pile up. 2000 # Strip out --silent because we don't want to record it for future runs. 2001 # Also quote any args containing shell meta-characters. 2002 # Make two passes to allow for proper duplicate-argument suppression. 2003 ac_configure_args= 2004 ac_configure_args0= 2005 ac_configure_args1= 2006 ac_must_keep_next=false 2007 for ac_pass in 1 2 2008 do 2009 for ac_arg 2010 do 2011 case $ac_arg in 2012 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2014 | -silent | --silent | --silen | --sile | --sil) 2015 continue ;; 2016 *\'*) 2017 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2018 esac 2019 case $ac_pass in 2020 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2021 2) 2022 as_fn_append ac_configure_args1 " '$ac_arg'" 2023 if test $ac_must_keep_next = true; then 2024 ac_must_keep_next=false # Got value, back to normal. 2025 else 2026 case $ac_arg in 2027 *=* | --config-cache | -C | -disable-* | --disable-* \ 2028 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2029 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2030 | -with-* | --with-* | -without-* | --without-* | --x) 2031 case "$ac_configure_args0 " in 2032 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2033 esac 2034 ;; 2035 -* ) ac_must_keep_next=true ;; 2036 esac 2037 fi 2038 as_fn_append ac_configure_args " '$ac_arg'" 2039 ;; 2040 esac 2041 done 2042 done 2043 { ac_configure_args0=; unset ac_configure_args0;} 2044 { ac_configure_args1=; unset ac_configure_args1;} 2045 2046 # When interrupted or exit'd, cleanup temporary files, and complete 2047 # config.log. We remove comments because anyway the quotes in there 2048 # would cause problems or look ugly. 2049 # WARNING: Use '\'' to represent an apostrophe within the trap. 2050 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2051 trap 'exit_status=$? 2052 # Sanitize IFS. 2053 IFS=" "" $as_nl" 2054 # Save into config.log some information that might help in debugging. 2055 { 2056 echo 2057 2058 printf "%s\n" "## ---------------- ## 2059 ## Cache variables. ## 2060 ## ---------------- ##" 2061 echo 2062 # The following way of writing the cache mishandles newlines in values, 2063 ( 2064 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2065 eval ac_val=\$$ac_var 2066 case $ac_val in #( 2067 *${as_nl}*) 2068 case $ac_var in #( 2069 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2070 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2071 esac 2072 case $ac_var in #( 2073 _ | IFS | as_nl) ;; #( 2074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2075 *) { eval $ac_var=; unset $ac_var;} ;; 2076 esac ;; 2077 esac 2078 done 2079 (set) 2>&1 | 2080 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2081 *${as_nl}ac_space=\ *) 2082 sed -n \ 2083 "s/'\''/'\''\\\\'\'''\''/g; 2084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2085 ;; #( 2086 *) 2087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2088 ;; 2089 esac | 2090 sort 2091 ) 2092 echo 2093 2094 printf "%s\n" "## ----------------- ## 2095 ## Output variables. ## 2096 ## ----------------- ##" 2097 echo 2098 for ac_var in $ac_subst_vars 2099 do 2100 eval ac_val=\$$ac_var 2101 case $ac_val in 2102 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2103 esac 2104 printf "%s\n" "$ac_var='\''$ac_val'\''" 2105 done | sort 2106 echo 2107 2108 if test -n "$ac_subst_files"; then 2109 printf "%s\n" "## ------------------- ## 2110 ## File substitutions. ## 2111 ## ------------------- ##" 2112 echo 2113 for ac_var in $ac_subst_files 2114 do 2115 eval ac_val=\$$ac_var 2116 case $ac_val in 2117 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2118 esac 2119 printf "%s\n" "$ac_var='\''$ac_val'\''" 2120 done | sort 2121 echo 2122 fi 2123 2124 if test -s confdefs.h; then 2125 printf "%s\n" "## ----------- ## 2126 ## confdefs.h. ## 2127 ## ----------- ##" 2128 echo 2129 cat confdefs.h 2130 echo 2131 fi 2132 test "$ac_signal" != 0 && 2133 printf "%s\n" "$as_me: caught signal $ac_signal" 2134 printf "%s\n" "$as_me: exit $exit_status" 2135 } >&5 2136 rm -f core *.core core.conftest.* && 2137 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2138 exit $exit_status 2139 ' 0 2140 for ac_signal in 1 2 13 15; do 2141 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2142 done 2143 ac_signal=0 2144 2145 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2146 rm -f -r conftest* confdefs.h 2147 2148 printf "%s\n" "/* confdefs.h */" > confdefs.h 2149 2150 # Predefined preprocessor variables. 2151 2152 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2153 2154 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2155 2156 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2157 2158 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2159 2160 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2161 2162 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2163 2164 2165 # Let the site file select an alternate cache file if it wants to. 2166 # Prefer an explicitly selected file to automatically selected ones. 2167 if test -n "$CONFIG_SITE"; then 2168 ac_site_files="$CONFIG_SITE" 2169 elif test "x$prefix" != xNONE; then 2170 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2171 else 2172 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2173 fi 2174 2175 for ac_site_file in $ac_site_files 2176 do 2177 case $ac_site_file in #( 2178 */*) : 2179 ;; #( 2180 *) : 2181 ac_site_file=./$ac_site_file ;; 2182 esac 2183 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2185 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2186 sed 's/^/| /' "$ac_site_file" >&5 2187 . "$ac_site_file" \ 2188 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2189 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2190 as_fn_error $? "failed to load site script $ac_site_file 2191 See \`config.log' for more details" "$LINENO" 5; } 2192 fi 2193 done 2194 2195 if test -r "$cache_file"; then 2196 # Some versions of bash will fail to source /dev/null (special files 2197 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2198 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2200 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2201 case $cache_file in 2202 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2203 *) . "./$cache_file";; 2204 esac 2205 fi 2206 else 2207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2208 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2209 >$cache_file 2210 fi 2211 2212 # Test code for whether the C compiler supports C89 (global declarations) 2213 ac_c_conftest_c89_globals=' 2214 /* Does the compiler advertise C89 conformance? 2215 Do not test the value of __STDC__, because some compilers set it to 0 2216 while being otherwise adequately conformant. */ 2217 #if !defined __STDC__ 2218 # error "Compiler does not advertise C89 conformance" 2219 #endif 2220 2221 #include <stddef.h> 2222 #include <stdarg.h> 2223 struct stat; 2224 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2225 struct buf { int x; }; 2226 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2227 static char *e (p, i) 2228 char **p; 2229 int i; 2230 { 2231 return p[i]; 2232 } 2233 static char *f (char * (*g) (char **, int), char **p, ...) 2234 { 2235 char *s; 2236 va_list v; 2237 va_start (v,p); 2238 s = g (p, va_arg (v,int)); 2239 va_end (v); 2240 return s; 2241 } 2242 2243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2244 function prototypes and stuff, but not \xHH hex character constants. 2245 These do not provoke an error unfortunately, instead are silently treated 2246 as an "x". The following induces an error, until -std is added to get 2247 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2248 array size at least. It is necessary to write \x00 == 0 to get something 2249 that is true only with -std. */ 2250 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2251 2252 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2253 inside strings and character constants. */ 2254 #define FOO(x) '\''x'\'' 2255 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2256 2257 int test (int i, double x); 2258 struct s1 {int (*f) (int a);}; 2259 struct s2 {int (*f) (double a);}; 2260 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2261 int, int);' 2262 2263 # Test code for whether the C compiler supports C89 (body of main). 2264 ac_c_conftest_c89_main=' 2265 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2266 ' 2267 2268 # Test code for whether the C compiler supports C99 (global declarations) 2269 ac_c_conftest_c99_globals=' 2270 // Does the compiler advertise C99 conformance? 2271 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2272 # error "Compiler does not advertise C99 conformance" 2273 #endif 2274 2275 #include <stdbool.h> 2276 extern int puts (const char *); 2277 extern int printf (const char *, ...); 2278 extern int dprintf (int, const char *, ...); 2279 extern void *malloc (size_t); 2280 2281 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2282 // dprintf is used instead of fprintf to avoid needing to declare 2283 // FILE and stderr. 2284 #define debug(...) dprintf (2, __VA_ARGS__) 2285 #define showlist(...) puts (#__VA_ARGS__) 2286 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2287 static void 2288 test_varargs_macros (void) 2289 { 2290 int x = 1234; 2291 int y = 5678; 2292 debug ("Flag"); 2293 debug ("X = %d\n", x); 2294 showlist (The first, second, and third items.); 2295 report (x>y, "x is %d but y is %d", x, y); 2296 } 2297 2298 // Check long long types. 2299 #define BIG64 18446744073709551615ull 2300 #define BIG32 4294967295ul 2301 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2302 #if !BIG_OK 2303 #error "your preprocessor is broken" 2304 #endif 2305 #if BIG_OK 2306 #else 2307 #error "your preprocessor is broken" 2308 #endif 2309 static long long int bignum = -9223372036854775807LL; 2310 static unsigned long long int ubignum = BIG64; 2311 2312 struct incomplete_array 2313 { 2314 int datasize; 2315 double data[]; 2316 }; 2317 2318 struct named_init { 2319 int number; 2320 const wchar_t *name; 2321 double average; 2322 }; 2323 2324 typedef const char *ccp; 2325 2326 static inline int 2327 test_restrict (ccp restrict text) 2328 { 2329 // See if C++-style comments work. 2330 // Iterate through items via the restricted pointer. 2331 // Also check for declarations in for loops. 2332 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2333 continue; 2334 return 0; 2335 } 2336 2337 // Check varargs and va_copy. 2338 static bool 2339 test_varargs (const char *format, ...) 2340 { 2341 va_list args; 2342 va_start (args, format); 2343 va_list args_copy; 2344 va_copy (args_copy, args); 2345 2346 const char *str = ""; 2347 int number = 0; 2348 float fnumber = 0; 2349 2350 while (*format) 2351 { 2352 switch (*format++) 2353 { 2354 case '\''s'\'': // string 2355 str = va_arg (args_copy, const char *); 2356 break; 2357 case '\''d'\'': // int 2358 number = va_arg (args_copy, int); 2359 break; 2360 case '\''f'\'': // float 2361 fnumber = va_arg (args_copy, double); 2362 break; 2363 default: 2364 break; 2365 } 2366 } 2367 va_end (args_copy); 2368 va_end (args); 2369 2370 return *str && number && fnumber; 2371 } 2372 ' 2373 2374 # Test code for whether the C compiler supports C99 (body of main). 2375 ac_c_conftest_c99_main=' 2376 // Check bool. 2377 _Bool success = false; 2378 success |= (argc != 0); 2379 2380 // Check restrict. 2381 if (test_restrict ("String literal") == 0) 2382 success = true; 2383 char *restrict newvar = "Another string"; 2384 2385 // Check varargs. 2386 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2387 test_varargs_macros (); 2388 2389 // Check flexible array members. 2390 struct incomplete_array *ia = 2391 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2392 ia->datasize = 10; 2393 for (int i = 0; i < ia->datasize; ++i) 2394 ia->data[i] = i * 1.234; 2395 2396 // Check named initializers. 2397 struct named_init ni = { 2398 .number = 34, 2399 .name = L"Test wide string", 2400 .average = 543.34343, 2401 }; 2402 2403 ni.number = 58; 2404 2405 int dynamic_array[ni.number]; 2406 dynamic_array[0] = argv[0][0]; 2407 dynamic_array[ni.number - 1] = 543; 2408 2409 // work around unused variable warnings 2410 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2411 || dynamic_array[ni.number - 1] != 543); 2412 ' 2413 2414 # Test code for whether the C compiler supports C11 (global declarations) 2415 ac_c_conftest_c11_globals=' 2416 // Does the compiler advertise C11 conformance? 2417 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2418 # error "Compiler does not advertise C11 conformance" 2419 #endif 2420 2421 // Check _Alignas. 2422 char _Alignas (double) aligned_as_double; 2423 char _Alignas (0) no_special_alignment; 2424 extern char aligned_as_int; 2425 char _Alignas (0) _Alignas (int) aligned_as_int; 2426 2427 // Check _Alignof. 2428 enum 2429 { 2430 int_alignment = _Alignof (int), 2431 int_array_alignment = _Alignof (int[100]), 2432 char_alignment = _Alignof (char) 2433 }; 2434 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2435 2436 // Check _Noreturn. 2437 int _Noreturn does_not_return (void) { for (;;) continue; } 2438 2439 // Check _Static_assert. 2440 struct test_static_assert 2441 { 2442 int x; 2443 _Static_assert (sizeof (int) <= sizeof (long int), 2444 "_Static_assert does not work in struct"); 2445 long int y; 2446 }; 2447 2448 // Check UTF-8 literals. 2449 #define u8 syntax error! 2450 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2451 2452 // Check duplicate typedefs. 2453 typedef long *long_ptr; 2454 typedef long int *long_ptr; 2455 typedef long_ptr long_ptr; 2456 2457 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2458 struct anonymous 2459 { 2460 union { 2461 struct { int i; int j; }; 2462 struct { int k; long int l; } w; 2463 }; 2464 int m; 2465 } v1; 2466 ' 2467 2468 # Test code for whether the C compiler supports C11 (body of main). 2469 ac_c_conftest_c11_main=' 2470 _Static_assert ((offsetof (struct anonymous, i) 2471 == offsetof (struct anonymous, w.k)), 2472 "Anonymous union alignment botch"); 2473 v1.i = 2; 2474 v1.w.k = 5; 2475 ok |= v1.i != 5; 2476 ' 2477 2478 # Test code for whether the C compiler supports C11 (complete). 2479 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2480 ${ac_c_conftest_c99_globals} 2481 ${ac_c_conftest_c11_globals} 2482 2483 int 2484 main (int argc, char **argv) 2485 { 2486 int ok = 0; 2487 ${ac_c_conftest_c89_main} 2488 ${ac_c_conftest_c99_main} 2489 ${ac_c_conftest_c11_main} 2490 return ok; 2491 } 2492 " 2493 2494 # Test code for whether the C compiler supports C99 (complete). 2495 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2496 ${ac_c_conftest_c99_globals} 2497 2498 int 2499 main (int argc, char **argv) 2500 { 2501 int ok = 0; 2502 ${ac_c_conftest_c89_main} 2503 ${ac_c_conftest_c99_main} 2504 return ok; 2505 } 2506 " 2507 2508 # Test code for whether the C compiler supports C89 (complete). 2509 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2510 2511 int 2512 main (int argc, char **argv) 2513 { 2514 int ok = 0; 2515 ${ac_c_conftest_c89_main} 2516 return ok; 2517 } 2518 " 2519 2520 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2521 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2522 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2523 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2524 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2525 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2526 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2527 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2528 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2529 2530 # Auxiliary files required by this configure script. 2531 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2532 2533 # Locations in which to look for auxiliary files. 2534 ac_aux_dir_candidates="${srcdir}/." 2535 2536 # Search for a directory containing all of the required auxiliary files, 2537 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2538 # If we don't find one directory that contains all the files we need, 2539 # we report the set of missing files from the *first* directory in 2540 # $ac_aux_dir_candidates and give up. 2541 ac_missing_aux_files="" 2542 ac_first_candidate=: 2543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2545 as_found=false 2546 for as_dir in $ac_aux_dir_candidates 2547 do 2548 IFS=$as_save_IFS 2549 case $as_dir in #((( 2550 '') as_dir=./ ;; 2551 */) ;; 2552 *) as_dir=$as_dir/ ;; 2553 esac 2554 as_found=: 2555 2556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2557 ac_aux_dir_found=yes 2558 ac_install_sh= 2559 for ac_aux in $ac_aux_files 2560 do 2561 # As a special case, if "install-sh" is required, that requirement 2562 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2563 # and $ac_install_sh is set appropriately for whichever one is found. 2564 if test x"$ac_aux" = x"install-sh" 2565 then 2566 if test -f "${as_dir}install-sh"; then 2567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2568 ac_install_sh="${as_dir}install-sh -c" 2569 elif test -f "${as_dir}install.sh"; then 2570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2571 ac_install_sh="${as_dir}install.sh -c" 2572 elif test -f "${as_dir}shtool"; then 2573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2574 ac_install_sh="${as_dir}shtool install -c" 2575 else 2576 ac_aux_dir_found=no 2577 if $ac_first_candidate; then 2578 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2579 else 2580 break 2581 fi 2582 fi 2583 else 2584 if test -f "${as_dir}${ac_aux}"; then 2585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2586 else 2587 ac_aux_dir_found=no 2588 if $ac_first_candidate; then 2589 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2590 else 2591 break 2592 fi 2593 fi 2594 fi 2595 done 2596 if test "$ac_aux_dir_found" = yes; then 2597 ac_aux_dir="$as_dir" 2598 break 2599 fi 2600 ac_first_candidate=false 2601 2602 as_found=false 2603 done 2604 IFS=$as_save_IFS 2605 if $as_found 2606 then : 2607 2608 else $as_nop 2609 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2610 fi 2611 2612 2613 # These three variables are undocumented and unsupported, 2614 # and are intended to be withdrawn in a future Autoconf release. 2615 # They can cause serious problems if a builder's source tree is in a directory 2616 # whose full name contains unusual characters. 2617 if test -f "${ac_aux_dir}config.guess"; then 2618 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2619 fi 2620 if test -f "${ac_aux_dir}config.sub"; then 2621 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2622 fi 2623 if test -f "$ac_aux_dir/configure"; then 2624 ac_configure="$SHELL ${ac_aux_dir}configure" 2625 fi 2626 2627 # Check that the precious variables saved in the cache have kept the same 2628 # value. 2629 ac_cache_corrupted=false 2630 for ac_var in $ac_precious_vars; do 2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2632 eval ac_new_set=\$ac_env_${ac_var}_set 2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2634 eval ac_new_val=\$ac_env_${ac_var}_value 2635 case $ac_old_set,$ac_new_set in 2636 set,) 2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2638 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2639 ac_cache_corrupted=: ;; 2640 ,set) 2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2642 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2643 ac_cache_corrupted=: ;; 2644 ,);; 2645 *) 2646 if test "x$ac_old_val" != "x$ac_new_val"; then 2647 # differences in whitespace do not lead to failure. 2648 ac_old_val_w=`echo x $ac_old_val` 2649 ac_new_val_w=`echo x $ac_new_val` 2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2652 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2653 ac_cache_corrupted=: 2654 else 2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2656 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2657 eval $ac_var=\$ac_old_val 2658 fi 2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2660 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2662 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2663 fi;; 2664 esac 2665 # Pass precious variables to config.status. 2666 if test "$ac_new_set" = set; then 2667 case $ac_new_val in 2668 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2669 *) ac_arg=$ac_var=$ac_new_val ;; 2670 esac 2671 case " $ac_configure_args " in 2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2674 esac 2675 fi 2676 done 2677 if $ac_cache_corrupted; then 2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2679 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2681 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2682 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2683 and start over" "$LINENO" 5 2684 fi 2685 ## -------------------- ## 2686 ## Main body of script. ## 2687 ## -------------------- ## 2688 2689 ac_ext=c 2690 ac_cpp='$CPP $CPPFLAGS' 2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2694 2695 2696 2697 ac_config_headers="$ac_config_headers config.h" 2698 2699 2700 2701 # Initialize Automake 2702 am__api_version='1.16' 2703 2704 2705 2706 # Find a good install program. We prefer a C program (faster), 2707 # so one script is as good as another. But avoid the broken or 2708 # incompatible versions: 2709 # SysV /etc/install, /usr/sbin/install 2710 # SunOS /usr/etc/install 2711 # IRIX /sbin/install 2712 # AIX /bin/install 2713 # AmigaOS /C/install, which installs bootblocks on floppy discs 2714 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2715 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2716 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2717 # OS/2's system install, which has a completely different semantic 2718 # ./install, which can be erroneously created by make from ./install.sh. 2719 # Reject install programs that cannot install multiple files. 2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2721 printf %s "checking for a BSD-compatible install... " >&6; } 2722 if test -z "$INSTALL"; then 2723 if test ${ac_cv_path_install+y} 2724 then : 2725 printf %s "(cached) " >&6 2726 else $as_nop 2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728 for as_dir in $PATH 2729 do 2730 IFS=$as_save_IFS 2731 case $as_dir in #((( 2732 '') as_dir=./ ;; 2733 */) ;; 2734 *) as_dir=$as_dir/ ;; 2735 esac 2736 # Account for fact that we put trailing slashes in our PATH walk. 2737 case $as_dir in #(( 2738 ./ | /[cC]/* | \ 2739 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2740 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2741 /usr/ucb/* ) ;; 2742 *) 2743 # OSF1 and SCO ODT 3.0 have their own names for install. 2744 # Don't use installbsd from OSF since it installs stuff as root 2745 # by default. 2746 for ac_prog in ginstall scoinst install; do 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2749 if test $ac_prog = install && 2750 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2751 # AIX install. It has an incompatible calling convention. 2752 : 2753 elif test $ac_prog = install && 2754 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2755 # program-specific install script used by HP pwplus--don't use. 2756 : 2757 else 2758 rm -rf conftest.one conftest.two conftest.dir 2759 echo one > conftest.one 2760 echo two > conftest.two 2761 mkdir conftest.dir 2762 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2763 test -s conftest.one && test -s conftest.two && 2764 test -s conftest.dir/conftest.one && 2765 test -s conftest.dir/conftest.two 2766 then 2767 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2768 break 3 2769 fi 2770 fi 2771 fi 2772 done 2773 done 2774 ;; 2775 esac 2776 2777 done 2778 IFS=$as_save_IFS 2779 2780 rm -rf conftest.one conftest.two conftest.dir 2781 2782 fi 2783 if test ${ac_cv_path_install+y}; then 2784 INSTALL=$ac_cv_path_install 2785 else 2786 # As a last resort, use the slow shell script. Don't cache a 2787 # value for INSTALL within a source directory, because that will 2788 # break other packages using the cache if that directory is 2789 # removed, or if the value is a relative name. 2790 INSTALL=$ac_install_sh 2791 fi 2792 fi 2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2794 printf "%s\n" "$INSTALL" >&6; } 2795 2796 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2797 # It thinks the first close brace ends the variable substitution. 2798 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2799 2800 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2801 2802 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2803 2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2805 printf %s "checking whether build environment is sane... " >&6; } 2806 # Reject unsafe characters in $srcdir or the absolute working directory 2807 # name. Accept space and tab only in the latter. 2808 am_lf=' 2809 ' 2810 case `pwd` in 2811 *[\\\"\#\$\&\'\`$am_lf]*) 2812 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2813 esac 2814 case $srcdir in 2815 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2816 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2817 esac 2818 2819 # Do 'set' in a subshell so we don't clobber the current shell's 2820 # arguments. Must try -L first in case configure is actually a 2821 # symlink; some systems play weird games with the mod time of symlinks 2822 # (eg FreeBSD returns the mod time of the symlink's containing 2823 # directory). 2824 if ( 2825 am_has_slept=no 2826 for am_try in 1 2; do 2827 echo "timestamp, slept: $am_has_slept" > conftest.file 2828 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2829 if test "$*" = "X"; then 2830 # -L didn't work. 2831 set X `ls -t "$srcdir/configure" conftest.file` 2832 fi 2833 if test "$*" != "X $srcdir/configure conftest.file" \ 2834 && test "$*" != "X conftest.file $srcdir/configure"; then 2835 2836 # If neither matched, then we have a broken ls. This can happen 2837 # if, for instance, CONFIG_SHELL is bash and it inherits a 2838 # broken ls alias from the environment. This has actually 2839 # happened. Such a system could not be considered "sane". 2840 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2841 alias in your environment" "$LINENO" 5 2842 fi 2843 if test "$2" = conftest.file || test $am_try -eq 2; then 2844 break 2845 fi 2846 # Just in case. 2847 sleep 1 2848 am_has_slept=yes 2849 done 2850 test "$2" = conftest.file 2851 ) 2852 then 2853 # Ok. 2854 : 2855 else 2856 as_fn_error $? "newly created file is older than distributed files! 2857 Check your system clock" "$LINENO" 5 2858 fi 2859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2860 printf "%s\n" "yes" >&6; } 2861 # If we didn't sleep, we still need to ensure time stamps of config.status and 2862 # generated files are strictly newer. 2863 am_sleep_pid= 2864 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2865 ( sleep 1 ) & 2866 am_sleep_pid=$! 2867 fi 2868 2869 rm -f conftest.file 2870 2871 test "$program_prefix" != NONE && 2872 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2873 # Use a double $ so make ignores it. 2874 test "$program_suffix" != NONE && 2875 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2876 # Double any \ or $. 2877 # By default was `s,x,x', remove it if useless. 2878 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2879 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2880 2881 2882 # Expand $ac_aux_dir to an absolute path. 2883 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2884 2885 2886 if test x"${MISSING+set}" != xset; then 2887 MISSING="\${SHELL} '$am_aux_dir/missing'" 2888 fi 2889 # Use eval to expand $SHELL 2890 if eval "$MISSING --is-lightweight"; then 2891 am_missing_run="$MISSING " 2892 else 2893 am_missing_run= 2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2895 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2896 fi 2897 2898 if test x"${install_sh+set}" != xset; then 2899 case $am_aux_dir in 2900 *\ * | *\ *) 2901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2902 *) 2903 install_sh="\${SHELL} $am_aux_dir/install-sh" 2904 esac 2905 fi 2906 2907 # Installed binaries are usually stripped using 'strip' when the user 2908 # run "make install-strip". However 'strip' might not be the right 2909 # tool to use in cross-compilation environments, therefore Automake 2910 # will honor the 'STRIP' environment variable to overrule this program. 2911 if test "$cross_compiling" != no; then 2912 if test -n "$ac_tool_prefix"; then 2913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2914 set dummy ${ac_tool_prefix}strip; ac_word=$2 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2916 printf %s "checking for $ac_word... " >&6; } 2917 if test ${ac_cv_prog_STRIP+y} 2918 then : 2919 printf %s "(cached) " >&6 2920 else $as_nop 2921 if test -n "$STRIP"; then 2922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2923 else 2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2925 for as_dir in $PATH 2926 do 2927 IFS=$as_save_IFS 2928 case $as_dir in #((( 2929 '') as_dir=./ ;; 2930 */) ;; 2931 *) as_dir=$as_dir/ ;; 2932 esac 2933 for ac_exec_ext in '' $ac_executable_extensions; do 2934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2935 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2937 break 2 2938 fi 2939 done 2940 done 2941 IFS=$as_save_IFS 2942 2943 fi 2944 fi 2945 STRIP=$ac_cv_prog_STRIP 2946 if test -n "$STRIP"; then 2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2948 printf "%s\n" "$STRIP" >&6; } 2949 else 2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2951 printf "%s\n" "no" >&6; } 2952 fi 2953 2954 2955 fi 2956 if test -z "$ac_cv_prog_STRIP"; then 2957 ac_ct_STRIP=$STRIP 2958 # Extract the first word of "strip", so it can be a program name with args. 2959 set dummy strip; ac_word=$2 2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2961 printf %s "checking for $ac_word... " >&6; } 2962 if test ${ac_cv_prog_ac_ct_STRIP+y} 2963 then : 2964 printf %s "(cached) " >&6 2965 else $as_nop 2966 if test -n "$ac_ct_STRIP"; then 2967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2968 else 2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2970 for as_dir in $PATH 2971 do 2972 IFS=$as_save_IFS 2973 case $as_dir in #((( 2974 '') as_dir=./ ;; 2975 */) ;; 2976 *) as_dir=$as_dir/ ;; 2977 esac 2978 for ac_exec_ext in '' $ac_executable_extensions; do 2979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2980 ac_cv_prog_ac_ct_STRIP="strip" 2981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2982 break 2 2983 fi 2984 done 2985 done 2986 IFS=$as_save_IFS 2987 2988 fi 2989 fi 2990 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2991 if test -n "$ac_ct_STRIP"; then 2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2993 printf "%s\n" "$ac_ct_STRIP" >&6; } 2994 else 2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2996 printf "%s\n" "no" >&6; } 2997 fi 2998 2999 if test "x$ac_ct_STRIP" = x; then 3000 STRIP=":" 3001 else 3002 case $cross_compiling:$ac_tool_warned in 3003 yes:) 3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3005 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3006 ac_tool_warned=yes ;; 3007 esac 3008 STRIP=$ac_ct_STRIP 3009 fi 3010 else 3011 STRIP="$ac_cv_prog_STRIP" 3012 fi 3013 3014 fi 3015 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3016 3017 3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3019 printf %s "checking for a race-free mkdir -p... " >&6; } 3020 if test -z "$MKDIR_P"; then 3021 if test ${ac_cv_path_mkdir+y} 3022 then : 3023 printf %s "(cached) " >&6 3024 else $as_nop 3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3027 do 3028 IFS=$as_save_IFS 3029 case $as_dir in #((( 3030 '') as_dir=./ ;; 3031 */) ;; 3032 *) as_dir=$as_dir/ ;; 3033 esac 3034 for ac_prog in mkdir gmkdir; do 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3037 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3038 'mkdir ('*'coreutils) '* | \ 3039 'BusyBox '* | \ 3040 'mkdir (fileutils) '4.1*) 3041 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3042 break 3;; 3043 esac 3044 done 3045 done 3046 done 3047 IFS=$as_save_IFS 3048 3049 fi 3050 3051 test -d ./--version && rmdir ./--version 3052 if test ${ac_cv_path_mkdir+y}; then 3053 MKDIR_P="$ac_cv_path_mkdir -p" 3054 else 3055 # As a last resort, use the slow shell script. Don't cache a 3056 # value for MKDIR_P within a source directory, because that will 3057 # break other packages using the cache if that directory is 3058 # removed, or if the value is a relative name. 3059 MKDIR_P="$ac_install_sh -d" 3060 fi 3061 fi 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3063 printf "%s\n" "$MKDIR_P" >&6; } 3064 3065 for ac_prog in gawk mawk nawk awk 3066 do 3067 # Extract the first word of "$ac_prog", so it can be a program name with args. 3068 set dummy $ac_prog; ac_word=$2 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3070 printf %s "checking for $ac_word... " >&6; } 3071 if test ${ac_cv_prog_AWK+y} 3072 then : 3073 printf %s "(cached) " >&6 3074 else $as_nop 3075 if test -n "$AWK"; then 3076 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3077 else 3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079 for as_dir in $PATH 3080 do 3081 IFS=$as_save_IFS 3082 case $as_dir in #((( 3083 '') as_dir=./ ;; 3084 */) ;; 3085 *) as_dir=$as_dir/ ;; 3086 esac 3087 for ac_exec_ext in '' $ac_executable_extensions; do 3088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3089 ac_cv_prog_AWK="$ac_prog" 3090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3091 break 2 3092 fi 3093 done 3094 done 3095 IFS=$as_save_IFS 3096 3097 fi 3098 fi 3099 AWK=$ac_cv_prog_AWK 3100 if test -n "$AWK"; then 3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3102 printf "%s\n" "$AWK" >&6; } 3103 else 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3105 printf "%s\n" "no" >&6; } 3106 fi 3107 3108 3109 test -n "$AWK" && break 3110 done 3111 3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3113 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3114 set x ${MAKE-make} 3115 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3116 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3117 then : 3118 printf %s "(cached) " >&6 3119 else $as_nop 3120 cat >conftest.make <<\_ACEOF 3121 SHELL = /bin/sh 3122 all: 3123 @echo '@@@%%%=$(MAKE)=@@@%%%' 3124 _ACEOF 3125 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3126 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3127 *@@@%%%=?*=@@@%%%*) 3128 eval ac_cv_prog_make_${ac_make}_set=yes;; 3129 *) 3130 eval ac_cv_prog_make_${ac_make}_set=no;; 3131 esac 3132 rm -f conftest.make 3133 fi 3134 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3136 printf "%s\n" "yes" >&6; } 3137 SET_MAKE= 3138 else 3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3140 printf "%s\n" "no" >&6; } 3141 SET_MAKE="MAKE=${MAKE-make}" 3142 fi 3143 3144 rm -rf .tst 2>/dev/null 3145 mkdir .tst 2>/dev/null 3146 if test -d .tst; then 3147 am__leading_dot=. 3148 else 3149 am__leading_dot=_ 3150 fi 3151 rmdir .tst 2>/dev/null 3152 3153 # Check whether --enable-silent-rules was given. 3154 if test ${enable_silent_rules+y} 3155 then : 3156 enableval=$enable_silent_rules; 3157 fi 3158 3159 case $enable_silent_rules in # ((( 3160 yes) AM_DEFAULT_VERBOSITY=0;; 3161 no) AM_DEFAULT_VERBOSITY=1;; 3162 *) AM_DEFAULT_VERBOSITY=1;; 3163 esac 3164 am_make=${MAKE-make} 3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3166 printf %s "checking whether $am_make supports nested variables... " >&6; } 3167 if test ${am_cv_make_support_nested_variables+y} 3168 then : 3169 printf %s "(cached) " >&6 3170 else $as_nop 3171 if printf "%s\n" 'TRUE=$(BAR$(V)) 3172 BAR0=false 3173 BAR1=true 3174 V=1 3175 am__doit: 3176 @$(TRUE) 3177 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3178 am_cv_make_support_nested_variables=yes 3179 else 3180 am_cv_make_support_nested_variables=no 3181 fi 3182 fi 3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3184 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3185 if test $am_cv_make_support_nested_variables = yes; then 3186 AM_V='$(V)' 3187 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3188 else 3189 AM_V=$AM_DEFAULT_VERBOSITY 3190 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3191 fi 3192 AM_BACKSLASH='\' 3193 3194 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3195 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3196 # is not polluted with repeated "-I." 3197 am__isrc=' -I$(srcdir)' 3198 # test to see if srcdir already configured 3199 if test -f $srcdir/config.status; then 3200 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3201 fi 3202 fi 3203 3204 # test whether we have cygpath 3205 if test -z "$CYGPATH_W"; then 3206 if (cygpath --version) >/dev/null 2>/dev/null; then 3207 CYGPATH_W='cygpath -w' 3208 else 3209 CYGPATH_W=echo 3210 fi 3211 fi 3212 3213 3214 # Define the identity of the package. 3215 PACKAGE='xf86-video-mach64' 3216 VERSION='6.9.7' 3217 3218 3219 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3220 3221 3222 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3223 3224 # Some tools Automake needs. 3225 3226 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3227 3228 3229 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3230 3231 3232 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3233 3234 3235 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3236 3237 3238 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3239 3240 # For better backward compatibility. To be removed once Automake 1.9.x 3241 # dies out for good. For more background, see: 3242 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3243 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3244 mkdir_p='$(MKDIR_P)' 3245 3246 # We need awk for the "check" target (and possibly the TAP driver). The 3247 # system "awk" is bad on some platforms. 3248 # Always define AMTAR for backward compatibility. Yes, it's still used 3249 # in the wild :-( We should find a proper way to deprecate it ... 3250 AMTAR='$${TAR-tar}' 3251 3252 3253 # We'll loop over all known methods to create a tar archive until one works. 3254 _am_tools='gnutar pax cpio none' 3255 3256 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3257 3258 3259 3260 3261 3262 # Variables for tags utilities; see am/tags.am 3263 if test -z "$CTAGS"; then 3264 CTAGS=ctags 3265 fi 3266 3267 if test -z "$ETAGS"; then 3268 ETAGS=etags 3269 fi 3270 3271 if test -z "$CSCOPE"; then 3272 CSCOPE=cscope 3273 fi 3274 3275 3276 3277 # POSIX will say in a future version that running "rm -f" with no argument 3278 # is OK; and we want to be able to make that assumption in our Makefile 3279 # recipes. So use an aggressive probe to check that the usage we want is 3280 # actually supported "in the wild" to an acceptable degree. 3281 # See automake bug#10828. 3282 # To make any issue more visible, cause the running configure to be aborted 3283 # by default if the 'rm' program in use doesn't match our expectations; the 3284 # user can still override this though. 3285 if rm -f && rm -fr && rm -rf; then : OK; else 3286 cat >&2 <<'END' 3287 Oops! 3288 3289 Your 'rm' program seems unable to run without file operands specified 3290 on the command line, even when the '-f' option is present. This is contrary 3291 to the behaviour of most rm programs out there, and not conforming with 3292 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3293 3294 Please tell bug-automake@gnu.org about your system, including the value 3295 of your $PATH and any error possibly output before this message. This 3296 can help us improve future automake versions. 3297 3298 END 3299 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3300 echo 'Configuration will proceed anyway, since you have set the' >&2 3301 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3302 echo >&2 3303 else 3304 cat >&2 <<'END' 3305 Aborting the configuration process, to ensure you take notice of the issue. 3306 3307 You can download and install GNU coreutils to get an 'rm' implementation 3308 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3309 3310 If you want to complete the configuration process using your problematic 3311 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3312 to "yes", and re-run configure. 3313 3314 END 3315 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3316 fi 3317 fi 3318 3319 3320 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 DEPDIR="${am__leading_dot}deps" 3342 3343 ac_config_commands="$ac_config_commands depfiles" 3344 3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3346 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3347 cat > confinc.mk << 'END' 3348 am__doit: 3349 @echo this is the am__doit target >confinc.out 3350 .PHONY: am__doit 3351 END 3352 am__include="#" 3353 am__quote= 3354 # BSD make does it like this. 3355 echo '.include "confinc.mk" # ignored' > confmf.BSD 3356 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3357 echo 'include confinc.mk # ignored' > confmf.GNU 3358 _am_result=no 3359 for s in GNU BSD; do 3360 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3361 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3362 ac_status=$? 3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3364 (exit $ac_status); } 3365 case $?:`cat confinc.out 2>/dev/null` in #( 3366 '0:this is the am__doit target') : 3367 case $s in #( 3368 BSD) : 3369 am__include='.include' am__quote='"' ;; #( 3370 *) : 3371 am__include='include' am__quote='' ;; 3372 esac ;; #( 3373 *) : 3374 ;; 3375 esac 3376 if test "$am__include" != "#"; then 3377 _am_result="yes ($s style)" 3378 break 3379 fi 3380 done 3381 rm -f confinc.* confmf.* 3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3383 printf "%s\n" "${_am_result}" >&6; } 3384 3385 # Check whether --enable-dependency-tracking was given. 3386 if test ${enable_dependency_tracking+y} 3387 then : 3388 enableval=$enable_dependency_tracking; 3389 fi 3390 3391 if test "x$enable_dependency_tracking" != xno; then 3392 am_depcomp="$ac_aux_dir/depcomp" 3393 AMDEPBACKSLASH='\' 3394 am__nodep='_no' 3395 fi 3396 if test "x$enable_dependency_tracking" != xno; then 3397 AMDEP_TRUE= 3398 AMDEP_FALSE='#' 3399 else 3400 AMDEP_TRUE='#' 3401 AMDEP_FALSE= 3402 fi 3403 3404 3405 ac_ext=c 3406 ac_cpp='$CPP $CPPFLAGS' 3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3410 if test -n "$ac_tool_prefix"; then 3411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3412 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3414 printf %s "checking for $ac_word... " >&6; } 3415 if test ${ac_cv_prog_CC+y} 3416 then : 3417 printf %s "(cached) " >&6 3418 else $as_nop 3419 if test -n "$CC"; then 3420 ac_cv_prog_CC="$CC" # Let the user override the test. 3421 else 3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3423 for as_dir in $PATH 3424 do 3425 IFS=$as_save_IFS 3426 case $as_dir in #((( 3427 '') as_dir=./ ;; 3428 */) ;; 3429 *) as_dir=$as_dir/ ;; 3430 esac 3431 for ac_exec_ext in '' $ac_executable_extensions; do 3432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3433 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3435 break 2 3436 fi 3437 done 3438 done 3439 IFS=$as_save_IFS 3440 3441 fi 3442 fi 3443 CC=$ac_cv_prog_CC 3444 if test -n "$CC"; then 3445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3446 printf "%s\n" "$CC" >&6; } 3447 else 3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3449 printf "%s\n" "no" >&6; } 3450 fi 3451 3452 3453 fi 3454 if test -z "$ac_cv_prog_CC"; then 3455 ac_ct_CC=$CC 3456 # Extract the first word of "gcc", so it can be a program name with args. 3457 set dummy gcc; ac_word=$2 3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3459 printf %s "checking for $ac_word... " >&6; } 3460 if test ${ac_cv_prog_ac_ct_CC+y} 3461 then : 3462 printf %s "(cached) " >&6 3463 else $as_nop 3464 if test -n "$ac_ct_CC"; then 3465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3466 else 3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3468 for as_dir in $PATH 3469 do 3470 IFS=$as_save_IFS 3471 case $as_dir in #((( 3472 '') as_dir=./ ;; 3473 */) ;; 3474 *) as_dir=$as_dir/ ;; 3475 esac 3476 for ac_exec_ext in '' $ac_executable_extensions; do 3477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3478 ac_cv_prog_ac_ct_CC="gcc" 3479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3480 break 2 3481 fi 3482 done 3483 done 3484 IFS=$as_save_IFS 3485 3486 fi 3487 fi 3488 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3489 if test -n "$ac_ct_CC"; then 3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3491 printf "%s\n" "$ac_ct_CC" >&6; } 3492 else 3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3494 printf "%s\n" "no" >&6; } 3495 fi 3496 3497 if test "x$ac_ct_CC" = x; then 3498 CC="" 3499 else 3500 case $cross_compiling:$ac_tool_warned in 3501 yes:) 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3503 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3504 ac_tool_warned=yes ;; 3505 esac 3506 CC=$ac_ct_CC 3507 fi 3508 else 3509 CC="$ac_cv_prog_CC" 3510 fi 3511 3512 if test -z "$CC"; then 3513 if test -n "$ac_tool_prefix"; then 3514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3515 set dummy ${ac_tool_prefix}cc; ac_word=$2 3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3517 printf %s "checking for $ac_word... " >&6; } 3518 if test ${ac_cv_prog_CC+y} 3519 then : 3520 printf %s "(cached) " >&6 3521 else $as_nop 3522 if test -n "$CC"; then 3523 ac_cv_prog_CC="$CC" # Let the user override the test. 3524 else 3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3526 for as_dir in $PATH 3527 do 3528 IFS=$as_save_IFS 3529 case $as_dir in #((( 3530 '') as_dir=./ ;; 3531 */) ;; 3532 *) as_dir=$as_dir/ ;; 3533 esac 3534 for ac_exec_ext in '' $ac_executable_extensions; do 3535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3536 ac_cv_prog_CC="${ac_tool_prefix}cc" 3537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3538 break 2 3539 fi 3540 done 3541 done 3542 IFS=$as_save_IFS 3543 3544 fi 3545 fi 3546 CC=$ac_cv_prog_CC 3547 if test -n "$CC"; then 3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3549 printf "%s\n" "$CC" >&6; } 3550 else 3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3552 printf "%s\n" "no" >&6; } 3553 fi 3554 3555 3556 fi 3557 fi 3558 if test -z "$CC"; then 3559 # Extract the first word of "cc", so it can be a program name with args. 3560 set dummy cc; ac_word=$2 3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3562 printf %s "checking for $ac_word... " >&6; } 3563 if test ${ac_cv_prog_CC+y} 3564 then : 3565 printf %s "(cached) " >&6 3566 else $as_nop 3567 if test -n "$CC"; then 3568 ac_cv_prog_CC="$CC" # Let the user override the test. 3569 else 3570 ac_prog_rejected=no 3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572 for as_dir in $PATH 3573 do 3574 IFS=$as_save_IFS 3575 case $as_dir in #((( 3576 '') as_dir=./ ;; 3577 */) ;; 3578 *) as_dir=$as_dir/ ;; 3579 esac 3580 for ac_exec_ext in '' $ac_executable_extensions; do 3581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3582 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3583 ac_prog_rejected=yes 3584 continue 3585 fi 3586 ac_cv_prog_CC="cc" 3587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3588 break 2 3589 fi 3590 done 3591 done 3592 IFS=$as_save_IFS 3593 3594 if test $ac_prog_rejected = yes; then 3595 # We found a bogon in the path, so make sure we never use it. 3596 set dummy $ac_cv_prog_CC 3597 shift 3598 if test $# != 0; then 3599 # We chose a different compiler from the bogus one. 3600 # However, it has the same basename, so the bogon will be chosen 3601 # first if we set CC to just the basename; use the full file name. 3602 shift 3603 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3604 fi 3605 fi 3606 fi 3607 fi 3608 CC=$ac_cv_prog_CC 3609 if test -n "$CC"; then 3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3611 printf "%s\n" "$CC" >&6; } 3612 else 3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3614 printf "%s\n" "no" >&6; } 3615 fi 3616 3617 3618 fi 3619 if test -z "$CC"; then 3620 if test -n "$ac_tool_prefix"; then 3621 for ac_prog in cl.exe 3622 do 3623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3626 printf %s "checking for $ac_word... " >&6; } 3627 if test ${ac_cv_prog_CC+y} 3628 then : 3629 printf %s "(cached) " >&6 3630 else $as_nop 3631 if test -n "$CC"; then 3632 ac_cv_prog_CC="$CC" # Let the user override the test. 3633 else 3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3635 for as_dir in $PATH 3636 do 3637 IFS=$as_save_IFS 3638 case $as_dir in #((( 3639 '') as_dir=./ ;; 3640 */) ;; 3641 *) as_dir=$as_dir/ ;; 3642 esac 3643 for ac_exec_ext in '' $ac_executable_extensions; do 3644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3647 break 2 3648 fi 3649 done 3650 done 3651 IFS=$as_save_IFS 3652 3653 fi 3654 fi 3655 CC=$ac_cv_prog_CC 3656 if test -n "$CC"; then 3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3658 printf "%s\n" "$CC" >&6; } 3659 else 3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3661 printf "%s\n" "no" >&6; } 3662 fi 3663 3664 3665 test -n "$CC" && break 3666 done 3667 fi 3668 if test -z "$CC"; then 3669 ac_ct_CC=$CC 3670 for ac_prog in cl.exe 3671 do 3672 # Extract the first word of "$ac_prog", so it can be a program name with args. 3673 set dummy $ac_prog; ac_word=$2 3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3675 printf %s "checking for $ac_word... " >&6; } 3676 if test ${ac_cv_prog_ac_ct_CC+y} 3677 then : 3678 printf %s "(cached) " >&6 3679 else $as_nop 3680 if test -n "$ac_ct_CC"; then 3681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3682 else 3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3684 for as_dir in $PATH 3685 do 3686 IFS=$as_save_IFS 3687 case $as_dir in #((( 3688 '') as_dir=./ ;; 3689 */) ;; 3690 *) as_dir=$as_dir/ ;; 3691 esac 3692 for ac_exec_ext in '' $ac_executable_extensions; do 3693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3694 ac_cv_prog_ac_ct_CC="$ac_prog" 3695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3696 break 2 3697 fi 3698 done 3699 done 3700 IFS=$as_save_IFS 3701 3702 fi 3703 fi 3704 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3705 if test -n "$ac_ct_CC"; then 3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3707 printf "%s\n" "$ac_ct_CC" >&6; } 3708 else 3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3710 printf "%s\n" "no" >&6; } 3711 fi 3712 3713 3714 test -n "$ac_ct_CC" && break 3715 done 3716 3717 if test "x$ac_ct_CC" = x; then 3718 CC="" 3719 else 3720 case $cross_compiling:$ac_tool_warned in 3721 yes:) 3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3723 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3724 ac_tool_warned=yes ;; 3725 esac 3726 CC=$ac_ct_CC 3727 fi 3728 fi 3729 3730 fi 3731 if test -z "$CC"; then 3732 if test -n "$ac_tool_prefix"; then 3733 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3734 set dummy ${ac_tool_prefix}clang; ac_word=$2 3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3736 printf %s "checking for $ac_word... " >&6; } 3737 if test ${ac_cv_prog_CC+y} 3738 then : 3739 printf %s "(cached) " >&6 3740 else $as_nop 3741 if test -n "$CC"; then 3742 ac_cv_prog_CC="$CC" # Let the user override the test. 3743 else 3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3745 for as_dir in $PATH 3746 do 3747 IFS=$as_save_IFS 3748 case $as_dir in #((( 3749 '') as_dir=./ ;; 3750 */) ;; 3751 *) as_dir=$as_dir/ ;; 3752 esac 3753 for ac_exec_ext in '' $ac_executable_extensions; do 3754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3755 ac_cv_prog_CC="${ac_tool_prefix}clang" 3756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3757 break 2 3758 fi 3759 done 3760 done 3761 IFS=$as_save_IFS 3762 3763 fi 3764 fi 3765 CC=$ac_cv_prog_CC 3766 if test -n "$CC"; then 3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3768 printf "%s\n" "$CC" >&6; } 3769 else 3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3771 printf "%s\n" "no" >&6; } 3772 fi 3773 3774 3775 fi 3776 if test -z "$ac_cv_prog_CC"; then 3777 ac_ct_CC=$CC 3778 # Extract the first word of "clang", so it can be a program name with args. 3779 set dummy clang; ac_word=$2 3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3781 printf %s "checking for $ac_word... " >&6; } 3782 if test ${ac_cv_prog_ac_ct_CC+y} 3783 then : 3784 printf %s "(cached) " >&6 3785 else $as_nop 3786 if test -n "$ac_ct_CC"; then 3787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3788 else 3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3790 for as_dir in $PATH 3791 do 3792 IFS=$as_save_IFS 3793 case $as_dir in #((( 3794 '') as_dir=./ ;; 3795 */) ;; 3796 *) as_dir=$as_dir/ ;; 3797 esac 3798 for ac_exec_ext in '' $ac_executable_extensions; do 3799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3800 ac_cv_prog_ac_ct_CC="clang" 3801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3802 break 2 3803 fi 3804 done 3805 done 3806 IFS=$as_save_IFS 3807 3808 fi 3809 fi 3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3811 if test -n "$ac_ct_CC"; then 3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3813 printf "%s\n" "$ac_ct_CC" >&6; } 3814 else 3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3816 printf "%s\n" "no" >&6; } 3817 fi 3818 3819 if test "x$ac_ct_CC" = x; then 3820 CC="" 3821 else 3822 case $cross_compiling:$ac_tool_warned in 3823 yes:) 3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3825 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3826 ac_tool_warned=yes ;; 3827 esac 3828 CC=$ac_ct_CC 3829 fi 3830 else 3831 CC="$ac_cv_prog_CC" 3832 fi 3833 3834 fi 3835 3836 3837 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3838 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3839 as_fn_error $? "no acceptable C compiler found in \$PATH 3840 See \`config.log' for more details" "$LINENO" 5; } 3841 3842 # Provide some information about the compiler. 3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3844 set X $ac_compile 3845 ac_compiler=$2 3846 for ac_option in --version -v -V -qversion -version; do 3847 { { ac_try="$ac_compiler $ac_option >&5" 3848 case "(($ac_try" in 3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3850 *) ac_try_echo=$ac_try;; 3851 esac 3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3853 printf "%s\n" "$ac_try_echo"; } >&5 3854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3855 ac_status=$? 3856 if test -s conftest.err; then 3857 sed '10a\ 3858 ... rest of stderr output deleted ... 3859 10q' conftest.err >conftest.er1 3860 cat conftest.er1 >&5 3861 fi 3862 rm -f conftest.er1 conftest.err 3863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3864 test $ac_status = 0; } 3865 done 3866 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868 /* end confdefs.h. */ 3869 3870 int 3871 main (void) 3872 { 3873 3874 ; 3875 return 0; 3876 } 3877 _ACEOF 3878 ac_clean_files_save=$ac_clean_files 3879 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3880 # Try to create an executable without -o first, disregard a.out. 3881 # It will help us diagnose broken compilers, and finding out an intuition 3882 # of exeext. 3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3884 printf %s "checking whether the C compiler works... " >&6; } 3885 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3886 3887 # The possible output files: 3888 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3889 3890 ac_rmfiles= 3891 for ac_file in $ac_files 3892 do 3893 case $ac_file in 3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3895 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3896 esac 3897 done 3898 rm -f $ac_rmfiles 3899 3900 if { { ac_try="$ac_link_default" 3901 case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904 esac 3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3906 printf "%s\n" "$ac_try_echo"; } >&5 3907 (eval "$ac_link_default") 2>&5 3908 ac_status=$? 3909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3910 test $ac_status = 0; } 3911 then : 3912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3913 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3914 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3915 # so that the user can short-circuit this test for compilers unknown to 3916 # Autoconf. 3917 for ac_file in $ac_files '' 3918 do 3919 test -f "$ac_file" || continue 3920 case $ac_file in 3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3922 ;; 3923 [ab].out ) 3924 # We found the default executable, but exeext='' is most 3925 # certainly right. 3926 break;; 3927 *.* ) 3928 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3929 then :; else 3930 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3931 fi 3932 # We set ac_cv_exeext here because the later test for it is not 3933 # safe: cross compilers may not add the suffix if given an `-o' 3934 # argument, so we may need to know it at that point already. 3935 # Even if this section looks crufty: it has the advantage of 3936 # actually working. 3937 break;; 3938 * ) 3939 break;; 3940 esac 3941 done 3942 test "$ac_cv_exeext" = no && ac_cv_exeext= 3943 3944 else $as_nop 3945 ac_file='' 3946 fi 3947 if test -z "$ac_file" 3948 then : 3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3950 printf "%s\n" "no" >&6; } 3951 printf "%s\n" "$as_me: failed program was:" >&5 3952 sed 's/^/| /' conftest.$ac_ext >&5 3953 3954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3956 as_fn_error 77 "C compiler cannot create executables 3957 See \`config.log' for more details" "$LINENO" 5; } 3958 else $as_nop 3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3960 printf "%s\n" "yes" >&6; } 3961 fi 3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3963 printf %s "checking for C compiler default output file name... " >&6; } 3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3965 printf "%s\n" "$ac_file" >&6; } 3966 ac_exeext=$ac_cv_exeext 3967 3968 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3969 ac_clean_files=$ac_clean_files_save 3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3971 printf %s "checking for suffix of executables... " >&6; } 3972 if { { ac_try="$ac_link" 3973 case "(($ac_try" in 3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3975 *) ac_try_echo=$ac_try;; 3976 esac 3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3978 printf "%s\n" "$ac_try_echo"; } >&5 3979 (eval "$ac_link") 2>&5 3980 ac_status=$? 3981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3982 test $ac_status = 0; } 3983 then : 3984 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3985 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3986 # work properly (i.e., refer to `conftest.exe'), while it won't with 3987 # `rm'. 3988 for ac_file in conftest.exe conftest conftest.*; do 3989 test -f "$ac_file" || continue 3990 case $ac_file in 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3993 break;; 3994 * ) break;; 3995 esac 3996 done 3997 else $as_nop 3998 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3999 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4000 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4001 See \`config.log' for more details" "$LINENO" 5; } 4002 fi 4003 rm -f conftest conftest$ac_cv_exeext 4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4005 printf "%s\n" "$ac_cv_exeext" >&6; } 4006 4007 rm -f conftest.$ac_ext 4008 EXEEXT=$ac_cv_exeext 4009 ac_exeext=$EXEEXT 4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4011 /* end confdefs.h. */ 4012 #include <stdio.h> 4013 int 4014 main (void) 4015 { 4016 FILE *f = fopen ("conftest.out", "w"); 4017 return ferror (f) || fclose (f) != 0; 4018 4019 ; 4020 return 0; 4021 } 4022 _ACEOF 4023 ac_clean_files="$ac_clean_files conftest.out" 4024 # Check that the compiler produces executables we can run. If not, either 4025 # the compiler is broken, or we cross compile. 4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4027 printf %s "checking whether we are cross compiling... " >&6; } 4028 if test "$cross_compiling" != yes; then 4029 { { ac_try="$ac_link" 4030 case "(($ac_try" in 4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4032 *) ac_try_echo=$ac_try;; 4033 esac 4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4035 printf "%s\n" "$ac_try_echo"; } >&5 4036 (eval "$ac_link") 2>&5 4037 ac_status=$? 4038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4039 test $ac_status = 0; } 4040 if { ac_try='./conftest$ac_cv_exeext' 4041 { { case "(($ac_try" in 4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4043 *) ac_try_echo=$ac_try;; 4044 esac 4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4046 printf "%s\n" "$ac_try_echo"; } >&5 4047 (eval "$ac_try") 2>&5 4048 ac_status=$? 4049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4050 test $ac_status = 0; }; }; then 4051 cross_compiling=no 4052 else 4053 if test "$cross_compiling" = maybe; then 4054 cross_compiling=yes 4055 else 4056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4057 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4058 as_fn_error 77 "cannot run C compiled programs. 4059 If you meant to cross compile, use \`--host'. 4060 See \`config.log' for more details" "$LINENO" 5; } 4061 fi 4062 fi 4063 fi 4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4065 printf "%s\n" "$cross_compiling" >&6; } 4066 4067 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4068 ac_clean_files=$ac_clean_files_save 4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4070 printf %s "checking for suffix of object files... " >&6; } 4071 if test ${ac_cv_objext+y} 4072 then : 4073 printf %s "(cached) " >&6 4074 else $as_nop 4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4076 /* end confdefs.h. */ 4077 4078 int 4079 main (void) 4080 { 4081 4082 ; 4083 return 0; 4084 } 4085 _ACEOF 4086 rm -f conftest.o conftest.obj 4087 if { { ac_try="$ac_compile" 4088 case "(($ac_try" in 4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4090 *) ac_try_echo=$ac_try;; 4091 esac 4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4093 printf "%s\n" "$ac_try_echo"; } >&5 4094 (eval "$ac_compile") 2>&5 4095 ac_status=$? 4096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4097 test $ac_status = 0; } 4098 then : 4099 for ac_file in conftest.o conftest.obj conftest.*; do 4100 test -f "$ac_file" || continue; 4101 case $ac_file in 4102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4104 break;; 4105 esac 4106 done 4107 else $as_nop 4108 printf "%s\n" "$as_me: failed program was:" >&5 4109 sed 's/^/| /' conftest.$ac_ext >&5 4110 4111 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4112 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4113 as_fn_error $? "cannot compute suffix of object files: cannot compile 4114 See \`config.log' for more details" "$LINENO" 5; } 4115 fi 4116 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4117 fi 4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4119 printf "%s\n" "$ac_cv_objext" >&6; } 4120 OBJEXT=$ac_cv_objext 4121 ac_objext=$OBJEXT 4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4123 printf %s "checking whether the compiler supports GNU C... " >&6; } 4124 if test ${ac_cv_c_compiler_gnu+y} 4125 then : 4126 printf %s "(cached) " >&6 4127 else $as_nop 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129 /* end confdefs.h. */ 4130 4131 int 4132 main (void) 4133 { 4134 #ifndef __GNUC__ 4135 choke me 4136 #endif 4137 4138 ; 4139 return 0; 4140 } 4141 _ACEOF 4142 if ac_fn_c_try_compile "$LINENO" 4143 then : 4144 ac_compiler_gnu=yes 4145 else $as_nop 4146 ac_compiler_gnu=no 4147 fi 4148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4149 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4150 4151 fi 4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4153 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4155 4156 if test $ac_compiler_gnu = yes; then 4157 GCC=yes 4158 else 4159 GCC= 4160 fi 4161 ac_test_CFLAGS=${CFLAGS+y} 4162 ac_save_CFLAGS=$CFLAGS 4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4164 printf %s "checking whether $CC accepts -g... " >&6; } 4165 if test ${ac_cv_prog_cc_g+y} 4166 then : 4167 printf %s "(cached) " >&6 4168 else $as_nop 4169 ac_save_c_werror_flag=$ac_c_werror_flag 4170 ac_c_werror_flag=yes 4171 ac_cv_prog_cc_g=no 4172 CFLAGS="-g" 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174 /* end confdefs.h. */ 4175 4176 int 4177 main (void) 4178 { 4179 4180 ; 4181 return 0; 4182 } 4183 _ACEOF 4184 if ac_fn_c_try_compile "$LINENO" 4185 then : 4186 ac_cv_prog_cc_g=yes 4187 else $as_nop 4188 CFLAGS="" 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190 /* end confdefs.h. */ 4191 4192 int 4193 main (void) 4194 { 4195 4196 ; 4197 return 0; 4198 } 4199 _ACEOF 4200 if ac_fn_c_try_compile "$LINENO" 4201 then : 4202 4203 else $as_nop 4204 ac_c_werror_flag=$ac_save_c_werror_flag 4205 CFLAGS="-g" 4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207 /* end confdefs.h. */ 4208 4209 int 4210 main (void) 4211 { 4212 4213 ; 4214 return 0; 4215 } 4216 _ACEOF 4217 if ac_fn_c_try_compile "$LINENO" 4218 then : 4219 ac_cv_prog_cc_g=yes 4220 fi 4221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4222 fi 4223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4224 fi 4225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4226 ac_c_werror_flag=$ac_save_c_werror_flag 4227 fi 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4229 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4230 if test $ac_test_CFLAGS; then 4231 CFLAGS=$ac_save_CFLAGS 4232 elif test $ac_cv_prog_cc_g = yes; then 4233 if test "$GCC" = yes; then 4234 CFLAGS="-g -O2" 4235 else 4236 CFLAGS="-g" 4237 fi 4238 else 4239 if test "$GCC" = yes; then 4240 CFLAGS="-O2" 4241 else 4242 CFLAGS= 4243 fi 4244 fi 4245 ac_prog_cc_stdc=no 4246 if test x$ac_prog_cc_stdc = xno 4247 then : 4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4249 printf %s "checking for $CC option to enable C11 features... " >&6; } 4250 if test ${ac_cv_prog_cc_c11+y} 4251 then : 4252 printf %s "(cached) " >&6 4253 else $as_nop 4254 ac_cv_prog_cc_c11=no 4255 ac_save_CC=$CC 4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4257 /* end confdefs.h. */ 4258 $ac_c_conftest_c11_program 4259 _ACEOF 4260 for ac_arg in '' -std=gnu11 4261 do 4262 CC="$ac_save_CC $ac_arg" 4263 if ac_fn_c_try_compile "$LINENO" 4264 then : 4265 ac_cv_prog_cc_c11=$ac_arg 4266 fi 4267 rm -f core conftest.err conftest.$ac_objext conftest.beam 4268 test "x$ac_cv_prog_cc_c11" != "xno" && break 4269 done 4270 rm -f conftest.$ac_ext 4271 CC=$ac_save_CC 4272 fi 4273 4274 if test "x$ac_cv_prog_cc_c11" = xno 4275 then : 4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4277 printf "%s\n" "unsupported" >&6; } 4278 else $as_nop 4279 if test "x$ac_cv_prog_cc_c11" = x 4280 then : 4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4282 printf "%s\n" "none needed" >&6; } 4283 else $as_nop 4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4285 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4286 CC="$CC $ac_cv_prog_cc_c11" 4287 fi 4288 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4289 ac_prog_cc_stdc=c11 4290 fi 4291 fi 4292 if test x$ac_prog_cc_stdc = xno 4293 then : 4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4295 printf %s "checking for $CC option to enable C99 features... " >&6; } 4296 if test ${ac_cv_prog_cc_c99+y} 4297 then : 4298 printf %s "(cached) " >&6 4299 else $as_nop 4300 ac_cv_prog_cc_c99=no 4301 ac_save_CC=$CC 4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4303 /* end confdefs.h. */ 4304 $ac_c_conftest_c99_program 4305 _ACEOF 4306 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4307 do 4308 CC="$ac_save_CC $ac_arg" 4309 if ac_fn_c_try_compile "$LINENO" 4310 then : 4311 ac_cv_prog_cc_c99=$ac_arg 4312 fi 4313 rm -f core conftest.err conftest.$ac_objext conftest.beam 4314 test "x$ac_cv_prog_cc_c99" != "xno" && break 4315 done 4316 rm -f conftest.$ac_ext 4317 CC=$ac_save_CC 4318 fi 4319 4320 if test "x$ac_cv_prog_cc_c99" = xno 4321 then : 4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4323 printf "%s\n" "unsupported" >&6; } 4324 else $as_nop 4325 if test "x$ac_cv_prog_cc_c99" = x 4326 then : 4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4328 printf "%s\n" "none needed" >&6; } 4329 else $as_nop 4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4331 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4332 CC="$CC $ac_cv_prog_cc_c99" 4333 fi 4334 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4335 ac_prog_cc_stdc=c99 4336 fi 4337 fi 4338 if test x$ac_prog_cc_stdc = xno 4339 then : 4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4341 printf %s "checking for $CC option to enable C89 features... " >&6; } 4342 if test ${ac_cv_prog_cc_c89+y} 4343 then : 4344 printf %s "(cached) " >&6 4345 else $as_nop 4346 ac_cv_prog_cc_c89=no 4347 ac_save_CC=$CC 4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4349 /* end confdefs.h. */ 4350 $ac_c_conftest_c89_program 4351 _ACEOF 4352 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4353 do 4354 CC="$ac_save_CC $ac_arg" 4355 if ac_fn_c_try_compile "$LINENO" 4356 then : 4357 ac_cv_prog_cc_c89=$ac_arg 4358 fi 4359 rm -f core conftest.err conftest.$ac_objext conftest.beam 4360 test "x$ac_cv_prog_cc_c89" != "xno" && break 4361 done 4362 rm -f conftest.$ac_ext 4363 CC=$ac_save_CC 4364 fi 4365 4366 if test "x$ac_cv_prog_cc_c89" = xno 4367 then : 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4369 printf "%s\n" "unsupported" >&6; } 4370 else $as_nop 4371 if test "x$ac_cv_prog_cc_c89" = x 4372 then : 4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4374 printf "%s\n" "none needed" >&6; } 4375 else $as_nop 4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4377 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4378 CC="$CC $ac_cv_prog_cc_c89" 4379 fi 4380 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4381 ac_prog_cc_stdc=c89 4382 fi 4383 fi 4384 4385 ac_ext=c 4386 ac_cpp='$CPP $CPPFLAGS' 4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4390 4391 4392 ac_ext=c 4393 ac_cpp='$CPP $CPPFLAGS' 4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4398 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4399 if test ${am_cv_prog_cc_c_o+y} 4400 then : 4401 printf %s "(cached) " >&6 4402 else $as_nop 4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4404 /* end confdefs.h. */ 4405 4406 int 4407 main (void) 4408 { 4409 4410 ; 4411 return 0; 4412 } 4413 _ACEOF 4414 # Make sure it works both with $CC and with simple cc. 4415 # Following AC_PROG_CC_C_O, we do the test twice because some 4416 # compilers refuse to overwrite an existing .o file with -o, 4417 # though they will create one. 4418 am_cv_prog_cc_c_o=yes 4419 for am_i in 1 2; do 4420 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4421 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4422 ac_status=$? 4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4424 (exit $ac_status); } \ 4425 && test -f conftest2.$ac_objext; then 4426 : OK 4427 else 4428 am_cv_prog_cc_c_o=no 4429 break 4430 fi 4431 done 4432 rm -f core conftest* 4433 unset am_i 4434 fi 4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4436 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4437 if test "$am_cv_prog_cc_c_o" != yes; then 4438 # Losing compiler, so override with the script. 4439 # FIXME: It is wrong to rewrite CC. 4440 # But if we don't then we get into trouble of one sort or another. 4441 # A longer-term fix would be to have automake use am__CC in this case, 4442 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4443 CC="$am_aux_dir/compile $CC" 4444 fi 4445 ac_ext=c 4446 ac_cpp='$CPP $CPPFLAGS' 4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4450 4451 4452 depcc="$CC" am_compiler_list= 4453 4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4455 printf %s "checking dependency style of $depcc... " >&6; } 4456 if test ${am_cv_CC_dependencies_compiler_type+y} 4457 then : 4458 printf %s "(cached) " >&6 4459 else $as_nop 4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4461 # We make a subdir and do the tests there. Otherwise we can end up 4462 # making bogus files that we don't know about and never remove. For 4463 # instance it was reported that on HP-UX the gcc test will end up 4464 # making a dummy file named 'D' -- because '-MD' means "put the output 4465 # in D". 4466 rm -rf conftest.dir 4467 mkdir conftest.dir 4468 # Copy depcomp to subdir because otherwise we won't find it if we're 4469 # using a relative directory. 4470 cp "$am_depcomp" conftest.dir 4471 cd conftest.dir 4472 # We will build objects and dependencies in a subdirectory because 4473 # it helps to detect inapplicable dependency modes. For instance 4474 # both Tru64's cc and ICC support -MD to output dependencies as a 4475 # side effect of compilation, but ICC will put the dependencies in 4476 # the current directory while Tru64 will put them in the object 4477 # directory. 4478 mkdir sub 4479 4480 am_cv_CC_dependencies_compiler_type=none 4481 if test "$am_compiler_list" = ""; then 4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4483 fi 4484 am__universal=false 4485 case " $depcc " in #( 4486 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4487 esac 4488 4489 for depmode in $am_compiler_list; do 4490 # Setup a source with many dependencies, because some compilers 4491 # like to wrap large dependency lists on column 80 (with \), and 4492 # we should not choose a depcomp mode which is confused by this. 4493 # 4494 # We need to recreate these files for each test, as the compiler may 4495 # overwrite some of them when testing with obscure command lines. 4496 # This happens at least with the AIX C compiler. 4497 : > sub/conftest.c 4498 for i in 1 2 3 4 5 6; do 4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4501 # Solaris 10 /bin/sh. 4502 echo '/* dummy */' > sub/conftst$i.h 4503 done 4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4505 4506 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4507 # mode. It turns out that the SunPro C++ compiler does not properly 4508 # handle '-M -o', and we need to detect this. Also, some Intel 4509 # versions had trouble with output in subdirs. 4510 am__obj=sub/conftest.${OBJEXT-o} 4511 am__minus_obj="-o $am__obj" 4512 case $depmode in 4513 gcc) 4514 # This depmode causes a compiler race in universal mode. 4515 test "$am__universal" = false || continue 4516 ;; 4517 nosideeffect) 4518 # After this tag, mechanisms are not by side-effect, so they'll 4519 # only be used when explicitly requested. 4520 if test "x$enable_dependency_tracking" = xyes; then 4521 continue 4522 else 4523 break 4524 fi 4525 ;; 4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4527 # This compiler won't grok '-c -o', but also, the minuso test has 4528 # not run yet. These depmodes are late enough in the game, and 4529 # so weak that their functioning should not be impacted. 4530 am__obj=conftest.${OBJEXT-o} 4531 am__minus_obj= 4532 ;; 4533 none) break ;; 4534 esac 4535 if depmode=$depmode \ 4536 source=sub/conftest.c object=$am__obj \ 4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4539 >/dev/null 2>conftest.err && 4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4544 # icc doesn't choke on unknown options, it will just issue warnings 4545 # or remarks (even with -Werror). So we grep stderr for any message 4546 # that says an option was ignored or not supported. 4547 # When given -MP, icc 7.0 and 7.1 complain thusly: 4548 # icc: Command line warning: ignoring option '-M'; no argument required 4549 # The diagnosis changed in icc 8.0: 4550 # icc: Command line remark: option '-MP' not supported 4551 if (grep 'ignoring option' conftest.err || 4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4553 am_cv_CC_dependencies_compiler_type=$depmode 4554 break 4555 fi 4556 fi 4557 done 4558 4559 cd .. 4560 rm -rf conftest.dir 4561 else 4562 am_cv_CC_dependencies_compiler_type=none 4563 fi 4564 4565 fi 4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4567 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4569 4570 if 4571 test "x$enable_dependency_tracking" != xno \ 4572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4573 am__fastdepCC_TRUE= 4574 am__fastdepCC_FALSE='#' 4575 else 4576 am__fastdepCC_TRUE='#' 4577 am__fastdepCC_FALSE= 4578 fi 4579 4580 4581 4582 4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4584 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4585 if test ${ac_cv_c_undeclared_builtin_options+y} 4586 then : 4587 printf %s "(cached) " >&6 4588 else $as_nop 4589 ac_save_CFLAGS=$CFLAGS 4590 ac_cv_c_undeclared_builtin_options='cannot detect' 4591 for ac_arg in '' -fno-builtin; do 4592 CFLAGS="$ac_save_CFLAGS $ac_arg" 4593 # This test program should *not* compile successfully. 4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4595 /* end confdefs.h. */ 4596 4597 int 4598 main (void) 4599 { 4600 (void) strchr; 4601 ; 4602 return 0; 4603 } 4604 _ACEOF 4605 if ac_fn_c_try_compile "$LINENO" 4606 then : 4607 4608 else $as_nop 4609 # This test program should compile successfully. 4610 # No library function is consistently available on 4611 # freestanding implementations, so test against a dummy 4612 # declaration. Include always-available headers on the 4613 # off chance that they somehow elicit warnings. 4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4615 /* end confdefs.h. */ 4616 #include <float.h> 4617 #include <limits.h> 4618 #include <stdarg.h> 4619 #include <stddef.h> 4620 extern void ac_decl (int, char *); 4621 4622 int 4623 main (void) 4624 { 4625 (void) ac_decl (0, (char *) 0); 4626 (void) ac_decl; 4627 4628 ; 4629 return 0; 4630 } 4631 _ACEOF 4632 if ac_fn_c_try_compile "$LINENO" 4633 then : 4634 if test x"$ac_arg" = x 4635 then : 4636 ac_cv_c_undeclared_builtin_options='none needed' 4637 else $as_nop 4638 ac_cv_c_undeclared_builtin_options=$ac_arg 4639 fi 4640 break 4641 fi 4642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4643 fi 4644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4645 done 4646 CFLAGS=$ac_save_CFLAGS 4647 4648 fi 4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4650 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4651 case $ac_cv_c_undeclared_builtin_options in #( 4652 'cannot detect') : 4653 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4654 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4655 as_fn_error $? "cannot make $CC report undeclared builtins 4656 See \`config.log' for more details" "$LINENO" 5; } ;; #( 4657 'none needed') : 4658 ac_c_undeclared_builtin_options='' ;; #( 4659 *) : 4660 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4661 esac 4662 4663 ac_header= ac_cache= 4664 for ac_item in $ac_header_c_list 4665 do 4666 if test $ac_cache; then 4667 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4668 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4669 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4670 fi 4671 ac_header= ac_cache= 4672 elif test $ac_header; then 4673 ac_cache=$ac_item 4674 else 4675 ac_header=$ac_item 4676 fi 4677 done 4678 4679 4680 4681 4682 4683 4684 4685 4686 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4687 then : 4688 4689 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4690 4691 fi 4692 4693 4694 4695 4696 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4697 if test "x$ac_cv_have_decl___clang__" = xyes 4698 then : 4699 CLANGCC="yes" 4700 else $as_nop 4701 CLANGCC="no" 4702 fi 4703 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4704 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4705 then : 4706 INTELCC="yes" 4707 else $as_nop 4708 INTELCC="no" 4709 fi 4710 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4711 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4712 then : 4713 SUNCC="yes" 4714 else $as_nop 4715 SUNCC="no" 4716 fi 4717 4718 4719 4720 4721 4722 4723 4724 4725 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4726 if test -n "$ac_tool_prefix"; then 4727 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4728 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4730 printf %s "checking for $ac_word... " >&6; } 4731 if test ${ac_cv_path_PKG_CONFIG+y} 4732 then : 4733 printf %s "(cached) " >&6 4734 else $as_nop 4735 case $PKG_CONFIG in 4736 [\\/]* | ?:[\\/]*) 4737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4738 ;; 4739 *) 4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4741 for as_dir in $PATH 4742 do 4743 IFS=$as_save_IFS 4744 case $as_dir in #((( 4745 '') as_dir=./ ;; 4746 */) ;; 4747 *) as_dir=$as_dir/ ;; 4748 esac 4749 for ac_exec_ext in '' $ac_executable_extensions; do 4750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4751 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4753 break 2 4754 fi 4755 done 4756 done 4757 IFS=$as_save_IFS 4758 4759 ;; 4760 esac 4761 fi 4762 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4763 if test -n "$PKG_CONFIG"; then 4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4765 printf "%s\n" "$PKG_CONFIG" >&6; } 4766 else 4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4768 printf "%s\n" "no" >&6; } 4769 fi 4770 4771 4772 fi 4773 if test -z "$ac_cv_path_PKG_CONFIG"; then 4774 ac_pt_PKG_CONFIG=$PKG_CONFIG 4775 # Extract the first word of "pkg-config", so it can be a program name with args. 4776 set dummy pkg-config; ac_word=$2 4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4778 printf %s "checking for $ac_word... " >&6; } 4779 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4780 then : 4781 printf %s "(cached) " >&6 4782 else $as_nop 4783 case $ac_pt_PKG_CONFIG in 4784 [\\/]* | ?:[\\/]*) 4785 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4786 ;; 4787 *) 4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4789 for as_dir in $PATH 4790 do 4791 IFS=$as_save_IFS 4792 case $as_dir in #((( 4793 '') as_dir=./ ;; 4794 */) ;; 4795 *) as_dir=$as_dir/ ;; 4796 esac 4797 for ac_exec_ext in '' $ac_executable_extensions; do 4798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4799 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4801 break 2 4802 fi 4803 done 4804 done 4805 IFS=$as_save_IFS 4806 4807 ;; 4808 esac 4809 fi 4810 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4811 if test -n "$ac_pt_PKG_CONFIG"; then 4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4813 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4814 else 4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4816 printf "%s\n" "no" >&6; } 4817 fi 4818 4819 if test "x$ac_pt_PKG_CONFIG" = x; then 4820 PKG_CONFIG="" 4821 else 4822 case $cross_compiling:$ac_tool_warned in 4823 yes:) 4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4825 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4826 ac_tool_warned=yes ;; 4827 esac 4828 PKG_CONFIG=$ac_pt_PKG_CONFIG 4829 fi 4830 else 4831 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4832 fi 4833 4834 fi 4835 if test -n "$PKG_CONFIG"; then 4836 _pkg_min_version=0.9.0 4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4838 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4839 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4841 printf "%s\n" "yes" >&6; } 4842 else 4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4844 printf "%s\n" "no" >&6; } 4845 PKG_CONFIG="" 4846 fi 4847 fi 4848 4849 4850 # Make sure we can run config.sub. 4851 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4852 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4853 4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4855 printf %s "checking build system type... " >&6; } 4856 if test ${ac_cv_build+y} 4857 then : 4858 printf %s "(cached) " >&6 4859 else $as_nop 4860 ac_build_alias=$build_alias 4861 test "x$ac_build_alias" = x && 4862 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4863 test "x$ac_build_alias" = x && 4864 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4865 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4866 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4867 4868 fi 4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4870 printf "%s\n" "$ac_cv_build" >&6; } 4871 case $ac_cv_build in 4872 *-*-*) ;; 4873 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4874 esac 4875 build=$ac_cv_build 4876 ac_save_IFS=$IFS; IFS='-' 4877 set x $ac_cv_build 4878 shift 4879 build_cpu=$1 4880 build_vendor=$2 4881 shift; shift 4882 # Remember, the first character of IFS is used to create $*, 4883 # except with old shells: 4884 build_os=$* 4885 IFS=$ac_save_IFS 4886 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4887 4888 4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4890 printf %s "checking host system type... " >&6; } 4891 if test ${ac_cv_host+y} 4892 then : 4893 printf %s "(cached) " >&6 4894 else $as_nop 4895 if test "x$host_alias" = x; then 4896 ac_cv_host=$ac_cv_build 4897 else 4898 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4899 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4900 fi 4901 4902 fi 4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4904 printf "%s\n" "$ac_cv_host" >&6; } 4905 case $ac_cv_host in 4906 *-*-*) ;; 4907 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4908 esac 4909 host=$ac_cv_host 4910 ac_save_IFS=$IFS; IFS='-' 4911 set x $ac_cv_host 4912 shift 4913 host_cpu=$1 4914 host_vendor=$2 4915 shift; shift 4916 # Remember, the first character of IFS is used to create $*, 4917 # except with old shells: 4918 host_os=$* 4919 IFS=$ac_save_IFS 4920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4921 4922 4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4924 printf %s "checking for a sed that does not truncate output... " >&6; } 4925 if test ${ac_cv_path_SED+y} 4926 then : 4927 printf %s "(cached) " >&6 4928 else $as_nop 4929 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4930 for ac_i in 1 2 3 4 5 6 7; do 4931 ac_script="$ac_script$as_nl$ac_script" 4932 done 4933 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4934 { ac_script=; unset ac_script;} 4935 if test -z "$SED"; then 4936 ac_path_SED_found=false 4937 # Loop through the user's path and test for each of PROGNAME-LIST 4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4939 for as_dir in $PATH 4940 do 4941 IFS=$as_save_IFS 4942 case $as_dir in #((( 4943 '') as_dir=./ ;; 4944 */) ;; 4945 *) as_dir=$as_dir/ ;; 4946 esac 4947 for ac_prog in sed gsed 4948 do 4949 for ac_exec_ext in '' $ac_executable_extensions; do 4950 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4951 as_fn_executable_p "$ac_path_SED" || continue 4952 # Check for GNU ac_path_SED and select it if it is found. 4953 # Check for GNU $ac_path_SED 4954 case `"$ac_path_SED" --version 2>&1` in 4955 *GNU*) 4956 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4957 *) 4958 ac_count=0 4959 printf %s 0123456789 >"conftest.in" 4960 while : 4961 do 4962 cat "conftest.in" "conftest.in" >"conftest.tmp" 4963 mv "conftest.tmp" "conftest.in" 4964 cp "conftest.in" "conftest.nl" 4965 printf "%s\n" '' >> "conftest.nl" 4966 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4968 as_fn_arith $ac_count + 1 && ac_count=$as_val 4969 if test $ac_count -gt ${ac_path_SED_max-0}; then 4970 # Best one so far, save it but keep looking for a better one 4971 ac_cv_path_SED="$ac_path_SED" 4972 ac_path_SED_max=$ac_count 4973 fi 4974 # 10*(2^10) chars as input seems more than enough 4975 test $ac_count -gt 10 && break 4976 done 4977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4978 esac 4979 4980 $ac_path_SED_found && break 3 4981 done 4982 done 4983 done 4984 IFS=$as_save_IFS 4985 if test -z "$ac_cv_path_SED"; then 4986 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4987 fi 4988 else 4989 ac_cv_path_SED=$SED 4990 fi 4991 4992 fi 4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4994 printf "%s\n" "$ac_cv_path_SED" >&6; } 4995 SED="$ac_cv_path_SED" 4996 rm -f conftest.sed 4997 4998 4999 5000 5001 5002 5003 # Check whether --enable-selective-werror was given. 5004 if test ${enable_selective_werror+y} 5005 then : 5006 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5007 else $as_nop 5008 SELECTIVE_WERROR=yes 5009 fi 5010 5011 5012 5013 5014 5015 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5016 if test "x$SUNCC" = "xyes"; then 5017 BASE_CFLAGS="-v" 5018 else 5019 BASE_CFLAGS="" 5020 fi 5021 5022 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 xorg_testset_save_CFLAGS="$CFLAGS" 5037 5038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5041 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5042 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5043 then : 5044 printf %s "(cached) " >&6 5045 else $as_nop 5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047 /* end confdefs.h. */ 5048 int i; 5049 _ACEOF 5050 if ac_fn_c_try_compile "$LINENO" 5051 then : 5052 xorg_cv_cc_flag_unknown_warning_option=yes 5053 else $as_nop 5054 xorg_cv_cc_flag_unknown_warning_option=no 5055 fi 5056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5057 fi 5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5059 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5061 CFLAGS="$xorg_testset_save_CFLAGS" 5062 fi 5063 5064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5067 fi 5068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5070 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5071 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5072 then : 5073 printf %s "(cached) " >&6 5074 else $as_nop 5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5076 /* end confdefs.h. */ 5077 int i; 5078 _ACEOF 5079 if ac_fn_c_try_compile "$LINENO" 5080 then : 5081 xorg_cv_cc_flag_unused_command_line_argument=yes 5082 else $as_nop 5083 xorg_cv_cc_flag_unused_command_line_argument=no 5084 fi 5085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5086 fi 5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5088 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5090 CFLAGS="$xorg_testset_save_CFLAGS" 5091 fi 5092 5093 found="no" 5094 5095 if test $found = "no" ; then 5096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5098 fi 5099 5100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5102 fi 5103 5104 CFLAGS="$CFLAGS -Wall" 5105 5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5107 printf %s "checking if $CC supports -Wall... " >&6; } 5108 cacheid=xorg_cv_cc_flag__Wall 5109 if eval test \${$cacheid+y} 5110 then : 5111 printf %s "(cached) " >&6 5112 else $as_nop 5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5114 /* end confdefs.h. */ 5115 int i; 5116 int 5117 main (void) 5118 { 5119 5120 ; 5121 return 0; 5122 } 5123 _ACEOF 5124 if ac_fn_c_try_link "$LINENO" 5125 then : 5126 eval $cacheid=yes 5127 else $as_nop 5128 eval $cacheid=no 5129 fi 5130 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5131 conftest$ac_exeext conftest.$ac_ext 5132 fi 5133 5134 5135 CFLAGS="$xorg_testset_save_CFLAGS" 5136 5137 eval supported=\$$cacheid 5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5139 printf "%s\n" "$supported" >&6; } 5140 if test "$supported" = "yes" ; then 5141 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5142 found="yes" 5143 fi 5144 fi 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 xorg_testset_save_CFLAGS="$CFLAGS" 5161 5162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5165 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5166 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5167 then : 5168 printf %s "(cached) " >&6 5169 else $as_nop 5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5171 /* end confdefs.h. */ 5172 int i; 5173 _ACEOF 5174 if ac_fn_c_try_compile "$LINENO" 5175 then : 5176 xorg_cv_cc_flag_unknown_warning_option=yes 5177 else $as_nop 5178 xorg_cv_cc_flag_unknown_warning_option=no 5179 fi 5180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5181 fi 5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5183 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5185 CFLAGS="$xorg_testset_save_CFLAGS" 5186 fi 5187 5188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5191 fi 5192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5194 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5195 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5196 then : 5197 printf %s "(cached) " >&6 5198 else $as_nop 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200 /* end confdefs.h. */ 5201 int i; 5202 _ACEOF 5203 if ac_fn_c_try_compile "$LINENO" 5204 then : 5205 xorg_cv_cc_flag_unused_command_line_argument=yes 5206 else $as_nop 5207 xorg_cv_cc_flag_unused_command_line_argument=no 5208 fi 5209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5210 fi 5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5212 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5214 CFLAGS="$xorg_testset_save_CFLAGS" 5215 fi 5216 5217 found="no" 5218 5219 if test $found = "no" ; then 5220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5222 fi 5223 5224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5226 fi 5227 5228 CFLAGS="$CFLAGS -Wpointer-arith" 5229 5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5231 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5232 cacheid=xorg_cv_cc_flag__Wpointer_arith 5233 if eval test \${$cacheid+y} 5234 then : 5235 printf %s "(cached) " >&6 5236 else $as_nop 5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238 /* end confdefs.h. */ 5239 int i; 5240 int 5241 main (void) 5242 { 5243 5244 ; 5245 return 0; 5246 } 5247 _ACEOF 5248 if ac_fn_c_try_link "$LINENO" 5249 then : 5250 eval $cacheid=yes 5251 else $as_nop 5252 eval $cacheid=no 5253 fi 5254 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5255 conftest$ac_exeext conftest.$ac_ext 5256 fi 5257 5258 5259 CFLAGS="$xorg_testset_save_CFLAGS" 5260 5261 eval supported=\$$cacheid 5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5263 printf "%s\n" "$supported" >&6; } 5264 if test "$supported" = "yes" ; then 5265 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5266 found="yes" 5267 fi 5268 fi 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 xorg_testset_save_CFLAGS="$CFLAGS" 5285 5286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5289 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5290 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5291 then : 5292 printf %s "(cached) " >&6 5293 else $as_nop 5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5295 /* end confdefs.h. */ 5296 int i; 5297 _ACEOF 5298 if ac_fn_c_try_compile "$LINENO" 5299 then : 5300 xorg_cv_cc_flag_unknown_warning_option=yes 5301 else $as_nop 5302 xorg_cv_cc_flag_unknown_warning_option=no 5303 fi 5304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5305 fi 5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5307 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5309 CFLAGS="$xorg_testset_save_CFLAGS" 5310 fi 5311 5312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5315 fi 5316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5318 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5319 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5320 then : 5321 printf %s "(cached) " >&6 5322 else $as_nop 5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5324 /* end confdefs.h. */ 5325 int i; 5326 _ACEOF 5327 if ac_fn_c_try_compile "$LINENO" 5328 then : 5329 xorg_cv_cc_flag_unused_command_line_argument=yes 5330 else $as_nop 5331 xorg_cv_cc_flag_unused_command_line_argument=no 5332 fi 5333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5334 fi 5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5336 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5338 CFLAGS="$xorg_testset_save_CFLAGS" 5339 fi 5340 5341 found="no" 5342 5343 if test $found = "no" ; then 5344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5346 fi 5347 5348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5350 fi 5351 5352 CFLAGS="$CFLAGS -Wmissing-declarations" 5353 5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5355 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5356 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5357 if eval test \${$cacheid+y} 5358 then : 5359 printf %s "(cached) " >&6 5360 else $as_nop 5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5362 /* end confdefs.h. */ 5363 int i; 5364 int 5365 main (void) 5366 { 5367 5368 ; 5369 return 0; 5370 } 5371 _ACEOF 5372 if ac_fn_c_try_link "$LINENO" 5373 then : 5374 eval $cacheid=yes 5375 else $as_nop 5376 eval $cacheid=no 5377 fi 5378 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5379 conftest$ac_exeext conftest.$ac_ext 5380 fi 5381 5382 5383 CFLAGS="$xorg_testset_save_CFLAGS" 5384 5385 eval supported=\$$cacheid 5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5387 printf "%s\n" "$supported" >&6; } 5388 if test "$supported" = "yes" ; then 5389 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5390 found="yes" 5391 fi 5392 fi 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 xorg_testset_save_CFLAGS="$CFLAGS" 5409 5410 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5413 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5414 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5415 then : 5416 printf %s "(cached) " >&6 5417 else $as_nop 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419 /* end confdefs.h. */ 5420 int i; 5421 _ACEOF 5422 if ac_fn_c_try_compile "$LINENO" 5423 then : 5424 xorg_cv_cc_flag_unknown_warning_option=yes 5425 else $as_nop 5426 xorg_cv_cc_flag_unknown_warning_option=no 5427 fi 5428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5429 fi 5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5431 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5433 CFLAGS="$xorg_testset_save_CFLAGS" 5434 fi 5435 5436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5439 fi 5440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5442 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5443 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5444 then : 5445 printf %s "(cached) " >&6 5446 else $as_nop 5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5448 /* end confdefs.h. */ 5449 int i; 5450 _ACEOF 5451 if ac_fn_c_try_compile "$LINENO" 5452 then : 5453 xorg_cv_cc_flag_unused_command_line_argument=yes 5454 else $as_nop 5455 xorg_cv_cc_flag_unused_command_line_argument=no 5456 fi 5457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5458 fi 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5460 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5462 CFLAGS="$xorg_testset_save_CFLAGS" 5463 fi 5464 5465 found="no" 5466 5467 if test $found = "no" ; then 5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 fi 5471 5472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5474 fi 5475 5476 CFLAGS="$CFLAGS -Wformat=2" 5477 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5479 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5480 cacheid=xorg_cv_cc_flag__Wformat_2 5481 if eval test \${$cacheid+y} 5482 then : 5483 printf %s "(cached) " >&6 5484 else $as_nop 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486 /* end confdefs.h. */ 5487 int i; 5488 int 5489 main (void) 5490 { 5491 5492 ; 5493 return 0; 5494 } 5495 _ACEOF 5496 if ac_fn_c_try_link "$LINENO" 5497 then : 5498 eval $cacheid=yes 5499 else $as_nop 5500 eval $cacheid=no 5501 fi 5502 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5503 conftest$ac_exeext conftest.$ac_ext 5504 fi 5505 5506 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508 5509 eval supported=\$$cacheid 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5511 printf "%s\n" "$supported" >&6; } 5512 if test "$supported" = "yes" ; then 5513 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5514 found="yes" 5515 fi 5516 fi 5517 5518 if test $found = "no" ; then 5519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5521 fi 5522 5523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5525 fi 5526 5527 CFLAGS="$CFLAGS -Wformat" 5528 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5530 printf %s "checking if $CC supports -Wformat... " >&6; } 5531 cacheid=xorg_cv_cc_flag__Wformat 5532 if eval test \${$cacheid+y} 5533 then : 5534 printf %s "(cached) " >&6 5535 else $as_nop 5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5537 /* end confdefs.h. */ 5538 int i; 5539 int 5540 main (void) 5541 { 5542 5543 ; 5544 return 0; 5545 } 5546 _ACEOF 5547 if ac_fn_c_try_link "$LINENO" 5548 then : 5549 eval $cacheid=yes 5550 else $as_nop 5551 eval $cacheid=no 5552 fi 5553 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5554 conftest$ac_exeext conftest.$ac_ext 5555 fi 5556 5557 5558 CFLAGS="$xorg_testset_save_CFLAGS" 5559 5560 eval supported=\$$cacheid 5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5562 printf "%s\n" "$supported" >&6; } 5563 if test "$supported" = "yes" ; then 5564 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5565 found="yes" 5566 fi 5567 fi 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 xorg_testset_save_CFLAGS="$CFLAGS" 5586 5587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5590 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5591 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5592 then : 5593 printf %s "(cached) " >&6 5594 else $as_nop 5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5596 /* end confdefs.h. */ 5597 int i; 5598 _ACEOF 5599 if ac_fn_c_try_compile "$LINENO" 5600 then : 5601 xorg_cv_cc_flag_unknown_warning_option=yes 5602 else $as_nop 5603 xorg_cv_cc_flag_unknown_warning_option=no 5604 fi 5605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5606 fi 5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5608 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5610 CFLAGS="$xorg_testset_save_CFLAGS" 5611 fi 5612 5613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5616 fi 5617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5621 then : 5622 printf %s "(cached) " >&6 5623 else $as_nop 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625 /* end confdefs.h. */ 5626 int i; 5627 _ACEOF 5628 if ac_fn_c_try_compile "$LINENO" 5629 then : 5630 xorg_cv_cc_flag_unused_command_line_argument=yes 5631 else $as_nop 5632 xorg_cv_cc_flag_unused_command_line_argument=no 5633 fi 5634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5635 fi 5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5637 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5639 CFLAGS="$xorg_testset_save_CFLAGS" 5640 fi 5641 5642 found="no" 5643 5644 if test $found = "no" ; then 5645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5647 fi 5648 5649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5651 fi 5652 5653 CFLAGS="$CFLAGS -Wstrict-prototypes" 5654 5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5656 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5657 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5658 if eval test \${$cacheid+y} 5659 then : 5660 printf %s "(cached) " >&6 5661 else $as_nop 5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5663 /* end confdefs.h. */ 5664 int i; 5665 int 5666 main (void) 5667 { 5668 5669 ; 5670 return 0; 5671 } 5672 _ACEOF 5673 if ac_fn_c_try_link "$LINENO" 5674 then : 5675 eval $cacheid=yes 5676 else $as_nop 5677 eval $cacheid=no 5678 fi 5679 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5680 conftest$ac_exeext conftest.$ac_ext 5681 fi 5682 5683 5684 CFLAGS="$xorg_testset_save_CFLAGS" 5685 5686 eval supported=\$$cacheid 5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5688 printf "%s\n" "$supported" >&6; } 5689 if test "$supported" = "yes" ; then 5690 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5691 found="yes" 5692 fi 5693 fi 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 xorg_testset_save_CFLAGS="$CFLAGS" 5710 5711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5714 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5715 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5716 then : 5717 printf %s "(cached) " >&6 5718 else $as_nop 5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5720 /* end confdefs.h. */ 5721 int i; 5722 _ACEOF 5723 if ac_fn_c_try_compile "$LINENO" 5724 then : 5725 xorg_cv_cc_flag_unknown_warning_option=yes 5726 else $as_nop 5727 xorg_cv_cc_flag_unknown_warning_option=no 5728 fi 5729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5730 fi 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5732 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5734 CFLAGS="$xorg_testset_save_CFLAGS" 5735 fi 5736 5737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5740 fi 5741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5743 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5744 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5745 then : 5746 printf %s "(cached) " >&6 5747 else $as_nop 5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5749 /* end confdefs.h. */ 5750 int i; 5751 _ACEOF 5752 if ac_fn_c_try_compile "$LINENO" 5753 then : 5754 xorg_cv_cc_flag_unused_command_line_argument=yes 5755 else $as_nop 5756 xorg_cv_cc_flag_unused_command_line_argument=no 5757 fi 5758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5759 fi 5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5761 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5763 CFLAGS="$xorg_testset_save_CFLAGS" 5764 fi 5765 5766 found="no" 5767 5768 if test $found = "no" ; then 5769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5771 fi 5772 5773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5775 fi 5776 5777 CFLAGS="$CFLAGS -Wmissing-prototypes" 5778 5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5780 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5781 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5782 if eval test \${$cacheid+y} 5783 then : 5784 printf %s "(cached) " >&6 5785 else $as_nop 5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5787 /* end confdefs.h. */ 5788 int i; 5789 int 5790 main (void) 5791 { 5792 5793 ; 5794 return 0; 5795 } 5796 _ACEOF 5797 if ac_fn_c_try_link "$LINENO" 5798 then : 5799 eval $cacheid=yes 5800 else $as_nop 5801 eval $cacheid=no 5802 fi 5803 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5804 conftest$ac_exeext conftest.$ac_ext 5805 fi 5806 5807 5808 CFLAGS="$xorg_testset_save_CFLAGS" 5809 5810 eval supported=\$$cacheid 5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5812 printf "%s\n" "$supported" >&6; } 5813 if test "$supported" = "yes" ; then 5814 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5815 found="yes" 5816 fi 5817 fi 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 xorg_testset_save_CFLAGS="$CFLAGS" 5834 5835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5839 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5840 then : 5841 printf %s "(cached) " >&6 5842 else $as_nop 5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5844 /* end confdefs.h. */ 5845 int i; 5846 _ACEOF 5847 if ac_fn_c_try_compile "$LINENO" 5848 then : 5849 xorg_cv_cc_flag_unknown_warning_option=yes 5850 else $as_nop 5851 xorg_cv_cc_flag_unknown_warning_option=no 5852 fi 5853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5854 fi 5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5858 CFLAGS="$xorg_testset_save_CFLAGS" 5859 fi 5860 5861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5864 fi 5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5869 then : 5870 printf %s "(cached) " >&6 5871 else $as_nop 5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5873 /* end confdefs.h. */ 5874 int i; 5875 _ACEOF 5876 if ac_fn_c_try_compile "$LINENO" 5877 then : 5878 xorg_cv_cc_flag_unused_command_line_argument=yes 5879 else $as_nop 5880 xorg_cv_cc_flag_unused_command_line_argument=no 5881 fi 5882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5883 fi 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5885 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5887 CFLAGS="$xorg_testset_save_CFLAGS" 5888 fi 5889 5890 found="no" 5891 5892 if test $found = "no" ; then 5893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5895 fi 5896 5897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5899 fi 5900 5901 CFLAGS="$CFLAGS -Wnested-externs" 5902 5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5904 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5905 cacheid=xorg_cv_cc_flag__Wnested_externs 5906 if eval test \${$cacheid+y} 5907 then : 5908 printf %s "(cached) " >&6 5909 else $as_nop 5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5911 /* end confdefs.h. */ 5912 int i; 5913 int 5914 main (void) 5915 { 5916 5917 ; 5918 return 0; 5919 } 5920 _ACEOF 5921 if ac_fn_c_try_link "$LINENO" 5922 then : 5923 eval $cacheid=yes 5924 else $as_nop 5925 eval $cacheid=no 5926 fi 5927 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5928 conftest$ac_exeext conftest.$ac_ext 5929 fi 5930 5931 5932 CFLAGS="$xorg_testset_save_CFLAGS" 5933 5934 eval supported=\$$cacheid 5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5936 printf "%s\n" "$supported" >&6; } 5937 if test "$supported" = "yes" ; then 5938 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5939 found="yes" 5940 fi 5941 fi 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 xorg_testset_save_CFLAGS="$CFLAGS" 5958 5959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5963 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5964 then : 5965 printf %s "(cached) " >&6 5966 else $as_nop 5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5968 /* end confdefs.h. */ 5969 int i; 5970 _ACEOF 5971 if ac_fn_c_try_compile "$LINENO" 5972 then : 5973 xorg_cv_cc_flag_unknown_warning_option=yes 5974 else $as_nop 5975 xorg_cv_cc_flag_unknown_warning_option=no 5976 fi 5977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5978 fi 5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5982 CFLAGS="$xorg_testset_save_CFLAGS" 5983 fi 5984 5985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5988 fi 5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5993 then : 5994 printf %s "(cached) " >&6 5995 else $as_nop 5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5997 /* end confdefs.h. */ 5998 int i; 5999 _ACEOF 6000 if ac_fn_c_try_compile "$LINENO" 6001 then : 6002 xorg_cv_cc_flag_unused_command_line_argument=yes 6003 else $as_nop 6004 xorg_cv_cc_flag_unused_command_line_argument=no 6005 fi 6006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6007 fi 6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6011 CFLAGS="$xorg_testset_save_CFLAGS" 6012 fi 6013 6014 found="no" 6015 6016 if test $found = "no" ; then 6017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6019 fi 6020 6021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6023 fi 6024 6025 CFLAGS="$CFLAGS -Wbad-function-cast" 6026 6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6028 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6029 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6030 if eval test \${$cacheid+y} 6031 then : 6032 printf %s "(cached) " >&6 6033 else $as_nop 6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6035 /* end confdefs.h. */ 6036 int i; 6037 int 6038 main (void) 6039 { 6040 6041 ; 6042 return 0; 6043 } 6044 _ACEOF 6045 if ac_fn_c_try_link "$LINENO" 6046 then : 6047 eval $cacheid=yes 6048 else $as_nop 6049 eval $cacheid=no 6050 fi 6051 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6052 conftest$ac_exeext conftest.$ac_ext 6053 fi 6054 6055 6056 CFLAGS="$xorg_testset_save_CFLAGS" 6057 6058 eval supported=\$$cacheid 6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6060 printf "%s\n" "$supported" >&6; } 6061 if test "$supported" = "yes" ; then 6062 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6063 found="yes" 6064 fi 6065 fi 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 xorg_testset_save_CFLAGS="$CFLAGS" 6082 6083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6086 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6087 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6088 then : 6089 printf %s "(cached) " >&6 6090 else $as_nop 6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092 /* end confdefs.h. */ 6093 int i; 6094 _ACEOF 6095 if ac_fn_c_try_compile "$LINENO" 6096 then : 6097 xorg_cv_cc_flag_unknown_warning_option=yes 6098 else $as_nop 6099 xorg_cv_cc_flag_unknown_warning_option=no 6100 fi 6101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6102 fi 6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6104 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6106 CFLAGS="$xorg_testset_save_CFLAGS" 6107 fi 6108 6109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6112 fi 6113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6115 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6116 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6117 then : 6118 printf %s "(cached) " >&6 6119 else $as_nop 6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6121 /* end confdefs.h. */ 6122 int i; 6123 _ACEOF 6124 if ac_fn_c_try_compile "$LINENO" 6125 then : 6126 xorg_cv_cc_flag_unused_command_line_argument=yes 6127 else $as_nop 6128 xorg_cv_cc_flag_unused_command_line_argument=no 6129 fi 6130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6131 fi 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6133 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6135 CFLAGS="$xorg_testset_save_CFLAGS" 6136 fi 6137 6138 found="no" 6139 6140 if test $found = "no" ; then 6141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6143 fi 6144 6145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6147 fi 6148 6149 CFLAGS="$CFLAGS -Wold-style-definition" 6150 6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6152 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6153 cacheid=xorg_cv_cc_flag__Wold_style_definition 6154 if eval test \${$cacheid+y} 6155 then : 6156 printf %s "(cached) " >&6 6157 else $as_nop 6158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6159 /* end confdefs.h. */ 6160 int i; 6161 int 6162 main (void) 6163 { 6164 6165 ; 6166 return 0; 6167 } 6168 _ACEOF 6169 if ac_fn_c_try_link "$LINENO" 6170 then : 6171 eval $cacheid=yes 6172 else $as_nop 6173 eval $cacheid=no 6174 fi 6175 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6176 conftest$ac_exeext conftest.$ac_ext 6177 fi 6178 6179 6180 CFLAGS="$xorg_testset_save_CFLAGS" 6181 6182 eval supported=\$$cacheid 6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6184 printf "%s\n" "$supported" >&6; } 6185 if test "$supported" = "yes" ; then 6186 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6187 found="yes" 6188 fi 6189 fi 6190 6191 if test $found = "no" ; then 6192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6194 fi 6195 6196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6198 fi 6199 6200 CFLAGS="$CFLAGS -fd" 6201 6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6203 printf %s "checking if $CC supports -fd... " >&6; } 6204 cacheid=xorg_cv_cc_flag__fd 6205 if eval test \${$cacheid+y} 6206 then : 6207 printf %s "(cached) " >&6 6208 else $as_nop 6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6210 /* end confdefs.h. */ 6211 int i; 6212 int 6213 main (void) 6214 { 6215 6216 ; 6217 return 0; 6218 } 6219 _ACEOF 6220 if ac_fn_c_try_link "$LINENO" 6221 then : 6222 eval $cacheid=yes 6223 else $as_nop 6224 eval $cacheid=no 6225 fi 6226 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6227 conftest$ac_exeext conftest.$ac_ext 6228 fi 6229 6230 6231 CFLAGS="$xorg_testset_save_CFLAGS" 6232 6233 eval supported=\$$cacheid 6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6235 printf "%s\n" "$supported" >&6; } 6236 if test "$supported" = "yes" ; then 6237 BASE_CFLAGS="$BASE_CFLAGS -fd" 6238 found="yes" 6239 fi 6240 fi 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 xorg_testset_save_CFLAGS="$CFLAGS" 6257 6258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6261 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6262 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6263 then : 6264 printf %s "(cached) " >&6 6265 else $as_nop 6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6267 /* end confdefs.h. */ 6268 int i; 6269 _ACEOF 6270 if ac_fn_c_try_compile "$LINENO" 6271 then : 6272 xorg_cv_cc_flag_unknown_warning_option=yes 6273 else $as_nop 6274 xorg_cv_cc_flag_unknown_warning_option=no 6275 fi 6276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6277 fi 6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6279 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6281 CFLAGS="$xorg_testset_save_CFLAGS" 6282 fi 6283 6284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6287 fi 6288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6290 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6291 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6292 then : 6293 printf %s "(cached) " >&6 6294 else $as_nop 6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6296 /* end confdefs.h. */ 6297 int i; 6298 _ACEOF 6299 if ac_fn_c_try_compile "$LINENO" 6300 then : 6301 xorg_cv_cc_flag_unused_command_line_argument=yes 6302 else $as_nop 6303 xorg_cv_cc_flag_unused_command_line_argument=no 6304 fi 6305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6306 fi 6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6308 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6310 CFLAGS="$xorg_testset_save_CFLAGS" 6311 fi 6312 6313 found="no" 6314 6315 if test $found = "no" ; then 6316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6318 fi 6319 6320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6322 fi 6323 6324 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6325 6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6327 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6328 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6329 if eval test \${$cacheid+y} 6330 then : 6331 printf %s "(cached) " >&6 6332 else $as_nop 6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334 /* end confdefs.h. */ 6335 int i; 6336 int 6337 main (void) 6338 { 6339 6340 ; 6341 return 0; 6342 } 6343 _ACEOF 6344 if ac_fn_c_try_link "$LINENO" 6345 then : 6346 eval $cacheid=yes 6347 else $as_nop 6348 eval $cacheid=no 6349 fi 6350 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6351 conftest$ac_exeext conftest.$ac_ext 6352 fi 6353 6354 6355 CFLAGS="$xorg_testset_save_CFLAGS" 6356 6357 eval supported=\$$cacheid 6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6359 printf "%s\n" "$supported" >&6; } 6360 if test "$supported" = "yes" ; then 6361 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6362 found="yes" 6363 fi 6364 fi 6365 6366 6367 6368 6369 6370 # This chunk adds additional warnings that could catch undesired effects. 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 xorg_testset_save_CFLAGS="$CFLAGS" 6385 6386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6389 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6390 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6391 then : 6392 printf %s "(cached) " >&6 6393 else $as_nop 6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6395 /* end confdefs.h. */ 6396 int i; 6397 _ACEOF 6398 if ac_fn_c_try_compile "$LINENO" 6399 then : 6400 xorg_cv_cc_flag_unknown_warning_option=yes 6401 else $as_nop 6402 xorg_cv_cc_flag_unknown_warning_option=no 6403 fi 6404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6405 fi 6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6407 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410 fi 6411 6412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6415 fi 6416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6418 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6419 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6420 then : 6421 printf %s "(cached) " >&6 6422 else $as_nop 6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6424 /* end confdefs.h. */ 6425 int i; 6426 _ACEOF 6427 if ac_fn_c_try_compile "$LINENO" 6428 then : 6429 xorg_cv_cc_flag_unused_command_line_argument=yes 6430 else $as_nop 6431 xorg_cv_cc_flag_unused_command_line_argument=no 6432 fi 6433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6434 fi 6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6436 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6438 CFLAGS="$xorg_testset_save_CFLAGS" 6439 fi 6440 6441 found="no" 6442 6443 if test $found = "no" ; then 6444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6446 fi 6447 6448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6450 fi 6451 6452 CFLAGS="$CFLAGS -Wunused" 6453 6454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6455 printf %s "checking if $CC supports -Wunused... " >&6; } 6456 cacheid=xorg_cv_cc_flag__Wunused 6457 if eval test \${$cacheid+y} 6458 then : 6459 printf %s "(cached) " >&6 6460 else $as_nop 6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6462 /* end confdefs.h. */ 6463 int i; 6464 int 6465 main (void) 6466 { 6467 6468 ; 6469 return 0; 6470 } 6471 _ACEOF 6472 if ac_fn_c_try_link "$LINENO" 6473 then : 6474 eval $cacheid=yes 6475 else $as_nop 6476 eval $cacheid=no 6477 fi 6478 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6479 conftest$ac_exeext conftest.$ac_ext 6480 fi 6481 6482 6483 CFLAGS="$xorg_testset_save_CFLAGS" 6484 6485 eval supported=\$$cacheid 6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6487 printf "%s\n" "$supported" >&6; } 6488 if test "$supported" = "yes" ; then 6489 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6490 found="yes" 6491 fi 6492 fi 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 xorg_testset_save_CFLAGS="$CFLAGS" 6509 6510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6513 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6514 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6515 then : 6516 printf %s "(cached) " >&6 6517 else $as_nop 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519 /* end confdefs.h. */ 6520 int i; 6521 _ACEOF 6522 if ac_fn_c_try_compile "$LINENO" 6523 then : 6524 xorg_cv_cc_flag_unknown_warning_option=yes 6525 else $as_nop 6526 xorg_cv_cc_flag_unknown_warning_option=no 6527 fi 6528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6529 fi 6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6531 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6533 CFLAGS="$xorg_testset_save_CFLAGS" 6534 fi 6535 6536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6539 fi 6540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6542 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6543 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6544 then : 6545 printf %s "(cached) " >&6 6546 else $as_nop 6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6548 /* end confdefs.h. */ 6549 int i; 6550 _ACEOF 6551 if ac_fn_c_try_compile "$LINENO" 6552 then : 6553 xorg_cv_cc_flag_unused_command_line_argument=yes 6554 else $as_nop 6555 xorg_cv_cc_flag_unused_command_line_argument=no 6556 fi 6557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6558 fi 6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6560 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6562 CFLAGS="$xorg_testset_save_CFLAGS" 6563 fi 6564 6565 found="no" 6566 6567 if test $found = "no" ; then 6568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6570 fi 6571 6572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6574 fi 6575 6576 CFLAGS="$CFLAGS -Wuninitialized" 6577 6578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6579 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6580 cacheid=xorg_cv_cc_flag__Wuninitialized 6581 if eval test \${$cacheid+y} 6582 then : 6583 printf %s "(cached) " >&6 6584 else $as_nop 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586 /* end confdefs.h. */ 6587 int i; 6588 int 6589 main (void) 6590 { 6591 6592 ; 6593 return 0; 6594 } 6595 _ACEOF 6596 if ac_fn_c_try_link "$LINENO" 6597 then : 6598 eval $cacheid=yes 6599 else $as_nop 6600 eval $cacheid=no 6601 fi 6602 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6603 conftest$ac_exeext conftest.$ac_ext 6604 fi 6605 6606 6607 CFLAGS="$xorg_testset_save_CFLAGS" 6608 6609 eval supported=\$$cacheid 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6611 printf "%s\n" "$supported" >&6; } 6612 if test "$supported" = "yes" ; then 6613 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6614 found="yes" 6615 fi 6616 fi 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 xorg_testset_save_CFLAGS="$CFLAGS" 6633 6634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6637 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6638 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6639 then : 6640 printf %s "(cached) " >&6 6641 else $as_nop 6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643 /* end confdefs.h. */ 6644 int i; 6645 _ACEOF 6646 if ac_fn_c_try_compile "$LINENO" 6647 then : 6648 xorg_cv_cc_flag_unknown_warning_option=yes 6649 else $as_nop 6650 xorg_cv_cc_flag_unknown_warning_option=no 6651 fi 6652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6653 fi 6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6655 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6657 CFLAGS="$xorg_testset_save_CFLAGS" 6658 fi 6659 6660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6663 fi 6664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6666 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6667 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6668 then : 6669 printf %s "(cached) " >&6 6670 else $as_nop 6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672 /* end confdefs.h. */ 6673 int i; 6674 _ACEOF 6675 if ac_fn_c_try_compile "$LINENO" 6676 then : 6677 xorg_cv_cc_flag_unused_command_line_argument=yes 6678 else $as_nop 6679 xorg_cv_cc_flag_unused_command_line_argument=no 6680 fi 6681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6682 fi 6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6684 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6686 CFLAGS="$xorg_testset_save_CFLAGS" 6687 fi 6688 6689 found="no" 6690 6691 if test $found = "no" ; then 6692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6694 fi 6695 6696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6698 fi 6699 6700 CFLAGS="$CFLAGS -Wshadow" 6701 6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6703 printf %s "checking if $CC supports -Wshadow... " >&6; } 6704 cacheid=xorg_cv_cc_flag__Wshadow 6705 if eval test \${$cacheid+y} 6706 then : 6707 printf %s "(cached) " >&6 6708 else $as_nop 6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6710 /* end confdefs.h. */ 6711 int i; 6712 int 6713 main (void) 6714 { 6715 6716 ; 6717 return 0; 6718 } 6719 _ACEOF 6720 if ac_fn_c_try_link "$LINENO" 6721 then : 6722 eval $cacheid=yes 6723 else $as_nop 6724 eval $cacheid=no 6725 fi 6726 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6727 conftest$ac_exeext conftest.$ac_ext 6728 fi 6729 6730 6731 CFLAGS="$xorg_testset_save_CFLAGS" 6732 6733 eval supported=\$$cacheid 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6735 printf "%s\n" "$supported" >&6; } 6736 if test "$supported" = "yes" ; then 6737 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6738 found="yes" 6739 fi 6740 fi 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 xorg_testset_save_CFLAGS="$CFLAGS" 6757 6758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6761 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6762 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6763 then : 6764 printf %s "(cached) " >&6 6765 else $as_nop 6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6767 /* end confdefs.h. */ 6768 int i; 6769 _ACEOF 6770 if ac_fn_c_try_compile "$LINENO" 6771 then : 6772 xorg_cv_cc_flag_unknown_warning_option=yes 6773 else $as_nop 6774 xorg_cv_cc_flag_unknown_warning_option=no 6775 fi 6776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6777 fi 6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6779 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6781 CFLAGS="$xorg_testset_save_CFLAGS" 6782 fi 6783 6784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6787 fi 6788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6790 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6791 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6792 then : 6793 printf %s "(cached) " >&6 6794 else $as_nop 6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796 /* end confdefs.h. */ 6797 int i; 6798 _ACEOF 6799 if ac_fn_c_try_compile "$LINENO" 6800 then : 6801 xorg_cv_cc_flag_unused_command_line_argument=yes 6802 else $as_nop 6803 xorg_cv_cc_flag_unused_command_line_argument=no 6804 fi 6805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6806 fi 6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6808 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6810 CFLAGS="$xorg_testset_save_CFLAGS" 6811 fi 6812 6813 found="no" 6814 6815 if test $found = "no" ; then 6816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6818 fi 6819 6820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6822 fi 6823 6824 CFLAGS="$CFLAGS -Wmissing-noreturn" 6825 6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6827 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6828 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6829 if eval test \${$cacheid+y} 6830 then : 6831 printf %s "(cached) " >&6 6832 else $as_nop 6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6834 /* end confdefs.h. */ 6835 int i; 6836 int 6837 main (void) 6838 { 6839 6840 ; 6841 return 0; 6842 } 6843 _ACEOF 6844 if ac_fn_c_try_link "$LINENO" 6845 then : 6846 eval $cacheid=yes 6847 else $as_nop 6848 eval $cacheid=no 6849 fi 6850 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6851 conftest$ac_exeext conftest.$ac_ext 6852 fi 6853 6854 6855 CFLAGS="$xorg_testset_save_CFLAGS" 6856 6857 eval supported=\$$cacheid 6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6859 printf "%s\n" "$supported" >&6; } 6860 if test "$supported" = "yes" ; then 6861 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6862 found="yes" 6863 fi 6864 fi 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 xorg_testset_save_CFLAGS="$CFLAGS" 6881 6882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6885 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6886 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6887 then : 6888 printf %s "(cached) " >&6 6889 else $as_nop 6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6891 /* end confdefs.h. */ 6892 int i; 6893 _ACEOF 6894 if ac_fn_c_try_compile "$LINENO" 6895 then : 6896 xorg_cv_cc_flag_unknown_warning_option=yes 6897 else $as_nop 6898 xorg_cv_cc_flag_unknown_warning_option=no 6899 fi 6900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6901 fi 6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6905 CFLAGS="$xorg_testset_save_CFLAGS" 6906 fi 6907 6908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6911 fi 6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6916 then : 6917 printf %s "(cached) " >&6 6918 else $as_nop 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920 /* end confdefs.h. */ 6921 int i; 6922 _ACEOF 6923 if ac_fn_c_try_compile "$LINENO" 6924 then : 6925 xorg_cv_cc_flag_unused_command_line_argument=yes 6926 else $as_nop 6927 xorg_cv_cc_flag_unused_command_line_argument=no 6928 fi 6929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6930 fi 6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6932 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6934 CFLAGS="$xorg_testset_save_CFLAGS" 6935 fi 6936 6937 found="no" 6938 6939 if test $found = "no" ; then 6940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6942 fi 6943 6944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6946 fi 6947 6948 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6949 6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6951 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6952 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6953 if eval test \${$cacheid+y} 6954 then : 6955 printf %s "(cached) " >&6 6956 else $as_nop 6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6958 /* end confdefs.h. */ 6959 int i; 6960 int 6961 main (void) 6962 { 6963 6964 ; 6965 return 0; 6966 } 6967 _ACEOF 6968 if ac_fn_c_try_link "$LINENO" 6969 then : 6970 eval $cacheid=yes 6971 else $as_nop 6972 eval $cacheid=no 6973 fi 6974 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6975 conftest$ac_exeext conftest.$ac_ext 6976 fi 6977 6978 6979 CFLAGS="$xorg_testset_save_CFLAGS" 6980 6981 eval supported=\$$cacheid 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6983 printf "%s\n" "$supported" >&6; } 6984 if test "$supported" = "yes" ; then 6985 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6986 found="yes" 6987 fi 6988 fi 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 xorg_testset_save_CFLAGS="$CFLAGS" 7005 7006 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7009 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7010 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7011 then : 7012 printf %s "(cached) " >&6 7013 else $as_nop 7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7015 /* end confdefs.h. */ 7016 int i; 7017 _ACEOF 7018 if ac_fn_c_try_compile "$LINENO" 7019 then : 7020 xorg_cv_cc_flag_unknown_warning_option=yes 7021 else $as_nop 7022 xorg_cv_cc_flag_unknown_warning_option=no 7023 fi 7024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7025 fi 7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7027 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7029 CFLAGS="$xorg_testset_save_CFLAGS" 7030 fi 7031 7032 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7035 fi 7036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7038 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7039 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7040 then : 7041 printf %s "(cached) " >&6 7042 else $as_nop 7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7044 /* end confdefs.h. */ 7045 int i; 7046 _ACEOF 7047 if ac_fn_c_try_compile "$LINENO" 7048 then : 7049 xorg_cv_cc_flag_unused_command_line_argument=yes 7050 else $as_nop 7051 xorg_cv_cc_flag_unused_command_line_argument=no 7052 fi 7053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7054 fi 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7056 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7058 CFLAGS="$xorg_testset_save_CFLAGS" 7059 fi 7060 7061 found="no" 7062 7063 if test $found = "no" ; then 7064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7066 fi 7067 7068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7070 fi 7071 7072 CFLAGS="$CFLAGS -Wredundant-decls" 7073 7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7075 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7076 cacheid=xorg_cv_cc_flag__Wredundant_decls 7077 if eval test \${$cacheid+y} 7078 then : 7079 printf %s "(cached) " >&6 7080 else $as_nop 7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7082 /* end confdefs.h. */ 7083 int i; 7084 int 7085 main (void) 7086 { 7087 7088 ; 7089 return 0; 7090 } 7091 _ACEOF 7092 if ac_fn_c_try_link "$LINENO" 7093 then : 7094 eval $cacheid=yes 7095 else $as_nop 7096 eval $cacheid=no 7097 fi 7098 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7099 conftest$ac_exeext conftest.$ac_ext 7100 fi 7101 7102 7103 CFLAGS="$xorg_testset_save_CFLAGS" 7104 7105 eval supported=\$$cacheid 7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7107 printf "%s\n" "$supported" >&6; } 7108 if test "$supported" = "yes" ; then 7109 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7110 found="yes" 7111 fi 7112 fi 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 xorg_testset_save_CFLAGS="$CFLAGS" 7129 7130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7133 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7134 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7135 then : 7136 printf %s "(cached) " >&6 7137 else $as_nop 7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7139 /* end confdefs.h. */ 7140 int i; 7141 _ACEOF 7142 if ac_fn_c_try_compile "$LINENO" 7143 then : 7144 xorg_cv_cc_flag_unknown_warning_option=yes 7145 else $as_nop 7146 xorg_cv_cc_flag_unknown_warning_option=no 7147 fi 7148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7149 fi 7150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7151 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7153 CFLAGS="$xorg_testset_save_CFLAGS" 7154 fi 7155 7156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7159 fi 7160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7162 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7163 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7164 then : 7165 printf %s "(cached) " >&6 7166 else $as_nop 7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7168 /* end confdefs.h. */ 7169 int i; 7170 _ACEOF 7171 if ac_fn_c_try_compile "$LINENO" 7172 then : 7173 xorg_cv_cc_flag_unused_command_line_argument=yes 7174 else $as_nop 7175 xorg_cv_cc_flag_unused_command_line_argument=no 7176 fi 7177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7178 fi 7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7180 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7182 CFLAGS="$xorg_testset_save_CFLAGS" 7183 fi 7184 7185 found="no" 7186 7187 if test $found = "no" ; then 7188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7190 fi 7191 7192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7194 fi 7195 7196 CFLAGS="$CFLAGS -Wlogical-op" 7197 7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7199 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7200 cacheid=xorg_cv_cc_flag__Wlogical_op 7201 if eval test \${$cacheid+y} 7202 then : 7203 printf %s "(cached) " >&6 7204 else $as_nop 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206 /* end confdefs.h. */ 7207 int i; 7208 int 7209 main (void) 7210 { 7211 7212 ; 7213 return 0; 7214 } 7215 _ACEOF 7216 if ac_fn_c_try_link "$LINENO" 7217 then : 7218 eval $cacheid=yes 7219 else $as_nop 7220 eval $cacheid=no 7221 fi 7222 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7223 conftest$ac_exeext conftest.$ac_ext 7224 fi 7225 7226 7227 CFLAGS="$xorg_testset_save_CFLAGS" 7228 7229 eval supported=\$$cacheid 7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7231 printf "%s\n" "$supported" >&6; } 7232 if test "$supported" = "yes" ; then 7233 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7234 found="yes" 7235 fi 7236 fi 7237 7238 7239 7240 # These are currently disabled because they are noisy. They will be enabled 7241 # in the future once the codebase is sufficiently modernized to silence 7242 # them. For now, I don't want them to drown out the other warnings. 7243 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7244 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7245 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7246 7247 # Turn some warnings into errors, so we don't accidently get successful builds 7248 # when there are problems that should be fixed. 7249 7250 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 xorg_testset_save_CFLAGS="$CFLAGS" 7265 7266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7269 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7270 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7271 then : 7272 printf %s "(cached) " >&6 7273 else $as_nop 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275 /* end confdefs.h. */ 7276 int i; 7277 _ACEOF 7278 if ac_fn_c_try_compile "$LINENO" 7279 then : 7280 xorg_cv_cc_flag_unknown_warning_option=yes 7281 else $as_nop 7282 xorg_cv_cc_flag_unknown_warning_option=no 7283 fi 7284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7285 fi 7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7287 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7289 CFLAGS="$xorg_testset_save_CFLAGS" 7290 fi 7291 7292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7295 fi 7296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7298 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7299 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7300 then : 7301 printf %s "(cached) " >&6 7302 else $as_nop 7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7304 /* end confdefs.h. */ 7305 int i; 7306 _ACEOF 7307 if ac_fn_c_try_compile "$LINENO" 7308 then : 7309 xorg_cv_cc_flag_unused_command_line_argument=yes 7310 else $as_nop 7311 xorg_cv_cc_flag_unused_command_line_argument=no 7312 fi 7313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7314 fi 7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7316 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7318 CFLAGS="$xorg_testset_save_CFLAGS" 7319 fi 7320 7321 found="no" 7322 7323 if test $found = "no" ; then 7324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7326 fi 7327 7328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7330 fi 7331 7332 CFLAGS="$CFLAGS -Werror=implicit" 7333 7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7335 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7336 cacheid=xorg_cv_cc_flag__Werror_implicit 7337 if eval test \${$cacheid+y} 7338 then : 7339 printf %s "(cached) " >&6 7340 else $as_nop 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342 /* end confdefs.h. */ 7343 int i; 7344 int 7345 main (void) 7346 { 7347 7348 ; 7349 return 0; 7350 } 7351 _ACEOF 7352 if ac_fn_c_try_link "$LINENO" 7353 then : 7354 eval $cacheid=yes 7355 else $as_nop 7356 eval $cacheid=no 7357 fi 7358 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7359 conftest$ac_exeext conftest.$ac_ext 7360 fi 7361 7362 7363 CFLAGS="$xorg_testset_save_CFLAGS" 7364 7365 eval supported=\$$cacheid 7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7367 printf "%s\n" "$supported" >&6; } 7368 if test "$supported" = "yes" ; then 7369 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7370 found="yes" 7371 fi 7372 fi 7373 7374 if test $found = "no" ; then 7375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7377 fi 7378 7379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7381 fi 7382 7383 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7384 7385 { 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 7386 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7387 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7388 if eval test \${$cacheid+y} 7389 then : 7390 printf %s "(cached) " >&6 7391 else $as_nop 7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7393 /* end confdefs.h. */ 7394 int i; 7395 int 7396 main (void) 7397 { 7398 7399 ; 7400 return 0; 7401 } 7402 _ACEOF 7403 if ac_fn_c_try_link "$LINENO" 7404 then : 7405 eval $cacheid=yes 7406 else $as_nop 7407 eval $cacheid=no 7408 fi 7409 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7410 conftest$ac_exeext conftest.$ac_ext 7411 fi 7412 7413 7414 CFLAGS="$xorg_testset_save_CFLAGS" 7415 7416 eval supported=\$$cacheid 7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7418 printf "%s\n" "$supported" >&6; } 7419 if test "$supported" = "yes" ; then 7420 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7421 found="yes" 7422 fi 7423 fi 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 xorg_testset_save_CFLAGS="$CFLAGS" 7440 7441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7444 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7445 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7446 then : 7447 printf %s "(cached) " >&6 7448 else $as_nop 7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450 /* end confdefs.h. */ 7451 int i; 7452 _ACEOF 7453 if ac_fn_c_try_compile "$LINENO" 7454 then : 7455 xorg_cv_cc_flag_unknown_warning_option=yes 7456 else $as_nop 7457 xorg_cv_cc_flag_unknown_warning_option=no 7458 fi 7459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7460 fi 7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7464 CFLAGS="$xorg_testset_save_CFLAGS" 7465 fi 7466 7467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7470 fi 7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7475 then : 7476 printf %s "(cached) " >&6 7477 else $as_nop 7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7479 /* end confdefs.h. */ 7480 int i; 7481 _ACEOF 7482 if ac_fn_c_try_compile "$LINENO" 7483 then : 7484 xorg_cv_cc_flag_unused_command_line_argument=yes 7485 else $as_nop 7486 xorg_cv_cc_flag_unused_command_line_argument=no 7487 fi 7488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7489 fi 7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7491 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7493 CFLAGS="$xorg_testset_save_CFLAGS" 7494 fi 7495 7496 found="no" 7497 7498 if test $found = "no" ; then 7499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7501 fi 7502 7503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7505 fi 7506 7507 CFLAGS="$CFLAGS -Werror=nonnull" 7508 7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7510 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7511 cacheid=xorg_cv_cc_flag__Werror_nonnull 7512 if eval test \${$cacheid+y} 7513 then : 7514 printf %s "(cached) " >&6 7515 else $as_nop 7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7517 /* end confdefs.h. */ 7518 int i; 7519 int 7520 main (void) 7521 { 7522 7523 ; 7524 return 0; 7525 } 7526 _ACEOF 7527 if ac_fn_c_try_link "$LINENO" 7528 then : 7529 eval $cacheid=yes 7530 else $as_nop 7531 eval $cacheid=no 7532 fi 7533 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7534 conftest$ac_exeext conftest.$ac_ext 7535 fi 7536 7537 7538 CFLAGS="$xorg_testset_save_CFLAGS" 7539 7540 eval supported=\$$cacheid 7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7542 printf "%s\n" "$supported" >&6; } 7543 if test "$supported" = "yes" ; then 7544 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7545 found="yes" 7546 fi 7547 fi 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 xorg_testset_save_CFLAGS="$CFLAGS" 7564 7565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7568 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7569 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7570 then : 7571 printf %s "(cached) " >&6 7572 else $as_nop 7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7574 /* end confdefs.h. */ 7575 int i; 7576 _ACEOF 7577 if ac_fn_c_try_compile "$LINENO" 7578 then : 7579 xorg_cv_cc_flag_unknown_warning_option=yes 7580 else $as_nop 7581 xorg_cv_cc_flag_unknown_warning_option=no 7582 fi 7583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7584 fi 7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7586 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7588 CFLAGS="$xorg_testset_save_CFLAGS" 7589 fi 7590 7591 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7594 fi 7595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7597 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7598 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7599 then : 7600 printf %s "(cached) " >&6 7601 else $as_nop 7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7603 /* end confdefs.h. */ 7604 int i; 7605 _ACEOF 7606 if ac_fn_c_try_compile "$LINENO" 7607 then : 7608 xorg_cv_cc_flag_unused_command_line_argument=yes 7609 else $as_nop 7610 xorg_cv_cc_flag_unused_command_line_argument=no 7611 fi 7612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7613 fi 7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7615 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7617 CFLAGS="$xorg_testset_save_CFLAGS" 7618 fi 7619 7620 found="no" 7621 7622 if test $found = "no" ; then 7623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7625 fi 7626 7627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7629 fi 7630 7631 CFLAGS="$CFLAGS -Werror=init-self" 7632 7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7634 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7635 cacheid=xorg_cv_cc_flag__Werror_init_self 7636 if eval test \${$cacheid+y} 7637 then : 7638 printf %s "(cached) " >&6 7639 else $as_nop 7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7641 /* end confdefs.h. */ 7642 int i; 7643 int 7644 main (void) 7645 { 7646 7647 ; 7648 return 0; 7649 } 7650 _ACEOF 7651 if ac_fn_c_try_link "$LINENO" 7652 then : 7653 eval $cacheid=yes 7654 else $as_nop 7655 eval $cacheid=no 7656 fi 7657 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7658 conftest$ac_exeext conftest.$ac_ext 7659 fi 7660 7661 7662 CFLAGS="$xorg_testset_save_CFLAGS" 7663 7664 eval supported=\$$cacheid 7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7666 printf "%s\n" "$supported" >&6; } 7667 if test "$supported" = "yes" ; then 7668 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7669 found="yes" 7670 fi 7671 fi 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 xorg_testset_save_CFLAGS="$CFLAGS" 7688 7689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7692 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7693 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7694 then : 7695 printf %s "(cached) " >&6 7696 else $as_nop 7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7698 /* end confdefs.h. */ 7699 int i; 7700 _ACEOF 7701 if ac_fn_c_try_compile "$LINENO" 7702 then : 7703 xorg_cv_cc_flag_unknown_warning_option=yes 7704 else $as_nop 7705 xorg_cv_cc_flag_unknown_warning_option=no 7706 fi 7707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7708 fi 7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7710 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7712 CFLAGS="$xorg_testset_save_CFLAGS" 7713 fi 7714 7715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7718 fi 7719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7721 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7722 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7723 then : 7724 printf %s "(cached) " >&6 7725 else $as_nop 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727 /* end confdefs.h. */ 7728 int i; 7729 _ACEOF 7730 if ac_fn_c_try_compile "$LINENO" 7731 then : 7732 xorg_cv_cc_flag_unused_command_line_argument=yes 7733 else $as_nop 7734 xorg_cv_cc_flag_unused_command_line_argument=no 7735 fi 7736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7737 fi 7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7739 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7741 CFLAGS="$xorg_testset_save_CFLAGS" 7742 fi 7743 7744 found="no" 7745 7746 if test $found = "no" ; then 7747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7749 fi 7750 7751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7753 fi 7754 7755 CFLAGS="$CFLAGS -Werror=main" 7756 7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7758 printf %s "checking if $CC supports -Werror=main... " >&6; } 7759 cacheid=xorg_cv_cc_flag__Werror_main 7760 if eval test \${$cacheid+y} 7761 then : 7762 printf %s "(cached) " >&6 7763 else $as_nop 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765 /* end confdefs.h. */ 7766 int i; 7767 int 7768 main (void) 7769 { 7770 7771 ; 7772 return 0; 7773 } 7774 _ACEOF 7775 if ac_fn_c_try_link "$LINENO" 7776 then : 7777 eval $cacheid=yes 7778 else $as_nop 7779 eval $cacheid=no 7780 fi 7781 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7782 conftest$ac_exeext conftest.$ac_ext 7783 fi 7784 7785 7786 CFLAGS="$xorg_testset_save_CFLAGS" 7787 7788 eval supported=\$$cacheid 7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7790 printf "%s\n" "$supported" >&6; } 7791 if test "$supported" = "yes" ; then 7792 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7793 found="yes" 7794 fi 7795 fi 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 xorg_testset_save_CFLAGS="$CFLAGS" 7812 7813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7816 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7817 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7818 then : 7819 printf %s "(cached) " >&6 7820 else $as_nop 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822 /* end confdefs.h. */ 7823 int i; 7824 _ACEOF 7825 if ac_fn_c_try_compile "$LINENO" 7826 then : 7827 xorg_cv_cc_flag_unknown_warning_option=yes 7828 else $as_nop 7829 xorg_cv_cc_flag_unknown_warning_option=no 7830 fi 7831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7832 fi 7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7834 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7836 CFLAGS="$xorg_testset_save_CFLAGS" 7837 fi 7838 7839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7842 fi 7843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7845 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7846 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7847 then : 7848 printf %s "(cached) " >&6 7849 else $as_nop 7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7851 /* end confdefs.h. */ 7852 int i; 7853 _ACEOF 7854 if ac_fn_c_try_compile "$LINENO" 7855 then : 7856 xorg_cv_cc_flag_unused_command_line_argument=yes 7857 else $as_nop 7858 xorg_cv_cc_flag_unused_command_line_argument=no 7859 fi 7860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7861 fi 7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7863 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7865 CFLAGS="$xorg_testset_save_CFLAGS" 7866 fi 7867 7868 found="no" 7869 7870 if test $found = "no" ; then 7871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7873 fi 7874 7875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7877 fi 7878 7879 CFLAGS="$CFLAGS -Werror=missing-braces" 7880 7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7882 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7883 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7884 if eval test \${$cacheid+y} 7885 then : 7886 printf %s "(cached) " >&6 7887 else $as_nop 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889 /* end confdefs.h. */ 7890 int i; 7891 int 7892 main (void) 7893 { 7894 7895 ; 7896 return 0; 7897 } 7898 _ACEOF 7899 if ac_fn_c_try_link "$LINENO" 7900 then : 7901 eval $cacheid=yes 7902 else $as_nop 7903 eval $cacheid=no 7904 fi 7905 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7906 conftest$ac_exeext conftest.$ac_ext 7907 fi 7908 7909 7910 CFLAGS="$xorg_testset_save_CFLAGS" 7911 7912 eval supported=\$$cacheid 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7914 printf "%s\n" "$supported" >&6; } 7915 if test "$supported" = "yes" ; then 7916 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7917 found="yes" 7918 fi 7919 fi 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 xorg_testset_save_CFLAGS="$CFLAGS" 7936 7937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7940 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7941 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7942 then : 7943 printf %s "(cached) " >&6 7944 else $as_nop 7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7946 /* end confdefs.h. */ 7947 int i; 7948 _ACEOF 7949 if ac_fn_c_try_compile "$LINENO" 7950 then : 7951 xorg_cv_cc_flag_unknown_warning_option=yes 7952 else $as_nop 7953 xorg_cv_cc_flag_unknown_warning_option=no 7954 fi 7955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7956 fi 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7958 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7960 CFLAGS="$xorg_testset_save_CFLAGS" 7961 fi 7962 7963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7966 fi 7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7969 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7970 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7971 then : 7972 printf %s "(cached) " >&6 7973 else $as_nop 7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7975 /* end confdefs.h. */ 7976 int i; 7977 _ACEOF 7978 if ac_fn_c_try_compile "$LINENO" 7979 then : 7980 xorg_cv_cc_flag_unused_command_line_argument=yes 7981 else $as_nop 7982 xorg_cv_cc_flag_unused_command_line_argument=no 7983 fi 7984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7985 fi 7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7987 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7989 CFLAGS="$xorg_testset_save_CFLAGS" 7990 fi 7991 7992 found="no" 7993 7994 if test $found = "no" ; then 7995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7997 fi 7998 7999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8001 fi 8002 8003 CFLAGS="$CFLAGS -Werror=sequence-point" 8004 8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8006 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8007 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8008 if eval test \${$cacheid+y} 8009 then : 8010 printf %s "(cached) " >&6 8011 else $as_nop 8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8013 /* end confdefs.h. */ 8014 int i; 8015 int 8016 main (void) 8017 { 8018 8019 ; 8020 return 0; 8021 } 8022 _ACEOF 8023 if ac_fn_c_try_link "$LINENO" 8024 then : 8025 eval $cacheid=yes 8026 else $as_nop 8027 eval $cacheid=no 8028 fi 8029 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8030 conftest$ac_exeext conftest.$ac_ext 8031 fi 8032 8033 8034 CFLAGS="$xorg_testset_save_CFLAGS" 8035 8036 eval supported=\$$cacheid 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8038 printf "%s\n" "$supported" >&6; } 8039 if test "$supported" = "yes" ; then 8040 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8041 found="yes" 8042 fi 8043 fi 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 xorg_testset_save_CFLAGS="$CFLAGS" 8060 8061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8064 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8065 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8066 then : 8067 printf %s "(cached) " >&6 8068 else $as_nop 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8070 /* end confdefs.h. */ 8071 int i; 8072 _ACEOF 8073 if ac_fn_c_try_compile "$LINENO" 8074 then : 8075 xorg_cv_cc_flag_unknown_warning_option=yes 8076 else $as_nop 8077 xorg_cv_cc_flag_unknown_warning_option=no 8078 fi 8079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8080 fi 8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8082 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8084 CFLAGS="$xorg_testset_save_CFLAGS" 8085 fi 8086 8087 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8090 fi 8091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8093 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8094 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8095 then : 8096 printf %s "(cached) " >&6 8097 else $as_nop 8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8099 /* end confdefs.h. */ 8100 int i; 8101 _ACEOF 8102 if ac_fn_c_try_compile "$LINENO" 8103 then : 8104 xorg_cv_cc_flag_unused_command_line_argument=yes 8105 else $as_nop 8106 xorg_cv_cc_flag_unused_command_line_argument=no 8107 fi 8108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8109 fi 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8111 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8113 CFLAGS="$xorg_testset_save_CFLAGS" 8114 fi 8115 8116 found="no" 8117 8118 if test $found = "no" ; then 8119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8121 fi 8122 8123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8125 fi 8126 8127 CFLAGS="$CFLAGS -Werror=return-type" 8128 8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8130 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8131 cacheid=xorg_cv_cc_flag__Werror_return_type 8132 if eval test \${$cacheid+y} 8133 then : 8134 printf %s "(cached) " >&6 8135 else $as_nop 8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8137 /* end confdefs.h. */ 8138 int i; 8139 int 8140 main (void) 8141 { 8142 8143 ; 8144 return 0; 8145 } 8146 _ACEOF 8147 if ac_fn_c_try_link "$LINENO" 8148 then : 8149 eval $cacheid=yes 8150 else $as_nop 8151 eval $cacheid=no 8152 fi 8153 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8154 conftest$ac_exeext conftest.$ac_ext 8155 fi 8156 8157 8158 CFLAGS="$xorg_testset_save_CFLAGS" 8159 8160 eval supported=\$$cacheid 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8162 printf "%s\n" "$supported" >&6; } 8163 if test "$supported" = "yes" ; then 8164 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8165 found="yes" 8166 fi 8167 fi 8168 8169 if test $found = "no" ; then 8170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8172 fi 8173 8174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8176 fi 8177 8178 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8179 8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8181 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8182 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8183 if eval test \${$cacheid+y} 8184 then : 8185 printf %s "(cached) " >&6 8186 else $as_nop 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188 /* end confdefs.h. */ 8189 int i; 8190 int 8191 main (void) 8192 { 8193 8194 ; 8195 return 0; 8196 } 8197 _ACEOF 8198 if ac_fn_c_try_link "$LINENO" 8199 then : 8200 eval $cacheid=yes 8201 else $as_nop 8202 eval $cacheid=no 8203 fi 8204 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8205 conftest$ac_exeext conftest.$ac_ext 8206 fi 8207 8208 8209 CFLAGS="$xorg_testset_save_CFLAGS" 8210 8211 eval supported=\$$cacheid 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8213 printf "%s\n" "$supported" >&6; } 8214 if test "$supported" = "yes" ; then 8215 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8216 found="yes" 8217 fi 8218 fi 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 xorg_testset_save_CFLAGS="$CFLAGS" 8235 8236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8240 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8241 then : 8242 printf %s "(cached) " >&6 8243 else $as_nop 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245 /* end confdefs.h. */ 8246 int i; 8247 _ACEOF 8248 if ac_fn_c_try_compile "$LINENO" 8249 then : 8250 xorg_cv_cc_flag_unknown_warning_option=yes 8251 else $as_nop 8252 xorg_cv_cc_flag_unknown_warning_option=no 8253 fi 8254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8255 fi 8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8257 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8259 CFLAGS="$xorg_testset_save_CFLAGS" 8260 fi 8261 8262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8265 fi 8266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8268 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8269 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8270 then : 8271 printf %s "(cached) " >&6 8272 else $as_nop 8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8274 /* end confdefs.h. */ 8275 int i; 8276 _ACEOF 8277 if ac_fn_c_try_compile "$LINENO" 8278 then : 8279 xorg_cv_cc_flag_unused_command_line_argument=yes 8280 else $as_nop 8281 xorg_cv_cc_flag_unused_command_line_argument=no 8282 fi 8283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8284 fi 8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8286 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8288 CFLAGS="$xorg_testset_save_CFLAGS" 8289 fi 8290 8291 found="no" 8292 8293 if test $found = "no" ; then 8294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8296 fi 8297 8298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8300 fi 8301 8302 CFLAGS="$CFLAGS -Werror=trigraphs" 8303 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8305 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8306 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8307 if eval test \${$cacheid+y} 8308 then : 8309 printf %s "(cached) " >&6 8310 else $as_nop 8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8312 /* end confdefs.h. */ 8313 int i; 8314 int 8315 main (void) 8316 { 8317 8318 ; 8319 return 0; 8320 } 8321 _ACEOF 8322 if ac_fn_c_try_link "$LINENO" 8323 then : 8324 eval $cacheid=yes 8325 else $as_nop 8326 eval $cacheid=no 8327 fi 8328 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8329 conftest$ac_exeext conftest.$ac_ext 8330 fi 8331 8332 8333 CFLAGS="$xorg_testset_save_CFLAGS" 8334 8335 eval supported=\$$cacheid 8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8337 printf "%s\n" "$supported" >&6; } 8338 if test "$supported" = "yes" ; then 8339 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8340 found="yes" 8341 fi 8342 fi 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 xorg_testset_save_CFLAGS="$CFLAGS" 8359 8360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8363 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8364 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8365 then : 8366 printf %s "(cached) " >&6 8367 else $as_nop 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369 /* end confdefs.h. */ 8370 int i; 8371 _ACEOF 8372 if ac_fn_c_try_compile "$LINENO" 8373 then : 8374 xorg_cv_cc_flag_unknown_warning_option=yes 8375 else $as_nop 8376 xorg_cv_cc_flag_unknown_warning_option=no 8377 fi 8378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8379 fi 8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8381 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8383 CFLAGS="$xorg_testset_save_CFLAGS" 8384 fi 8385 8386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8389 fi 8390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8392 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8393 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8394 then : 8395 printf %s "(cached) " >&6 8396 else $as_nop 8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8398 /* end confdefs.h. */ 8399 int i; 8400 _ACEOF 8401 if ac_fn_c_try_compile "$LINENO" 8402 then : 8403 xorg_cv_cc_flag_unused_command_line_argument=yes 8404 else $as_nop 8405 xorg_cv_cc_flag_unused_command_line_argument=no 8406 fi 8407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8408 fi 8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8410 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8412 CFLAGS="$xorg_testset_save_CFLAGS" 8413 fi 8414 8415 found="no" 8416 8417 if test $found = "no" ; then 8418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8420 fi 8421 8422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8424 fi 8425 8426 CFLAGS="$CFLAGS -Werror=array-bounds" 8427 8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8429 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8430 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8431 if eval test \${$cacheid+y} 8432 then : 8433 printf %s "(cached) " >&6 8434 else $as_nop 8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8436 /* end confdefs.h. */ 8437 int i; 8438 int 8439 main (void) 8440 { 8441 8442 ; 8443 return 0; 8444 } 8445 _ACEOF 8446 if ac_fn_c_try_link "$LINENO" 8447 then : 8448 eval $cacheid=yes 8449 else $as_nop 8450 eval $cacheid=no 8451 fi 8452 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8453 conftest$ac_exeext conftest.$ac_ext 8454 fi 8455 8456 8457 CFLAGS="$xorg_testset_save_CFLAGS" 8458 8459 eval supported=\$$cacheid 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8461 printf "%s\n" "$supported" >&6; } 8462 if test "$supported" = "yes" ; then 8463 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8464 found="yes" 8465 fi 8466 fi 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 xorg_testset_save_CFLAGS="$CFLAGS" 8483 8484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8487 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8488 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8489 then : 8490 printf %s "(cached) " >&6 8491 else $as_nop 8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8493 /* end confdefs.h. */ 8494 int i; 8495 _ACEOF 8496 if ac_fn_c_try_compile "$LINENO" 8497 then : 8498 xorg_cv_cc_flag_unknown_warning_option=yes 8499 else $as_nop 8500 xorg_cv_cc_flag_unknown_warning_option=no 8501 fi 8502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8503 fi 8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8505 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8507 CFLAGS="$xorg_testset_save_CFLAGS" 8508 fi 8509 8510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8513 fi 8514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8516 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8517 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8518 then : 8519 printf %s "(cached) " >&6 8520 else $as_nop 8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8522 /* end confdefs.h. */ 8523 int i; 8524 _ACEOF 8525 if ac_fn_c_try_compile "$LINENO" 8526 then : 8527 xorg_cv_cc_flag_unused_command_line_argument=yes 8528 else $as_nop 8529 xorg_cv_cc_flag_unused_command_line_argument=no 8530 fi 8531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8532 fi 8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8534 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8536 CFLAGS="$xorg_testset_save_CFLAGS" 8537 fi 8538 8539 found="no" 8540 8541 if test $found = "no" ; then 8542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8544 fi 8545 8546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8548 fi 8549 8550 CFLAGS="$CFLAGS -Werror=write-strings" 8551 8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8553 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8554 cacheid=xorg_cv_cc_flag__Werror_write_strings 8555 if eval test \${$cacheid+y} 8556 then : 8557 printf %s "(cached) " >&6 8558 else $as_nop 8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8560 /* end confdefs.h. */ 8561 int i; 8562 int 8563 main (void) 8564 { 8565 8566 ; 8567 return 0; 8568 } 8569 _ACEOF 8570 if ac_fn_c_try_link "$LINENO" 8571 then : 8572 eval $cacheid=yes 8573 else $as_nop 8574 eval $cacheid=no 8575 fi 8576 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8577 conftest$ac_exeext conftest.$ac_ext 8578 fi 8579 8580 8581 CFLAGS="$xorg_testset_save_CFLAGS" 8582 8583 eval supported=\$$cacheid 8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8585 printf "%s\n" "$supported" >&6; } 8586 if test "$supported" = "yes" ; then 8587 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8588 found="yes" 8589 fi 8590 fi 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 xorg_testset_save_CFLAGS="$CFLAGS" 8607 8608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8611 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8612 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8613 then : 8614 printf %s "(cached) " >&6 8615 else $as_nop 8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8617 /* end confdefs.h. */ 8618 int i; 8619 _ACEOF 8620 if ac_fn_c_try_compile "$LINENO" 8621 then : 8622 xorg_cv_cc_flag_unknown_warning_option=yes 8623 else $as_nop 8624 xorg_cv_cc_flag_unknown_warning_option=no 8625 fi 8626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8627 fi 8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8629 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8631 CFLAGS="$xorg_testset_save_CFLAGS" 8632 fi 8633 8634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8637 fi 8638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8640 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8641 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8642 then : 8643 printf %s "(cached) " >&6 8644 else $as_nop 8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8646 /* end confdefs.h. */ 8647 int i; 8648 _ACEOF 8649 if ac_fn_c_try_compile "$LINENO" 8650 then : 8651 xorg_cv_cc_flag_unused_command_line_argument=yes 8652 else $as_nop 8653 xorg_cv_cc_flag_unused_command_line_argument=no 8654 fi 8655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8656 fi 8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8658 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8660 CFLAGS="$xorg_testset_save_CFLAGS" 8661 fi 8662 8663 found="no" 8664 8665 if test $found = "no" ; then 8666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8668 fi 8669 8670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8672 fi 8673 8674 CFLAGS="$CFLAGS -Werror=address" 8675 8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8677 printf %s "checking if $CC supports -Werror=address... " >&6; } 8678 cacheid=xorg_cv_cc_flag__Werror_address 8679 if eval test \${$cacheid+y} 8680 then : 8681 printf %s "(cached) " >&6 8682 else $as_nop 8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8684 /* end confdefs.h. */ 8685 int i; 8686 int 8687 main (void) 8688 { 8689 8690 ; 8691 return 0; 8692 } 8693 _ACEOF 8694 if ac_fn_c_try_link "$LINENO" 8695 then : 8696 eval $cacheid=yes 8697 else $as_nop 8698 eval $cacheid=no 8699 fi 8700 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8701 conftest$ac_exeext conftest.$ac_ext 8702 fi 8703 8704 8705 CFLAGS="$xorg_testset_save_CFLAGS" 8706 8707 eval supported=\$$cacheid 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8709 printf "%s\n" "$supported" >&6; } 8710 if test "$supported" = "yes" ; then 8711 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8712 found="yes" 8713 fi 8714 fi 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 xorg_testset_save_CFLAGS="$CFLAGS" 8731 8732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8735 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8736 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8737 then : 8738 printf %s "(cached) " >&6 8739 else $as_nop 8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741 /* end confdefs.h. */ 8742 int i; 8743 _ACEOF 8744 if ac_fn_c_try_compile "$LINENO" 8745 then : 8746 xorg_cv_cc_flag_unknown_warning_option=yes 8747 else $as_nop 8748 xorg_cv_cc_flag_unknown_warning_option=no 8749 fi 8750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8751 fi 8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8753 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8755 CFLAGS="$xorg_testset_save_CFLAGS" 8756 fi 8757 8758 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8761 fi 8762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8764 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8765 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8766 then : 8767 printf %s "(cached) " >&6 8768 else $as_nop 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770 /* end confdefs.h. */ 8771 int i; 8772 _ACEOF 8773 if ac_fn_c_try_compile "$LINENO" 8774 then : 8775 xorg_cv_cc_flag_unused_command_line_argument=yes 8776 else $as_nop 8777 xorg_cv_cc_flag_unused_command_line_argument=no 8778 fi 8779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8780 fi 8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8782 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8784 CFLAGS="$xorg_testset_save_CFLAGS" 8785 fi 8786 8787 found="no" 8788 8789 if test $found = "no" ; then 8790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8792 fi 8793 8794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8796 fi 8797 8798 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8799 8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8801 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8802 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8803 if eval test \${$cacheid+y} 8804 then : 8805 printf %s "(cached) " >&6 8806 else $as_nop 8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8808 /* end confdefs.h. */ 8809 int i; 8810 int 8811 main (void) 8812 { 8813 8814 ; 8815 return 0; 8816 } 8817 _ACEOF 8818 if ac_fn_c_try_link "$LINENO" 8819 then : 8820 eval $cacheid=yes 8821 else $as_nop 8822 eval $cacheid=no 8823 fi 8824 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8825 conftest$ac_exeext conftest.$ac_ext 8826 fi 8827 8828 8829 CFLAGS="$xorg_testset_save_CFLAGS" 8830 8831 eval supported=\$$cacheid 8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8833 printf "%s\n" "$supported" >&6; } 8834 if test "$supported" = "yes" ; then 8835 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8836 found="yes" 8837 fi 8838 fi 8839 8840 if test $found = "no" ; then 8841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8843 fi 8844 8845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8847 fi 8848 8849 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8850 8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8852 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8853 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8854 if eval test \${$cacheid+y} 8855 then : 8856 printf %s "(cached) " >&6 8857 else $as_nop 8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8859 /* end confdefs.h. */ 8860 int i; 8861 int 8862 main (void) 8863 { 8864 8865 ; 8866 return 0; 8867 } 8868 _ACEOF 8869 if ac_fn_c_try_link "$LINENO" 8870 then : 8871 eval $cacheid=yes 8872 else $as_nop 8873 eval $cacheid=no 8874 fi 8875 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8876 conftest$ac_exeext conftest.$ac_ext 8877 fi 8878 8879 8880 CFLAGS="$xorg_testset_save_CFLAGS" 8881 8882 eval supported=\$$cacheid 8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8884 printf "%s\n" "$supported" >&6; } 8885 if test "$supported" = "yes" ; then 8886 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8887 found="yes" 8888 fi 8889 fi 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 xorg_testset_save_CFLAGS="$CFLAGS" 8906 8907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8910 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8911 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8912 then : 8913 printf %s "(cached) " >&6 8914 else $as_nop 8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8916 /* end confdefs.h. */ 8917 int i; 8918 _ACEOF 8919 if ac_fn_c_try_compile "$LINENO" 8920 then : 8921 xorg_cv_cc_flag_unknown_warning_option=yes 8922 else $as_nop 8923 xorg_cv_cc_flag_unknown_warning_option=no 8924 fi 8925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8926 fi 8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8928 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8930 CFLAGS="$xorg_testset_save_CFLAGS" 8931 fi 8932 8933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8936 fi 8937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8939 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8940 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8941 then : 8942 printf %s "(cached) " >&6 8943 else $as_nop 8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8945 /* end confdefs.h. */ 8946 int i; 8947 _ACEOF 8948 if ac_fn_c_try_compile "$LINENO" 8949 then : 8950 xorg_cv_cc_flag_unused_command_line_argument=yes 8951 else $as_nop 8952 xorg_cv_cc_flag_unused_command_line_argument=no 8953 fi 8954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8955 fi 8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8957 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8959 CFLAGS="$xorg_testset_save_CFLAGS" 8960 fi 8961 8962 found="no" 8963 8964 if test $found = "no" ; then 8965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8967 fi 8968 8969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8971 fi 8972 8973 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8974 8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8976 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8977 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8978 if eval test \${$cacheid+y} 8979 then : 8980 printf %s "(cached) " >&6 8981 else $as_nop 8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8983 /* end confdefs.h. */ 8984 int i; 8985 int 8986 main (void) 8987 { 8988 8989 ; 8990 return 0; 8991 } 8992 _ACEOF 8993 if ac_fn_c_try_link "$LINENO" 8994 then : 8995 eval $cacheid=yes 8996 else $as_nop 8997 eval $cacheid=no 8998 fi 8999 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9000 conftest$ac_exeext conftest.$ac_ext 9001 fi 9002 9003 9004 CFLAGS="$xorg_testset_save_CFLAGS" 9005 9006 eval supported=\$$cacheid 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9008 printf "%s\n" "$supported" >&6; } 9009 if test "$supported" = "yes" ; then 9010 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9011 found="yes" 9012 fi 9013 fi 9014 9015 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9016 else 9017 { 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 9018 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;} 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 xorg_testset_save_CFLAGS="$CFLAGS" 9033 9034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9037 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9038 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9039 then : 9040 printf %s "(cached) " >&6 9041 else $as_nop 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043 /* end confdefs.h. */ 9044 int i; 9045 _ACEOF 9046 if ac_fn_c_try_compile "$LINENO" 9047 then : 9048 xorg_cv_cc_flag_unknown_warning_option=yes 9049 else $as_nop 9050 xorg_cv_cc_flag_unknown_warning_option=no 9051 fi 9052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9053 fi 9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9055 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9057 CFLAGS="$xorg_testset_save_CFLAGS" 9058 fi 9059 9060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9063 fi 9064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9066 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9067 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9068 then : 9069 printf %s "(cached) " >&6 9070 else $as_nop 9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9072 /* end confdefs.h. */ 9073 int i; 9074 _ACEOF 9075 if ac_fn_c_try_compile "$LINENO" 9076 then : 9077 xorg_cv_cc_flag_unused_command_line_argument=yes 9078 else $as_nop 9079 xorg_cv_cc_flag_unused_command_line_argument=no 9080 fi 9081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9082 fi 9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9084 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9086 CFLAGS="$xorg_testset_save_CFLAGS" 9087 fi 9088 9089 found="no" 9090 9091 if test $found = "no" ; then 9092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9094 fi 9095 9096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9098 fi 9099 9100 CFLAGS="$CFLAGS -Wimplicit" 9101 9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9103 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9104 cacheid=xorg_cv_cc_flag__Wimplicit 9105 if eval test \${$cacheid+y} 9106 then : 9107 printf %s "(cached) " >&6 9108 else $as_nop 9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9110 /* end confdefs.h. */ 9111 int i; 9112 int 9113 main (void) 9114 { 9115 9116 ; 9117 return 0; 9118 } 9119 _ACEOF 9120 if ac_fn_c_try_link "$LINENO" 9121 then : 9122 eval $cacheid=yes 9123 else $as_nop 9124 eval $cacheid=no 9125 fi 9126 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9127 conftest$ac_exeext conftest.$ac_ext 9128 fi 9129 9130 9131 CFLAGS="$xorg_testset_save_CFLAGS" 9132 9133 eval supported=\$$cacheid 9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9135 printf "%s\n" "$supported" >&6; } 9136 if test "$supported" = "yes" ; then 9137 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9138 found="yes" 9139 fi 9140 fi 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 xorg_testset_save_CFLAGS="$CFLAGS" 9157 9158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9161 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9162 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9163 then : 9164 printf %s "(cached) " >&6 9165 else $as_nop 9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9167 /* end confdefs.h. */ 9168 int i; 9169 _ACEOF 9170 if ac_fn_c_try_compile "$LINENO" 9171 then : 9172 xorg_cv_cc_flag_unknown_warning_option=yes 9173 else $as_nop 9174 xorg_cv_cc_flag_unknown_warning_option=no 9175 fi 9176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9177 fi 9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9179 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9181 CFLAGS="$xorg_testset_save_CFLAGS" 9182 fi 9183 9184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9187 fi 9188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9190 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9191 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9192 then : 9193 printf %s "(cached) " >&6 9194 else $as_nop 9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9196 /* end confdefs.h. */ 9197 int i; 9198 _ACEOF 9199 if ac_fn_c_try_compile "$LINENO" 9200 then : 9201 xorg_cv_cc_flag_unused_command_line_argument=yes 9202 else $as_nop 9203 xorg_cv_cc_flag_unused_command_line_argument=no 9204 fi 9205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9206 fi 9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9208 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9210 CFLAGS="$xorg_testset_save_CFLAGS" 9211 fi 9212 9213 found="no" 9214 9215 if test $found = "no" ; then 9216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9218 fi 9219 9220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9222 fi 9223 9224 CFLAGS="$CFLAGS -Wnonnull" 9225 9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9227 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9228 cacheid=xorg_cv_cc_flag__Wnonnull 9229 if eval test \${$cacheid+y} 9230 then : 9231 printf %s "(cached) " >&6 9232 else $as_nop 9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9234 /* end confdefs.h. */ 9235 int i; 9236 int 9237 main (void) 9238 { 9239 9240 ; 9241 return 0; 9242 } 9243 _ACEOF 9244 if ac_fn_c_try_link "$LINENO" 9245 then : 9246 eval $cacheid=yes 9247 else $as_nop 9248 eval $cacheid=no 9249 fi 9250 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9251 conftest$ac_exeext conftest.$ac_ext 9252 fi 9253 9254 9255 CFLAGS="$xorg_testset_save_CFLAGS" 9256 9257 eval supported=\$$cacheid 9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9259 printf "%s\n" "$supported" >&6; } 9260 if test "$supported" = "yes" ; then 9261 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9262 found="yes" 9263 fi 9264 fi 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 xorg_testset_save_CFLAGS="$CFLAGS" 9281 9282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9285 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9286 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9287 then : 9288 printf %s "(cached) " >&6 9289 else $as_nop 9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9291 /* end confdefs.h. */ 9292 int i; 9293 _ACEOF 9294 if ac_fn_c_try_compile "$LINENO" 9295 then : 9296 xorg_cv_cc_flag_unknown_warning_option=yes 9297 else $as_nop 9298 xorg_cv_cc_flag_unknown_warning_option=no 9299 fi 9300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9301 fi 9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9303 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9305 CFLAGS="$xorg_testset_save_CFLAGS" 9306 fi 9307 9308 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9311 fi 9312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9314 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9315 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9316 then : 9317 printf %s "(cached) " >&6 9318 else $as_nop 9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9320 /* end confdefs.h. */ 9321 int i; 9322 _ACEOF 9323 if ac_fn_c_try_compile "$LINENO" 9324 then : 9325 xorg_cv_cc_flag_unused_command_line_argument=yes 9326 else $as_nop 9327 xorg_cv_cc_flag_unused_command_line_argument=no 9328 fi 9329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9330 fi 9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9332 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9334 CFLAGS="$xorg_testset_save_CFLAGS" 9335 fi 9336 9337 found="no" 9338 9339 if test $found = "no" ; then 9340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9342 fi 9343 9344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9346 fi 9347 9348 CFLAGS="$CFLAGS -Winit-self" 9349 9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9351 printf %s "checking if $CC supports -Winit-self... " >&6; } 9352 cacheid=xorg_cv_cc_flag__Winit_self 9353 if eval test \${$cacheid+y} 9354 then : 9355 printf %s "(cached) " >&6 9356 else $as_nop 9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9358 /* end confdefs.h. */ 9359 int i; 9360 int 9361 main (void) 9362 { 9363 9364 ; 9365 return 0; 9366 } 9367 _ACEOF 9368 if ac_fn_c_try_link "$LINENO" 9369 then : 9370 eval $cacheid=yes 9371 else $as_nop 9372 eval $cacheid=no 9373 fi 9374 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9375 conftest$ac_exeext conftest.$ac_ext 9376 fi 9377 9378 9379 CFLAGS="$xorg_testset_save_CFLAGS" 9380 9381 eval supported=\$$cacheid 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9383 printf "%s\n" "$supported" >&6; } 9384 if test "$supported" = "yes" ; then 9385 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9386 found="yes" 9387 fi 9388 fi 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 xorg_testset_save_CFLAGS="$CFLAGS" 9405 9406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9409 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9410 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9411 then : 9412 printf %s "(cached) " >&6 9413 else $as_nop 9414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9415 /* end confdefs.h. */ 9416 int i; 9417 _ACEOF 9418 if ac_fn_c_try_compile "$LINENO" 9419 then : 9420 xorg_cv_cc_flag_unknown_warning_option=yes 9421 else $as_nop 9422 xorg_cv_cc_flag_unknown_warning_option=no 9423 fi 9424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9425 fi 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9427 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9429 CFLAGS="$xorg_testset_save_CFLAGS" 9430 fi 9431 9432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9435 fi 9436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9438 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9439 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9440 then : 9441 printf %s "(cached) " >&6 9442 else $as_nop 9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9444 /* end confdefs.h. */ 9445 int i; 9446 _ACEOF 9447 if ac_fn_c_try_compile "$LINENO" 9448 then : 9449 xorg_cv_cc_flag_unused_command_line_argument=yes 9450 else $as_nop 9451 xorg_cv_cc_flag_unused_command_line_argument=no 9452 fi 9453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9454 fi 9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9456 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9458 CFLAGS="$xorg_testset_save_CFLAGS" 9459 fi 9460 9461 found="no" 9462 9463 if test $found = "no" ; then 9464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9466 fi 9467 9468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9470 fi 9471 9472 CFLAGS="$CFLAGS -Wmain" 9473 9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9475 printf %s "checking if $CC supports -Wmain... " >&6; } 9476 cacheid=xorg_cv_cc_flag__Wmain 9477 if eval test \${$cacheid+y} 9478 then : 9479 printf %s "(cached) " >&6 9480 else $as_nop 9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9482 /* end confdefs.h. */ 9483 int i; 9484 int 9485 main (void) 9486 { 9487 9488 ; 9489 return 0; 9490 } 9491 _ACEOF 9492 if ac_fn_c_try_link "$LINENO" 9493 then : 9494 eval $cacheid=yes 9495 else $as_nop 9496 eval $cacheid=no 9497 fi 9498 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9499 conftest$ac_exeext conftest.$ac_ext 9500 fi 9501 9502 9503 CFLAGS="$xorg_testset_save_CFLAGS" 9504 9505 eval supported=\$$cacheid 9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9507 printf "%s\n" "$supported" >&6; } 9508 if test "$supported" = "yes" ; then 9509 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9510 found="yes" 9511 fi 9512 fi 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 xorg_testset_save_CFLAGS="$CFLAGS" 9529 9530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9533 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9534 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9535 then : 9536 printf %s "(cached) " >&6 9537 else $as_nop 9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9539 /* end confdefs.h. */ 9540 int i; 9541 _ACEOF 9542 if ac_fn_c_try_compile "$LINENO" 9543 then : 9544 xorg_cv_cc_flag_unknown_warning_option=yes 9545 else $as_nop 9546 xorg_cv_cc_flag_unknown_warning_option=no 9547 fi 9548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9549 fi 9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9551 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554 fi 9555 9556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9559 fi 9560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9562 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9563 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9564 then : 9565 printf %s "(cached) " >&6 9566 else $as_nop 9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9568 /* end confdefs.h. */ 9569 int i; 9570 _ACEOF 9571 if ac_fn_c_try_compile "$LINENO" 9572 then : 9573 xorg_cv_cc_flag_unused_command_line_argument=yes 9574 else $as_nop 9575 xorg_cv_cc_flag_unused_command_line_argument=no 9576 fi 9577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9578 fi 9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9580 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9582 CFLAGS="$xorg_testset_save_CFLAGS" 9583 fi 9584 9585 found="no" 9586 9587 if test $found = "no" ; then 9588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9590 fi 9591 9592 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9594 fi 9595 9596 CFLAGS="$CFLAGS -Wmissing-braces" 9597 9598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9599 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9600 cacheid=xorg_cv_cc_flag__Wmissing_braces 9601 if eval test \${$cacheid+y} 9602 then : 9603 printf %s "(cached) " >&6 9604 else $as_nop 9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9606 /* end confdefs.h. */ 9607 int i; 9608 int 9609 main (void) 9610 { 9611 9612 ; 9613 return 0; 9614 } 9615 _ACEOF 9616 if ac_fn_c_try_link "$LINENO" 9617 then : 9618 eval $cacheid=yes 9619 else $as_nop 9620 eval $cacheid=no 9621 fi 9622 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9623 conftest$ac_exeext conftest.$ac_ext 9624 fi 9625 9626 9627 CFLAGS="$xorg_testset_save_CFLAGS" 9628 9629 eval supported=\$$cacheid 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9631 printf "%s\n" "$supported" >&6; } 9632 if test "$supported" = "yes" ; then 9633 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9634 found="yes" 9635 fi 9636 fi 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 xorg_testset_save_CFLAGS="$CFLAGS" 9653 9654 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9657 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9658 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9659 then : 9660 printf %s "(cached) " >&6 9661 else $as_nop 9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663 /* end confdefs.h. */ 9664 int i; 9665 _ACEOF 9666 if ac_fn_c_try_compile "$LINENO" 9667 then : 9668 xorg_cv_cc_flag_unknown_warning_option=yes 9669 else $as_nop 9670 xorg_cv_cc_flag_unknown_warning_option=no 9671 fi 9672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9673 fi 9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9675 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9677 CFLAGS="$xorg_testset_save_CFLAGS" 9678 fi 9679 9680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9683 fi 9684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9686 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9687 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9688 then : 9689 printf %s "(cached) " >&6 9690 else $as_nop 9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9692 /* end confdefs.h. */ 9693 int i; 9694 _ACEOF 9695 if ac_fn_c_try_compile "$LINENO" 9696 then : 9697 xorg_cv_cc_flag_unused_command_line_argument=yes 9698 else $as_nop 9699 xorg_cv_cc_flag_unused_command_line_argument=no 9700 fi 9701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9702 fi 9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9704 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9705 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9706 CFLAGS="$xorg_testset_save_CFLAGS" 9707 fi 9708 9709 found="no" 9710 9711 if test $found = "no" ; then 9712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9714 fi 9715 9716 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9718 fi 9719 9720 CFLAGS="$CFLAGS -Wsequence-point" 9721 9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9723 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9724 cacheid=xorg_cv_cc_flag__Wsequence_point 9725 if eval test \${$cacheid+y} 9726 then : 9727 printf %s "(cached) " >&6 9728 else $as_nop 9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9730 /* end confdefs.h. */ 9731 int i; 9732 int 9733 main (void) 9734 { 9735 9736 ; 9737 return 0; 9738 } 9739 _ACEOF 9740 if ac_fn_c_try_link "$LINENO" 9741 then : 9742 eval $cacheid=yes 9743 else $as_nop 9744 eval $cacheid=no 9745 fi 9746 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9747 conftest$ac_exeext conftest.$ac_ext 9748 fi 9749 9750 9751 CFLAGS="$xorg_testset_save_CFLAGS" 9752 9753 eval supported=\$$cacheid 9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9755 printf "%s\n" "$supported" >&6; } 9756 if test "$supported" = "yes" ; then 9757 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9758 found="yes" 9759 fi 9760 fi 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 xorg_testset_save_CFLAGS="$CFLAGS" 9777 9778 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9781 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9782 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9783 then : 9784 printf %s "(cached) " >&6 9785 else $as_nop 9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9787 /* end confdefs.h. */ 9788 int i; 9789 _ACEOF 9790 if ac_fn_c_try_compile "$LINENO" 9791 then : 9792 xorg_cv_cc_flag_unknown_warning_option=yes 9793 else $as_nop 9794 xorg_cv_cc_flag_unknown_warning_option=no 9795 fi 9796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9797 fi 9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9799 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9801 CFLAGS="$xorg_testset_save_CFLAGS" 9802 fi 9803 9804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9807 fi 9808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9810 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9811 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9812 then : 9813 printf %s "(cached) " >&6 9814 else $as_nop 9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9816 /* end confdefs.h. */ 9817 int i; 9818 _ACEOF 9819 if ac_fn_c_try_compile "$LINENO" 9820 then : 9821 xorg_cv_cc_flag_unused_command_line_argument=yes 9822 else $as_nop 9823 xorg_cv_cc_flag_unused_command_line_argument=no 9824 fi 9825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9826 fi 9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9828 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9830 CFLAGS="$xorg_testset_save_CFLAGS" 9831 fi 9832 9833 found="no" 9834 9835 if test $found = "no" ; then 9836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9838 fi 9839 9840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9842 fi 9843 9844 CFLAGS="$CFLAGS -Wreturn-type" 9845 9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9847 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9848 cacheid=xorg_cv_cc_flag__Wreturn_type 9849 if eval test \${$cacheid+y} 9850 then : 9851 printf %s "(cached) " >&6 9852 else $as_nop 9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9854 /* end confdefs.h. */ 9855 int i; 9856 int 9857 main (void) 9858 { 9859 9860 ; 9861 return 0; 9862 } 9863 _ACEOF 9864 if ac_fn_c_try_link "$LINENO" 9865 then : 9866 eval $cacheid=yes 9867 else $as_nop 9868 eval $cacheid=no 9869 fi 9870 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9871 conftest$ac_exeext conftest.$ac_ext 9872 fi 9873 9874 9875 CFLAGS="$xorg_testset_save_CFLAGS" 9876 9877 eval supported=\$$cacheid 9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9879 printf "%s\n" "$supported" >&6; } 9880 if test "$supported" = "yes" ; then 9881 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9882 found="yes" 9883 fi 9884 fi 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 xorg_testset_save_CFLAGS="$CFLAGS" 9901 9902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9905 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9906 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9907 then : 9908 printf %s "(cached) " >&6 9909 else $as_nop 9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9911 /* end confdefs.h. */ 9912 int i; 9913 _ACEOF 9914 if ac_fn_c_try_compile "$LINENO" 9915 then : 9916 xorg_cv_cc_flag_unknown_warning_option=yes 9917 else $as_nop 9918 xorg_cv_cc_flag_unknown_warning_option=no 9919 fi 9920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9921 fi 9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9923 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9925 CFLAGS="$xorg_testset_save_CFLAGS" 9926 fi 9927 9928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9931 fi 9932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9934 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9935 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9936 then : 9937 printf %s "(cached) " >&6 9938 else $as_nop 9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9940 /* end confdefs.h. */ 9941 int i; 9942 _ACEOF 9943 if ac_fn_c_try_compile "$LINENO" 9944 then : 9945 xorg_cv_cc_flag_unused_command_line_argument=yes 9946 else $as_nop 9947 xorg_cv_cc_flag_unused_command_line_argument=no 9948 fi 9949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9950 fi 9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9952 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9954 CFLAGS="$xorg_testset_save_CFLAGS" 9955 fi 9956 9957 found="no" 9958 9959 if test $found = "no" ; then 9960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9962 fi 9963 9964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9966 fi 9967 9968 CFLAGS="$CFLAGS -Wtrigraphs" 9969 9970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9971 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9972 cacheid=xorg_cv_cc_flag__Wtrigraphs 9973 if eval test \${$cacheid+y} 9974 then : 9975 printf %s "(cached) " >&6 9976 else $as_nop 9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9978 /* end confdefs.h. */ 9979 int i; 9980 int 9981 main (void) 9982 { 9983 9984 ; 9985 return 0; 9986 } 9987 _ACEOF 9988 if ac_fn_c_try_link "$LINENO" 9989 then : 9990 eval $cacheid=yes 9991 else $as_nop 9992 eval $cacheid=no 9993 fi 9994 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9995 conftest$ac_exeext conftest.$ac_ext 9996 fi 9997 9998 9999 CFLAGS="$xorg_testset_save_CFLAGS" 10000 10001 eval supported=\$$cacheid 10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10003 printf "%s\n" "$supported" >&6; } 10004 if test "$supported" = "yes" ; then 10005 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10006 found="yes" 10007 fi 10008 fi 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 xorg_testset_save_CFLAGS="$CFLAGS" 10025 10026 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10029 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10030 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10031 then : 10032 printf %s "(cached) " >&6 10033 else $as_nop 10034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10035 /* end confdefs.h. */ 10036 int i; 10037 _ACEOF 10038 if ac_fn_c_try_compile "$LINENO" 10039 then : 10040 xorg_cv_cc_flag_unknown_warning_option=yes 10041 else $as_nop 10042 xorg_cv_cc_flag_unknown_warning_option=no 10043 fi 10044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10045 fi 10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10047 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10049 CFLAGS="$xorg_testset_save_CFLAGS" 10050 fi 10051 10052 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10055 fi 10056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10058 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10059 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10060 then : 10061 printf %s "(cached) " >&6 10062 else $as_nop 10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10064 /* end confdefs.h. */ 10065 int i; 10066 _ACEOF 10067 if ac_fn_c_try_compile "$LINENO" 10068 then : 10069 xorg_cv_cc_flag_unused_command_line_argument=yes 10070 else $as_nop 10071 xorg_cv_cc_flag_unused_command_line_argument=no 10072 fi 10073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10074 fi 10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10076 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10078 CFLAGS="$xorg_testset_save_CFLAGS" 10079 fi 10080 10081 found="no" 10082 10083 if test $found = "no" ; then 10084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10086 fi 10087 10088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10090 fi 10091 10092 CFLAGS="$CFLAGS -Warray-bounds" 10093 10094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10095 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10096 cacheid=xorg_cv_cc_flag__Warray_bounds 10097 if eval test \${$cacheid+y} 10098 then : 10099 printf %s "(cached) " >&6 10100 else $as_nop 10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10102 /* end confdefs.h. */ 10103 int i; 10104 int 10105 main (void) 10106 { 10107 10108 ; 10109 return 0; 10110 } 10111 _ACEOF 10112 if ac_fn_c_try_link "$LINENO" 10113 then : 10114 eval $cacheid=yes 10115 else $as_nop 10116 eval $cacheid=no 10117 fi 10118 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10119 conftest$ac_exeext conftest.$ac_ext 10120 fi 10121 10122 10123 CFLAGS="$xorg_testset_save_CFLAGS" 10124 10125 eval supported=\$$cacheid 10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10127 printf "%s\n" "$supported" >&6; } 10128 if test "$supported" = "yes" ; then 10129 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10130 found="yes" 10131 fi 10132 fi 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 xorg_testset_save_CFLAGS="$CFLAGS" 10149 10150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10153 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10154 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10155 then : 10156 printf %s "(cached) " >&6 10157 else $as_nop 10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159 /* end confdefs.h. */ 10160 int i; 10161 _ACEOF 10162 if ac_fn_c_try_compile "$LINENO" 10163 then : 10164 xorg_cv_cc_flag_unknown_warning_option=yes 10165 else $as_nop 10166 xorg_cv_cc_flag_unknown_warning_option=no 10167 fi 10168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10169 fi 10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10171 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10173 CFLAGS="$xorg_testset_save_CFLAGS" 10174 fi 10175 10176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10179 fi 10180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10182 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10183 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10184 then : 10185 printf %s "(cached) " >&6 10186 else $as_nop 10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10188 /* end confdefs.h. */ 10189 int i; 10190 _ACEOF 10191 if ac_fn_c_try_compile "$LINENO" 10192 then : 10193 xorg_cv_cc_flag_unused_command_line_argument=yes 10194 else $as_nop 10195 xorg_cv_cc_flag_unused_command_line_argument=no 10196 fi 10197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10198 fi 10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10200 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10202 CFLAGS="$xorg_testset_save_CFLAGS" 10203 fi 10204 10205 found="no" 10206 10207 if test $found = "no" ; then 10208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10210 fi 10211 10212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10214 fi 10215 10216 CFLAGS="$CFLAGS -Wwrite-strings" 10217 10218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10219 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10220 cacheid=xorg_cv_cc_flag__Wwrite_strings 10221 if eval test \${$cacheid+y} 10222 then : 10223 printf %s "(cached) " >&6 10224 else $as_nop 10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226 /* end confdefs.h. */ 10227 int i; 10228 int 10229 main (void) 10230 { 10231 10232 ; 10233 return 0; 10234 } 10235 _ACEOF 10236 if ac_fn_c_try_link "$LINENO" 10237 then : 10238 eval $cacheid=yes 10239 else $as_nop 10240 eval $cacheid=no 10241 fi 10242 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10243 conftest$ac_exeext conftest.$ac_ext 10244 fi 10245 10246 10247 CFLAGS="$xorg_testset_save_CFLAGS" 10248 10249 eval supported=\$$cacheid 10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10251 printf "%s\n" "$supported" >&6; } 10252 if test "$supported" = "yes" ; then 10253 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10254 found="yes" 10255 fi 10256 fi 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 xorg_testset_save_CFLAGS="$CFLAGS" 10273 10274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10277 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10278 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10279 then : 10280 printf %s "(cached) " >&6 10281 else $as_nop 10282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10283 /* end confdefs.h. */ 10284 int i; 10285 _ACEOF 10286 if ac_fn_c_try_compile "$LINENO" 10287 then : 10288 xorg_cv_cc_flag_unknown_warning_option=yes 10289 else $as_nop 10290 xorg_cv_cc_flag_unknown_warning_option=no 10291 fi 10292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10293 fi 10294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10295 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10297 CFLAGS="$xorg_testset_save_CFLAGS" 10298 fi 10299 10300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10303 fi 10304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10306 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10307 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10308 then : 10309 printf %s "(cached) " >&6 10310 else $as_nop 10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10312 /* end confdefs.h. */ 10313 int i; 10314 _ACEOF 10315 if ac_fn_c_try_compile "$LINENO" 10316 then : 10317 xorg_cv_cc_flag_unused_command_line_argument=yes 10318 else $as_nop 10319 xorg_cv_cc_flag_unused_command_line_argument=no 10320 fi 10321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10322 fi 10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10324 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10326 CFLAGS="$xorg_testset_save_CFLAGS" 10327 fi 10328 10329 found="no" 10330 10331 if test $found = "no" ; then 10332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10334 fi 10335 10336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10338 fi 10339 10340 CFLAGS="$CFLAGS -Waddress" 10341 10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10343 printf %s "checking if $CC supports -Waddress... " >&6; } 10344 cacheid=xorg_cv_cc_flag__Waddress 10345 if eval test \${$cacheid+y} 10346 then : 10347 printf %s "(cached) " >&6 10348 else $as_nop 10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10350 /* end confdefs.h. */ 10351 int i; 10352 int 10353 main (void) 10354 { 10355 10356 ; 10357 return 0; 10358 } 10359 _ACEOF 10360 if ac_fn_c_try_link "$LINENO" 10361 then : 10362 eval $cacheid=yes 10363 else $as_nop 10364 eval $cacheid=no 10365 fi 10366 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10367 conftest$ac_exeext conftest.$ac_ext 10368 fi 10369 10370 10371 CFLAGS="$xorg_testset_save_CFLAGS" 10372 10373 eval supported=\$$cacheid 10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10375 printf "%s\n" "$supported" >&6; } 10376 if test "$supported" = "yes" ; then 10377 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10378 found="yes" 10379 fi 10380 fi 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 xorg_testset_save_CFLAGS="$CFLAGS" 10397 10398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10401 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10402 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10403 then : 10404 printf %s "(cached) " >&6 10405 else $as_nop 10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10407 /* end confdefs.h. */ 10408 int i; 10409 _ACEOF 10410 if ac_fn_c_try_compile "$LINENO" 10411 then : 10412 xorg_cv_cc_flag_unknown_warning_option=yes 10413 else $as_nop 10414 xorg_cv_cc_flag_unknown_warning_option=no 10415 fi 10416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10417 fi 10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10419 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10421 CFLAGS="$xorg_testset_save_CFLAGS" 10422 fi 10423 10424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10427 fi 10428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10430 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10431 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10432 then : 10433 printf %s "(cached) " >&6 10434 else $as_nop 10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10436 /* end confdefs.h. */ 10437 int i; 10438 _ACEOF 10439 if ac_fn_c_try_compile "$LINENO" 10440 then : 10441 xorg_cv_cc_flag_unused_command_line_argument=yes 10442 else $as_nop 10443 xorg_cv_cc_flag_unused_command_line_argument=no 10444 fi 10445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10446 fi 10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10448 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10450 CFLAGS="$xorg_testset_save_CFLAGS" 10451 fi 10452 10453 found="no" 10454 10455 if test $found = "no" ; then 10456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10458 fi 10459 10460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10462 fi 10463 10464 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10465 10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10467 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10468 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10469 if eval test \${$cacheid+y} 10470 then : 10471 printf %s "(cached) " >&6 10472 else $as_nop 10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10474 /* end confdefs.h. */ 10475 int i; 10476 int 10477 main (void) 10478 { 10479 10480 ; 10481 return 0; 10482 } 10483 _ACEOF 10484 if ac_fn_c_try_link "$LINENO" 10485 then : 10486 eval $cacheid=yes 10487 else $as_nop 10488 eval $cacheid=no 10489 fi 10490 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10491 conftest$ac_exeext conftest.$ac_ext 10492 fi 10493 10494 10495 CFLAGS="$xorg_testset_save_CFLAGS" 10496 10497 eval supported=\$$cacheid 10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10499 printf "%s\n" "$supported" >&6; } 10500 if test "$supported" = "yes" ; then 10501 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10502 found="yes" 10503 fi 10504 fi 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 xorg_testset_save_CFLAGS="$CFLAGS" 10521 10522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10525 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10526 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10527 then : 10528 printf %s "(cached) " >&6 10529 else $as_nop 10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10531 /* end confdefs.h. */ 10532 int i; 10533 _ACEOF 10534 if ac_fn_c_try_compile "$LINENO" 10535 then : 10536 xorg_cv_cc_flag_unknown_warning_option=yes 10537 else $as_nop 10538 xorg_cv_cc_flag_unknown_warning_option=no 10539 fi 10540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10541 fi 10542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10543 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10545 CFLAGS="$xorg_testset_save_CFLAGS" 10546 fi 10547 10548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10551 fi 10552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10554 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10555 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10556 then : 10557 printf %s "(cached) " >&6 10558 else $as_nop 10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10560 /* end confdefs.h. */ 10561 int i; 10562 _ACEOF 10563 if ac_fn_c_try_compile "$LINENO" 10564 then : 10565 xorg_cv_cc_flag_unused_command_line_argument=yes 10566 else $as_nop 10567 xorg_cv_cc_flag_unused_command_line_argument=no 10568 fi 10569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10570 fi 10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10572 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10574 CFLAGS="$xorg_testset_save_CFLAGS" 10575 fi 10576 10577 found="no" 10578 10579 if test $found = "no" ; then 10580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10582 fi 10583 10584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10586 fi 10587 10588 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10589 10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10591 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10592 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10593 if eval test \${$cacheid+y} 10594 then : 10595 printf %s "(cached) " >&6 10596 else $as_nop 10597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10598 /* end confdefs.h. */ 10599 int i; 10600 int 10601 main (void) 10602 { 10603 10604 ; 10605 return 0; 10606 } 10607 _ACEOF 10608 if ac_fn_c_try_link "$LINENO" 10609 then : 10610 eval $cacheid=yes 10611 else $as_nop 10612 eval $cacheid=no 10613 fi 10614 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10615 conftest$ac_exeext conftest.$ac_ext 10616 fi 10617 10618 10619 CFLAGS="$xorg_testset_save_CFLAGS" 10620 10621 eval supported=\$$cacheid 10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10623 printf "%s\n" "$supported" >&6; } 10624 if test "$supported" = "yes" ; then 10625 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10626 found="yes" 10627 fi 10628 fi 10629 10630 10631 fi 10632 10633 10634 10635 10636 10637 10638 10639 CWARNFLAGS="$BASE_CFLAGS" 10640 if test "x$GCC" = xyes ; then 10641 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10642 fi 10643 10644 10645 10646 10647 10648 10649 10650 10651 # Check whether --enable-strict-compilation was given. 10652 if test ${enable_strict_compilation+y} 10653 then : 10654 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10655 else $as_nop 10656 STRICT_COMPILE=no 10657 fi 10658 10659 10660 10661 10662 10663 10664 STRICT_CFLAGS="" 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 xorg_testset_save_CFLAGS="$CFLAGS" 10679 10680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10683 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10684 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10685 then : 10686 printf %s "(cached) " >&6 10687 else $as_nop 10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10689 /* end confdefs.h. */ 10690 int i; 10691 _ACEOF 10692 if ac_fn_c_try_compile "$LINENO" 10693 then : 10694 xorg_cv_cc_flag_unknown_warning_option=yes 10695 else $as_nop 10696 xorg_cv_cc_flag_unknown_warning_option=no 10697 fi 10698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10699 fi 10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10701 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10703 CFLAGS="$xorg_testset_save_CFLAGS" 10704 fi 10705 10706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10709 fi 10710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10712 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10713 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10714 then : 10715 printf %s "(cached) " >&6 10716 else $as_nop 10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10718 /* end confdefs.h. */ 10719 int i; 10720 _ACEOF 10721 if ac_fn_c_try_compile "$LINENO" 10722 then : 10723 xorg_cv_cc_flag_unused_command_line_argument=yes 10724 else $as_nop 10725 xorg_cv_cc_flag_unused_command_line_argument=no 10726 fi 10727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10728 fi 10729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10730 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10732 CFLAGS="$xorg_testset_save_CFLAGS" 10733 fi 10734 10735 found="no" 10736 10737 if test $found = "no" ; then 10738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10740 fi 10741 10742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10744 fi 10745 10746 CFLAGS="$CFLAGS -pedantic" 10747 10748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10749 printf %s "checking if $CC supports -pedantic... " >&6; } 10750 cacheid=xorg_cv_cc_flag__pedantic 10751 if eval test \${$cacheid+y} 10752 then : 10753 printf %s "(cached) " >&6 10754 else $as_nop 10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10756 /* end confdefs.h. */ 10757 int i; 10758 int 10759 main (void) 10760 { 10761 10762 ; 10763 return 0; 10764 } 10765 _ACEOF 10766 if ac_fn_c_try_link "$LINENO" 10767 then : 10768 eval $cacheid=yes 10769 else $as_nop 10770 eval $cacheid=no 10771 fi 10772 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10773 conftest$ac_exeext conftest.$ac_ext 10774 fi 10775 10776 10777 CFLAGS="$xorg_testset_save_CFLAGS" 10778 10779 eval supported=\$$cacheid 10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10781 printf "%s\n" "$supported" >&6; } 10782 if test "$supported" = "yes" ; then 10783 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10784 found="yes" 10785 fi 10786 fi 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 xorg_testset_save_CFLAGS="$CFLAGS" 10803 10804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10807 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10808 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10809 then : 10810 printf %s "(cached) " >&6 10811 else $as_nop 10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10813 /* end confdefs.h. */ 10814 int i; 10815 _ACEOF 10816 if ac_fn_c_try_compile "$LINENO" 10817 then : 10818 xorg_cv_cc_flag_unknown_warning_option=yes 10819 else $as_nop 10820 xorg_cv_cc_flag_unknown_warning_option=no 10821 fi 10822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10823 fi 10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10825 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10827 CFLAGS="$xorg_testset_save_CFLAGS" 10828 fi 10829 10830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10833 fi 10834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10836 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10837 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10838 then : 10839 printf %s "(cached) " >&6 10840 else $as_nop 10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842 /* end confdefs.h. */ 10843 int i; 10844 _ACEOF 10845 if ac_fn_c_try_compile "$LINENO" 10846 then : 10847 xorg_cv_cc_flag_unused_command_line_argument=yes 10848 else $as_nop 10849 xorg_cv_cc_flag_unused_command_line_argument=no 10850 fi 10851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10852 fi 10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10854 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10856 CFLAGS="$xorg_testset_save_CFLAGS" 10857 fi 10858 10859 found="no" 10860 10861 if test $found = "no" ; then 10862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10864 fi 10865 10866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10868 fi 10869 10870 CFLAGS="$CFLAGS -Werror" 10871 10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10873 printf %s "checking if $CC supports -Werror... " >&6; } 10874 cacheid=xorg_cv_cc_flag__Werror 10875 if eval test \${$cacheid+y} 10876 then : 10877 printf %s "(cached) " >&6 10878 else $as_nop 10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10880 /* end confdefs.h. */ 10881 int i; 10882 int 10883 main (void) 10884 { 10885 10886 ; 10887 return 0; 10888 } 10889 _ACEOF 10890 if ac_fn_c_try_link "$LINENO" 10891 then : 10892 eval $cacheid=yes 10893 else $as_nop 10894 eval $cacheid=no 10895 fi 10896 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10897 conftest$ac_exeext conftest.$ac_ext 10898 fi 10899 10900 10901 CFLAGS="$xorg_testset_save_CFLAGS" 10902 10903 eval supported=\$$cacheid 10904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10905 printf "%s\n" "$supported" >&6; } 10906 if test "$supported" = "yes" ; then 10907 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10908 found="yes" 10909 fi 10910 fi 10911 10912 if test $found = "no" ; then 10913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10915 fi 10916 10917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10919 fi 10920 10921 CFLAGS="$CFLAGS -errwarn" 10922 10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10924 printf %s "checking if $CC supports -errwarn... " >&6; } 10925 cacheid=xorg_cv_cc_flag__errwarn 10926 if eval test \${$cacheid+y} 10927 then : 10928 printf %s "(cached) " >&6 10929 else $as_nop 10930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10931 /* end confdefs.h. */ 10932 int i; 10933 int 10934 main (void) 10935 { 10936 10937 ; 10938 return 0; 10939 } 10940 _ACEOF 10941 if ac_fn_c_try_link "$LINENO" 10942 then : 10943 eval $cacheid=yes 10944 else $as_nop 10945 eval $cacheid=no 10946 fi 10947 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10948 conftest$ac_exeext conftest.$ac_ext 10949 fi 10950 10951 10952 CFLAGS="$xorg_testset_save_CFLAGS" 10953 10954 eval supported=\$$cacheid 10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10956 printf "%s\n" "$supported" >&6; } 10957 if test "$supported" = "yes" ; then 10958 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10959 found="yes" 10960 fi 10961 fi 10962 10963 10964 10965 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10966 # activate it with -Werror, so we add it here explicitly. 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 xorg_testset_save_CFLAGS="$CFLAGS" 10981 10982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10985 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10986 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10987 then : 10988 printf %s "(cached) " >&6 10989 else $as_nop 10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10991 /* end confdefs.h. */ 10992 int i; 10993 _ACEOF 10994 if ac_fn_c_try_compile "$LINENO" 10995 then : 10996 xorg_cv_cc_flag_unknown_warning_option=yes 10997 else $as_nop 10998 xorg_cv_cc_flag_unknown_warning_option=no 10999 fi 11000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11001 fi 11002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11003 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11005 CFLAGS="$xorg_testset_save_CFLAGS" 11006 fi 11007 11008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11011 fi 11012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11014 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11015 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11016 then : 11017 printf %s "(cached) " >&6 11018 else $as_nop 11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11020 /* end confdefs.h. */ 11021 int i; 11022 _ACEOF 11023 if ac_fn_c_try_compile "$LINENO" 11024 then : 11025 xorg_cv_cc_flag_unused_command_line_argument=yes 11026 else $as_nop 11027 xorg_cv_cc_flag_unused_command_line_argument=no 11028 fi 11029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11030 fi 11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11032 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11034 CFLAGS="$xorg_testset_save_CFLAGS" 11035 fi 11036 11037 found="no" 11038 11039 if test $found = "no" ; then 11040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11042 fi 11043 11044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11046 fi 11047 11048 CFLAGS="$CFLAGS -Werror=attributes" 11049 11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11051 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11052 cacheid=xorg_cv_cc_flag__Werror_attributes 11053 if eval test \${$cacheid+y} 11054 then : 11055 printf %s "(cached) " >&6 11056 else $as_nop 11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11058 /* end confdefs.h. */ 11059 int i; 11060 int 11061 main (void) 11062 { 11063 11064 ; 11065 return 0; 11066 } 11067 _ACEOF 11068 if ac_fn_c_try_link "$LINENO" 11069 then : 11070 eval $cacheid=yes 11071 else $as_nop 11072 eval $cacheid=no 11073 fi 11074 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11075 conftest$ac_exeext conftest.$ac_ext 11076 fi 11077 11078 11079 CFLAGS="$xorg_testset_save_CFLAGS" 11080 11081 eval supported=\$$cacheid 11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11083 printf "%s\n" "$supported" >&6; } 11084 if test "$supported" = "yes" ; then 11085 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11086 found="yes" 11087 fi 11088 fi 11089 11090 11091 11092 if test "x$STRICT_COMPILE" = "xyes"; then 11093 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11094 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11095 fi 11096 11097 11098 11099 11100 11101 11102 cat >>confdefs.h <<_ACEOF 11103 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11104 _ACEOF 11105 11106 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11107 if test "x$PVM" = "x"; then 11108 PVM="0" 11109 fi 11110 11111 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11112 11113 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11114 if test "x$PVP" = "x"; then 11115 PVP="0" 11116 fi 11117 11118 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11119 11120 11121 11122 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11123 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11124 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11125 touch \$(top_srcdir)/ChangeLog; \ 11126 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11127 11128 11129 11130 11131 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11132 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11133 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11134 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11135 touch \$(top_srcdir)/INSTALL; \ 11136 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11137 11138 11139 11140 11141 11142 11143 case $host_os in 11144 solaris*) 11145 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11146 # check for a man page file found in later versions that use 11147 # traditional section numbers instead 11148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11149 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11150 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11151 then : 11152 printf %s "(cached) " >&6 11153 else $as_nop 11154 test "$cross_compiling" = yes && 11155 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11156 if test -r "/usr/share/man/man7/attributes.7"; then 11157 ac_cv_file__usr_share_man_man7_attributes_7=yes 11158 else 11159 ac_cv_file__usr_share_man_man7_attributes_7=no 11160 fi 11161 fi 11162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11163 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11164 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11165 then : 11166 SYSV_MAN_SECTIONS=false 11167 else $as_nop 11168 SYSV_MAN_SECTIONS=true 11169 fi 11170 11171 ;; 11172 *) SYSV_MAN_SECTIONS=false ;; 11173 esac 11174 11175 if test x$APP_MAN_SUFFIX = x ; then 11176 APP_MAN_SUFFIX=1 11177 fi 11178 if test x$APP_MAN_DIR = x ; then 11179 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11180 fi 11181 11182 if test x$LIB_MAN_SUFFIX = x ; then 11183 LIB_MAN_SUFFIX=3 11184 fi 11185 if test x$LIB_MAN_DIR = x ; then 11186 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11187 fi 11188 11189 if test x$FILE_MAN_SUFFIX = x ; then 11190 case $SYSV_MAN_SECTIONS in 11191 true) FILE_MAN_SUFFIX=4 ;; 11192 *) FILE_MAN_SUFFIX=5 ;; 11193 esac 11194 fi 11195 if test x$FILE_MAN_DIR = x ; then 11196 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11197 fi 11198 11199 if test x$MISC_MAN_SUFFIX = x ; then 11200 case $SYSV_MAN_SECTIONS in 11201 true) MISC_MAN_SUFFIX=5 ;; 11202 *) MISC_MAN_SUFFIX=7 ;; 11203 esac 11204 fi 11205 if test x$MISC_MAN_DIR = x ; then 11206 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11207 fi 11208 11209 if test x$DRIVER_MAN_SUFFIX = x ; then 11210 case $SYSV_MAN_SECTIONS in 11211 true) DRIVER_MAN_SUFFIX=7 ;; 11212 *) DRIVER_MAN_SUFFIX=4 ;; 11213 esac 11214 fi 11215 if test x$DRIVER_MAN_DIR = x ; then 11216 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11217 fi 11218 11219 if test x$ADMIN_MAN_SUFFIX = x ; then 11220 case $SYSV_MAN_SECTIONS in 11221 true) ADMIN_MAN_SUFFIX=1m ;; 11222 *) ADMIN_MAN_SUFFIX=8 ;; 11223 esac 11224 fi 11225 if test x$ADMIN_MAN_DIR = x ; then 11226 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11227 fi 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 XORG_MAN_PAGE="X Version 11" 11244 11245 MAN_SUBSTS="\ 11246 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11247 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11248 -e 's|__xservername__|Xorg|g' \ 11249 -e 's|__xconfigfile__|xorg.conf|g' \ 11250 -e 's|__projectroot__|\$(prefix)|g' \ 11251 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11252 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11253 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11254 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11255 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11256 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11257 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11258 11259 11260 11261 # Check whether --enable-silent-rules was given. 11262 if test ${enable_silent_rules+y} 11263 then : 11264 enableval=$enable_silent_rules; 11265 fi 11266 11267 case $enable_silent_rules in # ((( 11268 yes) AM_DEFAULT_VERBOSITY=0;; 11269 no) AM_DEFAULT_VERBOSITY=1;; 11270 *) AM_DEFAULT_VERBOSITY=0;; 11271 esac 11272 am_make=${MAKE-make} 11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11274 printf %s "checking whether $am_make supports nested variables... " >&6; } 11275 if test ${am_cv_make_support_nested_variables+y} 11276 then : 11277 printf %s "(cached) " >&6 11278 else $as_nop 11279 if printf "%s\n" 'TRUE=$(BAR$(V)) 11280 BAR0=false 11281 BAR1=true 11282 V=1 11283 am__doit: 11284 @$(TRUE) 11285 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11286 am_cv_make_support_nested_variables=yes 11287 else 11288 am_cv_make_support_nested_variables=no 11289 fi 11290 fi 11291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11292 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11293 if test $am_cv_make_support_nested_variables = yes; then 11294 AM_V='$(V)' 11295 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11296 else 11297 AM_V=$AM_DEFAULT_VERBOSITY 11298 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11299 fi 11300 AM_BACKSLASH='\' 11301 11302 11303 11304 # Initialize libtool 11305 # Check whether --enable-static was given. 11306 if test ${enable_static+y} 11307 then : 11308 enableval=$enable_static; p=${PACKAGE-default} 11309 case $enableval in 11310 yes) enable_static=yes ;; 11311 no) enable_static=no ;; 11312 *) 11313 enable_static=no 11314 # Look at the argument we got. We use all the common list separators. 11315 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11316 for pkg in $enableval; do 11317 IFS=$lt_save_ifs 11318 if test "X$pkg" = "X$p"; then 11319 enable_static=yes 11320 fi 11321 done 11322 IFS=$lt_save_ifs 11323 ;; 11324 esac 11325 else $as_nop 11326 enable_static=no 11327 fi 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 case `pwd` in 11338 *\ * | *\ *) 11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11340 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11341 esac 11342 11343 11344 11345 macro_version='2.4.7' 11346 macro_revision='2.4.7' 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 ltmain=$ac_aux_dir/ltmain.sh 11362 11363 # Backslashify metacharacters that are still active within 11364 # double-quoted strings. 11365 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11366 11367 # Same as above, but do not quote variable references. 11368 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11369 11370 # Sed substitution to delay expansion of an escaped shell variable in a 11371 # double_quote_subst'ed string. 11372 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11373 11374 # Sed substitution to delay expansion of an escaped single quote. 11375 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11376 11377 # Sed substitution to avoid accidental globbing in evaled expressions 11378 no_glob_subst='s/\*/\\\*/g' 11379 11380 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11381 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11382 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11383 11384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11385 printf %s "checking how to print strings... " >&6; } 11386 # Test print first, because it will be a builtin if present. 11387 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11388 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11389 ECHO='print -r --' 11390 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11391 ECHO='printf %s\n' 11392 else 11393 # Use this function as a fallback that always works. 11394 func_fallback_echo () 11395 { 11396 eval 'cat <<_LTECHO_EOF 11397 $1 11398 _LTECHO_EOF' 11399 } 11400 ECHO='func_fallback_echo' 11401 fi 11402 11403 # func_echo_all arg... 11404 # Invoke $ECHO with all args, space-separated. 11405 func_echo_all () 11406 { 11407 $ECHO "" 11408 } 11409 11410 case $ECHO in 11411 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11412 printf "%s\n" "printf" >&6; } ;; 11413 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11414 printf "%s\n" "print -r" >&6; } ;; 11415 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11416 printf "%s\n" "cat" >&6; } ;; 11417 esac 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11433 printf %s "checking for a sed that does not truncate output... " >&6; } 11434 if test ${ac_cv_path_SED+y} 11435 then : 11436 printf %s "(cached) " >&6 11437 else $as_nop 11438 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11439 for ac_i in 1 2 3 4 5 6 7; do 11440 ac_script="$ac_script$as_nl$ac_script" 11441 done 11442 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11443 { ac_script=; unset ac_script;} 11444 if test -z "$SED"; then 11445 ac_path_SED_found=false 11446 # Loop through the user's path and test for each of PROGNAME-LIST 11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11448 for as_dir in $PATH 11449 do 11450 IFS=$as_save_IFS 11451 case $as_dir in #((( 11452 '') as_dir=./ ;; 11453 */) ;; 11454 *) as_dir=$as_dir/ ;; 11455 esac 11456 for ac_prog in sed gsed 11457 do 11458 for ac_exec_ext in '' $ac_executable_extensions; do 11459 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11460 as_fn_executable_p "$ac_path_SED" || continue 11461 # Check for GNU ac_path_SED and select it if it is found. 11462 # Check for GNU $ac_path_SED 11463 case `"$ac_path_SED" --version 2>&1` in 11464 *GNU*) 11465 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11466 *) 11467 ac_count=0 11468 printf %s 0123456789 >"conftest.in" 11469 while : 11470 do 11471 cat "conftest.in" "conftest.in" >"conftest.tmp" 11472 mv "conftest.tmp" "conftest.in" 11473 cp "conftest.in" "conftest.nl" 11474 printf "%s\n" '' >> "conftest.nl" 11475 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11477 as_fn_arith $ac_count + 1 && ac_count=$as_val 11478 if test $ac_count -gt ${ac_path_SED_max-0}; then 11479 # Best one so far, save it but keep looking for a better one 11480 ac_cv_path_SED="$ac_path_SED" 11481 ac_path_SED_max=$ac_count 11482 fi 11483 # 10*(2^10) chars as input seems more than enough 11484 test $ac_count -gt 10 && break 11485 done 11486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11487 esac 11488 11489 $ac_path_SED_found && break 3 11490 done 11491 done 11492 done 11493 IFS=$as_save_IFS 11494 if test -z "$ac_cv_path_SED"; then 11495 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11496 fi 11497 else 11498 ac_cv_path_SED=$SED 11499 fi 11500 11501 fi 11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11503 printf "%s\n" "$ac_cv_path_SED" >&6; } 11504 SED="$ac_cv_path_SED" 11505 rm -f conftest.sed 11506 11507 test -z "$SED" && SED=sed 11508 Xsed="$SED -e 1s/^X//" 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11521 printf %s "checking for grep that handles long lines and -e... " >&6; } 11522 if test ${ac_cv_path_GREP+y} 11523 then : 11524 printf %s "(cached) " >&6 11525 else $as_nop 11526 if test -z "$GREP"; then 11527 ac_path_GREP_found=false 11528 # Loop through the user's path and test for each of PROGNAME-LIST 11529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11530 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11531 do 11532 IFS=$as_save_IFS 11533 case $as_dir in #((( 11534 '') as_dir=./ ;; 11535 */) ;; 11536 *) as_dir=$as_dir/ ;; 11537 esac 11538 for ac_prog in grep ggrep 11539 do 11540 for ac_exec_ext in '' $ac_executable_extensions; do 11541 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11542 as_fn_executable_p "$ac_path_GREP" || continue 11543 # Check for GNU ac_path_GREP and select it if it is found. 11544 # Check for GNU $ac_path_GREP 11545 case `"$ac_path_GREP" --version 2>&1` in 11546 *GNU*) 11547 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11548 *) 11549 ac_count=0 11550 printf %s 0123456789 >"conftest.in" 11551 while : 11552 do 11553 cat "conftest.in" "conftest.in" >"conftest.tmp" 11554 mv "conftest.tmp" "conftest.in" 11555 cp "conftest.in" "conftest.nl" 11556 printf "%s\n" 'GREP' >> "conftest.nl" 11557 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11559 as_fn_arith $ac_count + 1 && ac_count=$as_val 11560 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11561 # Best one so far, save it but keep looking for a better one 11562 ac_cv_path_GREP="$ac_path_GREP" 11563 ac_path_GREP_max=$ac_count 11564 fi 11565 # 10*(2^10) chars as input seems more than enough 11566 test $ac_count -gt 10 && break 11567 done 11568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11569 esac 11570 11571 $ac_path_GREP_found && break 3 11572 done 11573 done 11574 done 11575 IFS=$as_save_IFS 11576 if test -z "$ac_cv_path_GREP"; then 11577 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11578 fi 11579 else 11580 ac_cv_path_GREP=$GREP 11581 fi 11582 11583 fi 11584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11585 printf "%s\n" "$ac_cv_path_GREP" >&6; } 11586 GREP="$ac_cv_path_GREP" 11587 11588 11589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11590 printf %s "checking for egrep... " >&6; } 11591 if test ${ac_cv_path_EGREP+y} 11592 then : 11593 printf %s "(cached) " >&6 11594 else $as_nop 11595 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11596 then ac_cv_path_EGREP="$GREP -E" 11597 else 11598 if test -z "$EGREP"; then 11599 ac_path_EGREP_found=false 11600 # Loop through the user's path and test for each of PROGNAME-LIST 11601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11603 do 11604 IFS=$as_save_IFS 11605 case $as_dir in #((( 11606 '') as_dir=./ ;; 11607 */) ;; 11608 *) as_dir=$as_dir/ ;; 11609 esac 11610 for ac_prog in egrep 11611 do 11612 for ac_exec_ext in '' $ac_executable_extensions; do 11613 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11614 as_fn_executable_p "$ac_path_EGREP" || continue 11615 # Check for GNU ac_path_EGREP and select it if it is found. 11616 # Check for GNU $ac_path_EGREP 11617 case `"$ac_path_EGREP" --version 2>&1` in 11618 *GNU*) 11619 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11620 *) 11621 ac_count=0 11622 printf %s 0123456789 >"conftest.in" 11623 while : 11624 do 11625 cat "conftest.in" "conftest.in" >"conftest.tmp" 11626 mv "conftest.tmp" "conftest.in" 11627 cp "conftest.in" "conftest.nl" 11628 printf "%s\n" 'EGREP' >> "conftest.nl" 11629 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11631 as_fn_arith $ac_count + 1 && ac_count=$as_val 11632 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11633 # Best one so far, save it but keep looking for a better one 11634 ac_cv_path_EGREP="$ac_path_EGREP" 11635 ac_path_EGREP_max=$ac_count 11636 fi 11637 # 10*(2^10) chars as input seems more than enough 11638 test $ac_count -gt 10 && break 11639 done 11640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11641 esac 11642 11643 $ac_path_EGREP_found && break 3 11644 done 11645 done 11646 done 11647 IFS=$as_save_IFS 11648 if test -z "$ac_cv_path_EGREP"; then 11649 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11650 fi 11651 else 11652 ac_cv_path_EGREP=$EGREP 11653 fi 11654 11655 fi 11656 fi 11657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11658 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11659 EGREP="$ac_cv_path_EGREP" 11660 11661 11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11663 printf %s "checking for fgrep... " >&6; } 11664 if test ${ac_cv_path_FGREP+y} 11665 then : 11666 printf %s "(cached) " >&6 11667 else $as_nop 11668 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11669 then ac_cv_path_FGREP="$GREP -F" 11670 else 11671 if test -z "$FGREP"; then 11672 ac_path_FGREP_found=false 11673 # Loop through the user's path and test for each of PROGNAME-LIST 11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11675 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11676 do 11677 IFS=$as_save_IFS 11678 case $as_dir in #((( 11679 '') as_dir=./ ;; 11680 */) ;; 11681 *) as_dir=$as_dir/ ;; 11682 esac 11683 for ac_prog in fgrep 11684 do 11685 for ac_exec_ext in '' $ac_executable_extensions; do 11686 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11687 as_fn_executable_p "$ac_path_FGREP" || continue 11688 # Check for GNU ac_path_FGREP and select it if it is found. 11689 # Check for GNU $ac_path_FGREP 11690 case `"$ac_path_FGREP" --version 2>&1` in 11691 *GNU*) 11692 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11693 *) 11694 ac_count=0 11695 printf %s 0123456789 >"conftest.in" 11696 while : 11697 do 11698 cat "conftest.in" "conftest.in" >"conftest.tmp" 11699 mv "conftest.tmp" "conftest.in" 11700 cp "conftest.in" "conftest.nl" 11701 printf "%s\n" 'FGREP' >> "conftest.nl" 11702 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11704 as_fn_arith $ac_count + 1 && ac_count=$as_val 11705 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11706 # Best one so far, save it but keep looking for a better one 11707 ac_cv_path_FGREP="$ac_path_FGREP" 11708 ac_path_FGREP_max=$ac_count 11709 fi 11710 # 10*(2^10) chars as input seems more than enough 11711 test $ac_count -gt 10 && break 11712 done 11713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11714 esac 11715 11716 $ac_path_FGREP_found && break 3 11717 done 11718 done 11719 done 11720 IFS=$as_save_IFS 11721 if test -z "$ac_cv_path_FGREP"; then 11722 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11723 fi 11724 else 11725 ac_cv_path_FGREP=$FGREP 11726 fi 11727 11728 fi 11729 fi 11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11731 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11732 FGREP="$ac_cv_path_FGREP" 11733 11734 11735 test -z "$GREP" && GREP=grep 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 # Check whether --with-gnu-ld was given. 11756 if test ${with_gnu_ld+y} 11757 then : 11758 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11759 else $as_nop 11760 with_gnu_ld=no 11761 fi 11762 11763 ac_prog=ld 11764 if test yes = "$GCC"; then 11765 # Check if gcc -print-prog-name=ld gives a path. 11766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11767 printf %s "checking for ld used by $CC... " >&6; } 11768 case $host in 11769 *-*-mingw*) 11770 # gcc leaves a trailing carriage return, which upsets mingw 11771 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11772 *) 11773 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11774 esac 11775 case $ac_prog in 11776 # Accept absolute paths. 11777 [\\/]* | ?:[\\/]*) 11778 re_direlt='/[^/][^/]*/\.\./' 11779 # Canonicalize the pathname of ld 11780 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11781 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11782 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11783 done 11784 test -z "$LD" && LD=$ac_prog 11785 ;; 11786 "") 11787 # If it fails, then pretend we aren't using GCC. 11788 ac_prog=ld 11789 ;; 11790 *) 11791 # If it is relative, then search for the first ld in PATH. 11792 with_gnu_ld=unknown 11793 ;; 11794 esac 11795 elif test yes = "$with_gnu_ld"; then 11796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11797 printf %s "checking for GNU ld... " >&6; } 11798 else 11799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11800 printf %s "checking for non-GNU ld... " >&6; } 11801 fi 11802 if test ${lt_cv_path_LD+y} 11803 then : 11804 printf %s "(cached) " >&6 11805 else $as_nop 11806 if test -z "$LD"; then 11807 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11808 for ac_dir in $PATH; do 11809 IFS=$lt_save_ifs 11810 test -z "$ac_dir" && ac_dir=. 11811 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11812 lt_cv_path_LD=$ac_dir/$ac_prog 11813 # Check to see if the program is GNU ld. I'd rather use --version, 11814 # but apparently some variants of GNU ld only accept -v. 11815 # Break only if it was the GNU/non-GNU ld that we prefer. 11816 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11817 *GNU* | *'with BFD'*) 11818 test no != "$with_gnu_ld" && break 11819 ;; 11820 *) 11821 test yes != "$with_gnu_ld" && break 11822 ;; 11823 esac 11824 fi 11825 done 11826 IFS=$lt_save_ifs 11827 else 11828 lt_cv_path_LD=$LD # Let the user override the test with a path. 11829 fi 11830 fi 11831 11832 LD=$lt_cv_path_LD 11833 if test -n "$LD"; then 11834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11835 printf "%s\n" "$LD" >&6; } 11836 else 11837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11838 printf "%s\n" "no" >&6; } 11839 fi 11840 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11842 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11843 if test ${lt_cv_prog_gnu_ld+y} 11844 then : 11845 printf %s "(cached) " >&6 11846 else $as_nop 11847 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11848 case `$LD -v 2>&1 </dev/null` in 11849 *GNU* | *'with BFD'*) 11850 lt_cv_prog_gnu_ld=yes 11851 ;; 11852 *) 11853 lt_cv_prog_gnu_ld=no 11854 ;; 11855 esac 11856 fi 11857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11858 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11859 with_gnu_ld=$lt_cv_prog_gnu_ld 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11870 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11871 if test ${lt_cv_path_NM+y} 11872 then : 11873 printf %s "(cached) " >&6 11874 else $as_nop 11875 if test -n "$NM"; then 11876 # Let the user override the test. 11877 lt_cv_path_NM=$NM 11878 else 11879 lt_nm_to_check=${ac_tool_prefix}nm 11880 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11881 lt_nm_to_check="$lt_nm_to_check nm" 11882 fi 11883 for lt_tmp_nm in $lt_nm_to_check; do 11884 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11885 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11886 IFS=$lt_save_ifs 11887 test -z "$ac_dir" && ac_dir=. 11888 tmp_nm=$ac_dir/$lt_tmp_nm 11889 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11890 # Check to see if the nm accepts a BSD-compat flag. 11891 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11892 # nm: unknown option "B" ignored 11893 # Tru64's nm complains that /dev/null is an invalid object file 11894 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11895 case $build_os in 11896 mingw*) lt_bad_file=conftest.nm/nofile ;; 11897 *) lt_bad_file=/dev/null ;; 11898 esac 11899 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11900 *$lt_bad_file* | *'Invalid file or object type'*) 11901 lt_cv_path_NM="$tmp_nm -B" 11902 break 2 11903 ;; 11904 *) 11905 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11906 */dev/null*) 11907 lt_cv_path_NM="$tmp_nm -p" 11908 break 2 11909 ;; 11910 *) 11911 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11912 continue # so that we can try to find one that supports BSD flags 11913 ;; 11914 esac 11915 ;; 11916 esac 11917 fi 11918 done 11919 IFS=$lt_save_ifs 11920 done 11921 : ${lt_cv_path_NM=no} 11922 fi 11923 fi 11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11925 printf "%s\n" "$lt_cv_path_NM" >&6; } 11926 if test no != "$lt_cv_path_NM"; then 11927 NM=$lt_cv_path_NM 11928 else 11929 # Didn't find any BSD compatible name lister, look for dumpbin. 11930 if test -n "$DUMPBIN"; then : 11931 # Let the user override the test. 11932 else 11933 if test -n "$ac_tool_prefix"; then 11934 for ac_prog in dumpbin "link -dump" 11935 do 11936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11939 printf %s "checking for $ac_word... " >&6; } 11940 if test ${ac_cv_prog_DUMPBIN+y} 11941 then : 11942 printf %s "(cached) " >&6 11943 else $as_nop 11944 if test -n "$DUMPBIN"; then 11945 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11946 else 11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11948 for as_dir in $PATH 11949 do 11950 IFS=$as_save_IFS 11951 case $as_dir in #((( 11952 '') as_dir=./ ;; 11953 */) ;; 11954 *) as_dir=$as_dir/ ;; 11955 esac 11956 for ac_exec_ext in '' $ac_executable_extensions; do 11957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11958 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11960 break 2 11961 fi 11962 done 11963 done 11964 IFS=$as_save_IFS 11965 11966 fi 11967 fi 11968 DUMPBIN=$ac_cv_prog_DUMPBIN 11969 if test -n "$DUMPBIN"; then 11970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11971 printf "%s\n" "$DUMPBIN" >&6; } 11972 else 11973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11974 printf "%s\n" "no" >&6; } 11975 fi 11976 11977 11978 test -n "$DUMPBIN" && break 11979 done 11980 fi 11981 if test -z "$DUMPBIN"; then 11982 ac_ct_DUMPBIN=$DUMPBIN 11983 for ac_prog in dumpbin "link -dump" 11984 do 11985 # Extract the first word of "$ac_prog", so it can be a program name with args. 11986 set dummy $ac_prog; ac_word=$2 11987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11988 printf %s "checking for $ac_word... " >&6; } 11989 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11990 then : 11991 printf %s "(cached) " >&6 11992 else $as_nop 11993 if test -n "$ac_ct_DUMPBIN"; then 11994 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11995 else 11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11997 for as_dir in $PATH 11998 do 11999 IFS=$as_save_IFS 12000 case $as_dir in #((( 12001 '') as_dir=./ ;; 12002 */) ;; 12003 *) as_dir=$as_dir/ ;; 12004 esac 12005 for ac_exec_ext in '' $ac_executable_extensions; do 12006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12007 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12009 break 2 12010 fi 12011 done 12012 done 12013 IFS=$as_save_IFS 12014 12015 fi 12016 fi 12017 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12018 if test -n "$ac_ct_DUMPBIN"; then 12019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12020 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12021 else 12022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12023 printf "%s\n" "no" >&6; } 12024 fi 12025 12026 12027 test -n "$ac_ct_DUMPBIN" && break 12028 done 12029 12030 if test "x$ac_ct_DUMPBIN" = x; then 12031 DUMPBIN=":" 12032 else 12033 case $cross_compiling:$ac_tool_warned in 12034 yes:) 12035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12036 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12037 ac_tool_warned=yes ;; 12038 esac 12039 DUMPBIN=$ac_ct_DUMPBIN 12040 fi 12041 fi 12042 12043 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12044 *COFF*) 12045 DUMPBIN="$DUMPBIN -symbols -headers" 12046 ;; 12047 *) 12048 DUMPBIN=: 12049 ;; 12050 esac 12051 fi 12052 12053 if test : != "$DUMPBIN"; then 12054 NM=$DUMPBIN 12055 fi 12056 fi 12057 test -z "$NM" && NM=nm 12058 12059 12060 12061 12062 12063 12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12065 printf %s "checking the name lister ($NM) interface... " >&6; } 12066 if test ${lt_cv_nm_interface+y} 12067 then : 12068 printf %s "(cached) " >&6 12069 else $as_nop 12070 lt_cv_nm_interface="BSD nm" 12071 echo "int some_variable = 0;" > conftest.$ac_ext 12072 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12073 (eval "$ac_compile" 2>conftest.err) 12074 cat conftest.err >&5 12075 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12076 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12077 cat conftest.err >&5 12078 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12079 cat conftest.out >&5 12080 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12081 lt_cv_nm_interface="MS dumpbin" 12082 fi 12083 rm -f conftest* 12084 fi 12085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12086 printf "%s\n" "$lt_cv_nm_interface" >&6; } 12087 12088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12089 printf %s "checking whether ln -s works... " >&6; } 12090 LN_S=$as_ln_s 12091 if test "$LN_S" = "ln -s"; then 12092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12093 printf "%s\n" "yes" >&6; } 12094 else 12095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12096 printf "%s\n" "no, using $LN_S" >&6; } 12097 fi 12098 12099 # find the maximum length of command line arguments 12100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12101 printf %s "checking the maximum length of command line arguments... " >&6; } 12102 if test ${lt_cv_sys_max_cmd_len+y} 12103 then : 12104 printf %s "(cached) " >&6 12105 else $as_nop 12106 i=0 12107 teststring=ABCD 12108 12109 case $build_os in 12110 msdosdjgpp*) 12111 # On DJGPP, this test can blow up pretty badly due to problems in libc 12112 # (any single argument exceeding 2000 bytes causes a buffer overrun 12113 # during glob expansion). Even if it were fixed, the result of this 12114 # check would be larger than it should be. 12115 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12116 ;; 12117 12118 gnu*) 12119 # Under GNU Hurd, this test is not required because there is 12120 # no limit to the length of command line arguments. 12121 # Libtool will interpret -1 as no limit whatsoever 12122 lt_cv_sys_max_cmd_len=-1; 12123 ;; 12124 12125 cygwin* | mingw* | cegcc*) 12126 # On Win9x/ME, this test blows up -- it succeeds, but takes 12127 # about 5 minutes as the teststring grows exponentially. 12128 # Worse, since 9x/ME are not pre-emptively multitasking, 12129 # you end up with a "frozen" computer, even though with patience 12130 # the test eventually succeeds (with a max line length of 256k). 12131 # Instead, let's just punt: use the minimum linelength reported by 12132 # all of the supported platforms: 8192 (on NT/2K/XP). 12133 lt_cv_sys_max_cmd_len=8192; 12134 ;; 12135 12136 mint*) 12137 # On MiNT this can take a long time and run out of memory. 12138 lt_cv_sys_max_cmd_len=8192; 12139 ;; 12140 12141 amigaos*) 12142 # On AmigaOS with pdksh, this test takes hours, literally. 12143 # So we just punt and use a minimum line length of 8192. 12144 lt_cv_sys_max_cmd_len=8192; 12145 ;; 12146 12147 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12148 # This has been around since 386BSD, at least. Likely further. 12149 if test -x /sbin/sysctl; then 12150 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12151 elif test -x /usr/sbin/sysctl; then 12152 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12153 else 12154 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12155 fi 12156 # And add a safety zone 12157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12158 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12159 ;; 12160 12161 interix*) 12162 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12163 lt_cv_sys_max_cmd_len=196608 12164 ;; 12165 12166 os2*) 12167 # The test takes a long time on OS/2. 12168 lt_cv_sys_max_cmd_len=8192 12169 ;; 12170 12171 osf*) 12172 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12173 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12174 # nice to cause kernel panics so lets avoid the loop below. 12175 # First set a reasonable default. 12176 lt_cv_sys_max_cmd_len=16384 12177 # 12178 if test -x /sbin/sysconfig; then 12179 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12180 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12181 esac 12182 fi 12183 ;; 12184 sco3.2v5*) 12185 lt_cv_sys_max_cmd_len=102400 12186 ;; 12187 sysv5* | sco5v6* | sysv4.2uw2*) 12188 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12189 if test -n "$kargmax"; then 12190 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12191 else 12192 lt_cv_sys_max_cmd_len=32768 12193 fi 12194 ;; 12195 *) 12196 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12197 if test -n "$lt_cv_sys_max_cmd_len" && \ 12198 test undefined != "$lt_cv_sys_max_cmd_len"; then 12199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12201 else 12202 # Make teststring a little bigger before we do anything with it. 12203 # a 1K string should be a reasonable start. 12204 for i in 1 2 3 4 5 6 7 8; do 12205 teststring=$teststring$teststring 12206 done 12207 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12208 # If test is not a shell built-in, we'll probably end up computing a 12209 # maximum length that is only half of the actual maximum length, but 12210 # we can't tell. 12211 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12212 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12213 test 17 != "$i" # 1/2 MB should be enough 12214 do 12215 i=`expr $i + 1` 12216 teststring=$teststring$teststring 12217 done 12218 # Only check the string length outside the loop. 12219 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12220 teststring= 12221 # Add a significant safety factor because C++ compilers can tack on 12222 # massive amounts of additional arguments before passing them to the 12223 # linker. It appears as though 1/2 is a usable value. 12224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12225 fi 12226 ;; 12227 esac 12228 12229 fi 12230 12231 if test -n "$lt_cv_sys_max_cmd_len"; then 12232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12233 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12234 else 12235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12236 printf "%s\n" "none" >&6; } 12237 fi 12238 max_cmd_len=$lt_cv_sys_max_cmd_len 12239 12240 12241 12242 12243 12244 12245 : ${CP="cp -f"} 12246 : ${MV="mv -f"} 12247 : ${RM="rm -f"} 12248 12249 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12250 lt_unset=unset 12251 else 12252 lt_unset=false 12253 fi 12254 12255 12256 12257 12258 12259 # test EBCDIC or ASCII 12260 case `echo X|tr X '\101'` in 12261 A) # ASCII based system 12262 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12263 lt_SP2NL='tr \040 \012' 12264 lt_NL2SP='tr \015\012 \040\040' 12265 ;; 12266 *) # EBCDIC based system 12267 lt_SP2NL='tr \100 \n' 12268 lt_NL2SP='tr \r\n \100\100' 12269 ;; 12270 esac 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12281 printf %s "checking how to convert $build file names to $host format... " >&6; } 12282 if test ${lt_cv_to_host_file_cmd+y} 12283 then : 12284 printf %s "(cached) " >&6 12285 else $as_nop 12286 case $host in 12287 *-*-mingw* ) 12288 case $build in 12289 *-*-mingw* ) # actually msys 12290 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12291 ;; 12292 *-*-cygwin* ) 12293 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12294 ;; 12295 * ) # otherwise, assume *nix 12296 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12297 ;; 12298 esac 12299 ;; 12300 *-*-cygwin* ) 12301 case $build in 12302 *-*-mingw* ) # actually msys 12303 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12304 ;; 12305 *-*-cygwin* ) 12306 lt_cv_to_host_file_cmd=func_convert_file_noop 12307 ;; 12308 * ) # otherwise, assume *nix 12309 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12310 ;; 12311 esac 12312 ;; 12313 * ) # unhandled hosts (and "normal" native builds) 12314 lt_cv_to_host_file_cmd=func_convert_file_noop 12315 ;; 12316 esac 12317 12318 fi 12319 12320 to_host_file_cmd=$lt_cv_to_host_file_cmd 12321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12322 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12323 12324 12325 12326 12327 12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12329 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12330 if test ${lt_cv_to_tool_file_cmd+y} 12331 then : 12332 printf %s "(cached) " >&6 12333 else $as_nop 12334 #assume ordinary cross tools, or native build. 12335 lt_cv_to_tool_file_cmd=func_convert_file_noop 12336 case $host in 12337 *-*-mingw* ) 12338 case $build in 12339 *-*-mingw* ) # actually msys 12340 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12341 ;; 12342 esac 12343 ;; 12344 esac 12345 12346 fi 12347 12348 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12350 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12351 12352 12353 12354 12355 12356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12357 printf %s "checking for $LD option to reload object files... " >&6; } 12358 if test ${lt_cv_ld_reload_flag+y} 12359 then : 12360 printf %s "(cached) " >&6 12361 else $as_nop 12362 lt_cv_ld_reload_flag='-r' 12363 fi 12364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12365 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12366 reload_flag=$lt_cv_ld_reload_flag 12367 case $reload_flag in 12368 "" | " "*) ;; 12369 *) reload_flag=" $reload_flag" ;; 12370 esac 12371 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12372 case $host_os in 12373 cygwin* | mingw* | pw32* | cegcc*) 12374 if test yes != "$GCC"; then 12375 reload_cmds=false 12376 fi 12377 ;; 12378 darwin*) 12379 if test yes = "$GCC"; then 12380 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12381 else 12382 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12383 fi 12384 ;; 12385 esac 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 if test -n "$ac_tool_prefix"; then 12396 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12397 set dummy ${ac_tool_prefix}file; ac_word=$2 12398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12399 printf %s "checking for $ac_word... " >&6; } 12400 if test ${ac_cv_prog_FILECMD+y} 12401 then : 12402 printf %s "(cached) " >&6 12403 else $as_nop 12404 if test -n "$FILECMD"; then 12405 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12406 else 12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12408 for as_dir in $PATH 12409 do 12410 IFS=$as_save_IFS 12411 case $as_dir in #((( 12412 '') as_dir=./ ;; 12413 */) ;; 12414 *) as_dir=$as_dir/ ;; 12415 esac 12416 for ac_exec_ext in '' $ac_executable_extensions; do 12417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12418 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12420 break 2 12421 fi 12422 done 12423 done 12424 IFS=$as_save_IFS 12425 12426 fi 12427 fi 12428 FILECMD=$ac_cv_prog_FILECMD 12429 if test -n "$FILECMD"; then 12430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12431 printf "%s\n" "$FILECMD" >&6; } 12432 else 12433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12434 printf "%s\n" "no" >&6; } 12435 fi 12436 12437 12438 fi 12439 if test -z "$ac_cv_prog_FILECMD"; then 12440 ac_ct_FILECMD=$FILECMD 12441 # Extract the first word of "file", so it can be a program name with args. 12442 set dummy file; ac_word=$2 12443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12444 printf %s "checking for $ac_word... " >&6; } 12445 if test ${ac_cv_prog_ac_ct_FILECMD+y} 12446 then : 12447 printf %s "(cached) " >&6 12448 else $as_nop 12449 if test -n "$ac_ct_FILECMD"; then 12450 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12451 else 12452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12453 for as_dir in $PATH 12454 do 12455 IFS=$as_save_IFS 12456 case $as_dir in #((( 12457 '') as_dir=./ ;; 12458 */) ;; 12459 *) as_dir=$as_dir/ ;; 12460 esac 12461 for ac_exec_ext in '' $ac_executable_extensions; do 12462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12463 ac_cv_prog_ac_ct_FILECMD="file" 12464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12465 break 2 12466 fi 12467 done 12468 done 12469 IFS=$as_save_IFS 12470 12471 fi 12472 fi 12473 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12474 if test -n "$ac_ct_FILECMD"; then 12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12476 printf "%s\n" "$ac_ct_FILECMD" >&6; } 12477 else 12478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12479 printf "%s\n" "no" >&6; } 12480 fi 12481 12482 if test "x$ac_ct_FILECMD" = x; then 12483 FILECMD=":" 12484 else 12485 case $cross_compiling:$ac_tool_warned in 12486 yes:) 12487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12488 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12489 ac_tool_warned=yes ;; 12490 esac 12491 FILECMD=$ac_ct_FILECMD 12492 fi 12493 else 12494 FILECMD="$ac_cv_prog_FILECMD" 12495 fi 12496 12497 12498 12499 12500 12501 12502 12503 if test -n "$ac_tool_prefix"; then 12504 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12505 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12507 printf %s "checking for $ac_word... " >&6; } 12508 if test ${ac_cv_prog_OBJDUMP+y} 12509 then : 12510 printf %s "(cached) " >&6 12511 else $as_nop 12512 if test -n "$OBJDUMP"; then 12513 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12514 else 12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12516 for as_dir in $PATH 12517 do 12518 IFS=$as_save_IFS 12519 case $as_dir in #((( 12520 '') as_dir=./ ;; 12521 */) ;; 12522 *) as_dir=$as_dir/ ;; 12523 esac 12524 for ac_exec_ext in '' $ac_executable_extensions; do 12525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12526 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12528 break 2 12529 fi 12530 done 12531 done 12532 IFS=$as_save_IFS 12533 12534 fi 12535 fi 12536 OBJDUMP=$ac_cv_prog_OBJDUMP 12537 if test -n "$OBJDUMP"; then 12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12539 printf "%s\n" "$OBJDUMP" >&6; } 12540 else 12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12542 printf "%s\n" "no" >&6; } 12543 fi 12544 12545 12546 fi 12547 if test -z "$ac_cv_prog_OBJDUMP"; then 12548 ac_ct_OBJDUMP=$OBJDUMP 12549 # Extract the first word of "objdump", so it can be a program name with args. 12550 set dummy objdump; ac_word=$2 12551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12552 printf %s "checking for $ac_word... " >&6; } 12553 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12554 then : 12555 printf %s "(cached) " >&6 12556 else $as_nop 12557 if test -n "$ac_ct_OBJDUMP"; then 12558 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12559 else 12560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12561 for as_dir in $PATH 12562 do 12563 IFS=$as_save_IFS 12564 case $as_dir in #((( 12565 '') as_dir=./ ;; 12566 */) ;; 12567 *) as_dir=$as_dir/ ;; 12568 esac 12569 for ac_exec_ext in '' $ac_executable_extensions; do 12570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12571 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12573 break 2 12574 fi 12575 done 12576 done 12577 IFS=$as_save_IFS 12578 12579 fi 12580 fi 12581 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12582 if test -n "$ac_ct_OBJDUMP"; then 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12584 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12585 else 12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12587 printf "%s\n" "no" >&6; } 12588 fi 12589 12590 if test "x$ac_ct_OBJDUMP" = x; then 12591 OBJDUMP="false" 12592 else 12593 case $cross_compiling:$ac_tool_warned in 12594 yes:) 12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12596 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12597 ac_tool_warned=yes ;; 12598 esac 12599 OBJDUMP=$ac_ct_OBJDUMP 12600 fi 12601 else 12602 OBJDUMP="$ac_cv_prog_OBJDUMP" 12603 fi 12604 12605 test -z "$OBJDUMP" && OBJDUMP=objdump 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12616 printf %s "checking how to recognize dependent libraries... " >&6; } 12617 if test ${lt_cv_deplibs_check_method+y} 12618 then : 12619 printf %s "(cached) " >&6 12620 else $as_nop 12621 lt_cv_file_magic_cmd='$MAGIC_CMD' 12622 lt_cv_file_magic_test_file= 12623 lt_cv_deplibs_check_method='unknown' 12624 # Need to set the preceding variable on all platforms that support 12625 # interlibrary dependencies. 12626 # 'none' -- dependencies not supported. 12627 # 'unknown' -- same as none, but documents that we really don't know. 12628 # 'pass_all' -- all dependencies passed with no checks. 12629 # 'test_compile' -- check by making test program. 12630 # 'file_magic [[regex]]' -- check by looking for files in library path 12631 # that responds to the $file_magic_cmd with a given extended regex. 12632 # If you have 'file' or equivalent on your system and you're not sure 12633 # whether 'pass_all' will *always* work, you probably want this one. 12634 12635 case $host_os in 12636 aix[4-9]*) 12637 lt_cv_deplibs_check_method=pass_all 12638 ;; 12639 12640 beos*) 12641 lt_cv_deplibs_check_method=pass_all 12642 ;; 12643 12644 bsdi[45]*) 12645 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12646 lt_cv_file_magic_cmd='$FILECMD -L' 12647 lt_cv_file_magic_test_file=/shlib/libc.so 12648 ;; 12649 12650 cygwin*) 12651 # func_win32_libid is a shell function defined in ltmain.sh 12652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12653 lt_cv_file_magic_cmd='func_win32_libid' 12654 ;; 12655 12656 mingw* | pw32*) 12657 # Base MSYS/MinGW do not provide the 'file' command needed by 12658 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12659 # unless we find 'file', for example because we are cross-compiling. 12660 if ( file / ) >/dev/null 2>&1; then 12661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12662 lt_cv_file_magic_cmd='func_win32_libid' 12663 else 12664 # Keep this pattern in sync with the one in func_win32_libid. 12665 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12666 lt_cv_file_magic_cmd='$OBJDUMP -f' 12667 fi 12668 ;; 12669 12670 cegcc*) 12671 # use the weaker test based on 'objdump'. See mingw*. 12672 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12673 lt_cv_file_magic_cmd='$OBJDUMP -f' 12674 ;; 12675 12676 darwin* | rhapsody*) 12677 lt_cv_deplibs_check_method=pass_all 12678 ;; 12679 12680 freebsd* | dragonfly* | midnightbsd*) 12681 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12682 case $host_cpu in 12683 i*86 ) 12684 # Not sure whether the presence of OpenBSD here was a mistake. 12685 # Let's accept both of them until this is cleared up. 12686 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12687 lt_cv_file_magic_cmd=$FILECMD 12688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12689 ;; 12690 esac 12691 else 12692 lt_cv_deplibs_check_method=pass_all 12693 fi 12694 ;; 12695 12696 haiku*) 12697 lt_cv_deplibs_check_method=pass_all 12698 ;; 12699 12700 hpux10.20* | hpux11*) 12701 lt_cv_file_magic_cmd=$FILECMD 12702 case $host_cpu in 12703 ia64*) 12704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12705 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12706 ;; 12707 hppa*64*) 12708 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]' 12709 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12710 ;; 12711 *) 12712 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12713 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12714 ;; 12715 esac 12716 ;; 12717 12718 interix[3-9]*) 12719 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12721 ;; 12722 12723 irix5* | irix6* | nonstopux*) 12724 case $LD in 12725 *-32|*"-32 ") libmagic=32-bit;; 12726 *-n32|*"-n32 ") libmagic=N32;; 12727 *-64|*"-64 ") libmagic=64-bit;; 12728 *) libmagic=never-match;; 12729 esac 12730 lt_cv_deplibs_check_method=pass_all 12731 ;; 12732 12733 # This must be glibc/ELF. 12734 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12735 lt_cv_deplibs_check_method=pass_all 12736 ;; 12737 12738 netbsd*) 12739 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12741 else 12742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12743 fi 12744 ;; 12745 12746 newos6*) 12747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12748 lt_cv_file_magic_cmd=$FILECMD 12749 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12750 ;; 12751 12752 *nto* | *qnx*) 12753 lt_cv_deplibs_check_method=pass_all 12754 ;; 12755 12756 openbsd* | bitrig*) 12757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12759 else 12760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12761 fi 12762 ;; 12763 12764 osf3* | osf4* | osf5*) 12765 lt_cv_deplibs_check_method=pass_all 12766 ;; 12767 12768 rdos*) 12769 lt_cv_deplibs_check_method=pass_all 12770 ;; 12771 12772 solaris*) 12773 lt_cv_deplibs_check_method=pass_all 12774 ;; 12775 12776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12777 lt_cv_deplibs_check_method=pass_all 12778 ;; 12779 12780 sysv4 | sysv4.3*) 12781 case $host_vendor in 12782 motorola) 12783 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]' 12784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12785 ;; 12786 ncr) 12787 lt_cv_deplibs_check_method=pass_all 12788 ;; 12789 sequent) 12790 lt_cv_file_magic_cmd='/bin/file' 12791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12792 ;; 12793 sni) 12794 lt_cv_file_magic_cmd='/bin/file' 12795 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12796 lt_cv_file_magic_test_file=/lib/libc.so 12797 ;; 12798 siemens) 12799 lt_cv_deplibs_check_method=pass_all 12800 ;; 12801 pc) 12802 lt_cv_deplibs_check_method=pass_all 12803 ;; 12804 esac 12805 ;; 12806 12807 tpf*) 12808 lt_cv_deplibs_check_method=pass_all 12809 ;; 12810 os2*) 12811 lt_cv_deplibs_check_method=pass_all 12812 ;; 12813 esac 12814 12815 fi 12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12817 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12818 12819 file_magic_glob= 12820 want_nocaseglob=no 12821 if test "$build" = "$host"; then 12822 case $host_os in 12823 mingw* | pw32*) 12824 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12825 want_nocaseglob=yes 12826 else 12827 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12828 fi 12829 ;; 12830 esac 12831 fi 12832 12833 file_magic_cmd=$lt_cv_file_magic_cmd 12834 deplibs_check_method=$lt_cv_deplibs_check_method 12835 test -z "$deplibs_check_method" && deplibs_check_method=unknown 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 if test -n "$ac_tool_prefix"; then 12859 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12860 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12862 printf %s "checking for $ac_word... " >&6; } 12863 if test ${ac_cv_prog_DLLTOOL+y} 12864 then : 12865 printf %s "(cached) " >&6 12866 else $as_nop 12867 if test -n "$DLLTOOL"; then 12868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12869 else 12870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12871 for as_dir in $PATH 12872 do 12873 IFS=$as_save_IFS 12874 case $as_dir in #((( 12875 '') as_dir=./ ;; 12876 */) ;; 12877 *) as_dir=$as_dir/ ;; 12878 esac 12879 for ac_exec_ext in '' $ac_executable_extensions; do 12880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12881 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12883 break 2 12884 fi 12885 done 12886 done 12887 IFS=$as_save_IFS 12888 12889 fi 12890 fi 12891 DLLTOOL=$ac_cv_prog_DLLTOOL 12892 if test -n "$DLLTOOL"; then 12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12894 printf "%s\n" "$DLLTOOL" >&6; } 12895 else 12896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12897 printf "%s\n" "no" >&6; } 12898 fi 12899 12900 12901 fi 12902 if test -z "$ac_cv_prog_DLLTOOL"; then 12903 ac_ct_DLLTOOL=$DLLTOOL 12904 # Extract the first word of "dlltool", so it can be a program name with args. 12905 set dummy dlltool; ac_word=$2 12906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12907 printf %s "checking for $ac_word... " >&6; } 12908 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12909 then : 12910 printf %s "(cached) " >&6 12911 else $as_nop 12912 if test -n "$ac_ct_DLLTOOL"; then 12913 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12914 else 12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12916 for as_dir in $PATH 12917 do 12918 IFS=$as_save_IFS 12919 case $as_dir in #((( 12920 '') as_dir=./ ;; 12921 */) ;; 12922 *) as_dir=$as_dir/ ;; 12923 esac 12924 for ac_exec_ext in '' $ac_executable_extensions; do 12925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12926 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12928 break 2 12929 fi 12930 done 12931 done 12932 IFS=$as_save_IFS 12933 12934 fi 12935 fi 12936 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12937 if test -n "$ac_ct_DLLTOOL"; then 12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12939 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12940 else 12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12942 printf "%s\n" "no" >&6; } 12943 fi 12944 12945 if test "x$ac_ct_DLLTOOL" = x; then 12946 DLLTOOL="false" 12947 else 12948 case $cross_compiling:$ac_tool_warned in 12949 yes:) 12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12951 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12952 ac_tool_warned=yes ;; 12953 esac 12954 DLLTOOL=$ac_ct_DLLTOOL 12955 fi 12956 else 12957 DLLTOOL="$ac_cv_prog_DLLTOOL" 12958 fi 12959 12960 test -z "$DLLTOOL" && DLLTOOL=dlltool 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12972 printf %s "checking how to associate runtime and link libraries... " >&6; } 12973 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12974 then : 12975 printf %s "(cached) " >&6 12976 else $as_nop 12977 lt_cv_sharedlib_from_linklib_cmd='unknown' 12978 12979 case $host_os in 12980 cygwin* | mingw* | pw32* | cegcc*) 12981 # two different shell functions defined in ltmain.sh; 12982 # decide which one to use based on capabilities of $DLLTOOL 12983 case `$DLLTOOL --help 2>&1` in 12984 *--identify-strict*) 12985 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12986 ;; 12987 *) 12988 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12989 ;; 12990 esac 12991 ;; 12992 *) 12993 # fallback: assume linklib IS sharedlib 12994 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12995 ;; 12996 esac 12997 12998 fi 12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13000 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13001 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13002 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13003 13004 13005 13006 13007 13008 13009 13010 if test -n "$ac_tool_prefix"; then 13011 for ac_prog in ar 13012 do 13013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13016 printf %s "checking for $ac_word... " >&6; } 13017 if test ${ac_cv_prog_AR+y} 13018 then : 13019 printf %s "(cached) " >&6 13020 else $as_nop 13021 if test -n "$AR"; then 13022 ac_cv_prog_AR="$AR" # Let the user override the test. 13023 else 13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13025 for as_dir in $PATH 13026 do 13027 IFS=$as_save_IFS 13028 case $as_dir in #((( 13029 '') as_dir=./ ;; 13030 */) ;; 13031 *) as_dir=$as_dir/ ;; 13032 esac 13033 for ac_exec_ext in '' $ac_executable_extensions; do 13034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13035 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13037 break 2 13038 fi 13039 done 13040 done 13041 IFS=$as_save_IFS 13042 13043 fi 13044 fi 13045 AR=$ac_cv_prog_AR 13046 if test -n "$AR"; then 13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13048 printf "%s\n" "$AR" >&6; } 13049 else 13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13051 printf "%s\n" "no" >&6; } 13052 fi 13053 13054 13055 test -n "$AR" && break 13056 done 13057 fi 13058 if test -z "$AR"; then 13059 ac_ct_AR=$AR 13060 for ac_prog in ar 13061 do 13062 # Extract the first word of "$ac_prog", so it can be a program name with args. 13063 set dummy $ac_prog; ac_word=$2 13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13065 printf %s "checking for $ac_word... " >&6; } 13066 if test ${ac_cv_prog_ac_ct_AR+y} 13067 then : 13068 printf %s "(cached) " >&6 13069 else $as_nop 13070 if test -n "$ac_ct_AR"; then 13071 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13072 else 13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13074 for as_dir in $PATH 13075 do 13076 IFS=$as_save_IFS 13077 case $as_dir in #((( 13078 '') as_dir=./ ;; 13079 */) ;; 13080 *) as_dir=$as_dir/ ;; 13081 esac 13082 for ac_exec_ext in '' $ac_executable_extensions; do 13083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13084 ac_cv_prog_ac_ct_AR="$ac_prog" 13085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13086 break 2 13087 fi 13088 done 13089 done 13090 IFS=$as_save_IFS 13091 13092 fi 13093 fi 13094 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13095 if test -n "$ac_ct_AR"; then 13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13097 printf "%s\n" "$ac_ct_AR" >&6; } 13098 else 13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13100 printf "%s\n" "no" >&6; } 13101 fi 13102 13103 13104 test -n "$ac_ct_AR" && break 13105 done 13106 13107 if test "x$ac_ct_AR" = x; then 13108 AR="false" 13109 else 13110 case $cross_compiling:$ac_tool_warned in 13111 yes:) 13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13114 ac_tool_warned=yes ;; 13115 esac 13116 AR=$ac_ct_AR 13117 fi 13118 fi 13119 13120 : ${AR=ar} 13121 13122 13123 13124 13125 13126 13127 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 13128 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13129 # higher priority because thats what people were doing historically (setting 13130 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13131 # variable obsoleted/removed. 13132 13133 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13134 lt_ar_flags=$AR_FLAGS 13135 13136 13137 13138 13139 13140 13141 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13142 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13143 13144 13145 13146 13147 13148 13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13150 printf %s "checking for archiver @FILE support... " >&6; } 13151 if test ${lt_cv_ar_at_file+y} 13152 then : 13153 printf %s "(cached) " >&6 13154 else $as_nop 13155 lt_cv_ar_at_file=no 13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13157 /* end confdefs.h. */ 13158 13159 int 13160 main (void) 13161 { 13162 13163 ; 13164 return 0; 13165 } 13166 _ACEOF 13167 if ac_fn_c_try_compile "$LINENO" 13168 then : 13169 echo conftest.$ac_objext > conftest.lst 13170 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13172 (eval $lt_ar_try) 2>&5 13173 ac_status=$? 13174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13175 test $ac_status = 0; } 13176 if test 0 -eq "$ac_status"; then 13177 # Ensure the archiver fails upon bogus file names. 13178 rm -f conftest.$ac_objext libconftest.a 13179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13180 (eval $lt_ar_try) 2>&5 13181 ac_status=$? 13182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13183 test $ac_status = 0; } 13184 if test 0 -ne "$ac_status"; then 13185 lt_cv_ar_at_file=@ 13186 fi 13187 fi 13188 rm -f conftest.* libconftest.a 13189 13190 fi 13191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13192 13193 fi 13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13195 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13196 13197 if test no = "$lt_cv_ar_at_file"; then 13198 archiver_list_spec= 13199 else 13200 archiver_list_spec=$lt_cv_ar_at_file 13201 fi 13202 13203 13204 13205 13206 13207 13208 13209 if test -n "$ac_tool_prefix"; then 13210 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13211 set dummy ${ac_tool_prefix}strip; ac_word=$2 13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13213 printf %s "checking for $ac_word... " >&6; } 13214 if test ${ac_cv_prog_STRIP+y} 13215 then : 13216 printf %s "(cached) " >&6 13217 else $as_nop 13218 if test -n "$STRIP"; then 13219 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13220 else 13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13222 for as_dir in $PATH 13223 do 13224 IFS=$as_save_IFS 13225 case $as_dir in #((( 13226 '') as_dir=./ ;; 13227 */) ;; 13228 *) as_dir=$as_dir/ ;; 13229 esac 13230 for ac_exec_ext in '' $ac_executable_extensions; do 13231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13232 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13234 break 2 13235 fi 13236 done 13237 done 13238 IFS=$as_save_IFS 13239 13240 fi 13241 fi 13242 STRIP=$ac_cv_prog_STRIP 13243 if test -n "$STRIP"; then 13244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13245 printf "%s\n" "$STRIP" >&6; } 13246 else 13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13248 printf "%s\n" "no" >&6; } 13249 fi 13250 13251 13252 fi 13253 if test -z "$ac_cv_prog_STRIP"; then 13254 ac_ct_STRIP=$STRIP 13255 # Extract the first word of "strip", so it can be a program name with args. 13256 set dummy strip; ac_word=$2 13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13258 printf %s "checking for $ac_word... " >&6; } 13259 if test ${ac_cv_prog_ac_ct_STRIP+y} 13260 then : 13261 printf %s "(cached) " >&6 13262 else $as_nop 13263 if test -n "$ac_ct_STRIP"; then 13264 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13265 else 13266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13267 for as_dir in $PATH 13268 do 13269 IFS=$as_save_IFS 13270 case $as_dir in #((( 13271 '') as_dir=./ ;; 13272 */) ;; 13273 *) as_dir=$as_dir/ ;; 13274 esac 13275 for ac_exec_ext in '' $ac_executable_extensions; do 13276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13277 ac_cv_prog_ac_ct_STRIP="strip" 13278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13279 break 2 13280 fi 13281 done 13282 done 13283 IFS=$as_save_IFS 13284 13285 fi 13286 fi 13287 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13288 if test -n "$ac_ct_STRIP"; then 13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13290 printf "%s\n" "$ac_ct_STRIP" >&6; } 13291 else 13292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13293 printf "%s\n" "no" >&6; } 13294 fi 13295 13296 if test "x$ac_ct_STRIP" = x; then 13297 STRIP=":" 13298 else 13299 case $cross_compiling:$ac_tool_warned in 13300 yes:) 13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13302 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13303 ac_tool_warned=yes ;; 13304 esac 13305 STRIP=$ac_ct_STRIP 13306 fi 13307 else 13308 STRIP="$ac_cv_prog_STRIP" 13309 fi 13310 13311 test -z "$STRIP" && STRIP=: 13312 13313 13314 13315 13316 13317 13318 if test -n "$ac_tool_prefix"; then 13319 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13320 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13322 printf %s "checking for $ac_word... " >&6; } 13323 if test ${ac_cv_prog_RANLIB+y} 13324 then : 13325 printf %s "(cached) " >&6 13326 else $as_nop 13327 if test -n "$RANLIB"; then 13328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13329 else 13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13331 for as_dir in $PATH 13332 do 13333 IFS=$as_save_IFS 13334 case $as_dir in #((( 13335 '') as_dir=./ ;; 13336 */) ;; 13337 *) as_dir=$as_dir/ ;; 13338 esac 13339 for ac_exec_ext in '' $ac_executable_extensions; do 13340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13341 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13343 break 2 13344 fi 13345 done 13346 done 13347 IFS=$as_save_IFS 13348 13349 fi 13350 fi 13351 RANLIB=$ac_cv_prog_RANLIB 13352 if test -n "$RANLIB"; then 13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13354 printf "%s\n" "$RANLIB" >&6; } 13355 else 13356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13357 printf "%s\n" "no" >&6; } 13358 fi 13359 13360 13361 fi 13362 if test -z "$ac_cv_prog_RANLIB"; then 13363 ac_ct_RANLIB=$RANLIB 13364 # Extract the first word of "ranlib", so it can be a program name with args. 13365 set dummy ranlib; ac_word=$2 13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13367 printf %s "checking for $ac_word... " >&6; } 13368 if test ${ac_cv_prog_ac_ct_RANLIB+y} 13369 then : 13370 printf %s "(cached) " >&6 13371 else $as_nop 13372 if test -n "$ac_ct_RANLIB"; then 13373 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13374 else 13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13376 for as_dir in $PATH 13377 do 13378 IFS=$as_save_IFS 13379 case $as_dir in #((( 13380 '') as_dir=./ ;; 13381 */) ;; 13382 *) as_dir=$as_dir/ ;; 13383 esac 13384 for ac_exec_ext in '' $ac_executable_extensions; do 13385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13386 ac_cv_prog_ac_ct_RANLIB="ranlib" 13387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13388 break 2 13389 fi 13390 done 13391 done 13392 IFS=$as_save_IFS 13393 13394 fi 13395 fi 13396 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13397 if test -n "$ac_ct_RANLIB"; then 13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13399 printf "%s\n" "$ac_ct_RANLIB" >&6; } 13400 else 13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13402 printf "%s\n" "no" >&6; } 13403 fi 13404 13405 if test "x$ac_ct_RANLIB" = x; then 13406 RANLIB=":" 13407 else 13408 case $cross_compiling:$ac_tool_warned in 13409 yes:) 13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13411 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13412 ac_tool_warned=yes ;; 13413 esac 13414 RANLIB=$ac_ct_RANLIB 13415 fi 13416 else 13417 RANLIB="$ac_cv_prog_RANLIB" 13418 fi 13419 13420 test -z "$RANLIB" && RANLIB=: 13421 13422 13423 13424 13425 13426 13427 # Determine commands to create old-style static archives. 13428 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13429 old_postinstall_cmds='chmod 644 $oldlib' 13430 old_postuninstall_cmds= 13431 13432 if test -n "$RANLIB"; then 13433 case $host_os in 13434 bitrig* | openbsd*) 13435 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13436 ;; 13437 *) 13438 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13439 ;; 13440 esac 13441 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13442 fi 13443 13444 case $host_os in 13445 darwin*) 13446 lock_old_archive_extraction=yes ;; 13447 *) 13448 lock_old_archive_extraction=no ;; 13449 esac 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 # If no C compiler was specified, use CC. 13490 LTCC=${LTCC-"$CC"} 13491 13492 # If no C compiler flags were specified, use CFLAGS. 13493 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13494 13495 # Allow CC to be a program name with arguments. 13496 compiler=$CC 13497 13498 13499 # Check for command to grab the raw symbol name followed by C symbol from nm. 13500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13501 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13502 if test ${lt_cv_sys_global_symbol_pipe+y} 13503 then : 13504 printf %s "(cached) " >&6 13505 else $as_nop 13506 13507 # These are sane defaults that work on at least a few old systems. 13508 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13509 13510 # Character class describing NM global symbol codes. 13511 symcode='[BCDEGRST]' 13512 13513 # Regexp to match symbols that can be accessed directly from C. 13514 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13515 13516 # Define system-specific variables. 13517 case $host_os in 13518 aix*) 13519 symcode='[BCDT]' 13520 ;; 13521 cygwin* | mingw* | pw32* | cegcc*) 13522 symcode='[ABCDGISTW]' 13523 ;; 13524 hpux*) 13525 if test ia64 = "$host_cpu"; then 13526 symcode='[ABCDEGRST]' 13527 fi 13528 ;; 13529 irix* | nonstopux*) 13530 symcode='[BCDEGRST]' 13531 ;; 13532 osf*) 13533 symcode='[BCDEGQRST]' 13534 ;; 13535 solaris*) 13536 symcode='[BDRT]' 13537 ;; 13538 sco3.2v5*) 13539 symcode='[DT]' 13540 ;; 13541 sysv4.2uw2*) 13542 symcode='[DT]' 13543 ;; 13544 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13545 symcode='[ABDT]' 13546 ;; 13547 sysv4) 13548 symcode='[DFNSTU]' 13549 ;; 13550 esac 13551 13552 # If we're using GNU nm, then use its standard symbol codes. 13553 case `$NM -V 2>&1` in 13554 *GNU* | *'with BFD'*) 13555 symcode='[ABCDGIRSTW]' ;; 13556 esac 13557 13558 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13559 # Gets list of data symbols to import. 13560 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13561 # Adjust the below global symbol transforms to fixup imported variables. 13562 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13563 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13564 lt_c_name_lib_hook="\ 13565 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13566 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13567 else 13568 # Disable hooks by default. 13569 lt_cv_sys_global_symbol_to_import= 13570 lt_cdecl_hook= 13571 lt_c_name_hook= 13572 lt_c_name_lib_hook= 13573 fi 13574 13575 # Transform an extracted symbol line into a proper C declaration. 13576 # Some systems (esp. on ia64) link data and code symbols differently, 13577 # so use this general approach. 13578 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13579 $lt_cdecl_hook\ 13580 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13581 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13582 13583 # Transform an extracted symbol line into symbol name and symbol address 13584 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13585 $lt_c_name_hook\ 13586 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13587 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13588 13589 # Transform an extracted symbol line into symbol name with lib prefix and 13590 # symbol address. 13591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13592 $lt_c_name_lib_hook\ 13593 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13594 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13595 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13596 13597 # Handle CRLF in mingw tool chain 13598 opt_cr= 13599 case $build_os in 13600 mingw*) 13601 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13602 ;; 13603 esac 13604 13605 # Try without a prefix underscore, then with it. 13606 for ac_symprfx in "" "_"; do 13607 13608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13609 symxfrm="\\1 $ac_symprfx\\2 \\2" 13610 13611 # Write the raw and C identifiers. 13612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13613 # Fake it for dumpbin and say T for any non-static function, 13614 # D for any global variable and I for any imported variable. 13615 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13616 # which start with @ or ?. 13617 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13618 " {last_section=section; section=\$ 3};"\ 13619 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13620 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13621 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13622 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13623 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13624 " \$ 0!~/External *\|/{next};"\ 13625 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13626 " {if(hide[section]) next};"\ 13627 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13628 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13629 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13630 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13631 " ' prfx=^$ac_symprfx" 13632 else 13633 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13634 fi 13635 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13636 13637 # Check to see that the pipe works correctly. 13638 pipe_works=no 13639 13640 rm -f conftest* 13641 cat > conftest.$ac_ext <<_LT_EOF 13642 #ifdef __cplusplus 13643 extern "C" { 13644 #endif 13645 char nm_test_var; 13646 void nm_test_func(void); 13647 void nm_test_func(void){} 13648 #ifdef __cplusplus 13649 } 13650 #endif 13651 int main(){nm_test_var='a';nm_test_func();return(0);} 13652 _LT_EOF 13653 13654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13655 (eval $ac_compile) 2>&5 13656 ac_status=$? 13657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13658 test $ac_status = 0; }; then 13659 # Now try to grab the symbols. 13660 nlist=conftest.nm 13661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13662 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13663 ac_status=$? 13664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13665 test $ac_status = 0; } && test -s "$nlist"; then 13666 # Try sorting and uniquifying the output. 13667 if sort "$nlist" | uniq > "$nlist"T; then 13668 mv -f "$nlist"T "$nlist" 13669 else 13670 rm -f "$nlist"T 13671 fi 13672 13673 # Make sure that we snagged all the symbols we need. 13674 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13675 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13676 cat <<_LT_EOF > conftest.$ac_ext 13677 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13678 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13679 /* DATA imports from DLLs on WIN32 can't be const, because runtime 13680 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13681 # define LT_DLSYM_CONST 13682 #elif defined __osf__ 13683 /* This system does not cope well with relocations in const data. */ 13684 # define LT_DLSYM_CONST 13685 #else 13686 # define LT_DLSYM_CONST const 13687 #endif 13688 13689 #ifdef __cplusplus 13690 extern "C" { 13691 #endif 13692 13693 _LT_EOF 13694 # Now generate the symbol file. 13695 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13696 13697 cat <<_LT_EOF >> conftest.$ac_ext 13698 13699 /* The mapping between symbol names and symbols. */ 13700 LT_DLSYM_CONST struct { 13701 const char *name; 13702 void *address; 13703 } 13704 lt__PROGRAM__LTX_preloaded_symbols[] = 13705 { 13706 { "@PROGRAM@", (void *) 0 }, 13707 _LT_EOF 13708 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13709 cat <<\_LT_EOF >> conftest.$ac_ext 13710 {0, (void *) 0} 13711 }; 13712 13713 /* This works around a problem in FreeBSD linker */ 13714 #ifdef FREEBSD_WORKAROUND 13715 static const void *lt_preloaded_setup() { 13716 return lt__PROGRAM__LTX_preloaded_symbols; 13717 } 13718 #endif 13719 13720 #ifdef __cplusplus 13721 } 13722 #endif 13723 _LT_EOF 13724 # Now try linking the two files. 13725 mv conftest.$ac_objext conftstm.$ac_objext 13726 lt_globsym_save_LIBS=$LIBS 13727 lt_globsym_save_CFLAGS=$CFLAGS 13728 LIBS=conftstm.$ac_objext 13729 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13731 (eval $ac_link) 2>&5 13732 ac_status=$? 13733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13734 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13735 pipe_works=yes 13736 fi 13737 LIBS=$lt_globsym_save_LIBS 13738 CFLAGS=$lt_globsym_save_CFLAGS 13739 else 13740 echo "cannot find nm_test_func in $nlist" >&5 13741 fi 13742 else 13743 echo "cannot find nm_test_var in $nlist" >&5 13744 fi 13745 else 13746 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13747 fi 13748 else 13749 echo "$progname: failed program was:" >&5 13750 cat conftest.$ac_ext >&5 13751 fi 13752 rm -rf conftest* conftst* 13753 13754 # Do not use the global_symbol_pipe unless it works. 13755 if test yes = "$pipe_works"; then 13756 break 13757 else 13758 lt_cv_sys_global_symbol_pipe= 13759 fi 13760 done 13761 13762 fi 13763 13764 if test -z "$lt_cv_sys_global_symbol_pipe"; then 13765 lt_cv_sys_global_symbol_to_cdecl= 13766 fi 13767 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13769 printf "%s\n" "failed" >&6; } 13770 else 13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13772 printf "%s\n" "ok" >&6; } 13773 fi 13774 13775 # Response file support. 13776 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13777 nm_file_list_spec='@' 13778 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13779 nm_file_list_spec='@' 13780 fi 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13819 printf %s "checking for sysroot... " >&6; } 13820 13821 # Check whether --with-sysroot was given. 13822 if test ${with_sysroot+y} 13823 then : 13824 withval=$with_sysroot; 13825 else $as_nop 13826 with_sysroot=no 13827 fi 13828 13829 13830 lt_sysroot= 13831 case $with_sysroot in #( 13832 yes) 13833 if test yes = "$GCC"; then 13834 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13835 fi 13836 ;; #( 13837 /*) 13838 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13839 ;; #( 13840 no|'') 13841 ;; #( 13842 *) 13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13844 printf "%s\n" "$with_sysroot" >&6; } 13845 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13846 ;; 13847 esac 13848 13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13850 printf "%s\n" "${lt_sysroot:-no}" >&6; } 13851 13852 13853 13854 13855 13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13857 printf %s "checking for a working dd... " >&6; } 13858 if test ${ac_cv_path_lt_DD+y} 13859 then : 13860 printf %s "(cached) " >&6 13861 else $as_nop 13862 printf 0123456789abcdef0123456789abcdef >conftest.i 13863 cat conftest.i conftest.i >conftest2.i 13864 : ${lt_DD:=$DD} 13865 if test -z "$lt_DD"; then 13866 ac_path_lt_DD_found=false 13867 # Loop through the user's path and test for each of PROGNAME-LIST 13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13869 for as_dir in $PATH 13870 do 13871 IFS=$as_save_IFS 13872 case $as_dir in #((( 13873 '') as_dir=./ ;; 13874 */) ;; 13875 *) as_dir=$as_dir/ ;; 13876 esac 13877 for ac_prog in dd 13878 do 13879 for ac_exec_ext in '' $ac_executable_extensions; do 13880 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13881 as_fn_executable_p "$ac_path_lt_DD" || continue 13882 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13883 cmp -s conftest.i conftest.out \ 13884 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13885 fi 13886 $ac_path_lt_DD_found && break 3 13887 done 13888 done 13889 done 13890 IFS=$as_save_IFS 13891 if test -z "$ac_cv_path_lt_DD"; then 13892 : 13893 fi 13894 else 13895 ac_cv_path_lt_DD=$lt_DD 13896 fi 13897 13898 rm -f conftest.i conftest2.i conftest.out 13899 fi 13900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13901 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13902 13903 13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13905 printf %s "checking how to truncate binary pipes... " >&6; } 13906 if test ${lt_cv_truncate_bin+y} 13907 then : 13908 printf %s "(cached) " >&6 13909 else $as_nop 13910 printf 0123456789abcdef0123456789abcdef >conftest.i 13911 cat conftest.i conftest.i >conftest2.i 13912 lt_cv_truncate_bin= 13913 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13914 cmp -s conftest.i conftest.out \ 13915 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13916 fi 13917 rm -f conftest.i conftest2.i conftest.out 13918 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13919 fi 13920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13921 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13922 13923 13924 13925 13926 13927 13928 13929 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13930 func_cc_basename () 13931 { 13932 for cc_temp in $*""; do 13933 case $cc_temp in 13934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13936 \-*) ;; 13937 *) break;; 13938 esac 13939 done 13940 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13941 } 13942 13943 # Check whether --enable-libtool-lock was given. 13944 if test ${enable_libtool_lock+y} 13945 then : 13946 enableval=$enable_libtool_lock; 13947 fi 13948 13949 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13950 13951 # Some flags need to be propagated to the compiler or linker for good 13952 # libtool support. 13953 case $host in 13954 ia64-*-hpux*) 13955 # Find out what ABI is being produced by ac_compile, and set mode 13956 # options accordingly. 13957 echo 'int i;' > conftest.$ac_ext 13958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13959 (eval $ac_compile) 2>&5 13960 ac_status=$? 13961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13962 test $ac_status = 0; }; then 13963 case `$FILECMD conftest.$ac_objext` in 13964 *ELF-32*) 13965 HPUX_IA64_MODE=32 13966 ;; 13967 *ELF-64*) 13968 HPUX_IA64_MODE=64 13969 ;; 13970 esac 13971 fi 13972 rm -rf conftest* 13973 ;; 13974 *-*-irix6*) 13975 # Find out what ABI is being produced by ac_compile, and set linker 13976 # options accordingly. 13977 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13979 (eval $ac_compile) 2>&5 13980 ac_status=$? 13981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13982 test $ac_status = 0; }; then 13983 if test yes = "$lt_cv_prog_gnu_ld"; then 13984 case `$FILECMD conftest.$ac_objext` in 13985 *32-bit*) 13986 LD="${LD-ld} -melf32bsmip" 13987 ;; 13988 *N32*) 13989 LD="${LD-ld} -melf32bmipn32" 13990 ;; 13991 *64-bit*) 13992 LD="${LD-ld} -melf64bmip" 13993 ;; 13994 esac 13995 else 13996 case `$FILECMD conftest.$ac_objext` in 13997 *32-bit*) 13998 LD="${LD-ld} -32" 13999 ;; 14000 *N32*) 14001 LD="${LD-ld} -n32" 14002 ;; 14003 *64-bit*) 14004 LD="${LD-ld} -64" 14005 ;; 14006 esac 14007 fi 14008 fi 14009 rm -rf conftest* 14010 ;; 14011 14012 mips64*-*linux*) 14013 # Find out what ABI is being produced by ac_compile, and set linker 14014 # options accordingly. 14015 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14017 (eval $ac_compile) 2>&5 14018 ac_status=$? 14019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14020 test $ac_status = 0; }; then 14021 emul=elf 14022 case `$FILECMD conftest.$ac_objext` in 14023 *32-bit*) 14024 emul="${emul}32" 14025 ;; 14026 *64-bit*) 14027 emul="${emul}64" 14028 ;; 14029 esac 14030 case `$FILECMD conftest.$ac_objext` in 14031 *MSB*) 14032 emul="${emul}btsmip" 14033 ;; 14034 *LSB*) 14035 emul="${emul}ltsmip" 14036 ;; 14037 esac 14038 case `$FILECMD conftest.$ac_objext` in 14039 *N32*) 14040 emul="${emul}n32" 14041 ;; 14042 esac 14043 LD="${LD-ld} -m $emul" 14044 fi 14045 rm -rf conftest* 14046 ;; 14047 14048 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14049 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14050 # Find out what ABI is being produced by ac_compile, and set linker 14051 # options accordingly. Note that the listed cases only cover the 14052 # situations where additional linker options are needed (such as when 14053 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14054 # vice versa); the common cases where no linker options are needed do 14055 # not appear in the list. 14056 echo 'int i;' > conftest.$ac_ext 14057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14058 (eval $ac_compile) 2>&5 14059 ac_status=$? 14060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14061 test $ac_status = 0; }; then 14062 case `$FILECMD conftest.o` in 14063 *32-bit*) 14064 case $host in 14065 x86_64-*kfreebsd*-gnu) 14066 LD="${LD-ld} -m elf_i386_fbsd" 14067 ;; 14068 x86_64-*linux*) 14069 case `$FILECMD conftest.o` in 14070 *x86-64*) 14071 LD="${LD-ld} -m elf32_x86_64" 14072 ;; 14073 *) 14074 LD="${LD-ld} -m elf_i386" 14075 ;; 14076 esac 14077 ;; 14078 powerpc64le-*linux*) 14079 LD="${LD-ld} -m elf32lppclinux" 14080 ;; 14081 powerpc64-*linux*) 14082 LD="${LD-ld} -m elf32ppclinux" 14083 ;; 14084 s390x-*linux*) 14085 LD="${LD-ld} -m elf_s390" 14086 ;; 14087 sparc64-*linux*) 14088 LD="${LD-ld} -m elf32_sparc" 14089 ;; 14090 esac 14091 ;; 14092 *64-bit*) 14093 case $host in 14094 x86_64-*kfreebsd*-gnu) 14095 LD="${LD-ld} -m elf_x86_64_fbsd" 14096 ;; 14097 x86_64-*linux*) 14098 LD="${LD-ld} -m elf_x86_64" 14099 ;; 14100 powerpcle-*linux*) 14101 LD="${LD-ld} -m elf64lppc" 14102 ;; 14103 powerpc-*linux*) 14104 LD="${LD-ld} -m elf64ppc" 14105 ;; 14106 s390*-*linux*|s390*-*tpf*) 14107 LD="${LD-ld} -m elf64_s390" 14108 ;; 14109 sparc*-*linux*) 14110 LD="${LD-ld} -m elf64_sparc" 14111 ;; 14112 esac 14113 ;; 14114 esac 14115 fi 14116 rm -rf conftest* 14117 ;; 14118 14119 *-*-sco3.2v5*) 14120 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14121 SAVE_CFLAGS=$CFLAGS 14122 CFLAGS="$CFLAGS -belf" 14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14124 printf %s "checking whether the C compiler needs -belf... " >&6; } 14125 if test ${lt_cv_cc_needs_belf+y} 14126 then : 14127 printf %s "(cached) " >&6 14128 else $as_nop 14129 ac_ext=c 14130 ac_cpp='$CPP $CPPFLAGS' 14131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14133 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14134 14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14136 /* end confdefs.h. */ 14137 14138 int 14139 main (void) 14140 { 14141 14142 ; 14143 return 0; 14144 } 14145 _ACEOF 14146 if ac_fn_c_try_link "$LINENO" 14147 then : 14148 lt_cv_cc_needs_belf=yes 14149 else $as_nop 14150 lt_cv_cc_needs_belf=no 14151 fi 14152 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14153 conftest$ac_exeext conftest.$ac_ext 14154 ac_ext=c 14155 ac_cpp='$CPP $CPPFLAGS' 14156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14158 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14159 14160 fi 14161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14162 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14163 if test yes != "$lt_cv_cc_needs_belf"; then 14164 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14165 CFLAGS=$SAVE_CFLAGS 14166 fi 14167 ;; 14168 *-*solaris*) 14169 # Find out what ABI is being produced by ac_compile, and set linker 14170 # options accordingly. 14171 echo 'int i;' > conftest.$ac_ext 14172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14173 (eval $ac_compile) 2>&5 14174 ac_status=$? 14175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14176 test $ac_status = 0; }; then 14177 case `$FILECMD conftest.o` in 14178 *64-bit*) 14179 case $lt_cv_prog_gnu_ld in 14180 yes*) 14181 case $host in 14182 i?86-*-solaris*|x86_64-*-solaris*) 14183 LD="${LD-ld} -m elf_x86_64" 14184 ;; 14185 sparc*-*-solaris*) 14186 LD="${LD-ld} -m elf64_sparc" 14187 ;; 14188 esac 14189 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14190 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14191 LD=${LD-ld}_sol2 14192 fi 14193 ;; 14194 *) 14195 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14196 LD="${LD-ld} -64" 14197 fi 14198 ;; 14199 esac 14200 ;; 14201 esac 14202 fi 14203 rm -rf conftest* 14204 ;; 14205 esac 14206 14207 need_locks=$enable_libtool_lock 14208 14209 if test -n "$ac_tool_prefix"; then 14210 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14211 set dummy ${ac_tool_prefix}mt; ac_word=$2 14212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14213 printf %s "checking for $ac_word... " >&6; } 14214 if test ${ac_cv_prog_MANIFEST_TOOL+y} 14215 then : 14216 printf %s "(cached) " >&6 14217 else $as_nop 14218 if test -n "$MANIFEST_TOOL"; then 14219 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14220 else 14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14222 for as_dir in $PATH 14223 do 14224 IFS=$as_save_IFS 14225 case $as_dir in #((( 14226 '') as_dir=./ ;; 14227 */) ;; 14228 *) as_dir=$as_dir/ ;; 14229 esac 14230 for ac_exec_ext in '' $ac_executable_extensions; do 14231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14232 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14234 break 2 14235 fi 14236 done 14237 done 14238 IFS=$as_save_IFS 14239 14240 fi 14241 fi 14242 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14243 if test -n "$MANIFEST_TOOL"; then 14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14245 printf "%s\n" "$MANIFEST_TOOL" >&6; } 14246 else 14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14248 printf "%s\n" "no" >&6; } 14249 fi 14250 14251 14252 fi 14253 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14254 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14255 # Extract the first word of "mt", so it can be a program name with args. 14256 set dummy mt; ac_word=$2 14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14258 printf %s "checking for $ac_word... " >&6; } 14259 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14260 then : 14261 printf %s "(cached) " >&6 14262 else $as_nop 14263 if test -n "$ac_ct_MANIFEST_TOOL"; then 14264 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14265 else 14266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14267 for as_dir in $PATH 14268 do 14269 IFS=$as_save_IFS 14270 case $as_dir in #((( 14271 '') as_dir=./ ;; 14272 */) ;; 14273 *) as_dir=$as_dir/ ;; 14274 esac 14275 for ac_exec_ext in '' $ac_executable_extensions; do 14276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14277 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14279 break 2 14280 fi 14281 done 14282 done 14283 IFS=$as_save_IFS 14284 14285 fi 14286 fi 14287 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14288 if test -n "$ac_ct_MANIFEST_TOOL"; then 14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14290 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14291 else 14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14293 printf "%s\n" "no" >&6; } 14294 fi 14295 14296 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14297 MANIFEST_TOOL=":" 14298 else 14299 case $cross_compiling:$ac_tool_warned in 14300 yes:) 14301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14302 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14303 ac_tool_warned=yes ;; 14304 esac 14305 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14306 fi 14307 else 14308 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14309 fi 14310 14311 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14313 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14314 if test ${lt_cv_path_mainfest_tool+y} 14315 then : 14316 printf %s "(cached) " >&6 14317 else $as_nop 14318 lt_cv_path_mainfest_tool=no 14319 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14320 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14321 cat conftest.err >&5 14322 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14323 lt_cv_path_mainfest_tool=yes 14324 fi 14325 rm -f conftest* 14326 fi 14327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14328 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14329 if test yes != "$lt_cv_path_mainfest_tool"; then 14330 MANIFEST_TOOL=: 14331 fi 14332 14333 14334 14335 14336 14337 14338 case $host_os in 14339 rhapsody* | darwin*) 14340 if test -n "$ac_tool_prefix"; then 14341 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14342 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14344 printf %s "checking for $ac_word... " >&6; } 14345 if test ${ac_cv_prog_DSYMUTIL+y} 14346 then : 14347 printf %s "(cached) " >&6 14348 else $as_nop 14349 if test -n "$DSYMUTIL"; then 14350 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14351 else 14352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14353 for as_dir in $PATH 14354 do 14355 IFS=$as_save_IFS 14356 case $as_dir in #((( 14357 '') as_dir=./ ;; 14358 */) ;; 14359 *) as_dir=$as_dir/ ;; 14360 esac 14361 for ac_exec_ext in '' $ac_executable_extensions; do 14362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14363 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14365 break 2 14366 fi 14367 done 14368 done 14369 IFS=$as_save_IFS 14370 14371 fi 14372 fi 14373 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14374 if test -n "$DSYMUTIL"; then 14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14376 printf "%s\n" "$DSYMUTIL" >&6; } 14377 else 14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14379 printf "%s\n" "no" >&6; } 14380 fi 14381 14382 14383 fi 14384 if test -z "$ac_cv_prog_DSYMUTIL"; then 14385 ac_ct_DSYMUTIL=$DSYMUTIL 14386 # Extract the first word of "dsymutil", so it can be a program name with args. 14387 set dummy dsymutil; ac_word=$2 14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14389 printf %s "checking for $ac_word... " >&6; } 14390 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14391 then : 14392 printf %s "(cached) " >&6 14393 else $as_nop 14394 if test -n "$ac_ct_DSYMUTIL"; then 14395 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14396 else 14397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14398 for as_dir in $PATH 14399 do 14400 IFS=$as_save_IFS 14401 case $as_dir in #((( 14402 '') as_dir=./ ;; 14403 */) ;; 14404 *) as_dir=$as_dir/ ;; 14405 esac 14406 for ac_exec_ext in '' $ac_executable_extensions; do 14407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14408 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14410 break 2 14411 fi 14412 done 14413 done 14414 IFS=$as_save_IFS 14415 14416 fi 14417 fi 14418 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14419 if test -n "$ac_ct_DSYMUTIL"; then 14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14421 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14422 else 14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14424 printf "%s\n" "no" >&6; } 14425 fi 14426 14427 if test "x$ac_ct_DSYMUTIL" = x; then 14428 DSYMUTIL=":" 14429 else 14430 case $cross_compiling:$ac_tool_warned in 14431 yes:) 14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14433 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14434 ac_tool_warned=yes ;; 14435 esac 14436 DSYMUTIL=$ac_ct_DSYMUTIL 14437 fi 14438 else 14439 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14440 fi 14441 14442 if test -n "$ac_tool_prefix"; then 14443 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14444 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14446 printf %s "checking for $ac_word... " >&6; } 14447 if test ${ac_cv_prog_NMEDIT+y} 14448 then : 14449 printf %s "(cached) " >&6 14450 else $as_nop 14451 if test -n "$NMEDIT"; then 14452 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14453 else 14454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14455 for as_dir in $PATH 14456 do 14457 IFS=$as_save_IFS 14458 case $as_dir in #((( 14459 '') as_dir=./ ;; 14460 */) ;; 14461 *) as_dir=$as_dir/ ;; 14462 esac 14463 for ac_exec_ext in '' $ac_executable_extensions; do 14464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14465 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14467 break 2 14468 fi 14469 done 14470 done 14471 IFS=$as_save_IFS 14472 14473 fi 14474 fi 14475 NMEDIT=$ac_cv_prog_NMEDIT 14476 if test -n "$NMEDIT"; then 14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14478 printf "%s\n" "$NMEDIT" >&6; } 14479 else 14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14481 printf "%s\n" "no" >&6; } 14482 fi 14483 14484 14485 fi 14486 if test -z "$ac_cv_prog_NMEDIT"; then 14487 ac_ct_NMEDIT=$NMEDIT 14488 # Extract the first word of "nmedit", so it can be a program name with args. 14489 set dummy nmedit; ac_word=$2 14490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14491 printf %s "checking for $ac_word... " >&6; } 14492 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14493 then : 14494 printf %s "(cached) " >&6 14495 else $as_nop 14496 if test -n "$ac_ct_NMEDIT"; then 14497 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14498 else 14499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14500 for as_dir in $PATH 14501 do 14502 IFS=$as_save_IFS 14503 case $as_dir in #((( 14504 '') as_dir=./ ;; 14505 */) ;; 14506 *) as_dir=$as_dir/ ;; 14507 esac 14508 for ac_exec_ext in '' $ac_executable_extensions; do 14509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14510 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14512 break 2 14513 fi 14514 done 14515 done 14516 IFS=$as_save_IFS 14517 14518 fi 14519 fi 14520 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14521 if test -n "$ac_ct_NMEDIT"; then 14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14523 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14524 else 14525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14526 printf "%s\n" "no" >&6; } 14527 fi 14528 14529 if test "x$ac_ct_NMEDIT" = x; then 14530 NMEDIT=":" 14531 else 14532 case $cross_compiling:$ac_tool_warned in 14533 yes:) 14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14535 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14536 ac_tool_warned=yes ;; 14537 esac 14538 NMEDIT=$ac_ct_NMEDIT 14539 fi 14540 else 14541 NMEDIT="$ac_cv_prog_NMEDIT" 14542 fi 14543 14544 if test -n "$ac_tool_prefix"; then 14545 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14546 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14548 printf %s "checking for $ac_word... " >&6; } 14549 if test ${ac_cv_prog_LIPO+y} 14550 then : 14551 printf %s "(cached) " >&6 14552 else $as_nop 14553 if test -n "$LIPO"; then 14554 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14555 else 14556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14557 for as_dir in $PATH 14558 do 14559 IFS=$as_save_IFS 14560 case $as_dir in #((( 14561 '') as_dir=./ ;; 14562 */) ;; 14563 *) as_dir=$as_dir/ ;; 14564 esac 14565 for ac_exec_ext in '' $ac_executable_extensions; do 14566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14567 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14569 break 2 14570 fi 14571 done 14572 done 14573 IFS=$as_save_IFS 14574 14575 fi 14576 fi 14577 LIPO=$ac_cv_prog_LIPO 14578 if test -n "$LIPO"; then 14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14580 printf "%s\n" "$LIPO" >&6; } 14581 else 14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14583 printf "%s\n" "no" >&6; } 14584 fi 14585 14586 14587 fi 14588 if test -z "$ac_cv_prog_LIPO"; then 14589 ac_ct_LIPO=$LIPO 14590 # Extract the first word of "lipo", so it can be a program name with args. 14591 set dummy lipo; ac_word=$2 14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14593 printf %s "checking for $ac_word... " >&6; } 14594 if test ${ac_cv_prog_ac_ct_LIPO+y} 14595 then : 14596 printf %s "(cached) " >&6 14597 else $as_nop 14598 if test -n "$ac_ct_LIPO"; then 14599 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14600 else 14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14602 for as_dir in $PATH 14603 do 14604 IFS=$as_save_IFS 14605 case $as_dir in #((( 14606 '') as_dir=./ ;; 14607 */) ;; 14608 *) as_dir=$as_dir/ ;; 14609 esac 14610 for ac_exec_ext in '' $ac_executable_extensions; do 14611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14612 ac_cv_prog_ac_ct_LIPO="lipo" 14613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14614 break 2 14615 fi 14616 done 14617 done 14618 IFS=$as_save_IFS 14619 14620 fi 14621 fi 14622 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14623 if test -n "$ac_ct_LIPO"; then 14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14625 printf "%s\n" "$ac_ct_LIPO" >&6; } 14626 else 14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14628 printf "%s\n" "no" >&6; } 14629 fi 14630 14631 if test "x$ac_ct_LIPO" = x; then 14632 LIPO=":" 14633 else 14634 case $cross_compiling:$ac_tool_warned in 14635 yes:) 14636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14638 ac_tool_warned=yes ;; 14639 esac 14640 LIPO=$ac_ct_LIPO 14641 fi 14642 else 14643 LIPO="$ac_cv_prog_LIPO" 14644 fi 14645 14646 if test -n "$ac_tool_prefix"; then 14647 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14648 set dummy ${ac_tool_prefix}otool; ac_word=$2 14649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14650 printf %s "checking for $ac_word... " >&6; } 14651 if test ${ac_cv_prog_OTOOL+y} 14652 then : 14653 printf %s "(cached) " >&6 14654 else $as_nop 14655 if test -n "$OTOOL"; then 14656 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14657 else 14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14659 for as_dir in $PATH 14660 do 14661 IFS=$as_save_IFS 14662 case $as_dir in #((( 14663 '') as_dir=./ ;; 14664 */) ;; 14665 *) as_dir=$as_dir/ ;; 14666 esac 14667 for ac_exec_ext in '' $ac_executable_extensions; do 14668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14669 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14671 break 2 14672 fi 14673 done 14674 done 14675 IFS=$as_save_IFS 14676 14677 fi 14678 fi 14679 OTOOL=$ac_cv_prog_OTOOL 14680 if test -n "$OTOOL"; then 14681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14682 printf "%s\n" "$OTOOL" >&6; } 14683 else 14684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14685 printf "%s\n" "no" >&6; } 14686 fi 14687 14688 14689 fi 14690 if test -z "$ac_cv_prog_OTOOL"; then 14691 ac_ct_OTOOL=$OTOOL 14692 # Extract the first word of "otool", so it can be a program name with args. 14693 set dummy otool; ac_word=$2 14694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14695 printf %s "checking for $ac_word... " >&6; } 14696 if test ${ac_cv_prog_ac_ct_OTOOL+y} 14697 then : 14698 printf %s "(cached) " >&6 14699 else $as_nop 14700 if test -n "$ac_ct_OTOOL"; then 14701 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14702 else 14703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14704 for as_dir in $PATH 14705 do 14706 IFS=$as_save_IFS 14707 case $as_dir in #((( 14708 '') as_dir=./ ;; 14709 */) ;; 14710 *) as_dir=$as_dir/ ;; 14711 esac 14712 for ac_exec_ext in '' $ac_executable_extensions; do 14713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14714 ac_cv_prog_ac_ct_OTOOL="otool" 14715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14716 break 2 14717 fi 14718 done 14719 done 14720 IFS=$as_save_IFS 14721 14722 fi 14723 fi 14724 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14725 if test -n "$ac_ct_OTOOL"; then 14726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14727 printf "%s\n" "$ac_ct_OTOOL" >&6; } 14728 else 14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14730 printf "%s\n" "no" >&6; } 14731 fi 14732 14733 if test "x$ac_ct_OTOOL" = x; then 14734 OTOOL=":" 14735 else 14736 case $cross_compiling:$ac_tool_warned in 14737 yes:) 14738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14739 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14740 ac_tool_warned=yes ;; 14741 esac 14742 OTOOL=$ac_ct_OTOOL 14743 fi 14744 else 14745 OTOOL="$ac_cv_prog_OTOOL" 14746 fi 14747 14748 if test -n "$ac_tool_prefix"; then 14749 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14750 set dummy ${ac_tool_prefix}otool64; ac_word=$2 14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14752 printf %s "checking for $ac_word... " >&6; } 14753 if test ${ac_cv_prog_OTOOL64+y} 14754 then : 14755 printf %s "(cached) " >&6 14756 else $as_nop 14757 if test -n "$OTOOL64"; then 14758 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14759 else 14760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14761 for as_dir in $PATH 14762 do 14763 IFS=$as_save_IFS 14764 case $as_dir in #((( 14765 '') as_dir=./ ;; 14766 */) ;; 14767 *) as_dir=$as_dir/ ;; 14768 esac 14769 for ac_exec_ext in '' $ac_executable_extensions; do 14770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14771 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14773 break 2 14774 fi 14775 done 14776 done 14777 IFS=$as_save_IFS 14778 14779 fi 14780 fi 14781 OTOOL64=$ac_cv_prog_OTOOL64 14782 if test -n "$OTOOL64"; then 14783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14784 printf "%s\n" "$OTOOL64" >&6; } 14785 else 14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14787 printf "%s\n" "no" >&6; } 14788 fi 14789 14790 14791 fi 14792 if test -z "$ac_cv_prog_OTOOL64"; then 14793 ac_ct_OTOOL64=$OTOOL64 14794 # Extract the first word of "otool64", so it can be a program name with args. 14795 set dummy otool64; ac_word=$2 14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14797 printf %s "checking for $ac_word... " >&6; } 14798 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14799 then : 14800 printf %s "(cached) " >&6 14801 else $as_nop 14802 if test -n "$ac_ct_OTOOL64"; then 14803 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14804 else 14805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14806 for as_dir in $PATH 14807 do 14808 IFS=$as_save_IFS 14809 case $as_dir in #((( 14810 '') as_dir=./ ;; 14811 */) ;; 14812 *) as_dir=$as_dir/ ;; 14813 esac 14814 for ac_exec_ext in '' $ac_executable_extensions; do 14815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14816 ac_cv_prog_ac_ct_OTOOL64="otool64" 14817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14818 break 2 14819 fi 14820 done 14821 done 14822 IFS=$as_save_IFS 14823 14824 fi 14825 fi 14826 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14827 if test -n "$ac_ct_OTOOL64"; then 14828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14829 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14830 else 14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14832 printf "%s\n" "no" >&6; } 14833 fi 14834 14835 if test "x$ac_ct_OTOOL64" = x; then 14836 OTOOL64=":" 14837 else 14838 case $cross_compiling:$ac_tool_warned in 14839 yes:) 14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14841 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14842 ac_tool_warned=yes ;; 14843 esac 14844 OTOOL64=$ac_ct_OTOOL64 14845 fi 14846 else 14847 OTOOL64="$ac_cv_prog_OTOOL64" 14848 fi 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14877 printf %s "checking for -single_module linker flag... " >&6; } 14878 if test ${lt_cv_apple_cc_single_mod+y} 14879 then : 14880 printf %s "(cached) " >&6 14881 else $as_nop 14882 lt_cv_apple_cc_single_mod=no 14883 if test -z "$LT_MULTI_MODULE"; then 14884 # By default we will add the -single_module flag. You can override 14885 # by either setting the environment variable LT_MULTI_MODULE 14886 # non-empty at configure time, or by adding -multi_module to the 14887 # link flags. 14888 rm -rf libconftest.dylib* 14889 echo "int foo(void){return 1;}" > conftest.c 14890 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14891 -dynamiclib -Wl,-single_module conftest.c" >&5 14892 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14893 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14894 _lt_result=$? 14895 # If there is a non-empty error log, and "single_module" 14896 # appears in it, assume the flag caused a linker warning 14897 if test -s conftest.err && $GREP single_module conftest.err; then 14898 cat conftest.err >&5 14899 # Otherwise, if the output was created with a 0 exit code from 14900 # the compiler, it worked. 14901 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14902 lt_cv_apple_cc_single_mod=yes 14903 else 14904 cat conftest.err >&5 14905 fi 14906 rm -rf libconftest.dylib* 14907 rm -f conftest.* 14908 fi 14909 fi 14910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14911 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14912 14913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14914 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14915 if test ${lt_cv_ld_exported_symbols_list+y} 14916 then : 14917 printf %s "(cached) " >&6 14918 else $as_nop 14919 lt_cv_ld_exported_symbols_list=no 14920 save_LDFLAGS=$LDFLAGS 14921 echo "_main" > conftest.sym 14922 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14924 /* end confdefs.h. */ 14925 14926 int 14927 main (void) 14928 { 14929 14930 ; 14931 return 0; 14932 } 14933 _ACEOF 14934 if ac_fn_c_try_link "$LINENO" 14935 then : 14936 lt_cv_ld_exported_symbols_list=yes 14937 else $as_nop 14938 lt_cv_ld_exported_symbols_list=no 14939 fi 14940 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14941 conftest$ac_exeext conftest.$ac_ext 14942 LDFLAGS=$save_LDFLAGS 14943 14944 fi 14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14946 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14947 14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14949 printf %s "checking for -force_load linker flag... " >&6; } 14950 if test ${lt_cv_ld_force_load+y} 14951 then : 14952 printf %s "(cached) " >&6 14953 else $as_nop 14954 lt_cv_ld_force_load=no 14955 cat > conftest.c << _LT_EOF 14956 int forced_loaded() { return 2;} 14957 _LT_EOF 14958 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14959 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14960 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14961 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14962 echo "$RANLIB libconftest.a" >&5 14963 $RANLIB libconftest.a 2>&5 14964 cat > conftest.c << _LT_EOF 14965 int main() { return 0;} 14966 _LT_EOF 14967 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14968 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14969 _lt_result=$? 14970 if test -s conftest.err && $GREP force_load conftest.err; then 14971 cat conftest.err >&5 14972 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14973 lt_cv_ld_force_load=yes 14974 else 14975 cat conftest.err >&5 14976 fi 14977 rm -f conftest.err libconftest.a conftest conftest.c 14978 rm -rf conftest.dSYM 14979 14980 fi 14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14982 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14983 case $host_os in 14984 rhapsody* | darwin1.[012]) 14985 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14986 darwin1.*) 14987 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14988 darwin*) 14989 case $MACOSX_DEPLOYMENT_TARGET,$host in 14990 10.[012],*|,*powerpc*-darwin[5-8]*) 14991 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14992 *) 14993 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14994 esac 14995 ;; 14996 esac 14997 if test yes = "$lt_cv_apple_cc_single_mod"; then 14998 _lt_dar_single_mod='$single_module' 14999 fi 15000 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15001 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15002 else 15003 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15004 fi 15005 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15006 _lt_dsymutil='~$DSYMUTIL $lib || :' 15007 else 15008 _lt_dsymutil= 15009 fi 15010 ;; 15011 esac 15012 15013 # func_munge_path_list VARIABLE PATH 15014 # ----------------------------------- 15015 # VARIABLE is name of variable containing _space_ separated list of 15016 # directories to be munged by the contents of PATH, which is string 15017 # having a format: 15018 # "DIR[:DIR]:" 15019 # string "DIR[ DIR]" will be prepended to VARIABLE 15020 # ":DIR[:DIR]" 15021 # string "DIR[ DIR]" will be appended to VARIABLE 15022 # "DIRP[:DIRP]::[DIRA:]DIRA" 15023 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15024 # "DIRA[ DIRA]" will be appended to VARIABLE 15025 # "DIR[:DIR]" 15026 # VARIABLE will be replaced by "DIR[ DIR]" 15027 func_munge_path_list () 15028 { 15029 case x$2 in 15030 x) 15031 ;; 15032 *:) 15033 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15034 ;; 15035 x:*) 15036 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15037 ;; 15038 *::*) 15039 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15040 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15041 ;; 15042 *) 15043 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15044 ;; 15045 esac 15046 } 15047 15048 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15049 " 15050 if test "x$ac_cv_header_dlfcn_h" = xyes 15051 then : 15052 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15053 15054 fi 15055 15056 15057 15058 15059 15060 # Set options 15061 15062 15063 15064 enable_dlopen=no 15065 15066 15067 enable_win32_dll=no 15068 15069 15070 # Check whether --enable-shared was given. 15071 if test ${enable_shared+y} 15072 then : 15073 enableval=$enable_shared; p=${PACKAGE-default} 15074 case $enableval in 15075 yes) enable_shared=yes ;; 15076 no) enable_shared=no ;; 15077 *) 15078 enable_shared=no 15079 # Look at the argument we got. We use all the common list separators. 15080 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15081 for pkg in $enableval; do 15082 IFS=$lt_save_ifs 15083 if test "X$pkg" = "X$p"; then 15084 enable_shared=yes 15085 fi 15086 done 15087 IFS=$lt_save_ifs 15088 ;; 15089 esac 15090 else $as_nop 15091 enable_shared=yes 15092 fi 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 # Check whether --with-pic was given. 15105 if test ${with_pic+y} 15106 then : 15107 withval=$with_pic; lt_p=${PACKAGE-default} 15108 case $withval in 15109 yes|no) pic_mode=$withval ;; 15110 *) 15111 pic_mode=default 15112 # Look at the argument we got. We use all the common list separators. 15113 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15114 for lt_pkg in $withval; do 15115 IFS=$lt_save_ifs 15116 if test "X$lt_pkg" = "X$lt_p"; then 15117 pic_mode=yes 15118 fi 15119 done 15120 IFS=$lt_save_ifs 15121 ;; 15122 esac 15123 else $as_nop 15124 pic_mode=default 15125 fi 15126 15127 15128 15129 15130 15131 15132 15133 15134 # Check whether --enable-fast-install was given. 15135 if test ${enable_fast_install+y} 15136 then : 15137 enableval=$enable_fast_install; p=${PACKAGE-default} 15138 case $enableval in 15139 yes) enable_fast_install=yes ;; 15140 no) enable_fast_install=no ;; 15141 *) 15142 enable_fast_install=no 15143 # Look at the argument we got. We use all the common list separators. 15144 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15145 for pkg in $enableval; do 15146 IFS=$lt_save_ifs 15147 if test "X$pkg" = "X$p"; then 15148 enable_fast_install=yes 15149 fi 15150 done 15151 IFS=$lt_save_ifs 15152 ;; 15153 esac 15154 else $as_nop 15155 enable_fast_install=yes 15156 fi 15157 15158 15159 15160 15161 15162 15163 15164 15165 shared_archive_member_spec= 15166 case $host,$enable_shared in 15167 power*-*-aix[5-9]*,yes) 15168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15169 printf %s "checking which variant of shared library versioning to provide... " >&6; } 15170 15171 # Check whether --with-aix-soname was given. 15172 if test ${with_aix_soname+y} 15173 then : 15174 withval=$with_aix_soname; case $withval in 15175 aix|svr4|both) 15176 ;; 15177 *) 15178 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15179 ;; 15180 esac 15181 lt_cv_with_aix_soname=$with_aix_soname 15182 else $as_nop 15183 if test ${lt_cv_with_aix_soname+y} 15184 then : 15185 printf %s "(cached) " >&6 15186 else $as_nop 15187 lt_cv_with_aix_soname=aix 15188 fi 15189 15190 with_aix_soname=$lt_cv_with_aix_soname 15191 fi 15192 15193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15194 printf "%s\n" "$with_aix_soname" >&6; } 15195 if test aix != "$with_aix_soname"; then 15196 # For the AIX way of multilib, we name the shared archive member 15197 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15198 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15199 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15200 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15201 if test 64 = "${OBJECT_MODE-32}"; then 15202 shared_archive_member_spec=shr_64 15203 else 15204 shared_archive_member_spec=shr 15205 fi 15206 fi 15207 ;; 15208 *) 15209 with_aix_soname=aix 15210 ;; 15211 esac 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 # This can be used to rebuild libtool when needed 15223 LIBTOOL_DEPS=$ltmain 15224 15225 # Always use our own libtool. 15226 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 test -z "$LN_S" && LN_S="ln -s" 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 if test -n "${ZSH_VERSION+set}"; then 15273 setopt NO_GLOB_SUBST 15274 fi 15275 15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15277 printf %s "checking for objdir... " >&6; } 15278 if test ${lt_cv_objdir+y} 15279 then : 15280 printf %s "(cached) " >&6 15281 else $as_nop 15282 rm -f .libs 2>/dev/null 15283 mkdir .libs 2>/dev/null 15284 if test -d .libs; then 15285 lt_cv_objdir=.libs 15286 else 15287 # MS-DOS does not allow filenames that begin with a dot. 15288 lt_cv_objdir=_libs 15289 fi 15290 rmdir .libs 2>/dev/null 15291 fi 15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15293 printf "%s\n" "$lt_cv_objdir" >&6; } 15294 objdir=$lt_cv_objdir 15295 15296 15297 15298 15299 15300 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15301 15302 15303 15304 15305 case $host_os in 15306 aix3*) 15307 # AIX sometimes has problems with the GCC collect2 program. For some 15308 # reason, if we set the COLLECT_NAMES environment variable, the problems 15309 # vanish in a puff of smoke. 15310 if test set != "${COLLECT_NAMES+set}"; then 15311 COLLECT_NAMES= 15312 export COLLECT_NAMES 15313 fi 15314 ;; 15315 esac 15316 15317 # Global variables: 15318 ofile=libtool 15319 can_build_shared=yes 15320 15321 # All known linkers require a '.a' archive for static linking (except MSVC and 15322 # ICC, which need '.lib'). 15323 libext=a 15324 15325 with_gnu_ld=$lt_cv_prog_gnu_ld 15326 15327 old_CC=$CC 15328 old_CFLAGS=$CFLAGS 15329 15330 # Set sane defaults for various variables 15331 test -z "$CC" && CC=cc 15332 test -z "$LTCC" && LTCC=$CC 15333 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15334 test -z "$LD" && LD=ld 15335 test -z "$ac_objext" && ac_objext=o 15336 15337 func_cc_basename $compiler 15338 cc_basename=$func_cc_basename_result 15339 15340 15341 # Only perform the check for file, if the check method requires it 15342 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15343 case $deplibs_check_method in 15344 file_magic*) 15345 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15347 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15348 if test ${lt_cv_path_MAGIC_CMD+y} 15349 then : 15350 printf %s "(cached) " >&6 15351 else $as_nop 15352 case $MAGIC_CMD in 15353 [\\/*] | ?:[\\/]*) 15354 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15355 ;; 15356 *) 15357 lt_save_MAGIC_CMD=$MAGIC_CMD 15358 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15360 for ac_dir in $ac_dummy; do 15361 IFS=$lt_save_ifs 15362 test -z "$ac_dir" && ac_dir=. 15363 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15364 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15365 if test -n "$file_magic_test_file"; then 15366 case $deplibs_check_method in 15367 "file_magic "*) 15368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15369 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15371 $EGREP "$file_magic_regex" > /dev/null; then 15372 : 15373 else 15374 cat <<_LT_EOF 1>&2 15375 15376 *** Warning: the command libtool uses to detect shared libraries, 15377 *** $file_magic_cmd, produces output that libtool cannot recognize. 15378 *** The result is that libtool may fail to recognize shared libraries 15379 *** as such. This will affect the creation of libtool libraries that 15380 *** depend on shared libraries, but programs linked with such libtool 15381 *** libraries will work regardless of this problem. Nevertheless, you 15382 *** may want to report the problem to your system manager and/or to 15383 *** bug-libtool@gnu.org 15384 15385 _LT_EOF 15386 fi ;; 15387 esac 15388 fi 15389 break 15390 fi 15391 done 15392 IFS=$lt_save_ifs 15393 MAGIC_CMD=$lt_save_MAGIC_CMD 15394 ;; 15395 esac 15396 fi 15397 15398 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15399 if test -n "$MAGIC_CMD"; then 15400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15401 printf "%s\n" "$MAGIC_CMD" >&6; } 15402 else 15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15404 printf "%s\n" "no" >&6; } 15405 fi 15406 15407 15408 15409 15410 15411 if test -z "$lt_cv_path_MAGIC_CMD"; then 15412 if test -n "$ac_tool_prefix"; then 15413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15414 printf %s "checking for file... " >&6; } 15415 if test ${lt_cv_path_MAGIC_CMD+y} 15416 then : 15417 printf %s "(cached) " >&6 15418 else $as_nop 15419 case $MAGIC_CMD in 15420 [\\/*] | ?:[\\/]*) 15421 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15422 ;; 15423 *) 15424 lt_save_MAGIC_CMD=$MAGIC_CMD 15425 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15427 for ac_dir in $ac_dummy; do 15428 IFS=$lt_save_ifs 15429 test -z "$ac_dir" && ac_dir=. 15430 if test -f "$ac_dir/file"; then 15431 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15432 if test -n "$file_magic_test_file"; then 15433 case $deplibs_check_method in 15434 "file_magic "*) 15435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15436 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15438 $EGREP "$file_magic_regex" > /dev/null; then 15439 : 15440 else 15441 cat <<_LT_EOF 1>&2 15442 15443 *** Warning: the command libtool uses to detect shared libraries, 15444 *** $file_magic_cmd, produces output that libtool cannot recognize. 15445 *** The result is that libtool may fail to recognize shared libraries 15446 *** as such. This will affect the creation of libtool libraries that 15447 *** depend on shared libraries, but programs linked with such libtool 15448 *** libraries will work regardless of this problem. Nevertheless, you 15449 *** may want to report the problem to your system manager and/or to 15450 *** bug-libtool@gnu.org 15451 15452 _LT_EOF 15453 fi ;; 15454 esac 15455 fi 15456 break 15457 fi 15458 done 15459 IFS=$lt_save_ifs 15460 MAGIC_CMD=$lt_save_MAGIC_CMD 15461 ;; 15462 esac 15463 fi 15464 15465 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15466 if test -n "$MAGIC_CMD"; then 15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15468 printf "%s\n" "$MAGIC_CMD" >&6; } 15469 else 15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15471 printf "%s\n" "no" >&6; } 15472 fi 15473 15474 15475 else 15476 MAGIC_CMD=: 15477 fi 15478 fi 15479 15480 fi 15481 ;; 15482 esac 15483 15484 # Use C for the default configuration in the libtool script 15485 15486 lt_save_CC=$CC 15487 ac_ext=c 15488 ac_cpp='$CPP $CPPFLAGS' 15489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15491 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15492 15493 15494 # Source file extension for C test sources. 15495 ac_ext=c 15496 15497 # Object file extension for compiled C test sources. 15498 objext=o 15499 objext=$objext 15500 15501 # Code to be used in simple compile tests 15502 lt_simple_compile_test_code="int some_variable = 0;" 15503 15504 # Code to be used in simple link tests 15505 lt_simple_link_test_code='int main(){return(0);}' 15506 15507 15508 15509 15510 15511 15512 15513 # If no C compiler was specified, use CC. 15514 LTCC=${LTCC-"$CC"} 15515 15516 # If no C compiler flags were specified, use CFLAGS. 15517 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15518 15519 # Allow CC to be a program name with arguments. 15520 compiler=$CC 15521 15522 # Save the default compiler, since it gets overwritten when the other 15523 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15524 compiler_DEFAULT=$CC 15525 15526 # save warnings/boilerplate of simple test code 15527 ac_outfile=conftest.$ac_objext 15528 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15529 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15530 _lt_compiler_boilerplate=`cat conftest.err` 15531 $RM conftest* 15532 15533 ac_outfile=conftest.$ac_objext 15534 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15535 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15536 _lt_linker_boilerplate=`cat conftest.err` 15537 $RM -r conftest* 15538 15539 15540 if test -n "$compiler"; then 15541 15542 lt_prog_compiler_no_builtin_flag= 15543 15544 if test yes = "$GCC"; then 15545 case $cc_basename in 15546 nvcc*) 15547 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15548 *) 15549 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15550 esac 15551 15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15553 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15554 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15555 then : 15556 printf %s "(cached) " >&6 15557 else $as_nop 15558 lt_cv_prog_compiler_rtti_exceptions=no 15559 ac_outfile=conftest.$ac_objext 15560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15561 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15562 # Insert the option either (1) after the last *FLAGS variable, or 15563 # (2) before a word containing "conftest.", or (3) at the end. 15564 # Note that $ac_compile itself does not contain backslashes and begins 15565 # with a dollar sign (not a hyphen), so the echo should work correctly. 15566 # The option is referenced via a variable to avoid confusing sed. 15567 lt_compile=`echo "$ac_compile" | $SED \ 15568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15570 -e 's:$: $lt_compiler_flag:'` 15571 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15572 (eval "$lt_compile" 2>conftest.err) 15573 ac_status=$? 15574 cat conftest.err >&5 15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15576 if (exit $ac_status) && test -s "$ac_outfile"; then 15577 # The compiler can only warn and ignore the option if not recognized 15578 # So say no if there are warnings other than the usual output. 15579 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15582 lt_cv_prog_compiler_rtti_exceptions=yes 15583 fi 15584 fi 15585 $RM conftest* 15586 15587 fi 15588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15589 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15590 15591 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15593 else 15594 : 15595 fi 15596 15597 fi 15598 15599 15600 15601 15602 15603 15604 lt_prog_compiler_wl= 15605 lt_prog_compiler_pic= 15606 lt_prog_compiler_static= 15607 15608 15609 if test yes = "$GCC"; then 15610 lt_prog_compiler_wl='-Wl,' 15611 lt_prog_compiler_static='-static' 15612 15613 case $host_os in 15614 aix*) 15615 # All AIX code is PIC. 15616 if test ia64 = "$host_cpu"; then 15617 # AIX 5 now supports IA64 processor 15618 lt_prog_compiler_static='-Bstatic' 15619 fi 15620 lt_prog_compiler_pic='-fPIC' 15621 ;; 15622 15623 amigaos*) 15624 case $host_cpu in 15625 powerpc) 15626 # see comment about AmigaOS4 .so support 15627 lt_prog_compiler_pic='-fPIC' 15628 ;; 15629 m68k) 15630 # FIXME: we need at least 68020 code to build shared libraries, but 15631 # adding the '-m68020' flag to GCC prevents building anything better, 15632 # like '-m68040'. 15633 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15634 ;; 15635 esac 15636 ;; 15637 15638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15639 # PIC is the default for these OSes. 15640 ;; 15641 15642 mingw* | cygwin* | pw32* | os2* | cegcc*) 15643 # This hack is so that the source file can tell whether it is being 15644 # built for inclusion in a dll (and should export symbols for example). 15645 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15646 # (--disable-auto-import) libraries 15647 lt_prog_compiler_pic='-DDLL_EXPORT' 15648 case $host_os in 15649 os2*) 15650 lt_prog_compiler_static='$wl-static' 15651 ;; 15652 esac 15653 ;; 15654 15655 darwin* | rhapsody*) 15656 # PIC is the default on this platform 15657 # Common symbols not allowed in MH_DYLIB files 15658 lt_prog_compiler_pic='-fno-common' 15659 ;; 15660 15661 haiku*) 15662 # PIC is the default for Haiku. 15663 # The "-static" flag exists, but is broken. 15664 lt_prog_compiler_static= 15665 ;; 15666 15667 hpux*) 15668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15670 # sets the default TLS model and affects inlining. 15671 case $host_cpu in 15672 hppa*64*) 15673 # +Z the default 15674 ;; 15675 *) 15676 lt_prog_compiler_pic='-fPIC' 15677 ;; 15678 esac 15679 ;; 15680 15681 interix[3-9]*) 15682 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15683 # Instead, we relocate shared libraries at runtime. 15684 ;; 15685 15686 msdosdjgpp*) 15687 # Just because we use GCC doesn't mean we suddenly get shared libraries 15688 # on systems that don't support them. 15689 lt_prog_compiler_can_build_shared=no 15690 enable_shared=no 15691 ;; 15692 15693 *nto* | *qnx*) 15694 # QNX uses GNU C++, but need to define -shared option too, otherwise 15695 # it will coredump. 15696 lt_prog_compiler_pic='-fPIC -shared' 15697 ;; 15698 15699 sysv4*MP*) 15700 if test -d /usr/nec; then 15701 lt_prog_compiler_pic=-Kconform_pic 15702 fi 15703 ;; 15704 15705 *) 15706 lt_prog_compiler_pic='-fPIC' 15707 ;; 15708 esac 15709 15710 case $cc_basename in 15711 nvcc*) # Cuda Compiler Driver 2.2 15712 lt_prog_compiler_wl='-Xlinker ' 15713 if test -n "$lt_prog_compiler_pic"; then 15714 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15715 fi 15716 ;; 15717 esac 15718 else 15719 # PORTME Check for flag to pass linker flags through the system compiler. 15720 case $host_os in 15721 aix*) 15722 lt_prog_compiler_wl='-Wl,' 15723 if test ia64 = "$host_cpu"; then 15724 # AIX 5 now supports IA64 processor 15725 lt_prog_compiler_static='-Bstatic' 15726 else 15727 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15728 fi 15729 ;; 15730 15731 darwin* | rhapsody*) 15732 # PIC is the default on this platform 15733 # Common symbols not allowed in MH_DYLIB files 15734 lt_prog_compiler_pic='-fno-common' 15735 case $cc_basename in 15736 nagfor*) 15737 # NAG Fortran compiler 15738 lt_prog_compiler_wl='-Wl,-Wl,,' 15739 lt_prog_compiler_pic='-PIC' 15740 lt_prog_compiler_static='-Bstatic' 15741 ;; 15742 esac 15743 ;; 15744 15745 mingw* | cygwin* | pw32* | os2* | cegcc*) 15746 # This hack is so that the source file can tell whether it is being 15747 # built for inclusion in a dll (and should export symbols for example). 15748 lt_prog_compiler_pic='-DDLL_EXPORT' 15749 case $host_os in 15750 os2*) 15751 lt_prog_compiler_static='$wl-static' 15752 ;; 15753 esac 15754 ;; 15755 15756 hpux9* | hpux10* | hpux11*) 15757 lt_prog_compiler_wl='-Wl,' 15758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15759 # not for PA HP-UX. 15760 case $host_cpu in 15761 hppa*64*|ia64*) 15762 # +Z the default 15763 ;; 15764 *) 15765 lt_prog_compiler_pic='+Z' 15766 ;; 15767 esac 15768 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15769 lt_prog_compiler_static='$wl-a ${wl}archive' 15770 ;; 15771 15772 irix5* | irix6* | nonstopux*) 15773 lt_prog_compiler_wl='-Wl,' 15774 # PIC (with -KPIC) is the default. 15775 lt_prog_compiler_static='-non_shared' 15776 ;; 15777 15778 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15779 case $cc_basename in 15780 # old Intel for x86_64, which still supported -KPIC. 15781 ecc*) 15782 lt_prog_compiler_wl='-Wl,' 15783 lt_prog_compiler_pic='-KPIC' 15784 lt_prog_compiler_static='-static' 15785 ;; 15786 # icc used to be incompatible with GCC. 15787 # ICC 10 doesn't accept -KPIC any more. 15788 icc* | ifort*) 15789 lt_prog_compiler_wl='-Wl,' 15790 lt_prog_compiler_pic='-fPIC' 15791 lt_prog_compiler_static='-static' 15792 ;; 15793 # Lahey Fortran 8.1. 15794 lf95*) 15795 lt_prog_compiler_wl='-Wl,' 15796 lt_prog_compiler_pic='--shared' 15797 lt_prog_compiler_static='--static' 15798 ;; 15799 nagfor*) 15800 # NAG Fortran compiler 15801 lt_prog_compiler_wl='-Wl,-Wl,,' 15802 lt_prog_compiler_pic='-PIC' 15803 lt_prog_compiler_static='-Bstatic' 15804 ;; 15805 tcc*) 15806 # Fabrice Bellard et al's Tiny C Compiler 15807 lt_prog_compiler_wl='-Wl,' 15808 lt_prog_compiler_pic='-fPIC' 15809 lt_prog_compiler_static='-static' 15810 ;; 15811 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15812 # Portland Group compilers (*not* the Pentium gcc compiler, 15813 # which looks to be a dead project) 15814 lt_prog_compiler_wl='-Wl,' 15815 lt_prog_compiler_pic='-fpic' 15816 lt_prog_compiler_static='-Bstatic' 15817 ;; 15818 ccc*) 15819 lt_prog_compiler_wl='-Wl,' 15820 # All Alpha code is PIC. 15821 lt_prog_compiler_static='-non_shared' 15822 ;; 15823 xl* | bgxl* | bgf* | mpixl*) 15824 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15825 lt_prog_compiler_wl='-Wl,' 15826 lt_prog_compiler_pic='-qpic' 15827 lt_prog_compiler_static='-qstaticlink' 15828 ;; 15829 *) 15830 case `$CC -V 2>&1 | $SED 5q` in 15831 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15832 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15833 lt_prog_compiler_pic='-KPIC' 15834 lt_prog_compiler_static='-Bstatic' 15835 lt_prog_compiler_wl='' 15836 ;; 15837 *Sun\ F* | *Sun*Fortran*) 15838 lt_prog_compiler_pic='-KPIC' 15839 lt_prog_compiler_static='-Bstatic' 15840 lt_prog_compiler_wl='-Qoption ld ' 15841 ;; 15842 *Sun\ C*) 15843 # Sun C 5.9 15844 lt_prog_compiler_pic='-KPIC' 15845 lt_prog_compiler_static='-Bstatic' 15846 lt_prog_compiler_wl='-Wl,' 15847 ;; 15848 *Intel*\ [CF]*Compiler*) 15849 lt_prog_compiler_wl='-Wl,' 15850 lt_prog_compiler_pic='-fPIC' 15851 lt_prog_compiler_static='-static' 15852 ;; 15853 *Portland\ Group*) 15854 lt_prog_compiler_wl='-Wl,' 15855 lt_prog_compiler_pic='-fpic' 15856 lt_prog_compiler_static='-Bstatic' 15857 ;; 15858 esac 15859 ;; 15860 esac 15861 ;; 15862 15863 newsos6) 15864 lt_prog_compiler_pic='-KPIC' 15865 lt_prog_compiler_static='-Bstatic' 15866 ;; 15867 15868 *nto* | *qnx*) 15869 # QNX uses GNU C++, but need to define -shared option too, otherwise 15870 # it will coredump. 15871 lt_prog_compiler_pic='-fPIC -shared' 15872 ;; 15873 15874 osf3* | osf4* | osf5*) 15875 lt_prog_compiler_wl='-Wl,' 15876 # All OSF/1 code is PIC. 15877 lt_prog_compiler_static='-non_shared' 15878 ;; 15879 15880 rdos*) 15881 lt_prog_compiler_static='-non_shared' 15882 ;; 15883 15884 solaris*) 15885 lt_prog_compiler_pic='-KPIC' 15886 lt_prog_compiler_static='-Bstatic' 15887 case $cc_basename in 15888 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15889 lt_prog_compiler_wl='-Qoption ld ';; 15890 *) 15891 lt_prog_compiler_wl='-Wl,';; 15892 esac 15893 ;; 15894 15895 sunos4*) 15896 lt_prog_compiler_wl='-Qoption ld ' 15897 lt_prog_compiler_pic='-PIC' 15898 lt_prog_compiler_static='-Bstatic' 15899 ;; 15900 15901 sysv4 | sysv4.2uw2* | sysv4.3*) 15902 lt_prog_compiler_wl='-Wl,' 15903 lt_prog_compiler_pic='-KPIC' 15904 lt_prog_compiler_static='-Bstatic' 15905 ;; 15906 15907 sysv4*MP*) 15908 if test -d /usr/nec; then 15909 lt_prog_compiler_pic='-Kconform_pic' 15910 lt_prog_compiler_static='-Bstatic' 15911 fi 15912 ;; 15913 15914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15915 lt_prog_compiler_wl='-Wl,' 15916 lt_prog_compiler_pic='-KPIC' 15917 lt_prog_compiler_static='-Bstatic' 15918 ;; 15919 15920 unicos*) 15921 lt_prog_compiler_wl='-Wl,' 15922 lt_prog_compiler_can_build_shared=no 15923 ;; 15924 15925 uts4*) 15926 lt_prog_compiler_pic='-pic' 15927 lt_prog_compiler_static='-Bstatic' 15928 ;; 15929 15930 *) 15931 lt_prog_compiler_can_build_shared=no 15932 ;; 15933 esac 15934 fi 15935 15936 case $host_os in 15937 # For platforms that do not support PIC, -DPIC is meaningless: 15938 *djgpp*) 15939 lt_prog_compiler_pic= 15940 ;; 15941 *) 15942 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15943 ;; 15944 esac 15945 15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15947 printf %s "checking for $compiler option to produce PIC... " >&6; } 15948 if test ${lt_cv_prog_compiler_pic+y} 15949 then : 15950 printf %s "(cached) " >&6 15951 else $as_nop 15952 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15953 fi 15954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15955 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15956 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15957 15958 # 15959 # Check to make sure the PIC flag actually works. 15960 # 15961 if test -n "$lt_prog_compiler_pic"; then 15962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15963 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15964 if test ${lt_cv_prog_compiler_pic_works+y} 15965 then : 15966 printf %s "(cached) " >&6 15967 else $as_nop 15968 lt_cv_prog_compiler_pic_works=no 15969 ac_outfile=conftest.$ac_objext 15970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15972 # Insert the option either (1) after the last *FLAGS variable, or 15973 # (2) before a word containing "conftest.", or (3) at the end. 15974 # Note that $ac_compile itself does not contain backslashes and begins 15975 # with a dollar sign (not a hyphen), so the echo should work correctly. 15976 # The option is referenced via a variable to avoid confusing sed. 15977 lt_compile=`echo "$ac_compile" | $SED \ 15978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15980 -e 's:$: $lt_compiler_flag:'` 15981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15982 (eval "$lt_compile" 2>conftest.err) 15983 ac_status=$? 15984 cat conftest.err >&5 15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15986 if (exit $ac_status) && test -s "$ac_outfile"; then 15987 # The compiler can only warn and ignore the option if not recognized 15988 # So say no if there are warnings other than the usual output. 15989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15992 lt_cv_prog_compiler_pic_works=yes 15993 fi 15994 fi 15995 $RM conftest* 15996 15997 fi 15998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15999 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16000 16001 if test yes = "$lt_cv_prog_compiler_pic_works"; then 16002 case $lt_prog_compiler_pic in 16003 "" | " "*) ;; 16004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16005 esac 16006 else 16007 lt_prog_compiler_pic= 16008 lt_prog_compiler_can_build_shared=no 16009 fi 16010 16011 fi 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 # 16024 # Check to make sure the static flag actually works. 16025 # 16026 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16028 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16029 if test ${lt_cv_prog_compiler_static_works+y} 16030 then : 16031 printf %s "(cached) " >&6 16032 else $as_nop 16033 lt_cv_prog_compiler_static_works=no 16034 save_LDFLAGS=$LDFLAGS 16035 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16036 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16038 # The linker can only warn and ignore the option if not recognized 16039 # So say no if there are warnings 16040 if test -s conftest.err; then 16041 # Append any errors to the config.log. 16042 cat conftest.err 1>&5 16043 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16045 if diff conftest.exp conftest.er2 >/dev/null; then 16046 lt_cv_prog_compiler_static_works=yes 16047 fi 16048 else 16049 lt_cv_prog_compiler_static_works=yes 16050 fi 16051 fi 16052 $RM -r conftest* 16053 LDFLAGS=$save_LDFLAGS 16054 16055 fi 16056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16057 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16058 16059 if test yes = "$lt_cv_prog_compiler_static_works"; then 16060 : 16061 else 16062 lt_prog_compiler_static= 16063 fi 16064 16065 16066 16067 16068 16069 16070 16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16072 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16073 if test ${lt_cv_prog_compiler_c_o+y} 16074 then : 16075 printf %s "(cached) " >&6 16076 else $as_nop 16077 lt_cv_prog_compiler_c_o=no 16078 $RM -r conftest 2>/dev/null 16079 mkdir conftest 16080 cd conftest 16081 mkdir out 16082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16083 16084 lt_compiler_flag="-o out/conftest2.$ac_objext" 16085 # Insert the option either (1) after the last *FLAGS variable, or 16086 # (2) before a word containing "conftest.", or (3) at the end. 16087 # Note that $ac_compile itself does not contain backslashes and begins 16088 # with a dollar sign (not a hyphen), so the echo should work correctly. 16089 lt_compile=`echo "$ac_compile" | $SED \ 16090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16092 -e 's:$: $lt_compiler_flag:'` 16093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16094 (eval "$lt_compile" 2>out/conftest.err) 16095 ac_status=$? 16096 cat out/conftest.err >&5 16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16098 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16099 then 16100 # The compiler can only warn and ignore the option if not recognized 16101 # So say no if there are warnings 16102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16105 lt_cv_prog_compiler_c_o=yes 16106 fi 16107 fi 16108 chmod u+w . 2>&5 16109 $RM conftest* 16110 # SGI C++ compiler will create directory out/ii_files/ for 16111 # template instantiation 16112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16113 $RM out/* && rmdir out 16114 cd .. 16115 $RM -r conftest 16116 $RM conftest* 16117 16118 fi 16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16120 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16121 16122 16123 16124 16125 16126 16127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16128 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16129 if test ${lt_cv_prog_compiler_c_o+y} 16130 then : 16131 printf %s "(cached) " >&6 16132 else $as_nop 16133 lt_cv_prog_compiler_c_o=no 16134 $RM -r conftest 2>/dev/null 16135 mkdir conftest 16136 cd conftest 16137 mkdir out 16138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16139 16140 lt_compiler_flag="-o out/conftest2.$ac_objext" 16141 # Insert the option either (1) after the last *FLAGS variable, or 16142 # (2) before a word containing "conftest.", or (3) at the end. 16143 # Note that $ac_compile itself does not contain backslashes and begins 16144 # with a dollar sign (not a hyphen), so the echo should work correctly. 16145 lt_compile=`echo "$ac_compile" | $SED \ 16146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16148 -e 's:$: $lt_compiler_flag:'` 16149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16150 (eval "$lt_compile" 2>out/conftest.err) 16151 ac_status=$? 16152 cat out/conftest.err >&5 16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16154 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16155 then 16156 # The compiler can only warn and ignore the option if not recognized 16157 # So say no if there are warnings 16158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16159 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16160 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16161 lt_cv_prog_compiler_c_o=yes 16162 fi 16163 fi 16164 chmod u+w . 2>&5 16165 $RM conftest* 16166 # SGI C++ compiler will create directory out/ii_files/ for 16167 # template instantiation 16168 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16169 $RM out/* && rmdir out 16170 cd .. 16171 $RM -r conftest 16172 $RM conftest* 16173 16174 fi 16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16176 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16177 16178 16179 16180 16181 hard_links=nottested 16182 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16183 # do not overwrite the value of need_locks provided by the user 16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16185 printf %s "checking if we can lock with hard links... " >&6; } 16186 hard_links=yes 16187 $RM conftest* 16188 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16189 touch conftest.a 16190 ln conftest.a conftest.b 2>&5 || hard_links=no 16191 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16193 printf "%s\n" "$hard_links" >&6; } 16194 if test no = "$hard_links"; then 16195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16196 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16197 need_locks=warn 16198 fi 16199 else 16200 need_locks=no 16201 fi 16202 16203 16204 16205 16206 16207 16208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16209 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16210 16211 runpath_var= 16212 allow_undefined_flag= 16213 always_export_symbols=no 16214 archive_cmds= 16215 archive_expsym_cmds= 16216 compiler_needs_object=no 16217 enable_shared_with_static_runtimes=no 16218 export_dynamic_flag_spec= 16219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16220 hardcode_automatic=no 16221 hardcode_direct=no 16222 hardcode_direct_absolute=no 16223 hardcode_libdir_flag_spec= 16224 hardcode_libdir_separator= 16225 hardcode_minus_L=no 16226 hardcode_shlibpath_var=unsupported 16227 inherit_rpath=no 16228 link_all_deplibs=unknown 16229 module_cmds= 16230 module_expsym_cmds= 16231 old_archive_from_new_cmds= 16232 old_archive_from_expsyms_cmds= 16233 thread_safe_flag_spec= 16234 whole_archive_flag_spec= 16235 # include_expsyms should be a list of space-separated symbols to be *always* 16236 # included in the symbol list 16237 include_expsyms= 16238 # exclude_expsyms can be an extended regexp of symbols to exclude 16239 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16240 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16241 # as well as any symbol that contains 'd'. 16242 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16243 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16244 # platforms (ab)use it in PIC code, but their linkers get confused if 16245 # the symbol is explicitly referenced. Since portable code cannot 16246 # rely on this symbol name, it's probably fine to never include it in 16247 # preloaded symbol tables. 16248 # Exclude shared library initialization/finalization symbols. 16249 extract_expsyms_cmds= 16250 16251 case $host_os in 16252 cygwin* | mingw* | pw32* | cegcc*) 16253 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16254 # When not using gcc, we currently assume that we are using 16255 # Microsoft Visual C++ or Intel C++ Compiler. 16256 if test yes != "$GCC"; then 16257 with_gnu_ld=no 16258 fi 16259 ;; 16260 interix*) 16261 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16262 with_gnu_ld=yes 16263 ;; 16264 openbsd* | bitrig*) 16265 with_gnu_ld=no 16266 ;; 16267 esac 16268 16269 ld_shlibs=yes 16270 16271 # On some targets, GNU ld is compatible enough with the native linker 16272 # that we're better off using the native interface for both. 16273 lt_use_gnu_ld_interface=no 16274 if test yes = "$with_gnu_ld"; then 16275 case $host_os in 16276 aix*) 16277 # The AIX port of GNU ld has always aspired to compatibility 16278 # with the native linker. However, as the warning in the GNU ld 16279 # block says, versions before 2.19.5* couldn't really create working 16280 # shared libraries, regardless of the interface used. 16281 case `$LD -v 2>&1` in 16282 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16283 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16284 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16285 *) 16286 lt_use_gnu_ld_interface=yes 16287 ;; 16288 esac 16289 ;; 16290 *) 16291 lt_use_gnu_ld_interface=yes 16292 ;; 16293 esac 16294 fi 16295 16296 if test yes = "$lt_use_gnu_ld_interface"; then 16297 # If archive_cmds runs LD, not CC, wlarc should be empty 16298 wlarc='$wl' 16299 16300 # Set some defaults for GNU ld with shared library support. These 16301 # are reset later if shared libraries are not supported. Putting them 16302 # here allows them to be overridden if necessary. 16303 runpath_var=LD_RUN_PATH 16304 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16305 export_dynamic_flag_spec='$wl--export-dynamic' 16306 # ancient GNU ld didn't support --whole-archive et. al. 16307 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16308 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16309 else 16310 whole_archive_flag_spec= 16311 fi 16312 supports_anon_versioning=no 16313 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16314 *GNU\ gold*) supports_anon_versioning=yes ;; 16315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16318 *\ 2.11.*) ;; # other 2.11 versions 16319 *) supports_anon_versioning=yes ;; 16320 esac 16321 16322 # See if GNU ld supports shared libraries. 16323 case $host_os in 16324 aix[3-9]*) 16325 # On AIX/PPC, the GNU linker is very broken 16326 if test ia64 != "$host_cpu"; then 16327 ld_shlibs=no 16328 cat <<_LT_EOF 1>&2 16329 16330 *** Warning: the GNU linker, at least up to release 2.19, is reported 16331 *** to be unable to reliably create shared libraries on AIX. 16332 *** Therefore, libtool is disabling shared libraries support. If you 16333 *** really care for shared libraries, you may want to install binutils 16334 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16335 *** You will then need to restart the configuration process. 16336 16337 _LT_EOF 16338 fi 16339 ;; 16340 16341 amigaos*) 16342 case $host_cpu in 16343 powerpc) 16344 # see comment about AmigaOS4 .so support 16345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16346 archive_expsym_cmds='' 16347 ;; 16348 m68k) 16349 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)' 16350 hardcode_libdir_flag_spec='-L$libdir' 16351 hardcode_minus_L=yes 16352 ;; 16353 esac 16354 ;; 16355 16356 beos*) 16357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16358 allow_undefined_flag=unsupported 16359 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16360 # support --undefined. This deserves some investigation. FIXME 16361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16362 else 16363 ld_shlibs=no 16364 fi 16365 ;; 16366 16367 cygwin* | mingw* | pw32* | cegcc*) 16368 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16369 # as there is no search path for DLLs. 16370 hardcode_libdir_flag_spec='-L$libdir' 16371 export_dynamic_flag_spec='$wl--export-all-symbols' 16372 allow_undefined_flag=unsupported 16373 always_export_symbols=no 16374 enable_shared_with_static_runtimes=yes 16375 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' 16376 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16377 16378 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16380 # If the export-symbols file already is a .def file, use it as 16381 # is; otherwise, prepend EXPORTS... 16382 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16383 cp $export_symbols $output_objdir/$soname.def; 16384 else 16385 echo EXPORTS > $output_objdir/$soname.def; 16386 cat $export_symbols >> $output_objdir/$soname.def; 16387 fi~ 16388 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16389 else 16390 ld_shlibs=no 16391 fi 16392 ;; 16393 16394 haiku*) 16395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16396 link_all_deplibs=yes 16397 ;; 16398 16399 os2*) 16400 hardcode_libdir_flag_spec='-L$libdir' 16401 hardcode_minus_L=yes 16402 allow_undefined_flag=unsupported 16403 shrext_cmds=.dll 16404 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16405 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16406 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16407 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16408 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16409 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16410 emximp -o $lib $output_objdir/$libname.def' 16411 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16412 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16413 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16414 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16415 prefix_cmds="$SED"~ 16416 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16417 prefix_cmds="$prefix_cmds -e 1d"; 16418 fi~ 16419 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16420 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16421 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16422 emximp -o $lib $output_objdir/$libname.def' 16423 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16424 enable_shared_with_static_runtimes=yes 16425 file_list_spec='@' 16426 ;; 16427 16428 interix[3-9]*) 16429 hardcode_direct=no 16430 hardcode_shlibpath_var=no 16431 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16432 export_dynamic_flag_spec='$wl-E' 16433 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16434 # Instead, shared libraries are loaded at an image base (0x10000000 by 16435 # default) and relocated if they conflict, which is a slow very memory 16436 # consuming and fragmenting process. To avoid this, we pick a random, 16437 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16438 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16439 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16440 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' 16441 ;; 16442 16443 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16444 tmp_diet=no 16445 if test linux-dietlibc = "$host_os"; then 16446 case $cc_basename in 16447 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16448 esac 16449 fi 16450 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16451 && test no = "$tmp_diet" 16452 then 16453 tmp_addflag=' $pic_flag' 16454 tmp_sharedflag='-shared' 16455 case $cc_basename,$host_cpu in 16456 pgcc*) # Portland Group C compiler 16457 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' 16458 tmp_addflag=' $pic_flag' 16459 ;; 16460 pgf77* | pgf90* | pgf95* | pgfortran*) 16461 # Portland Group f77 and f90 compilers 16462 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' 16463 tmp_addflag=' $pic_flag -Mnomain' ;; 16464 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16465 tmp_addflag=' -i_dynamic' ;; 16466 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16467 tmp_addflag=' -i_dynamic -nofor_main' ;; 16468 ifc* | ifort*) # Intel Fortran compiler 16469 tmp_addflag=' -nofor_main' ;; 16470 lf95*) # Lahey Fortran 8.1 16471 whole_archive_flag_spec= 16472 tmp_sharedflag='--shared' ;; 16473 nagfor*) # NAGFOR 5.3 16474 tmp_sharedflag='-Wl,-shared' ;; 16475 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16476 tmp_sharedflag='-qmkshrobj' 16477 tmp_addflag= ;; 16478 nvcc*) # Cuda Compiler Driver 2.2 16479 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' 16480 compiler_needs_object=yes 16481 ;; 16482 esac 16483 case `$CC -V 2>&1 | $SED 5q` in 16484 *Sun\ C*) # Sun C 5.9 16485 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' 16486 compiler_needs_object=yes 16487 tmp_sharedflag='-G' ;; 16488 *Sun\ F*) # Sun Fortran 8.3 16489 tmp_sharedflag='-G' ;; 16490 esac 16491 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16492 16493 if test yes = "$supports_anon_versioning"; then 16494 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16495 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16496 echo "local: *; };" >> $output_objdir/$libname.ver~ 16497 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16498 fi 16499 16500 case $cc_basename in 16501 tcc*) 16502 export_dynamic_flag_spec='-rdynamic' 16503 ;; 16504 xlf* | bgf* | bgxlf* | mpixlf*) 16505 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16506 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16507 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16508 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16509 if test yes = "$supports_anon_versioning"; then 16510 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16511 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16512 echo "local: *; };" >> $output_objdir/$libname.ver~ 16513 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16514 fi 16515 ;; 16516 esac 16517 else 16518 ld_shlibs=no 16519 fi 16520 ;; 16521 16522 netbsd*) 16523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16524 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16525 wlarc= 16526 else 16527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16529 fi 16530 ;; 16531 16532 solaris*) 16533 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16534 ld_shlibs=no 16535 cat <<_LT_EOF 1>&2 16536 16537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16538 *** create shared libraries on Solaris systems. Therefore, libtool 16539 *** is disabling shared libraries support. We urge you to upgrade GNU 16540 *** binutils to release 2.9.1 or newer. Another option is to modify 16541 *** your PATH or compiler configuration so that the native linker is 16542 *** used, and then restart. 16543 16544 _LT_EOF 16545 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16548 else 16549 ld_shlibs=no 16550 fi 16551 ;; 16552 16553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16554 case `$LD -v 2>&1` in 16555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16556 ld_shlibs=no 16557 cat <<_LT_EOF 1>&2 16558 16559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16560 *** reliably create shared libraries on SCO systems. Therefore, libtool 16561 *** is disabling shared libraries support. We urge you to upgrade GNU 16562 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16563 *** your PATH or compiler configuration so that the native linker is 16564 *** used, and then restart. 16565 16566 _LT_EOF 16567 ;; 16568 *) 16569 # For security reasons, it is highly recommended that you always 16570 # use absolute paths for naming shared libraries, and exclude the 16571 # DT_RUNPATH tag from executables and libraries. But doing so 16572 # requires that you compile everything twice, which is a pain. 16573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16574 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16577 else 16578 ld_shlibs=no 16579 fi 16580 ;; 16581 esac 16582 ;; 16583 16584 sunos4*) 16585 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16586 wlarc= 16587 hardcode_direct=yes 16588 hardcode_shlibpath_var=no 16589 ;; 16590 16591 *) 16592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16594 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16595 else 16596 ld_shlibs=no 16597 fi 16598 ;; 16599 esac 16600 16601 if test no = "$ld_shlibs"; then 16602 runpath_var= 16603 hardcode_libdir_flag_spec= 16604 export_dynamic_flag_spec= 16605 whole_archive_flag_spec= 16606 fi 16607 else 16608 # PORTME fill in a description of your system's linker (not GNU ld) 16609 case $host_os in 16610 aix3*) 16611 allow_undefined_flag=unsupported 16612 always_export_symbols=yes 16613 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' 16614 # Note: this linker hardcodes the directories in LIBPATH if there 16615 # are no directories specified by -L. 16616 hardcode_minus_L=yes 16617 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16618 # Neither direct hardcoding nor static linking is supported with a 16619 # broken collect2. 16620 hardcode_direct=unsupported 16621 fi 16622 ;; 16623 16624 aix[4-9]*) 16625 if test ia64 = "$host_cpu"; then 16626 # On IA64, the linker does run time linking by default, so we don't 16627 # have to do anything special. 16628 aix_use_runtimelinking=no 16629 exp_sym_flag='-Bexport' 16630 no_entry_flag= 16631 else 16632 # If we're using GNU nm, then we don't want the "-C" option. 16633 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16634 # Without the "-l" option, or with the "-B" option, AIX nm treats 16635 # weak defined symbols like other global defined symbols, whereas 16636 # GNU nm marks them as "W". 16637 # While the 'weak' keyword is ignored in the Export File, we need 16638 # it in the Import File for the 'aix-soname' feature, so we have 16639 # to replace the "-B" option with "-P" for AIX nm. 16640 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16641 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' 16642 else 16643 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' 16644 fi 16645 aix_use_runtimelinking=no 16646 16647 # Test if we are trying to use run time linking or normal 16648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16649 # have runtime linking enabled, and use it for executables. 16650 # For shared libraries, we enable/disable runtime linking 16651 # depending on the kind of the shared library created - 16652 # when "with_aix_soname,aix_use_runtimelinking" is: 16653 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16654 # "aix,yes" lib.so shared, rtl:yes, for executables 16655 # lib.a static archive 16656 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16657 # lib.a(lib.so.V) shared, rtl:no, for executables 16658 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16659 # lib.a(lib.so.V) shared, rtl:no 16660 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16661 # lib.a static archive 16662 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16663 for ld_flag in $LDFLAGS; do 16664 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16665 aix_use_runtimelinking=yes 16666 break 16667 fi 16668 done 16669 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16670 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16671 # so we don't have lib.a shared libs to link our executables. 16672 # We have to force runtime linking in this case. 16673 aix_use_runtimelinking=yes 16674 LDFLAGS="$LDFLAGS -Wl,-brtl" 16675 fi 16676 ;; 16677 esac 16678 16679 exp_sym_flag='-bexport' 16680 no_entry_flag='-bnoentry' 16681 fi 16682 16683 # When large executables or shared objects are built, AIX ld can 16684 # have problems creating the table of contents. If linking a library 16685 # or program results in "error TOC overflow" add -mminimal-toc to 16686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16688 16689 archive_cmds='' 16690 hardcode_direct=yes 16691 hardcode_direct_absolute=yes 16692 hardcode_libdir_separator=':' 16693 link_all_deplibs=yes 16694 file_list_spec='$wl-f,' 16695 case $with_aix_soname,$aix_use_runtimelinking in 16696 aix,*) ;; # traditional, no import file 16697 svr4,* | *,yes) # use import file 16698 # The Import File defines what to hardcode. 16699 hardcode_direct=no 16700 hardcode_direct_absolute=no 16701 ;; 16702 esac 16703 16704 if test yes = "$GCC"; then 16705 case $host_os in aix4.[012]|aix4.[012].*) 16706 # We only want to do this on AIX 4.2 and lower, the check 16707 # below for broken collect2 doesn't work under 4.3+ 16708 collect2name=`$CC -print-prog-name=collect2` 16709 if test -f "$collect2name" && 16710 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16711 then 16712 # We have reworked collect2 16713 : 16714 else 16715 # We have old collect2 16716 hardcode_direct=unsupported 16717 # It fails to find uninstalled libraries when the uninstalled 16718 # path is not listed in the libpath. Setting hardcode_minus_L 16719 # to unsupported forces relinking 16720 hardcode_minus_L=yes 16721 hardcode_libdir_flag_spec='-L$libdir' 16722 hardcode_libdir_separator= 16723 fi 16724 ;; 16725 esac 16726 shared_flag='-shared' 16727 if test yes = "$aix_use_runtimelinking"; then 16728 shared_flag="$shared_flag "'$wl-G' 16729 fi 16730 # Need to ensure runtime linking is disabled for the traditional 16731 # shared library, or the linker may eventually find shared libraries 16732 # /with/ Import File - we do not want to mix them. 16733 shared_flag_aix='-shared' 16734 shared_flag_svr4='-shared $wl-G' 16735 else 16736 # not using gcc 16737 if test ia64 = "$host_cpu"; then 16738 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16739 # chokes on -Wl,-G. The following line is correct: 16740 shared_flag='-G' 16741 else 16742 if test yes = "$aix_use_runtimelinking"; then 16743 shared_flag='$wl-G' 16744 else 16745 shared_flag='$wl-bM:SRE' 16746 fi 16747 shared_flag_aix='$wl-bM:SRE' 16748 shared_flag_svr4='$wl-G' 16749 fi 16750 fi 16751 16752 export_dynamic_flag_spec='$wl-bexpall' 16753 # It seems that -bexpall does not export symbols beginning with 16754 # underscore (_), so it is better to generate a list of symbols to export. 16755 always_export_symbols=yes 16756 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16757 # Warning - without using the other runtime loading flags (-brtl), 16758 # -berok will link without error, but may produce a broken library. 16759 allow_undefined_flag='-berok' 16760 # Determine the default libpath from the value encoded in an 16761 # empty executable. 16762 if test set = "${lt_cv_aix_libpath+set}"; then 16763 aix_libpath=$lt_cv_aix_libpath 16764 else 16765 if test ${lt_cv_aix_libpath_+y} 16766 then : 16767 printf %s "(cached) " >&6 16768 else $as_nop 16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16770 /* end confdefs.h. */ 16771 16772 int 16773 main (void) 16774 { 16775 16776 ; 16777 return 0; 16778 } 16779 _ACEOF 16780 if ac_fn_c_try_link "$LINENO" 16781 then : 16782 16783 lt_aix_libpath_sed=' 16784 /Import File Strings/,/^$/ { 16785 /^0/ { 16786 s/^0 *\([^ ]*\) *$/\1/ 16787 p 16788 } 16789 }' 16790 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16791 # Check for a 64-bit object if we didn't find anything. 16792 if test -z "$lt_cv_aix_libpath_"; then 16793 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16794 fi 16795 fi 16796 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16797 conftest$ac_exeext conftest.$ac_ext 16798 if test -z "$lt_cv_aix_libpath_"; then 16799 lt_cv_aix_libpath_=/usr/lib:/lib 16800 fi 16801 16802 fi 16803 16804 aix_libpath=$lt_cv_aix_libpath_ 16805 fi 16806 16807 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16808 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 16809 else 16810 if test ia64 = "$host_cpu"; then 16811 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16812 allow_undefined_flag="-z nodefs" 16813 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" 16814 else 16815 # Determine the default libpath from the value encoded in an 16816 # empty executable. 16817 if test set = "${lt_cv_aix_libpath+set}"; then 16818 aix_libpath=$lt_cv_aix_libpath 16819 else 16820 if test ${lt_cv_aix_libpath_+y} 16821 then : 16822 printf %s "(cached) " >&6 16823 else $as_nop 16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16825 /* end confdefs.h. */ 16826 16827 int 16828 main (void) 16829 { 16830 16831 ; 16832 return 0; 16833 } 16834 _ACEOF 16835 if ac_fn_c_try_link "$LINENO" 16836 then : 16837 16838 lt_aix_libpath_sed=' 16839 /Import File Strings/,/^$/ { 16840 /^0/ { 16841 s/^0 *\([^ ]*\) *$/\1/ 16842 p 16843 } 16844 }' 16845 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16846 # Check for a 64-bit object if we didn't find anything. 16847 if test -z "$lt_cv_aix_libpath_"; then 16848 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16849 fi 16850 fi 16851 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16852 conftest$ac_exeext conftest.$ac_ext 16853 if test -z "$lt_cv_aix_libpath_"; then 16854 lt_cv_aix_libpath_=/usr/lib:/lib 16855 fi 16856 16857 fi 16858 16859 aix_libpath=$lt_cv_aix_libpath_ 16860 fi 16861 16862 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16863 # Warning - without using the other run time loading flags, 16864 # -berok will link without error, but may produce a broken library. 16865 no_undefined_flag=' $wl-bernotok' 16866 allow_undefined_flag=' $wl-berok' 16867 if test yes = "$with_gnu_ld"; then 16868 # We only use this code for GNU lds that support --whole-archive. 16869 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16870 else 16871 # Exported symbols can be pulled into shared objects from archives 16872 whole_archive_flag_spec='$convenience' 16873 fi 16874 archive_cmds_need_lc=yes 16875 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16876 # -brtl affects multiple linker settings, -berok does not and is overridden later 16877 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16878 if test svr4 != "$with_aix_soname"; then 16879 # This is similar to how AIX traditionally builds its shared libraries. 16880 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' 16881 fi 16882 if test aix != "$with_aix_soname"; then 16883 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' 16884 else 16885 # used by -dlpreopen to get the symbols 16886 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16887 fi 16888 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16889 fi 16890 fi 16891 ;; 16892 16893 amigaos*) 16894 case $host_cpu in 16895 powerpc) 16896 # see comment about AmigaOS4 .so support 16897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16898 archive_expsym_cmds='' 16899 ;; 16900 m68k) 16901 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)' 16902 hardcode_libdir_flag_spec='-L$libdir' 16903 hardcode_minus_L=yes 16904 ;; 16905 esac 16906 ;; 16907 16908 bsdi[45]*) 16909 export_dynamic_flag_spec=-rdynamic 16910 ;; 16911 16912 cygwin* | mingw* | pw32* | cegcc*) 16913 # When not using gcc, we currently assume that we are using 16914 # Microsoft Visual C++ or Intel C++ Compiler. 16915 # hardcode_libdir_flag_spec is actually meaningless, as there is 16916 # no search path for DLLs. 16917 case $cc_basename in 16918 cl* | icl*) 16919 # Native MSVC or ICC 16920 hardcode_libdir_flag_spec=' ' 16921 allow_undefined_flag=unsupported 16922 always_export_symbols=yes 16923 file_list_spec='@' 16924 # Tell ltmain to make .lib files, not .a files. 16925 libext=lib 16926 # Tell ltmain to make .dll files, not .so files. 16927 shrext_cmds=.dll 16928 # FIXME: Setting linknames here is a bad hack. 16929 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16930 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16931 cp "$export_symbols" "$output_objdir/$soname.def"; 16932 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16933 else 16934 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16935 fi~ 16936 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16937 linknames=' 16938 # The linker will not automatically build a static lib if we build a DLL. 16939 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16940 enable_shared_with_static_runtimes=yes 16941 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16942 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16943 # Don't use ranlib 16944 old_postinstall_cmds='chmod 644 $oldlib' 16945 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16946 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16947 case $lt_outputfile in 16948 *.exe|*.EXE) ;; 16949 *) 16950 lt_outputfile=$lt_outputfile.exe 16951 lt_tool_outputfile=$lt_tool_outputfile.exe 16952 ;; 16953 esac~ 16954 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16955 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16956 $RM "$lt_outputfile.manifest"; 16957 fi' 16958 ;; 16959 *) 16960 # Assume MSVC and ICC wrapper 16961 hardcode_libdir_flag_spec=' ' 16962 allow_undefined_flag=unsupported 16963 # Tell ltmain to make .lib files, not .a files. 16964 libext=lib 16965 # Tell ltmain to make .dll files, not .so files. 16966 shrext_cmds=.dll 16967 # FIXME: Setting linknames here is a bad hack. 16968 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16969 # The linker will automatically build a .lib file if we build a DLL. 16970 old_archive_from_new_cmds='true' 16971 # FIXME: Should let the user specify the lib program. 16972 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16973 enable_shared_with_static_runtimes=yes 16974 ;; 16975 esac 16976 ;; 16977 16978 darwin* | rhapsody*) 16979 16980 16981 archive_cmds_need_lc=no 16982 hardcode_direct=no 16983 hardcode_automatic=yes 16984 hardcode_shlibpath_var=unsupported 16985 if test yes = "$lt_cv_ld_force_load"; then 16986 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\"`' 16987 16988 else 16989 whole_archive_flag_spec='' 16990 fi 16991 link_all_deplibs=yes 16992 allow_undefined_flag=$_lt_dar_allow_undefined 16993 case $cc_basename in 16994 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16995 *) _lt_dar_can_shared=$GCC ;; 16996 esac 16997 if test yes = "$_lt_dar_can_shared"; then 16998 output_verbose_link_cmd=func_echo_all 16999 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17000 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17001 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" 17002 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" 17003 17004 else 17005 ld_shlibs=no 17006 fi 17007 17008 ;; 17009 17010 dgux*) 17011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17012 hardcode_libdir_flag_spec='-L$libdir' 17013 hardcode_shlibpath_var=no 17014 ;; 17015 17016 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17017 # support. Future versions do this automatically, but an explicit c++rt0.o 17018 # does not break anything, and helps significantly (at the cost of a little 17019 # extra space). 17020 freebsd2.2*) 17021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17022 hardcode_libdir_flag_spec='-R$libdir' 17023 hardcode_direct=yes 17024 hardcode_shlibpath_var=no 17025 ;; 17026 17027 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17028 freebsd2.*) 17029 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17030 hardcode_direct=yes 17031 hardcode_minus_L=yes 17032 hardcode_shlibpath_var=no 17033 ;; 17034 17035 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17036 freebsd* | dragonfly* | midnightbsd*) 17037 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17038 hardcode_libdir_flag_spec='-R$libdir' 17039 hardcode_direct=yes 17040 hardcode_shlibpath_var=no 17041 ;; 17042 17043 hpux9*) 17044 if test yes = "$GCC"; then 17045 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' 17046 else 17047 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' 17048 fi 17049 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17050 hardcode_libdir_separator=: 17051 hardcode_direct=yes 17052 17053 # hardcode_minus_L: Not really in the search PATH, 17054 # but as the default location of the library. 17055 hardcode_minus_L=yes 17056 export_dynamic_flag_spec='$wl-E' 17057 ;; 17058 17059 hpux10*) 17060 if test yes,no = "$GCC,$with_gnu_ld"; then 17061 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17062 else 17063 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17064 fi 17065 if test no = "$with_gnu_ld"; then 17066 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17067 hardcode_libdir_separator=: 17068 hardcode_direct=yes 17069 hardcode_direct_absolute=yes 17070 export_dynamic_flag_spec='$wl-E' 17071 # hardcode_minus_L: Not really in the search PATH, 17072 # but as the default location of the library. 17073 hardcode_minus_L=yes 17074 fi 17075 ;; 17076 17077 hpux11*) 17078 if test yes,no = "$GCC,$with_gnu_ld"; then 17079 case $host_cpu in 17080 hppa*64*) 17081 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17082 ;; 17083 ia64*) 17084 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17085 ;; 17086 *) 17087 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17088 ;; 17089 esac 17090 else 17091 case $host_cpu in 17092 hppa*64*) 17093 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17094 ;; 17095 ia64*) 17096 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17097 ;; 17098 *) 17099 17100 # Older versions of the 11.00 compiler do not understand -b yet 17101 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17103 printf %s "checking if $CC understands -b... " >&6; } 17104 if test ${lt_cv_prog_compiler__b+y} 17105 then : 17106 printf %s "(cached) " >&6 17107 else $as_nop 17108 lt_cv_prog_compiler__b=no 17109 save_LDFLAGS=$LDFLAGS 17110 LDFLAGS="$LDFLAGS -b" 17111 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17112 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17113 # The linker can only warn and ignore the option if not recognized 17114 # So say no if there are warnings 17115 if test -s conftest.err; then 17116 # Append any errors to the config.log. 17117 cat conftest.err 1>&5 17118 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17120 if diff conftest.exp conftest.er2 >/dev/null; then 17121 lt_cv_prog_compiler__b=yes 17122 fi 17123 else 17124 lt_cv_prog_compiler__b=yes 17125 fi 17126 fi 17127 $RM -r conftest* 17128 LDFLAGS=$save_LDFLAGS 17129 17130 fi 17131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17132 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17133 17134 if test yes = "$lt_cv_prog_compiler__b"; then 17135 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17136 else 17137 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17138 fi 17139 17140 ;; 17141 esac 17142 fi 17143 if test no = "$with_gnu_ld"; then 17144 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17145 hardcode_libdir_separator=: 17146 17147 case $host_cpu in 17148 hppa*64*|ia64*) 17149 hardcode_direct=no 17150 hardcode_shlibpath_var=no 17151 ;; 17152 *) 17153 hardcode_direct=yes 17154 hardcode_direct_absolute=yes 17155 export_dynamic_flag_spec='$wl-E' 17156 17157 # hardcode_minus_L: Not really in the search PATH, 17158 # but as the default location of the library. 17159 hardcode_minus_L=yes 17160 ;; 17161 esac 17162 fi 17163 ;; 17164 17165 irix5* | irix6* | nonstopux*) 17166 if test yes = "$GCC"; then 17167 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' 17168 # Try to use the -exported_symbol ld option, if it does not 17169 # work, assume that -exports_file does not work either and 17170 # implicitly export all symbols. 17171 # This should be the same for all languages, so no per-tag cache variable. 17172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17173 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17174 if test ${lt_cv_irix_exported_symbol+y} 17175 then : 17176 printf %s "(cached) " >&6 17177 else $as_nop 17178 save_LDFLAGS=$LDFLAGS 17179 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17181 /* end confdefs.h. */ 17182 int foo (void) { return 0; } 17183 _ACEOF 17184 if ac_fn_c_try_link "$LINENO" 17185 then : 17186 lt_cv_irix_exported_symbol=yes 17187 else $as_nop 17188 lt_cv_irix_exported_symbol=no 17189 fi 17190 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17191 conftest$ac_exeext conftest.$ac_ext 17192 LDFLAGS=$save_LDFLAGS 17193 fi 17194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17195 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17196 if test yes = "$lt_cv_irix_exported_symbol"; then 17197 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' 17198 fi 17199 else 17200 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' 17201 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' 17202 fi 17203 archive_cmds_need_lc='no' 17204 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17205 hardcode_libdir_separator=: 17206 inherit_rpath=yes 17207 link_all_deplibs=yes 17208 ;; 17209 17210 linux*) 17211 case $cc_basename in 17212 tcc*) 17213 # Fabrice Bellard et al's Tiny C Compiler 17214 ld_shlibs=yes 17215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17216 ;; 17217 esac 17218 ;; 17219 17220 netbsd*) 17221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17223 else 17224 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17225 fi 17226 hardcode_libdir_flag_spec='-R$libdir' 17227 hardcode_direct=yes 17228 hardcode_shlibpath_var=no 17229 ;; 17230 17231 newsos6) 17232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17233 hardcode_direct=yes 17234 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17235 hardcode_libdir_separator=: 17236 hardcode_shlibpath_var=no 17237 ;; 17238 17239 *nto* | *qnx*) 17240 ;; 17241 17242 openbsd* | bitrig*) 17243 if test -f /usr/libexec/ld.so; then 17244 hardcode_direct=yes 17245 hardcode_shlibpath_var=no 17246 hardcode_direct_absolute=yes 17247 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17248 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17249 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17250 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17251 export_dynamic_flag_spec='$wl-E' 17252 else 17253 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17254 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17255 fi 17256 else 17257 ld_shlibs=no 17258 fi 17259 ;; 17260 17261 os2*) 17262 hardcode_libdir_flag_spec='-L$libdir' 17263 hardcode_minus_L=yes 17264 allow_undefined_flag=unsupported 17265 shrext_cmds=.dll 17266 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17267 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17268 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17269 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17270 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17271 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17272 emximp -o $lib $output_objdir/$libname.def' 17273 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17274 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17275 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17276 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17277 prefix_cmds="$SED"~ 17278 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17279 prefix_cmds="$prefix_cmds -e 1d"; 17280 fi~ 17281 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17282 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17283 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17284 emximp -o $lib $output_objdir/$libname.def' 17285 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17286 enable_shared_with_static_runtimes=yes 17287 file_list_spec='@' 17288 ;; 17289 17290 osf3*) 17291 if test yes = "$GCC"; then 17292 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17293 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' 17294 else 17295 allow_undefined_flag=' -expect_unresolved \*' 17296 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' 17297 fi 17298 archive_cmds_need_lc='no' 17299 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17300 hardcode_libdir_separator=: 17301 ;; 17302 17303 osf4* | osf5*) # as osf3* with the addition of -msym flag 17304 if test yes = "$GCC"; then 17305 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17306 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' 17307 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17308 else 17309 allow_undefined_flag=' -expect_unresolved \*' 17310 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' 17311 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~ 17312 $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' 17313 17314 # Both c and cxx compiler support -rpath directly 17315 hardcode_libdir_flag_spec='-rpath $libdir' 17316 fi 17317 archive_cmds_need_lc='no' 17318 hardcode_libdir_separator=: 17319 ;; 17320 17321 solaris*) 17322 no_undefined_flag=' -z defs' 17323 if test yes = "$GCC"; then 17324 wlarc='$wl' 17325 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17326 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17327 $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' 17328 else 17329 case `$CC -V 2>&1` in 17330 *"Compilers 5.0"*) 17331 wlarc='' 17332 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17334 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17335 ;; 17336 *) 17337 wlarc='$wl' 17338 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17340 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17341 ;; 17342 esac 17343 fi 17344 hardcode_libdir_flag_spec='-R$libdir' 17345 hardcode_shlibpath_var=no 17346 case $host_os in 17347 solaris2.[0-5] | solaris2.[0-5].*) ;; 17348 *) 17349 # The compiler driver will combine and reorder linker options, 17350 # but understands '-z linker_flag'. GCC discards it without '$wl', 17351 # but is careful enough not to reorder. 17352 # Supported since Solaris 2.6 (maybe 2.5.1?) 17353 if test yes = "$GCC"; then 17354 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17355 else 17356 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17357 fi 17358 ;; 17359 esac 17360 link_all_deplibs=yes 17361 ;; 17362 17363 sunos4*) 17364 if test sequent = "$host_vendor"; then 17365 # Use $CC to link under sequent, because it throws in some extra .o 17366 # files that make .init and .fini sections work. 17367 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17368 else 17369 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17370 fi 17371 hardcode_libdir_flag_spec='-L$libdir' 17372 hardcode_direct=yes 17373 hardcode_minus_L=yes 17374 hardcode_shlibpath_var=no 17375 ;; 17376 17377 sysv4) 17378 case $host_vendor in 17379 sni) 17380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17381 hardcode_direct=yes # is this really true??? 17382 ;; 17383 siemens) 17384 ## LD is ld it makes a PLAMLIB 17385 ## CC just makes a GrossModule. 17386 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17387 reload_cmds='$CC -r -o $output$reload_objs' 17388 hardcode_direct=no 17389 ;; 17390 motorola) 17391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17392 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17393 ;; 17394 esac 17395 runpath_var='LD_RUN_PATH' 17396 hardcode_shlibpath_var=no 17397 ;; 17398 17399 sysv4.3*) 17400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17401 hardcode_shlibpath_var=no 17402 export_dynamic_flag_spec='-Bexport' 17403 ;; 17404 17405 sysv4*MP*) 17406 if test -d /usr/nec; then 17407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17408 hardcode_shlibpath_var=no 17409 runpath_var=LD_RUN_PATH 17410 hardcode_runpath_var=yes 17411 ld_shlibs=yes 17412 fi 17413 ;; 17414 17415 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17416 no_undefined_flag='$wl-z,text' 17417 archive_cmds_need_lc=no 17418 hardcode_shlibpath_var=no 17419 runpath_var='LD_RUN_PATH' 17420 17421 if test yes = "$GCC"; then 17422 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17423 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17424 else 17425 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17426 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17427 fi 17428 ;; 17429 17430 sysv5* | sco3.2v5* | sco5v6*) 17431 # Note: We CANNOT use -z defs as we might desire, because we do not 17432 # link with -lc, and that would cause any symbols used from libc to 17433 # always be unresolved, which means just about no library would 17434 # ever link correctly. If we're not using GNU ld we use -z text 17435 # though, which does catch some bad symbols but isn't as heavy-handed 17436 # as -z defs. 17437 no_undefined_flag='$wl-z,text' 17438 allow_undefined_flag='$wl-z,nodefs' 17439 archive_cmds_need_lc=no 17440 hardcode_shlibpath_var=no 17441 hardcode_libdir_flag_spec='$wl-R,$libdir' 17442 hardcode_libdir_separator=':' 17443 link_all_deplibs=yes 17444 export_dynamic_flag_spec='$wl-Bexport' 17445 runpath_var='LD_RUN_PATH' 17446 17447 if test yes = "$GCC"; then 17448 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17449 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17450 else 17451 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17452 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17453 fi 17454 ;; 17455 17456 uts4*) 17457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17458 hardcode_libdir_flag_spec='-L$libdir' 17459 hardcode_shlibpath_var=no 17460 ;; 17461 17462 *) 17463 ld_shlibs=no 17464 ;; 17465 esac 17466 17467 if test sni = "$host_vendor"; then 17468 case $host in 17469 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17470 export_dynamic_flag_spec='$wl-Blargedynsym' 17471 ;; 17472 esac 17473 fi 17474 fi 17475 17476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17477 printf "%s\n" "$ld_shlibs" >&6; } 17478 test no = "$ld_shlibs" && can_build_shared=no 17479 17480 with_gnu_ld=$with_gnu_ld 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 # 17497 # Do we need to explicitly link libc? 17498 # 17499 case "x$archive_cmds_need_lc" in 17500 x|xyes) 17501 # Assume -lc should be added 17502 archive_cmds_need_lc=yes 17503 17504 if test yes,yes = "$GCC,$enable_shared"; then 17505 case $archive_cmds in 17506 *'~'*) 17507 # FIXME: we may have to deal with multi-command sequences. 17508 ;; 17509 '$CC '*) 17510 # Test whether the compiler implicitly links with -lc since on some 17511 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17512 # to ld, don't add -lc before -lgcc. 17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17514 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17515 if test ${lt_cv_archive_cmds_need_lc+y} 17516 then : 17517 printf %s "(cached) " >&6 17518 else $as_nop 17519 $RM conftest* 17520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17521 17522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17523 (eval $ac_compile) 2>&5 17524 ac_status=$? 17525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17526 test $ac_status = 0; } 2>conftest.err; then 17527 soname=conftest 17528 lib=conftest 17529 libobjs=conftest.$ac_objext 17530 deplibs= 17531 wl=$lt_prog_compiler_wl 17532 pic_flag=$lt_prog_compiler_pic 17533 compiler_flags=-v 17534 linker_flags=-v 17535 verstring= 17536 output_objdir=. 17537 libname=conftest 17538 lt_save_allow_undefined_flag=$allow_undefined_flag 17539 allow_undefined_flag= 17540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17541 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17542 ac_status=$? 17543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17544 test $ac_status = 0; } 17545 then 17546 lt_cv_archive_cmds_need_lc=no 17547 else 17548 lt_cv_archive_cmds_need_lc=yes 17549 fi 17550 allow_undefined_flag=$lt_save_allow_undefined_flag 17551 else 17552 cat conftest.err 1>&5 17553 fi 17554 $RM conftest* 17555 17556 fi 17557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17558 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17559 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17560 ;; 17561 esac 17562 fi 17563 ;; 17564 esac 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17718 printf %s "checking dynamic linker characteristics... " >&6; } 17719 17720 if test yes = "$GCC"; then 17721 case $host_os in 17722 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17723 *) lt_awk_arg='/^libraries:/' ;; 17724 esac 17725 case $host_os in 17726 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17727 *) lt_sed_strip_eq='s|=/|/|g' ;; 17728 esac 17729 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17730 case $lt_search_path_spec in 17731 *\;*) 17732 # if the path contains ";" then we assume it to be the separator 17733 # otherwise default to the standard path separator (i.e. ":") - it is 17734 # assumed that no part of a normal pathname contains ";" but that should 17735 # okay in the real world where ";" in dirpaths is itself problematic. 17736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17737 ;; 17738 *) 17739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17740 ;; 17741 esac 17742 # Ok, now we have the path, separated by spaces, we can step through it 17743 # and add multilib dir if necessary... 17744 lt_tmp_lt_search_path_spec= 17745 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17746 # ...but if some path component already ends with the multilib dir we assume 17747 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17748 case "$lt_multi_os_dir; $lt_search_path_spec " in 17749 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17750 lt_multi_os_dir= 17751 ;; 17752 esac 17753 for lt_sys_path in $lt_search_path_spec; do 17754 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17755 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17756 elif test -n "$lt_multi_os_dir"; then 17757 test -d "$lt_sys_path" && \ 17758 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17759 fi 17760 done 17761 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17762 BEGIN {RS = " "; FS = "/|\n";} { 17763 lt_foo = ""; 17764 lt_count = 0; 17765 for (lt_i = NF; lt_i > 0; lt_i--) { 17766 if ($lt_i != "" && $lt_i != ".") { 17767 if ($lt_i == "..") { 17768 lt_count++; 17769 } else { 17770 if (lt_count == 0) { 17771 lt_foo = "/" $lt_i lt_foo; 17772 } else { 17773 lt_count--; 17774 } 17775 } 17776 } 17777 } 17778 if (lt_foo != "") { lt_freq[lt_foo]++; } 17779 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17780 }'` 17781 # AWK program above erroneously prepends '/' to C:/dos/paths 17782 # for these hosts. 17783 case $host_os in 17784 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17785 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17786 esac 17787 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17788 else 17789 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17790 fi 17791 library_names_spec= 17792 libname_spec='lib$name' 17793 soname_spec= 17794 shrext_cmds=.so 17795 postinstall_cmds= 17796 postuninstall_cmds= 17797 finish_cmds= 17798 finish_eval= 17799 shlibpath_var= 17800 shlibpath_overrides_runpath=unknown 17801 version_type=none 17802 dynamic_linker="$host_os ld.so" 17803 sys_lib_dlsearch_path_spec="/lib /usr/lib" 17804 need_lib_prefix=unknown 17805 hardcode_into_libs=no 17806 17807 # when you set need_version to no, make sure it does not cause -set_version 17808 # flags to be left without arguments 17809 need_version=unknown 17810 17811 17812 17813 case $host_os in 17814 aix3*) 17815 version_type=linux # correct to gnu/linux during the next big refactor 17816 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17817 shlibpath_var=LIBPATH 17818 17819 # AIX 3 has no versioning support, so we append a major version to the name. 17820 soname_spec='$libname$release$shared_ext$major' 17821 ;; 17822 17823 aix[4-9]*) 17824 version_type=linux # correct to gnu/linux during the next big refactor 17825 need_lib_prefix=no 17826 need_version=no 17827 hardcode_into_libs=yes 17828 if test ia64 = "$host_cpu"; then 17829 # AIX 5 supports IA64 17830 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17831 shlibpath_var=LD_LIBRARY_PATH 17832 else 17833 # With GCC up to 2.95.x, collect2 would create an import file 17834 # for dependence libraries. The import file would start with 17835 # the line '#! .'. This would cause the generated library to 17836 # depend on '.', always an invalid library. This was fixed in 17837 # development snapshots of GCC prior to 3.0. 17838 case $host_os in 17839 aix4 | aix4.[01] | aix4.[01].*) 17840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17841 echo ' yes ' 17842 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17843 : 17844 else 17845 can_build_shared=no 17846 fi 17847 ;; 17848 esac 17849 # Using Import Files as archive members, it is possible to support 17850 # filename-based versioning of shared library archives on AIX. While 17851 # this would work for both with and without runtime linking, it will 17852 # prevent static linking of such archives. So we do filename-based 17853 # shared library versioning with .so extension only, which is used 17854 # when both runtime linking and shared linking is enabled. 17855 # Unfortunately, runtime linking may impact performance, so we do 17856 # not want this to be the default eventually. Also, we use the 17857 # versioned .so libs for executables only if there is the -brtl 17858 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17859 # To allow for filename-based versioning support, we need to create 17860 # libNAME.so.V as an archive file, containing: 17861 # *) an Import File, referring to the versioned filename of the 17862 # archive as well as the shared archive member, telling the 17863 # bitwidth (32 or 64) of that shared object, and providing the 17864 # list of exported symbols of that shared object, eventually 17865 # decorated with the 'weak' keyword 17866 # *) the shared object with the F_LOADONLY flag set, to really avoid 17867 # it being seen by the linker. 17868 # At run time we better use the real file rather than another symlink, 17869 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17870 17871 case $with_aix_soname,$aix_use_runtimelinking in 17872 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17873 # soname into executable. Probably we can add versioning support to 17874 # collect2, so additional links can be useful in future. 17875 aix,yes) # traditional libtool 17876 dynamic_linker='AIX unversionable lib.so' 17877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17878 # instead of lib<name>.a to let people know that these are not 17879 # typical AIX shared libraries. 17880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17881 ;; 17882 aix,no) # traditional AIX only 17883 dynamic_linker='AIX lib.a(lib.so.V)' 17884 # We preserve .a as extension for shared libraries through AIX4.2 17885 # and later when we are not doing run time linking. 17886 library_names_spec='$libname$release.a $libname.a' 17887 soname_spec='$libname$release$shared_ext$major' 17888 ;; 17889 svr4,*) # full svr4 only 17890 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17891 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17892 # We do not specify a path in Import Files, so LIBPATH fires. 17893 shlibpath_overrides_runpath=yes 17894 ;; 17895 *,yes) # both, prefer svr4 17896 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17897 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17898 # unpreferred sharedlib libNAME.a needs extra handling 17899 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"' 17900 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"' 17901 # We do not specify a path in Import Files, so LIBPATH fires. 17902 shlibpath_overrides_runpath=yes 17903 ;; 17904 *,no) # both, prefer aix 17905 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17906 library_names_spec='$libname$release.a $libname.a' 17907 soname_spec='$libname$release$shared_ext$major' 17908 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17909 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)' 17910 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"' 17911 ;; 17912 esac 17913 shlibpath_var=LIBPATH 17914 fi 17915 ;; 17916 17917 amigaos*) 17918 case $host_cpu in 17919 powerpc) 17920 # Since July 2007 AmigaOS4 officially supports .so libraries. 17921 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17923 ;; 17924 m68k) 17925 library_names_spec='$libname.ixlibrary $libname.a' 17926 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17927 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' 17928 ;; 17929 esac 17930 ;; 17931 17932 beos*) 17933 library_names_spec='$libname$shared_ext' 17934 dynamic_linker="$host_os ld.so" 17935 shlibpath_var=LIBRARY_PATH 17936 ;; 17937 17938 bsdi[45]*) 17939 version_type=linux # correct to gnu/linux during the next big refactor 17940 need_version=no 17941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17942 soname_spec='$libname$release$shared_ext$major' 17943 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17944 shlibpath_var=LD_LIBRARY_PATH 17945 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17946 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17947 # the default ld.so.conf also contains /usr/contrib/lib and 17948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17949 # libtool to hard-code these into programs 17950 ;; 17951 17952 cygwin* | mingw* | pw32* | cegcc*) 17953 version_type=windows 17954 shrext_cmds=.dll 17955 need_version=no 17956 need_lib_prefix=no 17957 17958 case $GCC,$cc_basename in 17959 yes,*) 17960 # gcc 17961 library_names_spec='$libname.dll.a' 17962 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17963 postinstall_cmds='base_file=`basename \$file`~ 17964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17965 dldir=$destdir/`dirname \$dlpath`~ 17966 test -d \$dldir || mkdir -p \$dldir~ 17967 $install_prog $dir/$dlname \$dldir/$dlname~ 17968 chmod a+x \$dldir/$dlname~ 17969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17971 fi' 17972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17973 dlpath=$dir/\$dldll~ 17974 $RM \$dlpath' 17975 shlibpath_overrides_runpath=yes 17976 17977 case $host_os in 17978 cygwin*) 17979 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17980 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17981 17982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17983 ;; 17984 mingw* | cegcc*) 17985 # MinGW DLLs use traditional 'lib' prefix 17986 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17987 ;; 17988 pw32*) 17989 # pw32 DLLs use 'pw' prefix rather than 'lib' 17990 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17991 ;; 17992 esac 17993 dynamic_linker='Win32 ld.exe' 17994 ;; 17995 17996 *,cl* | *,icl*) 17997 # Native MSVC or ICC 17998 libname_spec='$name' 17999 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18000 library_names_spec='$libname.dll.lib' 18001 18002 case $build_os in 18003 mingw*) 18004 sys_lib_search_path_spec= 18005 lt_save_ifs=$IFS 18006 IFS=';' 18007 for lt_path in $LIB 18008 do 18009 IFS=$lt_save_ifs 18010 # Let DOS variable expansion print the short 8.3 style file name. 18011 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18012 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18013 done 18014 IFS=$lt_save_ifs 18015 # Convert to MSYS style. 18016 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18017 ;; 18018 cygwin*) 18019 # Convert to unix form, then to dos form, then back to unix form 18020 # but this time dos style (no spaces!) so that the unix form looks 18021 # like /cygdrive/c/PROGRA~1:/cygdr... 18022 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18023 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18024 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18025 ;; 18026 *) 18027 sys_lib_search_path_spec=$LIB 18028 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18029 # It is most probably a Windows format PATH. 18030 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18031 else 18032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18033 fi 18034 # FIXME: find the short name or the path components, as spaces are 18035 # common. (e.g. "Program Files" -> "PROGRA~1") 18036 ;; 18037 esac 18038 18039 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18040 postinstall_cmds='base_file=`basename \$file`~ 18041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18042 dldir=$destdir/`dirname \$dlpath`~ 18043 test -d \$dldir || mkdir -p \$dldir~ 18044 $install_prog $dir/$dlname \$dldir/$dlname' 18045 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18046 dlpath=$dir/\$dldll~ 18047 $RM \$dlpath' 18048 shlibpath_overrides_runpath=yes 18049 dynamic_linker='Win32 link.exe' 18050 ;; 18051 18052 *) 18053 # Assume MSVC and ICC wrapper 18054 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18055 dynamic_linker='Win32 ld.exe' 18056 ;; 18057 esac 18058 # FIXME: first we should search . and the directory the executable is in 18059 shlibpath_var=PATH 18060 ;; 18061 18062 darwin* | rhapsody*) 18063 dynamic_linker="$host_os dyld" 18064 version_type=darwin 18065 need_lib_prefix=no 18066 need_version=no 18067 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18068 soname_spec='$libname$release$major$shared_ext' 18069 shlibpath_overrides_runpath=yes 18070 shlibpath_var=DYLD_LIBRARY_PATH 18071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18072 18073 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18075 ;; 18076 18077 dgux*) 18078 version_type=linux # correct to gnu/linux during the next big refactor 18079 need_lib_prefix=no 18080 need_version=no 18081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18082 soname_spec='$libname$release$shared_ext$major' 18083 shlibpath_var=LD_LIBRARY_PATH 18084 ;; 18085 18086 freebsd* | dragonfly* | midnightbsd*) 18087 # DragonFly does not have aout. When/if they implement a new 18088 # versioning mechanism, adjust this. 18089 if test -x /usr/bin/objformat; then 18090 objformat=`/usr/bin/objformat` 18091 else 18092 case $host_os in 18093 freebsd[23].*) objformat=aout ;; 18094 *) objformat=elf ;; 18095 esac 18096 fi 18097 version_type=freebsd-$objformat 18098 case $version_type in 18099 freebsd-elf*) 18100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18101 soname_spec='$libname$release$shared_ext$major' 18102 need_version=no 18103 need_lib_prefix=no 18104 ;; 18105 freebsd-*) 18106 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18107 need_version=yes 18108 ;; 18109 esac 18110 shlibpath_var=LD_LIBRARY_PATH 18111 case $host_os in 18112 freebsd2.*) 18113 shlibpath_overrides_runpath=yes 18114 ;; 18115 freebsd3.[01]* | freebsdelf3.[01]*) 18116 shlibpath_overrides_runpath=yes 18117 hardcode_into_libs=yes 18118 ;; 18119 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18120 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18121 shlibpath_overrides_runpath=no 18122 hardcode_into_libs=yes 18123 ;; 18124 *) # from 4.6 on, and DragonFly 18125 shlibpath_overrides_runpath=yes 18126 hardcode_into_libs=yes 18127 ;; 18128 esac 18129 ;; 18130 18131 haiku*) 18132 version_type=linux # correct to gnu/linux during the next big refactor 18133 need_lib_prefix=no 18134 need_version=no 18135 dynamic_linker="$host_os runtime_loader" 18136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18137 soname_spec='$libname$release$shared_ext$major' 18138 shlibpath_var=LIBRARY_PATH 18139 shlibpath_overrides_runpath=no 18140 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18141 hardcode_into_libs=yes 18142 ;; 18143 18144 hpux9* | hpux10* | hpux11*) 18145 # Give a soname corresponding to the major version so that dld.sl refuses to 18146 # link against other versions. 18147 version_type=sunos 18148 need_lib_prefix=no 18149 need_version=no 18150 case $host_cpu in 18151 ia64*) 18152 shrext_cmds='.so' 18153 hardcode_into_libs=yes 18154 dynamic_linker="$host_os dld.so" 18155 shlibpath_var=LD_LIBRARY_PATH 18156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18158 soname_spec='$libname$release$shared_ext$major' 18159 if test 32 = "$HPUX_IA64_MODE"; then 18160 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18161 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18162 else 18163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18164 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18165 fi 18166 ;; 18167 hppa*64*) 18168 shrext_cmds='.sl' 18169 hardcode_into_libs=yes 18170 dynamic_linker="$host_os dld.sl" 18171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18174 soname_spec='$libname$release$shared_ext$major' 18175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18177 ;; 18178 *) 18179 shrext_cmds='.sl' 18180 dynamic_linker="$host_os dld.sl" 18181 shlibpath_var=SHLIB_PATH 18182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18184 soname_spec='$libname$release$shared_ext$major' 18185 ;; 18186 esac 18187 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18188 postinstall_cmds='chmod 555 $lib' 18189 # or fails outright, so override atomically: 18190 install_override_mode=555 18191 ;; 18192 18193 interix[3-9]*) 18194 version_type=linux # correct to gnu/linux during the next big refactor 18195 need_lib_prefix=no 18196 need_version=no 18197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18198 soname_spec='$libname$release$shared_ext$major' 18199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18200 shlibpath_var=LD_LIBRARY_PATH 18201 shlibpath_overrides_runpath=no 18202 hardcode_into_libs=yes 18203 ;; 18204 18205 irix5* | irix6* | nonstopux*) 18206 case $host_os in 18207 nonstopux*) version_type=nonstopux ;; 18208 *) 18209 if test yes = "$lt_cv_prog_gnu_ld"; then 18210 version_type=linux # correct to gnu/linux during the next big refactor 18211 else 18212 version_type=irix 18213 fi ;; 18214 esac 18215 need_lib_prefix=no 18216 need_version=no 18217 soname_spec='$libname$release$shared_ext$major' 18218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18219 case $host_os in 18220 irix5* | nonstopux*) 18221 libsuff= shlibsuff= 18222 ;; 18223 *) 18224 case $LD in # libtool.m4 will add one of these switches to LD 18225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18226 libsuff= shlibsuff= libmagic=32-bit;; 18227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18228 libsuff=32 shlibsuff=N32 libmagic=N32;; 18229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18230 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18231 *) libsuff= shlibsuff= libmagic=never-match;; 18232 esac 18233 ;; 18234 esac 18235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18236 shlibpath_overrides_runpath=no 18237 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18238 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18239 hardcode_into_libs=yes 18240 ;; 18241 18242 # No shared lib support for Linux oldld, aout, or coff. 18243 linux*oldld* | linux*aout* | linux*coff*) 18244 dynamic_linker=no 18245 ;; 18246 18247 linux*android*) 18248 version_type=none # Android doesn't support versioned libraries. 18249 need_lib_prefix=no 18250 need_version=no 18251 library_names_spec='$libname$release$shared_ext' 18252 soname_spec='$libname$release$shared_ext' 18253 finish_cmds= 18254 shlibpath_var=LD_LIBRARY_PATH 18255 shlibpath_overrides_runpath=yes 18256 18257 # This implies no fast_install, which is unacceptable. 18258 # Some rework will be needed to allow for fast_install 18259 # before this can be enabled. 18260 hardcode_into_libs=yes 18261 18262 dynamic_linker='Android linker' 18263 # Don't embed -rpath directories since the linker doesn't support them. 18264 hardcode_libdir_flag_spec='-L$libdir' 18265 ;; 18266 18267 # This must be glibc/ELF. 18268 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18269 version_type=linux # correct to gnu/linux during the next big refactor 18270 need_lib_prefix=no 18271 need_version=no 18272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18273 soname_spec='$libname$release$shared_ext$major' 18274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18275 shlibpath_var=LD_LIBRARY_PATH 18276 shlibpath_overrides_runpath=no 18277 18278 # Some binutils ld are patched to set DT_RUNPATH 18279 if test ${lt_cv_shlibpath_overrides_runpath+y} 18280 then : 18281 printf %s "(cached) " >&6 18282 else $as_nop 18283 lt_cv_shlibpath_overrides_runpath=no 18284 save_LDFLAGS=$LDFLAGS 18285 save_libdir=$libdir 18286 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18287 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18289 /* end confdefs.h. */ 18290 18291 int 18292 main (void) 18293 { 18294 18295 ; 18296 return 0; 18297 } 18298 _ACEOF 18299 if ac_fn_c_try_link "$LINENO" 18300 then : 18301 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18302 then : 18303 lt_cv_shlibpath_overrides_runpath=yes 18304 fi 18305 fi 18306 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18307 conftest$ac_exeext conftest.$ac_ext 18308 LDFLAGS=$save_LDFLAGS 18309 libdir=$save_libdir 18310 18311 fi 18312 18313 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18314 18315 # This implies no fast_install, which is unacceptable. 18316 # Some rework will be needed to allow for fast_install 18317 # before this can be enabled. 18318 hardcode_into_libs=yes 18319 18320 # Ideally, we could use ldconfig to report *all* directores which are 18321 # searched for libraries, however this is still not possible. Aside from not 18322 # being certain /sbin/ldconfig is available, command 18323 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18324 # even though it is searched at run-time. Try to do the best guess by 18325 # appending ld.so.conf contents (and includes) to the search path. 18326 if test -f /etc/ld.so.conf; then 18327 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' ' '` 18328 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18329 fi 18330 18331 # We used to test for /lib/ld.so.1 and disable shared libraries on 18332 # powerpc, because MkLinux only supported shared libraries with the 18333 # GNU dynamic linker. Since this was broken with cross compilers, 18334 # most powerpc-linux boxes support dynamic linking these days and 18335 # people can always --disable-shared, the test was removed, and we 18336 # assume the GNU/Linux dynamic linker is in use. 18337 dynamic_linker='GNU/Linux ld.so' 18338 ;; 18339 18340 netbsd*) 18341 version_type=sunos 18342 need_lib_prefix=no 18343 need_version=no 18344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18345 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18347 dynamic_linker='NetBSD (a.out) ld.so' 18348 else 18349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18350 soname_spec='$libname$release$shared_ext$major' 18351 dynamic_linker='NetBSD ld.elf_so' 18352 fi 18353 shlibpath_var=LD_LIBRARY_PATH 18354 shlibpath_overrides_runpath=yes 18355 hardcode_into_libs=yes 18356 ;; 18357 18358 newsos6) 18359 version_type=linux # correct to gnu/linux during the next big refactor 18360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18361 shlibpath_var=LD_LIBRARY_PATH 18362 shlibpath_overrides_runpath=yes 18363 ;; 18364 18365 *nto* | *qnx*) 18366 version_type=qnx 18367 need_lib_prefix=no 18368 need_version=no 18369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18370 soname_spec='$libname$release$shared_ext$major' 18371 shlibpath_var=LD_LIBRARY_PATH 18372 shlibpath_overrides_runpath=no 18373 hardcode_into_libs=yes 18374 dynamic_linker='ldqnx.so' 18375 ;; 18376 18377 openbsd* | bitrig*) 18378 version_type=sunos 18379 sys_lib_dlsearch_path_spec=/usr/lib 18380 need_lib_prefix=no 18381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18382 need_version=no 18383 else 18384 need_version=yes 18385 fi 18386 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18388 shlibpath_var=LD_LIBRARY_PATH 18389 shlibpath_overrides_runpath=yes 18390 ;; 18391 18392 os2*) 18393 libname_spec='$name' 18394 version_type=windows 18395 shrext_cmds=.dll 18396 need_version=no 18397 need_lib_prefix=no 18398 # OS/2 can only load a DLL with a base name of 8 characters or less. 18399 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18400 v=$($ECHO $release$versuffix | tr -d .-); 18401 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18402 $ECHO $n$v`$shared_ext' 18403 library_names_spec='${libname}_dll.$libext' 18404 dynamic_linker='OS/2 ld.exe' 18405 shlibpath_var=BEGINLIBPATH 18406 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18408 postinstall_cmds='base_file=`basename \$file`~ 18409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18410 dldir=$destdir/`dirname \$dlpath`~ 18411 test -d \$dldir || mkdir -p \$dldir~ 18412 $install_prog $dir/$dlname \$dldir/$dlname~ 18413 chmod a+x \$dldir/$dlname~ 18414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18416 fi' 18417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18418 dlpath=$dir/\$dldll~ 18419 $RM \$dlpath' 18420 ;; 18421 18422 osf3* | osf4* | osf5*) 18423 version_type=osf 18424 need_lib_prefix=no 18425 need_version=no 18426 soname_spec='$libname$release$shared_ext$major' 18427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18428 shlibpath_var=LD_LIBRARY_PATH 18429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18431 ;; 18432 18433 rdos*) 18434 dynamic_linker=no 18435 ;; 18436 18437 solaris*) 18438 version_type=linux # correct to gnu/linux during the next big refactor 18439 need_lib_prefix=no 18440 need_version=no 18441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18442 soname_spec='$libname$release$shared_ext$major' 18443 shlibpath_var=LD_LIBRARY_PATH 18444 shlibpath_overrides_runpath=yes 18445 hardcode_into_libs=yes 18446 # ldd complains unless libraries are executable 18447 postinstall_cmds='chmod +x $lib' 18448 ;; 18449 18450 sunos4*) 18451 version_type=sunos 18452 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18454 shlibpath_var=LD_LIBRARY_PATH 18455 shlibpath_overrides_runpath=yes 18456 if test yes = "$with_gnu_ld"; then 18457 need_lib_prefix=no 18458 fi 18459 need_version=yes 18460 ;; 18461 18462 sysv4 | sysv4.3*) 18463 version_type=linux # correct to gnu/linux during the next big refactor 18464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18465 soname_spec='$libname$release$shared_ext$major' 18466 shlibpath_var=LD_LIBRARY_PATH 18467 case $host_vendor in 18468 sni) 18469 shlibpath_overrides_runpath=no 18470 need_lib_prefix=no 18471 runpath_var=LD_RUN_PATH 18472 ;; 18473 siemens) 18474 need_lib_prefix=no 18475 ;; 18476 motorola) 18477 need_lib_prefix=no 18478 need_version=no 18479 shlibpath_overrides_runpath=no 18480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18481 ;; 18482 esac 18483 ;; 18484 18485 sysv4*MP*) 18486 if test -d /usr/nec; then 18487 version_type=linux # correct to gnu/linux during the next big refactor 18488 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18489 soname_spec='$libname$shared_ext.$major' 18490 shlibpath_var=LD_LIBRARY_PATH 18491 fi 18492 ;; 18493 18494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18495 version_type=sco 18496 need_lib_prefix=no 18497 need_version=no 18498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18499 soname_spec='$libname$release$shared_ext$major' 18500 shlibpath_var=LD_LIBRARY_PATH 18501 shlibpath_overrides_runpath=yes 18502 hardcode_into_libs=yes 18503 if test yes = "$with_gnu_ld"; then 18504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18505 else 18506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18507 case $host_os in 18508 sco3.2v5*) 18509 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18510 ;; 18511 esac 18512 fi 18513 sys_lib_dlsearch_path_spec='/usr/lib' 18514 ;; 18515 18516 tpf*) 18517 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18518 version_type=linux # correct to gnu/linux during the next big refactor 18519 need_lib_prefix=no 18520 need_version=no 18521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18522 shlibpath_var=LD_LIBRARY_PATH 18523 shlibpath_overrides_runpath=no 18524 hardcode_into_libs=yes 18525 ;; 18526 18527 uts4*) 18528 version_type=linux # correct to gnu/linux during the next big refactor 18529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18530 soname_spec='$libname$release$shared_ext$major' 18531 shlibpath_var=LD_LIBRARY_PATH 18532 ;; 18533 18534 *) 18535 dynamic_linker=no 18536 ;; 18537 esac 18538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18539 printf "%s\n" "$dynamic_linker" >&6; } 18540 test no = "$dynamic_linker" && can_build_shared=no 18541 18542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18543 if test yes = "$GCC"; then 18544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18545 fi 18546 18547 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18548 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18549 fi 18550 18551 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18552 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18553 fi 18554 18555 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18556 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18557 18558 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18559 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18560 18561 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18562 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18661 printf %s "checking how to hardcode library paths into programs... " >&6; } 18662 hardcode_action= 18663 if test -n "$hardcode_libdir_flag_spec" || 18664 test -n "$runpath_var" || 18665 test yes = "$hardcode_automatic"; then 18666 18667 # We can hardcode non-existent directories. 18668 if test no != "$hardcode_direct" && 18669 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18670 # have to relink, otherwise we might link with an installed library 18671 # when we should be linking with a yet-to-be-installed one 18672 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18673 test no != "$hardcode_minus_L"; then 18674 # Linking always hardcodes the temporary library directory. 18675 hardcode_action=relink 18676 else 18677 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18678 hardcode_action=immediate 18679 fi 18680 else 18681 # We cannot hardcode anything, or else we can only hardcode existing 18682 # directories. 18683 hardcode_action=unsupported 18684 fi 18685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18686 printf "%s\n" "$hardcode_action" >&6; } 18687 18688 if test relink = "$hardcode_action" || 18689 test yes = "$inherit_rpath"; then 18690 # Fast installation is not supported 18691 enable_fast_install=no 18692 elif test yes = "$shlibpath_overrides_runpath" || 18693 test no = "$enable_shared"; then 18694 # Fast installation is not necessary 18695 enable_fast_install=needless 18696 fi 18697 18698 18699 18700 18701 18702 18703 if test yes != "$enable_dlopen"; then 18704 enable_dlopen=unknown 18705 enable_dlopen_self=unknown 18706 enable_dlopen_self_static=unknown 18707 else 18708 lt_cv_dlopen=no 18709 lt_cv_dlopen_libs= 18710 18711 case $host_os in 18712 beos*) 18713 lt_cv_dlopen=load_add_on 18714 lt_cv_dlopen_libs= 18715 lt_cv_dlopen_self=yes 18716 ;; 18717 18718 mingw* | pw32* | cegcc*) 18719 lt_cv_dlopen=LoadLibrary 18720 lt_cv_dlopen_libs= 18721 ;; 18722 18723 cygwin*) 18724 lt_cv_dlopen=dlopen 18725 lt_cv_dlopen_libs= 18726 ;; 18727 18728 darwin*) 18729 # if libdl is installed we need to link against it 18730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18731 printf %s "checking for dlopen in -ldl... " >&6; } 18732 if test ${ac_cv_lib_dl_dlopen+y} 18733 then : 18734 printf %s "(cached) " >&6 18735 else $as_nop 18736 ac_check_lib_save_LIBS=$LIBS 18737 LIBS="-ldl $LIBS" 18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18739 /* end confdefs.h. */ 18740 18741 /* Override any GCC internal prototype to avoid an error. 18742 Use char because int might match the return type of a GCC 18743 builtin and then its argument prototype would still apply. */ 18744 char dlopen (); 18745 int 18746 main (void) 18747 { 18748 return dlopen (); 18749 ; 18750 return 0; 18751 } 18752 _ACEOF 18753 if ac_fn_c_try_link "$LINENO" 18754 then : 18755 ac_cv_lib_dl_dlopen=yes 18756 else $as_nop 18757 ac_cv_lib_dl_dlopen=no 18758 fi 18759 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18760 conftest$ac_exeext conftest.$ac_ext 18761 LIBS=$ac_check_lib_save_LIBS 18762 fi 18763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18764 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18765 if test "x$ac_cv_lib_dl_dlopen" = xyes 18766 then : 18767 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18768 else $as_nop 18769 18770 lt_cv_dlopen=dyld 18771 lt_cv_dlopen_libs= 18772 lt_cv_dlopen_self=yes 18773 18774 fi 18775 18776 ;; 18777 18778 tpf*) 18779 # Don't try to run any link tests for TPF. We know it's impossible 18780 # because TPF is a cross-compiler, and we know how we open DSOs. 18781 lt_cv_dlopen=dlopen 18782 lt_cv_dlopen_libs= 18783 lt_cv_dlopen_self=no 18784 ;; 18785 18786 *) 18787 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18788 if test "x$ac_cv_func_shl_load" = xyes 18789 then : 18790 lt_cv_dlopen=shl_load 18791 else $as_nop 18792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18793 printf %s "checking for shl_load in -ldld... " >&6; } 18794 if test ${ac_cv_lib_dld_shl_load+y} 18795 then : 18796 printf %s "(cached) " >&6 18797 else $as_nop 18798 ac_check_lib_save_LIBS=$LIBS 18799 LIBS="-ldld $LIBS" 18800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18801 /* end confdefs.h. */ 18802 18803 /* Override any GCC internal prototype to avoid an error. 18804 Use char because int might match the return type of a GCC 18805 builtin and then its argument prototype would still apply. */ 18806 char shl_load (); 18807 int 18808 main (void) 18809 { 18810 return shl_load (); 18811 ; 18812 return 0; 18813 } 18814 _ACEOF 18815 if ac_fn_c_try_link "$LINENO" 18816 then : 18817 ac_cv_lib_dld_shl_load=yes 18818 else $as_nop 18819 ac_cv_lib_dld_shl_load=no 18820 fi 18821 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18822 conftest$ac_exeext conftest.$ac_ext 18823 LIBS=$ac_check_lib_save_LIBS 18824 fi 18825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18826 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18827 if test "x$ac_cv_lib_dld_shl_load" = xyes 18828 then : 18829 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18830 else $as_nop 18831 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18832 if test "x$ac_cv_func_dlopen" = xyes 18833 then : 18834 lt_cv_dlopen=dlopen 18835 else $as_nop 18836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18837 printf %s "checking for dlopen in -ldl... " >&6; } 18838 if test ${ac_cv_lib_dl_dlopen+y} 18839 then : 18840 printf %s "(cached) " >&6 18841 else $as_nop 18842 ac_check_lib_save_LIBS=$LIBS 18843 LIBS="-ldl $LIBS" 18844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18845 /* end confdefs.h. */ 18846 18847 /* Override any GCC internal prototype to avoid an error. 18848 Use char because int might match the return type of a GCC 18849 builtin and then its argument prototype would still apply. */ 18850 char dlopen (); 18851 int 18852 main (void) 18853 { 18854 return dlopen (); 18855 ; 18856 return 0; 18857 } 18858 _ACEOF 18859 if ac_fn_c_try_link "$LINENO" 18860 then : 18861 ac_cv_lib_dl_dlopen=yes 18862 else $as_nop 18863 ac_cv_lib_dl_dlopen=no 18864 fi 18865 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18866 conftest$ac_exeext conftest.$ac_ext 18867 LIBS=$ac_check_lib_save_LIBS 18868 fi 18869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18870 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18871 if test "x$ac_cv_lib_dl_dlopen" = xyes 18872 then : 18873 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18874 else $as_nop 18875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18876 printf %s "checking for dlopen in -lsvld... " >&6; } 18877 if test ${ac_cv_lib_svld_dlopen+y} 18878 then : 18879 printf %s "(cached) " >&6 18880 else $as_nop 18881 ac_check_lib_save_LIBS=$LIBS 18882 LIBS="-lsvld $LIBS" 18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18884 /* end confdefs.h. */ 18885 18886 /* Override any GCC internal prototype to avoid an error. 18887 Use char because int might match the return type of a GCC 18888 builtin and then its argument prototype would still apply. */ 18889 char dlopen (); 18890 int 18891 main (void) 18892 { 18893 return dlopen (); 18894 ; 18895 return 0; 18896 } 18897 _ACEOF 18898 if ac_fn_c_try_link "$LINENO" 18899 then : 18900 ac_cv_lib_svld_dlopen=yes 18901 else $as_nop 18902 ac_cv_lib_svld_dlopen=no 18903 fi 18904 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18905 conftest$ac_exeext conftest.$ac_ext 18906 LIBS=$ac_check_lib_save_LIBS 18907 fi 18908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18909 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18910 if test "x$ac_cv_lib_svld_dlopen" = xyes 18911 then : 18912 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18913 else $as_nop 18914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18915 printf %s "checking for dld_link in -ldld... " >&6; } 18916 if test ${ac_cv_lib_dld_dld_link+y} 18917 then : 18918 printf %s "(cached) " >&6 18919 else $as_nop 18920 ac_check_lib_save_LIBS=$LIBS 18921 LIBS="-ldld $LIBS" 18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18923 /* end confdefs.h. */ 18924 18925 /* Override any GCC internal prototype to avoid an error. 18926 Use char because int might match the return type of a GCC 18927 builtin and then its argument prototype would still apply. */ 18928 char dld_link (); 18929 int 18930 main (void) 18931 { 18932 return dld_link (); 18933 ; 18934 return 0; 18935 } 18936 _ACEOF 18937 if ac_fn_c_try_link "$LINENO" 18938 then : 18939 ac_cv_lib_dld_dld_link=yes 18940 else $as_nop 18941 ac_cv_lib_dld_dld_link=no 18942 fi 18943 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18944 conftest$ac_exeext conftest.$ac_ext 18945 LIBS=$ac_check_lib_save_LIBS 18946 fi 18947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18948 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18949 if test "x$ac_cv_lib_dld_dld_link" = xyes 18950 then : 18951 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18952 fi 18953 18954 18955 fi 18956 18957 18958 fi 18959 18960 18961 fi 18962 18963 18964 fi 18965 18966 18967 fi 18968 18969 ;; 18970 esac 18971 18972 if test no = "$lt_cv_dlopen"; then 18973 enable_dlopen=no 18974 else 18975 enable_dlopen=yes 18976 fi 18977 18978 case $lt_cv_dlopen in 18979 dlopen) 18980 save_CPPFLAGS=$CPPFLAGS 18981 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18982 18983 save_LDFLAGS=$LDFLAGS 18984 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18985 18986 save_LIBS=$LIBS 18987 LIBS="$lt_cv_dlopen_libs $LIBS" 18988 18989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18990 printf %s "checking whether a program can dlopen itself... " >&6; } 18991 if test ${lt_cv_dlopen_self+y} 18992 then : 18993 printf %s "(cached) " >&6 18994 else $as_nop 18995 if test yes = "$cross_compiling"; then : 18996 lt_cv_dlopen_self=cross 18997 else 18998 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18999 lt_status=$lt_dlunknown 19000 cat > conftest.$ac_ext <<_LT_EOF 19001 #line $LINENO "configure" 19002 #include "confdefs.h" 19003 19004 #if HAVE_DLFCN_H 19005 #include <dlfcn.h> 19006 #endif 19007 19008 #include <stdio.h> 19009 19010 #ifdef RTLD_GLOBAL 19011 # define LT_DLGLOBAL RTLD_GLOBAL 19012 #else 19013 # ifdef DL_GLOBAL 19014 # define LT_DLGLOBAL DL_GLOBAL 19015 # else 19016 # define LT_DLGLOBAL 0 19017 # endif 19018 #endif 19019 19020 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19021 find out it does not work in some platform. */ 19022 #ifndef LT_DLLAZY_OR_NOW 19023 # ifdef RTLD_LAZY 19024 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19025 # else 19026 # ifdef DL_LAZY 19027 # define LT_DLLAZY_OR_NOW DL_LAZY 19028 # else 19029 # ifdef RTLD_NOW 19030 # define LT_DLLAZY_OR_NOW RTLD_NOW 19031 # else 19032 # ifdef DL_NOW 19033 # define LT_DLLAZY_OR_NOW DL_NOW 19034 # else 19035 # define LT_DLLAZY_OR_NOW 0 19036 # endif 19037 # endif 19038 # endif 19039 # endif 19040 #endif 19041 19042 /* When -fvisibility=hidden is used, assume the code has been annotated 19043 correspondingly for the symbols needed. */ 19044 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19045 int fnord () __attribute__((visibility("default"))); 19046 #endif 19047 19048 int fnord () { return 42; } 19049 int main () 19050 { 19051 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19052 int status = $lt_dlunknown; 19053 19054 if (self) 19055 { 19056 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19057 else 19058 { 19059 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19060 else puts (dlerror ()); 19061 } 19062 /* dlclose (self); */ 19063 } 19064 else 19065 puts (dlerror ()); 19066 19067 return status; 19068 } 19069 _LT_EOF 19070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19071 (eval $ac_link) 2>&5 19072 ac_status=$? 19073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19074 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19075 (./conftest; exit; ) >&5 2>/dev/null 19076 lt_status=$? 19077 case x$lt_status in 19078 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19079 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19080 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19081 esac 19082 else : 19083 # compilation failed 19084 lt_cv_dlopen_self=no 19085 fi 19086 fi 19087 rm -fr conftest* 19088 19089 19090 fi 19091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19092 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19093 19094 if test yes = "$lt_cv_dlopen_self"; then 19095 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19097 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19098 if test ${lt_cv_dlopen_self_static+y} 19099 then : 19100 printf %s "(cached) " >&6 19101 else $as_nop 19102 if test yes = "$cross_compiling"; then : 19103 lt_cv_dlopen_self_static=cross 19104 else 19105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19106 lt_status=$lt_dlunknown 19107 cat > conftest.$ac_ext <<_LT_EOF 19108 #line $LINENO "configure" 19109 #include "confdefs.h" 19110 19111 #if HAVE_DLFCN_H 19112 #include <dlfcn.h> 19113 #endif 19114 19115 #include <stdio.h> 19116 19117 #ifdef RTLD_GLOBAL 19118 # define LT_DLGLOBAL RTLD_GLOBAL 19119 #else 19120 # ifdef DL_GLOBAL 19121 # define LT_DLGLOBAL DL_GLOBAL 19122 # else 19123 # define LT_DLGLOBAL 0 19124 # endif 19125 #endif 19126 19127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19128 find out it does not work in some platform. */ 19129 #ifndef LT_DLLAZY_OR_NOW 19130 # ifdef RTLD_LAZY 19131 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19132 # else 19133 # ifdef DL_LAZY 19134 # define LT_DLLAZY_OR_NOW DL_LAZY 19135 # else 19136 # ifdef RTLD_NOW 19137 # define LT_DLLAZY_OR_NOW RTLD_NOW 19138 # else 19139 # ifdef DL_NOW 19140 # define LT_DLLAZY_OR_NOW DL_NOW 19141 # else 19142 # define LT_DLLAZY_OR_NOW 0 19143 # endif 19144 # endif 19145 # endif 19146 # endif 19147 #endif 19148 19149 /* When -fvisibility=hidden is used, assume the code has been annotated 19150 correspondingly for the symbols needed. */ 19151 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19152 int fnord () __attribute__((visibility("default"))); 19153 #endif 19154 19155 int fnord () { return 42; } 19156 int main () 19157 { 19158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19159 int status = $lt_dlunknown; 19160 19161 if (self) 19162 { 19163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19164 else 19165 { 19166 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19167 else puts (dlerror ()); 19168 } 19169 /* dlclose (self); */ 19170 } 19171 else 19172 puts (dlerror ()); 19173 19174 return status; 19175 } 19176 _LT_EOF 19177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19178 (eval $ac_link) 2>&5 19179 ac_status=$? 19180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19181 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19182 (./conftest; exit; ) >&5 2>/dev/null 19183 lt_status=$? 19184 case x$lt_status in 19185 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19186 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19187 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19188 esac 19189 else : 19190 # compilation failed 19191 lt_cv_dlopen_self_static=no 19192 fi 19193 fi 19194 rm -fr conftest* 19195 19196 19197 fi 19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19199 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19200 fi 19201 19202 CPPFLAGS=$save_CPPFLAGS 19203 LDFLAGS=$save_LDFLAGS 19204 LIBS=$save_LIBS 19205 ;; 19206 esac 19207 19208 case $lt_cv_dlopen_self in 19209 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19210 *) enable_dlopen_self=unknown ;; 19211 esac 19212 19213 case $lt_cv_dlopen_self_static in 19214 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19215 *) enable_dlopen_self_static=unknown ;; 19216 esac 19217 fi 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 striplib= 19236 old_striplib= 19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19238 printf %s "checking whether stripping libraries is possible... " >&6; } 19239 if test -z "$STRIP"; then 19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19241 printf "%s\n" "no" >&6; } 19242 else 19243 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19244 old_striplib="$STRIP --strip-debug" 19245 striplib="$STRIP --strip-unneeded" 19246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19247 printf "%s\n" "yes" >&6; } 19248 else 19249 case $host_os in 19250 darwin*) 19251 # FIXME - insert some real tests, host_os isn't really good enough 19252 striplib="$STRIP -x" 19253 old_striplib="$STRIP -S" 19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19255 printf "%s\n" "yes" >&6; } 19256 ;; 19257 freebsd*) 19258 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19259 old_striplib="$STRIP --strip-debug" 19260 striplib="$STRIP --strip-unneeded" 19261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19262 printf "%s\n" "yes" >&6; } 19263 else 19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19265 printf "%s\n" "no" >&6; } 19266 fi 19267 ;; 19268 *) 19269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19270 printf "%s\n" "no" >&6; } 19271 ;; 19272 esac 19273 fi 19274 fi 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 # Report what library types will actually be built 19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19289 printf %s "checking if libtool supports shared libraries... " >&6; } 19290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19291 printf "%s\n" "$can_build_shared" >&6; } 19292 19293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19294 printf %s "checking whether to build shared libraries... " >&6; } 19295 test no = "$can_build_shared" && enable_shared=no 19296 19297 # On AIX, shared libraries and static libraries use the same namespace, and 19298 # are all built from PIC. 19299 case $host_os in 19300 aix3*) 19301 test yes = "$enable_shared" && enable_static=no 19302 if test -n "$RANLIB"; then 19303 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19304 postinstall_cmds='$RANLIB $lib' 19305 fi 19306 ;; 19307 19308 aix[4-9]*) 19309 if test ia64 != "$host_cpu"; then 19310 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19311 yes,aix,yes) ;; # shared object as lib.so file only 19312 yes,svr4,*) ;; # shared object as lib.so archive member only 19313 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19314 esac 19315 fi 19316 ;; 19317 esac 19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19319 printf "%s\n" "$enable_shared" >&6; } 19320 19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19322 printf %s "checking whether to build static libraries... " >&6; } 19323 # Make sure either enable_shared or enable_static is yes. 19324 test yes = "$enable_shared" || enable_static=yes 19325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19326 printf "%s\n" "$enable_static" >&6; } 19327 19328 19329 19330 19331 fi 19332 ac_ext=c 19333 ac_cpp='$CPP $CPPFLAGS' 19334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19336 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19337 19338 CC=$lt_save_CC 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 ac_config_commands="$ac_config_commands libtool" 19355 19356 19357 19358 19359 # Only expand once: 19360 19361 19362 19363 19364 19365 # Define a configure option for an alternate module directory 19366 19367 # Check whether --with-xorg-module-dir was given. 19368 if test ${with_xorg_module_dir+y} 19369 then : 19370 withval=$with_xorg_module_dir; moduledir="$withval" 19371 else $as_nop 19372 moduledir="$libdir/xorg/modules" 19373 fi 19374 19375 19376 # Check whether --enable-dri was given. 19377 if test ${enable_dri+y} 19378 then : 19379 enableval=$enable_dri; DRI="$enableval" 19380 else $as_nop 19381 DRI=auto 19382 fi 19383 19384 19385 # Check whether --enable-exa was given. 19386 if test ${enable_exa+y} 19387 then : 19388 enableval=$enable_exa; EXA="$enableval" 19389 else $as_nop 19390 EXA=yes 19391 fi 19392 19393 19394 # Store the list of server defined optional extensions in REQUIRED_MODULES 19395 19396 19397 SAVE_CFLAGS="$CFLAGS" 19398 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19400 /* end confdefs.h. */ 19401 19402 #include "xorg-server.h" 19403 #if !defined RANDR 19404 #error RANDR not defined 19405 #endif 19406 19407 int 19408 main (void) 19409 { 19410 19411 ; 19412 return 0; 19413 } 19414 _ACEOF 19415 if ac_fn_c_try_compile "$LINENO" 19416 then : 19417 _EXT_CHECK=yes 19418 else $as_nop 19419 _EXT_CHECK=no 19420 fi 19421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19422 CFLAGS="$SAVE_CFLAGS" 19423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19424 printf %s "checking if RANDR is defined... " >&6; } 19425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19426 printf "%s\n" "$_EXT_CHECK" >&6; } 19427 if test "$_EXT_CHECK" != no; then 19428 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19429 fi 19430 19431 19432 19433 SAVE_CFLAGS="$CFLAGS" 19434 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19436 /* end confdefs.h. */ 19437 19438 #include "xorg-server.h" 19439 #if !defined RENDER 19440 #error RENDER not defined 19441 #endif 19442 19443 int 19444 main (void) 19445 { 19446 19447 ; 19448 return 0; 19449 } 19450 _ACEOF 19451 if ac_fn_c_try_compile "$LINENO" 19452 then : 19453 _EXT_CHECK=yes 19454 else $as_nop 19455 _EXT_CHECK=no 19456 fi 19457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19458 CFLAGS="$SAVE_CFLAGS" 19459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19460 printf %s "checking if RENDER is defined... " >&6; } 19461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19462 printf "%s\n" "$_EXT_CHECK" >&6; } 19463 if test "$_EXT_CHECK" != no; then 19464 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19465 fi 19466 19467 19468 19469 SAVE_CFLAGS="$CFLAGS" 19470 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19472 /* end confdefs.h. */ 19473 19474 #include "xorg-server.h" 19475 #if !defined XV 19476 #error XV not defined 19477 #endif 19478 19479 int 19480 main (void) 19481 { 19482 19483 ; 19484 return 0; 19485 } 19486 _ACEOF 19487 if ac_fn_c_try_compile "$LINENO" 19488 then : 19489 _EXT_CHECK=yes 19490 else $as_nop 19491 _EXT_CHECK=no 19492 fi 19493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19494 CFLAGS="$SAVE_CFLAGS" 19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19496 printf %s "checking if XV is defined... " >&6; } 19497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19498 printf "%s\n" "$_EXT_CHECK" >&6; } 19499 if test "$_EXT_CHECK" != no; then 19500 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19501 fi 19502 19503 19504 19505 SAVE_CFLAGS="$CFLAGS" 19506 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19508 /* end confdefs.h. */ 19509 19510 #include "xorg-server.h" 19511 #if !defined DPMSExtension 19512 #error DPMSExtension not defined 19513 #endif 19514 19515 int 19516 main (void) 19517 { 19518 19519 ; 19520 return 0; 19521 } 19522 _ACEOF 19523 if ac_fn_c_try_compile "$LINENO" 19524 then : 19525 _EXT_CHECK=yes 19526 else $as_nop 19527 _EXT_CHECK=no 19528 fi 19529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19530 CFLAGS="$SAVE_CFLAGS" 19531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19532 printf %s "checking if DPMSExtension is defined... " >&6; } 19533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19534 printf "%s\n" "$_EXT_CHECK" >&6; } 19535 if test "$_EXT_CHECK" != no; then 19536 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19537 fi 19538 19539 19540 # Obtain compiler/linker options for the driver dependencies 19541 19542 pkg_failed=no 19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19544 printf %s "checking for XORG... " >&6; } 19545 19546 if test -n "$XORG_CFLAGS"; then 19547 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19548 elif test -n "$PKG_CONFIG"; then 19549 if test -n "$PKG_CONFIG" && \ 19550 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19551 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5 19552 ac_status=$? 19553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19554 test $ac_status = 0; }; then 19555 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19556 test "x$?" != "x0" && pkg_failed=yes 19557 else 19558 pkg_failed=yes 19559 fi 19560 else 19561 pkg_failed=untried 19562 fi 19563 if test -n "$XORG_LIBS"; then 19564 pkg_cv_XORG_LIBS="$XORG_LIBS" 19565 elif test -n "$PKG_CONFIG"; then 19566 if test -n "$PKG_CONFIG" && \ 19567 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19568 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5 19569 ac_status=$? 19570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19571 test $ac_status = 0; }; then 19572 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19573 test "x$?" != "x0" && pkg_failed=yes 19574 else 19575 pkg_failed=yes 19576 fi 19577 else 19578 pkg_failed=untried 19579 fi 19580 19581 19582 19583 if test $pkg_failed = yes; then 19584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19585 printf "%s\n" "no" >&6; } 19586 19587 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19588 _pkg_short_errors_supported=yes 19589 else 19590 _pkg_short_errors_supported=no 19591 fi 19592 if test $_pkg_short_errors_supported = yes; then 19593 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19594 else 19595 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19596 fi 19597 # Put the nasty error message in config.log where it belongs 19598 echo "$XORG_PKG_ERRORS" >&5 19599 19600 as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met: 19601 19602 $XORG_PKG_ERRORS 19603 19604 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19605 installed software in a non-standard prefix. 19606 19607 Alternatively, you may set the environment variables XORG_CFLAGS 19608 and XORG_LIBS to avoid the need to call pkg-config. 19609 See the pkg-config man page for more details." "$LINENO" 5 19610 elif test $pkg_failed = untried; then 19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19612 printf "%s\n" "no" >&6; } 19613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19614 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19615 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19616 is in your PATH or set the PKG_CONFIG environment variable to the full 19617 path to pkg-config. 19618 19619 Alternatively, you may set the environment variables XORG_CFLAGS 19620 and XORG_LIBS to avoid the need to call pkg-config. 19621 See the pkg-config man page for more details. 19622 19623 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19624 See \`config.log' for more details" "$LINENO" 5; } 19625 else 19626 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19627 XORG_LIBS=$pkg_cv_XORG_LIBS 19628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19629 printf "%s\n" "yes" >&6; } 19630 19631 fi 19632 19633 pkg_failed=no 19634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19635 printf %s "checking for XEXT... " >&6; } 19636 19637 if test -n "$XEXT_CFLAGS"; then 19638 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19639 elif test -n "$PKG_CONFIG"; then 19640 if test -n "$PKG_CONFIG" && \ 19641 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19642 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19643 ac_status=$? 19644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19645 test $ac_status = 0; }; then 19646 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19647 test "x$?" != "x0" && pkg_failed=yes 19648 else 19649 pkg_failed=yes 19650 fi 19651 else 19652 pkg_failed=untried 19653 fi 19654 if test -n "$XEXT_LIBS"; then 19655 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19656 elif test -n "$PKG_CONFIG"; then 19657 if test -n "$PKG_CONFIG" && \ 19658 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19659 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19660 ac_status=$? 19661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19662 test $ac_status = 0; }; then 19663 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19664 test "x$?" != "x0" && pkg_failed=yes 19665 else 19666 pkg_failed=yes 19667 fi 19668 else 19669 pkg_failed=untried 19670 fi 19671 19672 19673 19674 if test $pkg_failed = yes; then 19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19676 printf "%s\n" "no" >&6; } 19677 19678 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19679 _pkg_short_errors_supported=yes 19680 else 19681 _pkg_short_errors_supported=no 19682 fi 19683 if test $_pkg_short_errors_supported = yes; then 19684 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19685 else 19686 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19687 fi 19688 # Put the nasty error message in config.log where it belongs 19689 echo "$XEXT_PKG_ERRORS" >&5 19690 19691 HAVE_XEXTPROTO_71="no" 19692 elif test $pkg_failed = untried; then 19693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19694 printf "%s\n" "no" >&6; } 19695 HAVE_XEXTPROTO_71="no" 19696 else 19697 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19698 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19700 printf "%s\n" "yes" >&6; } 19701 HAVE_XEXTPROTO_71="yes"; 19702 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19703 19704 fi 19705 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19706 HAVE_XEXTPROTO_71_TRUE= 19707 HAVE_XEXTPROTO_71_FALSE='#' 19708 else 19709 HAVE_XEXTPROTO_71_TRUE='#' 19710 HAVE_XEXTPROTO_71_FALSE= 19711 fi 19712 19713 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 19714 19715 # Checks for libraries. 19716 19717 if test "$DRI" != no; then 19718 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 19719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 19720 printf %s "checking for ${sdkdir}/dri.h... " >&6; } 19721 if eval test \${$as_ac_File+y} 19722 then : 19723 printf %s "(cached) " >&6 19724 else $as_nop 19725 test "$cross_compiling" = yes && 19726 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19727 if test -r "${sdkdir}/dri.h"; then 19728 eval "$as_ac_File=yes" 19729 else 19730 eval "$as_ac_File=no" 19731 fi 19732 fi 19733 eval ac_res=\$$as_ac_File 19734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19735 printf "%s\n" "$ac_res" >&6; } 19736 if eval test \"x\$"$as_ac_File"\" = x"yes" 19737 then : 19738 have_dri_h="yes" 19739 else $as_nop 19740 have_dri_h="no" 19741 fi 19742 19743 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 19744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 19745 printf %s "checking for ${sdkdir}/sarea.h... " >&6; } 19746 if eval test \${$as_ac_File+y} 19747 then : 19748 printf %s "(cached) " >&6 19749 else $as_nop 19750 test "$cross_compiling" = yes && 19751 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19752 if test -r "${sdkdir}/sarea.h"; then 19753 eval "$as_ac_File=yes" 19754 else 19755 eval "$as_ac_File=no" 19756 fi 19757 fi 19758 eval ac_res=\$$as_ac_File 19759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19760 printf "%s\n" "$ac_res" >&6; } 19761 if eval test \"x\$"$as_ac_File"\" = x"yes" 19762 then : 19763 have_sarea_h="yes" 19764 else $as_nop 19765 have_sarea_h="no" 19766 fi 19767 19768 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 19769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 19770 printf %s "checking for ${sdkdir}/dristruct.h... " >&6; } 19771 if eval test \${$as_ac_File+y} 19772 then : 19773 printf %s "(cached) " >&6 19774 else $as_nop 19775 test "$cross_compiling" = yes && 19776 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19777 if test -r "${sdkdir}/dristruct.h"; then 19778 eval "$as_ac_File=yes" 19779 else 19780 eval "$as_ac_File=no" 19781 fi 19782 fi 19783 eval ac_res=\$$as_ac_File 19784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19785 printf "%s\n" "$ac_res" >&6; } 19786 if eval test \"x\$"$as_ac_File"\" = x"yes" 19787 then : 19788 have_dristruct_h="yes" 19789 else $as_nop 19790 have_dristruct_h="no" 19791 fi 19792 19793 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh` 19794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5 19795 printf %s "checking for ${sdkdir}/damage.h... " >&6; } 19796 if eval test \${$as_ac_File+y} 19797 then : 19798 printf %s "(cached) " >&6 19799 else $as_nop 19800 test "$cross_compiling" = yes && 19801 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19802 if test -r "${sdkdir}/damage.h"; then 19803 eval "$as_ac_File=yes" 19804 else 19805 eval "$as_ac_File=no" 19806 fi 19807 fi 19808 eval ac_res=\$$as_ac_File 19809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19810 printf "%s\n" "$ac_res" >&6; } 19811 if eval test \"x\$"$as_ac_File"\" = x"yes" 19812 then : 19813 have_damage_h="yes" 19814 else $as_nop 19815 have_damage_h="no" 19816 fi 19817 19818 fi 19819 19820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 19821 printf %s "checking whether to include DRI support... " >&6; } 19822 if test x$DRI = xauto; then 19823 if test "$have_dri_h" = yes -a \ 19824 "$have_sarea_h" = yes -a \ 19825 "$have_dristruct_h" = yes; then 19826 DRI="yes" 19827 else 19828 DRI="no" 19829 fi 19830 fi 19831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 19832 printf "%s\n" "$DRI" >&6; } 19833 19834 if test x$DRI = xyes; then 19835 DRI_TRUE= 19836 DRI_FALSE='#' 19837 else 19838 DRI_TRUE='#' 19839 DRI_FALSE= 19840 fi 19841 19842 if test "$DRI" = yes; then 19843 19844 pkg_failed=no 19845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 19846 printf %s "checking for DRI... " >&6; } 19847 19848 if test -n "$DRI_CFLAGS"; then 19849 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 19850 elif test -n "$PKG_CONFIG"; then 19851 if test -n "$PKG_CONFIG" && \ 19852 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5 19853 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 19854 ac_status=$? 19855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19856 test $ac_status = 0; }; then 19857 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null` 19858 test "x$?" != "x0" && pkg_failed=yes 19859 else 19860 pkg_failed=yes 19861 fi 19862 else 19863 pkg_failed=untried 19864 fi 19865 if test -n "$DRI_LIBS"; then 19866 pkg_cv_DRI_LIBS="$DRI_LIBS" 19867 elif test -n "$PKG_CONFIG"; then 19868 if test -n "$PKG_CONFIG" && \ 19869 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5 19870 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5 19871 ac_status=$? 19872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19873 test $ac_status = 0; }; then 19874 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null` 19875 test "x$?" != "x0" && pkg_failed=yes 19876 else 19877 pkg_failed=yes 19878 fi 19879 else 19880 pkg_failed=untried 19881 fi 19882 19883 19884 19885 if test $pkg_failed = yes; then 19886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19887 printf "%s\n" "no" >&6; } 19888 19889 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19890 _pkg_short_errors_supported=yes 19891 else 19892 _pkg_short_errors_supported=no 19893 fi 19894 if test $_pkg_short_errors_supported = yes; then 19895 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1` 19896 else 19897 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1` 19898 fi 19899 # Put the nasty error message in config.log where it belongs 19900 echo "$DRI_PKG_ERRORS" >&5 19901 19902 as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met: 19903 19904 $DRI_PKG_ERRORS 19905 19906 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19907 installed software in a non-standard prefix. 19908 19909 Alternatively, you may set the environment variables DRI_CFLAGS 19910 and DRI_LIBS to avoid the need to call pkg-config. 19911 See the pkg-config man page for more details." "$LINENO" 5 19912 elif test $pkg_failed = untried; then 19913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19914 printf "%s\n" "no" >&6; } 19915 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19916 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19917 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19918 is in your PATH or set the PKG_CONFIG environment variable to the full 19919 path to pkg-config. 19920 19921 Alternatively, you may set the environment variables DRI_CFLAGS 19922 and DRI_LIBS to avoid the need to call pkg-config. 19923 See the pkg-config man page for more details. 19924 19925 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19926 See \`config.log' for more details" "$LINENO" 5; } 19927 else 19928 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 19929 DRI_LIBS=$pkg_cv_DRI_LIBS 19930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19931 printf "%s\n" "yes" >&6; } 19932 19933 fi 19934 19935 printf "%s\n" "#define XF86DRI 1" >>confdefs.h 19936 19937 19938 printf "%s\n" "#define XF86DRI_DEVEL 1" >>confdefs.h 19939 19940 fi 19941 19942 # Note that this is sort of inverted from drivers/ati/Imakefile in 19943 # the monolith. We test for foo, not for !foo (i.e. ATMISC_CPIO, not 19944 # ATIMISC_AVOID_CPIO), but the defines are negative. So beware. Oh yeah, 19945 # TV_OUT is the special case where it's a positive define, not AVOID_TV_OUT. 19946 19947 # AVOID_CPIO: Only x86, amd64, and alpha are cool with CPIO. It needs a 19948 # little-endian, undirected PIO space of at least 64kB. 19949 # AVOID_DGA: ??? 19950 # ATI_TV_OUT: This only works on x86. 19951 19952 ATIMISC_CPIO=no 19953 ATIMISC_DGA=yes 19954 ATIMISC_TV_OUT=no 19955 19956 case $host_cpu in 19957 i*86) 19958 ATIMISC_TV_OUT=yes 19959 ATIMISC_CPIO=yes 19960 ;; 19961 x86_64|amd64|alpha|ia64) 19962 ATIMISC_CPIO=yes 19963 ;; 19964 sparc) 19965 ATIMISC_DGA=no 19966 ;; 19967 *) 19968 ;; 19969 esac 19970 19971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include PIO support" >&5 19972 printf %s "checking whether to include PIO support... " >&6; } 19973 if test "x$ATIMISC_CPIO" = xyes; then 19974 ATIMISC_CPIO_TRUE= 19975 ATIMISC_CPIO_FALSE='#' 19976 else 19977 ATIMISC_CPIO_TRUE='#' 19978 ATIMISC_CPIO_FALSE= 19979 fi 19980 19981 if test "x$ATIMISC_CPIO" = xyes; then 19982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, PIO" >&5 19983 printf "%s\n" "yes, PIO" >&6; } 19984 else 19985 19986 printf "%s\n" "#define AVOID_CPIO 1" >>confdefs.h 19987 19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, MMIO" >&5 19989 printf "%s\n" "no, MMIO" >&6; } 19990 fi 19991 19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5 19993 printf %s "checking whether to include DGA support... " >&6; } 19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_DGA" >&5 19995 printf "%s\n" "$ATIMISC_DGA" >&6; } 19996 if test "x$ATIMISC_DGA" = xyes; then 19997 ATIMISC_DGA_TRUE= 19998 ATIMISC_DGA_FALSE='#' 19999 else 20000 ATIMISC_DGA_TRUE='#' 20001 ATIMISC_DGA_FALSE= 20002 fi 20003 20004 if ! test "x$ATIMISC_DGA" = xyes; then 20005 20006 printf "%s\n" "#define AVOID_DGA 1" >>confdefs.h 20007 20008 fi 20009 20010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include TV Out support" >&5 20011 printf %s "checking whether to include TV Out support... " >&6; } 20012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ATIMISC_TV_OUT" >&5 20013 printf "%s\n" "$ATIMISC_TV_OUT" >&6; } 20014 if test "x$ATIMISC_TV_OUT" = xyes; then 20015 ATIMISC_TV_OUT_TRUE= 20016 ATIMISC_TV_OUT_FALSE='#' 20017 else 20018 ATIMISC_TV_OUT_TRUE='#' 20019 ATIMISC_TV_OUT_FALSE= 20020 fi 20021 20022 if test "x$ATIMISC_TV_OUT" = xyes; then 20023 20024 printf "%s\n" "#define TV_OUT 1" >>confdefs.h 20025 20026 fi 20027 20028 # Properly handle EXA. 20029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5 20030 printf %s "checking whether to enable EXA support... " >&6; } 20031 if test "x$EXA" = xyes; then 20032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20033 printf "%s\n" "yes" >&6; } 20034 20035 SAVE_CPPFLAGS="$CPPFLAGS" 20036 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 20037 ac_fn_c_check_header_compile "$LINENO" "exa.h" "ac_cv_header_exa_h" "#include <xorg-server.h> 20038 " 20039 if test "x$ac_cv_header_exa_h" = xyes 20040 then : 20041 have_exa_h="yes" 20042 else $as_nop 20043 have_exa_h="no" 20044 fi 20045 20046 CPPFLAGS="$SAVE_CPPFLAGS" 20047 else 20048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20049 printf "%s\n" "no" >&6; } 20050 fi 20051 20052 SAVE_CPPFLAGS="$CPPFLAGS" 20053 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 20054 if test "x$have_exa_h" = xyes; then 20055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5 20056 printf %s "checking whether EXA version is at least 2.0.0... " >&6; } 20057 ac_ext=c 20058 ac_cpp='$CPP $CPPFLAGS' 20059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20061 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 20063 printf %s "checking how to run the C preprocessor... " >&6; } 20064 # On Suns, sometimes $CPP names a directory. 20065 if test -n "$CPP" && test -d "$CPP"; then 20066 CPP= 20067 fi 20068 if test -z "$CPP"; then 20069 if test ${ac_cv_prog_CPP+y} 20070 then : 20071 printf %s "(cached) " >&6 20072 else $as_nop 20073 # Double quotes because $CC needs to be expanded 20074 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 20075 do 20076 ac_preproc_ok=false 20077 for ac_c_preproc_warn_flag in '' yes 20078 do 20079 # Use a header file that comes with gcc, so configuring glibc 20080 # with a fresh cross-compiler works. 20081 # On the NeXT, cc -E runs the code through the compiler's parser, 20082 # not just through cpp. "Syntax error" is here to catch this case. 20083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20084 /* end confdefs.h. */ 20085 #include <limits.h> 20086 Syntax error 20087 _ACEOF 20088 if ac_fn_c_try_cpp "$LINENO" 20089 then : 20090 20091 else $as_nop 20092 # Broken: fails on valid input. 20093 continue 20094 fi 20095 rm -f conftest.err conftest.i conftest.$ac_ext 20096 20097 # OK, works on sane cases. Now check whether nonexistent headers 20098 # can be detected and how. 20099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20100 /* end confdefs.h. */ 20101 #include <ac_nonexistent.h> 20102 _ACEOF 20103 if ac_fn_c_try_cpp "$LINENO" 20104 then : 20105 # Broken: success on invalid input. 20106 continue 20107 else $as_nop 20108 # Passes both tests. 20109 ac_preproc_ok=: 20110 break 20111 fi 20112 rm -f conftest.err conftest.i conftest.$ac_ext 20113 20114 done 20115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20116 rm -f conftest.i conftest.err conftest.$ac_ext 20117 if $ac_preproc_ok 20118 then : 20119 break 20120 fi 20121 20122 done 20123 ac_cv_prog_CPP=$CPP 20124 20125 fi 20126 CPP=$ac_cv_prog_CPP 20127 else 20128 ac_cv_prog_CPP=$CPP 20129 fi 20130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 20131 printf "%s\n" "$CPP" >&6; } 20132 ac_preproc_ok=false 20133 for ac_c_preproc_warn_flag in '' yes 20134 do 20135 # Use a header file that comes with gcc, so configuring glibc 20136 # with a fresh cross-compiler works. 20137 # On the NeXT, cc -E runs the code through the compiler's parser, 20138 # not just through cpp. "Syntax error" is here to catch this case. 20139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20140 /* end confdefs.h. */ 20141 #include <limits.h> 20142 Syntax error 20143 _ACEOF 20144 if ac_fn_c_try_cpp "$LINENO" 20145 then : 20146 20147 else $as_nop 20148 # Broken: fails on valid input. 20149 continue 20150 fi 20151 rm -f conftest.err conftest.i conftest.$ac_ext 20152 20153 # OK, works on sane cases. Now check whether nonexistent headers 20154 # can be detected and how. 20155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20156 /* end confdefs.h. */ 20157 #include <ac_nonexistent.h> 20158 _ACEOF 20159 if ac_fn_c_try_cpp "$LINENO" 20160 then : 20161 # Broken: success on invalid input. 20162 continue 20163 else $as_nop 20164 # Passes both tests. 20165 ac_preproc_ok=: 20166 break 20167 fi 20168 rm -f conftest.err conftest.i conftest.$ac_ext 20169 20170 done 20171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20172 rm -f conftest.i conftest.err conftest.$ac_ext 20173 if $ac_preproc_ok 20174 then : 20175 20176 else $as_nop 20177 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20178 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20179 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 20180 See \`config.log' for more details" "$LINENO" 5; } 20181 fi 20182 20183 ac_ext=c 20184 ac_cpp='$CPP $CPPFLAGS' 20185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20187 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20188 20189 20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20191 /* end confdefs.h. */ 20192 20193 #include <xorg-server.h> 20194 #include <exa.h> 20195 #if EXA_VERSION_MAJOR < 2 20196 #error OLD EXA! 20197 #endif 20198 20199 int 20200 main (void) 20201 { 20202 20203 ; 20204 return 0; 20205 } 20206 _ACEOF 20207 if ac_fn_c_try_cpp "$LINENO" 20208 then : 20209 USE_EXA=yes 20210 else $as_nop 20211 USE_EXA=no 20212 fi 20213 rm -f conftest.err conftest.i conftest.$ac_ext 20214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5 20215 printf "%s\n" "$USE_EXA" >&6; } 20216 20217 if test "x$USE_EXA" = xyes; then 20218 20219 printf "%s\n" "#define USE_EXA 1" >>confdefs.h 20220 20221 fi 20222 fi 20223 20224 # Check whether --enable-xaa was given. 20225 if test ${enable_xaa+y} 20226 then : 20227 enableval=$enable_xaa; XAA="$enableval" 20228 else $as_nop 20229 XAA=auto 20230 fi 20231 20232 if test "x$XAA" != xno; then 20233 save_CFLAGS=$CFLAGS 20234 save_CPPFLAGS=$CPPFLAGS 20235 CFLAGS=$XORG_CFLAGS 20236 CPPFLAGS="$XORG_CFLAGS" 20237 for ac_header in xaa.h 20238 do : 20239 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 20240 if test "x$ac_cv_header_xaa_h" = xyes 20241 then : 20242 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 20243 XAA=yes 20244 else $as_nop 20245 XAA=no 20246 fi 20247 20248 done 20249 CFLAGS=$save_CFLAGS 20250 CPPFLAGS=$save_CPPFLAGS 20251 fi 20252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 20253 printf %s "checking whether to include XAA support... " >&6; } 20254 if test "x$XAA" = xyes; then 20255 XAA_TRUE= 20256 XAA_FALSE='#' 20257 else 20258 XAA_TRUE='#' 20259 XAA_FALSE= 20260 fi 20261 20262 if test "x$XAA" = xyes; then 20263 20264 printf "%s\n" "#define USE_XAA test \"x\$XAA\" = xyes" >>confdefs.h 20265 20266 fi 20267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 20268 printf "%s\n" "$XAA" >&6; } 20269 20270 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 20271 " "$ac_c_undeclared_builtin_options" "CFLAGS" 20272 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 20273 then : 20274 XSERVER_LIBPCIACCESS=yes 20275 else $as_nop 20276 XSERVER_LIBPCIACCESS=no 20277 fi 20278 20279 CPPFLAGS="$SAVE_CPPFLAGS" 20280 20281 if test "x$USE_EXA" = xyes; then 20282 USE_EXA_TRUE= 20283 USE_EXA_FALSE='#' 20284 else 20285 USE_EXA_TRUE='#' 20286 USE_EXA_FALSE= 20287 fi 20288 20289 20290 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20291 20292 pkg_failed=no 20293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 20294 printf %s "checking for PCIACCESS... " >&6; } 20295 20296 if test -n "$PCIACCESS_CFLAGS"; then 20297 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 20298 elif test -n "$PKG_CONFIG"; then 20299 if test -n "$PKG_CONFIG" && \ 20300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 20301 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 20302 ac_status=$? 20303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20304 test $ac_status = 0; }; then 20305 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null` 20306 test "x$?" != "x0" && pkg_failed=yes 20307 else 20308 pkg_failed=yes 20309 fi 20310 else 20311 pkg_failed=untried 20312 fi 20313 if test -n "$PCIACCESS_LIBS"; then 20314 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 20315 elif test -n "$PKG_CONFIG"; then 20316 if test -n "$PKG_CONFIG" && \ 20317 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 20318 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 20319 ac_status=$? 20320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20321 test $ac_status = 0; }; then 20322 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null` 20323 test "x$?" != "x0" && pkg_failed=yes 20324 else 20325 pkg_failed=yes 20326 fi 20327 else 20328 pkg_failed=untried 20329 fi 20330 20331 20332 20333 if test $pkg_failed = yes; then 20334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20335 printf "%s\n" "no" >&6; } 20336 20337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20338 _pkg_short_errors_supported=yes 20339 else 20340 _pkg_short_errors_supported=no 20341 fi 20342 if test $_pkg_short_errors_supported = yes; then 20343 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 20344 else 20345 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 20346 fi 20347 # Put the nasty error message in config.log where it belongs 20348 echo "$PCIACCESS_PKG_ERRORS" >&5 20349 20350 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met: 20351 20352 $PCIACCESS_PKG_ERRORS 20353 20354 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20355 installed software in a non-standard prefix. 20356 20357 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20358 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20359 See the pkg-config man page for more details." "$LINENO" 5 20360 elif test $pkg_failed = untried; then 20361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20362 printf "%s\n" "no" >&6; } 20363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20364 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20365 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20366 is in your PATH or set the PKG_CONFIG environment variable to the full 20367 path to pkg-config. 20368 20369 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20370 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20371 See the pkg-config man page for more details. 20372 20373 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20374 See \`config.log' for more details" "$LINENO" 5; } 20375 else 20376 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20377 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20379 printf "%s\n" "yes" >&6; } 20380 20381 fi 20382 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 20383 fi 20384 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20385 XSERVER_LIBPCIACCESS_TRUE= 20386 XSERVER_LIBPCIACCESS_FALSE='#' 20387 else 20388 XSERVER_LIBPCIACCESS_TRUE='#' 20389 XSERVER_LIBPCIACCESS_FALSE= 20390 fi 20391 20392 20393 20394 20395 DRIVER_NAME=mach64 20396 20397 20398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\" 20399 or install the ati wrapper as well: 20400 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati 20401 " >&5 20402 printf "%s\n" "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\" 20403 or install the ati wrapper as well: 20404 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati 20405 " >&6;} 20406 20407 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20408 20409 cat >confcache <<\_ACEOF 20410 # This file is a shell script that caches the results of configure 20411 # tests run on this system so they can be shared between configure 20412 # scripts and configure runs, see configure's option --config-cache. 20413 # It is not useful on other systems. If it contains results you don't 20414 # want to keep, you may remove or edit it. 20415 # 20416 # config.status only pays attention to the cache file if you give it 20417 # the --recheck option to rerun configure. 20418 # 20419 # `ac_cv_env_foo' variables (set or unset) will be overridden when 20420 # loading this file, other *unset* `ac_cv_foo' will be assigned the 20421 # following values. 20422 20423 _ACEOF 20424 20425 # The following way of writing the cache mishandles newlines in values, 20426 # but we know of no workaround that is simple, portable, and efficient. 20427 # So, we kill variables containing newlines. 20428 # Ultrix sh set writes to stderr and can't be redirected directly, 20429 # and sets the high bit in the cache file unless we assign to the vars. 20430 ( 20431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20432 eval ac_val=\$$ac_var 20433 case $ac_val in #( 20434 *${as_nl}*) 20435 case $ac_var in #( 20436 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20437 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20438 esac 20439 case $ac_var in #( 20440 _ | IFS | as_nl) ;; #( 20441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20442 *) { eval $ac_var=; unset $ac_var;} ;; 20443 esac ;; 20444 esac 20445 done 20446 20447 (set) 2>&1 | 20448 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20449 *${as_nl}ac_space=\ *) 20450 # `set' does not quote correctly, so add quotes: double-quote 20451 # substitution turns \\\\ into \\, and sed turns \\ into \. 20452 sed -n \ 20453 "s/'/'\\\\''/g; 20454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20455 ;; #( 20456 *) 20457 # `set' quotes correctly as required by POSIX, so do not add quotes. 20458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20459 ;; 20460 esac | 20461 sort 20462 ) | 20463 sed ' 20464 /^ac_cv_env_/b end 20465 t clear 20466 :clear 20467 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20468 t end 20469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20470 :end' >>confcache 20471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20472 if test -w "$cache_file"; then 20473 if test "x$cache_file" != "x/dev/null"; then 20474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20475 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20476 if test ! -f "$cache_file" || test -h "$cache_file"; then 20477 cat confcache >"$cache_file" 20478 else 20479 case $cache_file in #( 20480 */* | ?:*) 20481 mv -f confcache "$cache_file"$$ && 20482 mv -f "$cache_file"$$ "$cache_file" ;; #( 20483 *) 20484 mv -f confcache "$cache_file" ;; 20485 esac 20486 fi 20487 fi 20488 else 20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20490 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20491 fi 20492 fi 20493 rm -f confcache 20494 20495 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20496 # Let make expand exec_prefix. 20497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20498 20499 DEFS=-DHAVE_CONFIG_H 20500 20501 ac_libobjs= 20502 ac_ltlibobjs= 20503 U= 20504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20505 # 1. Remove the extension, and $U if already installed. 20506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20507 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20509 # will be set to the directory where LIBOBJS objects are built. 20510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20512 done 20513 LIBOBJS=$ac_libobjs 20514 20515 LTLIBOBJS=$ac_ltlibobjs 20516 20517 20518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20519 printf %s "checking that generated files are newer than configure... " >&6; } 20520 if test -n "$am_sleep_pid"; then 20521 # Hide warnings about reused PIDs. 20522 wait $am_sleep_pid 2>/dev/null 20523 fi 20524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20525 printf "%s\n" "done" >&6; } 20526 if test -n "$EXEEXT"; then 20527 am__EXEEXT_TRUE= 20528 am__EXEEXT_FALSE='#' 20529 else 20530 am__EXEEXT_TRUE='#' 20531 am__EXEEXT_FALSE= 20532 fi 20533 20534 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20535 as_fn_error $? "conditional \"AMDEP\" was never defined. 20536 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20537 fi 20538 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20539 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20540 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20541 fi 20542 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20543 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20544 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20545 fi 20546 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 20547 as_fn_error $? "conditional \"DRI\" was never defined. 20548 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20549 fi 20550 if test -z "${ATIMISC_CPIO_TRUE}" && test -z "${ATIMISC_CPIO_FALSE}"; then 20551 as_fn_error $? "conditional \"ATIMISC_CPIO\" was never defined. 20552 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20553 fi 20554 if test -z "${ATIMISC_DGA_TRUE}" && test -z "${ATIMISC_DGA_FALSE}"; then 20555 as_fn_error $? "conditional \"ATIMISC_DGA\" was never defined. 20556 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20557 fi 20558 if test -z "${ATIMISC_TV_OUT_TRUE}" && test -z "${ATIMISC_TV_OUT_FALSE}"; then 20559 as_fn_error $? "conditional \"ATIMISC_TV_OUT\" was never defined. 20560 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20561 fi 20562 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 20563 as_fn_error $? "conditional \"XAA\" was never defined. 20564 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20565 fi 20566 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 20567 as_fn_error $? "conditional \"USE_EXA\" was never defined. 20568 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20569 fi 20570 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 20571 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 20572 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20573 fi 20574 20575 : "${CONFIG_STATUS=./config.status}" 20576 ac_write_fail=0 20577 ac_clean_files_save=$ac_clean_files 20578 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20580 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20581 as_write_fail=0 20582 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20583 #! $SHELL 20584 # Generated by $as_me. 20585 # Run this file to recreate the current configuration. 20586 # Compiler output produced by configure, useful for debugging 20587 # configure, is in config.log if it exists. 20588 20589 debug=false 20590 ac_cs_recheck=false 20591 ac_cs_silent=false 20592 20593 SHELL=\${CONFIG_SHELL-$SHELL} 20594 export SHELL 20595 _ASEOF 20596 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20597 ## -------------------- ## 20598 ## M4sh Initialization. ## 20599 ## -------------------- ## 20600 20601 # Be more Bourne compatible 20602 DUALCASE=1; export DUALCASE # for MKS sh 20603 as_nop=: 20604 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20605 then : 20606 emulate sh 20607 NULLCMD=: 20608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20609 # is contrary to our usage. Disable this feature. 20610 alias -g '${1+"$@"}'='"$@"' 20611 setopt NO_GLOB_SUBST 20612 else $as_nop 20613 case `(set -o) 2>/dev/null` in #( 20614 *posix*) : 20615 set -o posix ;; #( 20616 *) : 20617 ;; 20618 esac 20619 fi 20620 20621 20622 20623 # Reset variables that may have inherited troublesome values from 20624 # the environment. 20625 20626 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20627 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20628 # side effect of setting IFS to empty, thus disabling word splitting.) 20629 # Quoting is to prevent editors from complaining about space-tab. 20630 as_nl=' 20631 ' 20632 export as_nl 20633 IFS=" "" $as_nl" 20634 20635 PS1='$ ' 20636 PS2='> ' 20637 PS4='+ ' 20638 20639 # Ensure predictable behavior from utilities with locale-dependent output. 20640 LC_ALL=C 20641 export LC_ALL 20642 LANGUAGE=C 20643 export LANGUAGE 20644 20645 # We cannot yet rely on "unset" to work, but we need these variables 20646 # to be unset--not just set to an empty or harmless value--now, to 20647 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20648 # also avoids known problems related to "unset" and subshell syntax 20649 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20650 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20651 do eval test \${$as_var+y} \ 20652 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20653 done 20654 20655 # Ensure that fds 0, 1, and 2 are open. 20656 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20657 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20658 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20659 20660 # The user is always right. 20661 if ${PATH_SEPARATOR+false} :; then 20662 PATH_SEPARATOR=: 20663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20665 PATH_SEPARATOR=';' 20666 } 20667 fi 20668 20669 20670 # Find who we are. Look in the path if we contain no directory separator. 20671 as_myself= 20672 case $0 in #(( 20673 *[\\/]* ) as_myself=$0 ;; 20674 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20675 for as_dir in $PATH 20676 do 20677 IFS=$as_save_IFS 20678 case $as_dir in #((( 20679 '') as_dir=./ ;; 20680 */) ;; 20681 *) as_dir=$as_dir/ ;; 20682 esac 20683 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20684 done 20685 IFS=$as_save_IFS 20686 20687 ;; 20688 esac 20689 # We did not find ourselves, most probably we were run as `sh COMMAND' 20690 # in which case we are not to be found in the path. 20691 if test "x$as_myself" = x; then 20692 as_myself=$0 20693 fi 20694 if test ! -f "$as_myself"; then 20695 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20696 exit 1 20697 fi 20698 20699 20700 20701 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20702 # ---------------------------------------- 20703 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20704 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20705 # script with STATUS, using 1 if that was 0. 20706 as_fn_error () 20707 { 20708 as_status=$1; test $as_status -eq 0 && as_status=1 20709 if test "$4"; then 20710 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20712 fi 20713 printf "%s\n" "$as_me: error: $2" >&2 20714 as_fn_exit $as_status 20715 } # as_fn_error 20716 20717 20718 20719 # as_fn_set_status STATUS 20720 # ----------------------- 20721 # Set $? to STATUS, without forking. 20722 as_fn_set_status () 20723 { 20724 return $1 20725 } # as_fn_set_status 20726 20727 # as_fn_exit STATUS 20728 # ----------------- 20729 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20730 as_fn_exit () 20731 { 20732 set +e 20733 as_fn_set_status $1 20734 exit $1 20735 } # as_fn_exit 20736 20737 # as_fn_unset VAR 20738 # --------------- 20739 # Portably unset VAR. 20740 as_fn_unset () 20741 { 20742 { eval $1=; unset $1;} 20743 } 20744 as_unset=as_fn_unset 20745 20746 # as_fn_append VAR VALUE 20747 # ---------------------- 20748 # Append the text in VALUE to the end of the definition contained in VAR. Take 20749 # advantage of any shell optimizations that allow amortized linear growth over 20750 # repeated appends, instead of the typical quadratic growth present in naive 20751 # implementations. 20752 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20753 then : 20754 eval 'as_fn_append () 20755 { 20756 eval $1+=\$2 20757 }' 20758 else $as_nop 20759 as_fn_append () 20760 { 20761 eval $1=\$$1\$2 20762 } 20763 fi # as_fn_append 20764 20765 # as_fn_arith ARG... 20766 # ------------------ 20767 # Perform arithmetic evaluation on the ARGs, and store the result in the 20768 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20769 # must be portable across $(()) and expr. 20770 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20771 then : 20772 eval 'as_fn_arith () 20773 { 20774 as_val=$(( $* )) 20775 }' 20776 else $as_nop 20777 as_fn_arith () 20778 { 20779 as_val=`expr "$@" || test $? -eq 1` 20780 } 20781 fi # as_fn_arith 20782 20783 20784 if expr a : '\(a\)' >/dev/null 2>&1 && 20785 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20786 as_expr=expr 20787 else 20788 as_expr=false 20789 fi 20790 20791 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20792 as_basename=basename 20793 else 20794 as_basename=false 20795 fi 20796 20797 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20798 as_dirname=dirname 20799 else 20800 as_dirname=false 20801 fi 20802 20803 as_me=`$as_basename -- "$0" || 20804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20805 X"$0" : 'X\(//\)$' \| \ 20806 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20807 printf "%s\n" X/"$0" | 20808 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20809 s//\1/ 20810 q 20811 } 20812 /^X\/\(\/\/\)$/{ 20813 s//\1/ 20814 q 20815 } 20816 /^X\/\(\/\).*/{ 20817 s//\1/ 20818 q 20819 } 20820 s/.*/./; q'` 20821 20822 # Avoid depending upon Character Ranges. 20823 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20824 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20825 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20826 as_cr_digits='0123456789' 20827 as_cr_alnum=$as_cr_Letters$as_cr_digits 20828 20829 20830 # Determine whether it's possible to make 'echo' print without a newline. 20831 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20832 # for compatibility with existing Makefiles. 20833 ECHO_C= ECHO_N= ECHO_T= 20834 case `echo -n x` in #((((( 20835 -n*) 20836 case `echo 'xy\c'` in 20837 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20838 xy) ECHO_C='\c';; 20839 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20840 ECHO_T=' ';; 20841 esac;; 20842 *) 20843 ECHO_N='-n';; 20844 esac 20845 20846 # For backward compatibility with old third-party macros, we provide 20847 # the shell variables $as_echo and $as_echo_n. New code should use 20848 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20849 as_echo='printf %s\n' 20850 as_echo_n='printf %s' 20851 20852 rm -f conf$$ conf$$.exe conf$$.file 20853 if test -d conf$$.dir; then 20854 rm -f conf$$.dir/conf$$.file 20855 else 20856 rm -f conf$$.dir 20857 mkdir conf$$.dir 2>/dev/null 20858 fi 20859 if (echo >conf$$.file) 2>/dev/null; then 20860 if ln -s conf$$.file conf$$ 2>/dev/null; then 20861 as_ln_s='ln -s' 20862 # ... but there are two gotchas: 20863 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20864 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20865 # In both cases, we have to default to `cp -pR'. 20866 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20867 as_ln_s='cp -pR' 20868 elif ln conf$$.file conf$$ 2>/dev/null; then 20869 as_ln_s=ln 20870 else 20871 as_ln_s='cp -pR' 20872 fi 20873 else 20874 as_ln_s='cp -pR' 20875 fi 20876 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20877 rmdir conf$$.dir 2>/dev/null 20878 20879 20880 # as_fn_mkdir_p 20881 # ------------- 20882 # Create "$as_dir" as a directory, including parents if necessary. 20883 as_fn_mkdir_p () 20884 { 20885 20886 case $as_dir in #( 20887 -*) as_dir=./$as_dir;; 20888 esac 20889 test -d "$as_dir" || eval $as_mkdir_p || { 20890 as_dirs= 20891 while :; do 20892 case $as_dir in #( 20893 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20894 *) as_qdir=$as_dir;; 20895 esac 20896 as_dirs="'$as_qdir' $as_dirs" 20897 as_dir=`$as_dirname -- "$as_dir" || 20898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20899 X"$as_dir" : 'X\(//\)[^/]' \| \ 20900 X"$as_dir" : 'X\(//\)$' \| \ 20901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20902 printf "%s\n" X"$as_dir" | 20903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20904 s//\1/ 20905 q 20906 } 20907 /^X\(\/\/\)[^/].*/{ 20908 s//\1/ 20909 q 20910 } 20911 /^X\(\/\/\)$/{ 20912 s//\1/ 20913 q 20914 } 20915 /^X\(\/\).*/{ 20916 s//\1/ 20917 q 20918 } 20919 s/.*/./; q'` 20920 test -d "$as_dir" && break 20921 done 20922 test -z "$as_dirs" || eval "mkdir $as_dirs" 20923 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20924 20925 20926 } # as_fn_mkdir_p 20927 if mkdir -p . 2>/dev/null; then 20928 as_mkdir_p='mkdir -p "$as_dir"' 20929 else 20930 test -d ./-p && rmdir ./-p 20931 as_mkdir_p=false 20932 fi 20933 20934 20935 # as_fn_executable_p FILE 20936 # ----------------------- 20937 # Test if FILE is an executable regular file. 20938 as_fn_executable_p () 20939 { 20940 test -f "$1" && test -x "$1" 20941 } # as_fn_executable_p 20942 as_test_x='test -x' 20943 as_executable_p=as_fn_executable_p 20944 20945 # Sed expression to map a string onto a valid CPP name. 20946 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20947 20948 # Sed expression to map a string onto a valid variable name. 20949 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20950 20951 20952 exec 6>&1 20953 ## ----------------------------------- ## 20954 ## Main body of $CONFIG_STATUS script. ## 20955 ## ----------------------------------- ## 20956 _ASEOF 20957 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20958 20959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20960 # Save the log message, to keep $0 and so on meaningful, and to 20961 # report actual input values of CONFIG_FILES etc. instead of their 20962 # values after options handling. 20963 ac_log=" 20964 This file was extended by xf86-video-mach64 $as_me 6.9.7, which was 20965 generated by GNU Autoconf 2.71. Invocation command line was 20966 20967 CONFIG_FILES = $CONFIG_FILES 20968 CONFIG_HEADERS = $CONFIG_HEADERS 20969 CONFIG_LINKS = $CONFIG_LINKS 20970 CONFIG_COMMANDS = $CONFIG_COMMANDS 20971 $ $0 $@ 20972 20973 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20974 " 20975 20976 _ACEOF 20977 20978 case $ac_config_files in *" 20979 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20980 esac 20981 20982 case $ac_config_headers in *" 20983 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20984 esac 20985 20986 20987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20988 # Files that config.status was made for. 20989 config_files="$ac_config_files" 20990 config_headers="$ac_config_headers" 20991 config_commands="$ac_config_commands" 20992 20993 _ACEOF 20994 20995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20996 ac_cs_usage="\ 20997 \`$as_me' instantiates files and other configuration actions 20998 from templates according to the current configuration. Unless the files 20999 and actions are specified as TAGs, all are instantiated by default. 21000 21001 Usage: $0 [OPTION]... [TAG]... 21002 21003 -h, --help print this help, then exit 21004 -V, --version print version number and configuration settings, then exit 21005 --config print configuration, then exit 21006 -q, --quiet, --silent 21007 do not print progress messages 21008 -d, --debug don't remove temporary files 21009 --recheck update $as_me by reconfiguring in the same conditions 21010 --file=FILE[:TEMPLATE] 21011 instantiate the configuration file FILE 21012 --header=FILE[:TEMPLATE] 21013 instantiate the configuration header FILE 21014 21015 Configuration files: 21016 $config_files 21017 21018 Configuration headers: 21019 $config_headers 21020 21021 Configuration commands: 21022 $config_commands 21023 21024 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mach64/issues>." 21025 21026 _ACEOF 21027 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21028 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21030 ac_cs_config='$ac_cs_config_escaped' 21031 ac_cs_version="\\ 21032 xf86-video-mach64 config.status 6.9.7 21033 configured by $0, generated by GNU Autoconf 2.71, 21034 with options \\"\$ac_cs_config\\" 21035 21036 Copyright (C) 2021 Free Software Foundation, Inc. 21037 This config.status script is free software; the Free Software Foundation 21038 gives unlimited permission to copy, distribute and modify it." 21039 21040 ac_pwd='$ac_pwd' 21041 srcdir='$srcdir' 21042 INSTALL='$INSTALL' 21043 MKDIR_P='$MKDIR_P' 21044 AWK='$AWK' 21045 test -n "\$AWK" || AWK=awk 21046 _ACEOF 21047 21048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21049 # The default lists apply if the user does not specify any file. 21050 ac_need_defaults=: 21051 while test $# != 0 21052 do 21053 case $1 in 21054 --*=?*) 21055 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21056 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21057 ac_shift=: 21058 ;; 21059 --*=) 21060 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21061 ac_optarg= 21062 ac_shift=: 21063 ;; 21064 *) 21065 ac_option=$1 21066 ac_optarg=$2 21067 ac_shift=shift 21068 ;; 21069 esac 21070 21071 case $ac_option in 21072 # Handling of the options. 21073 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21074 ac_cs_recheck=: ;; 21075 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21076 printf "%s\n" "$ac_cs_version"; exit ;; 21077 --config | --confi | --conf | --con | --co | --c ) 21078 printf "%s\n" "$ac_cs_config"; exit ;; 21079 --debug | --debu | --deb | --de | --d | -d ) 21080 debug=: ;; 21081 --file | --fil | --fi | --f ) 21082 $ac_shift 21083 case $ac_optarg in 21084 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21085 '') as_fn_error $? "missing file argument" ;; 21086 esac 21087 as_fn_append CONFIG_FILES " '$ac_optarg'" 21088 ac_need_defaults=false;; 21089 --header | --heade | --head | --hea ) 21090 $ac_shift 21091 case $ac_optarg in 21092 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21093 esac 21094 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21095 ac_need_defaults=false;; 21096 --he | --h) 21097 # Conflict between --help and --header 21098 as_fn_error $? "ambiguous option: \`$1' 21099 Try \`$0 --help' for more information.";; 21100 --help | --hel | -h ) 21101 printf "%s\n" "$ac_cs_usage"; exit ;; 21102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21103 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21104 ac_cs_silent=: ;; 21105 21106 # This is an error. 21107 -*) as_fn_error $? "unrecognized option: \`$1' 21108 Try \`$0 --help' for more information." ;; 21109 21110 *) as_fn_append ac_config_targets " $1" 21111 ac_need_defaults=false ;; 21112 21113 esac 21114 shift 21115 done 21116 21117 ac_configure_extra_args= 21118 21119 if $ac_cs_silent; then 21120 exec 6>/dev/null 21121 ac_configure_extra_args="$ac_configure_extra_args --silent" 21122 fi 21123 21124 _ACEOF 21125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21126 if \$ac_cs_recheck; then 21127 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21128 shift 21129 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21130 CONFIG_SHELL='$SHELL' 21131 export CONFIG_SHELL 21132 exec "\$@" 21133 fi 21134 21135 _ACEOF 21136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21137 exec 5>>config.log 21138 { 21139 echo 21140 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21141 ## Running $as_me. ## 21142 _ASBOX 21143 printf "%s\n" "$ac_log" 21144 } >&5 21145 21146 _ACEOF 21147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21148 # 21149 # INIT-COMMANDS 21150 # 21151 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21152 21153 21154 # The HP-UX ksh and POSIX shell print the target directory to stdout 21155 # if CDPATH is set. 21156 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21157 21158 sed_quote_subst='$sed_quote_subst' 21159 double_quote_subst='$double_quote_subst' 21160 delay_variable_subst='$delay_variable_subst' 21161 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21162 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21163 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21164 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21165 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21166 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21167 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21168 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21169 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21170 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21171 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21172 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21173 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21174 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21175 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21176 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21177 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21178 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21179 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21180 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21181 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21182 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21183 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21184 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21185 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21186 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21187 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21188 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21189 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21190 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21191 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21192 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21193 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21194 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21195 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21196 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21197 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21198 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21199 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21200 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21201 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21202 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21203 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21204 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21205 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21206 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21207 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21208 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21209 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21210 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21211 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21212 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21213 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21214 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21215 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21216 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21217 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21218 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21219 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21220 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21221 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"`' 21222 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21223 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21224 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21225 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21226 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21227 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21228 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21229 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21230 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21231 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21232 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21233 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21234 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21235 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21236 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21237 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21238 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21239 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21240 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21241 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21242 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21243 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21244 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21245 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21246 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21247 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21248 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21249 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21250 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21251 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21252 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21253 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21254 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21255 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21256 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21257 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21258 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21259 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21260 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21261 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21262 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21263 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21264 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21265 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21266 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21267 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21268 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21269 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21270 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21271 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21272 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21273 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21274 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21275 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21276 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21277 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21278 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21279 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21280 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21281 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21282 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21283 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21284 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21285 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21286 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21287 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21288 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21289 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21290 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21291 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21292 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21293 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21294 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21295 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21296 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21297 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21298 21299 LTCC='$LTCC' 21300 LTCFLAGS='$LTCFLAGS' 21301 compiler='$compiler_DEFAULT' 21302 21303 # A function that is used when there is no print builtin or printf. 21304 func_fallback_echo () 21305 { 21306 eval 'cat <<_LTECHO_EOF 21307 \$1 21308 _LTECHO_EOF' 21309 } 21310 21311 # Quote evaled strings. 21312 for var in SHELL \ 21313 ECHO \ 21314 PATH_SEPARATOR \ 21315 SED \ 21316 GREP \ 21317 EGREP \ 21318 FGREP \ 21319 LD \ 21320 NM \ 21321 LN_S \ 21322 lt_SP2NL \ 21323 lt_NL2SP \ 21324 reload_flag \ 21325 FILECMD \ 21326 OBJDUMP \ 21327 deplibs_check_method \ 21328 file_magic_cmd \ 21329 file_magic_glob \ 21330 want_nocaseglob \ 21331 DLLTOOL \ 21332 sharedlib_from_linklib_cmd \ 21333 AR \ 21334 archiver_list_spec \ 21335 STRIP \ 21336 RANLIB \ 21337 CC \ 21338 CFLAGS \ 21339 compiler \ 21340 lt_cv_sys_global_symbol_pipe \ 21341 lt_cv_sys_global_symbol_to_cdecl \ 21342 lt_cv_sys_global_symbol_to_import \ 21343 lt_cv_sys_global_symbol_to_c_name_address \ 21344 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21345 lt_cv_nm_interface \ 21346 nm_file_list_spec \ 21347 lt_cv_truncate_bin \ 21348 lt_prog_compiler_no_builtin_flag \ 21349 lt_prog_compiler_pic \ 21350 lt_prog_compiler_wl \ 21351 lt_prog_compiler_static \ 21352 lt_cv_prog_compiler_c_o \ 21353 need_locks \ 21354 MANIFEST_TOOL \ 21355 DSYMUTIL \ 21356 NMEDIT \ 21357 LIPO \ 21358 OTOOL \ 21359 OTOOL64 \ 21360 shrext_cmds \ 21361 export_dynamic_flag_spec \ 21362 whole_archive_flag_spec \ 21363 compiler_needs_object \ 21364 with_gnu_ld \ 21365 allow_undefined_flag \ 21366 no_undefined_flag \ 21367 hardcode_libdir_flag_spec \ 21368 hardcode_libdir_separator \ 21369 exclude_expsyms \ 21370 include_expsyms \ 21371 file_list_spec \ 21372 variables_saved_for_relink \ 21373 libname_spec \ 21374 library_names_spec \ 21375 soname_spec \ 21376 install_override_mode \ 21377 finish_eval \ 21378 old_striplib \ 21379 striplib; do 21380 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21381 *[\\\\\\\`\\"\\\$]*) 21382 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21383 ;; 21384 *) 21385 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21386 ;; 21387 esac 21388 done 21389 21390 # Double-quote double-evaled strings. 21391 for var in reload_cmds \ 21392 old_postinstall_cmds \ 21393 old_postuninstall_cmds \ 21394 old_archive_cmds \ 21395 extract_expsyms_cmds \ 21396 old_archive_from_new_cmds \ 21397 old_archive_from_expsyms_cmds \ 21398 archive_cmds \ 21399 archive_expsym_cmds \ 21400 module_cmds \ 21401 module_expsym_cmds \ 21402 export_symbols_cmds \ 21403 prelink_cmds \ 21404 postlink_cmds \ 21405 postinstall_cmds \ 21406 postuninstall_cmds \ 21407 finish_cmds \ 21408 sys_lib_search_path_spec \ 21409 configure_time_dlsearch_path \ 21410 configure_time_lt_sys_library_path; do 21411 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21412 *[\\\\\\\`\\"\\\$]*) 21413 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21414 ;; 21415 *) 21416 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21417 ;; 21418 esac 21419 done 21420 21421 ac_aux_dir='$ac_aux_dir' 21422 21423 # See if we are running on zsh, and set the options that allow our 21424 # commands through without removal of \ escapes INIT. 21425 if test -n "\${ZSH_VERSION+set}"; then 21426 setopt NO_GLOB_SUBST 21427 fi 21428 21429 21430 PACKAGE='$PACKAGE' 21431 VERSION='$VERSION' 21432 RM='$RM' 21433 ofile='$ofile' 21434 21435 21436 21437 21438 _ACEOF 21439 21440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21441 21442 # Handling of arguments. 21443 for ac_config_target in $ac_config_targets 21444 do 21445 case $ac_config_target in 21446 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21447 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21448 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21449 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21450 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21451 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21452 21453 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21454 esac 21455 done 21456 21457 21458 # If the user did not use the arguments to specify the items to instantiate, 21459 # then the envvar interface is used. Set only those that are not. 21460 # We use the long form for the default assignment because of an extremely 21461 # bizarre bug on SunOS 4.1.3. 21462 if $ac_need_defaults; then 21463 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21464 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21465 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21466 fi 21467 21468 # Have a temporary directory for convenience. Make it in the build tree 21469 # simply because there is no reason against having it here, and in addition, 21470 # creating and moving files from /tmp can sometimes cause problems. 21471 # Hook for its removal unless debugging. 21472 # Note that there is a small window in which the directory will not be cleaned: 21473 # after its creation but before its name has been assigned to `$tmp'. 21474 $debug || 21475 { 21476 tmp= ac_tmp= 21477 trap 'exit_status=$? 21478 : "${ac_tmp:=$tmp}" 21479 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21480 ' 0 21481 trap 'as_fn_exit 1' 1 2 13 15 21482 } 21483 # Create a (secure) tmp directory for tmp files. 21484 21485 { 21486 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21487 test -d "$tmp" 21488 } || 21489 { 21490 tmp=./conf$$-$RANDOM 21491 (umask 077 && mkdir "$tmp") 21492 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21493 ac_tmp=$tmp 21494 21495 # Set up the scripts for CONFIG_FILES section. 21496 # No need to generate them if there are no CONFIG_FILES. 21497 # This happens for instance with `./config.status config.h'. 21498 if test -n "$CONFIG_FILES"; then 21499 21500 21501 ac_cr=`echo X | tr X '\015'` 21502 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21503 # But we know of no other shell where ac_cr would be empty at this 21504 # point, so we can use a bashism as a fallback. 21505 if test "x$ac_cr" = x; then 21506 eval ac_cr=\$\'\\r\' 21507 fi 21508 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21509 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21510 ac_cs_awk_cr='\\r' 21511 else 21512 ac_cs_awk_cr=$ac_cr 21513 fi 21514 21515 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21516 _ACEOF 21517 21518 21519 { 21520 echo "cat >conf$$subs.awk <<_ACEOF" && 21521 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21522 echo "_ACEOF" 21523 } >conf$$subs.sh || 21524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21525 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21526 ac_delim='%!_!# ' 21527 for ac_last_try in false false false false false :; do 21528 . ./conf$$subs.sh || 21529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21530 21531 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21532 if test $ac_delim_n = $ac_delim_num; then 21533 break 21534 elif $ac_last_try; then 21535 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21536 else 21537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21538 fi 21539 done 21540 rm -f conf$$subs.sh 21541 21542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21543 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21544 _ACEOF 21545 sed -n ' 21546 h 21547 s/^/S["/; s/!.*/"]=/ 21548 p 21549 g 21550 s/^[^!]*!// 21551 :repl 21552 t repl 21553 s/'"$ac_delim"'$// 21554 t delim 21555 :nl 21556 h 21557 s/\(.\{148\}\)..*/\1/ 21558 t more1 21559 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21560 p 21561 n 21562 b repl 21563 :more1 21564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21565 p 21566 g 21567 s/.\{148\}// 21568 t nl 21569 :delim 21570 h 21571 s/\(.\{148\}\)..*/\1/ 21572 t more2 21573 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21574 p 21575 b 21576 :more2 21577 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21578 p 21579 g 21580 s/.\{148\}// 21581 t delim 21582 ' <conf$$subs.awk | sed ' 21583 /^[^""]/{ 21584 N 21585 s/\n// 21586 } 21587 ' >>$CONFIG_STATUS || ac_write_fail=1 21588 rm -f conf$$subs.awk 21589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21590 _ACAWK 21591 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21592 for (key in S) S_is_set[key] = 1 21593 FS = "" 21594 21595 } 21596 { 21597 line = $ 0 21598 nfields = split(line, field, "@") 21599 substed = 0 21600 len = length(field[1]) 21601 for (i = 2; i < nfields; i++) { 21602 key = field[i] 21603 keylen = length(key) 21604 if (S_is_set[key]) { 21605 value = S[key] 21606 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21607 len += length(value) + length(field[++i]) 21608 substed = 1 21609 } else 21610 len += 1 + keylen 21611 } 21612 21613 print line 21614 } 21615 21616 _ACAWK 21617 _ACEOF 21618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21619 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21620 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21621 else 21622 cat 21623 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21624 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21625 _ACEOF 21626 21627 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21628 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21629 # trailing colons and then remove the whole line if VPATH becomes empty 21630 # (actually we leave an empty line to preserve line numbers). 21631 if test "x$srcdir" = x.; then 21632 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21633 h 21634 s/// 21635 s/^/:/ 21636 s/[ ]*$/:/ 21637 s/:\$(srcdir):/:/g 21638 s/:\${srcdir}:/:/g 21639 s/:@srcdir@:/:/g 21640 s/^:*// 21641 s/:*$// 21642 x 21643 s/\(=[ ]*\).*/\1/ 21644 G 21645 s/\n// 21646 s/^[^=]*=[ ]*$// 21647 }' 21648 fi 21649 21650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21651 fi # test -n "$CONFIG_FILES" 21652 21653 # Set up the scripts for CONFIG_HEADERS section. 21654 # No need to generate them if there are no CONFIG_HEADERS. 21655 # This happens for instance with `./config.status Makefile'. 21656 if test -n "$CONFIG_HEADERS"; then 21657 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21658 BEGIN { 21659 _ACEOF 21660 21661 # Transform confdefs.h into an awk script `defines.awk', embedded as 21662 # here-document in config.status, that substitutes the proper values into 21663 # config.h.in to produce config.h. 21664 21665 # Create a delimiter string that does not exist in confdefs.h, to ease 21666 # handling of long lines. 21667 ac_delim='%!_!# ' 21668 for ac_last_try in false false :; do 21669 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21670 if test -z "$ac_tt"; then 21671 break 21672 elif $ac_last_try; then 21673 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21674 else 21675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21676 fi 21677 done 21678 21679 # For the awk script, D is an array of macro values keyed by name, 21680 # likewise P contains macro parameters if any. Preserve backslash 21681 # newline sequences. 21682 21683 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21684 sed -n ' 21685 s/.\{148\}/&'"$ac_delim"'/g 21686 t rset 21687 :rset 21688 s/^[ ]*#[ ]*define[ ][ ]*/ / 21689 t def 21690 d 21691 :def 21692 s/\\$// 21693 t bsnl 21694 s/["\\]/\\&/g 21695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21696 D["\1"]=" \3"/p 21697 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21698 d 21699 :bsnl 21700 s/["\\]/\\&/g 21701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21702 D["\1"]=" \3\\\\\\n"\\/p 21703 t cont 21704 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21705 t cont 21706 d 21707 :cont 21708 n 21709 s/.\{148\}/&'"$ac_delim"'/g 21710 t clear 21711 :clear 21712 s/\\$// 21713 t bsnlc 21714 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21715 d 21716 :bsnlc 21717 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21718 b cont 21719 ' <confdefs.h | sed ' 21720 s/'"$ac_delim"'/"\\\ 21721 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21722 21723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21724 for (key in D) D_is_set[key] = 1 21725 FS = "" 21726 } 21727 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21728 line = \$ 0 21729 split(line, arg, " ") 21730 if (arg[1] == "#") { 21731 defundef = arg[2] 21732 mac1 = arg[3] 21733 } else { 21734 defundef = substr(arg[1], 2) 21735 mac1 = arg[2] 21736 } 21737 split(mac1, mac2, "(") #) 21738 macro = mac2[1] 21739 prefix = substr(line, 1, index(line, defundef) - 1) 21740 if (D_is_set[macro]) { 21741 # Preserve the white space surrounding the "#". 21742 print prefix "define", macro P[macro] D[macro] 21743 next 21744 } else { 21745 # Replace #undef with comments. This is necessary, for example, 21746 # in the case of _POSIX_SOURCE, which is predefined and required 21747 # on some systems where configure will not decide to define it. 21748 if (defundef == "undef") { 21749 print "/*", prefix defundef, macro, "*/" 21750 next 21751 } 21752 } 21753 } 21754 { print } 21755 _ACAWK 21756 _ACEOF 21757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21758 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21759 fi # test -n "$CONFIG_HEADERS" 21760 21761 21762 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21763 shift 21764 for ac_tag 21765 do 21766 case $ac_tag in 21767 :[FHLC]) ac_mode=$ac_tag; continue;; 21768 esac 21769 case $ac_mode$ac_tag in 21770 :[FHL]*:*);; 21771 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21772 :[FH]-) ac_tag=-:-;; 21773 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21774 esac 21775 ac_save_IFS=$IFS 21776 IFS=: 21777 set x $ac_tag 21778 IFS=$ac_save_IFS 21779 shift 21780 ac_file=$1 21781 shift 21782 21783 case $ac_mode in 21784 :L) ac_source=$1;; 21785 :[FH]) 21786 ac_file_inputs= 21787 for ac_f 21788 do 21789 case $ac_f in 21790 -) ac_f="$ac_tmp/stdin";; 21791 *) # Look for the file first in the build tree, then in the source tree 21792 # (if the path is not absolute). The absolute path cannot be DOS-style, 21793 # because $ac_f cannot contain `:'. 21794 test -f "$ac_f" || 21795 case $ac_f in 21796 [\\/$]*) false;; 21797 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21798 esac || 21799 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21800 esac 21801 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21802 as_fn_append ac_file_inputs " '$ac_f'" 21803 done 21804 21805 # Let's still pretend it is `configure' which instantiates (i.e., don't 21806 # use $as_me), people would be surprised to read: 21807 # /* config.h. Generated by config.status. */ 21808 configure_input='Generated from '` 21809 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21810 `' by configure.' 21811 if test x"$ac_file" != x-; then 21812 configure_input="$ac_file. $configure_input" 21813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21814 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21815 fi 21816 # Neutralize special characters interpreted by sed in replacement strings. 21817 case $configure_input in #( 21818 *\&* | *\|* | *\\* ) 21819 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21820 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21821 *) ac_sed_conf_input=$configure_input;; 21822 esac 21823 21824 case $ac_tag in 21825 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21827 esac 21828 ;; 21829 esac 21830 21831 ac_dir=`$as_dirname -- "$ac_file" || 21832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21833 X"$ac_file" : 'X\(//\)[^/]' \| \ 21834 X"$ac_file" : 'X\(//\)$' \| \ 21835 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21836 printf "%s\n" X"$ac_file" | 21837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21838 s//\1/ 21839 q 21840 } 21841 /^X\(\/\/\)[^/].*/{ 21842 s//\1/ 21843 q 21844 } 21845 /^X\(\/\/\)$/{ 21846 s//\1/ 21847 q 21848 } 21849 /^X\(\/\).*/{ 21850 s//\1/ 21851 q 21852 } 21853 s/.*/./; q'` 21854 as_dir="$ac_dir"; as_fn_mkdir_p 21855 ac_builddir=. 21856 21857 case "$ac_dir" in 21858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21859 *) 21860 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21861 # A ".." for each directory in $ac_dir_suffix. 21862 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21863 case $ac_top_builddir_sub in 21864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21866 esac ;; 21867 esac 21868 ac_abs_top_builddir=$ac_pwd 21869 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21870 # for backward compatibility: 21871 ac_top_builddir=$ac_top_build_prefix 21872 21873 case $srcdir in 21874 .) # We are building in place. 21875 ac_srcdir=. 21876 ac_top_srcdir=$ac_top_builddir_sub 21877 ac_abs_top_srcdir=$ac_pwd ;; 21878 [\\/]* | ?:[\\/]* ) # Absolute name. 21879 ac_srcdir=$srcdir$ac_dir_suffix; 21880 ac_top_srcdir=$srcdir 21881 ac_abs_top_srcdir=$srcdir ;; 21882 *) # Relative name. 21883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21884 ac_top_srcdir=$ac_top_build_prefix$srcdir 21885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21886 esac 21887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21888 21889 21890 case $ac_mode in 21891 :F) 21892 # 21893 # CONFIG_FILE 21894 # 21895 21896 case $INSTALL in 21897 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21898 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21899 esac 21900 ac_MKDIR_P=$MKDIR_P 21901 case $MKDIR_P in 21902 [\\/$]* | ?:[\\/]* ) ;; 21903 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21904 esac 21905 _ACEOF 21906 21907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21908 # If the template does not know about datarootdir, expand it. 21909 # FIXME: This hack should be removed a few years after 2.60. 21910 ac_datarootdir_hack=; ac_datarootdir_seen= 21911 ac_sed_dataroot=' 21912 /datarootdir/ { 21913 p 21914 q 21915 } 21916 /@datadir@/p 21917 /@docdir@/p 21918 /@infodir@/p 21919 /@localedir@/p 21920 /@mandir@/p' 21921 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21922 *datarootdir*) ac_datarootdir_seen=yes;; 21923 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21925 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21926 _ACEOF 21927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21928 ac_datarootdir_hack=' 21929 s&@datadir@&$datadir&g 21930 s&@docdir@&$docdir&g 21931 s&@infodir@&$infodir&g 21932 s&@localedir@&$localedir&g 21933 s&@mandir@&$mandir&g 21934 s&\\\${datarootdir}&$datarootdir&g' ;; 21935 esac 21936 _ACEOF 21937 21938 # Neutralize VPATH when `$srcdir' = `.'. 21939 # Shell code in configure.ac might set extrasub. 21940 # FIXME: do we really want to maintain this feature? 21941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21942 ac_sed_extra="$ac_vpsub 21943 $extrasub 21944 _ACEOF 21945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21946 :t 21947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21948 s|@configure_input@|$ac_sed_conf_input|;t t 21949 s&@top_builddir@&$ac_top_builddir_sub&;t t 21950 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21951 s&@srcdir@&$ac_srcdir&;t t 21952 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21953 s&@top_srcdir@&$ac_top_srcdir&;t t 21954 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21955 s&@builddir@&$ac_builddir&;t t 21956 s&@abs_builddir@&$ac_abs_builddir&;t t 21957 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21958 s&@INSTALL@&$ac_INSTALL&;t t 21959 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21960 $ac_datarootdir_hack 21961 " 21962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21963 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21964 21965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21966 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21968 "$ac_tmp/out"`; test -z "$ac_out"; } && 21969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21970 which seems to be undefined. Please make sure it is defined" >&5 21971 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21972 which seems to be undefined. Please make sure it is defined" >&2;} 21973 21974 rm -f "$ac_tmp/stdin" 21975 case $ac_file in 21976 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21977 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21978 esac \ 21979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21980 ;; 21981 :H) 21982 # 21983 # CONFIG_HEADER 21984 # 21985 if test x"$ac_file" != x-; then 21986 { 21987 printf "%s\n" "/* $configure_input */" >&1 \ 21988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21989 } >"$ac_tmp/config.h" \ 21990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21991 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21993 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21994 else 21995 rm -f "$ac_file" 21996 mv "$ac_tmp/config.h" "$ac_file" \ 21997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21998 fi 21999 else 22000 printf "%s\n" "/* $configure_input */" >&1 \ 22001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22002 || as_fn_error $? "could not create -" "$LINENO" 5 22003 fi 22004 # Compute "$ac_file"'s index in $config_headers. 22005 _am_arg="$ac_file" 22006 _am_stamp_count=1 22007 for _am_header in $config_headers :; do 22008 case $_am_header in 22009 $_am_arg | $_am_arg:* ) 22010 break ;; 22011 * ) 22012 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22013 esac 22014 done 22015 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22016 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22017 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22018 X"$_am_arg" : 'X\(//\)$' \| \ 22019 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22020 printf "%s\n" X"$_am_arg" | 22021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22022 s//\1/ 22023 q 22024 } 22025 /^X\(\/\/\)[^/].*/{ 22026 s//\1/ 22027 q 22028 } 22029 /^X\(\/\/\)$/{ 22030 s//\1/ 22031 q 22032 } 22033 /^X\(\/\).*/{ 22034 s//\1/ 22035 q 22036 } 22037 s/.*/./; q'`/stamp-h$_am_stamp_count 22038 ;; 22039 22040 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22041 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22042 ;; 22043 esac 22044 22045 22046 case $ac_file$ac_mode in 22047 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22048 # Older Autoconf quotes --file arguments for eval, but not when files 22049 # are listed without --file. Let's play safe and only enable the eval 22050 # if we detect the quoting. 22051 # TODO: see whether this extra hack can be removed once we start 22052 # requiring Autoconf 2.70 or later. 22053 case $CONFIG_FILES in #( 22054 *\'*) : 22055 eval set x "$CONFIG_FILES" ;; #( 22056 *) : 22057 set x $CONFIG_FILES ;; #( 22058 *) : 22059 ;; 22060 esac 22061 shift 22062 # Used to flag and report bootstrapping failures. 22063 am_rc=0 22064 for am_mf 22065 do 22066 # Strip MF so we end up with the name of the file. 22067 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22068 # Check whether this is an Automake generated Makefile which includes 22069 # dependency-tracking related rules and includes. 22070 # Grep'ing the whole file directly is not great: AIX grep has a line 22071 # limit of 2048, but all sed's we know have understand at least 4000. 22072 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22073 || continue 22074 am_dirpart=`$as_dirname -- "$am_mf" || 22075 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22076 X"$am_mf" : 'X\(//\)[^/]' \| \ 22077 X"$am_mf" : 'X\(//\)$' \| \ 22078 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22079 printf "%s\n" X"$am_mf" | 22080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22081 s//\1/ 22082 q 22083 } 22084 /^X\(\/\/\)[^/].*/{ 22085 s//\1/ 22086 q 22087 } 22088 /^X\(\/\/\)$/{ 22089 s//\1/ 22090 q 22091 } 22092 /^X\(\/\).*/{ 22093 s//\1/ 22094 q 22095 } 22096 s/.*/./; q'` 22097 am_filepart=`$as_basename -- "$am_mf" || 22098 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22099 X"$am_mf" : 'X\(//\)$' \| \ 22100 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22101 printf "%s\n" X/"$am_mf" | 22102 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22103 s//\1/ 22104 q 22105 } 22106 /^X\/\(\/\/\)$/{ 22107 s//\1/ 22108 q 22109 } 22110 /^X\/\(\/\).*/{ 22111 s//\1/ 22112 q 22113 } 22114 s/.*/./; q'` 22115 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22116 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22117 | $MAKE -f - am--depfiles" >&5 22118 (cd "$am_dirpart" \ 22119 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22120 | $MAKE -f - am--depfiles) >&5 2>&5 22121 ac_status=$? 22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22123 (exit $ac_status); } || am_rc=$? 22124 done 22125 if test $am_rc -ne 0; then 22126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22128 as_fn_error $? "Something went wrong bootstrapping makefile fragments 22129 for automatic dependency tracking. If GNU make was not used, consider 22130 re-running the configure script with MAKE=\"gmake\" (or whatever is 22131 necessary). You can also try re-running configure with the 22132 '--disable-dependency-tracking' option to at least be able to build 22133 the package (albeit without support for automatic dependency tracking). 22134 See \`config.log' for more details" "$LINENO" 5; } 22135 fi 22136 { am_dirpart=; unset am_dirpart;} 22137 { am_filepart=; unset am_filepart;} 22138 { am_mf=; unset am_mf;} 22139 { am_rc=; unset am_rc;} 22140 rm -f conftest-deps.mk 22141 } 22142 ;; 22143 "libtool":C) 22144 22145 # See if we are running on zsh, and set the options that allow our 22146 # commands through without removal of \ escapes. 22147 if test -n "${ZSH_VERSION+set}"; then 22148 setopt NO_GLOB_SUBST 22149 fi 22150 22151 cfgfile=${ofile}T 22152 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22153 $RM "$cfgfile" 22154 22155 cat <<_LT_EOF >> "$cfgfile" 22156 #! $SHELL 22157 # Generated automatically by $as_me ($PACKAGE) $VERSION 22158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22159 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 22160 22161 # Provide generalized library-building support services. 22162 # Written by Gordon Matzigkeit, 1996 22163 22164 # Copyright (C) 2014 Free Software Foundation, Inc. 22165 # This is free software; see the source for copying conditions. There is NO 22166 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22167 22168 # GNU Libtool is free software; you can redistribute it and/or modify 22169 # it under the terms of the GNU General Public License as published by 22170 # the Free Software Foundation; either version 2 of of the License, or 22171 # (at your option) any later version. 22172 # 22173 # As a special exception to the GNU General Public License, if you 22174 # distribute this file as part of a program or library that is built 22175 # using GNU Libtool, you may include this file under the same 22176 # distribution terms that you use for the rest of that program. 22177 # 22178 # GNU Libtool is distributed in the hope that it will be useful, but 22179 # WITHOUT ANY WARRANTY; without even the implied warranty of 22180 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22181 # GNU General Public License for more details. 22182 # 22183 # You should have received a copy of the GNU General Public License 22184 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22185 22186 22187 # The names of the tagged configurations supported by this script. 22188 available_tags='' 22189 22190 # Configured defaults for sys_lib_dlsearch_path munging. 22191 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22192 22193 # ### BEGIN LIBTOOL CONFIG 22194 22195 # Whether or not to build static libraries. 22196 build_old_libs=$enable_static 22197 22198 # Which release of libtool.m4 was used? 22199 macro_version=$macro_version 22200 macro_revision=$macro_revision 22201 22202 # Whether or not to build shared libraries. 22203 build_libtool_libs=$enable_shared 22204 22205 # What type of objects to build. 22206 pic_mode=$pic_mode 22207 22208 # Whether or not to optimize for fast installation. 22209 fast_install=$enable_fast_install 22210 22211 # Shared archive member basename,for filename based shared library versioning on AIX. 22212 shared_archive_member_spec=$shared_archive_member_spec 22213 22214 # Shell to use when invoking shell scripts. 22215 SHELL=$lt_SHELL 22216 22217 # An echo program that protects backslashes. 22218 ECHO=$lt_ECHO 22219 22220 # The PATH separator for the build system. 22221 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22222 22223 # The host system. 22224 host_alias=$host_alias 22225 host=$host 22226 host_os=$host_os 22227 22228 # The build system. 22229 build_alias=$build_alias 22230 build=$build 22231 build_os=$build_os 22232 22233 # A sed program that does not truncate output. 22234 SED=$lt_SED 22235 22236 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22237 Xsed="\$SED -e 1s/^X//" 22238 22239 # A grep program that handles long lines. 22240 GREP=$lt_GREP 22241 22242 # An ERE matcher. 22243 EGREP=$lt_EGREP 22244 22245 # A literal string matcher. 22246 FGREP=$lt_FGREP 22247 22248 # A BSD- or MS-compatible name lister. 22249 NM=$lt_NM 22250 22251 # Whether we need soft or hard links. 22252 LN_S=$lt_LN_S 22253 22254 # What is the maximum length of a command? 22255 max_cmd_len=$max_cmd_len 22256 22257 # Object file suffix (normally "o"). 22258 objext=$ac_objext 22259 22260 # Executable file suffix (normally ""). 22261 exeext=$exeext 22262 22263 # whether the shell understands "unset". 22264 lt_unset=$lt_unset 22265 22266 # turn spaces into newlines. 22267 SP2NL=$lt_lt_SP2NL 22268 22269 # turn newlines into spaces. 22270 NL2SP=$lt_lt_NL2SP 22271 22272 # convert \$build file names to \$host format. 22273 to_host_file_cmd=$lt_cv_to_host_file_cmd 22274 22275 # convert \$build files to toolchain format. 22276 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22277 22278 # A file(cmd) program that detects file types. 22279 FILECMD=$lt_FILECMD 22280 22281 # An object symbol dumper. 22282 OBJDUMP=$lt_OBJDUMP 22283 22284 # Method to check whether dependent libraries are shared objects. 22285 deplibs_check_method=$lt_deplibs_check_method 22286 22287 # Command to use when deplibs_check_method = "file_magic". 22288 file_magic_cmd=$lt_file_magic_cmd 22289 22290 # How to find potential files when deplibs_check_method = "file_magic". 22291 file_magic_glob=$lt_file_magic_glob 22292 22293 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22294 want_nocaseglob=$lt_want_nocaseglob 22295 22296 # DLL creation program. 22297 DLLTOOL=$lt_DLLTOOL 22298 22299 # Command to associate shared and link libraries. 22300 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22301 22302 # The archiver. 22303 AR=$lt_AR 22304 22305 # Flags to create an archive (by configure). 22306 lt_ar_flags=$lt_ar_flags 22307 22308 # Flags to create an archive. 22309 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22310 22311 # How to feed a file listing to the archiver. 22312 archiver_list_spec=$lt_archiver_list_spec 22313 22314 # A symbol stripping program. 22315 STRIP=$lt_STRIP 22316 22317 # Commands used to install an old-style archive. 22318 RANLIB=$lt_RANLIB 22319 old_postinstall_cmds=$lt_old_postinstall_cmds 22320 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22321 22322 # Whether to use a lock for old archive extraction. 22323 lock_old_archive_extraction=$lock_old_archive_extraction 22324 22325 # A C compiler. 22326 LTCC=$lt_CC 22327 22328 # LTCC compiler flags. 22329 LTCFLAGS=$lt_CFLAGS 22330 22331 # Take the output of nm and produce a listing of raw symbols and C names. 22332 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22333 22334 # Transform the output of nm in a proper C declaration. 22335 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22336 22337 # Transform the output of nm into a list of symbols to manually relocate. 22338 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22339 22340 # Transform the output of nm in a C name address pair. 22341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22342 22343 # Transform the output of nm in a C name address pair when lib prefix is needed. 22344 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22345 22346 # The name lister interface. 22347 nm_interface=$lt_lt_cv_nm_interface 22348 22349 # Specify filename containing input files for \$NM. 22350 nm_file_list_spec=$lt_nm_file_list_spec 22351 22352 # The root where to search for dependent libraries,and where our libraries should be installed. 22353 lt_sysroot=$lt_sysroot 22354 22355 # Command to truncate a binary pipe. 22356 lt_truncate_bin=$lt_lt_cv_truncate_bin 22357 22358 # The name of the directory that contains temporary libtool files. 22359 objdir=$objdir 22360 22361 # Used to examine libraries when file_magic_cmd begins with "file". 22362 MAGIC_CMD=$MAGIC_CMD 22363 22364 # Must we lock files when doing compilation? 22365 need_locks=$lt_need_locks 22366 22367 # Manifest tool. 22368 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22369 22370 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22371 DSYMUTIL=$lt_DSYMUTIL 22372 22373 # Tool to change global to local symbols on Mac OS X. 22374 NMEDIT=$lt_NMEDIT 22375 22376 # Tool to manipulate fat objects and archives on Mac OS X. 22377 LIPO=$lt_LIPO 22378 22379 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22380 OTOOL=$lt_OTOOL 22381 22382 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22383 OTOOL64=$lt_OTOOL64 22384 22385 # Old archive suffix (normally "a"). 22386 libext=$libext 22387 22388 # Shared library suffix (normally ".so"). 22389 shrext_cmds=$lt_shrext_cmds 22390 22391 # The commands to extract the exported symbol list from a shared archive. 22392 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22393 22394 # Variables whose values should be saved in libtool wrapper scripts and 22395 # restored at link time. 22396 variables_saved_for_relink=$lt_variables_saved_for_relink 22397 22398 # Do we need the "lib" prefix for modules? 22399 need_lib_prefix=$need_lib_prefix 22400 22401 # Do we need a version for libraries? 22402 need_version=$need_version 22403 22404 # Library versioning type. 22405 version_type=$version_type 22406 22407 # Shared library runtime path variable. 22408 runpath_var=$runpath_var 22409 22410 # Shared library path variable. 22411 shlibpath_var=$shlibpath_var 22412 22413 # Is shlibpath searched before the hard-coded library search path? 22414 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22415 22416 # Format of library name prefix. 22417 libname_spec=$lt_libname_spec 22418 22419 # List of archive names. First name is the real one, the rest are links. 22420 # The last name is the one that the linker finds with -lNAME 22421 library_names_spec=$lt_library_names_spec 22422 22423 # The coded name of the library, if different from the real name. 22424 soname_spec=$lt_soname_spec 22425 22426 # Permission mode override for installation of shared libraries. 22427 install_override_mode=$lt_install_override_mode 22428 22429 # Command to use after installation of a shared archive. 22430 postinstall_cmds=$lt_postinstall_cmds 22431 22432 # Command to use after uninstallation of a shared archive. 22433 postuninstall_cmds=$lt_postuninstall_cmds 22434 22435 # Commands used to finish a libtool library installation in a directory. 22436 finish_cmds=$lt_finish_cmds 22437 22438 # As "finish_cmds", except a single script fragment to be evaled but 22439 # not shown. 22440 finish_eval=$lt_finish_eval 22441 22442 # Whether we should hardcode library paths into libraries. 22443 hardcode_into_libs=$hardcode_into_libs 22444 22445 # Compile-time system search path for libraries. 22446 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22447 22448 # Detected run-time system search path for libraries. 22449 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22450 22451 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22452 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22453 22454 # Whether dlopen is supported. 22455 dlopen_support=$enable_dlopen 22456 22457 # Whether dlopen of programs is supported. 22458 dlopen_self=$enable_dlopen_self 22459 22460 # Whether dlopen of statically linked programs is supported. 22461 dlopen_self_static=$enable_dlopen_self_static 22462 22463 # Commands to strip libraries. 22464 old_striplib=$lt_old_striplib 22465 striplib=$lt_striplib 22466 22467 22468 # The linker used to build libraries. 22469 LD=$lt_LD 22470 22471 # How to create reloadable object files. 22472 reload_flag=$lt_reload_flag 22473 reload_cmds=$lt_reload_cmds 22474 22475 # Commands used to build an old-style archive. 22476 old_archive_cmds=$lt_old_archive_cmds 22477 22478 # A language specific compiler. 22479 CC=$lt_compiler 22480 22481 # Is the compiler the GNU compiler? 22482 with_gcc=$GCC 22483 22484 # Compiler flag to turn off builtin functions. 22485 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22486 22487 # Additional compiler flags for building library objects. 22488 pic_flag=$lt_lt_prog_compiler_pic 22489 22490 # How to pass a linker flag through the compiler. 22491 wl=$lt_lt_prog_compiler_wl 22492 22493 # Compiler flag to prevent dynamic linking. 22494 link_static_flag=$lt_lt_prog_compiler_static 22495 22496 # Does compiler simultaneously support -c and -o options? 22497 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22498 22499 # Whether or not to add -lc for building shared libraries. 22500 build_libtool_need_lc=$archive_cmds_need_lc 22501 22502 # Whether or not to disallow shared libs when runtime libs are static. 22503 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22504 22505 # Compiler flag to allow reflexive dlopens. 22506 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22507 22508 # Compiler flag to generate shared objects directly from archives. 22509 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22510 22511 # Whether the compiler copes with passing no objects directly. 22512 compiler_needs_object=$lt_compiler_needs_object 22513 22514 # Create an old-style archive from a shared archive. 22515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22516 22517 # Create a temporary old-style archive to link instead of a shared archive. 22518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22519 22520 # Commands used to build a shared archive. 22521 archive_cmds=$lt_archive_cmds 22522 archive_expsym_cmds=$lt_archive_expsym_cmds 22523 22524 # Commands used to build a loadable module if different from building 22525 # a shared archive. 22526 module_cmds=$lt_module_cmds 22527 module_expsym_cmds=$lt_module_expsym_cmds 22528 22529 # Whether we are building with GNU ld or not. 22530 with_gnu_ld=$lt_with_gnu_ld 22531 22532 # Flag that allows shared libraries with undefined symbols to be built. 22533 allow_undefined_flag=$lt_allow_undefined_flag 22534 22535 # Flag that enforces no undefined symbols. 22536 no_undefined_flag=$lt_no_undefined_flag 22537 22538 # Flag to hardcode \$libdir into a binary during linking. 22539 # This must work even if \$libdir does not exist 22540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22541 22542 # Whether we need a single "-rpath" flag with a separated argument. 22543 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22544 22545 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22546 # DIR into the resulting binary. 22547 hardcode_direct=$hardcode_direct 22548 22549 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22550 # DIR into the resulting binary and the resulting library dependency is 22551 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 22552 # library is relocated. 22553 hardcode_direct_absolute=$hardcode_direct_absolute 22554 22555 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22556 # into the resulting binary. 22557 hardcode_minus_L=$hardcode_minus_L 22558 22559 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22560 # into the resulting binary. 22561 hardcode_shlibpath_var=$hardcode_shlibpath_var 22562 22563 # Set to "yes" if building a shared library automatically hardcodes DIR 22564 # into the library and all subsequent libraries and executables linked 22565 # against it. 22566 hardcode_automatic=$hardcode_automatic 22567 22568 # Set to yes if linker adds runtime paths of dependent libraries 22569 # to runtime path list. 22570 inherit_rpath=$inherit_rpath 22571 22572 # Whether libtool must link a program against all its dependency libraries. 22573 link_all_deplibs=$link_all_deplibs 22574 22575 # Set to "yes" if exported symbols are required. 22576 always_export_symbols=$always_export_symbols 22577 22578 # The commands to list exported symbols. 22579 export_symbols_cmds=$lt_export_symbols_cmds 22580 22581 # Symbols that should not be listed in the preloaded symbols. 22582 exclude_expsyms=$lt_exclude_expsyms 22583 22584 # Symbols that must always be exported. 22585 include_expsyms=$lt_include_expsyms 22586 22587 # Commands necessary for linking programs (against libraries) with templates. 22588 prelink_cmds=$lt_prelink_cmds 22589 22590 # Commands necessary for finishing linking programs. 22591 postlink_cmds=$lt_postlink_cmds 22592 22593 # Specify filename containing input files. 22594 file_list_spec=$lt_file_list_spec 22595 22596 # How to hardcode a shared library path into an executable. 22597 hardcode_action=$hardcode_action 22598 22599 # ### END LIBTOOL CONFIG 22600 22601 _LT_EOF 22602 22603 cat <<'_LT_EOF' >> "$cfgfile" 22604 22605 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22606 22607 # func_munge_path_list VARIABLE PATH 22608 # ----------------------------------- 22609 # VARIABLE is name of variable containing _space_ separated list of 22610 # directories to be munged by the contents of PATH, which is string 22611 # having a format: 22612 # "DIR[:DIR]:" 22613 # string "DIR[ DIR]" will be prepended to VARIABLE 22614 # ":DIR[:DIR]" 22615 # string "DIR[ DIR]" will be appended to VARIABLE 22616 # "DIRP[:DIRP]::[DIRA:]DIRA" 22617 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22618 # "DIRA[ DIRA]" will be appended to VARIABLE 22619 # "DIR[:DIR]" 22620 # VARIABLE will be replaced by "DIR[ DIR]" 22621 func_munge_path_list () 22622 { 22623 case x$2 in 22624 x) 22625 ;; 22626 *:) 22627 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22628 ;; 22629 x:*) 22630 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22631 ;; 22632 *::*) 22633 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22634 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22635 ;; 22636 *) 22637 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22638 ;; 22639 esac 22640 } 22641 22642 22643 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22644 func_cc_basename () 22645 { 22646 for cc_temp in $*""; do 22647 case $cc_temp in 22648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22650 \-*) ;; 22651 *) break;; 22652 esac 22653 done 22654 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22655 } 22656 22657 22658 # ### END FUNCTIONS SHARED WITH CONFIGURE 22659 22660 _LT_EOF 22661 22662 case $host_os in 22663 aix3*) 22664 cat <<\_LT_EOF >> "$cfgfile" 22665 # AIX sometimes has problems with the GCC collect2 program. For some 22666 # reason, if we set the COLLECT_NAMES environment variable, the problems 22667 # vanish in a puff of smoke. 22668 if test set != "${COLLECT_NAMES+set}"; then 22669 COLLECT_NAMES= 22670 export COLLECT_NAMES 22671 fi 22672 _LT_EOF 22673 ;; 22674 esac 22675 22676 22677 22678 ltmain=$ac_aux_dir/ltmain.sh 22679 22680 22681 # We use sed instead of cat because bash on DJGPP gets confused if 22682 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22683 # text mode, it properly converts lines to CR/LF. This bash problem 22684 # is reportedly fixed, but why not run on old versions too? 22685 $SED '$q' "$ltmain" >> "$cfgfile" \ 22686 || (rm -f "$cfgfile"; exit 1) 22687 22688 mv -f "$cfgfile" "$ofile" || 22689 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22690 chmod +x "$ofile" 22691 22692 ;; 22693 22694 esac 22695 done # for ac_tag 22696 22697 22698 as_fn_exit 0 22699 _ACEOF 22700 ac_clean_files=$ac_clean_files_save 22701 22702 test $ac_write_fail = 0 || 22703 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22704 22705 22706 # configure is writing to config.log, and then calls config.status. 22707 # config.status does its own redirection, appending to config.log. 22708 # Unfortunately, on DOS this fails, as config.log is still kept open 22709 # by configure, so config.status won't be able to write to it; its 22710 # output is simply discarded. So we exec the FD to /dev/null, 22711 # effectively closing config.log, so it can be properly (re)opened and 22712 # appended to by config.status. When coming back to configure, we 22713 # need to make the FD available again. 22714 if test "$no_create" != yes; then 22715 ac_cs_success=: 22716 ac_config_status_args= 22717 test "$silent" = yes && 22718 ac_config_status_args="$ac_config_status_args --quiet" 22719 exec 5>/dev/null 22720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22721 exec 5>>config.log 22722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22723 # would make configure fail if this is the last instruction. 22724 $ac_cs_success || as_fn_exit 1 22725 fi 22726 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22728 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22729 fi 22730 22731 22732