1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for xf86-video-intel 2.99.917. 4 # 5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244 fi; } 245 IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279 $0: about your system, including any error possibly output 280 $0: before this message. Then install a modern shell, or 281 $0: manually run the script under such a shell if you do 282 $0: have one." 283 fi 284 exit 1 285 fi 286 fi 287 fi 288 SHELL=${CONFIG_SHELL-/bin/sh} 289 export SHELL 290 # Unset more variables known to interfere with behavior of common tools. 291 CLICOLOR_FORCE= GREP_OPTIONS= 292 unset CLICOLOR_FORCE GREP_OPTIONS 293 294 ## --------------------- ## 295 ## M4sh Shell Functions. ## 296 ## --------------------- ## 297 # as_fn_unset VAR 298 # --------------- 299 # Portably unset VAR. 300 as_fn_unset () 301 { 302 { eval $1=; unset $1;} 303 } 304 as_unset=as_fn_unset 305 306 # as_fn_set_status STATUS 307 # ----------------------- 308 # Set $? to STATUS, without forking. 309 as_fn_set_status () 310 { 311 return $1 312 } # as_fn_set_status 313 314 # as_fn_exit STATUS 315 # ----------------- 316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317 as_fn_exit () 318 { 319 set +e 320 as_fn_set_status $1 321 exit $1 322 } # as_fn_exit 323 324 # as_fn_mkdir_p 325 # ------------- 326 # Create "$as_dir" as a directory, including parents if necessary. 327 as_fn_mkdir_p () 328 { 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346 $as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370 } # as_fn_mkdir_p 371 372 # as_fn_executable_p FILE 373 # ----------------------- 374 # Test if FILE is an executable regular file. 375 as_fn_executable_p () 376 { 377 test -f "$1" && test -x "$1" 378 } # as_fn_executable_p 379 # as_fn_append VAR VALUE 380 # ---------------------- 381 # Append the text in VALUE to the end of the definition contained in VAR. Take 382 # advantage of any shell optimizations that allow amortized linear growth over 383 # repeated appends, instead of the typical quadratic growth present in naive 384 # implementations. 385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390 else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395 fi # as_fn_append 396 397 # as_fn_arith ARG... 398 # ------------------ 399 # Perform arithmetic evaluation on the ARGs, and store the result in the 400 # global $as_val. Take advantage of shells that can avoid forks. The arguments 401 # must be portable across $(()) and expr. 402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407 else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412 fi # as_fn_arith 413 414 415 # as_fn_error STATUS ERROR [LINENO LOG_FD] 416 # ---------------------------------------- 417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419 # script with STATUS, using 1 if that was 0. 420 as_fn_error () 421 { 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429 } # as_fn_error 430 431 if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434 else 435 as_expr=false 436 fi 437 438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440 else 441 as_basename=false 442 fi 443 444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446 else 447 as_dirname=false 448 fi 449 450 as_me=`$as_basename -- "$0" || 451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454 $as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469 # Avoid depending upon Character Ranges. 470 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473 as_cr_digits='0123456789' 474 as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510 } 511 512 ECHO_C= ECHO_N= ECHO_T= 513 case `echo -n x` in #((((( 514 -n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521 *) 522 ECHO_N='-n';; 523 esac 524 525 rm -f conf$$ conf$$.exe conf$$.file 526 if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528 else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531 fi 532 if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546 else 547 as_ln_s='cp -pR' 548 fi 549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550 rmdir conf$$.dir 2>/dev/null 551 552 if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554 else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557 fi 558 559 as_test_x='test -x' 560 as_executable_p=as_fn_executable_p 561 562 # Sed expression to map a string onto a valid CPP name. 563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565 # Sed expression to map a string onto a valid variable name. 566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568 SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571 test -n "$DJDIR" || exec 7<&0 </dev/null 572 exec 6>&1 573 574 # Name of the host. 575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576 # so uname gets run too. 577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579 # 580 # Initializations. 581 # 582 ac_default_prefix=/usr/local 583 ac_clean_files= 584 ac_config_libobj_dir=. 585 LIBOBJS= 586 cross_compiling=no 587 subdirs= 588 MFLAGS= 589 MAKEFLAGS= 590 591 # Identity of this package. 592 PACKAGE_NAME='xf86-video-intel' 593 PACKAGE_TARNAME='xf86-video-intel' 594 PACKAGE_VERSION='2.99.917' 595 PACKAGE_STRING='xf86-video-intel 2.99.917' 596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597 PACKAGE_URL='' 598 599 ac_unique_file="Makefile.am" 600 # Factoring default headers for most tests. 601 ac_includes_default="\ 602 #include <stdio.h> 603 #ifdef HAVE_SYS_TYPES_H 604 # include <sys/types.h> 605 #endif 606 #ifdef HAVE_SYS_STAT_H 607 # include <sys/stat.h> 608 #endif 609 #ifdef STDC_HEADERS 610 # include <stdlib.h> 611 # include <stddef.h> 612 #else 613 # ifdef HAVE_STDLIB_H 614 # include <stdlib.h> 615 # endif 616 #endif 617 #ifdef HAVE_STRING_H 618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619 # include <memory.h> 620 # endif 621 # include <string.h> 622 #endif 623 #ifdef HAVE_STRINGS_H 624 # include <strings.h> 625 #endif 626 #ifdef HAVE_INTTYPES_H 627 # include <inttypes.h> 628 #endif 629 #ifdef HAVE_STDINT_H 630 # include <stdint.h> 631 #endif 632 #ifdef HAVE_UNISTD_H 633 # include <unistd.h> 634 #endif" 635 636 ac_config_libobj_dir=libobj 637 ac_subst_vars='am__EXEEXT_FALSE 638 am__EXEEXT_TRUE 639 LTLIBOBJS 640 LIBEXEC_PATH 641 PREFIX_PATH 642 moduledir 643 DRIVER_NAME 644 LIBOBJS 645 VALGRIND_FALSE 646 VALGRIND_TRUE 647 VALGRIND_LIBS 648 VALGRIND_CFLAGS 649 FULL_DEBUG_FALSE 650 FULL_DEBUG_TRUE 651 DEBUG_FALSE 652 DEBUG_TRUE 653 CLOCK_GETTIME_LIBS 654 USE_ASYNC_SWAP_FALSE 655 USE_ASYNC_SWAP_TRUE 656 USE_CREATE2_FALSE 657 USE_CREATE2_TRUE 658 XVMC_FALSE 659 XVMC_TRUE 660 XVMCLIB_LIBS 661 XVMCLIB_CFLAGS 662 SNA_FALSE 663 SNA_TRUE 664 UXA_FALSE 665 UXA_TRUE 666 PRESENT_FALSE 667 PRESENT_TRUE 668 PRESENT_LIBS 669 PRESENT_CFLAGS 670 DRI3_FALSE 671 DRI3_TRUE 672 DRI2_FALSE 673 DRI2_TRUE 674 DRI3_LIBS 675 DRI3_CFLAGS 676 DRI_DRIVER_PATH 677 DRI2_LIBS 678 DRI2_CFLAGS 679 DRI1_FALSE 680 DRI1_TRUE 681 DRI1_LIBS 682 DRI1_CFLAGS 683 UMS_FALSE 684 UMS_TRUE 685 KMS_FALSE 686 KMS_TRUE 687 XAA_FALSE 688 XAA_TRUE 689 DGA_FALSE 690 DGA_TRUE 691 XORG_LIBS 692 XORG_CFLAGS 693 DRMINTEL_LIBS 694 DRMINTEL_CFLAGS 695 ALLOCA 696 PCIACCESS_LIBS 697 PCIACCESS_CFLAGS 698 DRM_LIBS 699 DRM_CFLAGS 700 BUILD_TOOL_CURSOR_FALSE 701 BUILD_TOOL_CURSOR_TRUE 702 BUILD_TOOLS_FALSE 703 BUILD_TOOLS_TRUE 704 TOOL_CURSOR_LIBS 705 TOOL_CURSOR_CFLAGS 706 IVO_LIBS 707 IVO_CFLAGS 708 IVO_EXTRA_LIBS 709 IVO_EXTRA_CFLAGS 710 X11_VM_FALSE 711 X11_VM_TRUE 712 X11_VM_LIBS 713 X11_VM_CFLAGS 714 X11_SHM_FALSE 715 X11_SHM_TRUE 716 X11_DRI3_FALSE 717 X11_DRI3_TRUE 718 X11_DRI3_LIBS 719 X11_DRI3_CFLAGS 720 HAVE_X11_FALSE 721 HAVE_X11_TRUE 722 X11_LIBS 723 X11_CFLAGS 724 UDEV_LIBS 725 UDEV_CFLAGS 726 HAVE_GEN4ASM_FALSE 727 HAVE_GEN4ASM_TRUE 728 INTEL_GEN4ASM 729 GEN4ASM_LIBS 730 GEN4ASM_CFLAGS 731 HAVE_DOT_GIT_FALSE 732 HAVE_DOT_GIT_TRUE 733 BUILD_BACKLIGHT_HELPER_FALSE 734 BUILD_BACKLIGHT_HELPER_TRUE 735 LT_SYS_LIBRARY_PATH 736 OTOOL64 737 OTOOL 738 LIPO 739 NMEDIT 740 DSYMUTIL 741 MANIFEST_TOOL 742 RANLIB 743 ac_ct_AR 744 AR 745 DLLTOOL 746 OBJDUMP 747 LN_S 748 NM 749 ac_ct_DUMPBIN 750 DUMPBIN 751 LD 752 FGREP 753 LIBTOOL 754 NOWARNFLAGS 755 MAN_SUBSTS 756 XORG_MAN_PAGE 757 ADMIN_MAN_DIR 758 DRIVER_MAN_DIR 759 MISC_MAN_DIR 760 FILE_MAN_DIR 761 LIB_MAN_DIR 762 APP_MAN_DIR 763 ADMIN_MAN_SUFFIX 764 DRIVER_MAN_SUFFIX 765 MISC_MAN_SUFFIX 766 FILE_MAN_SUFFIX 767 LIB_MAN_SUFFIX 768 APP_MAN_SUFFIX 769 SED 770 host_os 771 host_vendor 772 host_cpu 773 host 774 build_os 775 build_vendor 776 build_cpu 777 build 778 INSTALL_CMD 779 PKG_CONFIG_LIBDIR 780 PKG_CONFIG_PATH 781 PKG_CONFIG 782 CHANGELOG_CMD 783 STRICT_CFLAGS 784 CWARNFLAGS 785 BASE_CFLAGS 786 EGREP 787 GREP 788 CPP 789 am__fastdepCC_FALSE 790 am__fastdepCC_TRUE 791 CCDEPMODE 792 am__nodep 793 AMDEPBACKSLASH 794 AMDEP_FALSE 795 AMDEP_TRUE 796 am__include 797 DEPDIR 798 OBJEXT 799 EXEEXT 800 ac_ct_CC 801 CPPFLAGS 802 LDFLAGS 803 CFLAGS 804 CC 805 AM_BACKSLASH 806 AM_DEFAULT_VERBOSITY 807 AM_DEFAULT_V 808 AM_V 809 am__untar 810 am__tar 811 AMTAR 812 am__leading_dot 813 SET_MAKE 814 AWK 815 mkdir_p 816 MKDIR_P 817 INSTALL_STRIP_PROGRAM 818 STRIP 819 install_sh 820 MAKEINFO 821 AUTOHEADER 822 AUTOMAKE 823 AUTOCONF 824 ACLOCAL 825 VERSION 826 PACKAGE 827 CYGPATH_W 828 am__isrc 829 INSTALL_DATA 830 INSTALL_SCRIPT 831 INSTALL_PROGRAM 832 target_alias 833 host_alias 834 build_alias 835 LIBS 836 ECHO_T 837 ECHO_N 838 ECHO_C 839 DEFS 840 mandir 841 localedir 842 libdir 843 psdir 844 pdfdir 845 dvidir 846 htmldir 847 infodir 848 docdir 849 oldincludedir 850 includedir 851 localstatedir 852 sharedstatedir 853 sysconfdir 854 datadir 855 datarootdir 856 libexecdir 857 sbindir 858 bindir 859 program_transform_name 860 prefix 861 exec_prefix 862 PACKAGE_URL 863 PACKAGE_BUGREPORT 864 PACKAGE_STRING 865 PACKAGE_VERSION 866 PACKAGE_TARNAME 867 PACKAGE_NAME 868 PATH_SEPARATOR 869 SHELL 870 am__quote' 871 ac_subst_files='' 872 ac_user_opts=' 873 enable_option_checking 874 enable_silent_rules 875 enable_dependency_tracking 876 enable_selective_werror 877 enable_strict_compilation 878 enable_static 879 enable_shared 880 with_pic 881 enable_fast_install 882 with_aix_soname 883 with_gnu_ld 884 with_sysroot 885 enable_libtool_lock 886 enable_largefile 887 enable_backlight 888 enable_backlight_helper 889 with_builderstring 890 enable_gen4asm 891 with_gen4asm 892 enable_udev 893 enable_tools 894 with_xorg_module_dir 895 enable_dri 896 enable_dri1 897 enable_dri2 898 enable_dri3 899 with_default_dri 900 enable_xvmc 901 enable_kms 902 enable_ums 903 enable_kms_only 904 enable_ums_only 905 enable_sna 906 enable_uxa 907 enable_xaa 908 enable_dga 909 with_default_accel 910 enable_tear_free 911 enable_create2 912 enable_async_swap 913 enable_debug 914 enable_valgrind 915 ' 916 ac_precious_vars='build_alias 917 host_alias 918 target_alias 919 CC 920 CFLAGS 921 LDFLAGS 922 LIBS 923 CPPFLAGS 924 CPP 925 PKG_CONFIG 926 PKG_CONFIG_PATH 927 PKG_CONFIG_LIBDIR 928 LT_SYS_LIBRARY_PATH 929 GEN4ASM_CFLAGS 930 GEN4ASM_LIBS 931 UDEV_CFLAGS 932 UDEV_LIBS 933 X11_CFLAGS 934 X11_LIBS 935 X11_DRI3_CFLAGS 936 X11_DRI3_LIBS 937 X11_VM_CFLAGS 938 X11_VM_LIBS 939 IVO_EXTRA_CFLAGS 940 IVO_EXTRA_LIBS 941 IVO_CFLAGS 942 IVO_LIBS 943 TOOL_CURSOR_CFLAGS 944 TOOL_CURSOR_LIBS 945 DRM_CFLAGS 946 DRM_LIBS 947 PCIACCESS_CFLAGS 948 PCIACCESS_LIBS 949 DRMINTEL_CFLAGS 950 DRMINTEL_LIBS 951 XORG_CFLAGS 952 XORG_LIBS 953 DRI1_CFLAGS 954 DRI1_LIBS 955 DRI2_CFLAGS 956 DRI2_LIBS 957 DRI3_CFLAGS 958 DRI3_LIBS 959 PRESENT_CFLAGS 960 PRESENT_LIBS 961 XVMCLIB_CFLAGS 962 XVMCLIB_LIBS 963 VALGRIND_CFLAGS 964 VALGRIND_LIBS' 965 966 967 # Initialize some variables set by options. 968 ac_init_help= 969 ac_init_version=false 970 ac_unrecognized_opts= 971 ac_unrecognized_sep= 972 # The variables have the same names as the options, with 973 # dashes changed to underlines. 974 cache_file=/dev/null 975 exec_prefix=NONE 976 no_create= 977 no_recursion= 978 prefix=NONE 979 program_prefix=NONE 980 program_suffix=NONE 981 program_transform_name=s,x,x, 982 silent= 983 site= 984 srcdir= 985 verbose= 986 x_includes=NONE 987 x_libraries=NONE 988 989 # Installation directory options. 990 # These are left unexpanded so users can "make install exec_prefix=/foo" 991 # and all the variables that are supposed to be based on exec_prefix 992 # by default will actually change. 993 # Use braces instead of parens because sh, perl, etc. also accept them. 994 # (The list follows the same order as the GNU Coding Standards.) 995 bindir='${exec_prefix}/bin' 996 sbindir='${exec_prefix}/sbin' 997 libexecdir='${exec_prefix}/libexec' 998 datarootdir='${prefix}/share' 999 datadir='${datarootdir}' 1000 sysconfdir='${prefix}/etc' 1001 sharedstatedir='${prefix}/com' 1002 localstatedir='${prefix}/var' 1003 includedir='${prefix}/include' 1004 oldincludedir='/usr/include' 1005 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1006 infodir='${datarootdir}/info' 1007 htmldir='${docdir}' 1008 dvidir='${docdir}' 1009 pdfdir='${docdir}' 1010 psdir='${docdir}' 1011 libdir='${exec_prefix}/lib' 1012 localedir='${datarootdir}/locale' 1013 mandir='${datarootdir}/man' 1014 1015 ac_prev= 1016 ac_dashdash= 1017 for ac_option 1018 do 1019 # If the previous option needs an argument, assign it. 1020 if test -n "$ac_prev"; then 1021 eval $ac_prev=\$ac_option 1022 ac_prev= 1023 continue 1024 fi 1025 1026 case $ac_option in 1027 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1028 *=) ac_optarg= ;; 1029 *) ac_optarg=yes ;; 1030 esac 1031 1032 # Accept the important Cygnus configure options, so we can diagnose typos. 1033 1034 case $ac_dashdash$ac_option in 1035 --) 1036 ac_dashdash=yes ;; 1037 1038 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1039 ac_prev=bindir ;; 1040 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1041 bindir=$ac_optarg ;; 1042 1043 -build | --build | --buil | --bui | --bu) 1044 ac_prev=build_alias ;; 1045 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1046 build_alias=$ac_optarg ;; 1047 1048 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1049 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1050 ac_prev=cache_file ;; 1051 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1052 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1053 cache_file=$ac_optarg ;; 1054 1055 --config-cache | -C) 1056 cache_file=config.cache ;; 1057 1058 -datadir | --datadir | --datadi | --datad) 1059 ac_prev=datadir ;; 1060 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1061 datadir=$ac_optarg ;; 1062 1063 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1064 | --dataroo | --dataro | --datar) 1065 ac_prev=datarootdir ;; 1066 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1067 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1068 datarootdir=$ac_optarg ;; 1069 1070 -disable-* | --disable-*) 1071 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1072 # Reject names that are not valid shell variable names. 1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1074 as_fn_error $? "invalid feature name: $ac_useropt" 1075 ac_useropt_orig=$ac_useropt 1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1077 case $ac_user_opts in 1078 *" 1079 "enable_$ac_useropt" 1080 "*) ;; 1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1082 ac_unrecognized_sep=', ';; 1083 esac 1084 eval enable_$ac_useropt=no ;; 1085 1086 -docdir | --docdir | --docdi | --doc | --do) 1087 ac_prev=docdir ;; 1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1089 docdir=$ac_optarg ;; 1090 1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1092 ac_prev=dvidir ;; 1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1094 dvidir=$ac_optarg ;; 1095 1096 -enable-* | --enable-*) 1097 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1098 # Reject names that are not valid shell variable names. 1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1100 as_fn_error $? "invalid feature name: $ac_useropt" 1101 ac_useropt_orig=$ac_useropt 1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1103 case $ac_user_opts in 1104 *" 1105 "enable_$ac_useropt" 1106 "*) ;; 1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1108 ac_unrecognized_sep=', ';; 1109 esac 1110 eval enable_$ac_useropt=\$ac_optarg ;; 1111 1112 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1113 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1114 | --exec | --exe | --ex) 1115 ac_prev=exec_prefix ;; 1116 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1117 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1118 | --exec=* | --exe=* | --ex=*) 1119 exec_prefix=$ac_optarg ;; 1120 1121 -gas | --gas | --ga | --g) 1122 # Obsolete; use --with-gas. 1123 with_gas=yes ;; 1124 1125 -help | --help | --hel | --he | -h) 1126 ac_init_help=long ;; 1127 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1128 ac_init_help=recursive ;; 1129 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1130 ac_init_help=short ;; 1131 1132 -host | --host | --hos | --ho) 1133 ac_prev=host_alias ;; 1134 -host=* | --host=* | --hos=* | --ho=*) 1135 host_alias=$ac_optarg ;; 1136 1137 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1138 ac_prev=htmldir ;; 1139 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1140 | --ht=*) 1141 htmldir=$ac_optarg ;; 1142 1143 -includedir | --includedir | --includedi | --included | --include \ 1144 | --includ | --inclu | --incl | --inc) 1145 ac_prev=includedir ;; 1146 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1147 | --includ=* | --inclu=* | --incl=* | --inc=*) 1148 includedir=$ac_optarg ;; 1149 1150 -infodir | --infodir | --infodi | --infod | --info | --inf) 1151 ac_prev=infodir ;; 1152 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1153 infodir=$ac_optarg ;; 1154 1155 -libdir | --libdir | --libdi | --libd) 1156 ac_prev=libdir ;; 1157 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1158 libdir=$ac_optarg ;; 1159 1160 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1161 | --libexe | --libex | --libe) 1162 ac_prev=libexecdir ;; 1163 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1164 | --libexe=* | --libex=* | --libe=*) 1165 libexecdir=$ac_optarg ;; 1166 1167 -localedir | --localedir | --localedi | --localed | --locale) 1168 ac_prev=localedir ;; 1169 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1170 localedir=$ac_optarg ;; 1171 1172 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1173 | --localstate | --localstat | --localsta | --localst | --locals) 1174 ac_prev=localstatedir ;; 1175 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1176 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1177 localstatedir=$ac_optarg ;; 1178 1179 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1180 ac_prev=mandir ;; 1181 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1182 mandir=$ac_optarg ;; 1183 1184 -nfp | --nfp | --nf) 1185 # Obsolete; use --without-fp. 1186 with_fp=no ;; 1187 1188 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1189 | --no-cr | --no-c | -n) 1190 no_create=yes ;; 1191 1192 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1193 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1194 no_recursion=yes ;; 1195 1196 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1197 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1198 | --oldin | --oldi | --old | --ol | --o) 1199 ac_prev=oldincludedir ;; 1200 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1201 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1202 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1203 oldincludedir=$ac_optarg ;; 1204 1205 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1206 ac_prev=prefix ;; 1207 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1208 prefix=$ac_optarg ;; 1209 1210 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1211 | --program-pre | --program-pr | --program-p) 1212 ac_prev=program_prefix ;; 1213 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1214 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1215 program_prefix=$ac_optarg ;; 1216 1217 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1218 | --program-suf | --program-su | --program-s) 1219 ac_prev=program_suffix ;; 1220 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1221 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1222 program_suffix=$ac_optarg ;; 1223 1224 -program-transform-name | --program-transform-name \ 1225 | --program-transform-nam | --program-transform-na \ 1226 | --program-transform-n | --program-transform- \ 1227 | --program-transform | --program-transfor \ 1228 | --program-transfo | --program-transf \ 1229 | --program-trans | --program-tran \ 1230 | --progr-tra | --program-tr | --program-t) 1231 ac_prev=program_transform_name ;; 1232 -program-transform-name=* | --program-transform-name=* \ 1233 | --program-transform-nam=* | --program-transform-na=* \ 1234 | --program-transform-n=* | --program-transform-=* \ 1235 | --program-transform=* | --program-transfor=* \ 1236 | --program-transfo=* | --program-transf=* \ 1237 | --program-trans=* | --program-tran=* \ 1238 | --progr-tra=* | --program-tr=* | --program-t=*) 1239 program_transform_name=$ac_optarg ;; 1240 1241 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1242 ac_prev=pdfdir ;; 1243 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1244 pdfdir=$ac_optarg ;; 1245 1246 -psdir | --psdir | --psdi | --psd | --ps) 1247 ac_prev=psdir ;; 1248 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1249 psdir=$ac_optarg ;; 1250 1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1252 | -silent | --silent | --silen | --sile | --sil) 1253 silent=yes ;; 1254 1255 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1256 ac_prev=sbindir ;; 1257 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1258 | --sbi=* | --sb=*) 1259 sbindir=$ac_optarg ;; 1260 1261 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1262 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1263 | --sharedst | --shareds | --shared | --share | --shar \ 1264 | --sha | --sh) 1265 ac_prev=sharedstatedir ;; 1266 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1267 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1268 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1269 | --sha=* | --sh=*) 1270 sharedstatedir=$ac_optarg ;; 1271 1272 -site | --site | --sit) 1273 ac_prev=site ;; 1274 -site=* | --site=* | --sit=*) 1275 site=$ac_optarg ;; 1276 1277 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1278 ac_prev=srcdir ;; 1279 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1280 srcdir=$ac_optarg ;; 1281 1282 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1283 | --syscon | --sysco | --sysc | --sys | --sy) 1284 ac_prev=sysconfdir ;; 1285 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1286 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1287 sysconfdir=$ac_optarg ;; 1288 1289 -target | --target | --targe | --targ | --tar | --ta | --t) 1290 ac_prev=target_alias ;; 1291 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1292 target_alias=$ac_optarg ;; 1293 1294 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1295 verbose=yes ;; 1296 1297 -version | --version | --versio | --versi | --vers | -V) 1298 ac_init_version=: ;; 1299 1300 -with-* | --with-*) 1301 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1302 # Reject names that are not valid shell variable names. 1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1304 as_fn_error $? "invalid package name: $ac_useropt" 1305 ac_useropt_orig=$ac_useropt 1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1307 case $ac_user_opts in 1308 *" 1309 "with_$ac_useropt" 1310 "*) ;; 1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1312 ac_unrecognized_sep=', ';; 1313 esac 1314 eval with_$ac_useropt=\$ac_optarg ;; 1315 1316 -without-* | --without-*) 1317 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1318 # Reject names that are not valid shell variable names. 1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1320 as_fn_error $? "invalid package name: $ac_useropt" 1321 ac_useropt_orig=$ac_useropt 1322 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1323 case $ac_user_opts in 1324 *" 1325 "with_$ac_useropt" 1326 "*) ;; 1327 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1328 ac_unrecognized_sep=', ';; 1329 esac 1330 eval with_$ac_useropt=no ;; 1331 1332 --x) 1333 # Obsolete; use --with-x. 1334 with_x=yes ;; 1335 1336 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1337 | --x-incl | --x-inc | --x-in | --x-i) 1338 ac_prev=x_includes ;; 1339 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1340 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1341 x_includes=$ac_optarg ;; 1342 1343 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1344 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1345 ac_prev=x_libraries ;; 1346 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1347 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1348 x_libraries=$ac_optarg ;; 1349 1350 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1351 Try \`$0 --help' for more information" 1352 ;; 1353 1354 *=*) 1355 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1356 # Reject names that are not valid shell variable names. 1357 case $ac_envvar in #( 1358 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1359 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1360 esac 1361 eval $ac_envvar=\$ac_optarg 1362 export $ac_envvar ;; 1363 1364 *) 1365 # FIXME: should be removed in autoconf 3.0. 1366 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1367 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1368 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1369 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1370 ;; 1371 1372 esac 1373 done 1374 1375 if test -n "$ac_prev"; then 1376 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1377 as_fn_error $? "missing argument to $ac_option" 1378 fi 1379 1380 if test -n "$ac_unrecognized_opts"; then 1381 case $enable_option_checking in 1382 no) ;; 1383 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1384 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1385 esac 1386 fi 1387 1388 # Check all directory arguments for consistency. 1389 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1390 datadir sysconfdir sharedstatedir localstatedir includedir \ 1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1392 libdir localedir mandir 1393 do 1394 eval ac_val=\$$ac_var 1395 # Remove trailing slashes. 1396 case $ac_val in 1397 */ ) 1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1399 eval $ac_var=\$ac_val;; 1400 esac 1401 # Be sure to have absolute directory names. 1402 case $ac_val in 1403 [\\/$]* | ?:[\\/]* ) continue;; 1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1405 esac 1406 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1407 done 1408 1409 # There might be people who depend on the old broken behavior: `$host' 1410 # used to hold the argument of --host etc. 1411 # FIXME: To remove some day. 1412 build=$build_alias 1413 host=$host_alias 1414 target=$target_alias 1415 1416 # FIXME: To remove some day. 1417 if test "x$host_alias" != x; then 1418 if test "x$build_alias" = x; then 1419 cross_compiling=maybe 1420 elif test "x$build_alias" != "x$host_alias"; then 1421 cross_compiling=yes 1422 fi 1423 fi 1424 1425 ac_tool_prefix= 1426 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1427 1428 test "$silent" = yes && exec 6>/dev/null 1429 1430 1431 ac_pwd=`pwd` && test -n "$ac_pwd" && 1432 ac_ls_di=`ls -di .` && 1433 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1434 as_fn_error $? "working directory cannot be determined" 1435 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1436 as_fn_error $? "pwd does not report name of working directory" 1437 1438 1439 # Find the source files, if location was not specified. 1440 if test -z "$srcdir"; then 1441 ac_srcdir_defaulted=yes 1442 # Try the directory containing this script, then the parent directory. 1443 ac_confdir=`$as_dirname -- "$as_myself" || 1444 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1445 X"$as_myself" : 'X\(//\)[^/]' \| \ 1446 X"$as_myself" : 'X\(//\)$' \| \ 1447 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1448 $as_echo X"$as_myself" | 1449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1450 s//\1/ 1451 q 1452 } 1453 /^X\(\/\/\)[^/].*/{ 1454 s//\1/ 1455 q 1456 } 1457 /^X\(\/\/\)$/{ 1458 s//\1/ 1459 q 1460 } 1461 /^X\(\/\).*/{ 1462 s//\1/ 1463 q 1464 } 1465 s/.*/./; q'` 1466 srcdir=$ac_confdir 1467 if test ! -r "$srcdir/$ac_unique_file"; then 1468 srcdir=.. 1469 fi 1470 else 1471 ac_srcdir_defaulted=no 1472 fi 1473 if test ! -r "$srcdir/$ac_unique_file"; then 1474 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1475 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1476 fi 1477 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1478 ac_abs_confdir=`( 1479 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1480 pwd)` 1481 # When building in place, set srcdir=. 1482 if test "$ac_abs_confdir" = "$ac_pwd"; then 1483 srcdir=. 1484 fi 1485 # Remove unnecessary trailing slashes from srcdir. 1486 # Double slashes in file names in object file debugging info 1487 # mess up M-x gdb in Emacs. 1488 case $srcdir in 1489 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1490 esac 1491 for ac_var in $ac_precious_vars; do 1492 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1493 eval ac_env_${ac_var}_value=\$${ac_var} 1494 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1495 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1496 done 1497 1498 # 1499 # Report the --help message. 1500 # 1501 if test "$ac_init_help" = "long"; then 1502 # Omit some internal or obsolete options to make the list less imposing. 1503 # This message is too long to be a string in the A/UX 3.1 sh. 1504 cat <<_ACEOF 1505 \`configure' configures xf86-video-intel 2.99.917 to adapt to many kinds of systems. 1506 1507 Usage: $0 [OPTION]... [VAR=VALUE]... 1508 1509 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1510 VAR=VALUE. See below for descriptions of some of the useful variables. 1511 1512 Defaults for the options are specified in brackets. 1513 1514 Configuration: 1515 -h, --help display this help and exit 1516 --help=short display options specific to this package 1517 --help=recursive display the short help of all the included packages 1518 -V, --version display version information and exit 1519 -q, --quiet, --silent do not print \`checking ...' messages 1520 --cache-file=FILE cache test results in FILE [disabled] 1521 -C, --config-cache alias for \`--cache-file=config.cache' 1522 -n, --no-create do not create output files 1523 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1524 1525 Installation directories: 1526 --prefix=PREFIX install architecture-independent files in PREFIX 1527 [$ac_default_prefix] 1528 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1529 [PREFIX] 1530 1531 By default, \`make install' will install all the files in 1532 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1533 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1534 for instance \`--prefix=\$HOME'. 1535 1536 For better control, use the options below. 1537 1538 Fine tuning of the installation directories: 1539 --bindir=DIR user executables [EPREFIX/bin] 1540 --sbindir=DIR system admin executables [EPREFIX/sbin] 1541 --libexecdir=DIR program executables [EPREFIX/libexec] 1542 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1543 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1544 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1545 --libdir=DIR object code libraries [EPREFIX/lib] 1546 --includedir=DIR C header files [PREFIX/include] 1547 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1548 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1549 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1550 --infodir=DIR info documentation [DATAROOTDIR/info] 1551 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1552 --mandir=DIR man documentation [DATAROOTDIR/man] 1553 --docdir=DIR documentation root 1554 [DATAROOTDIR/doc/xf86-video-intel] 1555 --htmldir=DIR html documentation [DOCDIR] 1556 --dvidir=DIR dvi documentation [DOCDIR] 1557 --pdfdir=DIR pdf documentation [DOCDIR] 1558 --psdir=DIR ps documentation [DOCDIR] 1559 _ACEOF 1560 1561 cat <<\_ACEOF 1562 1563 Program names: 1564 --program-prefix=PREFIX prepend PREFIX to installed program names 1565 --program-suffix=SUFFIX append SUFFIX to installed program names 1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1567 1568 System types: 1569 --build=BUILD configure for building on BUILD [guessed] 1570 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1571 _ACEOF 1572 fi 1573 1574 if test -n "$ac_init_help"; then 1575 case $ac_init_help in 1576 short | recursive ) echo "Configuration of xf86-video-intel 2.99.917:";; 1577 esac 1578 cat <<\_ACEOF 1579 1580 Optional Features: 1581 --disable-option-checking ignore unrecognized --enable/--with options 1582 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1583 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1584 --enable-silent-rules less verbose build output (undo: "make V=1") 1585 --disable-silent-rules verbose build output (undo: "make V=0") 1586 --enable-dependency-tracking 1587 do not reject slow dependency extractors 1588 --disable-dependency-tracking 1589 speeds up one-time build 1590 --disable-selective-werror 1591 Turn off selective compiler errors. (default: 1592 enabled) 1593 --enable-strict-compilation 1594 Enable all warnings from compiler and make them 1595 errors (default: disabled) 1596 --enable-static[=PKGS] build static libraries [default=no] 1597 --enable-shared[=PKGS] build shared libraries [default=yes] 1598 --enable-fast-install[=PKGS] 1599 optimize for fast installation [default=yes] 1600 --disable-libtool-lock avoid locking (might break parallel builds) 1601 --disable-largefile omit support for large files 1602 --disable-backlight Enable control over the backlight [default=yes] 1603 --disable-backlight-helper 1604 Enable building the backlight helper executable for 1605 running X under a normal user [default=auto] 1606 --enable-gen4asm Enable rebuilding the gen4 assembly files 1607 [default=no] 1608 --disable-udev Disable udev-based monitor hotplug detection 1609 [default=auto] 1610 --disable-tools Enable building and installing the miscellaneous 1611 tools [default=auto] 1612 --disable-dri Disable DRI support [[default=auto]] 1613 --disable-dri1 Disable DRI1 support [[default=auto]] 1614 --disable-dri2 Disable DRI2 support [[default=yes]] 1615 --disable-dri3 Disable DRI3 support [[default=yes]] 1616 --disable-xvmc Disable XvMC support [[default=yes]] 1617 --enable-kms Assume KMS support [[default=yes]] 1618 --enable-ums Assume UMS support [[default=auto]] 1619 --enable-kms-only Only assume KMS support (no UMS) [[default=no]] 1620 --enable-ums-only Only assume UMS support (no KMS) [[default=no]] 1621 --enable-sna Enable SandyBridge\'s New Acceleration (SNA) 1622 [default=auto] 1623 --enable-uxa Enable Unified Acceleration Architecture (UXA) 1624 [default=auto] 1625 --enable-xaa Enable legacy X Acceleration Architecture (XAA) for 1626 i810 chipsets [default=auto] 1627 --enable-dga Enable legacy Direct Graphics Access (DGA) for i810 1628 chipsets [default=auto] 1629 --enable-tear-free Enable use of TearFree by default [default=no] 1630 --enable-create2 Enable use of create2 ioctl (experimental) 1631 [default=no] 1632 --enable-async-swap Enable use of asynchronous swaps (experimental) 1633 [default=no] 1634 --enable-debug Enables internal debugging [default=no] 1635 --enable-valgrind Enables valgrindified ioctls for debugging 1636 [default=no] 1637 1638 Optional Packages: 1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1641 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1642 both] 1643 --with-aix-soname=aix|svr4|both 1644 shared library versioning (aka "SONAME") variant to 1645 provide on AIX, [default=aix]. 1646 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1647 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1648 compiler's sysroot if not specified). 1649 --with-builderstring=BUILDERSTRING 1650 Additional builder string (default: use git 1651 describe) 1652 --with-gen4asm=PATH Path to intel-gen4asm binary 1653 --with-xorg-module-dir=DIR 1654 Default xorg module directory 1655 [[default=$libdir/xorg/modules]] 1656 --with-default-dri Select the default maximum DRI level [default 2] 1657 --with-default-accel Select the default acceleration method out of none, 1658 sna, or uxa [default is sna if enabled, otherwise 1659 uxa] 1660 1661 Some influential environment variables: 1662 CC C compiler command 1663 CFLAGS C compiler flags 1664 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1665 nonstandard directory <lib dir> 1666 LIBS libraries to pass to the linker, e.g. -l<library> 1667 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1668 you have headers in a nonstandard directory <include dir> 1669 CPP C preprocessor 1670 PKG_CONFIG path to pkg-config utility 1671 PKG_CONFIG_PATH 1672 directories to add to pkg-config's search path 1673 PKG_CONFIG_LIBDIR 1674 path overriding pkg-config's built-in search path 1675 LT_SYS_LIBRARY_PATH 1676 User-defined run-time library search path. 1677 GEN4ASM_CFLAGS 1678 C compiler flags for GEN4ASM, overriding pkg-config 1679 GEN4ASM_LIBS 1680 linker flags for GEN4ASM, overriding pkg-config 1681 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 1682 UDEV_LIBS linker flags for UDEV, overriding pkg-config 1683 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1684 X11_LIBS linker flags for X11, overriding pkg-config 1685 X11_DRI3_CFLAGS 1686 C compiler flags for X11_DRI3, overriding pkg-config 1687 X11_DRI3_LIBS 1688 linker flags for X11_DRI3, overriding pkg-config 1689 X11_VM_CFLAGS 1690 C compiler flags for X11_VM, overriding pkg-config 1691 X11_VM_LIBS linker flags for X11_VM, overriding pkg-config 1692 IVO_EXTRA_CFLAGS 1693 C compiler flags for IVO_EXTRA, overriding pkg-config 1694 IVO_EXTRA_LIBS 1695 linker flags for IVO_EXTRA, overriding pkg-config 1696 IVO_CFLAGS C compiler flags for IVO, overriding pkg-config 1697 IVO_LIBS linker flags for IVO, overriding pkg-config 1698 TOOL_CURSOR_CFLAGS 1699 C compiler flags for TOOL_CURSOR, overriding pkg-config 1700 TOOL_CURSOR_LIBS 1701 linker flags for TOOL_CURSOR, overriding pkg-config 1702 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config 1703 DRM_LIBS linker flags for DRM, overriding pkg-config 1704 PCIACCESS_CFLAGS 1705 C compiler flags for PCIACCESS, overriding pkg-config 1706 PCIACCESS_LIBS 1707 linker flags for PCIACCESS, overriding pkg-config 1708 DRMINTEL_CFLAGS 1709 C compiler flags for DRMINTEL, overriding pkg-config 1710 DRMINTEL_LIBS 1711 linker flags for DRMINTEL, overriding pkg-config 1712 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1713 XORG_LIBS linker flags for XORG, overriding pkg-config 1714 DRI1_CFLAGS C compiler flags for DRI1, overriding pkg-config 1715 DRI1_LIBS linker flags for DRI1, overriding pkg-config 1716 DRI2_CFLAGS C compiler flags for DRI2, overriding pkg-config 1717 DRI2_LIBS linker flags for DRI2, overriding pkg-config 1718 DRI3_CFLAGS C compiler flags for DRI3, overriding pkg-config 1719 DRI3_LIBS linker flags for DRI3, overriding pkg-config 1720 PRESENT_CFLAGS 1721 C compiler flags for PRESENT, overriding pkg-config 1722 PRESENT_LIBS 1723 linker flags for PRESENT, overriding pkg-config 1724 XVMCLIB_CFLAGS 1725 C compiler flags for XVMCLIB, overriding pkg-config 1726 XVMCLIB_LIBS 1727 linker flags for XVMCLIB, overriding pkg-config 1728 VALGRIND_CFLAGS 1729 C compiler flags for VALGRIND, overriding pkg-config 1730 VALGRIND_LIBS 1731 linker flags for VALGRIND, overriding pkg-config 1732 1733 Use these variables to override the choices made by `configure' or to help 1734 it to find libraries and programs with nonstandard names/locations. 1735 1736 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1737 _ACEOF 1738 ac_status=$? 1739 fi 1740 1741 if test "$ac_init_help" = "recursive"; then 1742 # If there are subdirs, report their specific --help. 1743 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1744 test -d "$ac_dir" || 1745 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1746 continue 1747 ac_builddir=. 1748 1749 case "$ac_dir" in 1750 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1751 *) 1752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1753 # A ".." for each directory in $ac_dir_suffix. 1754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1755 case $ac_top_builddir_sub in 1756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1758 esac ;; 1759 esac 1760 ac_abs_top_builddir=$ac_pwd 1761 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1762 # for backward compatibility: 1763 ac_top_builddir=$ac_top_build_prefix 1764 1765 case $srcdir in 1766 .) # We are building in place. 1767 ac_srcdir=. 1768 ac_top_srcdir=$ac_top_builddir_sub 1769 ac_abs_top_srcdir=$ac_pwd ;; 1770 [\\/]* | ?:[\\/]* ) # Absolute name. 1771 ac_srcdir=$srcdir$ac_dir_suffix; 1772 ac_top_srcdir=$srcdir 1773 ac_abs_top_srcdir=$srcdir ;; 1774 *) # Relative name. 1775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1776 ac_top_srcdir=$ac_top_build_prefix$srcdir 1777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1778 esac 1779 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1780 1781 cd "$ac_dir" || { ac_status=$?; continue; } 1782 # Check for guested configure. 1783 if test -f "$ac_srcdir/configure.gnu"; then 1784 echo && 1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1786 elif test -f "$ac_srcdir/configure"; then 1787 echo && 1788 $SHELL "$ac_srcdir/configure" --help=recursive 1789 else 1790 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1791 fi || ac_status=$? 1792 cd "$ac_pwd" || { ac_status=$?; break; } 1793 done 1794 fi 1795 1796 test -n "$ac_init_help" && exit $ac_status 1797 if $ac_init_version; then 1798 cat <<\_ACEOF 1799 xf86-video-intel configure 2.99.917 1800 generated by GNU Autoconf 2.69 1801 1802 Copyright (C) 2012 Free Software Foundation, Inc. 1803 This configure script is free software; the Free Software Foundation 1804 gives unlimited permission to copy, distribute and modify it. 1805 _ACEOF 1806 exit 1807 fi 1808 1809 ## ------------------------ ## 1810 ## Autoconf initialization. ## 1811 ## ------------------------ ## 1812 1813 # ac_fn_c_try_compile LINENO 1814 # -------------------------- 1815 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1816 ac_fn_c_try_compile () 1817 { 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 rm -f conftest.$ac_objext 1820 if { { ac_try="$ac_compile" 1821 case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824 esac 1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826 $as_echo "$ac_try_echo"; } >&5 1827 (eval "$ac_compile") 2>conftest.err 1828 ac_status=$? 1829 if test -s conftest.err; then 1830 grep -v '^ *+' conftest.err >conftest.er1 1831 cat conftest.er1 >&5 1832 mv -f conftest.er1 conftest.err 1833 fi 1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; } && { 1836 test -z "$ac_c_werror_flag" || 1837 test ! -s conftest.err 1838 } && test -s conftest.$ac_objext; then : 1839 ac_retval=0 1840 else 1841 $as_echo "$as_me: failed program was:" >&5 1842 sed 's/^/| /' conftest.$ac_ext >&5 1843 1844 ac_retval=1 1845 fi 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 as_fn_set_status $ac_retval 1848 1849 } # ac_fn_c_try_compile 1850 1851 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1852 # --------------------------------------------- 1853 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1854 # accordingly. 1855 ac_fn_c_check_decl () 1856 { 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 as_decl_name=`echo $2|sed 's/ *(.*//'` 1859 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1861 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1862 if eval \${$3+:} false; then : 1863 $as_echo_n "(cached) " >&6 1864 else 1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1866 /* end confdefs.h. */ 1867 $4 1868 int 1869 main () 1870 { 1871 #ifndef $as_decl_name 1872 #ifdef __cplusplus 1873 (void) $as_decl_use; 1874 #else 1875 (void) $as_decl_name; 1876 #endif 1877 #endif 1878 1879 ; 1880 return 0; 1881 } 1882 _ACEOF 1883 if ac_fn_c_try_compile "$LINENO"; then : 1884 eval "$3=yes" 1885 else 1886 eval "$3=no" 1887 fi 1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1889 fi 1890 eval ac_res=\$$3 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1892 $as_echo "$ac_res" >&6; } 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 1895 } # ac_fn_c_check_decl 1896 1897 # ac_fn_c_try_cpp LINENO 1898 # ---------------------- 1899 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1900 ac_fn_c_try_cpp () 1901 { 1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1903 if { { ac_try="$ac_cpp conftest.$ac_ext" 1904 case "(($ac_try" in 1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1906 *) ac_try_echo=$ac_try;; 1907 esac 1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1909 $as_echo "$ac_try_echo"; } >&5 1910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1911 ac_status=$? 1912 if test -s conftest.err; then 1913 grep -v '^ *+' conftest.err >conftest.er1 1914 cat conftest.er1 >&5 1915 mv -f conftest.er1 conftest.err 1916 fi 1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1918 test $ac_status = 0; } > conftest.i && { 1919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1920 test ! -s conftest.err 1921 }; then : 1922 ac_retval=0 1923 else 1924 $as_echo "$as_me: failed program was:" >&5 1925 sed 's/^/| /' conftest.$ac_ext >&5 1926 1927 ac_retval=1 1928 fi 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1930 as_fn_set_status $ac_retval 1931 1932 } # ac_fn_c_try_cpp 1933 1934 # ac_fn_c_try_run LINENO 1935 # ---------------------- 1936 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1937 # that executables *can* be run. 1938 ac_fn_c_try_run () 1939 { 1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1941 if { { ac_try="$ac_link" 1942 case "(($ac_try" in 1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1944 *) ac_try_echo=$ac_try;; 1945 esac 1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1947 $as_echo "$ac_try_echo"; } >&5 1948 (eval "$ac_link") 2>&5 1949 ac_status=$? 1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1951 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1952 { { case "(($ac_try" in 1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1954 *) ac_try_echo=$ac_try;; 1955 esac 1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1957 $as_echo "$ac_try_echo"; } >&5 1958 (eval "$ac_try") 2>&5 1959 ac_status=$? 1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1961 test $ac_status = 0; }; }; then : 1962 ac_retval=0 1963 else 1964 $as_echo "$as_me: program exited with status $ac_status" >&5 1965 $as_echo "$as_me: failed program was:" >&5 1966 sed 's/^/| /' conftest.$ac_ext >&5 1967 1968 ac_retval=$ac_status 1969 fi 1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 as_fn_set_status $ac_retval 1973 1974 } # ac_fn_c_try_run 1975 1976 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1977 # ------------------------------------------------------- 1978 # Tests whether HEADER exists and can be compiled using the include files in 1979 # INCLUDES, setting the cache variable VAR accordingly. 1980 ac_fn_c_check_header_compile () 1981 { 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1984 $as_echo_n "checking for $2... " >&6; } 1985 if eval \${$3+:} false; then : 1986 $as_echo_n "(cached) " >&6 1987 else 1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1989 /* end confdefs.h. */ 1990 $4 1991 #include <$2> 1992 _ACEOF 1993 if ac_fn_c_try_compile "$LINENO"; then : 1994 eval "$3=yes" 1995 else 1996 eval "$3=no" 1997 fi 1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1999 fi 2000 eval ac_res=\$$3 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2002 $as_echo "$ac_res" >&6; } 2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2004 2005 } # ac_fn_c_check_header_compile 2006 2007 # ac_fn_c_try_link LINENO 2008 # ----------------------- 2009 # Try to link conftest.$ac_ext, and return whether this succeeded. 2010 ac_fn_c_try_link () 2011 { 2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2013 rm -f conftest.$ac_objext conftest$ac_exeext 2014 if { { ac_try="$ac_link" 2015 case "(($ac_try" in 2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2017 *) ac_try_echo=$ac_try;; 2018 esac 2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2020 $as_echo "$ac_try_echo"; } >&5 2021 (eval "$ac_link") 2>conftest.err 2022 ac_status=$? 2023 if test -s conftest.err; then 2024 grep -v '^ *+' conftest.err >conftest.er1 2025 cat conftest.er1 >&5 2026 mv -f conftest.er1 conftest.err 2027 fi 2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2029 test $ac_status = 0; } && { 2030 test -z "$ac_c_werror_flag" || 2031 test ! -s conftest.err 2032 } && test -s conftest$ac_exeext && { 2033 test "$cross_compiling" = yes || 2034 test -x conftest$ac_exeext 2035 }; then : 2036 ac_retval=0 2037 else 2038 $as_echo "$as_me: failed program was:" >&5 2039 sed 's/^/| /' conftest.$ac_ext >&5 2040 2041 ac_retval=1 2042 fi 2043 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2044 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2045 # interfere with the next link command; also delete a directory that is 2046 # left behind by Apple's compiler. We do this before executing the actions. 2047 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2049 as_fn_set_status $ac_retval 2050 2051 } # ac_fn_c_try_link 2052 2053 # ac_fn_c_check_func LINENO FUNC VAR 2054 # ---------------------------------- 2055 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2056 ac_fn_c_check_func () 2057 { 2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2060 $as_echo_n "checking for $2... " >&6; } 2061 if eval \${$3+:} false; then : 2062 $as_echo_n "(cached) " >&6 2063 else 2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2065 /* end confdefs.h. */ 2066 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2067 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2068 #define $2 innocuous_$2 2069 2070 /* System header to define __stub macros and hopefully few prototypes, 2071 which can conflict with char $2 (); below. 2072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2073 <limits.h> exists even on freestanding compilers. */ 2074 2075 #ifdef __STDC__ 2076 # include <limits.h> 2077 #else 2078 # include <assert.h> 2079 #endif 2080 2081 #undef $2 2082 2083 /* Override any GCC internal prototype to avoid an error. 2084 Use char because int might match the return type of a GCC 2085 builtin and then its argument prototype would still apply. */ 2086 #ifdef __cplusplus 2087 extern "C" 2088 #endif 2089 char $2 (); 2090 /* The GNU C library defines this for functions which it implements 2091 to always fail with ENOSYS. Some functions are actually named 2092 something starting with __ and the normal name is an alias. */ 2093 #if defined __stub_$2 || defined __stub___$2 2094 choke me 2095 #endif 2096 2097 int 2098 main () 2099 { 2100 return $2 (); 2101 ; 2102 return 0; 2103 } 2104 _ACEOF 2105 if ac_fn_c_try_link "$LINENO"; then : 2106 eval "$3=yes" 2107 else 2108 eval "$3=no" 2109 fi 2110 rm -f core conftest.err conftest.$ac_objext \ 2111 conftest$ac_exeext conftest.$ac_ext 2112 fi 2113 eval ac_res=\$$3 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2115 $as_echo "$ac_res" >&6; } 2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2117 2118 } # ac_fn_c_check_func 2119 2120 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2121 # ------------------------------------------------------- 2122 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2123 # the include files in INCLUDES and setting the cache variable VAR 2124 # accordingly. 2125 ac_fn_c_check_header_mongrel () 2126 { 2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2128 if eval \${$3+:} false; then : 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2130 $as_echo_n "checking for $2... " >&6; } 2131 if eval \${$3+:} false; then : 2132 $as_echo_n "(cached) " >&6 2133 fi 2134 eval ac_res=\$$3 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2136 $as_echo "$ac_res" >&6; } 2137 else 2138 # Is the header compilable? 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2140 $as_echo_n "checking $2 usability... " >&6; } 2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2142 /* end confdefs.h. */ 2143 $4 2144 #include <$2> 2145 _ACEOF 2146 if ac_fn_c_try_compile "$LINENO"; then : 2147 ac_header_compiler=yes 2148 else 2149 ac_header_compiler=no 2150 fi 2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2153 $as_echo "$ac_header_compiler" >&6; } 2154 2155 # Is the header present? 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2157 $as_echo_n "checking $2 presence... " >&6; } 2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2159 /* end confdefs.h. */ 2160 #include <$2> 2161 _ACEOF 2162 if ac_fn_c_try_cpp "$LINENO"; then : 2163 ac_header_preproc=yes 2164 else 2165 ac_header_preproc=no 2166 fi 2167 rm -f conftest.err conftest.i conftest.$ac_ext 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2169 $as_echo "$ac_header_preproc" >&6; } 2170 2171 # So? What about this header? 2172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2173 yes:no: ) 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2175 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2177 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2178 ;; 2179 no:yes:* ) 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2181 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2183 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2185 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2187 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2189 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2190 ( $as_echo "## ---------------------------------------------------------------------- ## 2191 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2192 ## ---------------------------------------------------------------------- ##" 2193 ) | sed "s/^/$as_me: WARNING: /" >&2 2194 ;; 2195 esac 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2197 $as_echo_n "checking for $2... " >&6; } 2198 if eval \${$3+:} false; then : 2199 $as_echo_n "(cached) " >&6 2200 else 2201 eval "$3=\$ac_header_compiler" 2202 fi 2203 eval ac_res=\$$3 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2205 $as_echo "$ac_res" >&6; } 2206 fi 2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2208 2209 } # ac_fn_c_check_header_mongrel 2210 2211 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2212 # ------------------------------------------- 2213 # Tests whether TYPE exists after having included INCLUDES, setting cache 2214 # variable VAR accordingly. 2215 ac_fn_c_check_type () 2216 { 2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2219 $as_echo_n "checking for $2... " >&6; } 2220 if eval \${$3+:} false; then : 2221 $as_echo_n "(cached) " >&6 2222 else 2223 eval "$3=no" 2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2225 /* end confdefs.h. */ 2226 $4 2227 int 2228 main () 2229 { 2230 if (sizeof ($2)) 2231 return 0; 2232 ; 2233 return 0; 2234 } 2235 _ACEOF 2236 if ac_fn_c_try_compile "$LINENO"; then : 2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2238 /* end confdefs.h. */ 2239 $4 2240 int 2241 main () 2242 { 2243 if (sizeof (($2))) 2244 return 0; 2245 ; 2246 return 0; 2247 } 2248 _ACEOF 2249 if ac_fn_c_try_compile "$LINENO"; then : 2250 2251 else 2252 eval "$3=yes" 2253 fi 2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2255 fi 2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2257 fi 2258 eval ac_res=\$$3 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2260 $as_echo "$ac_res" >&6; } 2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2262 2263 } # ac_fn_c_check_type 2264 cat >config.log <<_ACEOF 2265 This file contains any messages produced by compilers while 2266 running configure, to aid debugging if configure makes a mistake. 2267 2268 It was created by xf86-video-intel $as_me 2.99.917, which was 2269 generated by GNU Autoconf 2.69. Invocation command line was 2270 2271 $ $0 $@ 2272 2273 _ACEOF 2274 exec 5>>config.log 2275 { 2276 cat <<_ASUNAME 2277 ## --------- ## 2278 ## Platform. ## 2279 ## --------- ## 2280 2281 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2282 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2283 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2284 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2285 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2286 2287 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2288 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2289 2290 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2291 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2292 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2293 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2294 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2295 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2296 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2297 2298 _ASUNAME 2299 2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2301 for as_dir in $PATH 2302 do 2303 IFS=$as_save_IFS 2304 test -z "$as_dir" && as_dir=. 2305 $as_echo "PATH: $as_dir" 2306 done 2307 IFS=$as_save_IFS 2308 2309 } >&5 2310 2311 cat >&5 <<_ACEOF 2312 2313 2314 ## ----------- ## 2315 ## Core tests. ## 2316 ## ----------- ## 2317 2318 _ACEOF 2319 2320 2321 # Keep a trace of the command line. 2322 # Strip out --no-create and --no-recursion so they do not pile up. 2323 # Strip out --silent because we don't want to record it for future runs. 2324 # Also quote any args containing shell meta-characters. 2325 # Make two passes to allow for proper duplicate-argument suppression. 2326 ac_configure_args= 2327 ac_configure_args0= 2328 ac_configure_args1= 2329 ac_must_keep_next=false 2330 for ac_pass in 1 2 2331 do 2332 for ac_arg 2333 do 2334 case $ac_arg in 2335 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2337 | -silent | --silent | --silen | --sile | --sil) 2338 continue ;; 2339 *\'*) 2340 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2341 esac 2342 case $ac_pass in 2343 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2344 2) 2345 as_fn_append ac_configure_args1 " '$ac_arg'" 2346 if test $ac_must_keep_next = true; then 2347 ac_must_keep_next=false # Got value, back to normal. 2348 else 2349 case $ac_arg in 2350 *=* | --config-cache | -C | -disable-* | --disable-* \ 2351 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2352 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2353 | -with-* | --with-* | -without-* | --without-* | --x) 2354 case "$ac_configure_args0 " in 2355 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2356 esac 2357 ;; 2358 -* ) ac_must_keep_next=true ;; 2359 esac 2360 fi 2361 as_fn_append ac_configure_args " '$ac_arg'" 2362 ;; 2363 esac 2364 done 2365 done 2366 { ac_configure_args0=; unset ac_configure_args0;} 2367 { ac_configure_args1=; unset ac_configure_args1;} 2368 2369 # When interrupted or exit'd, cleanup temporary files, and complete 2370 # config.log. We remove comments because anyway the quotes in there 2371 # would cause problems or look ugly. 2372 # WARNING: Use '\'' to represent an apostrophe within the trap. 2373 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2374 trap 'exit_status=$? 2375 # Save into config.log some information that might help in debugging. 2376 { 2377 echo 2378 2379 $as_echo "## ---------------- ## 2380 ## Cache variables. ## 2381 ## ---------------- ##" 2382 echo 2383 # The following way of writing the cache mishandles newlines in values, 2384 ( 2385 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2386 eval ac_val=\$$ac_var 2387 case $ac_val in #( 2388 *${as_nl}*) 2389 case $ac_var in #( 2390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2392 esac 2393 case $ac_var in #( 2394 _ | IFS | as_nl) ;; #( 2395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2396 *) { eval $ac_var=; unset $ac_var;} ;; 2397 esac ;; 2398 esac 2399 done 2400 (set) 2>&1 | 2401 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2402 *${as_nl}ac_space=\ *) 2403 sed -n \ 2404 "s/'\''/'\''\\\\'\'''\''/g; 2405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2406 ;; #( 2407 *) 2408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2409 ;; 2410 esac | 2411 sort 2412 ) 2413 echo 2414 2415 $as_echo "## ----------------- ## 2416 ## Output variables. ## 2417 ## ----------------- ##" 2418 echo 2419 for ac_var in $ac_subst_vars 2420 do 2421 eval ac_val=\$$ac_var 2422 case $ac_val in 2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2424 esac 2425 $as_echo "$ac_var='\''$ac_val'\''" 2426 done | sort 2427 echo 2428 2429 if test -n "$ac_subst_files"; then 2430 $as_echo "## ------------------- ## 2431 ## File substitutions. ## 2432 ## ------------------- ##" 2433 echo 2434 for ac_var in $ac_subst_files 2435 do 2436 eval ac_val=\$$ac_var 2437 case $ac_val in 2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2439 esac 2440 $as_echo "$ac_var='\''$ac_val'\''" 2441 done | sort 2442 echo 2443 fi 2444 2445 if test -s confdefs.h; then 2446 $as_echo "## ----------- ## 2447 ## confdefs.h. ## 2448 ## ----------- ##" 2449 echo 2450 cat confdefs.h 2451 echo 2452 fi 2453 test "$ac_signal" != 0 && 2454 $as_echo "$as_me: caught signal $ac_signal" 2455 $as_echo "$as_me: exit $exit_status" 2456 } >&5 2457 rm -f core *.core core.conftest.* && 2458 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2459 exit $exit_status 2460 ' 0 2461 for ac_signal in 1 2 13 15; do 2462 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2463 done 2464 ac_signal=0 2465 2466 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2467 rm -f -r conftest* confdefs.h 2468 2469 $as_echo "/* confdefs.h */" > confdefs.h 2470 2471 # Predefined preprocessor variables. 2472 2473 cat >>confdefs.h <<_ACEOF 2474 #define PACKAGE_NAME "$PACKAGE_NAME" 2475 _ACEOF 2476 2477 cat >>confdefs.h <<_ACEOF 2478 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2479 _ACEOF 2480 2481 cat >>confdefs.h <<_ACEOF 2482 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2483 _ACEOF 2484 2485 cat >>confdefs.h <<_ACEOF 2486 #define PACKAGE_STRING "$PACKAGE_STRING" 2487 _ACEOF 2488 2489 cat >>confdefs.h <<_ACEOF 2490 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2491 _ACEOF 2492 2493 cat >>confdefs.h <<_ACEOF 2494 #define PACKAGE_URL "$PACKAGE_URL" 2495 _ACEOF 2496 2497 2498 # Let the site file select an alternate cache file if it wants to. 2499 # Prefer an explicitly selected file to automatically selected ones. 2500 ac_site_file1=NONE 2501 ac_site_file2=NONE 2502 if test -n "$CONFIG_SITE"; then 2503 # We do not want a PATH search for config.site. 2504 case $CONFIG_SITE in #(( 2505 -*) ac_site_file1=./$CONFIG_SITE;; 2506 */*) ac_site_file1=$CONFIG_SITE;; 2507 *) ac_site_file1=./$CONFIG_SITE;; 2508 esac 2509 elif test "x$prefix" != xNONE; then 2510 ac_site_file1=$prefix/share/config.site 2511 ac_site_file2=$prefix/etc/config.site 2512 else 2513 ac_site_file1=$ac_default_prefix/share/config.site 2514 ac_site_file2=$ac_default_prefix/etc/config.site 2515 fi 2516 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2517 do 2518 test "x$ac_site_file" = xNONE && continue 2519 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2521 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2522 sed 's/^/| /' "$ac_site_file" >&5 2523 . "$ac_site_file" \ 2524 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2526 as_fn_error $? "failed to load site script $ac_site_file 2527 See \`config.log' for more details" "$LINENO" 5; } 2528 fi 2529 done 2530 2531 if test -r "$cache_file"; then 2532 # Some versions of bash will fail to source /dev/null (special files 2533 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2534 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2536 $as_echo "$as_me: loading cache $cache_file" >&6;} 2537 case $cache_file in 2538 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2539 *) . "./$cache_file";; 2540 esac 2541 fi 2542 else 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2544 $as_echo "$as_me: creating cache $cache_file" >&6;} 2545 >$cache_file 2546 fi 2547 2548 # Check that the precious variables saved in the cache have kept the same 2549 # value. 2550 ac_cache_corrupted=false 2551 for ac_var in $ac_precious_vars; do 2552 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2553 eval ac_new_set=\$ac_env_${ac_var}_set 2554 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2555 eval ac_new_val=\$ac_env_${ac_var}_value 2556 case $ac_old_set,$ac_new_set in 2557 set,) 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2559 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2560 ac_cache_corrupted=: ;; 2561 ,set) 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2563 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2564 ac_cache_corrupted=: ;; 2565 ,);; 2566 *) 2567 if test "x$ac_old_val" != "x$ac_new_val"; then 2568 # differences in whitespace do not lead to failure. 2569 ac_old_val_w=`echo x $ac_old_val` 2570 ac_new_val_w=`echo x $ac_new_val` 2571 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2573 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2574 ac_cache_corrupted=: 2575 else 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2577 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2578 eval $ac_var=\$ac_old_val 2579 fi 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2581 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2583 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2584 fi;; 2585 esac 2586 # Pass precious variables to config.status. 2587 if test "$ac_new_set" = set; then 2588 case $ac_new_val in 2589 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2590 *) ac_arg=$ac_var=$ac_new_val ;; 2591 esac 2592 case " $ac_configure_args " in 2593 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2594 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2595 esac 2596 fi 2597 done 2598 if $ac_cache_corrupted; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2602 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2603 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2604 fi 2605 ## -------------------- ## 2606 ## Main body of script. ## 2607 ## -------------------- ## 2608 2609 ac_ext=c 2610 ac_cpp='$CPP $CPPFLAGS' 2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2614 2615 2616 2617 ac_config_headers="$ac_config_headers config.h" 2618 2619 2620 ac_aux_dir= 2621 for ac_dir in . "$srcdir"/.; do 2622 if test -f "$ac_dir/install-sh"; then 2623 ac_aux_dir=$ac_dir 2624 ac_install_sh="$ac_aux_dir/install-sh -c" 2625 break 2626 elif test -f "$ac_dir/install.sh"; then 2627 ac_aux_dir=$ac_dir 2628 ac_install_sh="$ac_aux_dir/install.sh -c" 2629 break 2630 elif test -f "$ac_dir/shtool"; then 2631 ac_aux_dir=$ac_dir 2632 ac_install_sh="$ac_aux_dir/shtool install -c" 2633 break 2634 fi 2635 done 2636 if test -z "$ac_aux_dir"; then 2637 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2638 fi 2639 2640 # These three variables are undocumented and unsupported, 2641 # and are intended to be withdrawn in a future Autoconf release. 2642 # They can cause serious problems if a builder's source tree is in a directory 2643 # whose full name contains unusual characters. 2644 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2645 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2646 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2647 2648 2649 2650 # Initialize Automake 2651 am__api_version='1.16' 2652 2653 # Find a good install program. We prefer a C program (faster), 2654 # so one script is as good as another. But avoid the broken or 2655 # incompatible versions: 2656 # SysV /etc/install, /usr/sbin/install 2657 # SunOS /usr/etc/install 2658 # IRIX /sbin/install 2659 # AIX /bin/install 2660 # AmigaOS /C/install, which installs bootblocks on floppy discs 2661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2664 # OS/2's system install, which has a completely different semantic 2665 # ./install, which can be erroneously created by make from ./install.sh. 2666 # Reject install programs that cannot install multiple files. 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2668 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2669 if test -z "$INSTALL"; then 2670 if ${ac_cv_path_install+:} false; then : 2671 $as_echo_n "(cached) " >&6 2672 else 2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2674 for as_dir in $PATH 2675 do 2676 IFS=$as_save_IFS 2677 test -z "$as_dir" && as_dir=. 2678 # Account for people who put trailing slashes in PATH elements. 2679 case $as_dir/ in #(( 2680 ./ | .// | /[cC]/* | \ 2681 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2682 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2683 /usr/ucb/* ) ;; 2684 *) 2685 # OSF1 and SCO ODT 3.0 have their own names for install. 2686 # Don't use installbsd from OSF since it installs stuff as root 2687 # by default. 2688 for ac_prog in ginstall scoinst install; do 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2691 if test $ac_prog = install && 2692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2693 # AIX install. It has an incompatible calling convention. 2694 : 2695 elif test $ac_prog = install && 2696 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2697 # program-specific install script used by HP pwplus--don't use. 2698 : 2699 else 2700 rm -rf conftest.one conftest.two conftest.dir 2701 echo one > conftest.one 2702 echo two > conftest.two 2703 mkdir conftest.dir 2704 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2705 test -s conftest.one && test -s conftest.two && 2706 test -s conftest.dir/conftest.one && 2707 test -s conftest.dir/conftest.two 2708 then 2709 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2710 break 3 2711 fi 2712 fi 2713 fi 2714 done 2715 done 2716 ;; 2717 esac 2718 2719 done 2720 IFS=$as_save_IFS 2721 2722 rm -rf conftest.one conftest.two conftest.dir 2723 2724 fi 2725 if test "${ac_cv_path_install+set}" = set; then 2726 INSTALL=$ac_cv_path_install 2727 else 2728 # As a last resort, use the slow shell script. Don't cache a 2729 # value for INSTALL within a source directory, because that will 2730 # break other packages using the cache if that directory is 2731 # removed, or if the value is a relative name. 2732 INSTALL=$ac_install_sh 2733 fi 2734 fi 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2736 $as_echo "$INSTALL" >&6; } 2737 2738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2739 # It thinks the first close brace ends the variable substitution. 2740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2741 2742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2743 2744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2745 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2747 $as_echo_n "checking whether build environment is sane... " >&6; } 2748 # Reject unsafe characters in $srcdir or the absolute working directory 2749 # name. Accept space and tab only in the latter. 2750 am_lf=' 2751 ' 2752 case `pwd` in 2753 *[\\\"\#\$\&\'\`$am_lf]*) 2754 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2755 esac 2756 case $srcdir in 2757 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2758 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2759 esac 2760 2761 # Do 'set' in a subshell so we don't clobber the current shell's 2762 # arguments. Must try -L first in case configure is actually a 2763 # symlink; some systems play weird games with the mod time of symlinks 2764 # (eg FreeBSD returns the mod time of the symlink's containing 2765 # directory). 2766 if ( 2767 am_has_slept=no 2768 for am_try in 1 2; do 2769 echo "timestamp, slept: $am_has_slept" > conftest.file 2770 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2771 if test "$*" = "X"; then 2772 # -L didn't work. 2773 set X `ls -t "$srcdir/configure" conftest.file` 2774 fi 2775 if test "$*" != "X $srcdir/configure conftest.file" \ 2776 && test "$*" != "X conftest.file $srcdir/configure"; then 2777 2778 # If neither matched, then we have a broken ls. This can happen 2779 # if, for instance, CONFIG_SHELL is bash and it inherits a 2780 # broken ls alias from the environment. This has actually 2781 # happened. Such a system could not be considered "sane". 2782 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2783 alias in your environment" "$LINENO" 5 2784 fi 2785 if test "$2" = conftest.file || test $am_try -eq 2; then 2786 break 2787 fi 2788 # Just in case. 2789 sleep 1 2790 am_has_slept=yes 2791 done 2792 test "$2" = conftest.file 2793 ) 2794 then 2795 # Ok. 2796 : 2797 else 2798 as_fn_error $? "newly created file is older than distributed files! 2799 Check your system clock" "$LINENO" 5 2800 fi 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2802 $as_echo "yes" >&6; } 2803 # If we didn't sleep, we still need to ensure time stamps of config.status and 2804 # generated files are strictly newer. 2805 am_sleep_pid= 2806 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2807 ( sleep 1 ) & 2808 am_sleep_pid=$! 2809 fi 2810 2811 rm -f conftest.file 2812 2813 test "$program_prefix" != NONE && 2814 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2815 # Use a double $ so make ignores it. 2816 test "$program_suffix" != NONE && 2817 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2818 # Double any \ or $. 2819 # By default was `s,x,x', remove it if useless. 2820 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2821 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2822 2823 # Expand $ac_aux_dir to an absolute path. 2824 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2825 2826 if test x"${MISSING+set}" != xset; then 2827 case $am_aux_dir in 2828 *\ * | *\ *) 2829 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2830 *) 2831 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2832 esac 2833 fi 2834 # Use eval to expand $SHELL 2835 if eval "$MISSING --is-lightweight"; then 2836 am_missing_run="$MISSING " 2837 else 2838 am_missing_run= 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2840 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2841 fi 2842 2843 if test x"${install_sh+set}" != xset; then 2844 case $am_aux_dir in 2845 *\ * | *\ *) 2846 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2847 *) 2848 install_sh="\${SHELL} $am_aux_dir/install-sh" 2849 esac 2850 fi 2851 2852 # Installed binaries are usually stripped using 'strip' when the user 2853 # run "make install-strip". However 'strip' might not be the right 2854 # tool to use in cross-compilation environments, therefore Automake 2855 # will honor the 'STRIP' environment variable to overrule this program. 2856 if test "$cross_compiling" != no; then 2857 if test -n "$ac_tool_prefix"; then 2858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2859 set dummy ${ac_tool_prefix}strip; ac_word=$2 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2861 $as_echo_n "checking for $ac_word... " >&6; } 2862 if ${ac_cv_prog_STRIP+:} false; then : 2863 $as_echo_n "(cached) " >&6 2864 else 2865 if test -n "$STRIP"; then 2866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2867 else 2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869 for as_dir in $PATH 2870 do 2871 IFS=$as_save_IFS 2872 test -z "$as_dir" && as_dir=. 2873 for ac_exec_ext in '' $ac_executable_extensions; do 2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2875 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2877 break 2 2878 fi 2879 done 2880 done 2881 IFS=$as_save_IFS 2882 2883 fi 2884 fi 2885 STRIP=$ac_cv_prog_STRIP 2886 if test -n "$STRIP"; then 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2888 $as_echo "$STRIP" >&6; } 2889 else 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891 $as_echo "no" >&6; } 2892 fi 2893 2894 2895 fi 2896 if test -z "$ac_cv_prog_STRIP"; then 2897 ac_ct_STRIP=$STRIP 2898 # Extract the first word of "strip", so it can be a program name with args. 2899 set dummy strip; ac_word=$2 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901 $as_echo_n "checking for $ac_word... " >&6; } 2902 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2903 $as_echo_n "(cached) " >&6 2904 else 2905 if test -n "$ac_ct_STRIP"; then 2906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2907 else 2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909 for as_dir in $PATH 2910 do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 for ac_exec_ext in '' $ac_executable_extensions; do 2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2915 ac_cv_prog_ac_ct_STRIP="strip" 2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2917 break 2 2918 fi 2919 done 2920 done 2921 IFS=$as_save_IFS 2922 2923 fi 2924 fi 2925 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2926 if test -n "$ac_ct_STRIP"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2928 $as_echo "$ac_ct_STRIP" >&6; } 2929 else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931 $as_echo "no" >&6; } 2932 fi 2933 2934 if test "x$ac_ct_STRIP" = x; then 2935 STRIP=":" 2936 else 2937 case $cross_compiling:$ac_tool_warned in 2938 yes:) 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2941 ac_tool_warned=yes ;; 2942 esac 2943 STRIP=$ac_ct_STRIP 2944 fi 2945 else 2946 STRIP="$ac_cv_prog_STRIP" 2947 fi 2948 2949 fi 2950 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2951 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2953 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2954 if test -z "$MKDIR_P"; then 2955 if ${ac_cv_path_mkdir+:} false; then : 2956 $as_echo_n "(cached) " >&6 2957 else 2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2960 do 2961 IFS=$as_save_IFS 2962 test -z "$as_dir" && as_dir=. 2963 for ac_prog in mkdir gmkdir; do 2964 for ac_exec_ext in '' $ac_executable_extensions; do 2965 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2966 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2967 'mkdir (GNU coreutils) '* | \ 2968 'mkdir (coreutils) '* | \ 2969 'mkdir (fileutils) '4.1*) 2970 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2971 break 3;; 2972 esac 2973 done 2974 done 2975 done 2976 IFS=$as_save_IFS 2977 2978 fi 2979 2980 test -d ./--version && rmdir ./--version 2981 if test "${ac_cv_path_mkdir+set}" = set; then 2982 MKDIR_P="$ac_cv_path_mkdir -p" 2983 else 2984 # As a last resort, use the slow shell script. Don't cache a 2985 # value for MKDIR_P within a source directory, because that will 2986 # break other packages using the cache if that directory is 2987 # removed, or if the value is a relative name. 2988 MKDIR_P="$ac_install_sh -d" 2989 fi 2990 fi 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2992 $as_echo "$MKDIR_P" >&6; } 2993 2994 for ac_prog in gawk mawk nawk awk 2995 do 2996 # Extract the first word of "$ac_prog", so it can be a program name with args. 2997 set dummy $ac_prog; ac_word=$2 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2999 $as_echo_n "checking for $ac_word... " >&6; } 3000 if ${ac_cv_prog_AWK+:} false; then : 3001 $as_echo_n "(cached) " >&6 3002 else 3003 if test -n "$AWK"; then 3004 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3005 else 3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3007 for as_dir in $PATH 3008 do 3009 IFS=$as_save_IFS 3010 test -z "$as_dir" && as_dir=. 3011 for ac_exec_ext in '' $ac_executable_extensions; do 3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3013 ac_cv_prog_AWK="$ac_prog" 3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3015 break 2 3016 fi 3017 done 3018 done 3019 IFS=$as_save_IFS 3020 3021 fi 3022 fi 3023 AWK=$ac_cv_prog_AWK 3024 if test -n "$AWK"; then 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3026 $as_echo "$AWK" >&6; } 3027 else 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3029 $as_echo "no" >&6; } 3030 fi 3031 3032 3033 test -n "$AWK" && break 3034 done 3035 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3037 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3038 set x ${MAKE-make} 3039 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3040 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3041 $as_echo_n "(cached) " >&6 3042 else 3043 cat >conftest.make <<\_ACEOF 3044 SHELL = /bin/sh 3045 all: 3046 @echo '@@@%%%=$(MAKE)=@@@%%%' 3047 _ACEOF 3048 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3049 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3050 *@@@%%%=?*=@@@%%%*) 3051 eval ac_cv_prog_make_${ac_make}_set=yes;; 3052 *) 3053 eval ac_cv_prog_make_${ac_make}_set=no;; 3054 esac 3055 rm -f conftest.make 3056 fi 3057 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3059 $as_echo "yes" >&6; } 3060 SET_MAKE= 3061 else 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3063 $as_echo "no" >&6; } 3064 SET_MAKE="MAKE=${MAKE-make}" 3065 fi 3066 3067 rm -rf .tst 2>/dev/null 3068 mkdir .tst 2>/dev/null 3069 if test -d .tst; then 3070 am__leading_dot=. 3071 else 3072 am__leading_dot=_ 3073 fi 3074 rmdir .tst 2>/dev/null 3075 3076 # Check whether --enable-silent-rules was given. 3077 if test "${enable_silent_rules+set}" = set; then : 3078 enableval=$enable_silent_rules; 3079 fi 3080 3081 case $enable_silent_rules in # ((( 3082 yes) AM_DEFAULT_VERBOSITY=0;; 3083 no) AM_DEFAULT_VERBOSITY=1;; 3084 *) AM_DEFAULT_VERBOSITY=1;; 3085 esac 3086 am_make=${MAKE-make} 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3088 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3089 if ${am_cv_make_support_nested_variables+:} false; then : 3090 $as_echo_n "(cached) " >&6 3091 else 3092 if $as_echo 'TRUE=$(BAR$(V)) 3093 BAR0=false 3094 BAR1=true 3095 V=1 3096 am__doit: 3097 @$(TRUE) 3098 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3099 am_cv_make_support_nested_variables=yes 3100 else 3101 am_cv_make_support_nested_variables=no 3102 fi 3103 fi 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3105 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3106 if test $am_cv_make_support_nested_variables = yes; then 3107 AM_V='$(V)' 3108 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3109 else 3110 AM_V=$AM_DEFAULT_VERBOSITY 3111 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3112 fi 3113 AM_BACKSLASH='\' 3114 3115 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3116 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3117 # is not polluted with repeated "-I." 3118 am__isrc=' -I$(srcdir)' 3119 # test to see if srcdir already configured 3120 if test -f $srcdir/config.status; then 3121 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3122 fi 3123 fi 3124 3125 # test whether we have cygpath 3126 if test -z "$CYGPATH_W"; then 3127 if (cygpath --version) >/dev/null 2>/dev/null; then 3128 CYGPATH_W='cygpath -w' 3129 else 3130 CYGPATH_W=echo 3131 fi 3132 fi 3133 3134 3135 # Define the identity of the package. 3136 PACKAGE='xf86-video-intel' 3137 VERSION='2.99.917' 3138 3139 3140 cat >>confdefs.h <<_ACEOF 3141 #define PACKAGE "$PACKAGE" 3142 _ACEOF 3143 3144 3145 cat >>confdefs.h <<_ACEOF 3146 #define VERSION "$VERSION" 3147 _ACEOF 3148 3149 # Some tools Automake needs. 3150 3151 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3152 3153 3154 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3155 3156 3157 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3158 3159 3160 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3161 3162 3163 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3164 3165 # For better backward compatibility. To be removed once Automake 1.9.x 3166 # dies out for good. For more background, see: 3167 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3168 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3169 mkdir_p='$(MKDIR_P)' 3170 3171 # We need awk for the "check" target (and possibly the TAP driver). The 3172 # system "awk" is bad on some platforms. 3173 # Always define AMTAR for backward compatibility. Yes, it's still used 3174 # in the wild :-( We should find a proper way to deprecate it ... 3175 AMTAR='$${TAR-tar}' 3176 3177 3178 # We'll loop over all known methods to create a tar archive until one works. 3179 _am_tools='gnutar pax cpio none' 3180 3181 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3182 3183 3184 3185 3186 3187 3188 # POSIX will say in a future version that running "rm -f" with no argument 3189 # is OK; and we want to be able to make that assumption in our Makefile 3190 # recipes. So use an aggressive probe to check that the usage we want is 3191 # actually supported "in the wild" to an acceptable degree. 3192 # See automake bug#10828. 3193 # To make any issue more visible, cause the running configure to be aborted 3194 # by default if the 'rm' program in use doesn't match our expectations; the 3195 # user can still override this though. 3196 if rm -f && rm -fr && rm -rf; then : OK; else 3197 cat >&2 <<'END' 3198 Oops! 3199 3200 Your 'rm' program seems unable to run without file operands specified 3201 on the command line, even when the '-f' option is present. This is contrary 3202 to the behaviour of most rm programs out there, and not conforming with 3203 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3204 3205 Please tell bug-automake@gnu.org about your system, including the value 3206 of your $PATH and any error possibly output before this message. This 3207 can help us improve future automake versions. 3208 3209 END 3210 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3211 echo 'Configuration will proceed anyway, since you have set the' >&2 3212 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3213 echo >&2 3214 else 3215 cat >&2 <<'END' 3216 Aborting the configuration process, to ensure you take notice of the issue. 3217 3218 You can download and install GNU coreutils to get an 'rm' implementation 3219 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3220 3221 If you want to complete the configuration process using your problematic 3222 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3223 to "yes", and re-run configure. 3224 3225 END 3226 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3227 fi 3228 fi 3229 3230 3231 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 DEPDIR="${am__leading_dot}deps" 3245 3246 ac_config_commands="$ac_config_commands depfiles" 3247 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3249 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3250 cat > confinc.mk << 'END' 3251 am__doit: 3252 @echo this is the am__doit target >confinc.out 3253 .PHONY: am__doit 3254 END 3255 am__include="#" 3256 am__quote= 3257 # BSD make does it like this. 3258 echo '.include "confinc.mk" # ignored' > confmf.BSD 3259 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3260 echo 'include confinc.mk # ignored' > confmf.GNU 3261 _am_result=no 3262 for s in GNU BSD; do 3263 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3264 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3265 ac_status=$? 3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3267 (exit $ac_status); } 3268 case $?:`cat confinc.out 2>/dev/null` in #( 3269 '0:this is the am__doit target') : 3270 case $s in #( 3271 BSD) : 3272 am__include='.include' am__quote='"' ;; #( 3273 *) : 3274 am__include='include' am__quote='' ;; 3275 esac ;; #( 3276 *) : 3277 ;; 3278 esac 3279 if test "$am__include" != "#"; then 3280 _am_result="yes ($s style)" 3281 break 3282 fi 3283 done 3284 rm -f confinc.* confmf.* 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3286 $as_echo "${_am_result}" >&6; } 3287 3288 # Check whether --enable-dependency-tracking was given. 3289 if test "${enable_dependency_tracking+set}" = set; then : 3290 enableval=$enable_dependency_tracking; 3291 fi 3292 3293 if test "x$enable_dependency_tracking" != xno; then 3294 am_depcomp="$ac_aux_dir/depcomp" 3295 AMDEPBACKSLASH='\' 3296 am__nodep='_no' 3297 fi 3298 if test "x$enable_dependency_tracking" != xno; then 3299 AMDEP_TRUE= 3300 AMDEP_FALSE='#' 3301 else 3302 AMDEP_TRUE='#' 3303 AMDEP_FALSE= 3304 fi 3305 3306 3307 ac_ext=c 3308 ac_cpp='$CPP $CPPFLAGS' 3309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3311 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3312 if test -n "$ac_tool_prefix"; then 3313 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3314 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3316 $as_echo_n "checking for $ac_word... " >&6; } 3317 if ${ac_cv_prog_CC+:} false; then : 3318 $as_echo_n "(cached) " >&6 3319 else 3320 if test -n "$CC"; then 3321 ac_cv_prog_CC="$CC" # Let the user override the test. 3322 else 3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3324 for as_dir in $PATH 3325 do 3326 IFS=$as_save_IFS 3327 test -z "$as_dir" && as_dir=. 3328 for ac_exec_ext in '' $ac_executable_extensions; do 3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3330 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3332 break 2 3333 fi 3334 done 3335 done 3336 IFS=$as_save_IFS 3337 3338 fi 3339 fi 3340 CC=$ac_cv_prog_CC 3341 if test -n "$CC"; then 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3343 $as_echo "$CC" >&6; } 3344 else 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3346 $as_echo "no" >&6; } 3347 fi 3348 3349 3350 fi 3351 if test -z "$ac_cv_prog_CC"; then 3352 ac_ct_CC=$CC 3353 # Extract the first word of "gcc", so it can be a program name with args. 3354 set dummy gcc; ac_word=$2 3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3356 $as_echo_n "checking for $ac_word... " >&6; } 3357 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3358 $as_echo_n "(cached) " >&6 3359 else 3360 if test -n "$ac_ct_CC"; then 3361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3362 else 3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3364 for as_dir in $PATH 3365 do 3366 IFS=$as_save_IFS 3367 test -z "$as_dir" && as_dir=. 3368 for ac_exec_ext in '' $ac_executable_extensions; do 3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3370 ac_cv_prog_ac_ct_CC="gcc" 3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3372 break 2 3373 fi 3374 done 3375 done 3376 IFS=$as_save_IFS 3377 3378 fi 3379 fi 3380 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3381 if test -n "$ac_ct_CC"; then 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3383 $as_echo "$ac_ct_CC" >&6; } 3384 else 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3386 $as_echo "no" >&6; } 3387 fi 3388 3389 if test "x$ac_ct_CC" = x; then 3390 CC="" 3391 else 3392 case $cross_compiling:$ac_tool_warned in 3393 yes:) 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3396 ac_tool_warned=yes ;; 3397 esac 3398 CC=$ac_ct_CC 3399 fi 3400 else 3401 CC="$ac_cv_prog_CC" 3402 fi 3403 3404 if test -z "$CC"; then 3405 if test -n "$ac_tool_prefix"; then 3406 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3407 set dummy ${ac_tool_prefix}cc; ac_word=$2 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3409 $as_echo_n "checking for $ac_word... " >&6; } 3410 if ${ac_cv_prog_CC+:} false; then : 3411 $as_echo_n "(cached) " >&6 3412 else 3413 if test -n "$CC"; then 3414 ac_cv_prog_CC="$CC" # Let the user override the test. 3415 else 3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3417 for as_dir in $PATH 3418 do 3419 IFS=$as_save_IFS 3420 test -z "$as_dir" && as_dir=. 3421 for ac_exec_ext in '' $ac_executable_extensions; do 3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3423 ac_cv_prog_CC="${ac_tool_prefix}cc" 3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3425 break 2 3426 fi 3427 done 3428 done 3429 IFS=$as_save_IFS 3430 3431 fi 3432 fi 3433 CC=$ac_cv_prog_CC 3434 if test -n "$CC"; then 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3436 $as_echo "$CC" >&6; } 3437 else 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439 $as_echo "no" >&6; } 3440 fi 3441 3442 3443 fi 3444 fi 3445 if test -z "$CC"; then 3446 # Extract the first word of "cc", so it can be a program name with args. 3447 set dummy cc; ac_word=$2 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3449 $as_echo_n "checking for $ac_word... " >&6; } 3450 if ${ac_cv_prog_CC+:} false; then : 3451 $as_echo_n "(cached) " >&6 3452 else 3453 if test -n "$CC"; then 3454 ac_cv_prog_CC="$CC" # Let the user override the test. 3455 else 3456 ac_prog_rejected=no 3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3458 for as_dir in $PATH 3459 do 3460 IFS=$as_save_IFS 3461 test -z "$as_dir" && as_dir=. 3462 for ac_exec_ext in '' $ac_executable_extensions; do 3463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3465 ac_prog_rejected=yes 3466 continue 3467 fi 3468 ac_cv_prog_CC="cc" 3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3470 break 2 3471 fi 3472 done 3473 done 3474 IFS=$as_save_IFS 3475 3476 if test $ac_prog_rejected = yes; then 3477 # We found a bogon in the path, so make sure we never use it. 3478 set dummy $ac_cv_prog_CC 3479 shift 3480 if test $# != 0; then 3481 # We chose a different compiler from the bogus one. 3482 # However, it has the same basename, so the bogon will be chosen 3483 # first if we set CC to just the basename; use the full file name. 3484 shift 3485 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3486 fi 3487 fi 3488 fi 3489 fi 3490 CC=$ac_cv_prog_CC 3491 if test -n "$CC"; then 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3493 $as_echo "$CC" >&6; } 3494 else 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3496 $as_echo "no" >&6; } 3497 fi 3498 3499 3500 fi 3501 if test -z "$CC"; then 3502 if test -n "$ac_tool_prefix"; then 3503 for ac_prog in cl.exe 3504 do 3505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3508 $as_echo_n "checking for $ac_word... " >&6; } 3509 if ${ac_cv_prog_CC+:} false; then : 3510 $as_echo_n "(cached) " >&6 3511 else 3512 if test -n "$CC"; then 3513 ac_cv_prog_CC="$CC" # Let the user override the test. 3514 else 3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3516 for as_dir in $PATH 3517 do 3518 IFS=$as_save_IFS 3519 test -z "$as_dir" && as_dir=. 3520 for ac_exec_ext in '' $ac_executable_extensions; do 3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3522 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3524 break 2 3525 fi 3526 done 3527 done 3528 IFS=$as_save_IFS 3529 3530 fi 3531 fi 3532 CC=$ac_cv_prog_CC 3533 if test -n "$CC"; then 3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3535 $as_echo "$CC" >&6; } 3536 else 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3538 $as_echo "no" >&6; } 3539 fi 3540 3541 3542 test -n "$CC" && break 3543 done 3544 fi 3545 if test -z "$CC"; then 3546 ac_ct_CC=$CC 3547 for ac_prog in cl.exe 3548 do 3549 # Extract the first word of "$ac_prog", so it can be a program name with args. 3550 set dummy $ac_prog; ac_word=$2 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3552 $as_echo_n "checking for $ac_word... " >&6; } 3553 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3554 $as_echo_n "(cached) " >&6 3555 else 3556 if test -n "$ac_ct_CC"; then 3557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3558 else 3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3560 for as_dir in $PATH 3561 do 3562 IFS=$as_save_IFS 3563 test -z "$as_dir" && as_dir=. 3564 for ac_exec_ext in '' $ac_executable_extensions; do 3565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3566 ac_cv_prog_ac_ct_CC="$ac_prog" 3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3568 break 2 3569 fi 3570 done 3571 done 3572 IFS=$as_save_IFS 3573 3574 fi 3575 fi 3576 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3577 if test -n "$ac_ct_CC"; then 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3579 $as_echo "$ac_ct_CC" >&6; } 3580 else 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3582 $as_echo "no" >&6; } 3583 fi 3584 3585 3586 test -n "$ac_ct_CC" && break 3587 done 3588 3589 if test "x$ac_ct_CC" = x; then 3590 CC="" 3591 else 3592 case $cross_compiling:$ac_tool_warned in 3593 yes:) 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3596 ac_tool_warned=yes ;; 3597 esac 3598 CC=$ac_ct_CC 3599 fi 3600 fi 3601 3602 fi 3603 3604 3605 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3607 as_fn_error $? "no acceptable C compiler found in \$PATH 3608 See \`config.log' for more details" "$LINENO" 5; } 3609 3610 # Provide some information about the compiler. 3611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3612 set X $ac_compile 3613 ac_compiler=$2 3614 for ac_option in --version -v -V -qversion; do 3615 { { ac_try="$ac_compiler $ac_option >&5" 3616 case "(($ac_try" in 3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3618 *) ac_try_echo=$ac_try;; 3619 esac 3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3621 $as_echo "$ac_try_echo"; } >&5 3622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3623 ac_status=$? 3624 if test -s conftest.err; then 3625 sed '10a\ 3626 ... rest of stderr output deleted ... 3627 10q' conftest.err >conftest.er1 3628 cat conftest.er1 >&5 3629 fi 3630 rm -f conftest.er1 conftest.err 3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3632 test $ac_status = 0; } 3633 done 3634 3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3636 /* end confdefs.h. */ 3637 3638 int 3639 main () 3640 { 3641 3642 ; 3643 return 0; 3644 } 3645 _ACEOF 3646 ac_clean_files_save=$ac_clean_files 3647 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3648 # Try to create an executable without -o first, disregard a.out. 3649 # It will help us diagnose broken compilers, and finding out an intuition 3650 # of exeext. 3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3652 $as_echo_n "checking whether the C compiler works... " >&6; } 3653 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3654 3655 # The possible output files: 3656 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3657 3658 ac_rmfiles= 3659 for ac_file in $ac_files 3660 do 3661 case $ac_file in 3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3663 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3664 esac 3665 done 3666 rm -f $ac_rmfiles 3667 3668 if { { ac_try="$ac_link_default" 3669 case "(($ac_try" in 3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3671 *) ac_try_echo=$ac_try;; 3672 esac 3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3674 $as_echo "$ac_try_echo"; } >&5 3675 (eval "$ac_link_default") 2>&5 3676 ac_status=$? 3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3678 test $ac_status = 0; }; then : 3679 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3680 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3681 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3682 # so that the user can short-circuit this test for compilers unknown to 3683 # Autoconf. 3684 for ac_file in $ac_files '' 3685 do 3686 test -f "$ac_file" || continue 3687 case $ac_file in 3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3689 ;; 3690 [ab].out ) 3691 # We found the default executable, but exeext='' is most 3692 # certainly right. 3693 break;; 3694 *.* ) 3695 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3696 then :; else 3697 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3698 fi 3699 # We set ac_cv_exeext here because the later test for it is not 3700 # safe: cross compilers may not add the suffix if given an `-o' 3701 # argument, so we may need to know it at that point already. 3702 # Even if this section looks crufty: it has the advantage of 3703 # actually working. 3704 break;; 3705 * ) 3706 break;; 3707 esac 3708 done 3709 test "$ac_cv_exeext" = no && ac_cv_exeext= 3710 3711 else 3712 ac_file='' 3713 fi 3714 if test -z "$ac_file"; then : 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3716 $as_echo "no" >&6; } 3717 $as_echo "$as_me: failed program was:" >&5 3718 sed 's/^/| /' conftest.$ac_ext >&5 3719 3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3722 as_fn_error 77 "C compiler cannot create executables 3723 See \`config.log' for more details" "$LINENO" 5; } 3724 else 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3726 $as_echo "yes" >&6; } 3727 fi 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3729 $as_echo_n "checking for C compiler default output file name... " >&6; } 3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3731 $as_echo "$ac_file" >&6; } 3732 ac_exeext=$ac_cv_exeext 3733 3734 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3735 ac_clean_files=$ac_clean_files_save 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3737 $as_echo_n "checking for suffix of executables... " >&6; } 3738 if { { ac_try="$ac_link" 3739 case "(($ac_try" in 3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3741 *) ac_try_echo=$ac_try;; 3742 esac 3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3744 $as_echo "$ac_try_echo"; } >&5 3745 (eval "$ac_link") 2>&5 3746 ac_status=$? 3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3748 test $ac_status = 0; }; then : 3749 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3750 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3751 # work properly (i.e., refer to `conftest.exe'), while it won't with 3752 # `rm'. 3753 for ac_file in conftest.exe conftest conftest.*; do 3754 test -f "$ac_file" || continue 3755 case $ac_file in 3756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3758 break;; 3759 * ) break;; 3760 esac 3761 done 3762 else 3763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3765 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3766 See \`config.log' for more details" "$LINENO" 5; } 3767 fi 3768 rm -f conftest conftest$ac_cv_exeext 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3770 $as_echo "$ac_cv_exeext" >&6; } 3771 3772 rm -f conftest.$ac_ext 3773 EXEEXT=$ac_cv_exeext 3774 ac_exeext=$EXEEXT 3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3776 /* end confdefs.h. */ 3777 #include <stdio.h> 3778 int 3779 main () 3780 { 3781 FILE *f = fopen ("conftest.out", "w"); 3782 return ferror (f) || fclose (f) != 0; 3783 3784 ; 3785 return 0; 3786 } 3787 _ACEOF 3788 ac_clean_files="$ac_clean_files conftest.out" 3789 # Check that the compiler produces executables we can run. If not, either 3790 # the compiler is broken, or we cross compile. 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3792 $as_echo_n "checking whether we are cross compiling... " >&6; } 3793 if test "$cross_compiling" != yes; then 3794 { { ac_try="$ac_link" 3795 case "(($ac_try" in 3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3797 *) ac_try_echo=$ac_try;; 3798 esac 3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3800 $as_echo "$ac_try_echo"; } >&5 3801 (eval "$ac_link") 2>&5 3802 ac_status=$? 3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3804 test $ac_status = 0; } 3805 if { ac_try='./conftest$ac_cv_exeext' 3806 { { case "(($ac_try" in 3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3808 *) ac_try_echo=$ac_try;; 3809 esac 3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3811 $as_echo "$ac_try_echo"; } >&5 3812 (eval "$ac_try") 2>&5 3813 ac_status=$? 3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3815 test $ac_status = 0; }; }; then 3816 cross_compiling=no 3817 else 3818 if test "$cross_compiling" = maybe; then 3819 cross_compiling=yes 3820 else 3821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3823 as_fn_error $? "cannot run C compiled programs. 3824 If you meant to cross compile, use \`--host'. 3825 See \`config.log' for more details" "$LINENO" 5; } 3826 fi 3827 fi 3828 fi 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3830 $as_echo "$cross_compiling" >&6; } 3831 3832 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3833 ac_clean_files=$ac_clean_files_save 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3835 $as_echo_n "checking for suffix of object files... " >&6; } 3836 if ${ac_cv_objext+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838 else 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840 /* end confdefs.h. */ 3841 3842 int 3843 main () 3844 { 3845 3846 ; 3847 return 0; 3848 } 3849 _ACEOF 3850 rm -f conftest.o conftest.obj 3851 if { { ac_try="$ac_compile" 3852 case "(($ac_try" in 3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 *) ac_try_echo=$ac_try;; 3855 esac 3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3857 $as_echo "$ac_try_echo"; } >&5 3858 (eval "$ac_compile") 2>&5 3859 ac_status=$? 3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3861 test $ac_status = 0; }; then : 3862 for ac_file in conftest.o conftest.obj conftest.*; do 3863 test -f "$ac_file" || continue; 3864 case $ac_file in 3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3867 break;; 3868 esac 3869 done 3870 else 3871 $as_echo "$as_me: failed program was:" >&5 3872 sed 's/^/| /' conftest.$ac_ext >&5 3873 3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3876 as_fn_error $? "cannot compute suffix of object files: cannot compile 3877 See \`config.log' for more details" "$LINENO" 5; } 3878 fi 3879 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3880 fi 3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3882 $as_echo "$ac_cv_objext" >&6; } 3883 OBJEXT=$ac_cv_objext 3884 ac_objext=$OBJEXT 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3886 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3887 if ${ac_cv_c_compiler_gnu+:} false; then : 3888 $as_echo_n "(cached) " >&6 3889 else 3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891 /* end confdefs.h. */ 3892 3893 int 3894 main () 3895 { 3896 #ifndef __GNUC__ 3897 choke me 3898 #endif 3899 3900 ; 3901 return 0; 3902 } 3903 _ACEOF 3904 if ac_fn_c_try_compile "$LINENO"; then : 3905 ac_compiler_gnu=yes 3906 else 3907 ac_compiler_gnu=no 3908 fi 3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3910 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3911 3912 fi 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3914 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3915 if test $ac_compiler_gnu = yes; then 3916 GCC=yes 3917 else 3918 GCC= 3919 fi 3920 ac_test_CFLAGS=${CFLAGS+set} 3921 ac_save_CFLAGS=$CFLAGS 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3923 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3924 if ${ac_cv_prog_cc_g+:} false; then : 3925 $as_echo_n "(cached) " >&6 3926 else 3927 ac_save_c_werror_flag=$ac_c_werror_flag 3928 ac_c_werror_flag=yes 3929 ac_cv_prog_cc_g=no 3930 CFLAGS="-g" 3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3932 /* end confdefs.h. */ 3933 3934 int 3935 main () 3936 { 3937 3938 ; 3939 return 0; 3940 } 3941 _ACEOF 3942 if ac_fn_c_try_compile "$LINENO"; then : 3943 ac_cv_prog_cc_g=yes 3944 else 3945 CFLAGS="" 3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3947 /* end confdefs.h. */ 3948 3949 int 3950 main () 3951 { 3952 3953 ; 3954 return 0; 3955 } 3956 _ACEOF 3957 if ac_fn_c_try_compile "$LINENO"; then : 3958 3959 else 3960 ac_c_werror_flag=$ac_save_c_werror_flag 3961 CFLAGS="-g" 3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3963 /* end confdefs.h. */ 3964 3965 int 3966 main () 3967 { 3968 3969 ; 3970 return 0; 3971 } 3972 _ACEOF 3973 if ac_fn_c_try_compile "$LINENO"; then : 3974 ac_cv_prog_cc_g=yes 3975 fi 3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3977 fi 3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3979 fi 3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3981 ac_c_werror_flag=$ac_save_c_werror_flag 3982 fi 3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3984 $as_echo "$ac_cv_prog_cc_g" >&6; } 3985 if test "$ac_test_CFLAGS" = set; then 3986 CFLAGS=$ac_save_CFLAGS 3987 elif test $ac_cv_prog_cc_g = yes; then 3988 if test "$GCC" = yes; then 3989 CFLAGS="-g -O2" 3990 else 3991 CFLAGS="-g" 3992 fi 3993 else 3994 if test "$GCC" = yes; then 3995 CFLAGS="-O2" 3996 else 3997 CFLAGS= 3998 fi 3999 fi 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4001 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4002 if ${ac_cv_prog_cc_c89+:} false; then : 4003 $as_echo_n "(cached) " >&6 4004 else 4005 ac_cv_prog_cc_c89=no 4006 ac_save_CC=$CC 4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4008 /* end confdefs.h. */ 4009 #include <stdarg.h> 4010 #include <stdio.h> 4011 struct stat; 4012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4013 struct buf { int x; }; 4014 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4015 static char *e (p, i) 4016 char **p; 4017 int i; 4018 { 4019 return p[i]; 4020 } 4021 static char *f (char * (*g) (char **, int), char **p, ...) 4022 { 4023 char *s; 4024 va_list v; 4025 va_start (v,p); 4026 s = g (p, va_arg (v,int)); 4027 va_end (v); 4028 return s; 4029 } 4030 4031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4032 function prototypes and stuff, but not '\xHH' hex character constants. 4033 These don't provoke an error unfortunately, instead are silently treated 4034 as 'x'. The following induces an error, until -std is added to get 4035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4036 array size at least. It's necessary to write '\x00'==0 to get something 4037 that's true only with -std. */ 4038 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4039 4040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4041 inside strings and character constants. */ 4042 #define FOO(x) 'x' 4043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4044 4045 int test (int i, double x); 4046 struct s1 {int (*f) (int a);}; 4047 struct s2 {int (*f) (double a);}; 4048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4049 int argc; 4050 char **argv; 4051 int 4052 main () 4053 { 4054 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4055 ; 4056 return 0; 4057 } 4058 _ACEOF 4059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4061 do 4062 CC="$ac_save_CC $ac_arg" 4063 if ac_fn_c_try_compile "$LINENO"; then : 4064 ac_cv_prog_cc_c89=$ac_arg 4065 fi 4066 rm -f core conftest.err conftest.$ac_objext 4067 test "x$ac_cv_prog_cc_c89" != "xno" && break 4068 done 4069 rm -f conftest.$ac_ext 4070 CC=$ac_save_CC 4071 4072 fi 4073 # AC_CACHE_VAL 4074 case "x$ac_cv_prog_cc_c89" in 4075 x) 4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4077 $as_echo "none needed" >&6; } ;; 4078 xno) 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4080 $as_echo "unsupported" >&6; } ;; 4081 *) 4082 CC="$CC $ac_cv_prog_cc_c89" 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4084 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4085 esac 4086 if test "x$ac_cv_prog_cc_c89" != xno; then : 4087 4088 fi 4089 4090 ac_ext=c 4091 ac_cpp='$CPP $CPPFLAGS' 4092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4094 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4095 4096 ac_ext=c 4097 ac_cpp='$CPP $CPPFLAGS' 4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4102 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4103 if ${am_cv_prog_cc_c_o+:} false; then : 4104 $as_echo_n "(cached) " >&6 4105 else 4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4107 /* end confdefs.h. */ 4108 4109 int 4110 main () 4111 { 4112 4113 ; 4114 return 0; 4115 } 4116 _ACEOF 4117 # Make sure it works both with $CC and with simple cc. 4118 # Following AC_PROG_CC_C_O, we do the test twice because some 4119 # compilers refuse to overwrite an existing .o file with -o, 4120 # though they will create one. 4121 am_cv_prog_cc_c_o=yes 4122 for am_i in 1 2; do 4123 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4124 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4125 ac_status=$? 4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4127 (exit $ac_status); } \ 4128 && test -f conftest2.$ac_objext; then 4129 : OK 4130 else 4131 am_cv_prog_cc_c_o=no 4132 break 4133 fi 4134 done 4135 rm -f core conftest* 4136 unset am_i 4137 fi 4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4139 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4140 if test "$am_cv_prog_cc_c_o" != yes; then 4141 # Losing compiler, so override with the script. 4142 # FIXME: It is wrong to rewrite CC. 4143 # But if we don't then we get into trouble of one sort or another. 4144 # A longer-term fix would be to have automake use am__CC in this case, 4145 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4146 CC="$am_aux_dir/compile $CC" 4147 fi 4148 ac_ext=c 4149 ac_cpp='$CPP $CPPFLAGS' 4150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4152 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4153 4154 4155 depcc="$CC" am_compiler_list= 4156 4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4158 $as_echo_n "checking dependency style of $depcc... " >&6; } 4159 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4160 $as_echo_n "(cached) " >&6 4161 else 4162 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4163 # We make a subdir and do the tests there. Otherwise we can end up 4164 # making bogus files that we don't know about and never remove. For 4165 # instance it was reported that on HP-UX the gcc test will end up 4166 # making a dummy file named 'D' -- because '-MD' means "put the output 4167 # in D". 4168 rm -rf conftest.dir 4169 mkdir conftest.dir 4170 # Copy depcomp to subdir because otherwise we won't find it if we're 4171 # using a relative directory. 4172 cp "$am_depcomp" conftest.dir 4173 cd conftest.dir 4174 # We will build objects and dependencies in a subdirectory because 4175 # it helps to detect inapplicable dependency modes. For instance 4176 # both Tru64's cc and ICC support -MD to output dependencies as a 4177 # side effect of compilation, but ICC will put the dependencies in 4178 # the current directory while Tru64 will put them in the object 4179 # directory. 4180 mkdir sub 4181 4182 am_cv_CC_dependencies_compiler_type=none 4183 if test "$am_compiler_list" = ""; then 4184 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4185 fi 4186 am__universal=false 4187 case " $depcc " in #( 4188 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4189 esac 4190 4191 for depmode in $am_compiler_list; do 4192 # Setup a source with many dependencies, because some compilers 4193 # like to wrap large dependency lists on column 80 (with \), and 4194 # we should not choose a depcomp mode which is confused by this. 4195 # 4196 # We need to recreate these files for each test, as the compiler may 4197 # overwrite some of them when testing with obscure command lines. 4198 # This happens at least with the AIX C compiler. 4199 : > sub/conftest.c 4200 for i in 1 2 3 4 5 6; do 4201 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4202 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4203 # Solaris 10 /bin/sh. 4204 echo '/* dummy */' > sub/conftst$i.h 4205 done 4206 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4207 4208 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4209 # mode. It turns out that the SunPro C++ compiler does not properly 4210 # handle '-M -o', and we need to detect this. Also, some Intel 4211 # versions had trouble with output in subdirs. 4212 am__obj=sub/conftest.${OBJEXT-o} 4213 am__minus_obj="-o $am__obj" 4214 case $depmode in 4215 gcc) 4216 # This depmode causes a compiler race in universal mode. 4217 test "$am__universal" = false || continue 4218 ;; 4219 nosideeffect) 4220 # After this tag, mechanisms are not by side-effect, so they'll 4221 # only be used when explicitly requested. 4222 if test "x$enable_dependency_tracking" = xyes; then 4223 continue 4224 else 4225 break 4226 fi 4227 ;; 4228 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4229 # This compiler won't grok '-c -o', but also, the minuso test has 4230 # not run yet. These depmodes are late enough in the game, and 4231 # so weak that their functioning should not be impacted. 4232 am__obj=conftest.${OBJEXT-o} 4233 am__minus_obj= 4234 ;; 4235 none) break ;; 4236 esac 4237 if depmode=$depmode \ 4238 source=sub/conftest.c object=$am__obj \ 4239 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4240 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4241 >/dev/null 2>conftest.err && 4242 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4243 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4244 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4245 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4246 # icc doesn't choke on unknown options, it will just issue warnings 4247 # or remarks (even with -Werror). So we grep stderr for any message 4248 # that says an option was ignored or not supported. 4249 # When given -MP, icc 7.0 and 7.1 complain thusly: 4250 # icc: Command line warning: ignoring option '-M'; no argument required 4251 # The diagnosis changed in icc 8.0: 4252 # icc: Command line remark: option '-MP' not supported 4253 if (grep 'ignoring option' conftest.err || 4254 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4255 am_cv_CC_dependencies_compiler_type=$depmode 4256 break 4257 fi 4258 fi 4259 done 4260 4261 cd .. 4262 rm -rf conftest.dir 4263 else 4264 am_cv_CC_dependencies_compiler_type=none 4265 fi 4266 4267 fi 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4269 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4270 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4271 4272 if 4273 test "x$enable_dependency_tracking" != xno \ 4274 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4275 am__fastdepCC_TRUE= 4276 am__fastdepCC_FALSE='#' 4277 else 4278 am__fastdepCC_TRUE='#' 4279 am__fastdepCC_FALSE= 4280 fi 4281 4282 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4284 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4285 if ${ac_cv_prog_cc_c99+:} false; then : 4286 $as_echo_n "(cached) " >&6 4287 else 4288 ac_cv_prog_cc_c99=no 4289 ac_save_CC=$CC 4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4291 /* end confdefs.h. */ 4292 #include <stdarg.h> 4293 #include <stdbool.h> 4294 #include <stdlib.h> 4295 #include <wchar.h> 4296 #include <stdio.h> 4297 4298 // Check varargs macros. These examples are taken from C99 6.10.3.5. 4299 #define debug(...) fprintf (stderr, __VA_ARGS__) 4300 #define showlist(...) puts (#__VA_ARGS__) 4301 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4302 static void 4303 test_varargs_macros (void) 4304 { 4305 int x = 1234; 4306 int y = 5678; 4307 debug ("Flag"); 4308 debug ("X = %d\n", x); 4309 showlist (The first, second, and third items.); 4310 report (x>y, "x is %d but y is %d", x, y); 4311 } 4312 4313 // Check long long types. 4314 #define BIG64 18446744073709551615ull 4315 #define BIG32 4294967295ul 4316 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4317 #if !BIG_OK 4318 your preprocessor is broken; 4319 #endif 4320 #if BIG_OK 4321 #else 4322 your preprocessor is broken; 4323 #endif 4324 static long long int bignum = -9223372036854775807LL; 4325 static unsigned long long int ubignum = BIG64; 4326 4327 struct incomplete_array 4328 { 4329 int datasize; 4330 double data[]; 4331 }; 4332 4333 struct named_init { 4334 int number; 4335 const wchar_t *name; 4336 double average; 4337 }; 4338 4339 typedef const char *ccp; 4340 4341 static inline int 4342 test_restrict (ccp restrict text) 4343 { 4344 // See if C++-style comments work. 4345 // Iterate through items via the restricted pointer. 4346 // Also check for declarations in for loops. 4347 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4348 continue; 4349 return 0; 4350 } 4351 4352 // Check varargs and va_copy. 4353 static void 4354 test_varargs (const char *format, ...) 4355 { 4356 va_list args; 4357 va_start (args, format); 4358 va_list args_copy; 4359 va_copy (args_copy, args); 4360 4361 const char *str; 4362 int number; 4363 float fnumber; 4364 4365 while (*format) 4366 { 4367 switch (*format++) 4368 { 4369 case 's': // string 4370 str = va_arg (args_copy, const char *); 4371 break; 4372 case 'd': // int 4373 number = va_arg (args_copy, int); 4374 break; 4375 case 'f': // float 4376 fnumber = va_arg (args_copy, double); 4377 break; 4378 default: 4379 break; 4380 } 4381 } 4382 va_end (args_copy); 4383 va_end (args); 4384 } 4385 4386 int 4387 main () 4388 { 4389 4390 // Check bool. 4391 _Bool success = false; 4392 4393 // Check restrict. 4394 if (test_restrict ("String literal") == 0) 4395 success = true; 4396 char *restrict newvar = "Another string"; 4397 4398 // Check varargs. 4399 test_varargs ("s, d' f .", "string", 65, 34.234); 4400 test_varargs_macros (); 4401 4402 // Check flexible array members. 4403 struct incomplete_array *ia = 4404 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4405 ia->datasize = 10; 4406 for (int i = 0; i < ia->datasize; ++i) 4407 ia->data[i] = i * 1.234; 4408 4409 // Check named initializers. 4410 struct named_init ni = { 4411 .number = 34, 4412 .name = L"Test wide string", 4413 .average = 543.34343, 4414 }; 4415 4416 ni.number = 58; 4417 4418 int dynamic_array[ni.number]; 4419 dynamic_array[ni.number - 1] = 543; 4420 4421 // work around unused variable warnings 4422 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4423 || dynamic_array[ni.number - 1] != 543); 4424 4425 ; 4426 return 0; 4427 } 4428 _ACEOF 4429 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4430 do 4431 CC="$ac_save_CC $ac_arg" 4432 if ac_fn_c_try_compile "$LINENO"; then : 4433 ac_cv_prog_cc_c99=$ac_arg 4434 fi 4435 rm -f core conftest.err conftest.$ac_objext 4436 test "x$ac_cv_prog_cc_c99" != "xno" && break 4437 done 4438 rm -f conftest.$ac_ext 4439 CC=$ac_save_CC 4440 4441 fi 4442 # AC_CACHE_VAL 4443 case "x$ac_cv_prog_cc_c99" in 4444 x) 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4446 $as_echo "none needed" >&6; } ;; 4447 xno) 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4449 $as_echo "unsupported" >&6; } ;; 4450 *) 4451 CC="$CC $ac_cv_prog_cc_c99" 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4453 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4454 esac 4455 if test "x$ac_cv_prog_cc_c99" != xno; then : 4456 4457 fi 4458 4459 4460 4461 ac_ext=c 4462 ac_cpp='$CPP $CPPFLAGS' 4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4467 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4468 # On Suns, sometimes $CPP names a directory. 4469 if test -n "$CPP" && test -d "$CPP"; then 4470 CPP= 4471 fi 4472 if test -z "$CPP"; then 4473 if ${ac_cv_prog_CPP+:} false; then : 4474 $as_echo_n "(cached) " >&6 4475 else 4476 # Double quotes because CPP needs to be expanded 4477 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4478 do 4479 ac_preproc_ok=false 4480 for ac_c_preproc_warn_flag in '' yes 4481 do 4482 # Use a header file that comes with gcc, so configuring glibc 4483 # with a fresh cross-compiler works. 4484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4485 # <limits.h> exists even on freestanding compilers. 4486 # On the NeXT, cc -E runs the code through the compiler's parser, 4487 # not just through cpp. "Syntax error" is here to catch this case. 4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4489 /* end confdefs.h. */ 4490 #ifdef __STDC__ 4491 # include <limits.h> 4492 #else 4493 # include <assert.h> 4494 #endif 4495 Syntax error 4496 _ACEOF 4497 if ac_fn_c_try_cpp "$LINENO"; then : 4498 4499 else 4500 # Broken: fails on valid input. 4501 continue 4502 fi 4503 rm -f conftest.err conftest.i conftest.$ac_ext 4504 4505 # OK, works on sane cases. Now check whether nonexistent headers 4506 # can be detected and how. 4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4508 /* end confdefs.h. */ 4509 #include <ac_nonexistent.h> 4510 _ACEOF 4511 if ac_fn_c_try_cpp "$LINENO"; then : 4512 # Broken: success on invalid input. 4513 continue 4514 else 4515 # Passes both tests. 4516 ac_preproc_ok=: 4517 break 4518 fi 4519 rm -f conftest.err conftest.i conftest.$ac_ext 4520 4521 done 4522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4523 rm -f conftest.i conftest.err conftest.$ac_ext 4524 if $ac_preproc_ok; then : 4525 break 4526 fi 4527 4528 done 4529 ac_cv_prog_CPP=$CPP 4530 4531 fi 4532 CPP=$ac_cv_prog_CPP 4533 else 4534 ac_cv_prog_CPP=$CPP 4535 fi 4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4537 $as_echo "$CPP" >&6; } 4538 ac_preproc_ok=false 4539 for ac_c_preproc_warn_flag in '' yes 4540 do 4541 # Use a header file that comes with gcc, so configuring glibc 4542 # with a fresh cross-compiler works. 4543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4544 # <limits.h> exists even on freestanding compilers. 4545 # On the NeXT, cc -E runs the code through the compiler's parser, 4546 # not just through cpp. "Syntax error" is here to catch this case. 4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4548 /* end confdefs.h. */ 4549 #ifdef __STDC__ 4550 # include <limits.h> 4551 #else 4552 # include <assert.h> 4553 #endif 4554 Syntax error 4555 _ACEOF 4556 if ac_fn_c_try_cpp "$LINENO"; then : 4557 4558 else 4559 # Broken: fails on valid input. 4560 continue 4561 fi 4562 rm -f conftest.err conftest.i conftest.$ac_ext 4563 4564 # OK, works on sane cases. Now check whether nonexistent headers 4565 # can be detected and how. 4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4567 /* end confdefs.h. */ 4568 #include <ac_nonexistent.h> 4569 _ACEOF 4570 if ac_fn_c_try_cpp "$LINENO"; then : 4571 # Broken: success on invalid input. 4572 continue 4573 else 4574 # Passes both tests. 4575 ac_preproc_ok=: 4576 break 4577 fi 4578 rm -f conftest.err conftest.i conftest.$ac_ext 4579 4580 done 4581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4582 rm -f conftest.i conftest.err conftest.$ac_ext 4583 if $ac_preproc_ok; then : 4584 4585 else 4586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4588 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4589 See \`config.log' for more details" "$LINENO" 5; } 4590 fi 4591 4592 ac_ext=c 4593 ac_cpp='$CPP $CPPFLAGS' 4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4597 4598 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4600 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4601 if ${ac_cv_path_GREP+:} false; then : 4602 $as_echo_n "(cached) " >&6 4603 else 4604 if test -z "$GREP"; then 4605 ac_path_GREP_found=false 4606 # Loop through the user's path and test for each of PROGNAME-LIST 4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4609 do 4610 IFS=$as_save_IFS 4611 test -z "$as_dir" && as_dir=. 4612 for ac_prog in grep ggrep; do 4613 for ac_exec_ext in '' $ac_executable_extensions; do 4614 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4615 as_fn_executable_p "$ac_path_GREP" || continue 4616 # Check for GNU ac_path_GREP and select it if it is found. 4617 # Check for GNU $ac_path_GREP 4618 case `"$ac_path_GREP" --version 2>&1` in 4619 *GNU*) 4620 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4621 *) 4622 ac_count=0 4623 $as_echo_n 0123456789 >"conftest.in" 4624 while : 4625 do 4626 cat "conftest.in" "conftest.in" >"conftest.tmp" 4627 mv "conftest.tmp" "conftest.in" 4628 cp "conftest.in" "conftest.nl" 4629 $as_echo 'GREP' >> "conftest.nl" 4630 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4632 as_fn_arith $ac_count + 1 && ac_count=$as_val 4633 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4634 # Best one so far, save it but keep looking for a better one 4635 ac_cv_path_GREP="$ac_path_GREP" 4636 ac_path_GREP_max=$ac_count 4637 fi 4638 # 10*(2^10) chars as input seems more than enough 4639 test $ac_count -gt 10 && break 4640 done 4641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4642 esac 4643 4644 $ac_path_GREP_found && break 3 4645 done 4646 done 4647 done 4648 IFS=$as_save_IFS 4649 if test -z "$ac_cv_path_GREP"; then 4650 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4651 fi 4652 else 4653 ac_cv_path_GREP=$GREP 4654 fi 4655 4656 fi 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4658 $as_echo "$ac_cv_path_GREP" >&6; } 4659 GREP="$ac_cv_path_GREP" 4660 4661 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4663 $as_echo_n "checking for egrep... " >&6; } 4664 if ${ac_cv_path_EGREP+:} false; then : 4665 $as_echo_n "(cached) " >&6 4666 else 4667 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4668 then ac_cv_path_EGREP="$GREP -E" 4669 else 4670 if test -z "$EGREP"; then 4671 ac_path_EGREP_found=false 4672 # Loop through the user's path and test for each of PROGNAME-LIST 4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4675 do 4676 IFS=$as_save_IFS 4677 test -z "$as_dir" && as_dir=. 4678 for ac_prog in egrep; do 4679 for ac_exec_ext in '' $ac_executable_extensions; do 4680 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4681 as_fn_executable_p "$ac_path_EGREP" || continue 4682 # Check for GNU ac_path_EGREP and select it if it is found. 4683 # Check for GNU $ac_path_EGREP 4684 case `"$ac_path_EGREP" --version 2>&1` in 4685 *GNU*) 4686 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4687 *) 4688 ac_count=0 4689 $as_echo_n 0123456789 >"conftest.in" 4690 while : 4691 do 4692 cat "conftest.in" "conftest.in" >"conftest.tmp" 4693 mv "conftest.tmp" "conftest.in" 4694 cp "conftest.in" "conftest.nl" 4695 $as_echo 'EGREP' >> "conftest.nl" 4696 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4698 as_fn_arith $ac_count + 1 && ac_count=$as_val 4699 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4700 # Best one so far, save it but keep looking for a better one 4701 ac_cv_path_EGREP="$ac_path_EGREP" 4702 ac_path_EGREP_max=$ac_count 4703 fi 4704 # 10*(2^10) chars as input seems more than enough 4705 test $ac_count -gt 10 && break 4706 done 4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4708 esac 4709 4710 $ac_path_EGREP_found && break 3 4711 done 4712 done 4713 done 4714 IFS=$as_save_IFS 4715 if test -z "$ac_cv_path_EGREP"; then 4716 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4717 fi 4718 else 4719 ac_cv_path_EGREP=$EGREP 4720 fi 4721 4722 fi 4723 fi 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4725 $as_echo "$ac_cv_path_EGREP" >&6; } 4726 EGREP="$ac_cv_path_EGREP" 4727 4728 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4730 $as_echo_n "checking for ANSI C header files... " >&6; } 4731 if ${ac_cv_header_stdc+:} false; then : 4732 $as_echo_n "(cached) " >&6 4733 else 4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4735 /* end confdefs.h. */ 4736 #include <stdlib.h> 4737 #include <stdarg.h> 4738 #include <string.h> 4739 #include <float.h> 4740 4741 int 4742 main () 4743 { 4744 4745 ; 4746 return 0; 4747 } 4748 _ACEOF 4749 if ac_fn_c_try_compile "$LINENO"; then : 4750 ac_cv_header_stdc=yes 4751 else 4752 ac_cv_header_stdc=no 4753 fi 4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4755 4756 if test $ac_cv_header_stdc = yes; then 4757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4759 /* end confdefs.h. */ 4760 #include <string.h> 4761 4762 _ACEOF 4763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4764 $EGREP "memchr" >/dev/null 2>&1; then : 4765 4766 else 4767 ac_cv_header_stdc=no 4768 fi 4769 rm -f conftest* 4770 4771 fi 4772 4773 if test $ac_cv_header_stdc = yes; then 4774 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4776 /* end confdefs.h. */ 4777 #include <stdlib.h> 4778 4779 _ACEOF 4780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4781 $EGREP "free" >/dev/null 2>&1; then : 4782 4783 else 4784 ac_cv_header_stdc=no 4785 fi 4786 rm -f conftest* 4787 4788 fi 4789 4790 if test $ac_cv_header_stdc = yes; then 4791 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4792 if test "$cross_compiling" = yes; then : 4793 : 4794 else 4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4796 /* end confdefs.h. */ 4797 #include <ctype.h> 4798 #include <stdlib.h> 4799 #if ((' ' & 0x0FF) == 0x020) 4800 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4801 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4802 #else 4803 # define ISLOWER(c) \ 4804 (('a' <= (c) && (c) <= 'i') \ 4805 || ('j' <= (c) && (c) <= 'r') \ 4806 || ('s' <= (c) && (c) <= 'z')) 4807 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4808 #endif 4809 4810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4811 int 4812 main () 4813 { 4814 int i; 4815 for (i = 0; i < 256; i++) 4816 if (XOR (islower (i), ISLOWER (i)) 4817 || toupper (i) != TOUPPER (i)) 4818 return 2; 4819 return 0; 4820 } 4821 _ACEOF 4822 if ac_fn_c_try_run "$LINENO"; then : 4823 4824 else 4825 ac_cv_header_stdc=no 4826 fi 4827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4828 conftest.$ac_objext conftest.beam conftest.$ac_ext 4829 fi 4830 4831 fi 4832 fi 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4834 $as_echo "$ac_cv_header_stdc" >&6; } 4835 if test $ac_cv_header_stdc = yes; then 4836 4837 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4838 4839 fi 4840 4841 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4842 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4843 inttypes.h stdint.h unistd.h 4844 do : 4845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4846 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4847 " 4848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4849 cat >>confdefs.h <<_ACEOF 4850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4851 _ACEOF 4852 4853 fi 4854 4855 done 4856 4857 4858 4859 4860 4861 4862 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4863 if test "x$ac_cv_have_decl___clang__" = xyes; then : 4864 CLANGCC="yes" 4865 else 4866 CLANGCC="no" 4867 fi 4868 4869 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4870 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4871 INTELCC="yes" 4872 else 4873 INTELCC="no" 4874 fi 4875 4876 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4877 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4878 SUNCC="yes" 4879 else 4880 SUNCC="no" 4881 fi 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4892 if test -n "$ac_tool_prefix"; then 4893 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4894 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4896 $as_echo_n "checking for $ac_word... " >&6; } 4897 if ${ac_cv_path_PKG_CONFIG+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899 else 4900 case $PKG_CONFIG in 4901 [\\/]* | ?:[\\/]*) 4902 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4903 ;; 4904 *) 4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4906 for as_dir in $PATH 4907 do 4908 IFS=$as_save_IFS 4909 test -z "$as_dir" && as_dir=. 4910 for ac_exec_ext in '' $ac_executable_extensions; do 4911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4912 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4914 break 2 4915 fi 4916 done 4917 done 4918 IFS=$as_save_IFS 4919 4920 ;; 4921 esac 4922 fi 4923 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4924 if test -n "$PKG_CONFIG"; then 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4926 $as_echo "$PKG_CONFIG" >&6; } 4927 else 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4929 $as_echo "no" >&6; } 4930 fi 4931 4932 4933 fi 4934 if test -z "$ac_cv_path_PKG_CONFIG"; then 4935 ac_pt_PKG_CONFIG=$PKG_CONFIG 4936 # Extract the first word of "pkg-config", so it can be a program name with args. 4937 set dummy pkg-config; ac_word=$2 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4939 $as_echo_n "checking for $ac_word... " >&6; } 4940 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4941 $as_echo_n "(cached) " >&6 4942 else 4943 case $ac_pt_PKG_CONFIG in 4944 [\\/]* | ?:[\\/]*) 4945 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4946 ;; 4947 *) 4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4949 for as_dir in $PATH 4950 do 4951 IFS=$as_save_IFS 4952 test -z "$as_dir" && as_dir=. 4953 for ac_exec_ext in '' $ac_executable_extensions; do 4954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4955 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4957 break 2 4958 fi 4959 done 4960 done 4961 IFS=$as_save_IFS 4962 4963 ;; 4964 esac 4965 fi 4966 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4967 if test -n "$ac_pt_PKG_CONFIG"; then 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4969 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4970 else 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4972 $as_echo "no" >&6; } 4973 fi 4974 4975 if test "x$ac_pt_PKG_CONFIG" = x; then 4976 PKG_CONFIG="" 4977 else 4978 case $cross_compiling:$ac_tool_warned in 4979 yes:) 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4982 ac_tool_warned=yes ;; 4983 esac 4984 PKG_CONFIG=$ac_pt_PKG_CONFIG 4985 fi 4986 else 4987 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4988 fi 4989 4990 fi 4991 if test -n "$PKG_CONFIG"; then 4992 _pkg_min_version=0.9.0 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4994 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4995 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4997 $as_echo "yes" >&6; } 4998 else 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5000 $as_echo "no" >&6; } 5001 PKG_CONFIG="" 5002 fi 5003 fi 5004 # Make sure we can run config.sub. 5005 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5006 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5007 5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5009 $as_echo_n "checking build system type... " >&6; } 5010 if ${ac_cv_build+:} false; then : 5011 $as_echo_n "(cached) " >&6 5012 else 5013 ac_build_alias=$build_alias 5014 test "x$ac_build_alias" = x && 5015 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5016 test "x$ac_build_alias" = x && 5017 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5018 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5019 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5020 5021 fi 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5023 $as_echo "$ac_cv_build" >&6; } 5024 case $ac_cv_build in 5025 *-*-*) ;; 5026 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5027 esac 5028 build=$ac_cv_build 5029 ac_save_IFS=$IFS; IFS='-' 5030 set x $ac_cv_build 5031 shift 5032 build_cpu=$1 5033 build_vendor=$2 5034 shift; shift 5035 # Remember, the first character of IFS is used to create $*, 5036 # except with old shells: 5037 build_os=$* 5038 IFS=$ac_save_IFS 5039 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5040 5041 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5043 $as_echo_n "checking host system type... " >&6; } 5044 if ${ac_cv_host+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046 else 5047 if test "x$host_alias" = x; then 5048 ac_cv_host=$ac_cv_build 5049 else 5050 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5051 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5052 fi 5053 5054 fi 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5056 $as_echo "$ac_cv_host" >&6; } 5057 case $ac_cv_host in 5058 *-*-*) ;; 5059 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5060 esac 5061 host=$ac_cv_host 5062 ac_save_IFS=$IFS; IFS='-' 5063 set x $ac_cv_host 5064 shift 5065 host_cpu=$1 5066 host_vendor=$2 5067 shift; shift 5068 # Remember, the first character of IFS is used to create $*, 5069 # except with old shells: 5070 host_os=$* 5071 IFS=$ac_save_IFS 5072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5073 5074 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5076 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5077 if ${ac_cv_path_SED+:} false; then : 5078 $as_echo_n "(cached) " >&6 5079 else 5080 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5081 for ac_i in 1 2 3 4 5 6 7; do 5082 ac_script="$ac_script$as_nl$ac_script" 5083 done 5084 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5085 { ac_script=; unset ac_script;} 5086 if test -z "$SED"; then 5087 ac_path_SED_found=false 5088 # Loop through the user's path and test for each of PROGNAME-LIST 5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5090 for as_dir in $PATH 5091 do 5092 IFS=$as_save_IFS 5093 test -z "$as_dir" && as_dir=. 5094 for ac_prog in sed gsed; do 5095 for ac_exec_ext in '' $ac_executable_extensions; do 5096 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5097 as_fn_executable_p "$ac_path_SED" || continue 5098 # Check for GNU ac_path_SED and select it if it is found. 5099 # Check for GNU $ac_path_SED 5100 case `"$ac_path_SED" --version 2>&1` in 5101 *GNU*) 5102 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5103 *) 5104 ac_count=0 5105 $as_echo_n 0123456789 >"conftest.in" 5106 while : 5107 do 5108 cat "conftest.in" "conftest.in" >"conftest.tmp" 5109 mv "conftest.tmp" "conftest.in" 5110 cp "conftest.in" "conftest.nl" 5111 $as_echo '' >> "conftest.nl" 5112 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5114 as_fn_arith $ac_count + 1 && ac_count=$as_val 5115 if test $ac_count -gt ${ac_path_SED_max-0}; then 5116 # Best one so far, save it but keep looking for a better one 5117 ac_cv_path_SED="$ac_path_SED" 5118 ac_path_SED_max=$ac_count 5119 fi 5120 # 10*(2^10) chars as input seems more than enough 5121 test $ac_count -gt 10 && break 5122 done 5123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5124 esac 5125 5126 $ac_path_SED_found && break 3 5127 done 5128 done 5129 done 5130 IFS=$as_save_IFS 5131 if test -z "$ac_cv_path_SED"; then 5132 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5133 fi 5134 else 5135 ac_cv_path_SED=$SED 5136 fi 5137 5138 fi 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5140 $as_echo "$ac_cv_path_SED" >&6; } 5141 SED="$ac_cv_path_SED" 5142 rm -f conftest.sed 5143 5144 5145 5146 5147 5148 5149 # Check whether --enable-selective-werror was given. 5150 if test "${enable_selective_werror+set}" = set; then : 5151 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5152 else 5153 SELECTIVE_WERROR=yes 5154 fi 5155 5156 5157 5158 5159 5160 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5161 if test "x$SUNCC" = "xyes"; then 5162 BASE_CFLAGS="-v" 5163 else 5164 BASE_CFLAGS="" 5165 fi 5166 5167 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 xorg_testset_save_CFLAGS="$CFLAGS" 5182 5183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5186 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5187 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5188 $as_echo_n "(cached) " >&6 5189 else 5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5191 /* end confdefs.h. */ 5192 int i; 5193 _ACEOF 5194 if ac_fn_c_try_compile "$LINENO"; then : 5195 xorg_cv_cc_flag_unknown_warning_option=yes 5196 else 5197 xorg_cv_cc_flag_unknown_warning_option=no 5198 fi 5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5200 fi 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5202 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5204 CFLAGS="$xorg_testset_save_CFLAGS" 5205 fi 5206 5207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5210 fi 5211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5213 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5214 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5215 $as_echo_n "(cached) " >&6 5216 else 5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5218 /* end confdefs.h. */ 5219 int i; 5220 _ACEOF 5221 if ac_fn_c_try_compile "$LINENO"; then : 5222 xorg_cv_cc_flag_unused_command_line_argument=yes 5223 else 5224 xorg_cv_cc_flag_unused_command_line_argument=no 5225 fi 5226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5227 fi 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5229 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5231 CFLAGS="$xorg_testset_save_CFLAGS" 5232 fi 5233 5234 found="no" 5235 5236 if test $found = "no" ; then 5237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5239 fi 5240 5241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5243 fi 5244 5245 CFLAGS="$CFLAGS -Wall" 5246 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5248 $as_echo_n "checking if $CC supports -Wall... " >&6; } 5249 cacheid=xorg_cv_cc_flag__Wall 5250 if eval \${$cacheid+:} false; then : 5251 $as_echo_n "(cached) " >&6 5252 else 5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5254 /* end confdefs.h. */ 5255 int i; 5256 int 5257 main () 5258 { 5259 5260 ; 5261 return 0; 5262 } 5263 _ACEOF 5264 if ac_fn_c_try_link "$LINENO"; then : 5265 eval $cacheid=yes 5266 else 5267 eval $cacheid=no 5268 fi 5269 rm -f core conftest.err conftest.$ac_objext \ 5270 conftest$ac_exeext conftest.$ac_ext 5271 fi 5272 5273 5274 CFLAGS="$xorg_testset_save_CFLAGS" 5275 5276 eval supported=\$$cacheid 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5278 $as_echo "$supported" >&6; } 5279 if test "$supported" = "yes" ; then 5280 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5281 found="yes" 5282 fi 5283 fi 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 xorg_testset_save_CFLAGS="$CFLAGS" 5300 5301 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5304 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5305 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5306 $as_echo_n "(cached) " >&6 5307 else 5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5309 /* end confdefs.h. */ 5310 int i; 5311 _ACEOF 5312 if ac_fn_c_try_compile "$LINENO"; then : 5313 xorg_cv_cc_flag_unknown_warning_option=yes 5314 else 5315 xorg_cv_cc_flag_unknown_warning_option=no 5316 fi 5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5318 fi 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5320 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5322 CFLAGS="$xorg_testset_save_CFLAGS" 5323 fi 5324 5325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5328 fi 5329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5331 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5332 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5333 $as_echo_n "(cached) " >&6 5334 else 5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5336 /* end confdefs.h. */ 5337 int i; 5338 _ACEOF 5339 if ac_fn_c_try_compile "$LINENO"; then : 5340 xorg_cv_cc_flag_unused_command_line_argument=yes 5341 else 5342 xorg_cv_cc_flag_unused_command_line_argument=no 5343 fi 5344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5345 fi 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5347 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5349 CFLAGS="$xorg_testset_save_CFLAGS" 5350 fi 5351 5352 found="no" 5353 5354 if test $found = "no" ; then 5355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5357 fi 5358 5359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5361 fi 5362 5363 CFLAGS="$CFLAGS -Wpointer-arith" 5364 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5366 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5367 cacheid=xorg_cv_cc_flag__Wpointer_arith 5368 if eval \${$cacheid+:} false; then : 5369 $as_echo_n "(cached) " >&6 5370 else 5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372 /* end confdefs.h. */ 5373 int i; 5374 int 5375 main () 5376 { 5377 5378 ; 5379 return 0; 5380 } 5381 _ACEOF 5382 if ac_fn_c_try_link "$LINENO"; then : 5383 eval $cacheid=yes 5384 else 5385 eval $cacheid=no 5386 fi 5387 rm -f core conftest.err conftest.$ac_objext \ 5388 conftest$ac_exeext conftest.$ac_ext 5389 fi 5390 5391 5392 CFLAGS="$xorg_testset_save_CFLAGS" 5393 5394 eval supported=\$$cacheid 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5396 $as_echo "$supported" >&6; } 5397 if test "$supported" = "yes" ; then 5398 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5399 found="yes" 5400 fi 5401 fi 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 xorg_testset_save_CFLAGS="$CFLAGS" 5418 5419 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5422 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5423 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5424 $as_echo_n "(cached) " >&6 5425 else 5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5427 /* end confdefs.h. */ 5428 int i; 5429 _ACEOF 5430 if ac_fn_c_try_compile "$LINENO"; then : 5431 xorg_cv_cc_flag_unknown_warning_option=yes 5432 else 5433 xorg_cv_cc_flag_unknown_warning_option=no 5434 fi 5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5436 fi 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5438 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5440 CFLAGS="$xorg_testset_save_CFLAGS" 5441 fi 5442 5443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5446 fi 5447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5449 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5450 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5451 $as_echo_n "(cached) " >&6 5452 else 5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5454 /* end confdefs.h. */ 5455 int i; 5456 _ACEOF 5457 if ac_fn_c_try_compile "$LINENO"; then : 5458 xorg_cv_cc_flag_unused_command_line_argument=yes 5459 else 5460 xorg_cv_cc_flag_unused_command_line_argument=no 5461 fi 5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5463 fi 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5465 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5467 CFLAGS="$xorg_testset_save_CFLAGS" 5468 fi 5469 5470 found="no" 5471 5472 if test $found = "no" ; then 5473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5475 fi 5476 5477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5479 fi 5480 5481 CFLAGS="$CFLAGS -Wmissing-declarations" 5482 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5484 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5485 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5486 if eval \${$cacheid+:} false; then : 5487 $as_echo_n "(cached) " >&6 5488 else 5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5490 /* end confdefs.h. */ 5491 int i; 5492 int 5493 main () 5494 { 5495 5496 ; 5497 return 0; 5498 } 5499 _ACEOF 5500 if ac_fn_c_try_link "$LINENO"; then : 5501 eval $cacheid=yes 5502 else 5503 eval $cacheid=no 5504 fi 5505 rm -f core conftest.err conftest.$ac_objext \ 5506 conftest$ac_exeext conftest.$ac_ext 5507 fi 5508 5509 5510 CFLAGS="$xorg_testset_save_CFLAGS" 5511 5512 eval supported=\$$cacheid 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5514 $as_echo "$supported" >&6; } 5515 if test "$supported" = "yes" ; then 5516 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5517 found="yes" 5518 fi 5519 fi 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 xorg_testset_save_CFLAGS="$CFLAGS" 5536 5537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5540 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5541 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5542 $as_echo_n "(cached) " >&6 5543 else 5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5545 /* end confdefs.h. */ 5546 int i; 5547 _ACEOF 5548 if ac_fn_c_try_compile "$LINENO"; then : 5549 xorg_cv_cc_flag_unknown_warning_option=yes 5550 else 5551 xorg_cv_cc_flag_unknown_warning_option=no 5552 fi 5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5554 fi 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5556 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5558 CFLAGS="$xorg_testset_save_CFLAGS" 5559 fi 5560 5561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5564 fi 5565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5567 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5568 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5569 $as_echo_n "(cached) " >&6 5570 else 5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5572 /* end confdefs.h. */ 5573 int i; 5574 _ACEOF 5575 if ac_fn_c_try_compile "$LINENO"; then : 5576 xorg_cv_cc_flag_unused_command_line_argument=yes 5577 else 5578 xorg_cv_cc_flag_unused_command_line_argument=no 5579 fi 5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5581 fi 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5583 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5585 CFLAGS="$xorg_testset_save_CFLAGS" 5586 fi 5587 5588 found="no" 5589 5590 if test $found = "no" ; then 5591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5593 fi 5594 5595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5597 fi 5598 5599 CFLAGS="$CFLAGS -Wformat=2" 5600 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5602 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5603 cacheid=xorg_cv_cc_flag__Wformat_2 5604 if eval \${$cacheid+:} false; then : 5605 $as_echo_n "(cached) " >&6 5606 else 5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5608 /* end confdefs.h. */ 5609 int i; 5610 int 5611 main () 5612 { 5613 5614 ; 5615 return 0; 5616 } 5617 _ACEOF 5618 if ac_fn_c_try_link "$LINENO"; then : 5619 eval $cacheid=yes 5620 else 5621 eval $cacheid=no 5622 fi 5623 rm -f core conftest.err conftest.$ac_objext \ 5624 conftest$ac_exeext conftest.$ac_ext 5625 fi 5626 5627 5628 CFLAGS="$xorg_testset_save_CFLAGS" 5629 5630 eval supported=\$$cacheid 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5632 $as_echo "$supported" >&6; } 5633 if test "$supported" = "yes" ; then 5634 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5635 found="yes" 5636 fi 5637 fi 5638 5639 if test $found = "no" ; then 5640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5642 fi 5643 5644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5646 fi 5647 5648 CFLAGS="$CFLAGS -Wformat" 5649 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5651 $as_echo_n "checking if $CC supports -Wformat... " >&6; } 5652 cacheid=xorg_cv_cc_flag__Wformat 5653 if eval \${$cacheid+:} false; then : 5654 $as_echo_n "(cached) " >&6 5655 else 5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5657 /* end confdefs.h. */ 5658 int i; 5659 int 5660 main () 5661 { 5662 5663 ; 5664 return 0; 5665 } 5666 _ACEOF 5667 if ac_fn_c_try_link "$LINENO"; then : 5668 eval $cacheid=yes 5669 else 5670 eval $cacheid=no 5671 fi 5672 rm -f core conftest.err conftest.$ac_objext \ 5673 conftest$ac_exeext conftest.$ac_ext 5674 fi 5675 5676 5677 CFLAGS="$xorg_testset_save_CFLAGS" 5678 5679 eval supported=\$$cacheid 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5681 $as_echo "$supported" >&6; } 5682 if test "$supported" = "yes" ; then 5683 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5684 found="yes" 5685 fi 5686 fi 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 xorg_testset_save_CFLAGS="$CFLAGS" 5705 5706 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5709 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5710 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5711 $as_echo_n "(cached) " >&6 5712 else 5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714 /* end confdefs.h. */ 5715 int i; 5716 _ACEOF 5717 if ac_fn_c_try_compile "$LINENO"; then : 5718 xorg_cv_cc_flag_unknown_warning_option=yes 5719 else 5720 xorg_cv_cc_flag_unknown_warning_option=no 5721 fi 5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5723 fi 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5725 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5727 CFLAGS="$xorg_testset_save_CFLAGS" 5728 fi 5729 5730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5733 fi 5734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5736 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5737 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5738 $as_echo_n "(cached) " >&6 5739 else 5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5741 /* end confdefs.h. */ 5742 int i; 5743 _ACEOF 5744 if ac_fn_c_try_compile "$LINENO"; then : 5745 xorg_cv_cc_flag_unused_command_line_argument=yes 5746 else 5747 xorg_cv_cc_flag_unused_command_line_argument=no 5748 fi 5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5750 fi 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5752 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5754 CFLAGS="$xorg_testset_save_CFLAGS" 5755 fi 5756 5757 found="no" 5758 5759 if test $found = "no" ; then 5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5762 fi 5763 5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5766 fi 5767 5768 CFLAGS="$CFLAGS -Wstrict-prototypes" 5769 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5771 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5772 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5773 if eval \${$cacheid+:} false; then : 5774 $as_echo_n "(cached) " >&6 5775 else 5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777 /* end confdefs.h. */ 5778 int i; 5779 int 5780 main () 5781 { 5782 5783 ; 5784 return 0; 5785 } 5786 _ACEOF 5787 if ac_fn_c_try_link "$LINENO"; then : 5788 eval $cacheid=yes 5789 else 5790 eval $cacheid=no 5791 fi 5792 rm -f core conftest.err conftest.$ac_objext \ 5793 conftest$ac_exeext conftest.$ac_ext 5794 fi 5795 5796 5797 CFLAGS="$xorg_testset_save_CFLAGS" 5798 5799 eval supported=\$$cacheid 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5801 $as_echo "$supported" >&6; } 5802 if test "$supported" = "yes" ; then 5803 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5804 found="yes" 5805 fi 5806 fi 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 xorg_testset_save_CFLAGS="$CFLAGS" 5823 5824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5827 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5828 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5829 $as_echo_n "(cached) " >&6 5830 else 5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5832 /* end confdefs.h. */ 5833 int i; 5834 _ACEOF 5835 if ac_fn_c_try_compile "$LINENO"; then : 5836 xorg_cv_cc_flag_unknown_warning_option=yes 5837 else 5838 xorg_cv_cc_flag_unknown_warning_option=no 5839 fi 5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5841 fi 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5843 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5845 CFLAGS="$xorg_testset_save_CFLAGS" 5846 fi 5847 5848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5851 fi 5852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5854 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5855 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5856 $as_echo_n "(cached) " >&6 5857 else 5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5859 /* end confdefs.h. */ 5860 int i; 5861 _ACEOF 5862 if ac_fn_c_try_compile "$LINENO"; then : 5863 xorg_cv_cc_flag_unused_command_line_argument=yes 5864 else 5865 xorg_cv_cc_flag_unused_command_line_argument=no 5866 fi 5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5868 fi 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5870 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5872 CFLAGS="$xorg_testset_save_CFLAGS" 5873 fi 5874 5875 found="no" 5876 5877 if test $found = "no" ; then 5878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5880 fi 5881 5882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5884 fi 5885 5886 CFLAGS="$CFLAGS -Wmissing-prototypes" 5887 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5889 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5890 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5891 if eval \${$cacheid+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893 else 5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5895 /* end confdefs.h. */ 5896 int i; 5897 int 5898 main () 5899 { 5900 5901 ; 5902 return 0; 5903 } 5904 _ACEOF 5905 if ac_fn_c_try_link "$LINENO"; then : 5906 eval $cacheid=yes 5907 else 5908 eval $cacheid=no 5909 fi 5910 rm -f core conftest.err conftest.$ac_objext \ 5911 conftest$ac_exeext conftest.$ac_ext 5912 fi 5913 5914 5915 CFLAGS="$xorg_testset_save_CFLAGS" 5916 5917 eval supported=\$$cacheid 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5919 $as_echo "$supported" >&6; } 5920 if test "$supported" = "yes" ; then 5921 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5922 found="yes" 5923 fi 5924 fi 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 xorg_testset_save_CFLAGS="$CFLAGS" 5941 5942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5945 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5946 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5947 $as_echo_n "(cached) " >&6 5948 else 5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950 /* end confdefs.h. */ 5951 int i; 5952 _ACEOF 5953 if ac_fn_c_try_compile "$LINENO"; then : 5954 xorg_cv_cc_flag_unknown_warning_option=yes 5955 else 5956 xorg_cv_cc_flag_unknown_warning_option=no 5957 fi 5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5959 fi 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5961 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964 fi 5965 5966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5969 fi 5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5972 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5973 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5974 $as_echo_n "(cached) " >&6 5975 else 5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5977 /* end confdefs.h. */ 5978 int i; 5979 _ACEOF 5980 if ac_fn_c_try_compile "$LINENO"; then : 5981 xorg_cv_cc_flag_unused_command_line_argument=yes 5982 else 5983 xorg_cv_cc_flag_unused_command_line_argument=no 5984 fi 5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5986 fi 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5988 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5990 CFLAGS="$xorg_testset_save_CFLAGS" 5991 fi 5992 5993 found="no" 5994 5995 if test $found = "no" ; then 5996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5998 fi 5999 6000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6002 fi 6003 6004 CFLAGS="$CFLAGS -Wnested-externs" 6005 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6007 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 6008 cacheid=xorg_cv_cc_flag__Wnested_externs 6009 if eval \${$cacheid+:} false; then : 6010 $as_echo_n "(cached) " >&6 6011 else 6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013 /* end confdefs.h. */ 6014 int i; 6015 int 6016 main () 6017 { 6018 6019 ; 6020 return 0; 6021 } 6022 _ACEOF 6023 if ac_fn_c_try_link "$LINENO"; then : 6024 eval $cacheid=yes 6025 else 6026 eval $cacheid=no 6027 fi 6028 rm -f core conftest.err conftest.$ac_objext \ 6029 conftest$ac_exeext conftest.$ac_ext 6030 fi 6031 6032 6033 CFLAGS="$xorg_testset_save_CFLAGS" 6034 6035 eval supported=\$$cacheid 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6037 $as_echo "$supported" >&6; } 6038 if test "$supported" = "yes" ; then 6039 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6040 found="yes" 6041 fi 6042 fi 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 xorg_testset_save_CFLAGS="$CFLAGS" 6059 6060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6063 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6064 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6065 $as_echo_n "(cached) " >&6 6066 else 6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6068 /* end confdefs.h. */ 6069 int i; 6070 _ACEOF 6071 if ac_fn_c_try_compile "$LINENO"; then : 6072 xorg_cv_cc_flag_unknown_warning_option=yes 6073 else 6074 xorg_cv_cc_flag_unknown_warning_option=no 6075 fi 6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6077 fi 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6079 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6081 CFLAGS="$xorg_testset_save_CFLAGS" 6082 fi 6083 6084 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6087 fi 6088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6090 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6091 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093 else 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095 /* end confdefs.h. */ 6096 int i; 6097 _ACEOF 6098 if ac_fn_c_try_compile "$LINENO"; then : 6099 xorg_cv_cc_flag_unused_command_line_argument=yes 6100 else 6101 xorg_cv_cc_flag_unused_command_line_argument=no 6102 fi 6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104 fi 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6106 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6108 CFLAGS="$xorg_testset_save_CFLAGS" 6109 fi 6110 6111 found="no" 6112 6113 if test $found = "no" ; then 6114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6116 fi 6117 6118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6120 fi 6121 6122 CFLAGS="$CFLAGS -Wbad-function-cast" 6123 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6125 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 6126 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6127 if eval \${$cacheid+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129 else 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6131 /* end confdefs.h. */ 6132 int i; 6133 int 6134 main () 6135 { 6136 6137 ; 6138 return 0; 6139 } 6140 _ACEOF 6141 if ac_fn_c_try_link "$LINENO"; then : 6142 eval $cacheid=yes 6143 else 6144 eval $cacheid=no 6145 fi 6146 rm -f core conftest.err conftest.$ac_objext \ 6147 conftest$ac_exeext conftest.$ac_ext 6148 fi 6149 6150 6151 CFLAGS="$xorg_testset_save_CFLAGS" 6152 6153 eval supported=\$$cacheid 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6155 $as_echo "$supported" >&6; } 6156 if test "$supported" = "yes" ; then 6157 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6158 found="yes" 6159 fi 6160 fi 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 xorg_testset_save_CFLAGS="$CFLAGS" 6177 6178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6181 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6183 $as_echo_n "(cached) " >&6 6184 else 6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186 /* end confdefs.h. */ 6187 int i; 6188 _ACEOF 6189 if ac_fn_c_try_compile "$LINENO"; then : 6190 xorg_cv_cc_flag_unknown_warning_option=yes 6191 else 6192 xorg_cv_cc_flag_unknown_warning_option=no 6193 fi 6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6195 fi 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6197 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6199 CFLAGS="$xorg_testset_save_CFLAGS" 6200 fi 6201 6202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6205 fi 6206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6208 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6210 $as_echo_n "(cached) " >&6 6211 else 6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6213 /* end confdefs.h. */ 6214 int i; 6215 _ACEOF 6216 if ac_fn_c_try_compile "$LINENO"; then : 6217 xorg_cv_cc_flag_unused_command_line_argument=yes 6218 else 6219 xorg_cv_cc_flag_unused_command_line_argument=no 6220 fi 6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6222 fi 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6224 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6226 CFLAGS="$xorg_testset_save_CFLAGS" 6227 fi 6228 6229 found="no" 6230 6231 if test $found = "no" ; then 6232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6234 fi 6235 6236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6238 fi 6239 6240 CFLAGS="$CFLAGS -Wold-style-definition" 6241 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6243 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6244 cacheid=xorg_cv_cc_flag__Wold_style_definition 6245 if eval \${$cacheid+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247 else 6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6249 /* end confdefs.h. */ 6250 int i; 6251 int 6252 main () 6253 { 6254 6255 ; 6256 return 0; 6257 } 6258 _ACEOF 6259 if ac_fn_c_try_link "$LINENO"; then : 6260 eval $cacheid=yes 6261 else 6262 eval $cacheid=no 6263 fi 6264 rm -f core conftest.err conftest.$ac_objext \ 6265 conftest$ac_exeext conftest.$ac_ext 6266 fi 6267 6268 6269 CFLAGS="$xorg_testset_save_CFLAGS" 6270 6271 eval supported=\$$cacheid 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6273 $as_echo "$supported" >&6; } 6274 if test "$supported" = "yes" ; then 6275 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6276 found="yes" 6277 fi 6278 fi 6279 6280 if test $found = "no" ; then 6281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6283 fi 6284 6285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6287 fi 6288 6289 CFLAGS="$CFLAGS -fd" 6290 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6292 $as_echo_n "checking if $CC supports -fd... " >&6; } 6293 cacheid=xorg_cv_cc_flag__fd 6294 if eval \${$cacheid+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296 else 6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6298 /* end confdefs.h. */ 6299 int i; 6300 int 6301 main () 6302 { 6303 6304 ; 6305 return 0; 6306 } 6307 _ACEOF 6308 if ac_fn_c_try_link "$LINENO"; then : 6309 eval $cacheid=yes 6310 else 6311 eval $cacheid=no 6312 fi 6313 rm -f core conftest.err conftest.$ac_objext \ 6314 conftest$ac_exeext conftest.$ac_ext 6315 fi 6316 6317 6318 CFLAGS="$xorg_testset_save_CFLAGS" 6319 6320 eval supported=\$$cacheid 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6322 $as_echo "$supported" >&6; } 6323 if test "$supported" = "yes" ; then 6324 BASE_CFLAGS="$BASE_CFLAGS -fd" 6325 found="yes" 6326 fi 6327 fi 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 xorg_testset_save_CFLAGS="$CFLAGS" 6344 6345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6348 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6349 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6350 $as_echo_n "(cached) " >&6 6351 else 6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6353 /* end confdefs.h. */ 6354 int i; 6355 _ACEOF 6356 if ac_fn_c_try_compile "$LINENO"; then : 6357 xorg_cv_cc_flag_unknown_warning_option=yes 6358 else 6359 xorg_cv_cc_flag_unknown_warning_option=no 6360 fi 6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6362 fi 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6364 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6366 CFLAGS="$xorg_testset_save_CFLAGS" 6367 fi 6368 6369 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6372 fi 6373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6375 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6376 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6377 $as_echo_n "(cached) " >&6 6378 else 6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6380 /* end confdefs.h. */ 6381 int i; 6382 _ACEOF 6383 if ac_fn_c_try_compile "$LINENO"; then : 6384 xorg_cv_cc_flag_unused_command_line_argument=yes 6385 else 6386 xorg_cv_cc_flag_unused_command_line_argument=no 6387 fi 6388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6389 fi 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6391 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6393 CFLAGS="$xorg_testset_save_CFLAGS" 6394 fi 6395 6396 found="no" 6397 6398 if test $found = "no" ; then 6399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6401 fi 6402 6403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6405 fi 6406 6407 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6408 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6410 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6411 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6412 if eval \${$cacheid+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414 else 6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6416 /* end confdefs.h. */ 6417 int i; 6418 int 6419 main () 6420 { 6421 6422 ; 6423 return 0; 6424 } 6425 _ACEOF 6426 if ac_fn_c_try_link "$LINENO"; then : 6427 eval $cacheid=yes 6428 else 6429 eval $cacheid=no 6430 fi 6431 rm -f core conftest.err conftest.$ac_objext \ 6432 conftest$ac_exeext conftest.$ac_ext 6433 fi 6434 6435 6436 CFLAGS="$xorg_testset_save_CFLAGS" 6437 6438 eval supported=\$$cacheid 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6440 $as_echo "$supported" >&6; } 6441 if test "$supported" = "yes" ; then 6442 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6443 found="yes" 6444 fi 6445 fi 6446 6447 6448 6449 6450 6451 # This chunk adds additional warnings that could catch undesired effects. 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 xorg_testset_save_CFLAGS="$CFLAGS" 6466 6467 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6470 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6471 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6472 $as_echo_n "(cached) " >&6 6473 else 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475 /* end confdefs.h. */ 6476 int i; 6477 _ACEOF 6478 if ac_fn_c_try_compile "$LINENO"; then : 6479 xorg_cv_cc_flag_unknown_warning_option=yes 6480 else 6481 xorg_cv_cc_flag_unknown_warning_option=no 6482 fi 6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6484 fi 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6486 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6488 CFLAGS="$xorg_testset_save_CFLAGS" 6489 fi 6490 6491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6494 fi 6495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6497 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6498 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500 else 6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6502 /* end confdefs.h. */ 6503 int i; 6504 _ACEOF 6505 if ac_fn_c_try_compile "$LINENO"; then : 6506 xorg_cv_cc_flag_unused_command_line_argument=yes 6507 else 6508 xorg_cv_cc_flag_unused_command_line_argument=no 6509 fi 6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6511 fi 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6513 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6515 CFLAGS="$xorg_testset_save_CFLAGS" 6516 fi 6517 6518 found="no" 6519 6520 if test $found = "no" ; then 6521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6523 fi 6524 6525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6527 fi 6528 6529 CFLAGS="$CFLAGS -Wunused" 6530 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6532 $as_echo_n "checking if $CC supports -Wunused... " >&6; } 6533 cacheid=xorg_cv_cc_flag__Wunused 6534 if eval \${$cacheid+:} false; then : 6535 $as_echo_n "(cached) " >&6 6536 else 6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6538 /* end confdefs.h. */ 6539 int i; 6540 int 6541 main () 6542 { 6543 6544 ; 6545 return 0; 6546 } 6547 _ACEOF 6548 if ac_fn_c_try_link "$LINENO"; then : 6549 eval $cacheid=yes 6550 else 6551 eval $cacheid=no 6552 fi 6553 rm -f core conftest.err conftest.$ac_objext \ 6554 conftest$ac_exeext conftest.$ac_ext 6555 fi 6556 6557 6558 CFLAGS="$xorg_testset_save_CFLAGS" 6559 6560 eval supported=\$$cacheid 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6562 $as_echo "$supported" >&6; } 6563 if test "$supported" = "yes" ; then 6564 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6565 found="yes" 6566 fi 6567 fi 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 xorg_testset_save_CFLAGS="$CFLAGS" 6584 6585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6588 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6589 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6590 $as_echo_n "(cached) " >&6 6591 else 6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6593 /* end confdefs.h. */ 6594 int i; 6595 _ACEOF 6596 if ac_fn_c_try_compile "$LINENO"; then : 6597 xorg_cv_cc_flag_unknown_warning_option=yes 6598 else 6599 xorg_cv_cc_flag_unknown_warning_option=no 6600 fi 6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6602 fi 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6604 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6606 CFLAGS="$xorg_testset_save_CFLAGS" 6607 fi 6608 6609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6612 fi 6613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6615 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6616 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6617 $as_echo_n "(cached) " >&6 6618 else 6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6620 /* end confdefs.h. */ 6621 int i; 6622 _ACEOF 6623 if ac_fn_c_try_compile "$LINENO"; then : 6624 xorg_cv_cc_flag_unused_command_line_argument=yes 6625 else 6626 xorg_cv_cc_flag_unused_command_line_argument=no 6627 fi 6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6629 fi 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6631 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6633 CFLAGS="$xorg_testset_save_CFLAGS" 6634 fi 6635 6636 found="no" 6637 6638 if test $found = "no" ; then 6639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6641 fi 6642 6643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6645 fi 6646 6647 CFLAGS="$CFLAGS -Wuninitialized" 6648 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6650 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6651 cacheid=xorg_cv_cc_flag__Wuninitialized 6652 if eval \${$cacheid+:} false; then : 6653 $as_echo_n "(cached) " >&6 6654 else 6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6656 /* end confdefs.h. */ 6657 int i; 6658 int 6659 main () 6660 { 6661 6662 ; 6663 return 0; 6664 } 6665 _ACEOF 6666 if ac_fn_c_try_link "$LINENO"; then : 6667 eval $cacheid=yes 6668 else 6669 eval $cacheid=no 6670 fi 6671 rm -f core conftest.err conftest.$ac_objext \ 6672 conftest$ac_exeext conftest.$ac_ext 6673 fi 6674 6675 6676 CFLAGS="$xorg_testset_save_CFLAGS" 6677 6678 eval supported=\$$cacheid 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6680 $as_echo "$supported" >&6; } 6681 if test "$supported" = "yes" ; then 6682 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6683 found="yes" 6684 fi 6685 fi 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 xorg_testset_save_CFLAGS="$CFLAGS" 6702 6703 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6706 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6707 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6708 $as_echo_n "(cached) " >&6 6709 else 6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6711 /* end confdefs.h. */ 6712 int i; 6713 _ACEOF 6714 if ac_fn_c_try_compile "$LINENO"; then : 6715 xorg_cv_cc_flag_unknown_warning_option=yes 6716 else 6717 xorg_cv_cc_flag_unknown_warning_option=no 6718 fi 6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6720 fi 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6722 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6724 CFLAGS="$xorg_testset_save_CFLAGS" 6725 fi 6726 6727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6730 fi 6731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6733 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6734 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6735 $as_echo_n "(cached) " >&6 6736 else 6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6738 /* end confdefs.h. */ 6739 int i; 6740 _ACEOF 6741 if ac_fn_c_try_compile "$LINENO"; then : 6742 xorg_cv_cc_flag_unused_command_line_argument=yes 6743 else 6744 xorg_cv_cc_flag_unused_command_line_argument=no 6745 fi 6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6747 fi 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6749 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6751 CFLAGS="$xorg_testset_save_CFLAGS" 6752 fi 6753 6754 found="no" 6755 6756 if test $found = "no" ; then 6757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6759 fi 6760 6761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6763 fi 6764 6765 CFLAGS="$CFLAGS -Wshadow" 6766 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6768 $as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6769 cacheid=xorg_cv_cc_flag__Wshadow 6770 if eval \${$cacheid+:} false; then : 6771 $as_echo_n "(cached) " >&6 6772 else 6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6774 /* end confdefs.h. */ 6775 int i; 6776 int 6777 main () 6778 { 6779 6780 ; 6781 return 0; 6782 } 6783 _ACEOF 6784 if ac_fn_c_try_link "$LINENO"; then : 6785 eval $cacheid=yes 6786 else 6787 eval $cacheid=no 6788 fi 6789 rm -f core conftest.err conftest.$ac_objext \ 6790 conftest$ac_exeext conftest.$ac_ext 6791 fi 6792 6793 6794 CFLAGS="$xorg_testset_save_CFLAGS" 6795 6796 eval supported=\$$cacheid 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6798 $as_echo "$supported" >&6; } 6799 if test "$supported" = "yes" ; then 6800 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6801 found="yes" 6802 fi 6803 fi 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 xorg_testset_save_CFLAGS="$CFLAGS" 6820 6821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6824 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6825 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6826 $as_echo_n "(cached) " >&6 6827 else 6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6829 /* end confdefs.h. */ 6830 int i; 6831 _ACEOF 6832 if ac_fn_c_try_compile "$LINENO"; then : 6833 xorg_cv_cc_flag_unknown_warning_option=yes 6834 else 6835 xorg_cv_cc_flag_unknown_warning_option=no 6836 fi 6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6838 fi 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6840 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6842 CFLAGS="$xorg_testset_save_CFLAGS" 6843 fi 6844 6845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6848 fi 6849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6851 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6852 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6853 $as_echo_n "(cached) " >&6 6854 else 6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6856 /* end confdefs.h. */ 6857 int i; 6858 _ACEOF 6859 if ac_fn_c_try_compile "$LINENO"; then : 6860 xorg_cv_cc_flag_unused_command_line_argument=yes 6861 else 6862 xorg_cv_cc_flag_unused_command_line_argument=no 6863 fi 6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6865 fi 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6867 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6869 CFLAGS="$xorg_testset_save_CFLAGS" 6870 fi 6871 6872 found="no" 6873 6874 if test $found = "no" ; then 6875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6877 fi 6878 6879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6881 fi 6882 6883 CFLAGS="$CFLAGS -Wmissing-noreturn" 6884 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6886 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6887 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6888 if eval \${$cacheid+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890 else 6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6892 /* end confdefs.h. */ 6893 int i; 6894 int 6895 main () 6896 { 6897 6898 ; 6899 return 0; 6900 } 6901 _ACEOF 6902 if ac_fn_c_try_link "$LINENO"; then : 6903 eval $cacheid=yes 6904 else 6905 eval $cacheid=no 6906 fi 6907 rm -f core conftest.err conftest.$ac_objext \ 6908 conftest$ac_exeext conftest.$ac_ext 6909 fi 6910 6911 6912 CFLAGS="$xorg_testset_save_CFLAGS" 6913 6914 eval supported=\$$cacheid 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6916 $as_echo "$supported" >&6; } 6917 if test "$supported" = "yes" ; then 6918 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6919 found="yes" 6920 fi 6921 fi 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 xorg_testset_save_CFLAGS="$CFLAGS" 6938 6939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6942 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6943 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945 else 6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947 /* end confdefs.h. */ 6948 int i; 6949 _ACEOF 6950 if ac_fn_c_try_compile "$LINENO"; then : 6951 xorg_cv_cc_flag_unknown_warning_option=yes 6952 else 6953 xorg_cv_cc_flag_unknown_warning_option=no 6954 fi 6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6956 fi 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6958 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6960 CFLAGS="$xorg_testset_save_CFLAGS" 6961 fi 6962 6963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6966 fi 6967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6969 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6970 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972 else 6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974 /* end confdefs.h. */ 6975 int i; 6976 _ACEOF 6977 if ac_fn_c_try_compile "$LINENO"; then : 6978 xorg_cv_cc_flag_unused_command_line_argument=yes 6979 else 6980 xorg_cv_cc_flag_unused_command_line_argument=no 6981 fi 6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6983 fi 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6985 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6987 CFLAGS="$xorg_testset_save_CFLAGS" 6988 fi 6989 6990 found="no" 6991 6992 if test $found = "no" ; then 6993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6995 fi 6996 6997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6999 fi 7000 7001 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7002 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7004 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7005 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7006 if eval \${$cacheid+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008 else 7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7010 /* end confdefs.h. */ 7011 int i; 7012 int 7013 main () 7014 { 7015 7016 ; 7017 return 0; 7018 } 7019 _ACEOF 7020 if ac_fn_c_try_link "$LINENO"; then : 7021 eval $cacheid=yes 7022 else 7023 eval $cacheid=no 7024 fi 7025 rm -f core conftest.err conftest.$ac_objext \ 7026 conftest$ac_exeext conftest.$ac_ext 7027 fi 7028 7029 7030 CFLAGS="$xorg_testset_save_CFLAGS" 7031 7032 eval supported=\$$cacheid 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7034 $as_echo "$supported" >&6; } 7035 if test "$supported" = "yes" ; then 7036 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7037 found="yes" 7038 fi 7039 fi 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 xorg_testset_save_CFLAGS="$CFLAGS" 7056 7057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7062 $as_echo_n "(cached) " >&6 7063 else 7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7065 /* end confdefs.h. */ 7066 int i; 7067 _ACEOF 7068 if ac_fn_c_try_compile "$LINENO"; then : 7069 xorg_cv_cc_flag_unknown_warning_option=yes 7070 else 7071 xorg_cv_cc_flag_unknown_warning_option=no 7072 fi 7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7074 fi 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7078 CFLAGS="$xorg_testset_save_CFLAGS" 7079 fi 7080 7081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7084 fi 7085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090 else 7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7092 /* end confdefs.h. */ 7093 int i; 7094 _ACEOF 7095 if ac_fn_c_try_compile "$LINENO"; then : 7096 xorg_cv_cc_flag_unused_command_line_argument=yes 7097 else 7098 xorg_cv_cc_flag_unused_command_line_argument=no 7099 fi 7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7101 fi 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7105 CFLAGS="$xorg_testset_save_CFLAGS" 7106 fi 7107 7108 found="no" 7109 7110 if test $found = "no" ; then 7111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7113 fi 7114 7115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7117 fi 7118 7119 CFLAGS="$CFLAGS -Wredundant-decls" 7120 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7122 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 7123 cacheid=xorg_cv_cc_flag__Wredundant_decls 7124 if eval \${$cacheid+:} false; then : 7125 $as_echo_n "(cached) " >&6 7126 else 7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7128 /* end confdefs.h. */ 7129 int i; 7130 int 7131 main () 7132 { 7133 7134 ; 7135 return 0; 7136 } 7137 _ACEOF 7138 if ac_fn_c_try_link "$LINENO"; then : 7139 eval $cacheid=yes 7140 else 7141 eval $cacheid=no 7142 fi 7143 rm -f core conftest.err conftest.$ac_objext \ 7144 conftest$ac_exeext conftest.$ac_ext 7145 fi 7146 7147 7148 CFLAGS="$xorg_testset_save_CFLAGS" 7149 7150 eval supported=\$$cacheid 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7152 $as_echo "$supported" >&6; } 7153 if test "$supported" = "yes" ; then 7154 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7155 found="yes" 7156 fi 7157 fi 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 xorg_testset_save_CFLAGS="$CFLAGS" 7174 7175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7178 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7179 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7180 $as_echo_n "(cached) " >&6 7181 else 7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7183 /* end confdefs.h. */ 7184 int i; 7185 _ACEOF 7186 if ac_fn_c_try_compile "$LINENO"; then : 7187 xorg_cv_cc_flag_unknown_warning_option=yes 7188 else 7189 xorg_cv_cc_flag_unknown_warning_option=no 7190 fi 7191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7192 fi 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7194 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7196 CFLAGS="$xorg_testset_save_CFLAGS" 7197 fi 7198 7199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7202 fi 7203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7205 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7206 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7207 $as_echo_n "(cached) " >&6 7208 else 7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7210 /* end confdefs.h. */ 7211 int i; 7212 _ACEOF 7213 if ac_fn_c_try_compile "$LINENO"; then : 7214 xorg_cv_cc_flag_unused_command_line_argument=yes 7215 else 7216 xorg_cv_cc_flag_unused_command_line_argument=no 7217 fi 7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7219 fi 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7221 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7223 CFLAGS="$xorg_testset_save_CFLAGS" 7224 fi 7225 7226 found="no" 7227 7228 if test $found = "no" ; then 7229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7231 fi 7232 7233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7235 fi 7236 7237 CFLAGS="$CFLAGS -Wlogical-op" 7238 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7240 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 7241 cacheid=xorg_cv_cc_flag__Wlogical_op 7242 if eval \${$cacheid+:} false; then : 7243 $as_echo_n "(cached) " >&6 7244 else 7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246 /* end confdefs.h. */ 7247 int i; 7248 int 7249 main () 7250 { 7251 7252 ; 7253 return 0; 7254 } 7255 _ACEOF 7256 if ac_fn_c_try_link "$LINENO"; then : 7257 eval $cacheid=yes 7258 else 7259 eval $cacheid=no 7260 fi 7261 rm -f core conftest.err conftest.$ac_objext \ 7262 conftest$ac_exeext conftest.$ac_ext 7263 fi 7264 7265 7266 CFLAGS="$xorg_testset_save_CFLAGS" 7267 7268 eval supported=\$$cacheid 7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7270 $as_echo "$supported" >&6; } 7271 if test "$supported" = "yes" ; then 7272 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7273 found="yes" 7274 fi 7275 fi 7276 7277 7278 7279 # These are currently disabled because they are noisy. They will be enabled 7280 # in the future once the codebase is sufficiently modernized to silence 7281 # them. For now, I don't want them to drown out the other warnings. 7282 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7283 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7284 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7285 7286 # Turn some warnings into errors, so we don't accidently get successful builds 7287 # when there are problems that should be fixed. 7288 7289 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 xorg_testset_save_CFLAGS="$CFLAGS" 7304 7305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7308 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7309 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7310 $as_echo_n "(cached) " >&6 7311 else 7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7313 /* end confdefs.h. */ 7314 int i; 7315 _ACEOF 7316 if ac_fn_c_try_compile "$LINENO"; then : 7317 xorg_cv_cc_flag_unknown_warning_option=yes 7318 else 7319 xorg_cv_cc_flag_unknown_warning_option=no 7320 fi 7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7322 fi 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7324 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7326 CFLAGS="$xorg_testset_save_CFLAGS" 7327 fi 7328 7329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7332 fi 7333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7336 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7337 $as_echo_n "(cached) " >&6 7338 else 7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7340 /* end confdefs.h. */ 7341 int i; 7342 _ACEOF 7343 if ac_fn_c_try_compile "$LINENO"; then : 7344 xorg_cv_cc_flag_unused_command_line_argument=yes 7345 else 7346 xorg_cv_cc_flag_unused_command_line_argument=no 7347 fi 7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7349 fi 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7351 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7353 CFLAGS="$xorg_testset_save_CFLAGS" 7354 fi 7355 7356 found="no" 7357 7358 if test $found = "no" ; then 7359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7361 fi 7362 7363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7365 fi 7366 7367 CFLAGS="$CFLAGS -Werror=implicit" 7368 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7370 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7371 cacheid=xorg_cv_cc_flag__Werror_implicit 7372 if eval \${$cacheid+:} false; then : 7373 $as_echo_n "(cached) " >&6 7374 else 7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7376 /* end confdefs.h. */ 7377 int i; 7378 int 7379 main () 7380 { 7381 7382 ; 7383 return 0; 7384 } 7385 _ACEOF 7386 if ac_fn_c_try_link "$LINENO"; then : 7387 eval $cacheid=yes 7388 else 7389 eval $cacheid=no 7390 fi 7391 rm -f core conftest.err conftest.$ac_objext \ 7392 conftest$ac_exeext conftest.$ac_ext 7393 fi 7394 7395 7396 CFLAGS="$xorg_testset_save_CFLAGS" 7397 7398 eval supported=\$$cacheid 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7400 $as_echo "$supported" >&6; } 7401 if test "$supported" = "yes" ; then 7402 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7403 found="yes" 7404 fi 7405 fi 7406 7407 if test $found = "no" ; then 7408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7410 fi 7411 7412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7414 fi 7415 7416 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7417 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7419 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7420 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7421 if eval \${$cacheid+:} false; then : 7422 $as_echo_n "(cached) " >&6 7423 else 7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7425 /* end confdefs.h. */ 7426 int i; 7427 int 7428 main () 7429 { 7430 7431 ; 7432 return 0; 7433 } 7434 _ACEOF 7435 if ac_fn_c_try_link "$LINENO"; then : 7436 eval $cacheid=yes 7437 else 7438 eval $cacheid=no 7439 fi 7440 rm -f core conftest.err conftest.$ac_objext \ 7441 conftest$ac_exeext conftest.$ac_ext 7442 fi 7443 7444 7445 CFLAGS="$xorg_testset_save_CFLAGS" 7446 7447 eval supported=\$$cacheid 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7449 $as_echo "$supported" >&6; } 7450 if test "$supported" = "yes" ; then 7451 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7452 found="yes" 7453 fi 7454 fi 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 xorg_testset_save_CFLAGS="$CFLAGS" 7471 7472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7475 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7476 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478 else 7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7480 /* end confdefs.h. */ 7481 int i; 7482 _ACEOF 7483 if ac_fn_c_try_compile "$LINENO"; then : 7484 xorg_cv_cc_flag_unknown_warning_option=yes 7485 else 7486 xorg_cv_cc_flag_unknown_warning_option=no 7487 fi 7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7489 fi 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7491 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7493 CFLAGS="$xorg_testset_save_CFLAGS" 7494 fi 7495 7496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7499 fi 7500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7502 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7503 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7504 $as_echo_n "(cached) " >&6 7505 else 7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7507 /* end confdefs.h. */ 7508 int i; 7509 _ACEOF 7510 if ac_fn_c_try_compile "$LINENO"; then : 7511 xorg_cv_cc_flag_unused_command_line_argument=yes 7512 else 7513 xorg_cv_cc_flag_unused_command_line_argument=no 7514 fi 7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7516 fi 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7518 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7520 CFLAGS="$xorg_testset_save_CFLAGS" 7521 fi 7522 7523 found="no" 7524 7525 if test $found = "no" ; then 7526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7528 fi 7529 7530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7532 fi 7533 7534 CFLAGS="$CFLAGS -Werror=nonnull" 7535 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7537 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7538 cacheid=xorg_cv_cc_flag__Werror_nonnull 7539 if eval \${$cacheid+:} false; then : 7540 $as_echo_n "(cached) " >&6 7541 else 7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7543 /* end confdefs.h. */ 7544 int i; 7545 int 7546 main () 7547 { 7548 7549 ; 7550 return 0; 7551 } 7552 _ACEOF 7553 if ac_fn_c_try_link "$LINENO"; then : 7554 eval $cacheid=yes 7555 else 7556 eval $cacheid=no 7557 fi 7558 rm -f core conftest.err conftest.$ac_objext \ 7559 conftest$ac_exeext conftest.$ac_ext 7560 fi 7561 7562 7563 CFLAGS="$xorg_testset_save_CFLAGS" 7564 7565 eval supported=\$$cacheid 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7567 $as_echo "$supported" >&6; } 7568 if test "$supported" = "yes" ; then 7569 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7570 found="yes" 7571 fi 7572 fi 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 xorg_testset_save_CFLAGS="$CFLAGS" 7589 7590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7593 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7594 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7595 $as_echo_n "(cached) " >&6 7596 else 7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7598 /* end confdefs.h. */ 7599 int i; 7600 _ACEOF 7601 if ac_fn_c_try_compile "$LINENO"; then : 7602 xorg_cv_cc_flag_unknown_warning_option=yes 7603 else 7604 xorg_cv_cc_flag_unknown_warning_option=no 7605 fi 7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7607 fi 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7609 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7611 CFLAGS="$xorg_testset_save_CFLAGS" 7612 fi 7613 7614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7617 fi 7618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7620 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7621 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7622 $as_echo_n "(cached) " >&6 7623 else 7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7625 /* end confdefs.h. */ 7626 int i; 7627 _ACEOF 7628 if ac_fn_c_try_compile "$LINENO"; then : 7629 xorg_cv_cc_flag_unused_command_line_argument=yes 7630 else 7631 xorg_cv_cc_flag_unused_command_line_argument=no 7632 fi 7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7634 fi 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7636 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7638 CFLAGS="$xorg_testset_save_CFLAGS" 7639 fi 7640 7641 found="no" 7642 7643 if test $found = "no" ; then 7644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7646 fi 7647 7648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7650 fi 7651 7652 CFLAGS="$CFLAGS -Werror=init-self" 7653 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7655 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7656 cacheid=xorg_cv_cc_flag__Werror_init_self 7657 if eval \${$cacheid+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659 else 7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7661 /* end confdefs.h. */ 7662 int i; 7663 int 7664 main () 7665 { 7666 7667 ; 7668 return 0; 7669 } 7670 _ACEOF 7671 if ac_fn_c_try_link "$LINENO"; then : 7672 eval $cacheid=yes 7673 else 7674 eval $cacheid=no 7675 fi 7676 rm -f core conftest.err conftest.$ac_objext \ 7677 conftest$ac_exeext conftest.$ac_ext 7678 fi 7679 7680 7681 CFLAGS="$xorg_testset_save_CFLAGS" 7682 7683 eval supported=\$$cacheid 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7685 $as_echo "$supported" >&6; } 7686 if test "$supported" = "yes" ; then 7687 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7688 found="yes" 7689 fi 7690 fi 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 xorg_testset_save_CFLAGS="$CFLAGS" 7707 7708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7711 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7712 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7713 $as_echo_n "(cached) " >&6 7714 else 7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7716 /* end confdefs.h. */ 7717 int i; 7718 _ACEOF 7719 if ac_fn_c_try_compile "$LINENO"; then : 7720 xorg_cv_cc_flag_unknown_warning_option=yes 7721 else 7722 xorg_cv_cc_flag_unknown_warning_option=no 7723 fi 7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7725 fi 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7727 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7729 CFLAGS="$xorg_testset_save_CFLAGS" 7730 fi 7731 7732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7735 fi 7736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7738 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7739 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7740 $as_echo_n "(cached) " >&6 7741 else 7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7743 /* end confdefs.h. */ 7744 int i; 7745 _ACEOF 7746 if ac_fn_c_try_compile "$LINENO"; then : 7747 xorg_cv_cc_flag_unused_command_line_argument=yes 7748 else 7749 xorg_cv_cc_flag_unused_command_line_argument=no 7750 fi 7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7752 fi 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7754 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7756 CFLAGS="$xorg_testset_save_CFLAGS" 7757 fi 7758 7759 found="no" 7760 7761 if test $found = "no" ; then 7762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7764 fi 7765 7766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7768 fi 7769 7770 CFLAGS="$CFLAGS -Werror=main" 7771 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7773 $as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7774 cacheid=xorg_cv_cc_flag__Werror_main 7775 if eval \${$cacheid+:} false; then : 7776 $as_echo_n "(cached) " >&6 7777 else 7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779 /* end confdefs.h. */ 7780 int i; 7781 int 7782 main () 7783 { 7784 7785 ; 7786 return 0; 7787 } 7788 _ACEOF 7789 if ac_fn_c_try_link "$LINENO"; then : 7790 eval $cacheid=yes 7791 else 7792 eval $cacheid=no 7793 fi 7794 rm -f core conftest.err conftest.$ac_objext \ 7795 conftest$ac_exeext conftest.$ac_ext 7796 fi 7797 7798 7799 CFLAGS="$xorg_testset_save_CFLAGS" 7800 7801 eval supported=\$$cacheid 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7803 $as_echo "$supported" >&6; } 7804 if test "$supported" = "yes" ; then 7805 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7806 found="yes" 7807 fi 7808 fi 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 xorg_testset_save_CFLAGS="$CFLAGS" 7825 7826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7829 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7830 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832 else 7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834 /* end confdefs.h. */ 7835 int i; 7836 _ACEOF 7837 if ac_fn_c_try_compile "$LINENO"; then : 7838 xorg_cv_cc_flag_unknown_warning_option=yes 7839 else 7840 xorg_cv_cc_flag_unknown_warning_option=no 7841 fi 7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7843 fi 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7845 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7847 CFLAGS="$xorg_testset_save_CFLAGS" 7848 fi 7849 7850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7853 fi 7854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7856 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7857 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7858 $as_echo_n "(cached) " >&6 7859 else 7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7861 /* end confdefs.h. */ 7862 int i; 7863 _ACEOF 7864 if ac_fn_c_try_compile "$LINENO"; then : 7865 xorg_cv_cc_flag_unused_command_line_argument=yes 7866 else 7867 xorg_cv_cc_flag_unused_command_line_argument=no 7868 fi 7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7870 fi 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7872 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7874 CFLAGS="$xorg_testset_save_CFLAGS" 7875 fi 7876 7877 found="no" 7878 7879 if test $found = "no" ; then 7880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7882 fi 7883 7884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7886 fi 7887 7888 CFLAGS="$CFLAGS -Werror=missing-braces" 7889 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7891 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7892 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7893 if eval \${$cacheid+:} false; then : 7894 $as_echo_n "(cached) " >&6 7895 else 7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7897 /* end confdefs.h. */ 7898 int i; 7899 int 7900 main () 7901 { 7902 7903 ; 7904 return 0; 7905 } 7906 _ACEOF 7907 if ac_fn_c_try_link "$LINENO"; then : 7908 eval $cacheid=yes 7909 else 7910 eval $cacheid=no 7911 fi 7912 rm -f core conftest.err conftest.$ac_objext \ 7913 conftest$ac_exeext conftest.$ac_ext 7914 fi 7915 7916 7917 CFLAGS="$xorg_testset_save_CFLAGS" 7918 7919 eval supported=\$$cacheid 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7921 $as_echo "$supported" >&6; } 7922 if test "$supported" = "yes" ; then 7923 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7924 found="yes" 7925 fi 7926 fi 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 xorg_testset_save_CFLAGS="$CFLAGS" 7943 7944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7947 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7948 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7949 $as_echo_n "(cached) " >&6 7950 else 7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7952 /* end confdefs.h. */ 7953 int i; 7954 _ACEOF 7955 if ac_fn_c_try_compile "$LINENO"; then : 7956 xorg_cv_cc_flag_unknown_warning_option=yes 7957 else 7958 xorg_cv_cc_flag_unknown_warning_option=no 7959 fi 7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7961 fi 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7963 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7965 CFLAGS="$xorg_testset_save_CFLAGS" 7966 fi 7967 7968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7971 fi 7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7974 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7975 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7976 $as_echo_n "(cached) " >&6 7977 else 7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979 /* end confdefs.h. */ 7980 int i; 7981 _ACEOF 7982 if ac_fn_c_try_compile "$LINENO"; then : 7983 xorg_cv_cc_flag_unused_command_line_argument=yes 7984 else 7985 xorg_cv_cc_flag_unused_command_line_argument=no 7986 fi 7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7988 fi 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7990 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7992 CFLAGS="$xorg_testset_save_CFLAGS" 7993 fi 7994 7995 found="no" 7996 7997 if test $found = "no" ; then 7998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8000 fi 8001 8002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8004 fi 8005 8006 CFLAGS="$CFLAGS -Werror=sequence-point" 8007 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8009 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 8010 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8011 if eval \${$cacheid+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013 else 8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8015 /* end confdefs.h. */ 8016 int i; 8017 int 8018 main () 8019 { 8020 8021 ; 8022 return 0; 8023 } 8024 _ACEOF 8025 if ac_fn_c_try_link "$LINENO"; then : 8026 eval $cacheid=yes 8027 else 8028 eval $cacheid=no 8029 fi 8030 rm -f core conftest.err conftest.$ac_objext \ 8031 conftest$ac_exeext conftest.$ac_ext 8032 fi 8033 8034 8035 CFLAGS="$xorg_testset_save_CFLAGS" 8036 8037 eval supported=\$$cacheid 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8039 $as_echo "$supported" >&6; } 8040 if test "$supported" = "yes" ; then 8041 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8042 found="yes" 8043 fi 8044 fi 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 xorg_testset_save_CFLAGS="$CFLAGS" 8061 8062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8065 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8066 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068 else 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"; then : 8074 xorg_cv_cc_flag_unknown_warning_option=yes 8075 else 8076 xorg_cv_cc_flag_unknown_warning_option=no 8077 fi 8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8079 fi 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8081 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8083 CFLAGS="$xorg_testset_save_CFLAGS" 8084 fi 8085 8086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8089 fi 8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8092 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8093 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095 else 8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8097 /* end confdefs.h. */ 8098 int i; 8099 _ACEOF 8100 if ac_fn_c_try_compile "$LINENO"; then : 8101 xorg_cv_cc_flag_unused_command_line_argument=yes 8102 else 8103 xorg_cv_cc_flag_unused_command_line_argument=no 8104 fi 8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8106 fi 8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8108 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111 fi 8112 8113 found="no" 8114 8115 if test $found = "no" ; then 8116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8118 fi 8119 8120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8122 fi 8123 8124 CFLAGS="$CFLAGS -Werror=return-type" 8125 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8127 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 8128 cacheid=xorg_cv_cc_flag__Werror_return_type 8129 if eval \${$cacheid+:} false; then : 8130 $as_echo_n "(cached) " >&6 8131 else 8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8133 /* end confdefs.h. */ 8134 int i; 8135 int 8136 main () 8137 { 8138 8139 ; 8140 return 0; 8141 } 8142 _ACEOF 8143 if ac_fn_c_try_link "$LINENO"; then : 8144 eval $cacheid=yes 8145 else 8146 eval $cacheid=no 8147 fi 8148 rm -f core conftest.err conftest.$ac_objext \ 8149 conftest$ac_exeext conftest.$ac_ext 8150 fi 8151 8152 8153 CFLAGS="$xorg_testset_save_CFLAGS" 8154 8155 eval supported=\$$cacheid 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8157 $as_echo "$supported" >&6; } 8158 if test "$supported" = "yes" ; then 8159 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8160 found="yes" 8161 fi 8162 fi 8163 8164 if test $found = "no" ; then 8165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8167 fi 8168 8169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8171 fi 8172 8173 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8174 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8176 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8177 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8178 if eval \${$cacheid+:} false; then : 8179 $as_echo_n "(cached) " >&6 8180 else 8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8182 /* end confdefs.h. */ 8183 int i; 8184 int 8185 main () 8186 { 8187 8188 ; 8189 return 0; 8190 } 8191 _ACEOF 8192 if ac_fn_c_try_link "$LINENO"; then : 8193 eval $cacheid=yes 8194 else 8195 eval $cacheid=no 8196 fi 8197 rm -f core conftest.err conftest.$ac_objext \ 8198 conftest$ac_exeext conftest.$ac_ext 8199 fi 8200 8201 8202 CFLAGS="$xorg_testset_save_CFLAGS" 8203 8204 eval supported=\$$cacheid 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8206 $as_echo "$supported" >&6; } 8207 if test "$supported" = "yes" ; then 8208 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8209 found="yes" 8210 fi 8211 fi 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 xorg_testset_save_CFLAGS="$CFLAGS" 8228 8229 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8232 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8233 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235 else 8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8237 /* end confdefs.h. */ 8238 int i; 8239 _ACEOF 8240 if ac_fn_c_try_compile "$LINENO"; then : 8241 xorg_cv_cc_flag_unknown_warning_option=yes 8242 else 8243 xorg_cv_cc_flag_unknown_warning_option=no 8244 fi 8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8246 fi 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8248 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8250 CFLAGS="$xorg_testset_save_CFLAGS" 8251 fi 8252 8253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8256 fi 8257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8259 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8260 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8261 $as_echo_n "(cached) " >&6 8262 else 8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8264 /* end confdefs.h. */ 8265 int i; 8266 _ACEOF 8267 if ac_fn_c_try_compile "$LINENO"; then : 8268 xorg_cv_cc_flag_unused_command_line_argument=yes 8269 else 8270 xorg_cv_cc_flag_unused_command_line_argument=no 8271 fi 8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8273 fi 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8275 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8277 CFLAGS="$xorg_testset_save_CFLAGS" 8278 fi 8279 8280 found="no" 8281 8282 if test $found = "no" ; then 8283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8285 fi 8286 8287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8289 fi 8290 8291 CFLAGS="$CFLAGS -Werror=trigraphs" 8292 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8294 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8295 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8296 if eval \${$cacheid+:} false; then : 8297 $as_echo_n "(cached) " >&6 8298 else 8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8300 /* end confdefs.h. */ 8301 int i; 8302 int 8303 main () 8304 { 8305 8306 ; 8307 return 0; 8308 } 8309 _ACEOF 8310 if ac_fn_c_try_link "$LINENO"; then : 8311 eval $cacheid=yes 8312 else 8313 eval $cacheid=no 8314 fi 8315 rm -f core conftest.err conftest.$ac_objext \ 8316 conftest$ac_exeext conftest.$ac_ext 8317 fi 8318 8319 8320 CFLAGS="$xorg_testset_save_CFLAGS" 8321 8322 eval supported=\$$cacheid 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8324 $as_echo "$supported" >&6; } 8325 if test "$supported" = "yes" ; then 8326 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8327 found="yes" 8328 fi 8329 fi 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 xorg_testset_save_CFLAGS="$CFLAGS" 8346 8347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8350 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8351 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353 else 8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8355 /* end confdefs.h. */ 8356 int i; 8357 _ACEOF 8358 if ac_fn_c_try_compile "$LINENO"; then : 8359 xorg_cv_cc_flag_unknown_warning_option=yes 8360 else 8361 xorg_cv_cc_flag_unknown_warning_option=no 8362 fi 8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8364 fi 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8366 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8368 CFLAGS="$xorg_testset_save_CFLAGS" 8369 fi 8370 8371 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8374 fi 8375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8377 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8378 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8379 $as_echo_n "(cached) " >&6 8380 else 8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8382 /* end confdefs.h. */ 8383 int i; 8384 _ACEOF 8385 if ac_fn_c_try_compile "$LINENO"; then : 8386 xorg_cv_cc_flag_unused_command_line_argument=yes 8387 else 8388 xorg_cv_cc_flag_unused_command_line_argument=no 8389 fi 8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8391 fi 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8393 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8395 CFLAGS="$xorg_testset_save_CFLAGS" 8396 fi 8397 8398 found="no" 8399 8400 if test $found = "no" ; then 8401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8403 fi 8404 8405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8407 fi 8408 8409 CFLAGS="$CFLAGS -Werror=array-bounds" 8410 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8412 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8413 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8414 if eval \${$cacheid+:} false; then : 8415 $as_echo_n "(cached) " >&6 8416 else 8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8418 /* end confdefs.h. */ 8419 int i; 8420 int 8421 main () 8422 { 8423 8424 ; 8425 return 0; 8426 } 8427 _ACEOF 8428 if ac_fn_c_try_link "$LINENO"; then : 8429 eval $cacheid=yes 8430 else 8431 eval $cacheid=no 8432 fi 8433 rm -f core conftest.err conftest.$ac_objext \ 8434 conftest$ac_exeext conftest.$ac_ext 8435 fi 8436 8437 8438 CFLAGS="$xorg_testset_save_CFLAGS" 8439 8440 eval supported=\$$cacheid 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8442 $as_echo "$supported" >&6; } 8443 if test "$supported" = "yes" ; then 8444 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8445 found="yes" 8446 fi 8447 fi 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 xorg_testset_save_CFLAGS="$CFLAGS" 8464 8465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8468 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8469 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8470 $as_echo_n "(cached) " >&6 8471 else 8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473 /* end confdefs.h. */ 8474 int i; 8475 _ACEOF 8476 if ac_fn_c_try_compile "$LINENO"; then : 8477 xorg_cv_cc_flag_unknown_warning_option=yes 8478 else 8479 xorg_cv_cc_flag_unknown_warning_option=no 8480 fi 8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8482 fi 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8484 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8487 fi 8488 8489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8492 fi 8493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8495 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8496 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8497 $as_echo_n "(cached) " >&6 8498 else 8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8500 /* end confdefs.h. */ 8501 int i; 8502 _ACEOF 8503 if ac_fn_c_try_compile "$LINENO"; then : 8504 xorg_cv_cc_flag_unused_command_line_argument=yes 8505 else 8506 xorg_cv_cc_flag_unused_command_line_argument=no 8507 fi 8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8509 fi 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8511 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8513 CFLAGS="$xorg_testset_save_CFLAGS" 8514 fi 8515 8516 found="no" 8517 8518 if test $found = "no" ; then 8519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8521 fi 8522 8523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8525 fi 8526 8527 CFLAGS="$CFLAGS -Werror=write-strings" 8528 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8530 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8531 cacheid=xorg_cv_cc_flag__Werror_write_strings 8532 if eval \${$cacheid+:} false; then : 8533 $as_echo_n "(cached) " >&6 8534 else 8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8536 /* end confdefs.h. */ 8537 int i; 8538 int 8539 main () 8540 { 8541 8542 ; 8543 return 0; 8544 } 8545 _ACEOF 8546 if ac_fn_c_try_link "$LINENO"; then : 8547 eval $cacheid=yes 8548 else 8549 eval $cacheid=no 8550 fi 8551 rm -f core conftest.err conftest.$ac_objext \ 8552 conftest$ac_exeext conftest.$ac_ext 8553 fi 8554 8555 8556 CFLAGS="$xorg_testset_save_CFLAGS" 8557 8558 eval supported=\$$cacheid 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8560 $as_echo "$supported" >&6; } 8561 if test "$supported" = "yes" ; then 8562 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8563 found="yes" 8564 fi 8565 fi 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 xorg_testset_save_CFLAGS="$CFLAGS" 8582 8583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8586 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8587 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8588 $as_echo_n "(cached) " >&6 8589 else 8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8591 /* end confdefs.h. */ 8592 int i; 8593 _ACEOF 8594 if ac_fn_c_try_compile "$LINENO"; then : 8595 xorg_cv_cc_flag_unknown_warning_option=yes 8596 else 8597 xorg_cv_cc_flag_unknown_warning_option=no 8598 fi 8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8600 fi 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8602 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8604 CFLAGS="$xorg_testset_save_CFLAGS" 8605 fi 8606 8607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8610 fi 8611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8613 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8614 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8615 $as_echo_n "(cached) " >&6 8616 else 8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8618 /* end confdefs.h. */ 8619 int i; 8620 _ACEOF 8621 if ac_fn_c_try_compile "$LINENO"; then : 8622 xorg_cv_cc_flag_unused_command_line_argument=yes 8623 else 8624 xorg_cv_cc_flag_unused_command_line_argument=no 8625 fi 8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8627 fi 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8629 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8631 CFLAGS="$xorg_testset_save_CFLAGS" 8632 fi 8633 8634 found="no" 8635 8636 if test $found = "no" ; then 8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8639 fi 8640 8641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8643 fi 8644 8645 CFLAGS="$CFLAGS -Werror=address" 8646 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8648 $as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8649 cacheid=xorg_cv_cc_flag__Werror_address 8650 if eval \${$cacheid+:} false; then : 8651 $as_echo_n "(cached) " >&6 8652 else 8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8654 /* end confdefs.h. */ 8655 int i; 8656 int 8657 main () 8658 { 8659 8660 ; 8661 return 0; 8662 } 8663 _ACEOF 8664 if ac_fn_c_try_link "$LINENO"; then : 8665 eval $cacheid=yes 8666 else 8667 eval $cacheid=no 8668 fi 8669 rm -f core conftest.err conftest.$ac_objext \ 8670 conftest$ac_exeext conftest.$ac_ext 8671 fi 8672 8673 8674 CFLAGS="$xorg_testset_save_CFLAGS" 8675 8676 eval supported=\$$cacheid 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8678 $as_echo "$supported" >&6; } 8679 if test "$supported" = "yes" ; then 8680 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8681 found="yes" 8682 fi 8683 fi 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 xorg_testset_save_CFLAGS="$CFLAGS" 8700 8701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8704 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8705 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8706 $as_echo_n "(cached) " >&6 8707 else 8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8709 /* end confdefs.h. */ 8710 int i; 8711 _ACEOF 8712 if ac_fn_c_try_compile "$LINENO"; then : 8713 xorg_cv_cc_flag_unknown_warning_option=yes 8714 else 8715 xorg_cv_cc_flag_unknown_warning_option=no 8716 fi 8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8718 fi 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8720 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8722 CFLAGS="$xorg_testset_save_CFLAGS" 8723 fi 8724 8725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8728 fi 8729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8731 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8732 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8733 $as_echo_n "(cached) " >&6 8734 else 8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8736 /* end confdefs.h. */ 8737 int i; 8738 _ACEOF 8739 if ac_fn_c_try_compile "$LINENO"; then : 8740 xorg_cv_cc_flag_unused_command_line_argument=yes 8741 else 8742 xorg_cv_cc_flag_unused_command_line_argument=no 8743 fi 8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8745 fi 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8747 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8749 CFLAGS="$xorg_testset_save_CFLAGS" 8750 fi 8751 8752 found="no" 8753 8754 if test $found = "no" ; then 8755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8757 fi 8758 8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8761 fi 8762 8763 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8764 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8766 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8767 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8768 if eval \${$cacheid+:} false; then : 8769 $as_echo_n "(cached) " >&6 8770 else 8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8772 /* end confdefs.h. */ 8773 int i; 8774 int 8775 main () 8776 { 8777 8778 ; 8779 return 0; 8780 } 8781 _ACEOF 8782 if ac_fn_c_try_link "$LINENO"; then : 8783 eval $cacheid=yes 8784 else 8785 eval $cacheid=no 8786 fi 8787 rm -f core conftest.err conftest.$ac_objext \ 8788 conftest$ac_exeext conftest.$ac_ext 8789 fi 8790 8791 8792 CFLAGS="$xorg_testset_save_CFLAGS" 8793 8794 eval supported=\$$cacheid 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8796 $as_echo "$supported" >&6; } 8797 if test "$supported" = "yes" ; then 8798 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8799 found="yes" 8800 fi 8801 fi 8802 8803 if test $found = "no" ; then 8804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8806 fi 8807 8808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8810 fi 8811 8812 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8813 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8815 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8816 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8817 if eval \${$cacheid+:} false; then : 8818 $as_echo_n "(cached) " >&6 8819 else 8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8821 /* end confdefs.h. */ 8822 int i; 8823 int 8824 main () 8825 { 8826 8827 ; 8828 return 0; 8829 } 8830 _ACEOF 8831 if ac_fn_c_try_link "$LINENO"; then : 8832 eval $cacheid=yes 8833 else 8834 eval $cacheid=no 8835 fi 8836 rm -f core conftest.err conftest.$ac_objext \ 8837 conftest$ac_exeext conftest.$ac_ext 8838 fi 8839 8840 8841 CFLAGS="$xorg_testset_save_CFLAGS" 8842 8843 eval supported=\$$cacheid 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8845 $as_echo "$supported" >&6; } 8846 if test "$supported" = "yes" ; then 8847 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8848 found="yes" 8849 fi 8850 fi 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 xorg_testset_save_CFLAGS="$CFLAGS" 8867 8868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8871 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8872 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8873 $as_echo_n "(cached) " >&6 8874 else 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876 /* end confdefs.h. */ 8877 int i; 8878 _ACEOF 8879 if ac_fn_c_try_compile "$LINENO"; then : 8880 xorg_cv_cc_flag_unknown_warning_option=yes 8881 else 8882 xorg_cv_cc_flag_unknown_warning_option=no 8883 fi 8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8885 fi 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8887 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8889 CFLAGS="$xorg_testset_save_CFLAGS" 8890 fi 8891 8892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8895 fi 8896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8898 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8899 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8900 $as_echo_n "(cached) " >&6 8901 else 8902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8903 /* end confdefs.h. */ 8904 int i; 8905 _ACEOF 8906 if ac_fn_c_try_compile "$LINENO"; then : 8907 xorg_cv_cc_flag_unused_command_line_argument=yes 8908 else 8909 xorg_cv_cc_flag_unused_command_line_argument=no 8910 fi 8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8912 fi 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8914 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8916 CFLAGS="$xorg_testset_save_CFLAGS" 8917 fi 8918 8919 found="no" 8920 8921 if test $found = "no" ; then 8922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8924 fi 8925 8926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8928 fi 8929 8930 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8931 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8933 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8934 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8935 if eval \${$cacheid+:} false; then : 8936 $as_echo_n "(cached) " >&6 8937 else 8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8939 /* end confdefs.h. */ 8940 int i; 8941 int 8942 main () 8943 { 8944 8945 ; 8946 return 0; 8947 } 8948 _ACEOF 8949 if ac_fn_c_try_link "$LINENO"; then : 8950 eval $cacheid=yes 8951 else 8952 eval $cacheid=no 8953 fi 8954 rm -f core conftest.err conftest.$ac_objext \ 8955 conftest$ac_exeext conftest.$ac_ext 8956 fi 8957 8958 8959 CFLAGS="$xorg_testset_save_CFLAGS" 8960 8961 eval supported=\$$cacheid 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8963 $as_echo "$supported" >&6; } 8964 if test "$supported" = "yes" ; then 8965 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8966 found="yes" 8967 fi 8968 fi 8969 8970 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8971 else 8972 { $as_echo "$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 8973 $as_echo "$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;} 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 xorg_testset_save_CFLAGS="$CFLAGS" 8988 8989 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8992 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8993 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995 else 8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8997 /* end confdefs.h. */ 8998 int i; 8999 _ACEOF 9000 if ac_fn_c_try_compile "$LINENO"; then : 9001 xorg_cv_cc_flag_unknown_warning_option=yes 9002 else 9003 xorg_cv_cc_flag_unknown_warning_option=no 9004 fi 9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9006 fi 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9008 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9010 CFLAGS="$xorg_testset_save_CFLAGS" 9011 fi 9012 9013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9016 fi 9017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9019 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9020 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9021 $as_echo_n "(cached) " >&6 9022 else 9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9024 /* end confdefs.h. */ 9025 int i; 9026 _ACEOF 9027 if ac_fn_c_try_compile "$LINENO"; then : 9028 xorg_cv_cc_flag_unused_command_line_argument=yes 9029 else 9030 xorg_cv_cc_flag_unused_command_line_argument=no 9031 fi 9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9033 fi 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9035 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9037 CFLAGS="$xorg_testset_save_CFLAGS" 9038 fi 9039 9040 found="no" 9041 9042 if test $found = "no" ; then 9043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9045 fi 9046 9047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9049 fi 9050 9051 CFLAGS="$CFLAGS -Wimplicit" 9052 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9054 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 9055 cacheid=xorg_cv_cc_flag__Wimplicit 9056 if eval \${$cacheid+:} false; then : 9057 $as_echo_n "(cached) " >&6 9058 else 9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9060 /* end confdefs.h. */ 9061 int i; 9062 int 9063 main () 9064 { 9065 9066 ; 9067 return 0; 9068 } 9069 _ACEOF 9070 if ac_fn_c_try_link "$LINENO"; then : 9071 eval $cacheid=yes 9072 else 9073 eval $cacheid=no 9074 fi 9075 rm -f core conftest.err conftest.$ac_objext \ 9076 conftest$ac_exeext conftest.$ac_ext 9077 fi 9078 9079 9080 CFLAGS="$xorg_testset_save_CFLAGS" 9081 9082 eval supported=\$$cacheid 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9084 $as_echo "$supported" >&6; } 9085 if test "$supported" = "yes" ; then 9086 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9087 found="yes" 9088 fi 9089 fi 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 xorg_testset_save_CFLAGS="$CFLAGS" 9106 9107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9110 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9111 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9112 $as_echo_n "(cached) " >&6 9113 else 9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9115 /* end confdefs.h. */ 9116 int i; 9117 _ACEOF 9118 if ac_fn_c_try_compile "$LINENO"; then : 9119 xorg_cv_cc_flag_unknown_warning_option=yes 9120 else 9121 xorg_cv_cc_flag_unknown_warning_option=no 9122 fi 9123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9124 fi 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9126 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9128 CFLAGS="$xorg_testset_save_CFLAGS" 9129 fi 9130 9131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9134 fi 9135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9137 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9138 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9139 $as_echo_n "(cached) " >&6 9140 else 9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9142 /* end confdefs.h. */ 9143 int i; 9144 _ACEOF 9145 if ac_fn_c_try_compile "$LINENO"; then : 9146 xorg_cv_cc_flag_unused_command_line_argument=yes 9147 else 9148 xorg_cv_cc_flag_unused_command_line_argument=no 9149 fi 9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9151 fi 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9153 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9154 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9155 CFLAGS="$xorg_testset_save_CFLAGS" 9156 fi 9157 9158 found="no" 9159 9160 if test $found = "no" ; then 9161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9163 fi 9164 9165 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9167 fi 9168 9169 CFLAGS="$CFLAGS -Wnonnull" 9170 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9172 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 9173 cacheid=xorg_cv_cc_flag__Wnonnull 9174 if eval \${$cacheid+:} false; then : 9175 $as_echo_n "(cached) " >&6 9176 else 9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9178 /* end confdefs.h. */ 9179 int i; 9180 int 9181 main () 9182 { 9183 9184 ; 9185 return 0; 9186 } 9187 _ACEOF 9188 if ac_fn_c_try_link "$LINENO"; then : 9189 eval $cacheid=yes 9190 else 9191 eval $cacheid=no 9192 fi 9193 rm -f core conftest.err conftest.$ac_objext \ 9194 conftest$ac_exeext conftest.$ac_ext 9195 fi 9196 9197 9198 CFLAGS="$xorg_testset_save_CFLAGS" 9199 9200 eval supported=\$$cacheid 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9202 $as_echo "$supported" >&6; } 9203 if test "$supported" = "yes" ; then 9204 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9205 found="yes" 9206 fi 9207 fi 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 xorg_testset_save_CFLAGS="$CFLAGS" 9224 9225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9228 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9229 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9230 $as_echo_n "(cached) " >&6 9231 else 9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9233 /* end confdefs.h. */ 9234 int i; 9235 _ACEOF 9236 if ac_fn_c_try_compile "$LINENO"; then : 9237 xorg_cv_cc_flag_unknown_warning_option=yes 9238 else 9239 xorg_cv_cc_flag_unknown_warning_option=no 9240 fi 9241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9242 fi 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9244 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9246 CFLAGS="$xorg_testset_save_CFLAGS" 9247 fi 9248 9249 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9252 fi 9253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9255 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9256 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9257 $as_echo_n "(cached) " >&6 9258 else 9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9260 /* end confdefs.h. */ 9261 int i; 9262 _ACEOF 9263 if ac_fn_c_try_compile "$LINENO"; then : 9264 xorg_cv_cc_flag_unused_command_line_argument=yes 9265 else 9266 xorg_cv_cc_flag_unused_command_line_argument=no 9267 fi 9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9269 fi 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9271 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9273 CFLAGS="$xorg_testset_save_CFLAGS" 9274 fi 9275 9276 found="no" 9277 9278 if test $found = "no" ; then 9279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9281 fi 9282 9283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9285 fi 9286 9287 CFLAGS="$CFLAGS -Winit-self" 9288 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9290 $as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9291 cacheid=xorg_cv_cc_flag__Winit_self 9292 if eval \${$cacheid+:} false; then : 9293 $as_echo_n "(cached) " >&6 9294 else 9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9296 /* end confdefs.h. */ 9297 int i; 9298 int 9299 main () 9300 { 9301 9302 ; 9303 return 0; 9304 } 9305 _ACEOF 9306 if ac_fn_c_try_link "$LINENO"; then : 9307 eval $cacheid=yes 9308 else 9309 eval $cacheid=no 9310 fi 9311 rm -f core conftest.err conftest.$ac_objext \ 9312 conftest$ac_exeext conftest.$ac_ext 9313 fi 9314 9315 9316 CFLAGS="$xorg_testset_save_CFLAGS" 9317 9318 eval supported=\$$cacheid 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9320 $as_echo "$supported" >&6; } 9321 if test "$supported" = "yes" ; then 9322 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9323 found="yes" 9324 fi 9325 fi 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 xorg_testset_save_CFLAGS="$CFLAGS" 9342 9343 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9346 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9347 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9348 $as_echo_n "(cached) " >&6 9349 else 9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351 /* end confdefs.h. */ 9352 int i; 9353 _ACEOF 9354 if ac_fn_c_try_compile "$LINENO"; then : 9355 xorg_cv_cc_flag_unknown_warning_option=yes 9356 else 9357 xorg_cv_cc_flag_unknown_warning_option=no 9358 fi 9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9360 fi 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9362 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9364 CFLAGS="$xorg_testset_save_CFLAGS" 9365 fi 9366 9367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9370 fi 9371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9373 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9374 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9375 $as_echo_n "(cached) " >&6 9376 else 9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9378 /* end confdefs.h. */ 9379 int i; 9380 _ACEOF 9381 if ac_fn_c_try_compile "$LINENO"; then : 9382 xorg_cv_cc_flag_unused_command_line_argument=yes 9383 else 9384 xorg_cv_cc_flag_unused_command_line_argument=no 9385 fi 9386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9387 fi 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9389 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9391 CFLAGS="$xorg_testset_save_CFLAGS" 9392 fi 9393 9394 found="no" 9395 9396 if test $found = "no" ; then 9397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9399 fi 9400 9401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9403 fi 9404 9405 CFLAGS="$CFLAGS -Wmain" 9406 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9408 $as_echo_n "checking if $CC supports -Wmain... " >&6; } 9409 cacheid=xorg_cv_cc_flag__Wmain 9410 if eval \${$cacheid+:} false; then : 9411 $as_echo_n "(cached) " >&6 9412 else 9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9414 /* end confdefs.h. */ 9415 int i; 9416 int 9417 main () 9418 { 9419 9420 ; 9421 return 0; 9422 } 9423 _ACEOF 9424 if ac_fn_c_try_link "$LINENO"; then : 9425 eval $cacheid=yes 9426 else 9427 eval $cacheid=no 9428 fi 9429 rm -f core conftest.err conftest.$ac_objext \ 9430 conftest$ac_exeext conftest.$ac_ext 9431 fi 9432 9433 9434 CFLAGS="$xorg_testset_save_CFLAGS" 9435 9436 eval supported=\$$cacheid 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9438 $as_echo "$supported" >&6; } 9439 if test "$supported" = "yes" ; then 9440 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9441 found="yes" 9442 fi 9443 fi 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 xorg_testset_save_CFLAGS="$CFLAGS" 9460 9461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9464 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9465 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9466 $as_echo_n "(cached) " >&6 9467 else 9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9469 /* end confdefs.h. */ 9470 int i; 9471 _ACEOF 9472 if ac_fn_c_try_compile "$LINENO"; then : 9473 xorg_cv_cc_flag_unknown_warning_option=yes 9474 else 9475 xorg_cv_cc_flag_unknown_warning_option=no 9476 fi 9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9478 fi 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9480 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9482 CFLAGS="$xorg_testset_save_CFLAGS" 9483 fi 9484 9485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9488 fi 9489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9491 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9492 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9493 $as_echo_n "(cached) " >&6 9494 else 9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9496 /* end confdefs.h. */ 9497 int i; 9498 _ACEOF 9499 if ac_fn_c_try_compile "$LINENO"; then : 9500 xorg_cv_cc_flag_unused_command_line_argument=yes 9501 else 9502 xorg_cv_cc_flag_unused_command_line_argument=no 9503 fi 9504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9505 fi 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9507 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9509 CFLAGS="$xorg_testset_save_CFLAGS" 9510 fi 9511 9512 found="no" 9513 9514 if test $found = "no" ; then 9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9517 fi 9518 9519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9521 fi 9522 9523 CFLAGS="$CFLAGS -Wmissing-braces" 9524 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9526 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9527 cacheid=xorg_cv_cc_flag__Wmissing_braces 9528 if eval \${$cacheid+:} false; then : 9529 $as_echo_n "(cached) " >&6 9530 else 9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9532 /* end confdefs.h. */ 9533 int i; 9534 int 9535 main () 9536 { 9537 9538 ; 9539 return 0; 9540 } 9541 _ACEOF 9542 if ac_fn_c_try_link "$LINENO"; then : 9543 eval $cacheid=yes 9544 else 9545 eval $cacheid=no 9546 fi 9547 rm -f core conftest.err conftest.$ac_objext \ 9548 conftest$ac_exeext conftest.$ac_ext 9549 fi 9550 9551 9552 CFLAGS="$xorg_testset_save_CFLAGS" 9553 9554 eval supported=\$$cacheid 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9556 $as_echo "$supported" >&6; } 9557 if test "$supported" = "yes" ; then 9558 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9559 found="yes" 9560 fi 9561 fi 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 xorg_testset_save_CFLAGS="$CFLAGS" 9578 9579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9582 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9583 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9584 $as_echo_n "(cached) " >&6 9585 else 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9587 /* end confdefs.h. */ 9588 int i; 9589 _ACEOF 9590 if ac_fn_c_try_compile "$LINENO"; then : 9591 xorg_cv_cc_flag_unknown_warning_option=yes 9592 else 9593 xorg_cv_cc_flag_unknown_warning_option=no 9594 fi 9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9596 fi 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9598 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9600 CFLAGS="$xorg_testset_save_CFLAGS" 9601 fi 9602 9603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9606 fi 9607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9609 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9610 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9611 $as_echo_n "(cached) " >&6 9612 else 9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9614 /* end confdefs.h. */ 9615 int i; 9616 _ACEOF 9617 if ac_fn_c_try_compile "$LINENO"; then : 9618 xorg_cv_cc_flag_unused_command_line_argument=yes 9619 else 9620 xorg_cv_cc_flag_unused_command_line_argument=no 9621 fi 9622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9623 fi 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9625 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9627 CFLAGS="$xorg_testset_save_CFLAGS" 9628 fi 9629 9630 found="no" 9631 9632 if test $found = "no" ; then 9633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9635 fi 9636 9637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9639 fi 9640 9641 CFLAGS="$CFLAGS -Wsequence-point" 9642 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9644 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9645 cacheid=xorg_cv_cc_flag__Wsequence_point 9646 if eval \${$cacheid+:} false; then : 9647 $as_echo_n "(cached) " >&6 9648 else 9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9650 /* end confdefs.h. */ 9651 int i; 9652 int 9653 main () 9654 { 9655 9656 ; 9657 return 0; 9658 } 9659 _ACEOF 9660 if ac_fn_c_try_link "$LINENO"; then : 9661 eval $cacheid=yes 9662 else 9663 eval $cacheid=no 9664 fi 9665 rm -f core conftest.err conftest.$ac_objext \ 9666 conftest$ac_exeext conftest.$ac_ext 9667 fi 9668 9669 9670 CFLAGS="$xorg_testset_save_CFLAGS" 9671 9672 eval supported=\$$cacheid 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9674 $as_echo "$supported" >&6; } 9675 if test "$supported" = "yes" ; then 9676 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9677 found="yes" 9678 fi 9679 fi 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 xorg_testset_save_CFLAGS="$CFLAGS" 9696 9697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9700 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9701 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9702 $as_echo_n "(cached) " >&6 9703 else 9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9705 /* end confdefs.h. */ 9706 int i; 9707 _ACEOF 9708 if ac_fn_c_try_compile "$LINENO"; then : 9709 xorg_cv_cc_flag_unknown_warning_option=yes 9710 else 9711 xorg_cv_cc_flag_unknown_warning_option=no 9712 fi 9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9714 fi 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9716 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9718 CFLAGS="$xorg_testset_save_CFLAGS" 9719 fi 9720 9721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9724 fi 9725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9727 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9728 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9729 $as_echo_n "(cached) " >&6 9730 else 9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9732 /* end confdefs.h. */ 9733 int i; 9734 _ACEOF 9735 if ac_fn_c_try_compile "$LINENO"; then : 9736 xorg_cv_cc_flag_unused_command_line_argument=yes 9737 else 9738 xorg_cv_cc_flag_unused_command_line_argument=no 9739 fi 9740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9741 fi 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9743 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9745 CFLAGS="$xorg_testset_save_CFLAGS" 9746 fi 9747 9748 found="no" 9749 9750 if test $found = "no" ; then 9751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9753 fi 9754 9755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9757 fi 9758 9759 CFLAGS="$CFLAGS -Wreturn-type" 9760 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9762 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9763 cacheid=xorg_cv_cc_flag__Wreturn_type 9764 if eval \${$cacheid+:} false; then : 9765 $as_echo_n "(cached) " >&6 9766 else 9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9768 /* end confdefs.h. */ 9769 int i; 9770 int 9771 main () 9772 { 9773 9774 ; 9775 return 0; 9776 } 9777 _ACEOF 9778 if ac_fn_c_try_link "$LINENO"; then : 9779 eval $cacheid=yes 9780 else 9781 eval $cacheid=no 9782 fi 9783 rm -f core conftest.err conftest.$ac_objext \ 9784 conftest$ac_exeext conftest.$ac_ext 9785 fi 9786 9787 9788 CFLAGS="$xorg_testset_save_CFLAGS" 9789 9790 eval supported=\$$cacheid 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9792 $as_echo "$supported" >&6; } 9793 if test "$supported" = "yes" ; then 9794 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9795 found="yes" 9796 fi 9797 fi 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 xorg_testset_save_CFLAGS="$CFLAGS" 9814 9815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9818 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9819 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9820 $as_echo_n "(cached) " >&6 9821 else 9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823 /* end confdefs.h. */ 9824 int i; 9825 _ACEOF 9826 if ac_fn_c_try_compile "$LINENO"; then : 9827 xorg_cv_cc_flag_unknown_warning_option=yes 9828 else 9829 xorg_cv_cc_flag_unknown_warning_option=no 9830 fi 9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9832 fi 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9834 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9836 CFLAGS="$xorg_testset_save_CFLAGS" 9837 fi 9838 9839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9842 fi 9843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9845 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9846 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9847 $as_echo_n "(cached) " >&6 9848 else 9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9850 /* end confdefs.h. */ 9851 int i; 9852 _ACEOF 9853 if ac_fn_c_try_compile "$LINENO"; then : 9854 xorg_cv_cc_flag_unused_command_line_argument=yes 9855 else 9856 xorg_cv_cc_flag_unused_command_line_argument=no 9857 fi 9858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9859 fi 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9861 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9863 CFLAGS="$xorg_testset_save_CFLAGS" 9864 fi 9865 9866 found="no" 9867 9868 if test $found = "no" ; then 9869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9871 fi 9872 9873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9875 fi 9876 9877 CFLAGS="$CFLAGS -Wtrigraphs" 9878 9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9880 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9881 cacheid=xorg_cv_cc_flag__Wtrigraphs 9882 if eval \${$cacheid+:} false; then : 9883 $as_echo_n "(cached) " >&6 9884 else 9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9886 /* end confdefs.h. */ 9887 int i; 9888 int 9889 main () 9890 { 9891 9892 ; 9893 return 0; 9894 } 9895 _ACEOF 9896 if ac_fn_c_try_link "$LINENO"; then : 9897 eval $cacheid=yes 9898 else 9899 eval $cacheid=no 9900 fi 9901 rm -f core conftest.err conftest.$ac_objext \ 9902 conftest$ac_exeext conftest.$ac_ext 9903 fi 9904 9905 9906 CFLAGS="$xorg_testset_save_CFLAGS" 9907 9908 eval supported=\$$cacheid 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9910 $as_echo "$supported" >&6; } 9911 if test "$supported" = "yes" ; then 9912 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9913 found="yes" 9914 fi 9915 fi 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 xorg_testset_save_CFLAGS="$CFLAGS" 9932 9933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9938 $as_echo_n "(cached) " >&6 9939 else 9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9941 /* end confdefs.h. */ 9942 int i; 9943 _ACEOF 9944 if ac_fn_c_try_compile "$LINENO"; then : 9945 xorg_cv_cc_flag_unknown_warning_option=yes 9946 else 9947 xorg_cv_cc_flag_unknown_warning_option=no 9948 fi 9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9950 fi 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9954 CFLAGS="$xorg_testset_save_CFLAGS" 9955 fi 9956 9957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9960 fi 9961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9965 $as_echo_n "(cached) " >&6 9966 else 9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9968 /* end confdefs.h. */ 9969 int i; 9970 _ACEOF 9971 if ac_fn_c_try_compile "$LINENO"; then : 9972 xorg_cv_cc_flag_unused_command_line_argument=yes 9973 else 9974 xorg_cv_cc_flag_unused_command_line_argument=no 9975 fi 9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9977 fi 9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9981 CFLAGS="$xorg_testset_save_CFLAGS" 9982 fi 9983 9984 found="no" 9985 9986 if test $found = "no" ; then 9987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9989 fi 9990 9991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9993 fi 9994 9995 CFLAGS="$CFLAGS -Warray-bounds" 9996 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9998 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9999 cacheid=xorg_cv_cc_flag__Warray_bounds 10000 if eval \${$cacheid+:} false; then : 10001 $as_echo_n "(cached) " >&6 10002 else 10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10004 /* end confdefs.h. */ 10005 int i; 10006 int 10007 main () 10008 { 10009 10010 ; 10011 return 0; 10012 } 10013 _ACEOF 10014 if ac_fn_c_try_link "$LINENO"; then : 10015 eval $cacheid=yes 10016 else 10017 eval $cacheid=no 10018 fi 10019 rm -f core conftest.err conftest.$ac_objext \ 10020 conftest$ac_exeext conftest.$ac_ext 10021 fi 10022 10023 10024 CFLAGS="$xorg_testset_save_CFLAGS" 10025 10026 eval supported=\$$cacheid 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10028 $as_echo "$supported" >&6; } 10029 if test "$supported" = "yes" ; then 10030 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10031 found="yes" 10032 fi 10033 fi 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 xorg_testset_save_CFLAGS="$CFLAGS" 10050 10051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10056 $as_echo_n "(cached) " >&6 10057 else 10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10059 /* end confdefs.h. */ 10060 int i; 10061 _ACEOF 10062 if ac_fn_c_try_compile "$LINENO"; then : 10063 xorg_cv_cc_flag_unknown_warning_option=yes 10064 else 10065 xorg_cv_cc_flag_unknown_warning_option=no 10066 fi 10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10068 fi 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10072 CFLAGS="$xorg_testset_save_CFLAGS" 10073 fi 10074 10075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10078 fi 10079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10083 $as_echo_n "(cached) " >&6 10084 else 10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10086 /* end confdefs.h. */ 10087 int i; 10088 _ACEOF 10089 if ac_fn_c_try_compile "$LINENO"; then : 10090 xorg_cv_cc_flag_unused_command_line_argument=yes 10091 else 10092 xorg_cv_cc_flag_unused_command_line_argument=no 10093 fi 10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10095 fi 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10099 CFLAGS="$xorg_testset_save_CFLAGS" 10100 fi 10101 10102 found="no" 10103 10104 if test $found = "no" ; then 10105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10107 fi 10108 10109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10111 fi 10112 10113 CFLAGS="$CFLAGS -Wwrite-strings" 10114 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10116 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 10117 cacheid=xorg_cv_cc_flag__Wwrite_strings 10118 if eval \${$cacheid+:} false; then : 10119 $as_echo_n "(cached) " >&6 10120 else 10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10122 /* end confdefs.h. */ 10123 int i; 10124 int 10125 main () 10126 { 10127 10128 ; 10129 return 0; 10130 } 10131 _ACEOF 10132 if ac_fn_c_try_link "$LINENO"; then : 10133 eval $cacheid=yes 10134 else 10135 eval $cacheid=no 10136 fi 10137 rm -f core conftest.err conftest.$ac_objext \ 10138 conftest$ac_exeext conftest.$ac_ext 10139 fi 10140 10141 10142 CFLAGS="$xorg_testset_save_CFLAGS" 10143 10144 eval supported=\$$cacheid 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10146 $as_echo "$supported" >&6; } 10147 if test "$supported" = "yes" ; then 10148 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10149 found="yes" 10150 fi 10151 fi 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 xorg_testset_save_CFLAGS="$CFLAGS" 10168 10169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10174 $as_echo_n "(cached) " >&6 10175 else 10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10177 /* end confdefs.h. */ 10178 int i; 10179 _ACEOF 10180 if ac_fn_c_try_compile "$LINENO"; then : 10181 xorg_cv_cc_flag_unknown_warning_option=yes 10182 else 10183 xorg_cv_cc_flag_unknown_warning_option=no 10184 fi 10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10186 fi 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10190 CFLAGS="$xorg_testset_save_CFLAGS" 10191 fi 10192 10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10196 fi 10197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10201 $as_echo_n "(cached) " >&6 10202 else 10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10204 /* end confdefs.h. */ 10205 int i; 10206 _ACEOF 10207 if ac_fn_c_try_compile "$LINENO"; then : 10208 xorg_cv_cc_flag_unused_command_line_argument=yes 10209 else 10210 xorg_cv_cc_flag_unused_command_line_argument=no 10211 fi 10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10213 fi 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10217 CFLAGS="$xorg_testset_save_CFLAGS" 10218 fi 10219 10220 found="no" 10221 10222 if test $found = "no" ; then 10223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10225 fi 10226 10227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10229 fi 10230 10231 CFLAGS="$CFLAGS -Waddress" 10232 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10234 $as_echo_n "checking if $CC supports -Waddress... " >&6; } 10235 cacheid=xorg_cv_cc_flag__Waddress 10236 if eval \${$cacheid+:} false; then : 10237 $as_echo_n "(cached) " >&6 10238 else 10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10240 /* end confdefs.h. */ 10241 int i; 10242 int 10243 main () 10244 { 10245 10246 ; 10247 return 0; 10248 } 10249 _ACEOF 10250 if ac_fn_c_try_link "$LINENO"; then : 10251 eval $cacheid=yes 10252 else 10253 eval $cacheid=no 10254 fi 10255 rm -f core conftest.err conftest.$ac_objext \ 10256 conftest$ac_exeext conftest.$ac_ext 10257 fi 10258 10259 10260 CFLAGS="$xorg_testset_save_CFLAGS" 10261 10262 eval supported=\$$cacheid 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10264 $as_echo "$supported" >&6; } 10265 if test "$supported" = "yes" ; then 10266 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10267 found="yes" 10268 fi 10269 fi 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 xorg_testset_save_CFLAGS="$CFLAGS" 10286 10287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10292 $as_echo_n "(cached) " >&6 10293 else 10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10295 /* end confdefs.h. */ 10296 int i; 10297 _ACEOF 10298 if ac_fn_c_try_compile "$LINENO"; then : 10299 xorg_cv_cc_flag_unknown_warning_option=yes 10300 else 10301 xorg_cv_cc_flag_unknown_warning_option=no 10302 fi 10303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10304 fi 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10308 CFLAGS="$xorg_testset_save_CFLAGS" 10309 fi 10310 10311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10314 fi 10315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10319 $as_echo_n "(cached) " >&6 10320 else 10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10322 /* end confdefs.h. */ 10323 int i; 10324 _ACEOF 10325 if ac_fn_c_try_compile "$LINENO"; then : 10326 xorg_cv_cc_flag_unused_command_line_argument=yes 10327 else 10328 xorg_cv_cc_flag_unused_command_line_argument=no 10329 fi 10330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10331 fi 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10335 CFLAGS="$xorg_testset_save_CFLAGS" 10336 fi 10337 10338 found="no" 10339 10340 if test $found = "no" ; then 10341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10343 fi 10344 10345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10347 fi 10348 10349 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10350 10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10352 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10353 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10354 if eval \${$cacheid+:} false; then : 10355 $as_echo_n "(cached) " >&6 10356 else 10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10358 /* end confdefs.h. */ 10359 int i; 10360 int 10361 main () 10362 { 10363 10364 ; 10365 return 0; 10366 } 10367 _ACEOF 10368 if ac_fn_c_try_link "$LINENO"; then : 10369 eval $cacheid=yes 10370 else 10371 eval $cacheid=no 10372 fi 10373 rm -f core conftest.err conftest.$ac_objext \ 10374 conftest$ac_exeext conftest.$ac_ext 10375 fi 10376 10377 10378 CFLAGS="$xorg_testset_save_CFLAGS" 10379 10380 eval supported=\$$cacheid 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10382 $as_echo "$supported" >&6; } 10383 if test "$supported" = "yes" ; then 10384 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10385 found="yes" 10386 fi 10387 fi 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 xorg_testset_save_CFLAGS="$CFLAGS" 10404 10405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10408 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10409 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10410 $as_echo_n "(cached) " >&6 10411 else 10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10413 /* end confdefs.h. */ 10414 int i; 10415 _ACEOF 10416 if ac_fn_c_try_compile "$LINENO"; then : 10417 xorg_cv_cc_flag_unknown_warning_option=yes 10418 else 10419 xorg_cv_cc_flag_unknown_warning_option=no 10420 fi 10421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10422 fi 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10424 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10426 CFLAGS="$xorg_testset_save_CFLAGS" 10427 fi 10428 10429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10432 fi 10433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10435 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10436 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10437 $as_echo_n "(cached) " >&6 10438 else 10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440 /* end confdefs.h. */ 10441 int i; 10442 _ACEOF 10443 if ac_fn_c_try_compile "$LINENO"; then : 10444 xorg_cv_cc_flag_unused_command_line_argument=yes 10445 else 10446 xorg_cv_cc_flag_unused_command_line_argument=no 10447 fi 10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10449 fi 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10451 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10453 CFLAGS="$xorg_testset_save_CFLAGS" 10454 fi 10455 10456 found="no" 10457 10458 if test $found = "no" ; then 10459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10461 fi 10462 10463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10465 fi 10466 10467 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10468 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10470 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10471 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10472 if eval \${$cacheid+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474 else 10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10476 /* end confdefs.h. */ 10477 int i; 10478 int 10479 main () 10480 { 10481 10482 ; 10483 return 0; 10484 } 10485 _ACEOF 10486 if ac_fn_c_try_link "$LINENO"; then : 10487 eval $cacheid=yes 10488 else 10489 eval $cacheid=no 10490 fi 10491 rm -f core conftest.err conftest.$ac_objext \ 10492 conftest$ac_exeext conftest.$ac_ext 10493 fi 10494 10495 10496 CFLAGS="$xorg_testset_save_CFLAGS" 10497 10498 eval supported=\$$cacheid 10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10500 $as_echo "$supported" >&6; } 10501 if test "$supported" = "yes" ; then 10502 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10503 found="yes" 10504 fi 10505 fi 10506 10507 10508 fi 10509 10510 10511 10512 10513 10514 10515 10516 CWARNFLAGS="$BASE_CFLAGS" 10517 if test "x$GCC" = xyes ; then 10518 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10519 fi 10520 10521 10522 10523 10524 10525 10526 10527 10528 # Check whether --enable-strict-compilation was given. 10529 if test "${enable_strict_compilation+set}" = set; then : 10530 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10531 else 10532 STRICT_COMPILE=no 10533 fi 10534 10535 10536 10537 10538 10539 10540 STRICT_CFLAGS="" 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 xorg_testset_save_CFLAGS="$CFLAGS" 10555 10556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10559 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10560 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10561 $as_echo_n "(cached) " >&6 10562 else 10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10564 /* end confdefs.h. */ 10565 int i; 10566 _ACEOF 10567 if ac_fn_c_try_compile "$LINENO"; then : 10568 xorg_cv_cc_flag_unknown_warning_option=yes 10569 else 10570 xorg_cv_cc_flag_unknown_warning_option=no 10571 fi 10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10573 fi 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10575 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10577 CFLAGS="$xorg_testset_save_CFLAGS" 10578 fi 10579 10580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10583 fi 10584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10587 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10588 $as_echo_n "(cached) " >&6 10589 else 10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10591 /* end confdefs.h. */ 10592 int i; 10593 _ACEOF 10594 if ac_fn_c_try_compile "$LINENO"; then : 10595 xorg_cv_cc_flag_unused_command_line_argument=yes 10596 else 10597 xorg_cv_cc_flag_unused_command_line_argument=no 10598 fi 10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10600 fi 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10602 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10604 CFLAGS="$xorg_testset_save_CFLAGS" 10605 fi 10606 10607 found="no" 10608 10609 if test $found = "no" ; then 10610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10612 fi 10613 10614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10616 fi 10617 10618 CFLAGS="$CFLAGS -pedantic" 10619 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10621 $as_echo_n "checking if $CC supports -pedantic... " >&6; } 10622 cacheid=xorg_cv_cc_flag__pedantic 10623 if eval \${$cacheid+:} false; then : 10624 $as_echo_n "(cached) " >&6 10625 else 10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10627 /* end confdefs.h. */ 10628 int i; 10629 int 10630 main () 10631 { 10632 10633 ; 10634 return 0; 10635 } 10636 _ACEOF 10637 if ac_fn_c_try_link "$LINENO"; then : 10638 eval $cacheid=yes 10639 else 10640 eval $cacheid=no 10641 fi 10642 rm -f core conftest.err conftest.$ac_objext \ 10643 conftest$ac_exeext conftest.$ac_ext 10644 fi 10645 10646 10647 CFLAGS="$xorg_testset_save_CFLAGS" 10648 10649 eval supported=\$$cacheid 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10651 $as_echo "$supported" >&6; } 10652 if test "$supported" = "yes" ; then 10653 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10654 found="yes" 10655 fi 10656 fi 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 xorg_testset_save_CFLAGS="$CFLAGS" 10673 10674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10677 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10678 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10679 $as_echo_n "(cached) " >&6 10680 else 10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10682 /* end confdefs.h. */ 10683 int i; 10684 _ACEOF 10685 if ac_fn_c_try_compile "$LINENO"; then : 10686 xorg_cv_cc_flag_unknown_warning_option=yes 10687 else 10688 xorg_cv_cc_flag_unknown_warning_option=no 10689 fi 10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10691 fi 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10693 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10695 CFLAGS="$xorg_testset_save_CFLAGS" 10696 fi 10697 10698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10701 fi 10702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10704 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10705 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10706 $as_echo_n "(cached) " >&6 10707 else 10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10709 /* end confdefs.h. */ 10710 int i; 10711 _ACEOF 10712 if ac_fn_c_try_compile "$LINENO"; then : 10713 xorg_cv_cc_flag_unused_command_line_argument=yes 10714 else 10715 xorg_cv_cc_flag_unused_command_line_argument=no 10716 fi 10717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10718 fi 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10720 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10722 CFLAGS="$xorg_testset_save_CFLAGS" 10723 fi 10724 10725 found="no" 10726 10727 if test $found = "no" ; then 10728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10730 fi 10731 10732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10734 fi 10735 10736 CFLAGS="$CFLAGS -Werror" 10737 10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10739 $as_echo_n "checking if $CC supports -Werror... " >&6; } 10740 cacheid=xorg_cv_cc_flag__Werror 10741 if eval \${$cacheid+:} false; then : 10742 $as_echo_n "(cached) " >&6 10743 else 10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10745 /* end confdefs.h. */ 10746 int i; 10747 int 10748 main () 10749 { 10750 10751 ; 10752 return 0; 10753 } 10754 _ACEOF 10755 if ac_fn_c_try_link "$LINENO"; then : 10756 eval $cacheid=yes 10757 else 10758 eval $cacheid=no 10759 fi 10760 rm -f core conftest.err conftest.$ac_objext \ 10761 conftest$ac_exeext conftest.$ac_ext 10762 fi 10763 10764 10765 CFLAGS="$xorg_testset_save_CFLAGS" 10766 10767 eval supported=\$$cacheid 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10769 $as_echo "$supported" >&6; } 10770 if test "$supported" = "yes" ; then 10771 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10772 found="yes" 10773 fi 10774 fi 10775 10776 if test $found = "no" ; then 10777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10779 fi 10780 10781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10783 fi 10784 10785 CFLAGS="$CFLAGS -errwarn" 10786 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10788 $as_echo_n "checking if $CC supports -errwarn... " >&6; } 10789 cacheid=xorg_cv_cc_flag__errwarn 10790 if eval \${$cacheid+:} false; then : 10791 $as_echo_n "(cached) " >&6 10792 else 10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10794 /* end confdefs.h. */ 10795 int i; 10796 int 10797 main () 10798 { 10799 10800 ; 10801 return 0; 10802 } 10803 _ACEOF 10804 if ac_fn_c_try_link "$LINENO"; then : 10805 eval $cacheid=yes 10806 else 10807 eval $cacheid=no 10808 fi 10809 rm -f core conftest.err conftest.$ac_objext \ 10810 conftest$ac_exeext conftest.$ac_ext 10811 fi 10812 10813 10814 CFLAGS="$xorg_testset_save_CFLAGS" 10815 10816 eval supported=\$$cacheid 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10818 $as_echo "$supported" >&6; } 10819 if test "$supported" = "yes" ; then 10820 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10821 found="yes" 10822 fi 10823 fi 10824 10825 10826 10827 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10828 # activate it with -Werror, so we add it here explicitly. 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 xorg_testset_save_CFLAGS="$CFLAGS" 10843 10844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10849 $as_echo_n "(cached) " >&6 10850 else 10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852 /* end confdefs.h. */ 10853 int i; 10854 _ACEOF 10855 if ac_fn_c_try_compile "$LINENO"; then : 10856 xorg_cv_cc_flag_unknown_warning_option=yes 10857 else 10858 xorg_cv_cc_flag_unknown_warning_option=no 10859 fi 10860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10861 fi 10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10865 CFLAGS="$xorg_testset_save_CFLAGS" 10866 fi 10867 10868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10871 fi 10872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10876 $as_echo_n "(cached) " >&6 10877 else 10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10879 /* end confdefs.h. */ 10880 int i; 10881 _ACEOF 10882 if ac_fn_c_try_compile "$LINENO"; then : 10883 xorg_cv_cc_flag_unused_command_line_argument=yes 10884 else 10885 xorg_cv_cc_flag_unused_command_line_argument=no 10886 fi 10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10888 fi 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10892 CFLAGS="$xorg_testset_save_CFLAGS" 10893 fi 10894 10895 found="no" 10896 10897 if test $found = "no" ; then 10898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10900 fi 10901 10902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10904 fi 10905 10906 CFLAGS="$CFLAGS -Werror=attributes" 10907 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10909 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10910 cacheid=xorg_cv_cc_flag__Werror_attributes 10911 if eval \${$cacheid+:} false; then : 10912 $as_echo_n "(cached) " >&6 10913 else 10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10915 /* end confdefs.h. */ 10916 int i; 10917 int 10918 main () 10919 { 10920 10921 ; 10922 return 0; 10923 } 10924 _ACEOF 10925 if ac_fn_c_try_link "$LINENO"; then : 10926 eval $cacheid=yes 10927 else 10928 eval $cacheid=no 10929 fi 10930 rm -f core conftest.err conftest.$ac_objext \ 10931 conftest$ac_exeext conftest.$ac_ext 10932 fi 10933 10934 10935 CFLAGS="$xorg_testset_save_CFLAGS" 10936 10937 eval supported=\$$cacheid 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10939 $as_echo "$supported" >&6; } 10940 if test "$supported" = "yes" ; then 10941 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10942 found="yes" 10943 fi 10944 fi 10945 10946 10947 10948 if test "x$STRICT_COMPILE" = "xyes"; then 10949 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10950 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10951 fi 10952 10953 10954 10955 10956 10957 10958 cat >>confdefs.h <<_ACEOF 10959 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10960 _ACEOF 10961 10962 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10963 if test "x$PVM" = "x"; then 10964 PVM="0" 10965 fi 10966 10967 cat >>confdefs.h <<_ACEOF 10968 #define PACKAGE_VERSION_MINOR $PVM 10969 _ACEOF 10970 10971 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10972 if test "x$PVP" = "x"; then 10973 PVP="0" 10974 fi 10975 10976 cat >>confdefs.h <<_ACEOF 10977 #define PACKAGE_VERSION_PATCHLEVEL $PVP 10978 _ACEOF 10979 10980 10981 10982 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10983 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10984 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10985 touch \$(top_srcdir)/ChangeLog; \ 10986 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10987 10988 10989 10990 10991 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10992 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10993 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10994 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10995 touch \$(top_srcdir)/INSTALL; \ 10996 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10997 10998 10999 11000 11001 11002 11003 case $host_os in 11004 solaris*) 11005 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11006 # check for a man page file found in later versions that use 11007 # traditional section numbers instead 11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11009 $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 11010 if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 11011 $as_echo_n "(cached) " >&6 11012 else 11013 test "$cross_compiling" = yes && 11014 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11015 if test -r "/usr/share/man/man7/attributes.7"; then 11016 ac_cv_file__usr_share_man_man7_attributes_7=yes 11017 else 11018 ac_cv_file__usr_share_man_man7_attributes_7=no 11019 fi 11020 fi 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11022 $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11023 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 11024 SYSV_MAN_SECTIONS=false 11025 else 11026 SYSV_MAN_SECTIONS=true 11027 fi 11028 11029 ;; 11030 *) SYSV_MAN_SECTIONS=false ;; 11031 esac 11032 11033 if test x$APP_MAN_SUFFIX = x ; then 11034 APP_MAN_SUFFIX=1 11035 fi 11036 if test x$APP_MAN_DIR = x ; then 11037 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11038 fi 11039 11040 if test x$LIB_MAN_SUFFIX = x ; then 11041 LIB_MAN_SUFFIX=3 11042 fi 11043 if test x$LIB_MAN_DIR = x ; then 11044 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11045 fi 11046 11047 if test x$FILE_MAN_SUFFIX = x ; then 11048 case $SYSV_MAN_SECTIONS in 11049 true) FILE_MAN_SUFFIX=4 ;; 11050 *) FILE_MAN_SUFFIX=5 ;; 11051 esac 11052 fi 11053 if test x$FILE_MAN_DIR = x ; then 11054 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11055 fi 11056 11057 if test x$MISC_MAN_SUFFIX = x ; then 11058 case $SYSV_MAN_SECTIONS in 11059 true) MISC_MAN_SUFFIX=5 ;; 11060 *) MISC_MAN_SUFFIX=7 ;; 11061 esac 11062 fi 11063 if test x$MISC_MAN_DIR = x ; then 11064 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11065 fi 11066 11067 if test x$DRIVER_MAN_SUFFIX = x ; then 11068 case $SYSV_MAN_SECTIONS in 11069 true) DRIVER_MAN_SUFFIX=7 ;; 11070 *) DRIVER_MAN_SUFFIX=4 ;; 11071 esac 11072 fi 11073 if test x$DRIVER_MAN_DIR = x ; then 11074 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11075 fi 11076 11077 if test x$ADMIN_MAN_SUFFIX = x ; then 11078 case $SYSV_MAN_SECTIONS in 11079 true) ADMIN_MAN_SUFFIX=1m ;; 11080 *) ADMIN_MAN_SUFFIX=8 ;; 11081 esac 11082 fi 11083 if test x$ADMIN_MAN_DIR = x ; then 11084 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11085 fi 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 XORG_MAN_PAGE="X Version 11" 11102 11103 MAN_SUBSTS="\ 11104 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11105 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11106 -e 's|__xservername__|Xorg|g' \ 11107 -e 's|__xconfigfile__|xorg.conf|g' \ 11108 -e 's|__projectroot__|\$(prefix)|g' \ 11109 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11110 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11111 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11112 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11113 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11114 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11115 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11116 11117 11118 11119 # Check whether --enable-silent-rules was given. 11120 if test "${enable_silent_rules+set}" = set; then : 11121 enableval=$enable_silent_rules; 11122 fi 11123 11124 case $enable_silent_rules in # ((( 11125 yes) AM_DEFAULT_VERBOSITY=0;; 11126 no) AM_DEFAULT_VERBOSITY=1;; 11127 *) AM_DEFAULT_VERBOSITY=0;; 11128 esac 11129 am_make=${MAKE-make} 11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11131 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 11132 if ${am_cv_make_support_nested_variables+:} false; then : 11133 $as_echo_n "(cached) " >&6 11134 else 11135 if $as_echo 'TRUE=$(BAR$(V)) 11136 BAR0=false 11137 BAR1=true 11138 V=1 11139 am__doit: 11140 @$(TRUE) 11141 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11142 am_cv_make_support_nested_variables=yes 11143 else 11144 am_cv_make_support_nested_variables=no 11145 fi 11146 fi 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11148 $as_echo "$am_cv_make_support_nested_variables" >&6; } 11149 if test $am_cv_make_support_nested_variables = yes; then 11150 AM_V='$(V)' 11151 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11152 else 11153 AM_V=$AM_DEFAULT_VERBOSITY 11154 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11155 fi 11156 AM_BACKSLASH='\' 11157 11158 11159 11160 # And disable a few very noisy warnings 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 xorg_testset_save_CFLAGS="$CFLAGS" 11176 11177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11180 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11181 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11182 $as_echo_n "(cached) " >&6 11183 else 11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11185 /* end confdefs.h. */ 11186 int i; 11187 _ACEOF 11188 if ac_fn_c_try_compile "$LINENO"; then : 11189 xorg_cv_cc_flag_unknown_warning_option=yes 11190 else 11191 xorg_cv_cc_flag_unknown_warning_option=no 11192 fi 11193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11194 fi 11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11196 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11198 CFLAGS="$xorg_testset_save_CFLAGS" 11199 fi 11200 11201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11204 fi 11205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11207 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11208 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11209 $as_echo_n "(cached) " >&6 11210 else 11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11212 /* end confdefs.h. */ 11213 int i; 11214 _ACEOF 11215 if ac_fn_c_try_compile "$LINENO"; then : 11216 xorg_cv_cc_flag_unused_command_line_argument=yes 11217 else 11218 xorg_cv_cc_flag_unused_command_line_argument=no 11219 fi 11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11221 fi 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11223 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11225 CFLAGS="$xorg_testset_save_CFLAGS" 11226 fi 11227 11228 found="no" 11229 11230 if test $found = "no" ; then 11231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11233 fi 11234 11235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11237 fi 11238 11239 CFLAGS="$CFLAGS -Wno-cast-qual" 11240 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-cast-qual" >&5 11242 $as_echo_n "checking if $CC supports -Wno-cast-qual... " >&6; } 11243 cacheid=xorg_cv_cc_flag__Wno_cast_qual 11244 if eval \${$cacheid+:} false; then : 11245 $as_echo_n "(cached) " >&6 11246 else 11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11248 /* end confdefs.h. */ 11249 int i; 11250 int 11251 main () 11252 { 11253 11254 ; 11255 return 0; 11256 } 11257 _ACEOF 11258 if ac_fn_c_try_link "$LINENO"; then : 11259 eval $cacheid=yes 11260 else 11261 eval $cacheid=no 11262 fi 11263 rm -f core conftest.err conftest.$ac_objext \ 11264 conftest$ac_exeext conftest.$ac_ext 11265 fi 11266 11267 11268 CFLAGS="$xorg_testset_save_CFLAGS" 11269 11270 eval supported=\$$cacheid 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11272 $as_echo "$supported" >&6; } 11273 if test "$supported" = "yes" ; then 11274 NOWARNFLAGS="$NOWARNFLAGS -Wno-cast-qual" 11275 found="yes" 11276 fi 11277 fi 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 xorg_testset_save_CFLAGS="$CFLAGS" 11294 11295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11298 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11299 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11300 $as_echo_n "(cached) " >&6 11301 else 11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11303 /* end confdefs.h. */ 11304 int i; 11305 _ACEOF 11306 if ac_fn_c_try_compile "$LINENO"; then : 11307 xorg_cv_cc_flag_unknown_warning_option=yes 11308 else 11309 xorg_cv_cc_flag_unknown_warning_option=no 11310 fi 11311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11312 fi 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11314 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11316 CFLAGS="$xorg_testset_save_CFLAGS" 11317 fi 11318 11319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11322 fi 11323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11325 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11326 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11327 $as_echo_n "(cached) " >&6 11328 else 11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11330 /* end confdefs.h. */ 11331 int i; 11332 _ACEOF 11333 if ac_fn_c_try_compile "$LINENO"; then : 11334 xorg_cv_cc_flag_unused_command_line_argument=yes 11335 else 11336 xorg_cv_cc_flag_unused_command_line_argument=no 11337 fi 11338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11339 fi 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11341 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11343 CFLAGS="$xorg_testset_save_CFLAGS" 11344 fi 11345 11346 found="no" 11347 11348 if test $found = "no" ; then 11349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11351 fi 11352 11353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11355 fi 11356 11357 CFLAGS="$CFLAGS -Wno-redundant-decls" 11358 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-redundant-decls" >&5 11360 $as_echo_n "checking if $CC supports -Wno-redundant-decls... " >&6; } 11361 cacheid=xorg_cv_cc_flag__Wno_redundant_decls 11362 if eval \${$cacheid+:} false; then : 11363 $as_echo_n "(cached) " >&6 11364 else 11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11366 /* end confdefs.h. */ 11367 int i; 11368 int 11369 main () 11370 { 11371 11372 ; 11373 return 0; 11374 } 11375 _ACEOF 11376 if ac_fn_c_try_link "$LINENO"; then : 11377 eval $cacheid=yes 11378 else 11379 eval $cacheid=no 11380 fi 11381 rm -f core conftest.err conftest.$ac_objext \ 11382 conftest$ac_exeext conftest.$ac_ext 11383 fi 11384 11385 11386 CFLAGS="$xorg_testset_save_CFLAGS" 11387 11388 eval supported=\$$cacheid 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11390 $as_echo "$supported" >&6; } 11391 if test "$supported" = "yes" ; then 11392 NOWARNFLAGS="$NOWARNFLAGS -Wno-redundant-decls" 11393 found="yes" 11394 fi 11395 fi 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 xorg_testset_save_CFLAGS="$CFLAGS" 11412 11413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11416 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11417 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11418 $as_echo_n "(cached) " >&6 11419 else 11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11421 /* end confdefs.h. */ 11422 int i; 11423 _ACEOF 11424 if ac_fn_c_try_compile "$LINENO"; then : 11425 xorg_cv_cc_flag_unknown_warning_option=yes 11426 else 11427 xorg_cv_cc_flag_unknown_warning_option=no 11428 fi 11429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11430 fi 11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11432 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11434 CFLAGS="$xorg_testset_save_CFLAGS" 11435 fi 11436 11437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11440 fi 11441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11443 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11444 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11445 $as_echo_n "(cached) " >&6 11446 else 11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11448 /* end confdefs.h. */ 11449 int i; 11450 _ACEOF 11451 if ac_fn_c_try_compile "$LINENO"; then : 11452 xorg_cv_cc_flag_unused_command_line_argument=yes 11453 else 11454 xorg_cv_cc_flag_unused_command_line_argument=no 11455 fi 11456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11457 fi 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11459 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11461 CFLAGS="$xorg_testset_save_CFLAGS" 11462 fi 11463 11464 found="no" 11465 11466 if test $found = "no" ; then 11467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11469 fi 11470 11471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11473 fi 11474 11475 CFLAGS="$CFLAGS -Wno-maybe-uninitialized" 11476 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-maybe-uninitialized" >&5 11478 $as_echo_n "checking if $CC supports -Wno-maybe-uninitialized... " >&6; } 11479 cacheid=xorg_cv_cc_flag__Wno_maybe_uninitialized 11480 if eval \${$cacheid+:} false; then : 11481 $as_echo_n "(cached) " >&6 11482 else 11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11484 /* end confdefs.h. */ 11485 int i; 11486 int 11487 main () 11488 { 11489 11490 ; 11491 return 0; 11492 } 11493 _ACEOF 11494 if ac_fn_c_try_link "$LINENO"; then : 11495 eval $cacheid=yes 11496 else 11497 eval $cacheid=no 11498 fi 11499 rm -f core conftest.err conftest.$ac_objext \ 11500 conftest$ac_exeext conftest.$ac_ext 11501 fi 11502 11503 11504 CFLAGS="$xorg_testset_save_CFLAGS" 11505 11506 eval supported=\$$cacheid 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11508 $as_echo "$supported" >&6; } 11509 if test "$supported" = "yes" ; then 11510 NOWARNFLAGS="$NOWARNFLAGS -Wno-maybe-uninitialized" 11511 found="yes" 11512 fi 11513 fi 11514 11515 11516 11517 11518 11519 # Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules 11520 11521 11522 # Initialize libtool 11523 # Check whether --enable-static was given. 11524 if test "${enable_static+set}" = set; then : 11525 enableval=$enable_static; p=${PACKAGE-default} 11526 case $enableval in 11527 yes) enable_static=yes ;; 11528 no) enable_static=no ;; 11529 *) 11530 enable_static=no 11531 # Look at the argument we got. We use all the common list separators. 11532 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11533 for pkg in $enableval; do 11534 IFS=$lt_save_ifs 11535 if test "X$pkg" = "X$p"; then 11536 enable_static=yes 11537 fi 11538 done 11539 IFS=$lt_save_ifs 11540 ;; 11541 esac 11542 else 11543 enable_static=no 11544 fi 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 case `pwd` in 11555 *\ * | *\ *) 11556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11557 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11558 esac 11559 11560 11561 11562 macro_version='2.4.6' 11563 macro_revision='2.4.6' 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 ltmain=$ac_aux_dir/ltmain.sh 11578 11579 # Backslashify metacharacters that are still active within 11580 # double-quoted strings. 11581 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11582 11583 # Same as above, but do not quote variable references. 11584 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11585 11586 # Sed substitution to delay expansion of an escaped shell variable in a 11587 # double_quote_subst'ed string. 11588 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11589 11590 # Sed substitution to delay expansion of an escaped single quote. 11591 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11592 11593 # Sed substitution to avoid accidental globbing in evaled expressions 11594 no_glob_subst='s/\*/\\\*/g' 11595 11596 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11597 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11598 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11599 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11601 $as_echo_n "checking how to print strings... " >&6; } 11602 # Test print first, because it will be a builtin if present. 11603 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11604 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11605 ECHO='print -r --' 11606 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11607 ECHO='printf %s\n' 11608 else 11609 # Use this function as a fallback that always works. 11610 func_fallback_echo () 11611 { 11612 eval 'cat <<_LTECHO_EOF 11613 $1 11614 _LTECHO_EOF' 11615 } 11616 ECHO='func_fallback_echo' 11617 fi 11618 11619 # func_echo_all arg... 11620 # Invoke $ECHO with all args, space-separated. 11621 func_echo_all () 11622 { 11623 $ECHO "" 11624 } 11625 11626 case $ECHO in 11627 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11628 $as_echo "printf" >&6; } ;; 11629 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11630 $as_echo "print -r" >&6; } ;; 11631 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11632 $as_echo "cat" >&6; } ;; 11633 esac 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11649 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 11650 if ${ac_cv_path_SED+:} false; then : 11651 $as_echo_n "(cached) " >&6 11652 else 11653 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11654 for ac_i in 1 2 3 4 5 6 7; do 11655 ac_script="$ac_script$as_nl$ac_script" 11656 done 11657 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11658 { ac_script=; unset ac_script;} 11659 if test -z "$SED"; then 11660 ac_path_SED_found=false 11661 # Loop through the user's path and test for each of PROGNAME-LIST 11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11663 for as_dir in $PATH 11664 do 11665 IFS=$as_save_IFS 11666 test -z "$as_dir" && as_dir=. 11667 for ac_prog in sed gsed; do 11668 for ac_exec_ext in '' $ac_executable_extensions; do 11669 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11670 as_fn_executable_p "$ac_path_SED" || continue 11671 # Check for GNU ac_path_SED and select it if it is found. 11672 # Check for GNU $ac_path_SED 11673 case `"$ac_path_SED" --version 2>&1` in 11674 *GNU*) 11675 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11676 *) 11677 ac_count=0 11678 $as_echo_n 0123456789 >"conftest.in" 11679 while : 11680 do 11681 cat "conftest.in" "conftest.in" >"conftest.tmp" 11682 mv "conftest.tmp" "conftest.in" 11683 cp "conftest.in" "conftest.nl" 11684 $as_echo '' >> "conftest.nl" 11685 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11687 as_fn_arith $ac_count + 1 && ac_count=$as_val 11688 if test $ac_count -gt ${ac_path_SED_max-0}; then 11689 # Best one so far, save it but keep looking for a better one 11690 ac_cv_path_SED="$ac_path_SED" 11691 ac_path_SED_max=$ac_count 11692 fi 11693 # 10*(2^10) chars as input seems more than enough 11694 test $ac_count -gt 10 && break 11695 done 11696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11697 esac 11698 11699 $ac_path_SED_found && break 3 11700 done 11701 done 11702 done 11703 IFS=$as_save_IFS 11704 if test -z "$ac_cv_path_SED"; then 11705 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11706 fi 11707 else 11708 ac_cv_path_SED=$SED 11709 fi 11710 11711 fi 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11713 $as_echo "$ac_cv_path_SED" >&6; } 11714 SED="$ac_cv_path_SED" 11715 rm -f conftest.sed 11716 11717 test -z "$SED" && SED=sed 11718 Xsed="$SED -e 1s/^X//" 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11731 $as_echo_n "checking for fgrep... " >&6; } 11732 if ${ac_cv_path_FGREP+:} false; then : 11733 $as_echo_n "(cached) " >&6 11734 else 11735 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11736 then ac_cv_path_FGREP="$GREP -F" 11737 else 11738 if test -z "$FGREP"; then 11739 ac_path_FGREP_found=false 11740 # Loop through the user's path and test for each of PROGNAME-LIST 11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11743 do 11744 IFS=$as_save_IFS 11745 test -z "$as_dir" && as_dir=. 11746 for ac_prog in fgrep; do 11747 for ac_exec_ext in '' $ac_executable_extensions; do 11748 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11749 as_fn_executable_p "$ac_path_FGREP" || continue 11750 # Check for GNU ac_path_FGREP and select it if it is found. 11751 # Check for GNU $ac_path_FGREP 11752 case `"$ac_path_FGREP" --version 2>&1` in 11753 *GNU*) 11754 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11755 *) 11756 ac_count=0 11757 $as_echo_n 0123456789 >"conftest.in" 11758 while : 11759 do 11760 cat "conftest.in" "conftest.in" >"conftest.tmp" 11761 mv "conftest.tmp" "conftest.in" 11762 cp "conftest.in" "conftest.nl" 11763 $as_echo 'FGREP' >> "conftest.nl" 11764 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11766 as_fn_arith $ac_count + 1 && ac_count=$as_val 11767 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11768 # Best one so far, save it but keep looking for a better one 11769 ac_cv_path_FGREP="$ac_path_FGREP" 11770 ac_path_FGREP_max=$ac_count 11771 fi 11772 # 10*(2^10) chars as input seems more than enough 11773 test $ac_count -gt 10 && break 11774 done 11775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11776 esac 11777 11778 $ac_path_FGREP_found && break 3 11779 done 11780 done 11781 done 11782 IFS=$as_save_IFS 11783 if test -z "$ac_cv_path_FGREP"; then 11784 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11785 fi 11786 else 11787 ac_cv_path_FGREP=$FGREP 11788 fi 11789 11790 fi 11791 fi 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11793 $as_echo "$ac_cv_path_FGREP" >&6; } 11794 FGREP="$ac_cv_path_FGREP" 11795 11796 11797 test -z "$GREP" && GREP=grep 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 # Check whether --with-gnu-ld was given. 11818 if test "${with_gnu_ld+set}" = set; then : 11819 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11820 else 11821 with_gnu_ld=no 11822 fi 11823 11824 ac_prog=ld 11825 if test yes = "$GCC"; then 11826 # Check if gcc -print-prog-name=ld gives a path. 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11828 $as_echo_n "checking for ld used by $CC... " >&6; } 11829 case $host in 11830 *-*-mingw*) 11831 # gcc leaves a trailing carriage return, which upsets mingw 11832 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11833 *) 11834 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11835 esac 11836 case $ac_prog in 11837 # Accept absolute paths. 11838 [\\/]* | ?:[\\/]*) 11839 re_direlt='/[^/][^/]*/\.\./' 11840 # Canonicalize the pathname of ld 11841 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11842 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11843 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11844 done 11845 test -z "$LD" && LD=$ac_prog 11846 ;; 11847 "") 11848 # If it fails, then pretend we aren't using GCC. 11849 ac_prog=ld 11850 ;; 11851 *) 11852 # If it is relative, then search for the first ld in PATH. 11853 with_gnu_ld=unknown 11854 ;; 11855 esac 11856 elif test yes = "$with_gnu_ld"; then 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11858 $as_echo_n "checking for GNU ld... " >&6; } 11859 else 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11861 $as_echo_n "checking for non-GNU ld... " >&6; } 11862 fi 11863 if ${lt_cv_path_LD+:} false; then : 11864 $as_echo_n "(cached) " >&6 11865 else 11866 if test -z "$LD"; then 11867 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11868 for ac_dir in $PATH; do 11869 IFS=$lt_save_ifs 11870 test -z "$ac_dir" && ac_dir=. 11871 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11872 lt_cv_path_LD=$ac_dir/$ac_prog 11873 # Check to see if the program is GNU ld. I'd rather use --version, 11874 # but apparently some variants of GNU ld only accept -v. 11875 # Break only if it was the GNU/non-GNU ld that we prefer. 11876 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11877 *GNU* | *'with BFD'*) 11878 test no != "$with_gnu_ld" && break 11879 ;; 11880 *) 11881 test yes != "$with_gnu_ld" && break 11882 ;; 11883 esac 11884 fi 11885 done 11886 IFS=$lt_save_ifs 11887 else 11888 lt_cv_path_LD=$LD # Let the user override the test with a path. 11889 fi 11890 fi 11891 11892 LD=$lt_cv_path_LD 11893 if test -n "$LD"; then 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11895 $as_echo "$LD" >&6; } 11896 else 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11898 $as_echo "no" >&6; } 11899 fi 11900 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11902 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11903 if ${lt_cv_prog_gnu_ld+:} false; then : 11904 $as_echo_n "(cached) " >&6 11905 else 11906 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11907 case `$LD -v 2>&1 </dev/null` in 11908 *GNU* | *'with BFD'*) 11909 lt_cv_prog_gnu_ld=yes 11910 ;; 11911 *) 11912 lt_cv_prog_gnu_ld=no 11913 ;; 11914 esac 11915 fi 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11917 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11918 with_gnu_ld=$lt_cv_prog_gnu_ld 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11929 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11930 if ${lt_cv_path_NM+:} false; then : 11931 $as_echo_n "(cached) " >&6 11932 else 11933 if test -n "$NM"; then 11934 # Let the user override the test. 11935 lt_cv_path_NM=$NM 11936 else 11937 lt_nm_to_check=${ac_tool_prefix}nm 11938 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11939 lt_nm_to_check="$lt_nm_to_check nm" 11940 fi 11941 for lt_tmp_nm in $lt_nm_to_check; do 11942 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11943 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11944 IFS=$lt_save_ifs 11945 test -z "$ac_dir" && ac_dir=. 11946 tmp_nm=$ac_dir/$lt_tmp_nm 11947 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11948 # Check to see if the nm accepts a BSD-compat flag. 11949 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11950 # nm: unknown option "B" ignored 11951 # Tru64's nm complains that /dev/null is an invalid object file 11952 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11953 case $build_os in 11954 mingw*) lt_bad_file=conftest.nm/nofile ;; 11955 *) lt_bad_file=/dev/null ;; 11956 esac 11957 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11958 *$lt_bad_file* | *'Invalid file or object type'*) 11959 lt_cv_path_NM="$tmp_nm -B" 11960 break 2 11961 ;; 11962 *) 11963 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11964 */dev/null*) 11965 lt_cv_path_NM="$tmp_nm -p" 11966 break 2 11967 ;; 11968 *) 11969 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11970 continue # so that we can try to find one that supports BSD flags 11971 ;; 11972 esac 11973 ;; 11974 esac 11975 fi 11976 done 11977 IFS=$lt_save_ifs 11978 done 11979 : ${lt_cv_path_NM=no} 11980 fi 11981 fi 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11983 $as_echo "$lt_cv_path_NM" >&6; } 11984 if test no != "$lt_cv_path_NM"; then 11985 NM=$lt_cv_path_NM 11986 else 11987 # Didn't find any BSD compatible name lister, look for dumpbin. 11988 if test -n "$DUMPBIN"; then : 11989 # Let the user override the test. 11990 else 11991 if test -n "$ac_tool_prefix"; then 11992 for ac_prog in dumpbin "link -dump" 11993 do 11994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11997 $as_echo_n "checking for $ac_word... " >&6; } 11998 if ${ac_cv_prog_DUMPBIN+:} false; then : 11999 $as_echo_n "(cached) " >&6 12000 else 12001 if test -n "$DUMPBIN"; then 12002 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12003 else 12004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12005 for as_dir in $PATH 12006 do 12007 IFS=$as_save_IFS 12008 test -z "$as_dir" && as_dir=. 12009 for ac_exec_ext in '' $ac_executable_extensions; do 12010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12011 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12013 break 2 12014 fi 12015 done 12016 done 12017 IFS=$as_save_IFS 12018 12019 fi 12020 fi 12021 DUMPBIN=$ac_cv_prog_DUMPBIN 12022 if test -n "$DUMPBIN"; then 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12024 $as_echo "$DUMPBIN" >&6; } 12025 else 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12027 $as_echo "no" >&6; } 12028 fi 12029 12030 12031 test -n "$DUMPBIN" && break 12032 done 12033 fi 12034 if test -z "$DUMPBIN"; then 12035 ac_ct_DUMPBIN=$DUMPBIN 12036 for ac_prog in dumpbin "link -dump" 12037 do 12038 # Extract the first word of "$ac_prog", so it can be a program name with args. 12039 set dummy $ac_prog; ac_word=$2 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12041 $as_echo_n "checking for $ac_word... " >&6; } 12042 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044 else 12045 if test -n "$ac_ct_DUMPBIN"; then 12046 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12047 else 12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12049 for as_dir in $PATH 12050 do 12051 IFS=$as_save_IFS 12052 test -z "$as_dir" && as_dir=. 12053 for ac_exec_ext in '' $ac_executable_extensions; do 12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12055 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12057 break 2 12058 fi 12059 done 12060 done 12061 IFS=$as_save_IFS 12062 12063 fi 12064 fi 12065 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12066 if test -n "$ac_ct_DUMPBIN"; then 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12068 $as_echo "$ac_ct_DUMPBIN" >&6; } 12069 else 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12071 $as_echo "no" >&6; } 12072 fi 12073 12074 12075 test -n "$ac_ct_DUMPBIN" && break 12076 done 12077 12078 if test "x$ac_ct_DUMPBIN" = x; then 12079 DUMPBIN=":" 12080 else 12081 case $cross_compiling:$ac_tool_warned in 12082 yes:) 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12085 ac_tool_warned=yes ;; 12086 esac 12087 DUMPBIN=$ac_ct_DUMPBIN 12088 fi 12089 fi 12090 12091 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 12092 *COFF*) 12093 DUMPBIN="$DUMPBIN -symbols -headers" 12094 ;; 12095 *) 12096 DUMPBIN=: 12097 ;; 12098 esac 12099 fi 12100 12101 if test : != "$DUMPBIN"; then 12102 NM=$DUMPBIN 12103 fi 12104 fi 12105 test -z "$NM" && NM=nm 12106 12107 12108 12109 12110 12111 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12113 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 12114 if ${lt_cv_nm_interface+:} false; then : 12115 $as_echo_n "(cached) " >&6 12116 else 12117 lt_cv_nm_interface="BSD nm" 12118 echo "int some_variable = 0;" > conftest.$ac_ext 12119 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12120 (eval "$ac_compile" 2>conftest.err) 12121 cat conftest.err >&5 12122 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12123 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12124 cat conftest.err >&5 12125 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12126 cat conftest.out >&5 12127 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12128 lt_cv_nm_interface="MS dumpbin" 12129 fi 12130 rm -f conftest* 12131 fi 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12133 $as_echo "$lt_cv_nm_interface" >&6; } 12134 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12136 $as_echo_n "checking whether ln -s works... " >&6; } 12137 LN_S=$as_ln_s 12138 if test "$LN_S" = "ln -s"; then 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12140 $as_echo "yes" >&6; } 12141 else 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12143 $as_echo "no, using $LN_S" >&6; } 12144 fi 12145 12146 # find the maximum length of command line arguments 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12148 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 12149 if ${lt_cv_sys_max_cmd_len+:} false; then : 12150 $as_echo_n "(cached) " >&6 12151 else 12152 i=0 12153 teststring=ABCD 12154 12155 case $build_os in 12156 msdosdjgpp*) 12157 # On DJGPP, this test can blow up pretty badly due to problems in libc 12158 # (any single argument exceeding 2000 bytes causes a buffer overrun 12159 # during glob expansion). Even if it were fixed, the result of this 12160 # check would be larger than it should be. 12161 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12162 ;; 12163 12164 gnu*) 12165 # Under GNU Hurd, this test is not required because there is 12166 # no limit to the length of command line arguments. 12167 # Libtool will interpret -1 as no limit whatsoever 12168 lt_cv_sys_max_cmd_len=-1; 12169 ;; 12170 12171 cygwin* | mingw* | cegcc*) 12172 # On Win9x/ME, this test blows up -- it succeeds, but takes 12173 # about 5 minutes as the teststring grows exponentially. 12174 # Worse, since 9x/ME are not pre-emptively multitasking, 12175 # you end up with a "frozen" computer, even though with patience 12176 # the test eventually succeeds (with a max line length of 256k). 12177 # Instead, let's just punt: use the minimum linelength reported by 12178 # all of the supported platforms: 8192 (on NT/2K/XP). 12179 lt_cv_sys_max_cmd_len=8192; 12180 ;; 12181 12182 mint*) 12183 # On MiNT this can take a long time and run out of memory. 12184 lt_cv_sys_max_cmd_len=8192; 12185 ;; 12186 12187 amigaos*) 12188 # On AmigaOS with pdksh, this test takes hours, literally. 12189 # So we just punt and use a minimum line length of 8192. 12190 lt_cv_sys_max_cmd_len=8192; 12191 ;; 12192 12193 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 12194 # This has been around since 386BSD, at least. Likely further. 12195 if test -x /sbin/sysctl; then 12196 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12197 elif test -x /usr/sbin/sysctl; then 12198 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12199 else 12200 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12201 fi 12202 # And add a safety zone 12203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12205 ;; 12206 12207 interix*) 12208 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12209 lt_cv_sys_max_cmd_len=196608 12210 ;; 12211 12212 os2*) 12213 # The test takes a long time on OS/2. 12214 lt_cv_sys_max_cmd_len=8192 12215 ;; 12216 12217 osf*) 12218 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12219 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12220 # nice to cause kernel panics so lets avoid the loop below. 12221 # First set a reasonable default. 12222 lt_cv_sys_max_cmd_len=16384 12223 # 12224 if test -x /sbin/sysconfig; then 12225 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12226 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12227 esac 12228 fi 12229 ;; 12230 sco3.2v5*) 12231 lt_cv_sys_max_cmd_len=102400 12232 ;; 12233 sysv5* | sco5v6* | sysv4.2uw2*) 12234 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12235 if test -n "$kargmax"; then 12236 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 12237 else 12238 lt_cv_sys_max_cmd_len=32768 12239 fi 12240 ;; 12241 *) 12242 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12243 if test -n "$lt_cv_sys_max_cmd_len" && \ 12244 test undefined != "$lt_cv_sys_max_cmd_len"; then 12245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12247 else 12248 # Make teststring a little bigger before we do anything with it. 12249 # a 1K string should be a reasonable start. 12250 for i in 1 2 3 4 5 6 7 8; do 12251 teststring=$teststring$teststring 12252 done 12253 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12254 # If test is not a shell built-in, we'll probably end up computing a 12255 # maximum length that is only half of the actual maximum length, but 12256 # we can't tell. 12257 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12258 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12259 test 17 != "$i" # 1/2 MB should be enough 12260 do 12261 i=`expr $i + 1` 12262 teststring=$teststring$teststring 12263 done 12264 # Only check the string length outside the loop. 12265 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12266 teststring= 12267 # Add a significant safety factor because C++ compilers can tack on 12268 # massive amounts of additional arguments before passing them to the 12269 # linker. It appears as though 1/2 is a usable value. 12270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12271 fi 12272 ;; 12273 esac 12274 12275 fi 12276 12277 if test -n "$lt_cv_sys_max_cmd_len"; then 12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12279 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 12280 else 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 12282 $as_echo "none" >&6; } 12283 fi 12284 max_cmd_len=$lt_cv_sys_max_cmd_len 12285 12286 12287 12288 12289 12290 12291 : ${CP="cp -f"} 12292 : ${MV="mv -f"} 12293 : ${RM="rm -f"} 12294 12295 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12296 lt_unset=unset 12297 else 12298 lt_unset=false 12299 fi 12300 12301 12302 12303 12304 12305 # test EBCDIC or ASCII 12306 case `echo X|tr X '\101'` in 12307 A) # ASCII based system 12308 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12309 lt_SP2NL='tr \040 \012' 12310 lt_NL2SP='tr \015\012 \040\040' 12311 ;; 12312 *) # EBCDIC based system 12313 lt_SP2NL='tr \100 \n' 12314 lt_NL2SP='tr \r\n \100\100' 12315 ;; 12316 esac 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12327 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 12328 if ${lt_cv_to_host_file_cmd+:} false; then : 12329 $as_echo_n "(cached) " >&6 12330 else 12331 case $host in 12332 *-*-mingw* ) 12333 case $build in 12334 *-*-mingw* ) # actually msys 12335 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12336 ;; 12337 *-*-cygwin* ) 12338 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12339 ;; 12340 * ) # otherwise, assume *nix 12341 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12342 ;; 12343 esac 12344 ;; 12345 *-*-cygwin* ) 12346 case $build in 12347 *-*-mingw* ) # actually msys 12348 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12349 ;; 12350 *-*-cygwin* ) 12351 lt_cv_to_host_file_cmd=func_convert_file_noop 12352 ;; 12353 * ) # otherwise, assume *nix 12354 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12355 ;; 12356 esac 12357 ;; 12358 * ) # unhandled hosts (and "normal" native builds) 12359 lt_cv_to_host_file_cmd=func_convert_file_noop 12360 ;; 12361 esac 12362 12363 fi 12364 12365 to_host_file_cmd=$lt_cv_to_host_file_cmd 12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12367 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 12368 12369 12370 12371 12372 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12374 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 12375 if ${lt_cv_to_tool_file_cmd+:} false; then : 12376 $as_echo_n "(cached) " >&6 12377 else 12378 #assume ordinary cross tools, or native build. 12379 lt_cv_to_tool_file_cmd=func_convert_file_noop 12380 case $host in 12381 *-*-mingw* ) 12382 case $build in 12383 *-*-mingw* ) # actually msys 12384 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12385 ;; 12386 esac 12387 ;; 12388 esac 12389 12390 fi 12391 12392 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12394 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 12395 12396 12397 12398 12399 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12401 $as_echo_n "checking for $LD option to reload object files... " >&6; } 12402 if ${lt_cv_ld_reload_flag+:} false; then : 12403 $as_echo_n "(cached) " >&6 12404 else 12405 lt_cv_ld_reload_flag='-r' 12406 fi 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12408 $as_echo "$lt_cv_ld_reload_flag" >&6; } 12409 reload_flag=$lt_cv_ld_reload_flag 12410 case $reload_flag in 12411 "" | " "*) ;; 12412 *) reload_flag=" $reload_flag" ;; 12413 esac 12414 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12415 case $host_os in 12416 cygwin* | mingw* | pw32* | cegcc*) 12417 if test yes != "$GCC"; then 12418 reload_cmds=false 12419 fi 12420 ;; 12421 darwin*) 12422 if test yes = "$GCC"; then 12423 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12424 else 12425 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12426 fi 12427 ;; 12428 esac 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 if test -n "$ac_tool_prefix"; then 12439 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12440 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12442 $as_echo_n "checking for $ac_word... " >&6; } 12443 if ${ac_cv_prog_OBJDUMP+:} false; then : 12444 $as_echo_n "(cached) " >&6 12445 else 12446 if test -n "$OBJDUMP"; then 12447 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12448 else 12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12450 for as_dir in $PATH 12451 do 12452 IFS=$as_save_IFS 12453 test -z "$as_dir" && as_dir=. 12454 for ac_exec_ext in '' $ac_executable_extensions; do 12455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12456 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12458 break 2 12459 fi 12460 done 12461 done 12462 IFS=$as_save_IFS 12463 12464 fi 12465 fi 12466 OBJDUMP=$ac_cv_prog_OBJDUMP 12467 if test -n "$OBJDUMP"; then 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12469 $as_echo "$OBJDUMP" >&6; } 12470 else 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12472 $as_echo "no" >&6; } 12473 fi 12474 12475 12476 fi 12477 if test -z "$ac_cv_prog_OBJDUMP"; then 12478 ac_ct_OBJDUMP=$OBJDUMP 12479 # Extract the first word of "objdump", so it can be a program name with args. 12480 set dummy objdump; ac_word=$2 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12482 $as_echo_n "checking for $ac_word... " >&6; } 12483 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485 else 12486 if test -n "$ac_ct_OBJDUMP"; then 12487 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12488 else 12489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12490 for as_dir in $PATH 12491 do 12492 IFS=$as_save_IFS 12493 test -z "$as_dir" && as_dir=. 12494 for ac_exec_ext in '' $ac_executable_extensions; do 12495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12496 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12498 break 2 12499 fi 12500 done 12501 done 12502 IFS=$as_save_IFS 12503 12504 fi 12505 fi 12506 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12507 if test -n "$ac_ct_OBJDUMP"; then 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12509 $as_echo "$ac_ct_OBJDUMP" >&6; } 12510 else 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12512 $as_echo "no" >&6; } 12513 fi 12514 12515 if test "x$ac_ct_OBJDUMP" = x; then 12516 OBJDUMP="false" 12517 else 12518 case $cross_compiling:$ac_tool_warned in 12519 yes:) 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12522 ac_tool_warned=yes ;; 12523 esac 12524 OBJDUMP=$ac_ct_OBJDUMP 12525 fi 12526 else 12527 OBJDUMP="$ac_cv_prog_OBJDUMP" 12528 fi 12529 12530 test -z "$OBJDUMP" && OBJDUMP=objdump 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12541 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 12542 if ${lt_cv_deplibs_check_method+:} false; then : 12543 $as_echo_n "(cached) " >&6 12544 else 12545 lt_cv_file_magic_cmd='$MAGIC_CMD' 12546 lt_cv_file_magic_test_file= 12547 lt_cv_deplibs_check_method='unknown' 12548 # Need to set the preceding variable on all platforms that support 12549 # interlibrary dependencies. 12550 # 'none' -- dependencies not supported. 12551 # 'unknown' -- same as none, but documents that we really don't know. 12552 # 'pass_all' -- all dependencies passed with no checks. 12553 # 'test_compile' -- check by making test program. 12554 # 'file_magic [[regex]]' -- check by looking for files in library path 12555 # that responds to the $file_magic_cmd with a given extended regex. 12556 # If you have 'file' or equivalent on your system and you're not sure 12557 # whether 'pass_all' will *always* work, you probably want this one. 12558 12559 case $host_os in 12560 aix[4-9]*) 12561 lt_cv_deplibs_check_method=pass_all 12562 ;; 12563 12564 beos*) 12565 lt_cv_deplibs_check_method=pass_all 12566 ;; 12567 12568 bsdi[45]*) 12569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12570 lt_cv_file_magic_cmd='/usr/bin/file -L' 12571 lt_cv_file_magic_test_file=/shlib/libc.so 12572 ;; 12573 12574 cygwin*) 12575 # func_win32_libid is a shell function defined in ltmain.sh 12576 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12577 lt_cv_file_magic_cmd='func_win32_libid' 12578 ;; 12579 12580 mingw* | pw32*) 12581 # Base MSYS/MinGW do not provide the 'file' command needed by 12582 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12583 # unless we find 'file', for example because we are cross-compiling. 12584 if ( file / ) >/dev/null 2>&1; then 12585 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12586 lt_cv_file_magic_cmd='func_win32_libid' 12587 else 12588 # Keep this pattern in sync with the one in func_win32_libid. 12589 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12590 lt_cv_file_magic_cmd='$OBJDUMP -f' 12591 fi 12592 ;; 12593 12594 cegcc*) 12595 # use the weaker test based on 'objdump'. See mingw*. 12596 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12597 lt_cv_file_magic_cmd='$OBJDUMP -f' 12598 ;; 12599 12600 darwin* | rhapsody*) 12601 lt_cv_deplibs_check_method=pass_all 12602 ;; 12603 12604 freebsd* | dragonfly*) 12605 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12606 case $host_cpu in 12607 i*86 ) 12608 # Not sure whether the presence of OpenBSD here was a mistake. 12609 # Let's accept both of them until this is cleared up. 12610 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12611 lt_cv_file_magic_cmd=/usr/bin/file 12612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12613 ;; 12614 esac 12615 else 12616 lt_cv_deplibs_check_method=pass_all 12617 fi 12618 ;; 12619 12620 haiku*) 12621 lt_cv_deplibs_check_method=pass_all 12622 ;; 12623 12624 hpux10.20* | hpux11*) 12625 lt_cv_file_magic_cmd=/usr/bin/file 12626 case $host_cpu in 12627 ia64*) 12628 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12629 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12630 ;; 12631 hppa*64*) 12632 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]' 12633 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12634 ;; 12635 *) 12636 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12637 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12638 ;; 12639 esac 12640 ;; 12641 12642 interix[3-9]*) 12643 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12645 ;; 12646 12647 irix5* | irix6* | nonstopux*) 12648 case $LD in 12649 *-32|*"-32 ") libmagic=32-bit;; 12650 *-n32|*"-n32 ") libmagic=N32;; 12651 *-64|*"-64 ") libmagic=64-bit;; 12652 *) libmagic=never-match;; 12653 esac 12654 lt_cv_deplibs_check_method=pass_all 12655 ;; 12656 12657 # This must be glibc/ELF. 12658 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12659 lt_cv_deplibs_check_method=pass_all 12660 ;; 12661 12662 netbsd*) 12663 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12665 else 12666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12667 fi 12668 ;; 12669 12670 newos6*) 12671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12672 lt_cv_file_magic_cmd=/usr/bin/file 12673 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12674 ;; 12675 12676 *nto* | *qnx*) 12677 lt_cv_deplibs_check_method=pass_all 12678 ;; 12679 12680 openbsd* | bitrig*) 12681 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12683 else 12684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12685 fi 12686 ;; 12687 12688 osf3* | osf4* | osf5*) 12689 lt_cv_deplibs_check_method=pass_all 12690 ;; 12691 12692 rdos*) 12693 lt_cv_deplibs_check_method=pass_all 12694 ;; 12695 12696 solaris*) 12697 lt_cv_deplibs_check_method=pass_all 12698 ;; 12699 12700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12701 lt_cv_deplibs_check_method=pass_all 12702 ;; 12703 12704 sysv4 | sysv4.3*) 12705 case $host_vendor in 12706 motorola) 12707 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]' 12708 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12709 ;; 12710 ncr) 12711 lt_cv_deplibs_check_method=pass_all 12712 ;; 12713 sequent) 12714 lt_cv_file_magic_cmd='/bin/file' 12715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12716 ;; 12717 sni) 12718 lt_cv_file_magic_cmd='/bin/file' 12719 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12720 lt_cv_file_magic_test_file=/lib/libc.so 12721 ;; 12722 siemens) 12723 lt_cv_deplibs_check_method=pass_all 12724 ;; 12725 pc) 12726 lt_cv_deplibs_check_method=pass_all 12727 ;; 12728 esac 12729 ;; 12730 12731 tpf*) 12732 lt_cv_deplibs_check_method=pass_all 12733 ;; 12734 os2*) 12735 lt_cv_deplibs_check_method=pass_all 12736 ;; 12737 esac 12738 12739 fi 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12741 $as_echo "$lt_cv_deplibs_check_method" >&6; } 12742 12743 file_magic_glob= 12744 want_nocaseglob=no 12745 if test "$build" = "$host"; then 12746 case $host_os in 12747 mingw* | pw32*) 12748 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12749 want_nocaseglob=yes 12750 else 12751 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12752 fi 12753 ;; 12754 esac 12755 fi 12756 12757 file_magic_cmd=$lt_cv_file_magic_cmd 12758 deplibs_check_method=$lt_cv_deplibs_check_method 12759 test -z "$deplibs_check_method" && deplibs_check_method=unknown 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 if test -n "$ac_tool_prefix"; then 12783 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12784 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12786 $as_echo_n "checking for $ac_word... " >&6; } 12787 if ${ac_cv_prog_DLLTOOL+:} false; then : 12788 $as_echo_n "(cached) " >&6 12789 else 12790 if test -n "$DLLTOOL"; then 12791 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12792 else 12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12794 for as_dir in $PATH 12795 do 12796 IFS=$as_save_IFS 12797 test -z "$as_dir" && as_dir=. 12798 for ac_exec_ext in '' $ac_executable_extensions; do 12799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12800 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12802 break 2 12803 fi 12804 done 12805 done 12806 IFS=$as_save_IFS 12807 12808 fi 12809 fi 12810 DLLTOOL=$ac_cv_prog_DLLTOOL 12811 if test -n "$DLLTOOL"; then 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12813 $as_echo "$DLLTOOL" >&6; } 12814 else 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12816 $as_echo "no" >&6; } 12817 fi 12818 12819 12820 fi 12821 if test -z "$ac_cv_prog_DLLTOOL"; then 12822 ac_ct_DLLTOOL=$DLLTOOL 12823 # Extract the first word of "dlltool", so it can be a program name with args. 12824 set dummy dlltool; ac_word=$2 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12826 $as_echo_n "checking for $ac_word... " >&6; } 12827 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12828 $as_echo_n "(cached) " >&6 12829 else 12830 if test -n "$ac_ct_DLLTOOL"; then 12831 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12832 else 12833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12834 for as_dir in $PATH 12835 do 12836 IFS=$as_save_IFS 12837 test -z "$as_dir" && as_dir=. 12838 for ac_exec_ext in '' $ac_executable_extensions; do 12839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12840 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12842 break 2 12843 fi 12844 done 12845 done 12846 IFS=$as_save_IFS 12847 12848 fi 12849 fi 12850 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12851 if test -n "$ac_ct_DLLTOOL"; then 12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12853 $as_echo "$ac_ct_DLLTOOL" >&6; } 12854 else 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12856 $as_echo "no" >&6; } 12857 fi 12858 12859 if test "x$ac_ct_DLLTOOL" = x; then 12860 DLLTOOL="false" 12861 else 12862 case $cross_compiling:$ac_tool_warned in 12863 yes:) 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12866 ac_tool_warned=yes ;; 12867 esac 12868 DLLTOOL=$ac_ct_DLLTOOL 12869 fi 12870 else 12871 DLLTOOL="$ac_cv_prog_DLLTOOL" 12872 fi 12873 12874 test -z "$DLLTOOL" && DLLTOOL=dlltool 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12886 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12887 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12888 $as_echo_n "(cached) " >&6 12889 else 12890 lt_cv_sharedlib_from_linklib_cmd='unknown' 12891 12892 case $host_os in 12893 cygwin* | mingw* | pw32* | cegcc*) 12894 # two different shell functions defined in ltmain.sh; 12895 # decide which one to use based on capabilities of $DLLTOOL 12896 case `$DLLTOOL --help 2>&1` in 12897 *--identify-strict*) 12898 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12899 ;; 12900 *) 12901 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12902 ;; 12903 esac 12904 ;; 12905 *) 12906 # fallback: assume linklib IS sharedlib 12907 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12908 ;; 12909 esac 12910 12911 fi 12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12913 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12914 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12915 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12916 12917 12918 12919 12920 12921 12922 12923 if test -n "$ac_tool_prefix"; then 12924 for ac_prog in ar 12925 do 12926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12929 $as_echo_n "checking for $ac_word... " >&6; } 12930 if ${ac_cv_prog_AR+:} false; then : 12931 $as_echo_n "(cached) " >&6 12932 else 12933 if test -n "$AR"; then 12934 ac_cv_prog_AR="$AR" # Let the user override the test. 12935 else 12936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12937 for as_dir in $PATH 12938 do 12939 IFS=$as_save_IFS 12940 test -z "$as_dir" && as_dir=. 12941 for ac_exec_ext in '' $ac_executable_extensions; do 12942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12943 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12945 break 2 12946 fi 12947 done 12948 done 12949 IFS=$as_save_IFS 12950 12951 fi 12952 fi 12953 AR=$ac_cv_prog_AR 12954 if test -n "$AR"; then 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12956 $as_echo "$AR" >&6; } 12957 else 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12959 $as_echo "no" >&6; } 12960 fi 12961 12962 12963 test -n "$AR" && break 12964 done 12965 fi 12966 if test -z "$AR"; then 12967 ac_ct_AR=$AR 12968 for ac_prog in ar 12969 do 12970 # Extract the first word of "$ac_prog", so it can be a program name with args. 12971 set dummy $ac_prog; ac_word=$2 12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12973 $as_echo_n "checking for $ac_word... " >&6; } 12974 if ${ac_cv_prog_ac_ct_AR+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976 else 12977 if test -n "$ac_ct_AR"; then 12978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12979 else 12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12981 for as_dir in $PATH 12982 do 12983 IFS=$as_save_IFS 12984 test -z "$as_dir" && as_dir=. 12985 for ac_exec_ext in '' $ac_executable_extensions; do 12986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12987 ac_cv_prog_ac_ct_AR="$ac_prog" 12988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12989 break 2 12990 fi 12991 done 12992 done 12993 IFS=$as_save_IFS 12994 12995 fi 12996 fi 12997 ac_ct_AR=$ac_cv_prog_ac_ct_AR 12998 if test -n "$ac_ct_AR"; then 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13000 $as_echo "$ac_ct_AR" >&6; } 13001 else 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13003 $as_echo "no" >&6; } 13004 fi 13005 13006 13007 test -n "$ac_ct_AR" && break 13008 done 13009 13010 if test "x$ac_ct_AR" = x; then 13011 AR="false" 13012 else 13013 case $cross_compiling:$ac_tool_warned in 13014 yes:) 13015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13017 ac_tool_warned=yes ;; 13018 esac 13019 AR=$ac_ct_AR 13020 fi 13021 fi 13022 13023 : ${AR=ar} 13024 : ${AR_FLAGS=cru} 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13037 $as_echo_n "checking for archiver @FILE support... " >&6; } 13038 if ${lt_cv_ar_at_file+:} false; then : 13039 $as_echo_n "(cached) " >&6 13040 else 13041 lt_cv_ar_at_file=no 13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13043 /* end confdefs.h. */ 13044 13045 int 13046 main () 13047 { 13048 13049 ; 13050 return 0; 13051 } 13052 _ACEOF 13053 if ac_fn_c_try_compile "$LINENO"; then : 13054 echo conftest.$ac_objext > conftest.lst 13055 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13057 (eval $lt_ar_try) 2>&5 13058 ac_status=$? 13059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13060 test $ac_status = 0; } 13061 if test 0 -eq "$ac_status"; then 13062 # Ensure the archiver fails upon bogus file names. 13063 rm -f conftest.$ac_objext libconftest.a 13064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13065 (eval $lt_ar_try) 2>&5 13066 ac_status=$? 13067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13068 test $ac_status = 0; } 13069 if test 0 -ne "$ac_status"; then 13070 lt_cv_ar_at_file=@ 13071 fi 13072 fi 13073 rm -f conftest.* libconftest.a 13074 13075 fi 13076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13077 13078 fi 13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13080 $as_echo "$lt_cv_ar_at_file" >&6; } 13081 13082 if test no = "$lt_cv_ar_at_file"; then 13083 archiver_list_spec= 13084 else 13085 archiver_list_spec=$lt_cv_ar_at_file 13086 fi 13087 13088 13089 13090 13091 13092 13093 13094 if test -n "$ac_tool_prefix"; then 13095 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13096 set dummy ${ac_tool_prefix}strip; ac_word=$2 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13098 $as_echo_n "checking for $ac_word... " >&6; } 13099 if ${ac_cv_prog_STRIP+:} false; then : 13100 $as_echo_n "(cached) " >&6 13101 else 13102 if test -n "$STRIP"; then 13103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13104 else 13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13106 for as_dir in $PATH 13107 do 13108 IFS=$as_save_IFS 13109 test -z "$as_dir" && as_dir=. 13110 for ac_exec_ext in '' $ac_executable_extensions; do 13111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13112 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13114 break 2 13115 fi 13116 done 13117 done 13118 IFS=$as_save_IFS 13119 13120 fi 13121 fi 13122 STRIP=$ac_cv_prog_STRIP 13123 if test -n "$STRIP"; then 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13125 $as_echo "$STRIP" >&6; } 13126 else 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13128 $as_echo "no" >&6; } 13129 fi 13130 13131 13132 fi 13133 if test -z "$ac_cv_prog_STRIP"; then 13134 ac_ct_STRIP=$STRIP 13135 # Extract the first word of "strip", so it can be a program name with args. 13136 set dummy strip; ac_word=$2 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13138 $as_echo_n "checking for $ac_word... " >&6; } 13139 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 13140 $as_echo_n "(cached) " >&6 13141 else 13142 if test -n "$ac_ct_STRIP"; then 13143 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13144 else 13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13146 for as_dir in $PATH 13147 do 13148 IFS=$as_save_IFS 13149 test -z "$as_dir" && as_dir=. 13150 for ac_exec_ext in '' $ac_executable_extensions; do 13151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13152 ac_cv_prog_ac_ct_STRIP="strip" 13153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13154 break 2 13155 fi 13156 done 13157 done 13158 IFS=$as_save_IFS 13159 13160 fi 13161 fi 13162 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13163 if test -n "$ac_ct_STRIP"; then 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13165 $as_echo "$ac_ct_STRIP" >&6; } 13166 else 13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13168 $as_echo "no" >&6; } 13169 fi 13170 13171 if test "x$ac_ct_STRIP" = x; then 13172 STRIP=":" 13173 else 13174 case $cross_compiling:$ac_tool_warned in 13175 yes:) 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13178 ac_tool_warned=yes ;; 13179 esac 13180 STRIP=$ac_ct_STRIP 13181 fi 13182 else 13183 STRIP="$ac_cv_prog_STRIP" 13184 fi 13185 13186 test -z "$STRIP" && STRIP=: 13187 13188 13189 13190 13191 13192 13193 if test -n "$ac_tool_prefix"; then 13194 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13195 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13197 $as_echo_n "checking for $ac_word... " >&6; } 13198 if ${ac_cv_prog_RANLIB+:} false; then : 13199 $as_echo_n "(cached) " >&6 13200 else 13201 if test -n "$RANLIB"; then 13202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13203 else 13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13205 for as_dir in $PATH 13206 do 13207 IFS=$as_save_IFS 13208 test -z "$as_dir" && as_dir=. 13209 for ac_exec_ext in '' $ac_executable_extensions; do 13210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13211 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13213 break 2 13214 fi 13215 done 13216 done 13217 IFS=$as_save_IFS 13218 13219 fi 13220 fi 13221 RANLIB=$ac_cv_prog_RANLIB 13222 if test -n "$RANLIB"; then 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13224 $as_echo "$RANLIB" >&6; } 13225 else 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13227 $as_echo "no" >&6; } 13228 fi 13229 13230 13231 fi 13232 if test -z "$ac_cv_prog_RANLIB"; then 13233 ac_ct_RANLIB=$RANLIB 13234 # Extract the first word of "ranlib", so it can be a program name with args. 13235 set dummy ranlib; ac_word=$2 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13237 $as_echo_n "checking for $ac_word... " >&6; } 13238 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 13239 $as_echo_n "(cached) " >&6 13240 else 13241 if test -n "$ac_ct_RANLIB"; then 13242 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13243 else 13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13245 for as_dir in $PATH 13246 do 13247 IFS=$as_save_IFS 13248 test -z "$as_dir" && as_dir=. 13249 for ac_exec_ext in '' $ac_executable_extensions; do 13250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13251 ac_cv_prog_ac_ct_RANLIB="ranlib" 13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13253 break 2 13254 fi 13255 done 13256 done 13257 IFS=$as_save_IFS 13258 13259 fi 13260 fi 13261 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13262 if test -n "$ac_ct_RANLIB"; then 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13264 $as_echo "$ac_ct_RANLIB" >&6; } 13265 else 13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13267 $as_echo "no" >&6; } 13268 fi 13269 13270 if test "x$ac_ct_RANLIB" = x; then 13271 RANLIB=":" 13272 else 13273 case $cross_compiling:$ac_tool_warned in 13274 yes:) 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13277 ac_tool_warned=yes ;; 13278 esac 13279 RANLIB=$ac_ct_RANLIB 13280 fi 13281 else 13282 RANLIB="$ac_cv_prog_RANLIB" 13283 fi 13284 13285 test -z "$RANLIB" && RANLIB=: 13286 13287 13288 13289 13290 13291 13292 # Determine commands to create old-style static archives. 13293 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13294 old_postinstall_cmds='chmod 644 $oldlib' 13295 old_postuninstall_cmds= 13296 13297 if test -n "$RANLIB"; then 13298 case $host_os in 13299 bitrig* | openbsd*) 13300 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13301 ;; 13302 *) 13303 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13304 ;; 13305 esac 13306 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13307 fi 13308 13309 case $host_os in 13310 darwin*) 13311 lock_old_archive_extraction=yes ;; 13312 *) 13313 lock_old_archive_extraction=no ;; 13314 esac 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 # If no C compiler was specified, use CC. 13355 LTCC=${LTCC-"$CC"} 13356 13357 # If no C compiler flags were specified, use CFLAGS. 13358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13359 13360 # Allow CC to be a program name with arguments. 13361 compiler=$CC 13362 13363 13364 # Check for command to grab the raw symbol name followed by C symbol from nm. 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13366 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 13367 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 13368 $as_echo_n "(cached) " >&6 13369 else 13370 13371 # These are sane defaults that work on at least a few old systems. 13372 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13373 13374 # Character class describing NM global symbol codes. 13375 symcode='[BCDEGRST]' 13376 13377 # Regexp to match symbols that can be accessed directly from C. 13378 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13379 13380 # Define system-specific variables. 13381 case $host_os in 13382 aix*) 13383 symcode='[BCDT]' 13384 ;; 13385 cygwin* | mingw* | pw32* | cegcc*) 13386 symcode='[ABCDGISTW]' 13387 ;; 13388 hpux*) 13389 if test ia64 = "$host_cpu"; then 13390 symcode='[ABCDEGRST]' 13391 fi 13392 ;; 13393 irix* | nonstopux*) 13394 symcode='[BCDEGRST]' 13395 ;; 13396 osf*) 13397 symcode='[BCDEGQRST]' 13398 ;; 13399 solaris*) 13400 symcode='[BDRT]' 13401 ;; 13402 sco3.2v5*) 13403 symcode='[DT]' 13404 ;; 13405 sysv4.2uw2*) 13406 symcode='[DT]' 13407 ;; 13408 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13409 symcode='[ABDT]' 13410 ;; 13411 sysv4) 13412 symcode='[DFNSTU]' 13413 ;; 13414 esac 13415 13416 # If we're using GNU nm, then use its standard symbol codes. 13417 case `$NM -V 2>&1` in 13418 *GNU* | *'with BFD'*) 13419 symcode='[ABCDGIRSTW]' ;; 13420 esac 13421 13422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13423 # Gets list of data symbols to import. 13424 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 13425 # Adjust the below global symbol transforms to fixup imported variables. 13426 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13427 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13428 lt_c_name_lib_hook="\ 13429 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13430 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13431 else 13432 # Disable hooks by default. 13433 lt_cv_sys_global_symbol_to_import= 13434 lt_cdecl_hook= 13435 lt_c_name_hook= 13436 lt_c_name_lib_hook= 13437 fi 13438 13439 # Transform an extracted symbol line into a proper C declaration. 13440 # Some systems (esp. on ia64) link data and code symbols differently, 13441 # so use this general approach. 13442 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 13443 $lt_cdecl_hook\ 13444 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13445 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13446 13447 # Transform an extracted symbol line into symbol name and symbol address 13448 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 13449 $lt_c_name_hook\ 13450 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13451 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13452 13453 # Transform an extracted symbol line into symbol name with lib prefix and 13454 # symbol address. 13455 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 13456 $lt_c_name_lib_hook\ 13457 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13458 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13459 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13460 13461 # Handle CRLF in mingw tool chain 13462 opt_cr= 13463 case $build_os in 13464 mingw*) 13465 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13466 ;; 13467 esac 13468 13469 # Try without a prefix underscore, then with it. 13470 for ac_symprfx in "" "_"; do 13471 13472 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13473 symxfrm="\\1 $ac_symprfx\\2 \\2" 13474 13475 # Write the raw and C identifiers. 13476 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13477 # Fake it for dumpbin and say T for any non-static function, 13478 # D for any global variable and I for any imported variable. 13479 # Also find C++ and __fastcall symbols from MSVC++, 13480 # which start with @ or ?. 13481 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13482 " {last_section=section; section=\$ 3};"\ 13483 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13484 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13485 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13486 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13487 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13488 " \$ 0!~/External *\|/{next};"\ 13489 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13490 " {if(hide[section]) next};"\ 13491 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13492 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13493 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13494 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13495 " ' prfx=^$ac_symprfx" 13496 else 13497 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13498 fi 13499 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13500 13501 # Check to see that the pipe works correctly. 13502 pipe_works=no 13503 13504 rm -f conftest* 13505 cat > conftest.$ac_ext <<_LT_EOF 13506 #ifdef __cplusplus 13507 extern "C" { 13508 #endif 13509 char nm_test_var; 13510 void nm_test_func(void); 13511 void nm_test_func(void){} 13512 #ifdef __cplusplus 13513 } 13514 #endif 13515 int main(){nm_test_var='a';nm_test_func();return(0);} 13516 _LT_EOF 13517 13518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13519 (eval $ac_compile) 2>&5 13520 ac_status=$? 13521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13522 test $ac_status = 0; }; then 13523 # Now try to grab the symbols. 13524 nlist=conftest.nm 13525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13526 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13527 ac_status=$? 13528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13529 test $ac_status = 0; } && test -s "$nlist"; then 13530 # Try sorting and uniquifying the output. 13531 if sort "$nlist" | uniq > "$nlist"T; then 13532 mv -f "$nlist"T "$nlist" 13533 else 13534 rm -f "$nlist"T 13535 fi 13536 13537 # Make sure that we snagged all the symbols we need. 13538 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13539 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13540 cat <<_LT_EOF > conftest.$ac_ext 13541 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13542 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13543 /* DATA imports from DLLs on WIN32 can't be const, because runtime 13544 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13545 # define LT_DLSYM_CONST 13546 #elif defined __osf__ 13547 /* This system does not cope well with relocations in const data. */ 13548 # define LT_DLSYM_CONST 13549 #else 13550 # define LT_DLSYM_CONST const 13551 #endif 13552 13553 #ifdef __cplusplus 13554 extern "C" { 13555 #endif 13556 13557 _LT_EOF 13558 # Now generate the symbol file. 13559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13560 13561 cat <<_LT_EOF >> conftest.$ac_ext 13562 13563 /* The mapping between symbol names and symbols. */ 13564 LT_DLSYM_CONST struct { 13565 const char *name; 13566 void *address; 13567 } 13568 lt__PROGRAM__LTX_preloaded_symbols[] = 13569 { 13570 { "@PROGRAM@", (void *) 0 }, 13571 _LT_EOF 13572 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13573 cat <<\_LT_EOF >> conftest.$ac_ext 13574 {0, (void *) 0} 13575 }; 13576 13577 /* This works around a problem in FreeBSD linker */ 13578 #ifdef FREEBSD_WORKAROUND 13579 static const void *lt_preloaded_setup() { 13580 return lt__PROGRAM__LTX_preloaded_symbols; 13581 } 13582 #endif 13583 13584 #ifdef __cplusplus 13585 } 13586 #endif 13587 _LT_EOF 13588 # Now try linking the two files. 13589 mv conftest.$ac_objext conftstm.$ac_objext 13590 lt_globsym_save_LIBS=$LIBS 13591 lt_globsym_save_CFLAGS=$CFLAGS 13592 LIBS=conftstm.$ac_objext 13593 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13595 (eval $ac_link) 2>&5 13596 ac_status=$? 13597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13598 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13599 pipe_works=yes 13600 fi 13601 LIBS=$lt_globsym_save_LIBS 13602 CFLAGS=$lt_globsym_save_CFLAGS 13603 else 13604 echo "cannot find nm_test_func in $nlist" >&5 13605 fi 13606 else 13607 echo "cannot find nm_test_var in $nlist" >&5 13608 fi 13609 else 13610 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13611 fi 13612 else 13613 echo "$progname: failed program was:" >&5 13614 cat conftest.$ac_ext >&5 13615 fi 13616 rm -rf conftest* conftst* 13617 13618 # Do not use the global_symbol_pipe unless it works. 13619 if test yes = "$pipe_works"; then 13620 break 13621 else 13622 lt_cv_sys_global_symbol_pipe= 13623 fi 13624 done 13625 13626 fi 13627 13628 if test -z "$lt_cv_sys_global_symbol_pipe"; then 13629 lt_cv_sys_global_symbol_to_cdecl= 13630 fi 13631 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13633 $as_echo "failed" >&6; } 13634 else 13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13636 $as_echo "ok" >&6; } 13637 fi 13638 13639 # Response file support. 13640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13641 nm_file_list_spec='@' 13642 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13643 nm_file_list_spec='@' 13644 fi 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13683 $as_echo_n "checking for sysroot... " >&6; } 13684 13685 # Check whether --with-sysroot was given. 13686 if test "${with_sysroot+set}" = set; then : 13687 withval=$with_sysroot; 13688 else 13689 with_sysroot=no 13690 fi 13691 13692 13693 lt_sysroot= 13694 case $with_sysroot in #( 13695 yes) 13696 if test yes = "$GCC"; then 13697 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13698 fi 13699 ;; #( 13700 /*) 13701 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13702 ;; #( 13703 no|'') 13704 ;; #( 13705 *) 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13707 $as_echo "$with_sysroot" >&6; } 13708 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13709 ;; 13710 esac 13711 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13713 $as_echo "${lt_sysroot:-no}" >&6; } 13714 13715 13716 13717 13718 13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13720 $as_echo_n "checking for a working dd... " >&6; } 13721 if ${ac_cv_path_lt_DD+:} false; then : 13722 $as_echo_n "(cached) " >&6 13723 else 13724 printf 0123456789abcdef0123456789abcdef >conftest.i 13725 cat conftest.i conftest.i >conftest2.i 13726 : ${lt_DD:=$DD} 13727 if test -z "$lt_DD"; then 13728 ac_path_lt_DD_found=false 13729 # Loop through the user's path and test for each of PROGNAME-LIST 13730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13731 for as_dir in $PATH 13732 do 13733 IFS=$as_save_IFS 13734 test -z "$as_dir" && as_dir=. 13735 for ac_prog in dd; do 13736 for ac_exec_ext in '' $ac_executable_extensions; do 13737 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13738 as_fn_executable_p "$ac_path_lt_DD" || continue 13739 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13740 cmp -s conftest.i conftest.out \ 13741 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13742 fi 13743 $ac_path_lt_DD_found && break 3 13744 done 13745 done 13746 done 13747 IFS=$as_save_IFS 13748 if test -z "$ac_cv_path_lt_DD"; then 13749 : 13750 fi 13751 else 13752 ac_cv_path_lt_DD=$lt_DD 13753 fi 13754 13755 rm -f conftest.i conftest2.i conftest.out 13756 fi 13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13758 $as_echo "$ac_cv_path_lt_DD" >&6; } 13759 13760 13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13762 $as_echo_n "checking how to truncate binary pipes... " >&6; } 13763 if ${lt_cv_truncate_bin+:} false; then : 13764 $as_echo_n "(cached) " >&6 13765 else 13766 printf 0123456789abcdef0123456789abcdef >conftest.i 13767 cat conftest.i conftest.i >conftest2.i 13768 lt_cv_truncate_bin= 13769 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13770 cmp -s conftest.i conftest.out \ 13771 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13772 fi 13773 rm -f conftest.i conftest2.i conftest.out 13774 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13775 fi 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13777 $as_echo "$lt_cv_truncate_bin" >&6; } 13778 13779 13780 13781 13782 13783 13784 13785 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13786 func_cc_basename () 13787 { 13788 for cc_temp in $*""; do 13789 case $cc_temp in 13790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13792 \-*) ;; 13793 *) break;; 13794 esac 13795 done 13796 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13797 } 13798 13799 # Check whether --enable-libtool-lock was given. 13800 if test "${enable_libtool_lock+set}" = set; then : 13801 enableval=$enable_libtool_lock; 13802 fi 13803 13804 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13805 13806 # Some flags need to be propagated to the compiler or linker for good 13807 # libtool support. 13808 case $host in 13809 ia64-*-hpux*) 13810 # Find out what ABI is being produced by ac_compile, and set mode 13811 # options accordingly. 13812 echo 'int i;' > conftest.$ac_ext 13813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13814 (eval $ac_compile) 2>&5 13815 ac_status=$? 13816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13817 test $ac_status = 0; }; then 13818 case `/usr/bin/file conftest.$ac_objext` in 13819 *ELF-32*) 13820 HPUX_IA64_MODE=32 13821 ;; 13822 *ELF-64*) 13823 HPUX_IA64_MODE=64 13824 ;; 13825 esac 13826 fi 13827 rm -rf conftest* 13828 ;; 13829 *-*-irix6*) 13830 # Find out what ABI is being produced by ac_compile, and set linker 13831 # options accordingly. 13832 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13834 (eval $ac_compile) 2>&5 13835 ac_status=$? 13836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13837 test $ac_status = 0; }; then 13838 if test yes = "$lt_cv_prog_gnu_ld"; then 13839 case `/usr/bin/file conftest.$ac_objext` in 13840 *32-bit*) 13841 LD="${LD-ld} -melf32bsmip" 13842 ;; 13843 *N32*) 13844 LD="${LD-ld} -melf32bmipn32" 13845 ;; 13846 *64-bit*) 13847 LD="${LD-ld} -melf64bmip" 13848 ;; 13849 esac 13850 else 13851 case `/usr/bin/file conftest.$ac_objext` in 13852 *32-bit*) 13853 LD="${LD-ld} -32" 13854 ;; 13855 *N32*) 13856 LD="${LD-ld} -n32" 13857 ;; 13858 *64-bit*) 13859 LD="${LD-ld} -64" 13860 ;; 13861 esac 13862 fi 13863 fi 13864 rm -rf conftest* 13865 ;; 13866 13867 mips64*-*linux*) 13868 # Find out what ABI is being produced by ac_compile, and set linker 13869 # options accordingly. 13870 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13872 (eval $ac_compile) 2>&5 13873 ac_status=$? 13874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13875 test $ac_status = 0; }; then 13876 emul=elf 13877 case `/usr/bin/file conftest.$ac_objext` in 13878 *32-bit*) 13879 emul="${emul}32" 13880 ;; 13881 *64-bit*) 13882 emul="${emul}64" 13883 ;; 13884 esac 13885 case `/usr/bin/file conftest.$ac_objext` in 13886 *MSB*) 13887 emul="${emul}btsmip" 13888 ;; 13889 *LSB*) 13890 emul="${emul}ltsmip" 13891 ;; 13892 esac 13893 case `/usr/bin/file conftest.$ac_objext` in 13894 *N32*) 13895 emul="${emul}n32" 13896 ;; 13897 esac 13898 LD="${LD-ld} -m $emul" 13899 fi 13900 rm -rf conftest* 13901 ;; 13902 13903 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13904 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13905 # Find out what ABI is being produced by ac_compile, and set linker 13906 # options accordingly. Note that the listed cases only cover the 13907 # situations where additional linker options are needed (such as when 13908 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13909 # vice versa); the common cases where no linker options are needed do 13910 # not appear in the list. 13911 echo 'int i;' > conftest.$ac_ext 13912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13913 (eval $ac_compile) 2>&5 13914 ac_status=$? 13915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13916 test $ac_status = 0; }; then 13917 case `/usr/bin/file conftest.o` in 13918 *32-bit*) 13919 case $host in 13920 x86_64-*kfreebsd*-gnu) 13921 LD="${LD-ld} -m elf_i386_fbsd" 13922 ;; 13923 x86_64-*linux*) 13924 case `/usr/bin/file conftest.o` in 13925 *x86-64*) 13926 LD="${LD-ld} -m elf32_x86_64" 13927 ;; 13928 *) 13929 LD="${LD-ld} -m elf_i386" 13930 ;; 13931 esac 13932 ;; 13933 powerpc64le-*linux*) 13934 LD="${LD-ld} -m elf32lppclinux" 13935 ;; 13936 powerpc64-*linux*) 13937 LD="${LD-ld} -m elf32ppclinux" 13938 ;; 13939 s390x-*linux*) 13940 LD="${LD-ld} -m elf_s390" 13941 ;; 13942 sparc64-*linux*) 13943 LD="${LD-ld} -m elf32_sparc" 13944 ;; 13945 esac 13946 ;; 13947 *64-bit*) 13948 case $host in 13949 x86_64-*kfreebsd*-gnu) 13950 LD="${LD-ld} -m elf_x86_64_fbsd" 13951 ;; 13952 x86_64-*linux*) 13953 LD="${LD-ld} -m elf_x86_64" 13954 ;; 13955 powerpcle-*linux*) 13956 LD="${LD-ld} -m elf64lppc" 13957 ;; 13958 powerpc-*linux*) 13959 LD="${LD-ld} -m elf64ppc" 13960 ;; 13961 s390*-*linux*|s390*-*tpf*) 13962 LD="${LD-ld} -m elf64_s390" 13963 ;; 13964 sparc*-*linux*) 13965 LD="${LD-ld} -m elf64_sparc" 13966 ;; 13967 esac 13968 ;; 13969 esac 13970 fi 13971 rm -rf conftest* 13972 ;; 13973 13974 *-*-sco3.2v5*) 13975 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13976 SAVE_CFLAGS=$CFLAGS 13977 CFLAGS="$CFLAGS -belf" 13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13979 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13980 if ${lt_cv_cc_needs_belf+:} false; then : 13981 $as_echo_n "(cached) " >&6 13982 else 13983 ac_ext=c 13984 ac_cpp='$CPP $CPPFLAGS' 13985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13987 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13988 13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13990 /* end confdefs.h. */ 13991 13992 int 13993 main () 13994 { 13995 13996 ; 13997 return 0; 13998 } 13999 _ACEOF 14000 if ac_fn_c_try_link "$LINENO"; then : 14001 lt_cv_cc_needs_belf=yes 14002 else 14003 lt_cv_cc_needs_belf=no 14004 fi 14005 rm -f core conftest.err conftest.$ac_objext \ 14006 conftest$ac_exeext conftest.$ac_ext 14007 ac_ext=c 14008 ac_cpp='$CPP $CPPFLAGS' 14009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14011 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14012 14013 fi 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14015 $as_echo "$lt_cv_cc_needs_belf" >&6; } 14016 if test yes != "$lt_cv_cc_needs_belf"; then 14017 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14018 CFLAGS=$SAVE_CFLAGS 14019 fi 14020 ;; 14021 *-*solaris*) 14022 # Find out what ABI is being produced by ac_compile, and set linker 14023 # options accordingly. 14024 echo 'int i;' > conftest.$ac_ext 14025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14026 (eval $ac_compile) 2>&5 14027 ac_status=$? 14028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14029 test $ac_status = 0; }; then 14030 case `/usr/bin/file conftest.o` in 14031 *64-bit*) 14032 case $lt_cv_prog_gnu_ld in 14033 yes*) 14034 case $host in 14035 i?86-*-solaris*|x86_64-*-solaris*) 14036 LD="${LD-ld} -m elf_x86_64" 14037 ;; 14038 sparc*-*-solaris*) 14039 LD="${LD-ld} -m elf64_sparc" 14040 ;; 14041 esac 14042 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14043 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14044 LD=${LD-ld}_sol2 14045 fi 14046 ;; 14047 *) 14048 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14049 LD="${LD-ld} -64" 14050 fi 14051 ;; 14052 esac 14053 ;; 14054 esac 14055 fi 14056 rm -rf conftest* 14057 ;; 14058 esac 14059 14060 need_locks=$enable_libtool_lock 14061 14062 if test -n "$ac_tool_prefix"; then 14063 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14064 set dummy ${ac_tool_prefix}mt; ac_word=$2 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14066 $as_echo_n "checking for $ac_word... " >&6; } 14067 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 14068 $as_echo_n "(cached) " >&6 14069 else 14070 if test -n "$MANIFEST_TOOL"; then 14071 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14072 else 14073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14074 for as_dir in $PATH 14075 do 14076 IFS=$as_save_IFS 14077 test -z "$as_dir" && as_dir=. 14078 for ac_exec_ext in '' $ac_executable_extensions; do 14079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14080 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14082 break 2 14083 fi 14084 done 14085 done 14086 IFS=$as_save_IFS 14087 14088 fi 14089 fi 14090 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14091 if test -n "$MANIFEST_TOOL"; then 14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14093 $as_echo "$MANIFEST_TOOL" >&6; } 14094 else 14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14096 $as_echo "no" >&6; } 14097 fi 14098 14099 14100 fi 14101 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14102 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14103 # Extract the first word of "mt", so it can be a program name with args. 14104 set dummy mt; ac_word=$2 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14106 $as_echo_n "checking for $ac_word... " >&6; } 14107 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 14108 $as_echo_n "(cached) " >&6 14109 else 14110 if test -n "$ac_ct_MANIFEST_TOOL"; then 14111 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14112 else 14113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14114 for as_dir in $PATH 14115 do 14116 IFS=$as_save_IFS 14117 test -z "$as_dir" && as_dir=. 14118 for ac_exec_ext in '' $ac_executable_extensions; do 14119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14120 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14122 break 2 14123 fi 14124 done 14125 done 14126 IFS=$as_save_IFS 14127 14128 fi 14129 fi 14130 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14131 if test -n "$ac_ct_MANIFEST_TOOL"; then 14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14133 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 14134 else 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14136 $as_echo "no" >&6; } 14137 fi 14138 14139 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14140 MANIFEST_TOOL=":" 14141 else 14142 case $cross_compiling:$ac_tool_warned in 14143 yes:) 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14146 ac_tool_warned=yes ;; 14147 esac 14148 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14149 fi 14150 else 14151 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14152 fi 14153 14154 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14156 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14157 if ${lt_cv_path_mainfest_tool+:} false; then : 14158 $as_echo_n "(cached) " >&6 14159 else 14160 lt_cv_path_mainfest_tool=no 14161 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14162 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14163 cat conftest.err >&5 14164 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14165 lt_cv_path_mainfest_tool=yes 14166 fi 14167 rm -f conftest* 14168 fi 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14170 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 14171 if test yes != "$lt_cv_path_mainfest_tool"; then 14172 MANIFEST_TOOL=: 14173 fi 14174 14175 14176 14177 14178 14179 14180 case $host_os in 14181 rhapsody* | darwin*) 14182 if test -n "$ac_tool_prefix"; then 14183 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14184 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14186 $as_echo_n "checking for $ac_word... " >&6; } 14187 if ${ac_cv_prog_DSYMUTIL+:} false; then : 14188 $as_echo_n "(cached) " >&6 14189 else 14190 if test -n "$DSYMUTIL"; then 14191 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14192 else 14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14194 for as_dir in $PATH 14195 do 14196 IFS=$as_save_IFS 14197 test -z "$as_dir" && as_dir=. 14198 for ac_exec_ext in '' $ac_executable_extensions; do 14199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14200 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14202 break 2 14203 fi 14204 done 14205 done 14206 IFS=$as_save_IFS 14207 14208 fi 14209 fi 14210 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14211 if test -n "$DSYMUTIL"; then 14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14213 $as_echo "$DSYMUTIL" >&6; } 14214 else 14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14216 $as_echo "no" >&6; } 14217 fi 14218 14219 14220 fi 14221 if test -z "$ac_cv_prog_DSYMUTIL"; then 14222 ac_ct_DSYMUTIL=$DSYMUTIL 14223 # Extract the first word of "dsymutil", so it can be a program name with args. 14224 set dummy dsymutil; ac_word=$2 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14226 $as_echo_n "checking for $ac_word... " >&6; } 14227 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 14228 $as_echo_n "(cached) " >&6 14229 else 14230 if test -n "$ac_ct_DSYMUTIL"; then 14231 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14232 else 14233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14234 for as_dir in $PATH 14235 do 14236 IFS=$as_save_IFS 14237 test -z "$as_dir" && as_dir=. 14238 for ac_exec_ext in '' $ac_executable_extensions; do 14239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14240 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14242 break 2 14243 fi 14244 done 14245 done 14246 IFS=$as_save_IFS 14247 14248 fi 14249 fi 14250 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14251 if test -n "$ac_ct_DSYMUTIL"; then 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14253 $as_echo "$ac_ct_DSYMUTIL" >&6; } 14254 else 14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14256 $as_echo "no" >&6; } 14257 fi 14258 14259 if test "x$ac_ct_DSYMUTIL" = x; then 14260 DSYMUTIL=":" 14261 else 14262 case $cross_compiling:$ac_tool_warned in 14263 yes:) 14264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14266 ac_tool_warned=yes ;; 14267 esac 14268 DSYMUTIL=$ac_ct_DSYMUTIL 14269 fi 14270 else 14271 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14272 fi 14273 14274 if test -n "$ac_tool_prefix"; then 14275 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14276 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14278 $as_echo_n "checking for $ac_word... " >&6; } 14279 if ${ac_cv_prog_NMEDIT+:} false; then : 14280 $as_echo_n "(cached) " >&6 14281 else 14282 if test -n "$NMEDIT"; then 14283 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14284 else 14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14286 for as_dir in $PATH 14287 do 14288 IFS=$as_save_IFS 14289 test -z "$as_dir" && as_dir=. 14290 for ac_exec_ext in '' $ac_executable_extensions; do 14291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14292 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14294 break 2 14295 fi 14296 done 14297 done 14298 IFS=$as_save_IFS 14299 14300 fi 14301 fi 14302 NMEDIT=$ac_cv_prog_NMEDIT 14303 if test -n "$NMEDIT"; then 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14305 $as_echo "$NMEDIT" >&6; } 14306 else 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14308 $as_echo "no" >&6; } 14309 fi 14310 14311 14312 fi 14313 if test -z "$ac_cv_prog_NMEDIT"; then 14314 ac_ct_NMEDIT=$NMEDIT 14315 # Extract the first word of "nmedit", so it can be a program name with args. 14316 set dummy nmedit; ac_word=$2 14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14318 $as_echo_n "checking for $ac_word... " >&6; } 14319 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 14320 $as_echo_n "(cached) " >&6 14321 else 14322 if test -n "$ac_ct_NMEDIT"; then 14323 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14324 else 14325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14326 for as_dir in $PATH 14327 do 14328 IFS=$as_save_IFS 14329 test -z "$as_dir" && as_dir=. 14330 for ac_exec_ext in '' $ac_executable_extensions; do 14331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14332 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14334 break 2 14335 fi 14336 done 14337 done 14338 IFS=$as_save_IFS 14339 14340 fi 14341 fi 14342 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14343 if test -n "$ac_ct_NMEDIT"; then 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14345 $as_echo "$ac_ct_NMEDIT" >&6; } 14346 else 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14348 $as_echo "no" >&6; } 14349 fi 14350 14351 if test "x$ac_ct_NMEDIT" = x; then 14352 NMEDIT=":" 14353 else 14354 case $cross_compiling:$ac_tool_warned in 14355 yes:) 14356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14358 ac_tool_warned=yes ;; 14359 esac 14360 NMEDIT=$ac_ct_NMEDIT 14361 fi 14362 else 14363 NMEDIT="$ac_cv_prog_NMEDIT" 14364 fi 14365 14366 if test -n "$ac_tool_prefix"; then 14367 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14368 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14370 $as_echo_n "checking for $ac_word... " >&6; } 14371 if ${ac_cv_prog_LIPO+:} false; then : 14372 $as_echo_n "(cached) " >&6 14373 else 14374 if test -n "$LIPO"; then 14375 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14376 else 14377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14378 for as_dir in $PATH 14379 do 14380 IFS=$as_save_IFS 14381 test -z "$as_dir" && as_dir=. 14382 for ac_exec_ext in '' $ac_executable_extensions; do 14383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14384 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14386 break 2 14387 fi 14388 done 14389 done 14390 IFS=$as_save_IFS 14391 14392 fi 14393 fi 14394 LIPO=$ac_cv_prog_LIPO 14395 if test -n "$LIPO"; then 14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14397 $as_echo "$LIPO" >&6; } 14398 else 14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14400 $as_echo "no" >&6; } 14401 fi 14402 14403 14404 fi 14405 if test -z "$ac_cv_prog_LIPO"; then 14406 ac_ct_LIPO=$LIPO 14407 # Extract the first word of "lipo", so it can be a program name with args. 14408 set dummy lipo; ac_word=$2 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14410 $as_echo_n "checking for $ac_word... " >&6; } 14411 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14412 $as_echo_n "(cached) " >&6 14413 else 14414 if test -n "$ac_ct_LIPO"; then 14415 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14416 else 14417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14418 for as_dir in $PATH 14419 do 14420 IFS=$as_save_IFS 14421 test -z "$as_dir" && as_dir=. 14422 for ac_exec_ext in '' $ac_executable_extensions; do 14423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14424 ac_cv_prog_ac_ct_LIPO="lipo" 14425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14426 break 2 14427 fi 14428 done 14429 done 14430 IFS=$as_save_IFS 14431 14432 fi 14433 fi 14434 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14435 if test -n "$ac_ct_LIPO"; then 14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14437 $as_echo "$ac_ct_LIPO" >&6; } 14438 else 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14440 $as_echo "no" >&6; } 14441 fi 14442 14443 if test "x$ac_ct_LIPO" = x; then 14444 LIPO=":" 14445 else 14446 case $cross_compiling:$ac_tool_warned in 14447 yes:) 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14450 ac_tool_warned=yes ;; 14451 esac 14452 LIPO=$ac_ct_LIPO 14453 fi 14454 else 14455 LIPO="$ac_cv_prog_LIPO" 14456 fi 14457 14458 if test -n "$ac_tool_prefix"; then 14459 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14460 set dummy ${ac_tool_prefix}otool; ac_word=$2 14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14462 $as_echo_n "checking for $ac_word... " >&6; } 14463 if ${ac_cv_prog_OTOOL+:} false; then : 14464 $as_echo_n "(cached) " >&6 14465 else 14466 if test -n "$OTOOL"; then 14467 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14468 else 14469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14470 for as_dir in $PATH 14471 do 14472 IFS=$as_save_IFS 14473 test -z "$as_dir" && as_dir=. 14474 for ac_exec_ext in '' $ac_executable_extensions; do 14475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14476 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14478 break 2 14479 fi 14480 done 14481 done 14482 IFS=$as_save_IFS 14483 14484 fi 14485 fi 14486 OTOOL=$ac_cv_prog_OTOOL 14487 if test -n "$OTOOL"; then 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14489 $as_echo "$OTOOL" >&6; } 14490 else 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14492 $as_echo "no" >&6; } 14493 fi 14494 14495 14496 fi 14497 if test -z "$ac_cv_prog_OTOOL"; then 14498 ac_ct_OTOOL=$OTOOL 14499 # Extract the first word of "otool", so it can be a program name with args. 14500 set dummy otool; ac_word=$2 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14502 $as_echo_n "checking for $ac_word... " >&6; } 14503 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14504 $as_echo_n "(cached) " >&6 14505 else 14506 if test -n "$ac_ct_OTOOL"; then 14507 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14508 else 14509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14510 for as_dir in $PATH 14511 do 14512 IFS=$as_save_IFS 14513 test -z "$as_dir" && as_dir=. 14514 for ac_exec_ext in '' $ac_executable_extensions; do 14515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14516 ac_cv_prog_ac_ct_OTOOL="otool" 14517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14518 break 2 14519 fi 14520 done 14521 done 14522 IFS=$as_save_IFS 14523 14524 fi 14525 fi 14526 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14527 if test -n "$ac_ct_OTOOL"; then 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14529 $as_echo "$ac_ct_OTOOL" >&6; } 14530 else 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14532 $as_echo "no" >&6; } 14533 fi 14534 14535 if test "x$ac_ct_OTOOL" = x; then 14536 OTOOL=":" 14537 else 14538 case $cross_compiling:$ac_tool_warned in 14539 yes:) 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14542 ac_tool_warned=yes ;; 14543 esac 14544 OTOOL=$ac_ct_OTOOL 14545 fi 14546 else 14547 OTOOL="$ac_cv_prog_OTOOL" 14548 fi 14549 14550 if test -n "$ac_tool_prefix"; then 14551 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14552 set dummy ${ac_tool_prefix}otool64; ac_word=$2 14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14554 $as_echo_n "checking for $ac_word... " >&6; } 14555 if ${ac_cv_prog_OTOOL64+:} false; then : 14556 $as_echo_n "(cached) " >&6 14557 else 14558 if test -n "$OTOOL64"; then 14559 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14560 else 14561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14562 for as_dir in $PATH 14563 do 14564 IFS=$as_save_IFS 14565 test -z "$as_dir" && as_dir=. 14566 for ac_exec_ext in '' $ac_executable_extensions; do 14567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14568 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14570 break 2 14571 fi 14572 done 14573 done 14574 IFS=$as_save_IFS 14575 14576 fi 14577 fi 14578 OTOOL64=$ac_cv_prog_OTOOL64 14579 if test -n "$OTOOL64"; then 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14581 $as_echo "$OTOOL64" >&6; } 14582 else 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14584 $as_echo "no" >&6; } 14585 fi 14586 14587 14588 fi 14589 if test -z "$ac_cv_prog_OTOOL64"; then 14590 ac_ct_OTOOL64=$OTOOL64 14591 # Extract the first word of "otool64", so it can be a program name with args. 14592 set dummy otool64; ac_word=$2 14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14594 $as_echo_n "checking for $ac_word... " >&6; } 14595 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14596 $as_echo_n "(cached) " >&6 14597 else 14598 if test -n "$ac_ct_OTOOL64"; then 14599 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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 test -z "$as_dir" && as_dir=. 14606 for ac_exec_ext in '' $ac_executable_extensions; do 14607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14608 ac_cv_prog_ac_ct_OTOOL64="otool64" 14609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14610 break 2 14611 fi 14612 done 14613 done 14614 IFS=$as_save_IFS 14615 14616 fi 14617 fi 14618 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14619 if test -n "$ac_ct_OTOOL64"; then 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14621 $as_echo "$ac_ct_OTOOL64" >&6; } 14622 else 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14624 $as_echo "no" >&6; } 14625 fi 14626 14627 if test "x$ac_ct_OTOOL64" = x; then 14628 OTOOL64=":" 14629 else 14630 case $cross_compiling:$ac_tool_warned in 14631 yes:) 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14634 ac_tool_warned=yes ;; 14635 esac 14636 OTOOL64=$ac_ct_OTOOL64 14637 fi 14638 else 14639 OTOOL64="$ac_cv_prog_OTOOL64" 14640 fi 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14669 $as_echo_n "checking for -single_module linker flag... " >&6; } 14670 if ${lt_cv_apple_cc_single_mod+:} false; then : 14671 $as_echo_n "(cached) " >&6 14672 else 14673 lt_cv_apple_cc_single_mod=no 14674 if test -z "$LT_MULTI_MODULE"; then 14675 # By default we will add the -single_module flag. You can override 14676 # by either setting the environment variable LT_MULTI_MODULE 14677 # non-empty at configure time, or by adding -multi_module to the 14678 # link flags. 14679 rm -rf libconftest.dylib* 14680 echo "int foo(void){return 1;}" > conftest.c 14681 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14682 -dynamiclib -Wl,-single_module conftest.c" >&5 14683 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14684 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14685 _lt_result=$? 14686 # If there is a non-empty error log, and "single_module" 14687 # appears in it, assume the flag caused a linker warning 14688 if test -s conftest.err && $GREP single_module conftest.err; then 14689 cat conftest.err >&5 14690 # Otherwise, if the output was created with a 0 exit code from 14691 # the compiler, it worked. 14692 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14693 lt_cv_apple_cc_single_mod=yes 14694 else 14695 cat conftest.err >&5 14696 fi 14697 rm -rf libconftest.dylib* 14698 rm -f conftest.* 14699 fi 14700 fi 14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14702 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14703 14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14705 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14706 if ${lt_cv_ld_exported_symbols_list+:} false; then : 14707 $as_echo_n "(cached) " >&6 14708 else 14709 lt_cv_ld_exported_symbols_list=no 14710 save_LDFLAGS=$LDFLAGS 14711 echo "_main" > conftest.sym 14712 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14714 /* end confdefs.h. */ 14715 14716 int 14717 main () 14718 { 14719 14720 ; 14721 return 0; 14722 } 14723 _ACEOF 14724 if ac_fn_c_try_link "$LINENO"; then : 14725 lt_cv_ld_exported_symbols_list=yes 14726 else 14727 lt_cv_ld_exported_symbols_list=no 14728 fi 14729 rm -f core conftest.err conftest.$ac_objext \ 14730 conftest$ac_exeext conftest.$ac_ext 14731 LDFLAGS=$save_LDFLAGS 14732 14733 fi 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14735 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14736 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14738 $as_echo_n "checking for -force_load linker flag... " >&6; } 14739 if ${lt_cv_ld_force_load+:} false; then : 14740 $as_echo_n "(cached) " >&6 14741 else 14742 lt_cv_ld_force_load=no 14743 cat > conftest.c << _LT_EOF 14744 int forced_loaded() { return 2;} 14745 _LT_EOF 14746 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14747 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14748 echo "$AR cru libconftest.a conftest.o" >&5 14749 $AR cru libconftest.a conftest.o 2>&5 14750 echo "$RANLIB libconftest.a" >&5 14751 $RANLIB libconftest.a 2>&5 14752 cat > conftest.c << _LT_EOF 14753 int main() { return 0;} 14754 _LT_EOF 14755 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14756 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14757 _lt_result=$? 14758 if test -s conftest.err && $GREP force_load conftest.err; then 14759 cat conftest.err >&5 14760 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14761 lt_cv_ld_force_load=yes 14762 else 14763 cat conftest.err >&5 14764 fi 14765 rm -f conftest.err libconftest.a conftest conftest.c 14766 rm -rf conftest.dSYM 14767 14768 fi 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14770 $as_echo "$lt_cv_ld_force_load" >&6; } 14771 case $host_os in 14772 rhapsody* | darwin1.[012]) 14773 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14774 darwin1.*) 14775 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14776 darwin*) # darwin 5.x on 14777 # if running on 10.5 or later, the deployment target defaults 14778 # to the OS version, if on x86, and 10.4, the deployment 14779 # target defaults to 10.4. Don't you love it? 14780 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14781 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14782 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14783 10.[012][,.]*) 14784 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14785 10.*) 14786 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14787 esac 14788 ;; 14789 esac 14790 if test yes = "$lt_cv_apple_cc_single_mod"; then 14791 _lt_dar_single_mod='$single_module' 14792 fi 14793 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14794 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14795 else 14796 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14797 fi 14798 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14799 _lt_dsymutil='~$DSYMUTIL $lib || :' 14800 else 14801 _lt_dsymutil= 14802 fi 14803 ;; 14804 esac 14805 14806 # func_munge_path_list VARIABLE PATH 14807 # ----------------------------------- 14808 # VARIABLE is name of variable containing _space_ separated list of 14809 # directories to be munged by the contents of PATH, which is string 14810 # having a format: 14811 # "DIR[:DIR]:" 14812 # string "DIR[ DIR]" will be prepended to VARIABLE 14813 # ":DIR[:DIR]" 14814 # string "DIR[ DIR]" will be appended to VARIABLE 14815 # "DIRP[:DIRP]::[DIRA:]DIRA" 14816 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14817 # "DIRA[ DIRA]" will be appended to VARIABLE 14818 # "DIR[:DIR]" 14819 # VARIABLE will be replaced by "DIR[ DIR]" 14820 func_munge_path_list () 14821 { 14822 case x$2 in 14823 x) 14824 ;; 14825 *:) 14826 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14827 ;; 14828 x:*) 14829 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14830 ;; 14831 *::*) 14832 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14833 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14834 ;; 14835 *) 14836 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14837 ;; 14838 esac 14839 } 14840 14841 for ac_header in dlfcn.h 14842 do : 14843 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14844 " 14845 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14846 cat >>confdefs.h <<_ACEOF 14847 #define HAVE_DLFCN_H 1 14848 _ACEOF 14849 14850 fi 14851 14852 done 14853 14854 14855 14856 14857 14858 # Set options 14859 14860 14861 14862 enable_dlopen=no 14863 14864 14865 enable_win32_dll=no 14866 14867 14868 # Check whether --enable-shared was given. 14869 if test "${enable_shared+set}" = set; then : 14870 enableval=$enable_shared; p=${PACKAGE-default} 14871 case $enableval in 14872 yes) enable_shared=yes ;; 14873 no) enable_shared=no ;; 14874 *) 14875 enable_shared=no 14876 # Look at the argument we got. We use all the common list separators. 14877 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14878 for pkg in $enableval; do 14879 IFS=$lt_save_ifs 14880 if test "X$pkg" = "X$p"; then 14881 enable_shared=yes 14882 fi 14883 done 14884 IFS=$lt_save_ifs 14885 ;; 14886 esac 14887 else 14888 enable_shared=yes 14889 fi 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 # Check whether --with-pic was given. 14902 if test "${with_pic+set}" = set; then : 14903 withval=$with_pic; lt_p=${PACKAGE-default} 14904 case $withval in 14905 yes|no) pic_mode=$withval ;; 14906 *) 14907 pic_mode=default 14908 # Look at the argument we got. We use all the common list separators. 14909 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14910 for lt_pkg in $withval; do 14911 IFS=$lt_save_ifs 14912 if test "X$lt_pkg" = "X$lt_p"; then 14913 pic_mode=yes 14914 fi 14915 done 14916 IFS=$lt_save_ifs 14917 ;; 14918 esac 14919 else 14920 pic_mode=default 14921 fi 14922 14923 14924 14925 14926 14927 14928 14929 14930 # Check whether --enable-fast-install was given. 14931 if test "${enable_fast_install+set}" = set; then : 14932 enableval=$enable_fast_install; p=${PACKAGE-default} 14933 case $enableval in 14934 yes) enable_fast_install=yes ;; 14935 no) enable_fast_install=no ;; 14936 *) 14937 enable_fast_install=no 14938 # Look at the argument we got. We use all the common list separators. 14939 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14940 for pkg in $enableval; do 14941 IFS=$lt_save_ifs 14942 if test "X$pkg" = "X$p"; then 14943 enable_fast_install=yes 14944 fi 14945 done 14946 IFS=$lt_save_ifs 14947 ;; 14948 esac 14949 else 14950 enable_fast_install=yes 14951 fi 14952 14953 14954 14955 14956 14957 14958 14959 14960 shared_archive_member_spec= 14961 case $host,$enable_shared in 14962 power*-*-aix[5-9]*,yes) 14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14964 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14965 14966 # Check whether --with-aix-soname was given. 14967 if test "${with_aix_soname+set}" = set; then : 14968 withval=$with_aix_soname; case $withval in 14969 aix|svr4|both) 14970 ;; 14971 *) 14972 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14973 ;; 14974 esac 14975 lt_cv_with_aix_soname=$with_aix_soname 14976 else 14977 if ${lt_cv_with_aix_soname+:} false; then : 14978 $as_echo_n "(cached) " >&6 14979 else 14980 lt_cv_with_aix_soname=aix 14981 fi 14982 14983 with_aix_soname=$lt_cv_with_aix_soname 14984 fi 14985 14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14987 $as_echo "$with_aix_soname" >&6; } 14988 if test aix != "$with_aix_soname"; then 14989 # For the AIX way of multilib, we name the shared archive member 14990 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14991 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14992 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14993 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14994 if test 64 = "${OBJECT_MODE-32}"; then 14995 shared_archive_member_spec=shr_64 14996 else 14997 shared_archive_member_spec=shr 14998 fi 14999 fi 15000 ;; 15001 *) 15002 with_aix_soname=aix 15003 ;; 15004 esac 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 # This can be used to rebuild libtool when needed 15016 LIBTOOL_DEPS=$ltmain 15017 15018 # Always use our own libtool. 15019 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 test -z "$LN_S" && LN_S="ln -s" 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 if test -n "${ZSH_VERSION+set}"; then 15066 setopt NO_GLOB_SUBST 15067 fi 15068 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15070 $as_echo_n "checking for objdir... " >&6; } 15071 if ${lt_cv_objdir+:} false; then : 15072 $as_echo_n "(cached) " >&6 15073 else 15074 rm -f .libs 2>/dev/null 15075 mkdir .libs 2>/dev/null 15076 if test -d .libs; then 15077 lt_cv_objdir=.libs 15078 else 15079 # MS-DOS does not allow filenames that begin with a dot. 15080 lt_cv_objdir=_libs 15081 fi 15082 rmdir .libs 2>/dev/null 15083 fi 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15085 $as_echo "$lt_cv_objdir" >&6; } 15086 objdir=$lt_cv_objdir 15087 15088 15089 15090 15091 15092 cat >>confdefs.h <<_ACEOF 15093 #define LT_OBJDIR "$lt_cv_objdir/" 15094 _ACEOF 15095 15096 15097 15098 15099 case $host_os in 15100 aix3*) 15101 # AIX sometimes has problems with the GCC collect2 program. For some 15102 # reason, if we set the COLLECT_NAMES environment variable, the problems 15103 # vanish in a puff of smoke. 15104 if test set != "${COLLECT_NAMES+set}"; then 15105 COLLECT_NAMES= 15106 export COLLECT_NAMES 15107 fi 15108 ;; 15109 esac 15110 15111 # Global variables: 15112 ofile=libtool 15113 can_build_shared=yes 15114 15115 # All known linkers require a '.a' archive for static linking (except MSVC, 15116 # which needs '.lib'). 15117 libext=a 15118 15119 with_gnu_ld=$lt_cv_prog_gnu_ld 15120 15121 old_CC=$CC 15122 old_CFLAGS=$CFLAGS 15123 15124 # Set sane defaults for various variables 15125 test -z "$CC" && CC=cc 15126 test -z "$LTCC" && LTCC=$CC 15127 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15128 test -z "$LD" && LD=ld 15129 test -z "$ac_objext" && ac_objext=o 15130 15131 func_cc_basename $compiler 15132 cc_basename=$func_cc_basename_result 15133 15134 15135 # Only perform the check for file, if the check method requires it 15136 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15137 case $deplibs_check_method in 15138 file_magic*) 15139 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15141 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 15142 if ${lt_cv_path_MAGIC_CMD+:} false; then : 15143 $as_echo_n "(cached) " >&6 15144 else 15145 case $MAGIC_CMD in 15146 [\\/*] | ?:[\\/]*) 15147 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15148 ;; 15149 *) 15150 lt_save_MAGIC_CMD=$MAGIC_CMD 15151 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15153 for ac_dir in $ac_dummy; do 15154 IFS=$lt_save_ifs 15155 test -z "$ac_dir" && ac_dir=. 15156 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15157 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15158 if test -n "$file_magic_test_file"; then 15159 case $deplibs_check_method in 15160 "file_magic "*) 15161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15162 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15164 $EGREP "$file_magic_regex" > /dev/null; then 15165 : 15166 else 15167 cat <<_LT_EOF 1>&2 15168 15169 *** Warning: the command libtool uses to detect shared libraries, 15170 *** $file_magic_cmd, produces output that libtool cannot recognize. 15171 *** The result is that libtool may fail to recognize shared libraries 15172 *** as such. This will affect the creation of libtool libraries that 15173 *** depend on shared libraries, but programs linked with such libtool 15174 *** libraries will work regardless of this problem. Nevertheless, you 15175 *** may want to report the problem to your system manager and/or to 15176 *** bug-libtool (at] gnu.org 15177 15178 _LT_EOF 15179 fi ;; 15180 esac 15181 fi 15182 break 15183 fi 15184 done 15185 IFS=$lt_save_ifs 15186 MAGIC_CMD=$lt_save_MAGIC_CMD 15187 ;; 15188 esac 15189 fi 15190 15191 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15192 if test -n "$MAGIC_CMD"; then 15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15194 $as_echo "$MAGIC_CMD" >&6; } 15195 else 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15197 $as_echo "no" >&6; } 15198 fi 15199 15200 15201 15202 15203 15204 if test -z "$lt_cv_path_MAGIC_CMD"; then 15205 if test -n "$ac_tool_prefix"; then 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15207 $as_echo_n "checking for file... " >&6; } 15208 if ${lt_cv_path_MAGIC_CMD+:} false; then : 15209 $as_echo_n "(cached) " >&6 15210 else 15211 case $MAGIC_CMD in 15212 [\\/*] | ?:[\\/]*) 15213 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15214 ;; 15215 *) 15216 lt_save_MAGIC_CMD=$MAGIC_CMD 15217 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15218 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15219 for ac_dir in $ac_dummy; do 15220 IFS=$lt_save_ifs 15221 test -z "$ac_dir" && ac_dir=. 15222 if test -f "$ac_dir/file"; then 15223 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15224 if test -n "$file_magic_test_file"; then 15225 case $deplibs_check_method in 15226 "file_magic "*) 15227 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15228 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15230 $EGREP "$file_magic_regex" > /dev/null; then 15231 : 15232 else 15233 cat <<_LT_EOF 1>&2 15234 15235 *** Warning: the command libtool uses to detect shared libraries, 15236 *** $file_magic_cmd, produces output that libtool cannot recognize. 15237 *** The result is that libtool may fail to recognize shared libraries 15238 *** as such. This will affect the creation of libtool libraries that 15239 *** depend on shared libraries, but programs linked with such libtool 15240 *** libraries will work regardless of this problem. Nevertheless, you 15241 *** may want to report the problem to your system manager and/or to 15242 *** bug-libtool (at] gnu.org 15243 15244 _LT_EOF 15245 fi ;; 15246 esac 15247 fi 15248 break 15249 fi 15250 done 15251 IFS=$lt_save_ifs 15252 MAGIC_CMD=$lt_save_MAGIC_CMD 15253 ;; 15254 esac 15255 fi 15256 15257 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15258 if test -n "$MAGIC_CMD"; then 15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15260 $as_echo "$MAGIC_CMD" >&6; } 15261 else 15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15263 $as_echo "no" >&6; } 15264 fi 15265 15266 15267 else 15268 MAGIC_CMD=: 15269 fi 15270 fi 15271 15272 fi 15273 ;; 15274 esac 15275 15276 # Use C for the default configuration in the libtool script 15277 15278 lt_save_CC=$CC 15279 ac_ext=c 15280 ac_cpp='$CPP $CPPFLAGS' 15281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15283 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15284 15285 15286 # Source file extension for C test sources. 15287 ac_ext=c 15288 15289 # Object file extension for compiled C test sources. 15290 objext=o 15291 objext=$objext 15292 15293 # Code to be used in simple compile tests 15294 lt_simple_compile_test_code="int some_variable = 0;" 15295 15296 # Code to be used in simple link tests 15297 lt_simple_link_test_code='int main(){return(0);}' 15298 15299 15300 15301 15302 15303 15304 15305 # If no C compiler was specified, use CC. 15306 LTCC=${LTCC-"$CC"} 15307 15308 # If no C compiler flags were specified, use CFLAGS. 15309 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15310 15311 # Allow CC to be a program name with arguments. 15312 compiler=$CC 15313 15314 # Save the default compiler, since it gets overwritten when the other 15315 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15316 compiler_DEFAULT=$CC 15317 15318 # save warnings/boilerplate of simple test code 15319 ac_outfile=conftest.$ac_objext 15320 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15321 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15322 _lt_compiler_boilerplate=`cat conftest.err` 15323 $RM conftest* 15324 15325 ac_outfile=conftest.$ac_objext 15326 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15327 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15328 _lt_linker_boilerplate=`cat conftest.err` 15329 $RM -r conftest* 15330 15331 15332 ## CAVEAT EMPTOR: 15333 ## There is no encapsulation within the following macros, do not change 15334 ## the running order or otherwise move them around unless you know exactly 15335 ## what you are doing... 15336 if test -n "$compiler"; then 15337 15338 lt_prog_compiler_no_builtin_flag= 15339 15340 if test yes = "$GCC"; then 15341 case $cc_basename in 15342 nvcc*) 15343 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15344 *) 15345 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15346 esac 15347 15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15349 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15350 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 15351 $as_echo_n "(cached) " >&6 15352 else 15353 lt_cv_prog_compiler_rtti_exceptions=no 15354 ac_outfile=conftest.$ac_objext 15355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15356 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15357 # Insert the option either (1) after the last *FLAGS variable, or 15358 # (2) before a word containing "conftest.", or (3) at the end. 15359 # Note that $ac_compile itself does not contain backslashes and begins 15360 # with a dollar sign (not a hyphen), so the echo should work correctly. 15361 # The option is referenced via a variable to avoid confusing sed. 15362 lt_compile=`echo "$ac_compile" | $SED \ 15363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15365 -e 's:$: $lt_compiler_flag:'` 15366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15367 (eval "$lt_compile" 2>conftest.err) 15368 ac_status=$? 15369 cat conftest.err >&5 15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15371 if (exit $ac_status) && test -s "$ac_outfile"; then 15372 # The compiler can only warn and ignore the option if not recognized 15373 # So say no if there are warnings other than the usual output. 15374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15377 lt_cv_prog_compiler_rtti_exceptions=yes 15378 fi 15379 fi 15380 $RM conftest* 15381 15382 fi 15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15384 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15385 15386 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15387 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15388 else 15389 : 15390 fi 15391 15392 fi 15393 15394 15395 15396 15397 15398 15399 lt_prog_compiler_wl= 15400 lt_prog_compiler_pic= 15401 lt_prog_compiler_static= 15402 15403 15404 if test yes = "$GCC"; then 15405 lt_prog_compiler_wl='-Wl,' 15406 lt_prog_compiler_static='-static' 15407 15408 case $host_os in 15409 aix*) 15410 # All AIX code is PIC. 15411 if test ia64 = "$host_cpu"; then 15412 # AIX 5 now supports IA64 processor 15413 lt_prog_compiler_static='-Bstatic' 15414 fi 15415 lt_prog_compiler_pic='-fPIC' 15416 ;; 15417 15418 amigaos*) 15419 case $host_cpu in 15420 powerpc) 15421 # see comment about AmigaOS4 .so support 15422 lt_prog_compiler_pic='-fPIC' 15423 ;; 15424 m68k) 15425 # FIXME: we need at least 68020 code to build shared libraries, but 15426 # adding the '-m68020' flag to GCC prevents building anything better, 15427 # like '-m68040'. 15428 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15429 ;; 15430 esac 15431 ;; 15432 15433 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15434 # PIC is the default for these OSes. 15435 ;; 15436 15437 mingw* | cygwin* | pw32* | os2* | cegcc*) 15438 # This hack is so that the source file can tell whether it is being 15439 # built for inclusion in a dll (and should export symbols for example). 15440 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15441 # (--disable-auto-import) libraries 15442 lt_prog_compiler_pic='-DDLL_EXPORT' 15443 case $host_os in 15444 os2*) 15445 lt_prog_compiler_static='$wl-static' 15446 ;; 15447 esac 15448 ;; 15449 15450 darwin* | rhapsody*) 15451 # PIC is the default on this platform 15452 # Common symbols not allowed in MH_DYLIB files 15453 lt_prog_compiler_pic='-fno-common' 15454 ;; 15455 15456 haiku*) 15457 # PIC is the default for Haiku. 15458 # The "-static" flag exists, but is broken. 15459 lt_prog_compiler_static= 15460 ;; 15461 15462 hpux*) 15463 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15464 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15465 # sets the default TLS model and affects inlining. 15466 case $host_cpu in 15467 hppa*64*) 15468 # +Z the default 15469 ;; 15470 *) 15471 lt_prog_compiler_pic='-fPIC' 15472 ;; 15473 esac 15474 ;; 15475 15476 interix[3-9]*) 15477 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15478 # Instead, we relocate shared libraries at runtime. 15479 ;; 15480 15481 msdosdjgpp*) 15482 # Just because we use GCC doesn't mean we suddenly get shared libraries 15483 # on systems that don't support them. 15484 lt_prog_compiler_can_build_shared=no 15485 enable_shared=no 15486 ;; 15487 15488 *nto* | *qnx*) 15489 # QNX uses GNU C++, but need to define -shared option too, otherwise 15490 # it will coredump. 15491 lt_prog_compiler_pic='-fPIC -shared' 15492 ;; 15493 15494 sysv4*MP*) 15495 if test -d /usr/nec; then 15496 lt_prog_compiler_pic=-Kconform_pic 15497 fi 15498 ;; 15499 15500 *) 15501 lt_prog_compiler_pic='-fPIC' 15502 ;; 15503 esac 15504 15505 case $cc_basename in 15506 nvcc*) # Cuda Compiler Driver 2.2 15507 lt_prog_compiler_wl='-Xlinker ' 15508 if test -n "$lt_prog_compiler_pic"; then 15509 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15510 fi 15511 ;; 15512 esac 15513 else 15514 # PORTME Check for flag to pass linker flags through the system compiler. 15515 case $host_os in 15516 aix*) 15517 lt_prog_compiler_wl='-Wl,' 15518 if test ia64 = "$host_cpu"; then 15519 # AIX 5 now supports IA64 processor 15520 lt_prog_compiler_static='-Bstatic' 15521 else 15522 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15523 fi 15524 ;; 15525 15526 darwin* | rhapsody*) 15527 # PIC is the default on this platform 15528 # Common symbols not allowed in MH_DYLIB files 15529 lt_prog_compiler_pic='-fno-common' 15530 case $cc_basename in 15531 nagfor*) 15532 # NAG Fortran compiler 15533 lt_prog_compiler_wl='-Wl,-Wl,,' 15534 lt_prog_compiler_pic='-PIC' 15535 lt_prog_compiler_static='-Bstatic' 15536 ;; 15537 esac 15538 ;; 15539 15540 mingw* | cygwin* | pw32* | os2* | cegcc*) 15541 # This hack is so that the source file can tell whether it is being 15542 # built for inclusion in a dll (and should export symbols for example). 15543 lt_prog_compiler_pic='-DDLL_EXPORT' 15544 case $host_os in 15545 os2*) 15546 lt_prog_compiler_static='$wl-static' 15547 ;; 15548 esac 15549 ;; 15550 15551 hpux9* | hpux10* | hpux11*) 15552 lt_prog_compiler_wl='-Wl,' 15553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15554 # not for PA HP-UX. 15555 case $host_cpu in 15556 hppa*64*|ia64*) 15557 # +Z the default 15558 ;; 15559 *) 15560 lt_prog_compiler_pic='+Z' 15561 ;; 15562 esac 15563 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15564 lt_prog_compiler_static='$wl-a ${wl}archive' 15565 ;; 15566 15567 irix5* | irix6* | nonstopux*) 15568 lt_prog_compiler_wl='-Wl,' 15569 # PIC (with -KPIC) is the default. 15570 lt_prog_compiler_static='-non_shared' 15571 ;; 15572 15573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15574 case $cc_basename in 15575 # old Intel for x86_64, which still supported -KPIC. 15576 ecc*) 15577 lt_prog_compiler_wl='-Wl,' 15578 lt_prog_compiler_pic='-KPIC' 15579 lt_prog_compiler_static='-static' 15580 ;; 15581 # icc used to be incompatible with GCC. 15582 # ICC 10 doesn't accept -KPIC any more. 15583 icc* | ifort*) 15584 lt_prog_compiler_wl='-Wl,' 15585 lt_prog_compiler_pic='-fPIC' 15586 lt_prog_compiler_static='-static' 15587 ;; 15588 # Lahey Fortran 8.1. 15589 lf95*) 15590 lt_prog_compiler_wl='-Wl,' 15591 lt_prog_compiler_pic='--shared' 15592 lt_prog_compiler_static='--static' 15593 ;; 15594 nagfor*) 15595 # NAG Fortran compiler 15596 lt_prog_compiler_wl='-Wl,-Wl,,' 15597 lt_prog_compiler_pic='-PIC' 15598 lt_prog_compiler_static='-Bstatic' 15599 ;; 15600 tcc*) 15601 # Fabrice Bellard et al's Tiny C Compiler 15602 lt_prog_compiler_wl='-Wl,' 15603 lt_prog_compiler_pic='-fPIC' 15604 lt_prog_compiler_static='-static' 15605 ;; 15606 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15607 # Portland Group compilers (*not* the Pentium gcc compiler, 15608 # which looks to be a dead project) 15609 lt_prog_compiler_wl='-Wl,' 15610 lt_prog_compiler_pic='-fpic' 15611 lt_prog_compiler_static='-Bstatic' 15612 ;; 15613 ccc*) 15614 lt_prog_compiler_wl='-Wl,' 15615 # All Alpha code is PIC. 15616 lt_prog_compiler_static='-non_shared' 15617 ;; 15618 xl* | bgxl* | bgf* | mpixl*) 15619 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15620 lt_prog_compiler_wl='-Wl,' 15621 lt_prog_compiler_pic='-qpic' 15622 lt_prog_compiler_static='-qstaticlink' 15623 ;; 15624 *) 15625 case `$CC -V 2>&1 | sed 5q` in 15626 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15627 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15628 lt_prog_compiler_pic='-KPIC' 15629 lt_prog_compiler_static='-Bstatic' 15630 lt_prog_compiler_wl='' 15631 ;; 15632 *Sun\ F* | *Sun*Fortran*) 15633 lt_prog_compiler_pic='-KPIC' 15634 lt_prog_compiler_static='-Bstatic' 15635 lt_prog_compiler_wl='-Qoption ld ' 15636 ;; 15637 *Sun\ C*) 15638 # Sun C 5.9 15639 lt_prog_compiler_pic='-KPIC' 15640 lt_prog_compiler_static='-Bstatic' 15641 lt_prog_compiler_wl='-Wl,' 15642 ;; 15643 *Intel*\ [CF]*Compiler*) 15644 lt_prog_compiler_wl='-Wl,' 15645 lt_prog_compiler_pic='-fPIC' 15646 lt_prog_compiler_static='-static' 15647 ;; 15648 *Portland\ Group*) 15649 lt_prog_compiler_wl='-Wl,' 15650 lt_prog_compiler_pic='-fpic' 15651 lt_prog_compiler_static='-Bstatic' 15652 ;; 15653 esac 15654 ;; 15655 esac 15656 ;; 15657 15658 newsos6) 15659 lt_prog_compiler_pic='-KPIC' 15660 lt_prog_compiler_static='-Bstatic' 15661 ;; 15662 15663 *nto* | *qnx*) 15664 # QNX uses GNU C++, but need to define -shared option too, otherwise 15665 # it will coredump. 15666 lt_prog_compiler_pic='-fPIC -shared' 15667 ;; 15668 15669 osf3* | osf4* | osf5*) 15670 lt_prog_compiler_wl='-Wl,' 15671 # All OSF/1 code is PIC. 15672 lt_prog_compiler_static='-non_shared' 15673 ;; 15674 15675 rdos*) 15676 lt_prog_compiler_static='-non_shared' 15677 ;; 15678 15679 solaris*) 15680 lt_prog_compiler_pic='-KPIC' 15681 lt_prog_compiler_static='-Bstatic' 15682 case $cc_basename in 15683 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15684 lt_prog_compiler_wl='-Qoption ld ';; 15685 *) 15686 lt_prog_compiler_wl='-Wl,';; 15687 esac 15688 ;; 15689 15690 sunos4*) 15691 lt_prog_compiler_wl='-Qoption ld ' 15692 lt_prog_compiler_pic='-PIC' 15693 lt_prog_compiler_static='-Bstatic' 15694 ;; 15695 15696 sysv4 | sysv4.2uw2* | sysv4.3*) 15697 lt_prog_compiler_wl='-Wl,' 15698 lt_prog_compiler_pic='-KPIC' 15699 lt_prog_compiler_static='-Bstatic' 15700 ;; 15701 15702 sysv4*MP*) 15703 if test -d /usr/nec; then 15704 lt_prog_compiler_pic='-Kconform_pic' 15705 lt_prog_compiler_static='-Bstatic' 15706 fi 15707 ;; 15708 15709 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15710 lt_prog_compiler_wl='-Wl,' 15711 lt_prog_compiler_pic='-KPIC' 15712 lt_prog_compiler_static='-Bstatic' 15713 ;; 15714 15715 unicos*) 15716 lt_prog_compiler_wl='-Wl,' 15717 lt_prog_compiler_can_build_shared=no 15718 ;; 15719 15720 uts4*) 15721 lt_prog_compiler_pic='-pic' 15722 lt_prog_compiler_static='-Bstatic' 15723 ;; 15724 15725 *) 15726 lt_prog_compiler_can_build_shared=no 15727 ;; 15728 esac 15729 fi 15730 15731 case $host_os in 15732 # For platforms that do not support PIC, -DPIC is meaningless: 15733 *djgpp*) 15734 lt_prog_compiler_pic= 15735 ;; 15736 *) 15737 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15738 ;; 15739 esac 15740 15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15742 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15743 if ${lt_cv_prog_compiler_pic+:} false; then : 15744 $as_echo_n "(cached) " >&6 15745 else 15746 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15747 fi 15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15749 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 15750 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15751 15752 # 15753 # Check to make sure the PIC flag actually works. 15754 # 15755 if test -n "$lt_prog_compiler_pic"; then 15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15757 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15758 if ${lt_cv_prog_compiler_pic_works+:} false; then : 15759 $as_echo_n "(cached) " >&6 15760 else 15761 lt_cv_prog_compiler_pic_works=no 15762 ac_outfile=conftest.$ac_objext 15763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15764 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15765 # Insert the option either (1) after the last *FLAGS variable, or 15766 # (2) before a word containing "conftest.", or (3) at the end. 15767 # Note that $ac_compile itself does not contain backslashes and begins 15768 # with a dollar sign (not a hyphen), so the echo should work correctly. 15769 # The option is referenced via a variable to avoid confusing sed. 15770 lt_compile=`echo "$ac_compile" | $SED \ 15771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15773 -e 's:$: $lt_compiler_flag:'` 15774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15775 (eval "$lt_compile" 2>conftest.err) 15776 ac_status=$? 15777 cat conftest.err >&5 15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15779 if (exit $ac_status) && test -s "$ac_outfile"; then 15780 # The compiler can only warn and ignore the option if not recognized 15781 # So say no if there are warnings other than the usual output. 15782 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15785 lt_cv_prog_compiler_pic_works=yes 15786 fi 15787 fi 15788 $RM conftest* 15789 15790 fi 15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15792 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15793 15794 if test yes = "$lt_cv_prog_compiler_pic_works"; then 15795 case $lt_prog_compiler_pic in 15796 "" | " "*) ;; 15797 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15798 esac 15799 else 15800 lt_prog_compiler_pic= 15801 lt_prog_compiler_can_build_shared=no 15802 fi 15803 15804 fi 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 # 15817 # Check to make sure the static flag actually works. 15818 # 15819 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15821 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15822 if ${lt_cv_prog_compiler_static_works+:} false; then : 15823 $as_echo_n "(cached) " >&6 15824 else 15825 lt_cv_prog_compiler_static_works=no 15826 save_LDFLAGS=$LDFLAGS 15827 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15828 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15829 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15830 # The linker can only warn and ignore the option if not recognized 15831 # So say no if there are warnings 15832 if test -s conftest.err; then 15833 # Append any errors to the config.log. 15834 cat conftest.err 1>&5 15835 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15837 if diff conftest.exp conftest.er2 >/dev/null; then 15838 lt_cv_prog_compiler_static_works=yes 15839 fi 15840 else 15841 lt_cv_prog_compiler_static_works=yes 15842 fi 15843 fi 15844 $RM -r conftest* 15845 LDFLAGS=$save_LDFLAGS 15846 15847 fi 15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15849 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15850 15851 if test yes = "$lt_cv_prog_compiler_static_works"; then 15852 : 15853 else 15854 lt_prog_compiler_static= 15855 fi 15856 15857 15858 15859 15860 15861 15862 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15864 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15865 if ${lt_cv_prog_compiler_c_o+:} false; then : 15866 $as_echo_n "(cached) " >&6 15867 else 15868 lt_cv_prog_compiler_c_o=no 15869 $RM -r conftest 2>/dev/null 15870 mkdir conftest 15871 cd conftest 15872 mkdir out 15873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15874 15875 lt_compiler_flag="-o out/conftest2.$ac_objext" 15876 # Insert the option either (1) after the last *FLAGS variable, or 15877 # (2) before a word containing "conftest.", or (3) at the end. 15878 # Note that $ac_compile itself does not contain backslashes and begins 15879 # with a dollar sign (not a hyphen), so the echo should work correctly. 15880 lt_compile=`echo "$ac_compile" | $SED \ 15881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15883 -e 's:$: $lt_compiler_flag:'` 15884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15885 (eval "$lt_compile" 2>out/conftest.err) 15886 ac_status=$? 15887 cat out/conftest.err >&5 15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15889 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15890 then 15891 # The compiler can only warn and ignore the option if not recognized 15892 # So say no if there are warnings 15893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15896 lt_cv_prog_compiler_c_o=yes 15897 fi 15898 fi 15899 chmod u+w . 2>&5 15900 $RM conftest* 15901 # SGI C++ compiler will create directory out/ii_files/ for 15902 # template instantiation 15903 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15904 $RM out/* && rmdir out 15905 cd .. 15906 $RM -r conftest 15907 $RM conftest* 15908 15909 fi 15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15911 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15912 15913 15914 15915 15916 15917 15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15919 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15920 if ${lt_cv_prog_compiler_c_o+:} false; then : 15921 $as_echo_n "(cached) " >&6 15922 else 15923 lt_cv_prog_compiler_c_o=no 15924 $RM -r conftest 2>/dev/null 15925 mkdir conftest 15926 cd conftest 15927 mkdir out 15928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15929 15930 lt_compiler_flag="-o out/conftest2.$ac_objext" 15931 # Insert the option either (1) after the last *FLAGS variable, or 15932 # (2) before a word containing "conftest.", or (3) at the end. 15933 # Note that $ac_compile itself does not contain backslashes and begins 15934 # with a dollar sign (not a hyphen), so the echo should work correctly. 15935 lt_compile=`echo "$ac_compile" | $SED \ 15936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15938 -e 's:$: $lt_compiler_flag:'` 15939 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15940 (eval "$lt_compile" 2>out/conftest.err) 15941 ac_status=$? 15942 cat out/conftest.err >&5 15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15944 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15945 then 15946 # The compiler can only warn and ignore the option if not recognized 15947 # So say no if there are warnings 15948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15951 lt_cv_prog_compiler_c_o=yes 15952 fi 15953 fi 15954 chmod u+w . 2>&5 15955 $RM conftest* 15956 # SGI C++ compiler will create directory out/ii_files/ for 15957 # template instantiation 15958 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15959 $RM out/* && rmdir out 15960 cd .. 15961 $RM -r conftest 15962 $RM conftest* 15963 15964 fi 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15966 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15967 15968 15969 15970 15971 hard_links=nottested 15972 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15973 # do not overwrite the value of need_locks provided by the user 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15975 $as_echo_n "checking if we can lock with hard links... " >&6; } 15976 hard_links=yes 15977 $RM conftest* 15978 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15979 touch conftest.a 15980 ln conftest.a conftest.b 2>&5 || hard_links=no 15981 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15983 $as_echo "$hard_links" >&6; } 15984 if test no = "$hard_links"; then 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15986 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15987 need_locks=warn 15988 fi 15989 else 15990 need_locks=no 15991 fi 15992 15993 15994 15995 15996 15997 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15999 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16000 16001 runpath_var= 16002 allow_undefined_flag= 16003 always_export_symbols=no 16004 archive_cmds= 16005 archive_expsym_cmds= 16006 compiler_needs_object=no 16007 enable_shared_with_static_runtimes=no 16008 export_dynamic_flag_spec= 16009 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16010 hardcode_automatic=no 16011 hardcode_direct=no 16012 hardcode_direct_absolute=no 16013 hardcode_libdir_flag_spec= 16014 hardcode_libdir_separator= 16015 hardcode_minus_L=no 16016 hardcode_shlibpath_var=unsupported 16017 inherit_rpath=no 16018 link_all_deplibs=unknown 16019 module_cmds= 16020 module_expsym_cmds= 16021 old_archive_from_new_cmds= 16022 old_archive_from_expsyms_cmds= 16023 thread_safe_flag_spec= 16024 whole_archive_flag_spec= 16025 # include_expsyms should be a list of space-separated symbols to be *always* 16026 # included in the symbol list 16027 include_expsyms= 16028 # exclude_expsyms can be an extended regexp of symbols to exclude 16029 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16030 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16031 # as well as any symbol that contains 'd'. 16032 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16033 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16034 # platforms (ab)use it in PIC code, but their linkers get confused if 16035 # the symbol is explicitly referenced. Since portable code cannot 16036 # rely on this symbol name, it's probably fine to never include it in 16037 # preloaded symbol tables. 16038 # Exclude shared library initialization/finalization symbols. 16039 extract_expsyms_cmds= 16040 16041 case $host_os in 16042 cygwin* | mingw* | pw32* | cegcc*) 16043 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16044 # When not using gcc, we currently assume that we are using 16045 # Microsoft Visual C++. 16046 if test yes != "$GCC"; then 16047 with_gnu_ld=no 16048 fi 16049 ;; 16050 interix*) 16051 # we just hope/assume this is gcc and not c89 (= MSVC++) 16052 with_gnu_ld=yes 16053 ;; 16054 openbsd* | bitrig*) 16055 with_gnu_ld=no 16056 ;; 16057 esac 16058 16059 ld_shlibs=yes 16060 16061 # On some targets, GNU ld is compatible enough with the native linker 16062 # that we're better off using the native interface for both. 16063 lt_use_gnu_ld_interface=no 16064 if test yes = "$with_gnu_ld"; then 16065 case $host_os in 16066 aix*) 16067 # The AIX port of GNU ld has always aspired to compatibility 16068 # with the native linker. However, as the warning in the GNU ld 16069 # block says, versions before 2.19.5* couldn't really create working 16070 # shared libraries, regardless of the interface used. 16071 case `$LD -v 2>&1` in 16072 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16073 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16074 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16075 *) 16076 lt_use_gnu_ld_interface=yes 16077 ;; 16078 esac 16079 ;; 16080 *) 16081 lt_use_gnu_ld_interface=yes 16082 ;; 16083 esac 16084 fi 16085 16086 if test yes = "$lt_use_gnu_ld_interface"; then 16087 # If archive_cmds runs LD, not CC, wlarc should be empty 16088 wlarc='$wl' 16089 16090 # Set some defaults for GNU ld with shared library support. These 16091 # are reset later if shared libraries are not supported. Putting them 16092 # here allows them to be overridden if necessary. 16093 runpath_var=LD_RUN_PATH 16094 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16095 export_dynamic_flag_spec='$wl--export-dynamic' 16096 # ancient GNU ld didn't support --whole-archive et. al. 16097 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16098 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16099 else 16100 whole_archive_flag_spec= 16101 fi 16102 supports_anon_versioning=no 16103 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 16104 *GNU\ gold*) supports_anon_versioning=yes ;; 16105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16108 *\ 2.11.*) ;; # other 2.11 versions 16109 *) supports_anon_versioning=yes ;; 16110 esac 16111 16112 # See if GNU ld supports shared libraries. 16113 case $host_os in 16114 aix[3-9]*) 16115 # On AIX/PPC, the GNU linker is very broken 16116 if test ia64 != "$host_cpu"; then 16117 ld_shlibs=no 16118 cat <<_LT_EOF 1>&2 16119 16120 *** Warning: the GNU linker, at least up to release 2.19, is reported 16121 *** to be unable to reliably create shared libraries on AIX. 16122 *** Therefore, libtool is disabling shared libraries support. If you 16123 *** really care for shared libraries, you may want to install binutils 16124 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16125 *** You will then need to restart the configuration process. 16126 16127 _LT_EOF 16128 fi 16129 ;; 16130 16131 amigaos*) 16132 case $host_cpu in 16133 powerpc) 16134 # see comment about AmigaOS4 .so support 16135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16136 archive_expsym_cmds='' 16137 ;; 16138 m68k) 16139 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)' 16140 hardcode_libdir_flag_spec='-L$libdir' 16141 hardcode_minus_L=yes 16142 ;; 16143 esac 16144 ;; 16145 16146 beos*) 16147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16148 allow_undefined_flag=unsupported 16149 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16150 # support --undefined. This deserves some investigation. FIXME 16151 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16152 else 16153 ld_shlibs=no 16154 fi 16155 ;; 16156 16157 cygwin* | mingw* | pw32* | cegcc*) 16158 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16159 # as there is no search path for DLLs. 16160 hardcode_libdir_flag_spec='-L$libdir' 16161 export_dynamic_flag_spec='$wl--export-all-symbols' 16162 allow_undefined_flag=unsupported 16163 always_export_symbols=no 16164 enable_shared_with_static_runtimes=yes 16165 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' 16166 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16167 16168 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16170 # If the export-symbols file already is a .def file, use it as 16171 # is; otherwise, prepend EXPORTS... 16172 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16173 cp $export_symbols $output_objdir/$soname.def; 16174 else 16175 echo EXPORTS > $output_objdir/$soname.def; 16176 cat $export_symbols >> $output_objdir/$soname.def; 16177 fi~ 16178 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16179 else 16180 ld_shlibs=no 16181 fi 16182 ;; 16183 16184 haiku*) 16185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16186 link_all_deplibs=yes 16187 ;; 16188 16189 os2*) 16190 hardcode_libdir_flag_spec='-L$libdir' 16191 hardcode_minus_L=yes 16192 allow_undefined_flag=unsupported 16193 shrext_cmds=.dll 16194 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16195 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16196 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16197 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16198 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16199 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16200 emximp -o $lib $output_objdir/$libname.def' 16201 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16202 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16203 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16204 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16205 prefix_cmds="$SED"~ 16206 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16207 prefix_cmds="$prefix_cmds -e 1d"; 16208 fi~ 16209 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16210 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16211 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16212 emximp -o $lib $output_objdir/$libname.def' 16213 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16214 enable_shared_with_static_runtimes=yes 16215 ;; 16216 16217 interix[3-9]*) 16218 hardcode_direct=no 16219 hardcode_shlibpath_var=no 16220 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16221 export_dynamic_flag_spec='$wl-E' 16222 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16223 # Instead, shared libraries are loaded at an image base (0x10000000 by 16224 # default) and relocated if they conflict, which is a slow very memory 16225 # consuming and fragmenting process. To avoid this, we pick a random, 16226 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16227 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16228 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16229 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' 16230 ;; 16231 16232 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16233 tmp_diet=no 16234 if test linux-dietlibc = "$host_os"; then 16235 case $cc_basename in 16236 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16237 esac 16238 fi 16239 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16240 && test no = "$tmp_diet" 16241 then 16242 tmp_addflag=' $pic_flag' 16243 tmp_sharedflag='-shared' 16244 case $cc_basename,$host_cpu in 16245 pgcc*) # Portland Group C compiler 16246 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' 16247 tmp_addflag=' $pic_flag' 16248 ;; 16249 pgf77* | pgf90* | pgf95* | pgfortran*) 16250 # Portland Group f77 and f90 compilers 16251 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' 16252 tmp_addflag=' $pic_flag -Mnomain' ;; 16253 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16254 tmp_addflag=' -i_dynamic' ;; 16255 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16256 tmp_addflag=' -i_dynamic -nofor_main' ;; 16257 ifc* | ifort*) # Intel Fortran compiler 16258 tmp_addflag=' -nofor_main' ;; 16259 lf95*) # Lahey Fortran 8.1 16260 whole_archive_flag_spec= 16261 tmp_sharedflag='--shared' ;; 16262 nagfor*) # NAGFOR 5.3 16263 tmp_sharedflag='-Wl,-shared' ;; 16264 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16265 tmp_sharedflag='-qmkshrobj' 16266 tmp_addflag= ;; 16267 nvcc*) # Cuda Compiler Driver 2.2 16268 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' 16269 compiler_needs_object=yes 16270 ;; 16271 esac 16272 case `$CC -V 2>&1 | sed 5q` in 16273 *Sun\ C*) # Sun C 5.9 16274 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' 16275 compiler_needs_object=yes 16276 tmp_sharedflag='-G' ;; 16277 *Sun\ F*) # Sun Fortran 8.3 16278 tmp_sharedflag='-G' ;; 16279 esac 16280 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16281 16282 if test yes = "$supports_anon_versioning"; then 16283 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16284 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16285 echo "local: *; };" >> $output_objdir/$libname.ver~ 16286 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16287 fi 16288 16289 case $cc_basename in 16290 tcc*) 16291 export_dynamic_flag_spec='-rdynamic' 16292 ;; 16293 xlf* | bgf* | bgxlf* | mpixlf*) 16294 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16295 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16296 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16297 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16298 if test yes = "$supports_anon_versioning"; then 16299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16301 echo "local: *; };" >> $output_objdir/$libname.ver~ 16302 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16303 fi 16304 ;; 16305 esac 16306 else 16307 ld_shlibs=no 16308 fi 16309 ;; 16310 16311 netbsd*) 16312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16313 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16314 wlarc= 16315 else 16316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16317 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16318 fi 16319 ;; 16320 16321 solaris*) 16322 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16323 ld_shlibs=no 16324 cat <<_LT_EOF 1>&2 16325 16326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16327 *** create shared libraries on Solaris systems. Therefore, libtool 16328 *** is disabling shared libraries support. We urge you to upgrade GNU 16329 *** binutils to release 2.9.1 or newer. Another option is to modify 16330 *** your PATH or compiler configuration so that the native linker is 16331 *** used, and then restart. 16332 16333 _LT_EOF 16334 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16336 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16337 else 16338 ld_shlibs=no 16339 fi 16340 ;; 16341 16342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16343 case `$LD -v 2>&1` in 16344 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16345 ld_shlibs=no 16346 cat <<_LT_EOF 1>&2 16347 16348 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16349 *** reliably create shared libraries on SCO systems. Therefore, libtool 16350 *** is disabling shared libraries support. We urge you to upgrade GNU 16351 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16352 *** your PATH or compiler configuration so that the native linker is 16353 *** used, and then restart. 16354 16355 _LT_EOF 16356 ;; 16357 *) 16358 # For security reasons, it is highly recommended that you always 16359 # use absolute paths for naming shared libraries, and exclude the 16360 # DT_RUNPATH tag from executables and libraries. But doing so 16361 # requires that you compile everything twice, which is a pain. 16362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16363 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16366 else 16367 ld_shlibs=no 16368 fi 16369 ;; 16370 esac 16371 ;; 16372 16373 sunos4*) 16374 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16375 wlarc= 16376 hardcode_direct=yes 16377 hardcode_shlibpath_var=no 16378 ;; 16379 16380 *) 16381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16382 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16383 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16384 else 16385 ld_shlibs=no 16386 fi 16387 ;; 16388 esac 16389 16390 if test no = "$ld_shlibs"; then 16391 runpath_var= 16392 hardcode_libdir_flag_spec= 16393 export_dynamic_flag_spec= 16394 whole_archive_flag_spec= 16395 fi 16396 else 16397 # PORTME fill in a description of your system's linker (not GNU ld) 16398 case $host_os in 16399 aix3*) 16400 allow_undefined_flag=unsupported 16401 always_export_symbols=yes 16402 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' 16403 # Note: this linker hardcodes the directories in LIBPATH if there 16404 # are no directories specified by -L. 16405 hardcode_minus_L=yes 16406 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16407 # Neither direct hardcoding nor static linking is supported with a 16408 # broken collect2. 16409 hardcode_direct=unsupported 16410 fi 16411 ;; 16412 16413 aix[4-9]*) 16414 if test ia64 = "$host_cpu"; then 16415 # On IA64, the linker does run time linking by default, so we don't 16416 # have to do anything special. 16417 aix_use_runtimelinking=no 16418 exp_sym_flag='-Bexport' 16419 no_entry_flag= 16420 else 16421 # If we're using GNU nm, then we don't want the "-C" option. 16422 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16423 # Without the "-l" option, or with the "-B" option, AIX nm treats 16424 # weak defined symbols like other global defined symbols, whereas 16425 # GNU nm marks them as "W". 16426 # While the 'weak' keyword is ignored in the Export File, we need 16427 # it in the Import File for the 'aix-soname' feature, so we have 16428 # to replace the "-B" option with "-P" for AIX nm. 16429 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16430 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' 16431 else 16432 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 == "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' 16433 fi 16434 aix_use_runtimelinking=no 16435 16436 # Test if we are trying to use run time linking or normal 16437 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16438 # have runtime linking enabled, and use it for executables. 16439 # For shared libraries, we enable/disable runtime linking 16440 # depending on the kind of the shared library created - 16441 # when "with_aix_soname,aix_use_runtimelinking" is: 16442 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16443 # "aix,yes" lib.so shared, rtl:yes, for executables 16444 # lib.a static archive 16445 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16446 # lib.a(lib.so.V) shared, rtl:no, for executables 16447 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16448 # lib.a(lib.so.V) shared, rtl:no 16449 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16450 # lib.a static archive 16451 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16452 for ld_flag in $LDFLAGS; do 16453 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16454 aix_use_runtimelinking=yes 16455 break 16456 fi 16457 done 16458 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16459 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16460 # so we don't have lib.a shared libs to link our executables. 16461 # We have to force runtime linking in this case. 16462 aix_use_runtimelinking=yes 16463 LDFLAGS="$LDFLAGS -Wl,-brtl" 16464 fi 16465 ;; 16466 esac 16467 16468 exp_sym_flag='-bexport' 16469 no_entry_flag='-bnoentry' 16470 fi 16471 16472 # When large executables or shared objects are built, AIX ld can 16473 # have problems creating the table of contents. If linking a library 16474 # or program results in "error TOC overflow" add -mminimal-toc to 16475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16477 16478 archive_cmds='' 16479 hardcode_direct=yes 16480 hardcode_direct_absolute=yes 16481 hardcode_libdir_separator=':' 16482 link_all_deplibs=yes 16483 file_list_spec='$wl-f,' 16484 case $with_aix_soname,$aix_use_runtimelinking in 16485 aix,*) ;; # traditional, no import file 16486 svr4,* | *,yes) # use import file 16487 # The Import File defines what to hardcode. 16488 hardcode_direct=no 16489 hardcode_direct_absolute=no 16490 ;; 16491 esac 16492 16493 if test yes = "$GCC"; then 16494 case $host_os in aix4.[012]|aix4.[012].*) 16495 # We only want to do this on AIX 4.2 and lower, the check 16496 # below for broken collect2 doesn't work under 4.3+ 16497 collect2name=`$CC -print-prog-name=collect2` 16498 if test -f "$collect2name" && 16499 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16500 then 16501 # We have reworked collect2 16502 : 16503 else 16504 # We have old collect2 16505 hardcode_direct=unsupported 16506 # It fails to find uninstalled libraries when the uninstalled 16507 # path is not listed in the libpath. Setting hardcode_minus_L 16508 # to unsupported forces relinking 16509 hardcode_minus_L=yes 16510 hardcode_libdir_flag_spec='-L$libdir' 16511 hardcode_libdir_separator= 16512 fi 16513 ;; 16514 esac 16515 shared_flag='-shared' 16516 if test yes = "$aix_use_runtimelinking"; then 16517 shared_flag="$shared_flag "'$wl-G' 16518 fi 16519 # Need to ensure runtime linking is disabled for the traditional 16520 # shared library, or the linker may eventually find shared libraries 16521 # /with/ Import File - we do not want to mix them. 16522 shared_flag_aix='-shared' 16523 shared_flag_svr4='-shared $wl-G' 16524 else 16525 # not using gcc 16526 if test ia64 = "$host_cpu"; then 16527 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16528 # chokes on -Wl,-G. The following line is correct: 16529 shared_flag='-G' 16530 else 16531 if test yes = "$aix_use_runtimelinking"; then 16532 shared_flag='$wl-G' 16533 else 16534 shared_flag='$wl-bM:SRE' 16535 fi 16536 shared_flag_aix='$wl-bM:SRE' 16537 shared_flag_svr4='$wl-G' 16538 fi 16539 fi 16540 16541 export_dynamic_flag_spec='$wl-bexpall' 16542 # It seems that -bexpall does not export symbols beginning with 16543 # underscore (_), so it is better to generate a list of symbols to export. 16544 always_export_symbols=yes 16545 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16546 # Warning - without using the other runtime loading flags (-brtl), 16547 # -berok will link without error, but may produce a broken library. 16548 allow_undefined_flag='-berok' 16549 # Determine the default libpath from the value encoded in an 16550 # empty executable. 16551 if test set = "${lt_cv_aix_libpath+set}"; then 16552 aix_libpath=$lt_cv_aix_libpath 16553 else 16554 if ${lt_cv_aix_libpath_+:} false; then : 16555 $as_echo_n "(cached) " >&6 16556 else 16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16558 /* end confdefs.h. */ 16559 16560 int 16561 main () 16562 { 16563 16564 ; 16565 return 0; 16566 } 16567 _ACEOF 16568 if ac_fn_c_try_link "$LINENO"; then : 16569 16570 lt_aix_libpath_sed=' 16571 /Import File Strings/,/^$/ { 16572 /^0/ { 16573 s/^0 *\([^ ]*\) *$/\1/ 16574 p 16575 } 16576 }' 16577 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16578 # Check for a 64-bit object if we didn't find anything. 16579 if test -z "$lt_cv_aix_libpath_"; then 16580 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16581 fi 16582 fi 16583 rm -f core conftest.err conftest.$ac_objext \ 16584 conftest$ac_exeext conftest.$ac_ext 16585 if test -z "$lt_cv_aix_libpath_"; then 16586 lt_cv_aix_libpath_=/usr/lib:/lib 16587 fi 16588 16589 fi 16590 16591 aix_libpath=$lt_cv_aix_libpath_ 16592 fi 16593 16594 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16595 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 16596 else 16597 if test ia64 = "$host_cpu"; then 16598 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16599 allow_undefined_flag="-z nodefs" 16600 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" 16601 else 16602 # Determine the default libpath from the value encoded in an 16603 # empty executable. 16604 if test set = "${lt_cv_aix_libpath+set}"; then 16605 aix_libpath=$lt_cv_aix_libpath 16606 else 16607 if ${lt_cv_aix_libpath_+:} false; then : 16608 $as_echo_n "(cached) " >&6 16609 else 16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16611 /* end confdefs.h. */ 16612 16613 int 16614 main () 16615 { 16616 16617 ; 16618 return 0; 16619 } 16620 _ACEOF 16621 if ac_fn_c_try_link "$LINENO"; then : 16622 16623 lt_aix_libpath_sed=' 16624 /Import File Strings/,/^$/ { 16625 /^0/ { 16626 s/^0 *\([^ ]*\) *$/\1/ 16627 p 16628 } 16629 }' 16630 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16631 # Check for a 64-bit object if we didn't find anything. 16632 if test -z "$lt_cv_aix_libpath_"; then 16633 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16634 fi 16635 fi 16636 rm -f core conftest.err conftest.$ac_objext \ 16637 conftest$ac_exeext conftest.$ac_ext 16638 if test -z "$lt_cv_aix_libpath_"; then 16639 lt_cv_aix_libpath_=/usr/lib:/lib 16640 fi 16641 16642 fi 16643 16644 aix_libpath=$lt_cv_aix_libpath_ 16645 fi 16646 16647 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16648 # Warning - without using the other run time loading flags, 16649 # -berok will link without error, but may produce a broken library. 16650 no_undefined_flag=' $wl-bernotok' 16651 allow_undefined_flag=' $wl-berok' 16652 if test yes = "$with_gnu_ld"; then 16653 # We only use this code for GNU lds that support --whole-archive. 16654 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16655 else 16656 # Exported symbols can be pulled into shared objects from archives 16657 whole_archive_flag_spec='$convenience' 16658 fi 16659 archive_cmds_need_lc=yes 16660 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16661 # -brtl affects multiple linker settings, -berok does not and is overridden later 16662 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16663 if test svr4 != "$with_aix_soname"; then 16664 # This is similar to how AIX traditionally builds its shared libraries. 16665 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' 16666 fi 16667 if test aix != "$with_aix_soname"; then 16668 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' 16669 else 16670 # used by -dlpreopen to get the symbols 16671 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16672 fi 16673 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16674 fi 16675 fi 16676 ;; 16677 16678 amigaos*) 16679 case $host_cpu in 16680 powerpc) 16681 # see comment about AmigaOS4 .so support 16682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16683 archive_expsym_cmds='' 16684 ;; 16685 m68k) 16686 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)' 16687 hardcode_libdir_flag_spec='-L$libdir' 16688 hardcode_minus_L=yes 16689 ;; 16690 esac 16691 ;; 16692 16693 bsdi[45]*) 16694 export_dynamic_flag_spec=-rdynamic 16695 ;; 16696 16697 cygwin* | mingw* | pw32* | cegcc*) 16698 # When not using gcc, we currently assume that we are using 16699 # Microsoft Visual C++. 16700 # hardcode_libdir_flag_spec is actually meaningless, as there is 16701 # no search path for DLLs. 16702 case $cc_basename in 16703 cl*) 16704 # Native MSVC 16705 hardcode_libdir_flag_spec=' ' 16706 allow_undefined_flag=unsupported 16707 always_export_symbols=yes 16708 file_list_spec='@' 16709 # Tell ltmain to make .lib files, not .a files. 16710 libext=lib 16711 # Tell ltmain to make .dll files, not .so files. 16712 shrext_cmds=.dll 16713 # FIXME: Setting linknames here is a bad hack. 16714 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16715 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16716 cp "$export_symbols" "$output_objdir/$soname.def"; 16717 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16718 else 16719 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16720 fi~ 16721 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16722 linknames=' 16723 # The linker will not automatically build a static lib if we build a DLL. 16724 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16725 enable_shared_with_static_runtimes=yes 16726 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16727 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16728 # Don't use ranlib 16729 old_postinstall_cmds='chmod 644 $oldlib' 16730 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16731 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16732 case $lt_outputfile in 16733 *.exe|*.EXE) ;; 16734 *) 16735 lt_outputfile=$lt_outputfile.exe 16736 lt_tool_outputfile=$lt_tool_outputfile.exe 16737 ;; 16738 esac~ 16739 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16740 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16741 $RM "$lt_outputfile.manifest"; 16742 fi' 16743 ;; 16744 *) 16745 # Assume MSVC wrapper 16746 hardcode_libdir_flag_spec=' ' 16747 allow_undefined_flag=unsupported 16748 # Tell ltmain to make .lib files, not .a files. 16749 libext=lib 16750 # Tell ltmain to make .dll files, not .so files. 16751 shrext_cmds=.dll 16752 # FIXME: Setting linknames here is a bad hack. 16753 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16754 # The linker will automatically build a .lib file if we build a DLL. 16755 old_archive_from_new_cmds='true' 16756 # FIXME: Should let the user specify the lib program. 16757 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16758 enable_shared_with_static_runtimes=yes 16759 ;; 16760 esac 16761 ;; 16762 16763 darwin* | rhapsody*) 16764 16765 16766 archive_cmds_need_lc=no 16767 hardcode_direct=no 16768 hardcode_automatic=yes 16769 hardcode_shlibpath_var=unsupported 16770 if test yes = "$lt_cv_ld_force_load"; then 16771 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\"`' 16772 16773 else 16774 whole_archive_flag_spec='' 16775 fi 16776 link_all_deplibs=yes 16777 allow_undefined_flag=$_lt_dar_allow_undefined 16778 case $cc_basename in 16779 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16780 *) _lt_dar_can_shared=$GCC ;; 16781 esac 16782 if test yes = "$_lt_dar_can_shared"; then 16783 output_verbose_link_cmd=func_echo_all 16784 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16785 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16786 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" 16787 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" 16788 16789 else 16790 ld_shlibs=no 16791 fi 16792 16793 ;; 16794 16795 dgux*) 16796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16797 hardcode_libdir_flag_spec='-L$libdir' 16798 hardcode_shlibpath_var=no 16799 ;; 16800 16801 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16802 # support. Future versions do this automatically, but an explicit c++rt0.o 16803 # does not break anything, and helps significantly (at the cost of a little 16804 # extra space). 16805 freebsd2.2*) 16806 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16807 hardcode_libdir_flag_spec='-R$libdir' 16808 hardcode_direct=yes 16809 hardcode_shlibpath_var=no 16810 ;; 16811 16812 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16813 freebsd2.*) 16814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16815 hardcode_direct=yes 16816 hardcode_minus_L=yes 16817 hardcode_shlibpath_var=no 16818 ;; 16819 16820 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16821 freebsd* | dragonfly*) 16822 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16823 hardcode_libdir_flag_spec='-R$libdir' 16824 hardcode_direct=yes 16825 hardcode_shlibpath_var=no 16826 ;; 16827 16828 hpux9*) 16829 if test yes = "$GCC"; then 16830 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' 16831 else 16832 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' 16833 fi 16834 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16835 hardcode_libdir_separator=: 16836 hardcode_direct=yes 16837 16838 # hardcode_minus_L: Not really in the search PATH, 16839 # but as the default location of the library. 16840 hardcode_minus_L=yes 16841 export_dynamic_flag_spec='$wl-E' 16842 ;; 16843 16844 hpux10*) 16845 if test yes,no = "$GCC,$with_gnu_ld"; then 16846 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16847 else 16848 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16849 fi 16850 if test no = "$with_gnu_ld"; then 16851 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16852 hardcode_libdir_separator=: 16853 hardcode_direct=yes 16854 hardcode_direct_absolute=yes 16855 export_dynamic_flag_spec='$wl-E' 16856 # hardcode_minus_L: Not really in the search PATH, 16857 # but as the default location of the library. 16858 hardcode_minus_L=yes 16859 fi 16860 ;; 16861 16862 hpux11*) 16863 if test yes,no = "$GCC,$with_gnu_ld"; then 16864 case $host_cpu in 16865 hppa*64*) 16866 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16867 ;; 16868 ia64*) 16869 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16870 ;; 16871 *) 16872 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16873 ;; 16874 esac 16875 else 16876 case $host_cpu in 16877 hppa*64*) 16878 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16879 ;; 16880 ia64*) 16881 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16882 ;; 16883 *) 16884 16885 # Older versions of the 11.00 compiler do not understand -b yet 16886 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16888 $as_echo_n "checking if $CC understands -b... " >&6; } 16889 if ${lt_cv_prog_compiler__b+:} false; then : 16890 $as_echo_n "(cached) " >&6 16891 else 16892 lt_cv_prog_compiler__b=no 16893 save_LDFLAGS=$LDFLAGS 16894 LDFLAGS="$LDFLAGS -b" 16895 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16896 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16897 # The linker can only warn and ignore the option if not recognized 16898 # So say no if there are warnings 16899 if test -s conftest.err; then 16900 # Append any errors to the config.log. 16901 cat conftest.err 1>&5 16902 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16904 if diff conftest.exp conftest.er2 >/dev/null; then 16905 lt_cv_prog_compiler__b=yes 16906 fi 16907 else 16908 lt_cv_prog_compiler__b=yes 16909 fi 16910 fi 16911 $RM -r conftest* 16912 LDFLAGS=$save_LDFLAGS 16913 16914 fi 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16916 $as_echo "$lt_cv_prog_compiler__b" >&6; } 16917 16918 if test yes = "$lt_cv_prog_compiler__b"; then 16919 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16920 else 16921 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16922 fi 16923 16924 ;; 16925 esac 16926 fi 16927 if test no = "$with_gnu_ld"; then 16928 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16929 hardcode_libdir_separator=: 16930 16931 case $host_cpu in 16932 hppa*64*|ia64*) 16933 hardcode_direct=no 16934 hardcode_shlibpath_var=no 16935 ;; 16936 *) 16937 hardcode_direct=yes 16938 hardcode_direct_absolute=yes 16939 export_dynamic_flag_spec='$wl-E' 16940 16941 # hardcode_minus_L: Not really in the search PATH, 16942 # but as the default location of the library. 16943 hardcode_minus_L=yes 16944 ;; 16945 esac 16946 fi 16947 ;; 16948 16949 irix5* | irix6* | nonstopux*) 16950 if test yes = "$GCC"; then 16951 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' 16952 # Try to use the -exported_symbol ld option, if it does not 16953 # work, assume that -exports_file does not work either and 16954 # implicitly export all symbols. 16955 # This should be the same for all languages, so no per-tag cache variable. 16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16957 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16958 if ${lt_cv_irix_exported_symbol+:} false; then : 16959 $as_echo_n "(cached) " >&6 16960 else 16961 save_LDFLAGS=$LDFLAGS 16962 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16964 /* end confdefs.h. */ 16965 int foo (void) { return 0; } 16966 _ACEOF 16967 if ac_fn_c_try_link "$LINENO"; then : 16968 lt_cv_irix_exported_symbol=yes 16969 else 16970 lt_cv_irix_exported_symbol=no 16971 fi 16972 rm -f core conftest.err conftest.$ac_objext \ 16973 conftest$ac_exeext conftest.$ac_ext 16974 LDFLAGS=$save_LDFLAGS 16975 fi 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16977 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 16978 if test yes = "$lt_cv_irix_exported_symbol"; then 16979 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' 16980 fi 16981 else 16982 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' 16983 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' 16984 fi 16985 archive_cmds_need_lc='no' 16986 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16987 hardcode_libdir_separator=: 16988 inherit_rpath=yes 16989 link_all_deplibs=yes 16990 ;; 16991 16992 linux*) 16993 case $cc_basename in 16994 tcc*) 16995 # Fabrice Bellard et al's Tiny C Compiler 16996 ld_shlibs=yes 16997 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16998 ;; 16999 esac 17000 ;; 17001 17002 netbsd*) 17003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17005 else 17006 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17007 fi 17008 hardcode_libdir_flag_spec='-R$libdir' 17009 hardcode_direct=yes 17010 hardcode_shlibpath_var=no 17011 ;; 17012 17013 newsos6) 17014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17015 hardcode_direct=yes 17016 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17017 hardcode_libdir_separator=: 17018 hardcode_shlibpath_var=no 17019 ;; 17020 17021 *nto* | *qnx*) 17022 ;; 17023 17024 openbsd* | bitrig*) 17025 if test -f /usr/libexec/ld.so; then 17026 hardcode_direct=yes 17027 hardcode_shlibpath_var=no 17028 hardcode_direct_absolute=yes 17029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17030 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17031 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17032 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17033 export_dynamic_flag_spec='$wl-E' 17034 else 17035 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17036 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17037 fi 17038 else 17039 ld_shlibs=no 17040 fi 17041 ;; 17042 17043 os2*) 17044 hardcode_libdir_flag_spec='-L$libdir' 17045 hardcode_minus_L=yes 17046 allow_undefined_flag=unsupported 17047 shrext_cmds=.dll 17048 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17049 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17050 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17051 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17052 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17053 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17054 emximp -o $lib $output_objdir/$libname.def' 17055 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17056 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17057 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17058 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17059 prefix_cmds="$SED"~ 17060 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17061 prefix_cmds="$prefix_cmds -e 1d"; 17062 fi~ 17063 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17064 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17065 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17066 emximp -o $lib $output_objdir/$libname.def' 17067 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17068 enable_shared_with_static_runtimes=yes 17069 ;; 17070 17071 osf3*) 17072 if test yes = "$GCC"; then 17073 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17074 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' 17075 else 17076 allow_undefined_flag=' -expect_unresolved \*' 17077 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' 17078 fi 17079 archive_cmds_need_lc='no' 17080 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17081 hardcode_libdir_separator=: 17082 ;; 17083 17084 osf4* | osf5*) # as osf3* with the addition of -msym flag 17085 if test yes = "$GCC"; then 17086 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17087 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' 17088 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17089 else 17090 allow_undefined_flag=' -expect_unresolved \*' 17091 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' 17092 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~ 17093 $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' 17094 17095 # Both c and cxx compiler support -rpath directly 17096 hardcode_libdir_flag_spec='-rpath $libdir' 17097 fi 17098 archive_cmds_need_lc='no' 17099 hardcode_libdir_separator=: 17100 ;; 17101 17102 solaris*) 17103 no_undefined_flag=' -z defs' 17104 if test yes = "$GCC"; then 17105 wlarc='$wl' 17106 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17107 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17108 $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' 17109 else 17110 case `$CC -V 2>&1` in 17111 *"Compilers 5.0"*) 17112 wlarc='' 17113 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17114 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17115 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17116 ;; 17117 *) 17118 wlarc='$wl' 17119 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17120 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17121 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17122 ;; 17123 esac 17124 fi 17125 hardcode_libdir_flag_spec='-R$libdir' 17126 hardcode_shlibpath_var=no 17127 case $host_os in 17128 solaris2.[0-5] | solaris2.[0-5].*) ;; 17129 *) 17130 # The compiler driver will combine and reorder linker options, 17131 # but understands '-z linker_flag'. GCC discards it without '$wl', 17132 # but is careful enough not to reorder. 17133 # Supported since Solaris 2.6 (maybe 2.5.1?) 17134 if test yes = "$GCC"; then 17135 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17136 else 17137 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17138 fi 17139 ;; 17140 esac 17141 link_all_deplibs=yes 17142 ;; 17143 17144 sunos4*) 17145 if test sequent = "$host_vendor"; then 17146 # Use $CC to link under sequent, because it throws in some extra .o 17147 # files that make .init and .fini sections work. 17148 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17149 else 17150 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17151 fi 17152 hardcode_libdir_flag_spec='-L$libdir' 17153 hardcode_direct=yes 17154 hardcode_minus_L=yes 17155 hardcode_shlibpath_var=no 17156 ;; 17157 17158 sysv4) 17159 case $host_vendor in 17160 sni) 17161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17162 hardcode_direct=yes # is this really true??? 17163 ;; 17164 siemens) 17165 ## LD is ld it makes a PLAMLIB 17166 ## CC just makes a GrossModule. 17167 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17168 reload_cmds='$CC -r -o $output$reload_objs' 17169 hardcode_direct=no 17170 ;; 17171 motorola) 17172 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17173 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17174 ;; 17175 esac 17176 runpath_var='LD_RUN_PATH' 17177 hardcode_shlibpath_var=no 17178 ;; 17179 17180 sysv4.3*) 17181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17182 hardcode_shlibpath_var=no 17183 export_dynamic_flag_spec='-Bexport' 17184 ;; 17185 17186 sysv4*MP*) 17187 if test -d /usr/nec; then 17188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17189 hardcode_shlibpath_var=no 17190 runpath_var=LD_RUN_PATH 17191 hardcode_runpath_var=yes 17192 ld_shlibs=yes 17193 fi 17194 ;; 17195 17196 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17197 no_undefined_flag='$wl-z,text' 17198 archive_cmds_need_lc=no 17199 hardcode_shlibpath_var=no 17200 runpath_var='LD_RUN_PATH' 17201 17202 if test yes = "$GCC"; then 17203 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17204 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17205 else 17206 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17207 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17208 fi 17209 ;; 17210 17211 sysv5* | sco3.2v5* | sco5v6*) 17212 # Note: We CANNOT use -z defs as we might desire, because we do not 17213 # link with -lc, and that would cause any symbols used from libc to 17214 # always be unresolved, which means just about no library would 17215 # ever link correctly. If we're not using GNU ld we use -z text 17216 # though, which does catch some bad symbols but isn't as heavy-handed 17217 # as -z defs. 17218 no_undefined_flag='$wl-z,text' 17219 allow_undefined_flag='$wl-z,nodefs' 17220 archive_cmds_need_lc=no 17221 hardcode_shlibpath_var=no 17222 hardcode_libdir_flag_spec='$wl-R,$libdir' 17223 hardcode_libdir_separator=':' 17224 link_all_deplibs=yes 17225 export_dynamic_flag_spec='$wl-Bexport' 17226 runpath_var='LD_RUN_PATH' 17227 17228 if test yes = "$GCC"; then 17229 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17230 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17231 else 17232 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17233 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17234 fi 17235 ;; 17236 17237 uts4*) 17238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17239 hardcode_libdir_flag_spec='-L$libdir' 17240 hardcode_shlibpath_var=no 17241 ;; 17242 17243 *) 17244 ld_shlibs=no 17245 ;; 17246 esac 17247 17248 if test sni = "$host_vendor"; then 17249 case $host in 17250 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17251 export_dynamic_flag_spec='$wl-Blargedynsym' 17252 ;; 17253 esac 17254 fi 17255 fi 17256 17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17258 $as_echo "$ld_shlibs" >&6; } 17259 test no = "$ld_shlibs" && can_build_shared=no 17260 17261 with_gnu_ld=$with_gnu_ld 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 # 17278 # Do we need to explicitly link libc? 17279 # 17280 case "x$archive_cmds_need_lc" in 17281 x|xyes) 17282 # Assume -lc should be added 17283 archive_cmds_need_lc=yes 17284 17285 if test yes,yes = "$GCC,$enable_shared"; then 17286 case $archive_cmds in 17287 *'~'*) 17288 # FIXME: we may have to deal with multi-command sequences. 17289 ;; 17290 '$CC '*) 17291 # Test whether the compiler implicitly links with -lc since on some 17292 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17293 # to ld, don't add -lc before -lgcc. 17294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17295 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17296 if ${lt_cv_archive_cmds_need_lc+:} false; then : 17297 $as_echo_n "(cached) " >&6 17298 else 17299 $RM conftest* 17300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17301 17302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17303 (eval $ac_compile) 2>&5 17304 ac_status=$? 17305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17306 test $ac_status = 0; } 2>conftest.err; then 17307 soname=conftest 17308 lib=conftest 17309 libobjs=conftest.$ac_objext 17310 deplibs= 17311 wl=$lt_prog_compiler_wl 17312 pic_flag=$lt_prog_compiler_pic 17313 compiler_flags=-v 17314 linker_flags=-v 17315 verstring= 17316 output_objdir=. 17317 libname=conftest 17318 lt_save_allow_undefined_flag=$allow_undefined_flag 17319 allow_undefined_flag= 17320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17321 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17322 ac_status=$? 17323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17324 test $ac_status = 0; } 17325 then 17326 lt_cv_archive_cmds_need_lc=no 17327 else 17328 lt_cv_archive_cmds_need_lc=yes 17329 fi 17330 allow_undefined_flag=$lt_save_allow_undefined_flag 17331 else 17332 cat conftest.err 1>&5 17333 fi 17334 $RM conftest* 17335 17336 fi 17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17338 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 17339 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17340 ;; 17341 esac 17342 fi 17343 ;; 17344 esac 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17498 $as_echo_n "checking dynamic linker characteristics... " >&6; } 17499 17500 if test yes = "$GCC"; then 17501 case $host_os in 17502 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17503 *) lt_awk_arg='/^libraries:/' ;; 17504 esac 17505 case $host_os in 17506 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17507 *) lt_sed_strip_eq='s|=/|/|g' ;; 17508 esac 17509 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17510 case $lt_search_path_spec in 17511 *\;*) 17512 # if the path contains ";" then we assume it to be the separator 17513 # otherwise default to the standard path separator (i.e. ":") - it is 17514 # assumed that no part of a normal pathname contains ";" but that should 17515 # okay in the real world where ";" in dirpaths is itself problematic. 17516 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17517 ;; 17518 *) 17519 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17520 ;; 17521 esac 17522 # Ok, now we have the path, separated by spaces, we can step through it 17523 # and add multilib dir if necessary... 17524 lt_tmp_lt_search_path_spec= 17525 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17526 # ...but if some path component already ends with the multilib dir we assume 17527 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17528 case "$lt_multi_os_dir; $lt_search_path_spec " in 17529 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17530 lt_multi_os_dir= 17531 ;; 17532 esac 17533 for lt_sys_path in $lt_search_path_spec; do 17534 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17535 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17536 elif test -n "$lt_multi_os_dir"; then 17537 test -d "$lt_sys_path" && \ 17538 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17539 fi 17540 done 17541 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17542 BEGIN {RS = " "; FS = "/|\n";} { 17543 lt_foo = ""; 17544 lt_count = 0; 17545 for (lt_i = NF; lt_i > 0; lt_i--) { 17546 if ($lt_i != "" && $lt_i != ".") { 17547 if ($lt_i == "..") { 17548 lt_count++; 17549 } else { 17550 if (lt_count == 0) { 17551 lt_foo = "/" $lt_i lt_foo; 17552 } else { 17553 lt_count--; 17554 } 17555 } 17556 } 17557 } 17558 if (lt_foo != "") { lt_freq[lt_foo]++; } 17559 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17560 }'` 17561 # AWK program above erroneously prepends '/' to C:/dos/paths 17562 # for these hosts. 17563 case $host_os in 17564 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17565 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17566 esac 17567 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17568 else 17569 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17570 fi 17571 library_names_spec= 17572 libname_spec='lib$name' 17573 soname_spec= 17574 shrext_cmds=.so 17575 postinstall_cmds= 17576 postuninstall_cmds= 17577 finish_cmds= 17578 finish_eval= 17579 shlibpath_var= 17580 shlibpath_overrides_runpath=unknown 17581 version_type=none 17582 dynamic_linker="$host_os ld.so" 17583 sys_lib_dlsearch_path_spec="/lib /usr/lib" 17584 need_lib_prefix=unknown 17585 hardcode_into_libs=no 17586 17587 # when you set need_version to no, make sure it does not cause -set_version 17588 # flags to be left without arguments 17589 need_version=unknown 17590 17591 17592 17593 case $host_os in 17594 aix3*) 17595 version_type=linux # correct to gnu/linux during the next big refactor 17596 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17597 shlibpath_var=LIBPATH 17598 17599 # AIX 3 has no versioning support, so we append a major version to the name. 17600 soname_spec='$libname$release$shared_ext$major' 17601 ;; 17602 17603 aix[4-9]*) 17604 version_type=linux # correct to gnu/linux during the next big refactor 17605 need_lib_prefix=no 17606 need_version=no 17607 hardcode_into_libs=yes 17608 if test ia64 = "$host_cpu"; then 17609 # AIX 5 supports IA64 17610 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17611 shlibpath_var=LD_LIBRARY_PATH 17612 else 17613 # With GCC up to 2.95.x, collect2 would create an import file 17614 # for dependence libraries. The import file would start with 17615 # the line '#! .'. This would cause the generated library to 17616 # depend on '.', always an invalid library. This was fixed in 17617 # development snapshots of GCC prior to 3.0. 17618 case $host_os in 17619 aix4 | aix4.[01] | aix4.[01].*) 17620 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17621 echo ' yes ' 17622 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17623 : 17624 else 17625 can_build_shared=no 17626 fi 17627 ;; 17628 esac 17629 # Using Import Files as archive members, it is possible to support 17630 # filename-based versioning of shared library archives on AIX. While 17631 # this would work for both with and without runtime linking, it will 17632 # prevent static linking of such archives. So we do filename-based 17633 # shared library versioning with .so extension only, which is used 17634 # when both runtime linking and shared linking is enabled. 17635 # Unfortunately, runtime linking may impact performance, so we do 17636 # not want this to be the default eventually. Also, we use the 17637 # versioned .so libs for executables only if there is the -brtl 17638 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17639 # To allow for filename-based versioning support, we need to create 17640 # libNAME.so.V as an archive file, containing: 17641 # *) an Import File, referring to the versioned filename of the 17642 # archive as well as the shared archive member, telling the 17643 # bitwidth (32 or 64) of that shared object, and providing the 17644 # list of exported symbols of that shared object, eventually 17645 # decorated with the 'weak' keyword 17646 # *) the shared object with the F_LOADONLY flag set, to really avoid 17647 # it being seen by the linker. 17648 # At run time we better use the real file rather than another symlink, 17649 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17650 17651 case $with_aix_soname,$aix_use_runtimelinking in 17652 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17653 # soname into executable. Probably we can add versioning support to 17654 # collect2, so additional links can be useful in future. 17655 aix,yes) # traditional libtool 17656 dynamic_linker='AIX unversionable lib.so' 17657 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17658 # instead of lib<name>.a to let people know that these are not 17659 # typical AIX shared libraries. 17660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17661 ;; 17662 aix,no) # traditional AIX only 17663 dynamic_linker='AIX lib.a(lib.so.V)' 17664 # We preserve .a as extension for shared libraries through AIX4.2 17665 # and later when we are not doing run time linking. 17666 library_names_spec='$libname$release.a $libname.a' 17667 soname_spec='$libname$release$shared_ext$major' 17668 ;; 17669 svr4,*) # full svr4 only 17670 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17671 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17672 # We do not specify a path in Import Files, so LIBPATH fires. 17673 shlibpath_overrides_runpath=yes 17674 ;; 17675 *,yes) # both, prefer svr4 17676 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17677 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17678 # unpreferred sharedlib libNAME.a needs extra handling 17679 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"' 17680 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"' 17681 # We do not specify a path in Import Files, so LIBPATH fires. 17682 shlibpath_overrides_runpath=yes 17683 ;; 17684 *,no) # both, prefer aix 17685 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17686 library_names_spec='$libname$release.a $libname.a' 17687 soname_spec='$libname$release$shared_ext$major' 17688 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17689 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)' 17690 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"' 17691 ;; 17692 esac 17693 shlibpath_var=LIBPATH 17694 fi 17695 ;; 17696 17697 amigaos*) 17698 case $host_cpu in 17699 powerpc) 17700 # Since July 2007 AmigaOS4 officially supports .so libraries. 17701 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17703 ;; 17704 m68k) 17705 library_names_spec='$libname.ixlibrary $libname.a' 17706 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17707 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' 17708 ;; 17709 esac 17710 ;; 17711 17712 beos*) 17713 library_names_spec='$libname$shared_ext' 17714 dynamic_linker="$host_os ld.so" 17715 shlibpath_var=LIBRARY_PATH 17716 ;; 17717 17718 bsdi[45]*) 17719 version_type=linux # correct to gnu/linux during the next big refactor 17720 need_version=no 17721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17722 soname_spec='$libname$release$shared_ext$major' 17723 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17724 shlibpath_var=LD_LIBRARY_PATH 17725 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17726 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17727 # the default ld.so.conf also contains /usr/contrib/lib and 17728 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17729 # libtool to hard-code these into programs 17730 ;; 17731 17732 cygwin* | mingw* | pw32* | cegcc*) 17733 version_type=windows 17734 shrext_cmds=.dll 17735 need_version=no 17736 need_lib_prefix=no 17737 17738 case $GCC,$cc_basename in 17739 yes,*) 17740 # gcc 17741 library_names_spec='$libname.dll.a' 17742 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17743 postinstall_cmds='base_file=`basename \$file`~ 17744 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17745 dldir=$destdir/`dirname \$dlpath`~ 17746 test -d \$dldir || mkdir -p \$dldir~ 17747 $install_prog $dir/$dlname \$dldir/$dlname~ 17748 chmod a+x \$dldir/$dlname~ 17749 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17750 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17751 fi' 17752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17753 dlpath=$dir/\$dldll~ 17754 $RM \$dlpath' 17755 shlibpath_overrides_runpath=yes 17756 17757 case $host_os in 17758 cygwin*) 17759 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17760 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17761 17762 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17763 ;; 17764 mingw* | cegcc*) 17765 # MinGW DLLs use traditional 'lib' prefix 17766 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17767 ;; 17768 pw32*) 17769 # pw32 DLLs use 'pw' prefix rather than 'lib' 17770 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17771 ;; 17772 esac 17773 dynamic_linker='Win32 ld.exe' 17774 ;; 17775 17776 *,cl*) 17777 # Native MSVC 17778 libname_spec='$name' 17779 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17780 library_names_spec='$libname.dll.lib' 17781 17782 case $build_os in 17783 mingw*) 17784 sys_lib_search_path_spec= 17785 lt_save_ifs=$IFS 17786 IFS=';' 17787 for lt_path in $LIB 17788 do 17789 IFS=$lt_save_ifs 17790 # Let DOS variable expansion print the short 8.3 style file name. 17791 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17792 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17793 done 17794 IFS=$lt_save_ifs 17795 # Convert to MSYS style. 17796 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17797 ;; 17798 cygwin*) 17799 # Convert to unix form, then to dos form, then back to unix form 17800 # but this time dos style (no spaces!) so that the unix form looks 17801 # like /cygdrive/c/PROGRA~1:/cygdr... 17802 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17803 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17804 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17805 ;; 17806 *) 17807 sys_lib_search_path_spec=$LIB 17808 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17809 # It is most probably a Windows format PATH. 17810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17811 else 17812 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17813 fi 17814 # FIXME: find the short name or the path components, as spaces are 17815 # common. (e.g. "Program Files" -> "PROGRA~1") 17816 ;; 17817 esac 17818 17819 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17820 postinstall_cmds='base_file=`basename \$file`~ 17821 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17822 dldir=$destdir/`dirname \$dlpath`~ 17823 test -d \$dldir || mkdir -p \$dldir~ 17824 $install_prog $dir/$dlname \$dldir/$dlname' 17825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17826 dlpath=$dir/\$dldll~ 17827 $RM \$dlpath' 17828 shlibpath_overrides_runpath=yes 17829 dynamic_linker='Win32 link.exe' 17830 ;; 17831 17832 *) 17833 # Assume MSVC wrapper 17834 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17835 dynamic_linker='Win32 ld.exe' 17836 ;; 17837 esac 17838 # FIXME: first we should search . and the directory the executable is in 17839 shlibpath_var=PATH 17840 ;; 17841 17842 darwin* | rhapsody*) 17843 dynamic_linker="$host_os dyld" 17844 version_type=darwin 17845 need_lib_prefix=no 17846 need_version=no 17847 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17848 soname_spec='$libname$release$major$shared_ext' 17849 shlibpath_overrides_runpath=yes 17850 shlibpath_var=DYLD_LIBRARY_PATH 17851 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17852 17853 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17854 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17855 ;; 17856 17857 dgux*) 17858 version_type=linux # correct to gnu/linux during the next big refactor 17859 need_lib_prefix=no 17860 need_version=no 17861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17862 soname_spec='$libname$release$shared_ext$major' 17863 shlibpath_var=LD_LIBRARY_PATH 17864 ;; 17865 17866 freebsd* | dragonfly*) 17867 # DragonFly does not have aout. When/if they implement a new 17868 # versioning mechanism, adjust this. 17869 if test -x /usr/bin/objformat; then 17870 objformat=`/usr/bin/objformat` 17871 else 17872 case $host_os in 17873 freebsd[23].*) objformat=aout ;; 17874 *) objformat=elf ;; 17875 esac 17876 fi 17877 version_type=freebsd-$objformat 17878 case $version_type in 17879 freebsd-elf*) 17880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17881 soname_spec='$libname$release$shared_ext$major' 17882 need_version=no 17883 need_lib_prefix=no 17884 ;; 17885 freebsd-*) 17886 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17887 need_version=yes 17888 ;; 17889 esac 17890 shlibpath_var=LD_LIBRARY_PATH 17891 case $host_os in 17892 freebsd2.*) 17893 shlibpath_overrides_runpath=yes 17894 ;; 17895 freebsd3.[01]* | freebsdelf3.[01]*) 17896 shlibpath_overrides_runpath=yes 17897 hardcode_into_libs=yes 17898 ;; 17899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17901 shlibpath_overrides_runpath=no 17902 hardcode_into_libs=yes 17903 ;; 17904 *) # from 4.6 on, and DragonFly 17905 shlibpath_overrides_runpath=yes 17906 hardcode_into_libs=yes 17907 ;; 17908 esac 17909 ;; 17910 17911 haiku*) 17912 version_type=linux # correct to gnu/linux during the next big refactor 17913 need_lib_prefix=no 17914 need_version=no 17915 dynamic_linker="$host_os runtime_loader" 17916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17917 soname_spec='$libname$release$shared_ext$major' 17918 shlibpath_var=LIBRARY_PATH 17919 shlibpath_overrides_runpath=no 17920 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17921 hardcode_into_libs=yes 17922 ;; 17923 17924 hpux9* | hpux10* | hpux11*) 17925 # Give a soname corresponding to the major version so that dld.sl refuses to 17926 # link against other versions. 17927 version_type=sunos 17928 need_lib_prefix=no 17929 need_version=no 17930 case $host_cpu in 17931 ia64*) 17932 shrext_cmds='.so' 17933 hardcode_into_libs=yes 17934 dynamic_linker="$host_os dld.so" 17935 shlibpath_var=LD_LIBRARY_PATH 17936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17938 soname_spec='$libname$release$shared_ext$major' 17939 if test 32 = "$HPUX_IA64_MODE"; then 17940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17941 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17942 else 17943 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17944 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17945 fi 17946 ;; 17947 hppa*64*) 17948 shrext_cmds='.sl' 17949 hardcode_into_libs=yes 17950 dynamic_linker="$host_os dld.sl" 17951 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17954 soname_spec='$libname$release$shared_ext$major' 17955 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17957 ;; 17958 *) 17959 shrext_cmds='.sl' 17960 dynamic_linker="$host_os dld.sl" 17961 shlibpath_var=SHLIB_PATH 17962 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17964 soname_spec='$libname$release$shared_ext$major' 17965 ;; 17966 esac 17967 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17968 postinstall_cmds='chmod 555 $lib' 17969 # or fails outright, so override atomically: 17970 install_override_mode=555 17971 ;; 17972 17973 interix[3-9]*) 17974 version_type=linux # correct to gnu/linux during the next big refactor 17975 need_lib_prefix=no 17976 need_version=no 17977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17978 soname_spec='$libname$release$shared_ext$major' 17979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17980 shlibpath_var=LD_LIBRARY_PATH 17981 shlibpath_overrides_runpath=no 17982 hardcode_into_libs=yes 17983 ;; 17984 17985 irix5* | irix6* | nonstopux*) 17986 case $host_os in 17987 nonstopux*) version_type=nonstopux ;; 17988 *) 17989 if test yes = "$lt_cv_prog_gnu_ld"; then 17990 version_type=linux # correct to gnu/linux during the next big refactor 17991 else 17992 version_type=irix 17993 fi ;; 17994 esac 17995 need_lib_prefix=no 17996 need_version=no 17997 soname_spec='$libname$release$shared_ext$major' 17998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17999 case $host_os in 18000 irix5* | nonstopux*) 18001 libsuff= shlibsuff= 18002 ;; 18003 *) 18004 case $LD in # libtool.m4 will add one of these switches to LD 18005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18006 libsuff= shlibsuff= libmagic=32-bit;; 18007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18008 libsuff=32 shlibsuff=N32 libmagic=N32;; 18009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18010 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18011 *) libsuff= shlibsuff= libmagic=never-match;; 18012 esac 18013 ;; 18014 esac 18015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18016 shlibpath_overrides_runpath=no 18017 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18018 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18019 hardcode_into_libs=yes 18020 ;; 18021 18022 # No shared lib support for Linux oldld, aout, or coff. 18023 linux*oldld* | linux*aout* | linux*coff*) 18024 dynamic_linker=no 18025 ;; 18026 18027 linux*android*) 18028 version_type=none # Android doesn't support versioned libraries. 18029 need_lib_prefix=no 18030 need_version=no 18031 library_names_spec='$libname$release$shared_ext' 18032 soname_spec='$libname$release$shared_ext' 18033 finish_cmds= 18034 shlibpath_var=LD_LIBRARY_PATH 18035 shlibpath_overrides_runpath=yes 18036 18037 # This implies no fast_install, which is unacceptable. 18038 # Some rework will be needed to allow for fast_install 18039 # before this can be enabled. 18040 hardcode_into_libs=yes 18041 18042 dynamic_linker='Android linker' 18043 # Don't embed -rpath directories since the linker doesn't support them. 18044 hardcode_libdir_flag_spec='-L$libdir' 18045 ;; 18046 18047 # This must be glibc/ELF. 18048 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18049 version_type=linux # correct to gnu/linux during the next big refactor 18050 need_lib_prefix=no 18051 need_version=no 18052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18053 soname_spec='$libname$release$shared_ext$major' 18054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18055 shlibpath_var=LD_LIBRARY_PATH 18056 shlibpath_overrides_runpath=no 18057 18058 # Some binutils ld are patched to set DT_RUNPATH 18059 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18060 $as_echo_n "(cached) " >&6 18061 else 18062 lt_cv_shlibpath_overrides_runpath=no 18063 save_LDFLAGS=$LDFLAGS 18064 save_libdir=$libdir 18065 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18066 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18068 /* end confdefs.h. */ 18069 18070 int 18071 main () 18072 { 18073 18074 ; 18075 return 0; 18076 } 18077 _ACEOF 18078 if ac_fn_c_try_link "$LINENO"; then : 18079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18080 lt_cv_shlibpath_overrides_runpath=yes 18081 fi 18082 fi 18083 rm -f core conftest.err conftest.$ac_objext \ 18084 conftest$ac_exeext conftest.$ac_ext 18085 LDFLAGS=$save_LDFLAGS 18086 libdir=$save_libdir 18087 18088 fi 18089 18090 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18091 18092 # This implies no fast_install, which is unacceptable. 18093 # Some rework will be needed to allow for fast_install 18094 # before this can be enabled. 18095 hardcode_into_libs=yes 18096 18097 # Ideally, we could use ldconfig to report *all* directores which are 18098 # searched for libraries, however this is still not possible. Aside from not 18099 # being certain /sbin/ldconfig is available, command 18100 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18101 # even though it is searched at run-time. Try to do the best guess by 18102 # appending ld.so.conf contents (and includes) to the search path. 18103 if test -f /etc/ld.so.conf; then 18104 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' ' '` 18105 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18106 fi 18107 18108 # We used to test for /lib/ld.so.1 and disable shared libraries on 18109 # powerpc, because MkLinux only supported shared libraries with the 18110 # GNU dynamic linker. Since this was broken with cross compilers, 18111 # most powerpc-linux boxes support dynamic linking these days and 18112 # people can always --disable-shared, the test was removed, and we 18113 # assume the GNU/Linux dynamic linker is in use. 18114 dynamic_linker='GNU/Linux ld.so' 18115 ;; 18116 18117 netbsd*) 18118 version_type=sunos 18119 need_lib_prefix=no 18120 need_version=no 18121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18122 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18124 dynamic_linker='NetBSD (a.out) ld.so' 18125 else 18126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18127 soname_spec='$libname$release$shared_ext$major' 18128 dynamic_linker='NetBSD ld.elf_so' 18129 fi 18130 shlibpath_var=LD_LIBRARY_PATH 18131 shlibpath_overrides_runpath=yes 18132 hardcode_into_libs=yes 18133 ;; 18134 18135 newsos6) 18136 version_type=linux # correct to gnu/linux during the next big refactor 18137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18138 shlibpath_var=LD_LIBRARY_PATH 18139 shlibpath_overrides_runpath=yes 18140 ;; 18141 18142 *nto* | *qnx*) 18143 version_type=qnx 18144 need_lib_prefix=no 18145 need_version=no 18146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18147 soname_spec='$libname$release$shared_ext$major' 18148 shlibpath_var=LD_LIBRARY_PATH 18149 shlibpath_overrides_runpath=no 18150 hardcode_into_libs=yes 18151 dynamic_linker='ldqnx.so' 18152 ;; 18153 18154 openbsd* | bitrig*) 18155 version_type=sunos 18156 sys_lib_dlsearch_path_spec=/usr/lib 18157 need_lib_prefix=no 18158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18159 need_version=no 18160 else 18161 need_version=yes 18162 fi 18163 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18165 shlibpath_var=LD_LIBRARY_PATH 18166 shlibpath_overrides_runpath=yes 18167 ;; 18168 18169 os2*) 18170 libname_spec='$name' 18171 version_type=windows 18172 shrext_cmds=.dll 18173 need_version=no 18174 need_lib_prefix=no 18175 # OS/2 can only load a DLL with a base name of 8 characters or less. 18176 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18177 v=$($ECHO $release$versuffix | tr -d .-); 18178 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18179 $ECHO $n$v`$shared_ext' 18180 library_names_spec='${libname}_dll.$libext' 18181 dynamic_linker='OS/2 ld.exe' 18182 shlibpath_var=BEGINLIBPATH 18183 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18185 postinstall_cmds='base_file=`basename \$file`~ 18186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18187 dldir=$destdir/`dirname \$dlpath`~ 18188 test -d \$dldir || mkdir -p \$dldir~ 18189 $install_prog $dir/$dlname \$dldir/$dlname~ 18190 chmod a+x \$dldir/$dlname~ 18191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18193 fi' 18194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18195 dlpath=$dir/\$dldll~ 18196 $RM \$dlpath' 18197 ;; 18198 18199 osf3* | osf4* | osf5*) 18200 version_type=osf 18201 need_lib_prefix=no 18202 need_version=no 18203 soname_spec='$libname$release$shared_ext$major' 18204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18205 shlibpath_var=LD_LIBRARY_PATH 18206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18208 ;; 18209 18210 rdos*) 18211 dynamic_linker=no 18212 ;; 18213 18214 solaris*) 18215 version_type=linux # correct to gnu/linux during the next big refactor 18216 need_lib_prefix=no 18217 need_version=no 18218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18219 soname_spec='$libname$release$shared_ext$major' 18220 shlibpath_var=LD_LIBRARY_PATH 18221 shlibpath_overrides_runpath=yes 18222 hardcode_into_libs=yes 18223 # ldd complains unless libraries are executable 18224 postinstall_cmds='chmod +x $lib' 18225 ;; 18226 18227 sunos4*) 18228 version_type=sunos 18229 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18230 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18231 shlibpath_var=LD_LIBRARY_PATH 18232 shlibpath_overrides_runpath=yes 18233 if test yes = "$with_gnu_ld"; then 18234 need_lib_prefix=no 18235 fi 18236 need_version=yes 18237 ;; 18238 18239 sysv4 | sysv4.3*) 18240 version_type=linux # correct to gnu/linux during the next big refactor 18241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18242 soname_spec='$libname$release$shared_ext$major' 18243 shlibpath_var=LD_LIBRARY_PATH 18244 case $host_vendor in 18245 sni) 18246 shlibpath_overrides_runpath=no 18247 need_lib_prefix=no 18248 runpath_var=LD_RUN_PATH 18249 ;; 18250 siemens) 18251 need_lib_prefix=no 18252 ;; 18253 motorola) 18254 need_lib_prefix=no 18255 need_version=no 18256 shlibpath_overrides_runpath=no 18257 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18258 ;; 18259 esac 18260 ;; 18261 18262 sysv4*MP*) 18263 if test -d /usr/nec; then 18264 version_type=linux # correct to gnu/linux during the next big refactor 18265 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18266 soname_spec='$libname$shared_ext.$major' 18267 shlibpath_var=LD_LIBRARY_PATH 18268 fi 18269 ;; 18270 18271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18272 version_type=sco 18273 need_lib_prefix=no 18274 need_version=no 18275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18276 soname_spec='$libname$release$shared_ext$major' 18277 shlibpath_var=LD_LIBRARY_PATH 18278 shlibpath_overrides_runpath=yes 18279 hardcode_into_libs=yes 18280 if test yes = "$with_gnu_ld"; then 18281 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18282 else 18283 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18284 case $host_os in 18285 sco3.2v5*) 18286 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18287 ;; 18288 esac 18289 fi 18290 sys_lib_dlsearch_path_spec='/usr/lib' 18291 ;; 18292 18293 tpf*) 18294 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18295 version_type=linux # correct to gnu/linux during the next big refactor 18296 need_lib_prefix=no 18297 need_version=no 18298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18299 shlibpath_var=LD_LIBRARY_PATH 18300 shlibpath_overrides_runpath=no 18301 hardcode_into_libs=yes 18302 ;; 18303 18304 uts4*) 18305 version_type=linux # correct to gnu/linux during the next big refactor 18306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18307 soname_spec='$libname$release$shared_ext$major' 18308 shlibpath_var=LD_LIBRARY_PATH 18309 ;; 18310 18311 *) 18312 dynamic_linker=no 18313 ;; 18314 esac 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18316 $as_echo "$dynamic_linker" >&6; } 18317 test no = "$dynamic_linker" && can_build_shared=no 18318 18319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18320 if test yes = "$GCC"; then 18321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18322 fi 18323 18324 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18325 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18326 fi 18327 18328 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18329 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18330 fi 18331 18332 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18333 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18334 18335 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18336 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18337 18338 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18339 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18438 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18439 hardcode_action= 18440 if test -n "$hardcode_libdir_flag_spec" || 18441 test -n "$runpath_var" || 18442 test yes = "$hardcode_automatic"; then 18443 18444 # We can hardcode non-existent directories. 18445 if test no != "$hardcode_direct" && 18446 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18447 # have to relink, otherwise we might link with an installed library 18448 # when we should be linking with a yet-to-be-installed one 18449 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18450 test no != "$hardcode_minus_L"; then 18451 # Linking always hardcodes the temporary library directory. 18452 hardcode_action=relink 18453 else 18454 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18455 hardcode_action=immediate 18456 fi 18457 else 18458 # We cannot hardcode anything, or else we can only hardcode existing 18459 # directories. 18460 hardcode_action=unsupported 18461 fi 18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18463 $as_echo "$hardcode_action" >&6; } 18464 18465 if test relink = "$hardcode_action" || 18466 test yes = "$inherit_rpath"; then 18467 # Fast installation is not supported 18468 enable_fast_install=no 18469 elif test yes = "$shlibpath_overrides_runpath" || 18470 test no = "$enable_shared"; then 18471 # Fast installation is not necessary 18472 enable_fast_install=needless 18473 fi 18474 18475 18476 18477 18478 18479 18480 if test yes != "$enable_dlopen"; then 18481 enable_dlopen=unknown 18482 enable_dlopen_self=unknown 18483 enable_dlopen_self_static=unknown 18484 else 18485 lt_cv_dlopen=no 18486 lt_cv_dlopen_libs= 18487 18488 case $host_os in 18489 beos*) 18490 lt_cv_dlopen=load_add_on 18491 lt_cv_dlopen_libs= 18492 lt_cv_dlopen_self=yes 18493 ;; 18494 18495 mingw* | pw32* | cegcc*) 18496 lt_cv_dlopen=LoadLibrary 18497 lt_cv_dlopen_libs= 18498 ;; 18499 18500 cygwin*) 18501 lt_cv_dlopen=dlopen 18502 lt_cv_dlopen_libs= 18503 ;; 18504 18505 darwin*) 18506 # if libdl is installed we need to link against it 18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18508 $as_echo_n "checking for dlopen in -ldl... " >&6; } 18509 if ${ac_cv_lib_dl_dlopen+:} false; then : 18510 $as_echo_n "(cached) " >&6 18511 else 18512 ac_check_lib_save_LIBS=$LIBS 18513 LIBS="-ldl $LIBS" 18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18515 /* end confdefs.h. */ 18516 18517 /* Override any GCC internal prototype to avoid an error. 18518 Use char because int might match the return type of a GCC 18519 builtin and then its argument prototype would still apply. */ 18520 #ifdef __cplusplus 18521 extern "C" 18522 #endif 18523 char dlopen (); 18524 int 18525 main () 18526 { 18527 return dlopen (); 18528 ; 18529 return 0; 18530 } 18531 _ACEOF 18532 if ac_fn_c_try_link "$LINENO"; then : 18533 ac_cv_lib_dl_dlopen=yes 18534 else 18535 ac_cv_lib_dl_dlopen=no 18536 fi 18537 rm -f core conftest.err conftest.$ac_objext \ 18538 conftest$ac_exeext conftest.$ac_ext 18539 LIBS=$ac_check_lib_save_LIBS 18540 fi 18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18542 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18543 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18544 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18545 else 18546 18547 lt_cv_dlopen=dyld 18548 lt_cv_dlopen_libs= 18549 lt_cv_dlopen_self=yes 18550 18551 fi 18552 18553 ;; 18554 18555 tpf*) 18556 # Don't try to run any link tests for TPF. We know it's impossible 18557 # because TPF is a cross-compiler, and we know how we open DSOs. 18558 lt_cv_dlopen=dlopen 18559 lt_cv_dlopen_libs= 18560 lt_cv_dlopen_self=no 18561 ;; 18562 18563 *) 18564 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18565 if test "x$ac_cv_func_shl_load" = xyes; then : 18566 lt_cv_dlopen=shl_load 18567 else 18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18569 $as_echo_n "checking for shl_load in -ldld... " >&6; } 18570 if ${ac_cv_lib_dld_shl_load+:} false; then : 18571 $as_echo_n "(cached) " >&6 18572 else 18573 ac_check_lib_save_LIBS=$LIBS 18574 LIBS="-ldld $LIBS" 18575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18576 /* end confdefs.h. */ 18577 18578 /* Override any GCC internal prototype to avoid an error. 18579 Use char because int might match the return type of a GCC 18580 builtin and then its argument prototype would still apply. */ 18581 #ifdef __cplusplus 18582 extern "C" 18583 #endif 18584 char shl_load (); 18585 int 18586 main () 18587 { 18588 return shl_load (); 18589 ; 18590 return 0; 18591 } 18592 _ACEOF 18593 if ac_fn_c_try_link "$LINENO"; then : 18594 ac_cv_lib_dld_shl_load=yes 18595 else 18596 ac_cv_lib_dld_shl_load=no 18597 fi 18598 rm -f core conftest.err conftest.$ac_objext \ 18599 conftest$ac_exeext conftest.$ac_ext 18600 LIBS=$ac_check_lib_save_LIBS 18601 fi 18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18603 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18604 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18605 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18606 else 18607 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18608 if test "x$ac_cv_func_dlopen" = xyes; then : 18609 lt_cv_dlopen=dlopen 18610 else 18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18612 $as_echo_n "checking for dlopen in -ldl... " >&6; } 18613 if ${ac_cv_lib_dl_dlopen+:} false; then : 18614 $as_echo_n "(cached) " >&6 18615 else 18616 ac_check_lib_save_LIBS=$LIBS 18617 LIBS="-ldl $LIBS" 18618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18619 /* end confdefs.h. */ 18620 18621 /* Override any GCC internal prototype to avoid an error. 18622 Use char because int might match the return type of a GCC 18623 builtin and then its argument prototype would still apply. */ 18624 #ifdef __cplusplus 18625 extern "C" 18626 #endif 18627 char dlopen (); 18628 int 18629 main () 18630 { 18631 return dlopen (); 18632 ; 18633 return 0; 18634 } 18635 _ACEOF 18636 if ac_fn_c_try_link "$LINENO"; then : 18637 ac_cv_lib_dl_dlopen=yes 18638 else 18639 ac_cv_lib_dl_dlopen=no 18640 fi 18641 rm -f core conftest.err conftest.$ac_objext \ 18642 conftest$ac_exeext conftest.$ac_ext 18643 LIBS=$ac_check_lib_save_LIBS 18644 fi 18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18646 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18647 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18648 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18649 else 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18651 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 18652 if ${ac_cv_lib_svld_dlopen+:} false; then : 18653 $as_echo_n "(cached) " >&6 18654 else 18655 ac_check_lib_save_LIBS=$LIBS 18656 LIBS="-lsvld $LIBS" 18657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18658 /* end confdefs.h. */ 18659 18660 /* Override any GCC internal prototype to avoid an error. 18661 Use char because int might match the return type of a GCC 18662 builtin and then its argument prototype would still apply. */ 18663 #ifdef __cplusplus 18664 extern "C" 18665 #endif 18666 char dlopen (); 18667 int 18668 main () 18669 { 18670 return dlopen (); 18671 ; 18672 return 0; 18673 } 18674 _ACEOF 18675 if ac_fn_c_try_link "$LINENO"; then : 18676 ac_cv_lib_svld_dlopen=yes 18677 else 18678 ac_cv_lib_svld_dlopen=no 18679 fi 18680 rm -f core conftest.err conftest.$ac_objext \ 18681 conftest$ac_exeext conftest.$ac_ext 18682 LIBS=$ac_check_lib_save_LIBS 18683 fi 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18685 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18686 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18687 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18688 else 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18690 $as_echo_n "checking for dld_link in -ldld... " >&6; } 18691 if ${ac_cv_lib_dld_dld_link+:} false; then : 18692 $as_echo_n "(cached) " >&6 18693 else 18694 ac_check_lib_save_LIBS=$LIBS 18695 LIBS="-ldld $LIBS" 18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18697 /* end confdefs.h. */ 18698 18699 /* Override any GCC internal prototype to avoid an error. 18700 Use char because int might match the return type of a GCC 18701 builtin and then its argument prototype would still apply. */ 18702 #ifdef __cplusplus 18703 extern "C" 18704 #endif 18705 char dld_link (); 18706 int 18707 main () 18708 { 18709 return dld_link (); 18710 ; 18711 return 0; 18712 } 18713 _ACEOF 18714 if ac_fn_c_try_link "$LINENO"; then : 18715 ac_cv_lib_dld_dld_link=yes 18716 else 18717 ac_cv_lib_dld_dld_link=no 18718 fi 18719 rm -f core conftest.err conftest.$ac_objext \ 18720 conftest$ac_exeext conftest.$ac_ext 18721 LIBS=$ac_check_lib_save_LIBS 18722 fi 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18724 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18725 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18726 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18727 fi 18728 18729 18730 fi 18731 18732 18733 fi 18734 18735 18736 fi 18737 18738 18739 fi 18740 18741 18742 fi 18743 18744 ;; 18745 esac 18746 18747 if test no = "$lt_cv_dlopen"; then 18748 enable_dlopen=no 18749 else 18750 enable_dlopen=yes 18751 fi 18752 18753 case $lt_cv_dlopen in 18754 dlopen) 18755 save_CPPFLAGS=$CPPFLAGS 18756 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18757 18758 save_LDFLAGS=$LDFLAGS 18759 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18760 18761 save_LIBS=$LIBS 18762 LIBS="$lt_cv_dlopen_libs $LIBS" 18763 18764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18765 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 18766 if ${lt_cv_dlopen_self+:} false; then : 18767 $as_echo_n "(cached) " >&6 18768 else 18769 if test yes = "$cross_compiling"; then : 18770 lt_cv_dlopen_self=cross 18771 else 18772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18773 lt_status=$lt_dlunknown 18774 cat > conftest.$ac_ext <<_LT_EOF 18775 #line $LINENO "configure" 18776 #include "confdefs.h" 18777 18778 #if HAVE_DLFCN_H 18779 #include <dlfcn.h> 18780 #endif 18781 18782 #include <stdio.h> 18783 18784 #ifdef RTLD_GLOBAL 18785 # define LT_DLGLOBAL RTLD_GLOBAL 18786 #else 18787 # ifdef DL_GLOBAL 18788 # define LT_DLGLOBAL DL_GLOBAL 18789 # else 18790 # define LT_DLGLOBAL 0 18791 # endif 18792 #endif 18793 18794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18795 find out it does not work in some platform. */ 18796 #ifndef LT_DLLAZY_OR_NOW 18797 # ifdef RTLD_LAZY 18798 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18799 # else 18800 # ifdef DL_LAZY 18801 # define LT_DLLAZY_OR_NOW DL_LAZY 18802 # else 18803 # ifdef RTLD_NOW 18804 # define LT_DLLAZY_OR_NOW RTLD_NOW 18805 # else 18806 # ifdef DL_NOW 18807 # define LT_DLLAZY_OR_NOW DL_NOW 18808 # else 18809 # define LT_DLLAZY_OR_NOW 0 18810 # endif 18811 # endif 18812 # endif 18813 # endif 18814 #endif 18815 18816 /* When -fvisibility=hidden is used, assume the code has been annotated 18817 correspondingly for the symbols needed. */ 18818 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18819 int fnord () __attribute__((visibility("default"))); 18820 #endif 18821 18822 int fnord () { return 42; } 18823 int main () 18824 { 18825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18826 int status = $lt_dlunknown; 18827 18828 if (self) 18829 { 18830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18831 else 18832 { 18833 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18834 else puts (dlerror ()); 18835 } 18836 /* dlclose (self); */ 18837 } 18838 else 18839 puts (dlerror ()); 18840 18841 return status; 18842 } 18843 _LT_EOF 18844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18845 (eval $ac_link) 2>&5 18846 ac_status=$? 18847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18848 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18849 (./conftest; exit; ) >&5 2>/dev/null 18850 lt_status=$? 18851 case x$lt_status in 18852 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18853 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18854 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18855 esac 18856 else : 18857 # compilation failed 18858 lt_cv_dlopen_self=no 18859 fi 18860 fi 18861 rm -fr conftest* 18862 18863 18864 fi 18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18866 $as_echo "$lt_cv_dlopen_self" >&6; } 18867 18868 if test yes = "$lt_cv_dlopen_self"; then 18869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18871 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18872 if ${lt_cv_dlopen_self_static+:} false; then : 18873 $as_echo_n "(cached) " >&6 18874 else 18875 if test yes = "$cross_compiling"; then : 18876 lt_cv_dlopen_self_static=cross 18877 else 18878 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18879 lt_status=$lt_dlunknown 18880 cat > conftest.$ac_ext <<_LT_EOF 18881 #line $LINENO "configure" 18882 #include "confdefs.h" 18883 18884 #if HAVE_DLFCN_H 18885 #include <dlfcn.h> 18886 #endif 18887 18888 #include <stdio.h> 18889 18890 #ifdef RTLD_GLOBAL 18891 # define LT_DLGLOBAL RTLD_GLOBAL 18892 #else 18893 # ifdef DL_GLOBAL 18894 # define LT_DLGLOBAL DL_GLOBAL 18895 # else 18896 # define LT_DLGLOBAL 0 18897 # endif 18898 #endif 18899 18900 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18901 find out it does not work in some platform. */ 18902 #ifndef LT_DLLAZY_OR_NOW 18903 # ifdef RTLD_LAZY 18904 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18905 # else 18906 # ifdef DL_LAZY 18907 # define LT_DLLAZY_OR_NOW DL_LAZY 18908 # else 18909 # ifdef RTLD_NOW 18910 # define LT_DLLAZY_OR_NOW RTLD_NOW 18911 # else 18912 # ifdef DL_NOW 18913 # define LT_DLLAZY_OR_NOW DL_NOW 18914 # else 18915 # define LT_DLLAZY_OR_NOW 0 18916 # endif 18917 # endif 18918 # endif 18919 # endif 18920 #endif 18921 18922 /* When -fvisibility=hidden is used, assume the code has been annotated 18923 correspondingly for the symbols needed. */ 18924 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18925 int fnord () __attribute__((visibility("default"))); 18926 #endif 18927 18928 int fnord () { return 42; } 18929 int main () 18930 { 18931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18932 int status = $lt_dlunknown; 18933 18934 if (self) 18935 { 18936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18937 else 18938 { 18939 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18940 else puts (dlerror ()); 18941 } 18942 /* dlclose (self); */ 18943 } 18944 else 18945 puts (dlerror ()); 18946 18947 return status; 18948 } 18949 _LT_EOF 18950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18951 (eval $ac_link) 2>&5 18952 ac_status=$? 18953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18954 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18955 (./conftest; exit; ) >&5 2>/dev/null 18956 lt_status=$? 18957 case x$lt_status in 18958 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18959 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18960 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18961 esac 18962 else : 18963 # compilation failed 18964 lt_cv_dlopen_self_static=no 18965 fi 18966 fi 18967 rm -fr conftest* 18968 18969 18970 fi 18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18972 $as_echo "$lt_cv_dlopen_self_static" >&6; } 18973 fi 18974 18975 CPPFLAGS=$save_CPPFLAGS 18976 LDFLAGS=$save_LDFLAGS 18977 LIBS=$save_LIBS 18978 ;; 18979 esac 18980 18981 case $lt_cv_dlopen_self in 18982 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18983 *) enable_dlopen_self=unknown ;; 18984 esac 18985 18986 case $lt_cv_dlopen_self_static in 18987 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18988 *) enable_dlopen_self_static=unknown ;; 18989 esac 18990 fi 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 striplib= 19009 old_striplib= 19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19011 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 19012 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19013 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 19014 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19016 $as_echo "yes" >&6; } 19017 else 19018 # FIXME - insert some real tests, host_os isn't really good enough 19019 case $host_os in 19020 darwin*) 19021 if test -n "$STRIP"; then 19022 striplib="$STRIP -x" 19023 old_striplib="$STRIP -S" 19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19025 $as_echo "yes" >&6; } 19026 else 19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19028 $as_echo "no" >&6; } 19029 fi 19030 ;; 19031 *) 19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19033 $as_echo "no" >&6; } 19034 ;; 19035 esac 19036 fi 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 # Report what library types will actually be built 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19051 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19053 $as_echo "$can_build_shared" >&6; } 19054 19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19056 $as_echo_n "checking whether to build shared libraries... " >&6; } 19057 test no = "$can_build_shared" && enable_shared=no 19058 19059 # On AIX, shared libraries and static libraries use the same namespace, and 19060 # are all built from PIC. 19061 case $host_os in 19062 aix3*) 19063 test yes = "$enable_shared" && enable_static=no 19064 if test -n "$RANLIB"; then 19065 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19066 postinstall_cmds='$RANLIB $lib' 19067 fi 19068 ;; 19069 19070 aix[4-9]*) 19071 if test ia64 != "$host_cpu"; then 19072 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19073 yes,aix,yes) ;; # shared object as lib.so file only 19074 yes,svr4,*) ;; # shared object as lib.so archive member only 19075 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19076 esac 19077 fi 19078 ;; 19079 esac 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19081 $as_echo "$enable_shared" >&6; } 19082 19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19084 $as_echo_n "checking whether to build static libraries... " >&6; } 19085 # Make sure either enable_shared or enable_static is yes. 19086 test yes = "$enable_shared" || enable_static=yes 19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19088 $as_echo "$enable_static" >&6; } 19089 19090 19091 19092 19093 fi 19094 ac_ext=c 19095 ac_cpp='$CPP $CPPFLAGS' 19096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19098 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19099 19100 CC=$lt_save_CC 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 ac_config_commands="$ac_config_commands libtool" 19117 19118 19119 19120 19121 # Only expand once: 19122 19123 19124 # Check whether --enable-largefile was given. 19125 if test "${enable_largefile+set}" = set; then : 19126 enableval=$enable_largefile; 19127 fi 19128 19129 if test "$enable_largefile" != no; then 19130 19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 19132 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 19133 if ${ac_cv_sys_largefile_CC+:} false; then : 19134 $as_echo_n "(cached) " >&6 19135 else 19136 ac_cv_sys_largefile_CC=no 19137 if test "$GCC" != yes; then 19138 ac_save_CC=$CC 19139 while :; do 19140 # IRIX 6.2 and later do not support large files by default, 19141 # so use the C compiler's -n32 option if that helps. 19142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19143 /* end confdefs.h. */ 19144 #include <sys/types.h> 19145 /* Check that off_t can represent 2**63 - 1 correctly. 19146 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19147 since some C++ compilers masquerading as C compilers 19148 incorrectly reject 9223372036854775807. */ 19149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 19150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19151 && LARGE_OFF_T % 2147483647 == 1) 19152 ? 1 : -1]; 19153 int 19154 main () 19155 { 19156 19157 ; 19158 return 0; 19159 } 19160 _ACEOF 19161 if ac_fn_c_try_compile "$LINENO"; then : 19162 break 19163 fi 19164 rm -f core conftest.err conftest.$ac_objext 19165 CC="$CC -n32" 19166 if ac_fn_c_try_compile "$LINENO"; then : 19167 ac_cv_sys_largefile_CC=' -n32'; break 19168 fi 19169 rm -f core conftest.err conftest.$ac_objext 19170 break 19171 done 19172 CC=$ac_save_CC 19173 rm -f conftest.$ac_ext 19174 fi 19175 fi 19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 19177 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 19178 if test "$ac_cv_sys_largefile_CC" != no; then 19179 CC=$CC$ac_cv_sys_largefile_CC 19180 fi 19181 19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 19183 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 19184 if ${ac_cv_sys_file_offset_bits+:} false; then : 19185 $as_echo_n "(cached) " >&6 19186 else 19187 while :; do 19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19189 /* end confdefs.h. */ 19190 #include <sys/types.h> 19191 /* Check that off_t can represent 2**63 - 1 correctly. 19192 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19193 since some C++ compilers masquerading as C compilers 19194 incorrectly reject 9223372036854775807. */ 19195 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 19196 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19197 && LARGE_OFF_T % 2147483647 == 1) 19198 ? 1 : -1]; 19199 int 19200 main () 19201 { 19202 19203 ; 19204 return 0; 19205 } 19206 _ACEOF 19207 if ac_fn_c_try_compile "$LINENO"; then : 19208 ac_cv_sys_file_offset_bits=no; break 19209 fi 19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19212 /* end confdefs.h. */ 19213 #define _FILE_OFFSET_BITS 64 19214 #include <sys/types.h> 19215 /* Check that off_t can represent 2**63 - 1 correctly. 19216 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19217 since some C++ compilers masquerading as C compilers 19218 incorrectly reject 9223372036854775807. */ 19219 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 19220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19221 && LARGE_OFF_T % 2147483647 == 1) 19222 ? 1 : -1]; 19223 int 19224 main () 19225 { 19226 19227 ; 19228 return 0; 19229 } 19230 _ACEOF 19231 if ac_fn_c_try_compile "$LINENO"; then : 19232 ac_cv_sys_file_offset_bits=64; break 19233 fi 19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19235 ac_cv_sys_file_offset_bits=unknown 19236 break 19237 done 19238 fi 19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 19240 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 19241 case $ac_cv_sys_file_offset_bits in #( 19242 no | unknown) ;; 19243 *) 19244 cat >>confdefs.h <<_ACEOF 19245 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 19246 _ACEOF 19247 ;; 19248 esac 19249 rm -rf conftest* 19250 if test $ac_cv_sys_file_offset_bits = unknown; then 19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 19252 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 19253 if ${ac_cv_sys_large_files+:} false; then : 19254 $as_echo_n "(cached) " >&6 19255 else 19256 while :; do 19257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19258 /* end confdefs.h. */ 19259 #include <sys/types.h> 19260 /* Check that off_t can represent 2**63 - 1 correctly. 19261 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19262 since some C++ compilers masquerading as C compilers 19263 incorrectly reject 9223372036854775807. */ 19264 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 19265 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19266 && LARGE_OFF_T % 2147483647 == 1) 19267 ? 1 : -1]; 19268 int 19269 main () 19270 { 19271 19272 ; 19273 return 0; 19274 } 19275 _ACEOF 19276 if ac_fn_c_try_compile "$LINENO"; then : 19277 ac_cv_sys_large_files=no; break 19278 fi 19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19281 /* end confdefs.h. */ 19282 #define _LARGE_FILES 1 19283 #include <sys/types.h> 19284 /* Check that off_t can represent 2**63 - 1 correctly. 19285 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19286 since some C++ compilers masquerading as C compilers 19287 incorrectly reject 9223372036854775807. */ 19288 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 19289 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19290 && LARGE_OFF_T % 2147483647 == 1) 19291 ? 1 : -1]; 19292 int 19293 main () 19294 { 19295 19296 ; 19297 return 0; 19298 } 19299 _ACEOF 19300 if ac_fn_c_try_compile "$LINENO"; then : 19301 ac_cv_sys_large_files=1; break 19302 fi 19303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19304 ac_cv_sys_large_files=unknown 19305 break 19306 done 19307 fi 19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 19309 $as_echo "$ac_cv_sys_large_files" >&6; } 19310 case $ac_cv_sys_large_files in #( 19311 no | unknown) ;; 19312 *) 19313 cat >>confdefs.h <<_ACEOF 19314 #define _LARGE_FILES $ac_cv_sys_large_files 19315 _ACEOF 19316 ;; 19317 esac 19318 rm -rf conftest* 19319 fi 19320 19321 19322 fi 19323 19324 19325 # Check for common libc routines redefined by os.h 19326 for ac_func in strlcpy strlcat strndup 19327 do : 19328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19330 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19331 cat >>confdefs.h <<_ACEOF 19332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19333 _ACEOF 19334 19335 fi 19336 done 19337 19338 19339 # Platform specific settings 19340 case $host_os in 19341 *linux*) 19342 backlight_helper=yes 19343 ;; 19344 esac 19345 19346 # Check whether --enable-backlight was given. 19347 if test "${enable_backlight+set}" = set; then : 19348 enableval=$enable_backlight; backlight="$enableval" 19349 else 19350 backlight="yes" 19351 fi 19352 19353 if test "x$backlight" = "xyes"; then 19354 19355 $as_echo "#define USE_BACKLIGHT 1" >>confdefs.h 19356 19357 fi 19358 19359 # Check whether --enable-backlight-helper was given. 19360 if test "${enable_backlight_helper+set}" = set; then : 19361 enableval=$enable_backlight_helper; backlight_helper="$enableval" 19362 fi 19363 19364 if test "x$backlight" = "xyes" -a "x$backlight_helper" = "xyes"; then 19365 BUILD_BACKLIGHT_HELPER_TRUE= 19366 BUILD_BACKLIGHT_HELPER_FALSE='#' 19367 else 19368 BUILD_BACKLIGHT_HELPER_TRUE='#' 19369 BUILD_BACKLIGHT_HELPER_FALSE= 19370 fi 19371 19372 if test "x$backlight_helper" = "xyes"; then 19373 tools_msg="$tools_msg xf86-video-intel-backlight-helper" 19374 19375 $as_echo "#define USE_BACKLIGHT_HELPER 1" >>confdefs.h 19376 19377 fi 19378 19379 # Are we in a git checkout? 19380 dot_git=no 19381 if test -e .git; then 19382 19383 $as_echo "#define HAVE_DOT_GIT 1" >>confdefs.h 19384 19385 dot_git=yes 19386 fi 19387 if test "x$dot_git" = "xyes"; then 19388 HAVE_DOT_GIT_TRUE= 19389 HAVE_DOT_GIT_FALSE='#' 19390 else 19391 HAVE_DOT_GIT_TRUE='#' 19392 HAVE_DOT_GIT_FALSE= 19393 fi 19394 19395 19396 # If so, we include the git description in our logs for sanity checking. 19397 # 19398 # However, for people not running their own drivers this is just noise. 19399 # So we copy the xserver's builderstring idiom to allow for this to be 19400 # overridden and perhaps replaced with something more useful. 19401 19402 # Check whether --with-builderstring was given. 19403 if test "${with_builderstring+set}" = set; then : 19404 withval=$with_builderstring; BUILDERSTRING="$withval" 19405 else 19406 BUILDERSTRING="x-magic-git-describe" 19407 fi 19408 19409 19410 if test "x$BUILDERSTRING" = "xx-magic-git-describe" -a "x$dot_git" = "xyes"; then 19411 19412 $as_echo "#define USE_GIT_DESCRIBE 1" >>confdefs.h 19413 19414 else 19415 if test "x$BUILDERSTRING" != x -a "x$BUILDERSTRING" != "xno" -a "x$BUILDERSTRING" != xx-magic-git-describe; then 19416 19417 cat >>confdefs.h <<_ACEOF 19418 #define BUILDER_DESCRIPTION "$BUILDERSTRING" 19419 _ACEOF 19420 19421 fi 19422 fi 19423 19424 # Check whether --enable-gen4asm was given. 19425 if test "${enable_gen4asm+set}" = set; then : 19426 enableval=$enable_gen4asm; ASM="$enableval" 19427 else 19428 ASM="no" 19429 fi 19430 19431 19432 gen4asm=no 19433 if test "x$ASM" != "xno"; then 19434 19435 # Check whether --with-gen4asm was given. 19436 if test "${with_gen4asm+set}" = set; then : 19437 withval=$with_gen4asm; path="$withval" 19438 else 19439 path="" 19440 fi 19441 19442 if test -n "$path" ; then 19443 gen4asm=yes 19444 else 19445 19446 pkg_failed=no 19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5 19448 $as_echo_n "checking for GEN4ASM... " >&6; } 19449 19450 if test -n "$GEN4ASM_CFLAGS"; then 19451 pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS" 19452 elif test -n "$PKG_CONFIG"; then 19453 if test -n "$PKG_CONFIG" && \ 19454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5 19455 ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5 19456 ac_status=$? 19457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19458 test $ac_status = 0; }; then 19459 pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.2" 2>/dev/null` 19460 test "x$?" != "x0" && pkg_failed=yes 19461 else 19462 pkg_failed=yes 19463 fi 19464 else 19465 pkg_failed=untried 19466 fi 19467 if test -n "$GEN4ASM_LIBS"; then 19468 pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS" 19469 elif test -n "$PKG_CONFIG"; then 19470 if test -n "$PKG_CONFIG" && \ 19471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5 19472 ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5 19473 ac_status=$? 19474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19475 test $ac_status = 0; }; then 19476 pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.2" 2>/dev/null` 19477 test "x$?" != "x0" && pkg_failed=yes 19478 else 19479 pkg_failed=yes 19480 fi 19481 else 19482 pkg_failed=untried 19483 fi 19484 19485 19486 19487 if test $pkg_failed = yes; then 19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19489 $as_echo "no" >&6; } 19490 19491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19492 _pkg_short_errors_supported=yes 19493 else 19494 _pkg_short_errors_supported=no 19495 fi 19496 if test $_pkg_short_errors_supported = yes; then 19497 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1` 19498 else 19499 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1` 19500 fi 19501 # Put the nasty error message in config.log where it belongs 19502 echo "$GEN4ASM_PKG_ERRORS" >&5 19503 19504 gen4asm=no 19505 elif test $pkg_failed = untried; then 19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19507 $as_echo "no" >&6; } 19508 gen4asm=no 19509 else 19510 GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS 19511 GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS 19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19513 $as_echo "yes" >&6; } 19514 gen4asm=yes 19515 fi 19516 if test "x$ASM" = "xyes" -a "x$gen4asm" != "xyes"; then 19517 as_fn_error $? "intel-gen4asm support requested but not found" "$LINENO" 5 19518 fi 19519 fi 19520 if test "x$gen4asm" = "xyes"; then 19521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to use for intel-gen4asm" >&5 19522 $as_echo_n "checking path to use for intel-gen4asm... " >&6; } 19523 if test -n "$path" ; then 19524 INTEL_GEN4ASM="$path" 19525 else 19526 INTEL_GEN4ASM="`pkg-config intel-gen4asm --variable=exec_prefix`/bin/intel-gen4asm" 19527 fi 19528 if ! test -e "$INTEL_GEN4ASM"; then 19529 as_fn_error $? "intel-gen4asm enabled, but not found. Tried '$INTEL_GEN4ASM'." "$LINENO" 5 19530 fi 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTEL_GEN4ASM" >&5 19532 $as_echo "$INTEL_GEN4ASM" >&6; } 19533 19534 fi 19535 fi 19536 if test "x$gen4asm" = "xyes"; then 19537 HAVE_GEN4ASM_TRUE= 19538 HAVE_GEN4ASM_FALSE='#' 19539 else 19540 HAVE_GEN4ASM_TRUE='#' 19541 HAVE_GEN4ASM_FALSE= 19542 fi 19543 19544 19545 # Check for atomic intrinsics 19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5 19547 $as_echo_n "checking for native atomic primitives... " >&6; } 19548 if ${intel_cv_atomic_primitives+:} false; then : 19549 $as_echo_n "(cached) " >&6 19550 else 19551 19552 intel_cv_atomic_primitives="none" 19553 19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19555 /* end confdefs.h. */ 19556 19557 int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); } 19558 int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); } 19559 19560 int 19561 main () 19562 { 19563 19564 ; 19565 return 0; 19566 } 19567 _ACEOF 19568 if ac_fn_c_try_link "$LINENO"; then : 19569 intel_cv_atomic_primitives="Intel" 19570 fi 19571 rm -f core conftest.err conftest.$ac_objext \ 19572 conftest$ac_exeext conftest.$ac_ext 19573 19574 if test "x$intel_cv_atomic_primitives" = "xnone"; then 19575 ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default" 19576 if test "x$ac_cv_header_atomic_ops_h" = xyes; then : 19577 intel_cv_atomic_primitives="libatomic-ops" 19578 fi 19579 19580 19581 fi 19582 19583 # atomic functions defined in <atomic.h> & libc on Solaris 19584 if test "x$intel_cv_atomic_primitives" = "xnone"; then 19585 ac_fn_c_check_func "$LINENO" "atomic_cas_uint" "ac_cv_func_atomic_cas_uint" 19586 if test "x$ac_cv_func_atomic_cas_uint" = xyes; then : 19587 intel_cv_atomic_primitives="Solaris" 19588 fi 19589 19590 fi 19591 19592 19593 fi 19594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_cv_atomic_primitives" >&5 19595 $as_echo "$intel_cv_atomic_primitives" >&6; } 19596 if test "x$intel_cv_atomic_primitives" = "xIntel"; then 19597 19598 $as_echo "#define HAVE_ATOMIC_PRIMITIVES 1" >>confdefs.h 19599 19600 fi 19601 if test "x$intel_cv_atomic_primitives" = "xlibatomic-ops"; then 19602 19603 $as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h 19604 19605 fi 19606 19607 if test "x$intel_cv_atomic_primitives" = "xnone"; then 19608 as_fn_error $? "xf86-video-intel depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." "$LINENO" 5 19609 fi 19610 19611 # Check whether --enable-udev was given. 19612 if test "${enable_udev+set}" = set; then : 19613 enableval=$enable_udev; UDEV="$enableval" 19614 else 19615 UDEV=auto 19616 fi 19617 19618 19619 udev_msg=" disabled" 19620 if test "x$UDEV" != "xno"; then 19621 19622 pkg_failed=no 19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 19624 $as_echo_n "checking for UDEV... " >&6; } 19625 19626 if test -n "$UDEV_CFLAGS"; then 19627 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 19628 elif test -n "$PKG_CONFIG"; then 19629 if test -n "$PKG_CONFIG" && \ 19630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19631 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19632 ac_status=$? 19633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19634 test $ac_status = 0; }; then 19635 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 19636 test "x$?" != "x0" && pkg_failed=yes 19637 else 19638 pkg_failed=yes 19639 fi 19640 else 19641 pkg_failed=untried 19642 fi 19643 if test -n "$UDEV_LIBS"; then 19644 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 19645 elif test -n "$PKG_CONFIG"; then 19646 if test -n "$PKG_CONFIG" && \ 19647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19648 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19649 ac_status=$? 19650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19651 test $ac_status = 0; }; then 19652 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 19653 test "x$?" != "x0" && pkg_failed=yes 19654 else 19655 pkg_failed=yes 19656 fi 19657 else 19658 pkg_failed=untried 19659 fi 19660 19661 19662 19663 if test $pkg_failed = yes; then 19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19665 $as_echo "no" >&6; } 19666 19667 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19668 _pkg_short_errors_supported=yes 19669 else 19670 _pkg_short_errors_supported=no 19671 fi 19672 if test $_pkg_short_errors_supported = yes; then 19673 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 19674 else 19675 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 19676 fi 19677 # Put the nasty error message in config.log where it belongs 19678 echo "$UDEV_PKG_ERRORS" >&5 19679 19680 udev="no" 19681 elif test $pkg_failed = untried; then 19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19683 $as_echo "no" >&6; } 19684 udev="no" 19685 else 19686 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 19687 UDEV_LIBS=$pkg_cv_UDEV_LIBS 19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19689 $as_echo "yes" >&6; } 19690 udev="yes" 19691 fi 19692 for ac_header in sys/stat.h 19693 do : 19694 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 19695 if test "x$ac_cv_header_sys_stat_h" = xyes; then : 19696 cat >>confdefs.h <<_ACEOF 19697 #define HAVE_SYS_STAT_H 1 19698 _ACEOF 19699 19700 else 19701 udev="no" 19702 fi 19703 19704 done 19705 19706 if test "x$UDEV" = "xyes" -a "x$udev" != "xyes"; then 19707 as_fn_error $? "udev support requested but not found (libudev)" "$LINENO" 5 19708 fi 19709 if test "x$udev" = "xyes"; then 19710 19711 $as_echo "#define HAVE_UDEV 1" >>confdefs.h 19712 19713 udev_msg=" yes" 19714 else 19715 udev_msg=" no" 19716 fi 19717 fi 19718 19719 19720 pkg_failed=no 19721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 19722 $as_echo_n "checking for X11... " >&6; } 19723 19724 if test -n "$X11_CFLAGS"; then 19725 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 19726 elif test -n "$PKG_CONFIG"; then 19727 if test -n "$PKG_CONFIG" && \ 19728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng\""; } >&5 19729 ($PKG_CONFIG --exists --print-errors "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng") 2>&5 19730 ac_status=$? 19731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19732 test $ac_status = 0; }; then 19733 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>/dev/null` 19734 test "x$?" != "x0" && pkg_failed=yes 19735 else 19736 pkg_failed=yes 19737 fi 19738 else 19739 pkg_failed=untried 19740 fi 19741 if test -n "$X11_LIBS"; then 19742 pkg_cv_X11_LIBS="$X11_LIBS" 19743 elif test -n "$PKG_CONFIG"; then 19744 if test -n "$PKG_CONFIG" && \ 19745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng\""; } >&5 19746 ($PKG_CONFIG --exists --print-errors "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng") 2>&5 19747 ac_status=$? 19748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19749 test $ac_status = 0; }; then 19750 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>/dev/null` 19751 test "x$?" != "x0" && pkg_failed=yes 19752 else 19753 pkg_failed=yes 19754 fi 19755 else 19756 pkg_failed=untried 19757 fi 19758 19759 19760 19761 if test $pkg_failed = yes; then 19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19763 $as_echo "no" >&6; } 19764 19765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19766 _pkg_short_errors_supported=yes 19767 else 19768 _pkg_short_errors_supported=no 19769 fi 19770 if test $_pkg_short_errors_supported = yes; then 19771 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>&1` 19772 else 19773 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 x11-xcb xcb-dri2 xcomposite xdamage xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>&1` 19774 fi 19775 # Put the nasty error message in config.log where it belongs 19776 echo "$X11_PKG_ERRORS" >&5 19777 19778 x11="no" 19779 elif test $pkg_failed = untried; then 19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19781 $as_echo "no" >&6; } 19782 x11="no" 19783 else 19784 X11_CFLAGS=$pkg_cv_X11_CFLAGS 19785 X11_LIBS=$pkg_cv_X11_LIBS 19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19787 $as_echo "yes" >&6; } 19788 x11="yes" 19789 fi 19790 if test "x$x11" = "xyes"; then 19791 HAVE_X11_TRUE= 19792 HAVE_X11_FALSE='#' 19793 else 19794 HAVE_X11_TRUE='#' 19795 HAVE_X11_FALSE= 19796 fi 19797 19798 echo X11_CLFAGS="$X11_CLFAGS" X11_LIBS="$X11_LIBS" 19799 19800 cpuid="yes" 19801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19802 /* end confdefs.h. */ 19803 19804 #include <cpuid.h> 19805 #include <stddef.h> 19806 19807 int 19808 main () 19809 { 19810 19811 int eax, ebx, ecx, edx; 19812 if (__get_cpuid_max(0, NULL) < 4) 19813 return 0; 19814 __cpuid_count(4, 0, eax, ebx, ecx, edx); 19815 19816 ; 19817 return 0; 19818 } 19819 _ACEOF 19820 if ac_fn_c_try_link "$LINENO"; then : 19821 cpuid="yes" 19822 else 19823 cpuid="no" 19824 19825 fi 19826 rm -f core conftest.err conftest.$ac_objext \ 19827 conftest$ac_exeext conftest.$ac_ext 19828 if test "x$cpuid" = "xyes"; then 19829 19830 $as_echo "#define HAVE_CPUID_H 1" >>confdefs.h 19831 19832 fi 19833 19834 shm=yes 19835 for ac_header in sys/ipc.h sys/ipc.h 19836 do : 19837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19838 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19840 cat >>confdefs.h <<_ACEOF 19841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19842 _ACEOF 19843 19844 else 19845 shm="no" 19846 fi 19847 19848 done 19849 19850 for ac_header in X11/extensions/XShm.h 19851 do : 19852 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" " 19853 #include <X11/Xlibint.h> 19854 #include <X11/Xproto.h> 19855 19856 " 19857 if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then : 19858 cat >>confdefs.h <<_ACEOF 19859 #define HAVE_X11_EXTENSIONS_XSHM_H 1 19860 _ACEOF 19861 19862 else 19863 shm="no" 19864 fi 19865 19866 done 19867 19868 for ac_header in X11/extensions/shmproto.h X11/extensions/shmstr.h 19869 do : 19870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19871 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 19872 #include <X11/Xlibint.h> 19873 #include <X11/Xproto.h> 19874 19875 " 19876 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19877 cat >>confdefs.h <<_ACEOF 19878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19879 _ACEOF 19880 19881 fi 19882 19883 done 19884 19885 if test "x$ac_cv_header_X11_extensions_shmproto_h" != "xyes" -a "x$ac_cv_header_X11_extensions_shmstr_h" != "xyes"; then 19886 shm="no" 19887 fi 19888 19889 if test "x$shm" = "xyes"; then 19890 19891 $as_echo "#define HAVE_MIT_SHM 1" >>confdefs.h 19892 19893 fi 19894 19895 19896 pkg_failed=no 19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11_DRI3" >&5 19898 $as_echo_n "checking for X11_DRI3... " >&6; } 19899 19900 if test -n "$X11_DRI3_CFLAGS"; then 19901 pkg_cv_X11_DRI3_CFLAGS="$X11_DRI3_CFLAGS" 19902 elif test -n "$PKG_CONFIG"; then 19903 if test -n "$PKG_CONFIG" && \ 19904 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm\""; } >&5 19905 ($PKG_CONFIG --exists --print-errors "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm") 2>&5 19906 ac_status=$? 19907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19908 test $ac_status = 0; }; then 19909 pkg_cv_X11_DRI3_CFLAGS=`$PKG_CONFIG --cflags "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm" 2>/dev/null` 19910 test "x$?" != "x0" && pkg_failed=yes 19911 else 19912 pkg_failed=yes 19913 fi 19914 else 19915 pkg_failed=untried 19916 fi 19917 if test -n "$X11_DRI3_LIBS"; then 19918 pkg_cv_X11_DRI3_LIBS="$X11_DRI3_LIBS" 19919 elif test -n "$PKG_CONFIG"; then 19920 if test -n "$PKG_CONFIG" && \ 19921 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm\""; } >&5 19922 ($PKG_CONFIG --exists --print-errors "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm") 2>&5 19923 ac_status=$? 19924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19925 test $ac_status = 0; }; then 19926 pkg_cv_X11_DRI3_LIBS=`$PKG_CONFIG --libs "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm" 2>/dev/null` 19927 test "x$?" != "x0" && pkg_failed=yes 19928 else 19929 pkg_failed=yes 19930 fi 19931 else 19932 pkg_failed=untried 19933 fi 19934 19935 19936 19937 if test $pkg_failed = yes; then 19938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19939 $as_echo "no" >&6; } 19940 19941 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19942 _pkg_short_errors_supported=yes 19943 else 19944 _pkg_short_errors_supported=no 19945 fi 19946 if test $_pkg_short_errors_supported = yes; then 19947 X11_DRI3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm" 2>&1` 19948 else 19949 X11_DRI3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-dri3 xcb-sync xcb-xfixes xcb-present x11-xcb xshmfence x11 xcomposite xdamage xrender xrandr xxf86vm xext libdrm" 2>&1` 19950 fi 19951 # Put the nasty error message in config.log where it belongs 19952 echo "$X11_DRI3_PKG_ERRORS" >&5 19953 19954 x11_dri3="no" 19955 elif test $pkg_failed = untried; then 19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19957 $as_echo "no" >&6; } 19958 x11_dri3="no" 19959 else 19960 X11_DRI3_CFLAGS=$pkg_cv_X11_DRI3_CFLAGS 19961 X11_DRI3_LIBS=$pkg_cv_X11_DRI3_LIBS 19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19963 $as_echo "yes" >&6; } 19964 x11_dri3="yes" 19965 fi 19966 if test "x$x11_dri3" = "xyes" -a "x$shm" = "xyes"; then 19967 X11_DRI3_TRUE= 19968 X11_DRI3_FALSE='#' 19969 else 19970 X11_DRI3_TRUE='#' 19971 X11_DRI3_FALSE= 19972 fi 19973 19974 if test "x$shm" = "xyes"; then 19975 X11_SHM_TRUE= 19976 X11_SHM_FALSE='#' 19977 else 19978 X11_SHM_TRUE='#' 19979 X11_SHM_FALSE= 19980 fi 19981 19982 19983 19984 pkg_failed=no 19985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11_VM" >&5 19986 $as_echo_n "checking for X11_VM... " >&6; } 19987 19988 if test -n "$X11_VM_CFLAGS"; then 19989 pkg_cv_X11_VM_CFLAGS="$X11_VM_CFLAGS" 19990 elif test -n "$PKG_CONFIG"; then 19991 if test -n "$PKG_CONFIG" && \ 19992 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5 19993 ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5 19994 ac_status=$? 19995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19996 test $ac_status = 0; }; then 19997 pkg_cv_X11_VM_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null` 19998 test "x$?" != "x0" && pkg_failed=yes 19999 else 20000 pkg_failed=yes 20001 fi 20002 else 20003 pkg_failed=untried 20004 fi 20005 if test -n "$X11_VM_LIBS"; then 20006 pkg_cv_X11_VM_LIBS="$X11_VM_LIBS" 20007 elif test -n "$PKG_CONFIG"; then 20008 if test -n "$PKG_CONFIG" && \ 20009 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5 20010 ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5 20011 ac_status=$? 20012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20013 test $ac_status = 0; }; then 20014 pkg_cv_X11_VM_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null` 20015 test "x$?" != "x0" && pkg_failed=yes 20016 else 20017 pkg_failed=yes 20018 fi 20019 else 20020 pkg_failed=untried 20021 fi 20022 20023 20024 20025 if test $pkg_failed = yes; then 20026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20027 $as_echo "no" >&6; } 20028 20029 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20030 _pkg_short_errors_supported=yes 20031 else 20032 _pkg_short_errors_supported=no 20033 fi 20034 if test $_pkg_short_errors_supported = yes; then 20035 X11_VM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86vm" 2>&1` 20036 else 20037 X11_VM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86vm" 2>&1` 20038 fi 20039 # Put the nasty error message in config.log where it belongs 20040 echo "$X11_VM_PKG_ERRORS" >&5 20041 20042 x11_vm="no" 20043 elif test $pkg_failed = untried; then 20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20045 $as_echo "no" >&6; } 20046 x11_vm="no" 20047 else 20048 X11_VM_CFLAGS=$pkg_cv_X11_VM_CFLAGS 20049 X11_VM_LIBS=$pkg_cv_X11_VM_LIBS 20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20051 $as_echo "yes" >&6; } 20052 x11_vm="yes" 20053 fi 20054 if test "x$x11_vm" = "xyes"; then 20055 X11_VM_TRUE= 20056 X11_VM_FALSE='#' 20057 else 20058 X11_VM_TRUE='#' 20059 X11_VM_FALSE= 20060 fi 20061 20062 20063 # Check whether --enable-tools was given. 20064 if test "${enable_tools+set}" = set; then : 20065 enableval=$enable_tools; tools="$enableval" 20066 else 20067 tools="auto" 20068 fi 20069 20070 if test "x$shm" != "xyes"; then 20071 if test "x$tools" = "xyes"; then 20072 as_fn_error $? "Incomplete requirements for extra tools, X11 MIT-SHM extension required" "$LINENO" 5 20073 fi 20074 tools="no" 20075 fi 20076 if test "x$tools" != "xno"; then 20077 ivo_requires="xrandr xdamage xfixes xcursor xtst xrender xscrnsaver xext x11 pixman-1" 20078 extra_cflags="" 20079 20080 ignore="xinerama" 20081 20082 pkg_failed=no 20083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO_EXTRA" >&5 20084 $as_echo_n "checking for IVO_EXTRA... " >&6; } 20085 20086 if test -n "$IVO_EXTRA_CFLAGS"; then 20087 pkg_cv_IVO_EXTRA_CFLAGS="$IVO_EXTRA_CFLAGS" 20088 elif test -n "$PKG_CONFIG"; then 20089 if test -n "$PKG_CONFIG" && \ 20090 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5 20091 ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5 20092 ac_status=$? 20093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20094 test $ac_status = 0; }; then 20095 pkg_cv_IVO_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "$ignore" 2>/dev/null` 20096 test "x$?" != "x0" && pkg_failed=yes 20097 else 20098 pkg_failed=yes 20099 fi 20100 else 20101 pkg_failed=untried 20102 fi 20103 if test -n "$IVO_EXTRA_LIBS"; then 20104 pkg_cv_IVO_EXTRA_LIBS="$IVO_EXTRA_LIBS" 20105 elif test -n "$PKG_CONFIG"; then 20106 if test -n "$PKG_CONFIG" && \ 20107 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5 20108 ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5 20109 ac_status=$? 20110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20111 test $ac_status = 0; }; then 20112 pkg_cv_IVO_EXTRA_LIBS=`$PKG_CONFIG --libs "$ignore" 2>/dev/null` 20113 test "x$?" != "x0" && pkg_failed=yes 20114 else 20115 pkg_failed=yes 20116 fi 20117 else 20118 pkg_failed=untried 20119 fi 20120 20121 20122 20123 if test $pkg_failed = yes; then 20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20125 $as_echo "no" >&6; } 20126 20127 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20128 _pkg_short_errors_supported=yes 20129 else 20130 _pkg_short_errors_supported=no 20131 fi 20132 if test $_pkg_short_errors_supported = yes; then 20133 IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ignore" 2>&1` 20134 else 20135 IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ignore" 2>&1` 20136 fi 20137 # Put the nasty error message in config.log where it belongs 20138 echo "$IVO_EXTRA_PKG_ERRORS" >&5 20139 20140 ignore="" 20141 elif test $pkg_failed = untried; then 20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20143 $as_echo "no" >&6; } 20144 ignore="" 20145 else 20146 IVO_EXTRA_CFLAGS=$pkg_cv_IVO_EXTRA_CFLAGS 20147 IVO_EXTRA_LIBS=$pkg_cv_IVO_EXTRA_LIBS 20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20149 $as_echo "yes" >&6; } 20150 for ac_header in X11/extensions/Xinerama.h 20151 do : 20152 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlibint.h> 20153 #include <X11/Xproto.h> 20154 20155 " 20156 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then : 20157 cat >>confdefs.h <<_ACEOF 20158 #define HAVE_X11_EXTENSIONS_XINERAMA_H 1 20159 _ACEOF 20160 ivo_requires="$ignore $ivo_requires" 20161 fi 20162 20163 done 20164 20165 fi 20166 20167 ignore="xcb-dri3 xcb-sync x11-xcb xshmfence x11" 20168 20169 pkg_failed=no 20170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO_EXTRA" >&5 20171 $as_echo_n "checking for IVO_EXTRA... " >&6; } 20172 20173 if test -n "$IVO_EXTRA_CFLAGS"; then 20174 pkg_cv_IVO_EXTRA_CFLAGS="$IVO_EXTRA_CFLAGS" 20175 elif test -n "$PKG_CONFIG"; then 20176 if test -n "$PKG_CONFIG" && \ 20177 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5 20178 ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5 20179 ac_status=$? 20180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20181 test $ac_status = 0; }; then 20182 pkg_cv_IVO_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "$ignore" 2>/dev/null` 20183 test "x$?" != "x0" && pkg_failed=yes 20184 else 20185 pkg_failed=yes 20186 fi 20187 else 20188 pkg_failed=untried 20189 fi 20190 if test -n "$IVO_EXTRA_LIBS"; then 20191 pkg_cv_IVO_EXTRA_LIBS="$IVO_EXTRA_LIBS" 20192 elif test -n "$PKG_CONFIG"; then 20193 if test -n "$PKG_CONFIG" && \ 20194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5 20195 ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5 20196 ac_status=$? 20197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20198 test $ac_status = 0; }; then 20199 pkg_cv_IVO_EXTRA_LIBS=`$PKG_CONFIG --libs "$ignore" 2>/dev/null` 20200 test "x$?" != "x0" && pkg_failed=yes 20201 else 20202 pkg_failed=yes 20203 fi 20204 else 20205 pkg_failed=untried 20206 fi 20207 20208 20209 20210 if test $pkg_failed = yes; then 20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20212 $as_echo "no" >&6; } 20213 20214 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20215 _pkg_short_errors_supported=yes 20216 else 20217 _pkg_short_errors_supported=no 20218 fi 20219 if test $_pkg_short_errors_supported = yes; then 20220 IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ignore" 2>&1` 20221 else 20222 IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ignore" 2>&1` 20223 fi 20224 # Put the nasty error message in config.log where it belongs 20225 echo "$IVO_EXTRA_PKG_ERRORS" >&5 20226 20227 ignore="" 20228 elif test $pkg_failed = untried; then 20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20230 $as_echo "no" >&6; } 20231 ignore="" 20232 else 20233 IVO_EXTRA_CFLAGS=$pkg_cv_IVO_EXTRA_CFLAGS 20234 IVO_EXTRA_LIBS=$pkg_cv_IVO_EXTRA_LIBS 20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20236 $as_echo "yes" >&6; } 20237 ivo_requires="$ivo_requires $ignore"; extra_cflags="-DDRI3" 20238 fi 20239 20240 20241 pkg_failed=no 20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO" >&5 20243 $as_echo_n "checking for IVO... " >&6; } 20244 20245 if test -n "$IVO_CFLAGS"; then 20246 pkg_cv_IVO_CFLAGS="$IVO_CFLAGS" 20247 elif test -n "$PKG_CONFIG"; then 20248 if test -n "$PKG_CONFIG" && \ 20249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ivo_requires\""; } >&5 20250 ($PKG_CONFIG --exists --print-errors "$ivo_requires") 2>&5 20251 ac_status=$? 20252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20253 test $ac_status = 0; }; then 20254 pkg_cv_IVO_CFLAGS=`$PKG_CONFIG --cflags "$ivo_requires" 2>/dev/null` 20255 test "x$?" != "x0" && pkg_failed=yes 20256 else 20257 pkg_failed=yes 20258 fi 20259 else 20260 pkg_failed=untried 20261 fi 20262 if test -n "$IVO_LIBS"; then 20263 pkg_cv_IVO_LIBS="$IVO_LIBS" 20264 elif test -n "$PKG_CONFIG"; then 20265 if test -n "$PKG_CONFIG" && \ 20266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ivo_requires\""; } >&5 20267 ($PKG_CONFIG --exists --print-errors "$ivo_requires") 2>&5 20268 ac_status=$? 20269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20270 test $ac_status = 0; }; then 20271 pkg_cv_IVO_LIBS=`$PKG_CONFIG --libs "$ivo_requires" 2>/dev/null` 20272 test "x$?" != "x0" && pkg_failed=yes 20273 else 20274 pkg_failed=yes 20275 fi 20276 else 20277 pkg_failed=untried 20278 fi 20279 20280 20281 20282 if test $pkg_failed = yes; then 20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20284 $as_echo "no" >&6; } 20285 20286 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20287 _pkg_short_errors_supported=yes 20288 else 20289 _pkg_short_errors_supported=no 20290 fi 20291 if test $_pkg_short_errors_supported = yes; then 20292 IVO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ivo_requires" 2>&1` 20293 else 20294 IVO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ivo_requires" 2>&1` 20295 fi 20296 # Put the nasty error message in config.log where it belongs 20297 echo "$IVO_PKG_ERRORS" >&5 20298 20299 ivo="no" 20300 elif test $pkg_failed = untried; then 20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20302 $as_echo "no" >&6; } 20303 ivo="no" 20304 else 20305 IVO_CFLAGS=$pkg_cv_IVO_CFLAGS 20306 IVO_LIBS=$pkg_cv_IVO_LIBS 20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20308 $as_echo "yes" >&6; } 20309 ivo="yes" 20310 fi 20311 ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" 20312 if test "x$ac_cv_header_sys_timerfd_h" = xyes; then : 20313 20314 else 20315 ivo="no" 20316 fi 20317 20318 20319 if test "x$ivo" = "xno"; then 20320 if test "x$tools" = "xyes"; then 20321 as_fn_error $? "Incomplete requirements for intel-virtual-output, requires $ivo_requires" "$LINENO" 5 20322 fi 20323 tools="no" 20324 fi 20325 20326 20327 pkg_failed=no 20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOOL_CURSOR" >&5 20329 $as_echo_n "checking for TOOL_CURSOR... " >&6; } 20330 20331 if test -n "$TOOL_CURSOR_CFLAGS"; then 20332 pkg_cv_TOOL_CURSOR_CFLAGS="$TOOL_CURSOR_CFLAGS" 20333 elif test -n "$PKG_CONFIG"; then 20334 if test -n "$PKG_CONFIG" && \ 20335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes x11 libpng\""; } >&5 20336 ($PKG_CONFIG --exists --print-errors "xfixes x11 libpng") 2>&5 20337 ac_status=$? 20338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20339 test $ac_status = 0; }; then 20340 pkg_cv_TOOL_CURSOR_CFLAGS=`$PKG_CONFIG --cflags "xfixes x11 libpng" 2>/dev/null` 20341 test "x$?" != "x0" && pkg_failed=yes 20342 else 20343 pkg_failed=yes 20344 fi 20345 else 20346 pkg_failed=untried 20347 fi 20348 if test -n "$TOOL_CURSOR_LIBS"; then 20349 pkg_cv_TOOL_CURSOR_LIBS="$TOOL_CURSOR_LIBS" 20350 elif test -n "$PKG_CONFIG"; then 20351 if test -n "$PKG_CONFIG" && \ 20352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes x11 libpng\""; } >&5 20353 ($PKG_CONFIG --exists --print-errors "xfixes x11 libpng") 2>&5 20354 ac_status=$? 20355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20356 test $ac_status = 0; }; then 20357 pkg_cv_TOOL_CURSOR_LIBS=`$PKG_CONFIG --libs "xfixes x11 libpng" 2>/dev/null` 20358 test "x$?" != "x0" && pkg_failed=yes 20359 else 20360 pkg_failed=yes 20361 fi 20362 else 20363 pkg_failed=untried 20364 fi 20365 20366 20367 20368 if test $pkg_failed = yes; then 20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20370 $as_echo "no" >&6; } 20371 20372 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20373 _pkg_short_errors_supported=yes 20374 else 20375 _pkg_short_errors_supported=no 20376 fi 20377 if test $_pkg_short_errors_supported = yes; then 20378 TOOL_CURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes x11 libpng" 2>&1` 20379 else 20380 TOOL_CURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes x11 libpng" 2>&1` 20381 fi 20382 # Put the nasty error message in config.log where it belongs 20383 echo "$TOOL_CURSOR_PKG_ERRORS" >&5 20384 20385 ivo="no" 20386 elif test $pkg_failed = untried; then 20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20388 $as_echo "no" >&6; } 20389 ivo="no" 20390 else 20391 TOOL_CURSOR_CFLAGS=$pkg_cv_TOOL_CURSOR_CFLAGS 20392 TOOL_CURSOR_LIBS=$pkg_cv_TOOL_CURSOR_LIBS 20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20394 $as_echo "yes" >&6; } 20395 cursor="yes" 20396 fi 20397 20398 IVO_CFLAGS="$IVO_CFLAGS $extra_cflags" 20399 fi 20400 if test "x$tools" != "xno"; then 20401 tools_msg="$tools_msg intel-virtual-output" 20402 fi 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build additional tools" >&5 20404 $as_echo_n "checking whether to build additional tools... " >&6; } 20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tools" >&5 20406 $as_echo "$tools" >&6; } 20407 if test "x$tools" != "xno"; then 20408 BUILD_TOOLS_TRUE= 20409 BUILD_TOOLS_FALSE='#' 20410 else 20411 BUILD_TOOLS_TRUE='#' 20412 BUILD_TOOLS_FALSE= 20413 fi 20414 20415 if test "x$cursor" = "xyes"; then 20416 BUILD_TOOL_CURSOR_TRUE= 20417 BUILD_TOOL_CURSOR_FALSE='#' 20418 else 20419 BUILD_TOOL_CURSOR_TRUE='#' 20420 BUILD_TOOL_CURSOR_FALSE= 20421 fi 20422 20423 20424 # Define a configure option for an alternate module directory 20425 20426 # Check whether --with-xorg-module-dir was given. 20427 if test "${with_xorg_module_dir+set}" = set; then : 20428 withval=$with_xorg_module_dir; moduledir="$withval" 20429 else 20430 moduledir="$libdir/xorg/modules" 20431 fi 20432 20433 20434 # Check whether --enable-dri was given. 20435 if test "${enable_dri+set}" = set; then : 20436 enableval=$enable_dri; DRI=$enableval 20437 else 20438 DRI=auto 20439 fi 20440 20441 # Check whether --enable-dri1 was given. 20442 if test "${enable_dri1+set}" = set; then : 20443 enableval=$enable_dri1; DRI1=$enableval 20444 else 20445 DRI1=auto 20446 fi 20447 20448 # Check whether --enable-dri2 was given. 20449 if test "${enable_dri2+set}" = set; then : 20450 enableval=$enable_dri2; DRI2=$enableval 20451 else 20452 DRI2=yes 20453 fi 20454 20455 # Check whether --enable-dri3 was given. 20456 if test "${enable_dri3+set}" = set; then : 20457 enableval=$enable_dri3; DRI3=$enableval 20458 else 20459 DRI3=yes 20460 fi 20461 20462 20463 # Check whether --with-default-dri was given. 20464 if test "${with_default_dri+set}" = set; then : 20465 withval=$with_default_dri; DRI_DEFAULT=$withval 20466 else 20467 DRI_DEFAULT=2 20468 fi 20469 20470 if test "x$DRI_DEFAULT" = "x0"; then 20471 20472 $as_echo "#define DEFAULT_DRI_LEVEL 0" >>confdefs.h 20473 20474 else 20475 20476 $as_echo "#define DEFAULT_DRI_LEVEL ~0" >>confdefs.h 20477 20478 fi 20479 20480 # Check whether --enable-xvmc was given. 20481 if test "${enable_xvmc+set}" = set; then : 20482 enableval=$enable_xvmc; XVMC="$enableval" 20483 else 20484 XVMC="yes" 20485 fi 20486 20487 20488 # Check whether --enable-kms was given. 20489 if test "${enable_kms+set}" = set; then : 20490 enableval=$enable_kms; KMS="$enableval" 20491 else 20492 KMS="yes" 20493 fi 20494 20495 # Check whether --enable-ums was given. 20496 if test "${enable_ums+set}" = set; then : 20497 enableval=$enable_ums; UMS="$enableval" 20498 else 20499 UMS="auto" 20500 fi 20501 20502 20503 # Check whether --enable-kms-only was given. 20504 if test "${enable_kms_only+set}" = set; then : 20505 enableval=$enable_kms_only; ONLY_KMS="$enableval" 20506 else 20507 ONLY_KMS="no" 20508 fi 20509 20510 20511 # Check whether --enable-ums-only was given. 20512 if test "${enable_ums_only+set}" = set; then : 20513 enableval=$enable_ums_only; ONLY_UMS="$enableval" 20514 else 20515 ONLY_UMS="no" 20516 fi 20517 20518 20519 required_xorg_server_version=1.6 20520 required_pixman_version=0.16 20521 20522 if test -n "$PKG_CONFIG" && \ 20523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.24.0\""; } >&5 20524 ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.24.0") 2>&5 20525 ac_status=$? 20526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20527 test $ac_status = 0; }; then 20528 20529 $as_echo "#define HAS_PIXMAN_TRIANGLES 1" >>confdefs.h 20530 20531 20532 fi 20533 if test -n "$PKG_CONFIG" && \ 20534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.27.1\""; } >&5 20535 ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.27.1") 2>&5 20536 ac_status=$? 20537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20538 test $ac_status = 0; }; then 20539 20540 $as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h 20541 20542 fi 20543 # Store the list of server defined optional extensions in REQUIRED_MODULES 20544 20545 20546 SAVE_CFLAGS="$CFLAGS" 20547 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 20548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20549 /* end confdefs.h. */ 20550 20551 #include "xorg-server.h" 20552 #if !defined RANDR 20553 #error RANDR not defined 20554 #endif 20555 20556 int 20557 main () 20558 { 20559 20560 ; 20561 return 0; 20562 } 20563 _ACEOF 20564 if ac_fn_c_try_compile "$LINENO"; then : 20565 _EXT_CHECK=yes 20566 else 20567 _EXT_CHECK=no 20568 fi 20569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20570 CFLAGS="$SAVE_CFLAGS" 20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 20572 $as_echo_n "checking if RANDR is defined... " >&6; } 20573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20574 $as_echo "$_EXT_CHECK" >&6; } 20575 if test "$_EXT_CHECK" != no; then 20576 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20577 fi 20578 20579 20580 20581 SAVE_CFLAGS="$CFLAGS" 20582 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 20583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20584 /* end confdefs.h. */ 20585 20586 #include "xorg-server.h" 20587 #if !defined RENDER 20588 #error RENDER not defined 20589 #endif 20590 20591 int 20592 main () 20593 { 20594 20595 ; 20596 return 0; 20597 } 20598 _ACEOF 20599 if ac_fn_c_try_compile "$LINENO"; then : 20600 _EXT_CHECK=yes 20601 else 20602 _EXT_CHECK=no 20603 fi 20604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20605 CFLAGS="$SAVE_CFLAGS" 20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 20607 $as_echo_n "checking if RENDER is defined... " >&6; } 20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20609 $as_echo "$_EXT_CHECK" >&6; } 20610 if test "$_EXT_CHECK" != no; then 20611 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 20612 fi 20613 20614 20615 20616 SAVE_CFLAGS="$CFLAGS" 20617 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 20618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20619 /* end confdefs.h. */ 20620 20621 #include "xorg-server.h" 20622 #if !defined DPMSExtension 20623 #error DPMSExtension not defined 20624 #endif 20625 20626 int 20627 main () 20628 { 20629 20630 ; 20631 return 0; 20632 } 20633 _ACEOF 20634 if ac_fn_c_try_compile "$LINENO"; then : 20635 _EXT_CHECK=yes 20636 else 20637 _EXT_CHECK=no 20638 fi 20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20640 CFLAGS="$SAVE_CFLAGS" 20641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 20642 $as_echo_n "checking if DPMSExtension is defined... " >&6; } 20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20644 $as_echo "$_EXT_CHECK" >&6; } 20645 if test "$_EXT_CHECK" != no; then 20646 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 20647 fi 20648 20649 20650 # Obtain compiler/linker options for the driver dependencies 20651 20652 pkg_failed=no 20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5 20654 $as_echo_n "checking for DRM... " >&6; } 20655 20656 if test -n "$DRM_CFLAGS"; then 20657 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS" 20658 elif test -n "$PKG_CONFIG"; then 20659 if test -n "$PKG_CONFIG" && \ 20660 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5 20661 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5 20662 ac_status=$? 20663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20664 test $ac_status = 0; }; then 20665 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.20" 2>/dev/null` 20666 test "x$?" != "x0" && pkg_failed=yes 20667 else 20668 pkg_failed=yes 20669 fi 20670 else 20671 pkg_failed=untried 20672 fi 20673 if test -n "$DRM_LIBS"; then 20674 pkg_cv_DRM_LIBS="$DRM_LIBS" 20675 elif test -n "$PKG_CONFIG"; then 20676 if test -n "$PKG_CONFIG" && \ 20677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5 20678 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5 20679 ac_status=$? 20680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20681 test $ac_status = 0; }; then 20682 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.20" 2>/dev/null` 20683 test "x$?" != "x0" && pkg_failed=yes 20684 else 20685 pkg_failed=yes 20686 fi 20687 else 20688 pkg_failed=untried 20689 fi 20690 20691 20692 20693 if test $pkg_failed = yes; then 20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20695 $as_echo "no" >&6; } 20696 20697 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20698 _pkg_short_errors_supported=yes 20699 else 20700 _pkg_short_errors_supported=no 20701 fi 20702 if test $_pkg_short_errors_supported = yes; then 20703 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1` 20704 else 20705 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1` 20706 fi 20707 # Put the nasty error message in config.log where it belongs 20708 echo "$DRM_PKG_ERRORS" >&5 20709 20710 as_fn_error $? "Package requirements (libdrm >= 2.4.20) were not met: 20711 20712 $DRM_PKG_ERRORS 20713 20714 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20715 installed software in a non-standard prefix. 20716 20717 Alternatively, you may set the environment variables DRM_CFLAGS 20718 and DRM_LIBS to avoid the need to call pkg-config. 20719 See the pkg-config man page for more details." "$LINENO" 5 20720 elif test $pkg_failed = untried; then 20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20722 $as_echo "no" >&6; } 20723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20725 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20726 is in your PATH or set the PKG_CONFIG environment variable to the full 20727 path to pkg-config. 20728 20729 Alternatively, you may set the environment variables DRM_CFLAGS 20730 and DRM_LIBS to avoid the need to call pkg-config. 20731 See the pkg-config man page for more details. 20732 20733 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20734 See \`config.log' for more details" "$LINENO" 5; } 20735 else 20736 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS 20737 DRM_LIBS=$pkg_cv_DRM_LIBS 20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20739 $as_echo "yes" >&6; } 20740 20741 fi # libdrm_intel is checked separately 20742 20743 pkg_failed=no 20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 20745 $as_echo_n "checking for PCIACCESS... " >&6; } 20746 20747 if test -n "$PCIACCESS_CFLAGS"; then 20748 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 20749 elif test -n "$PKG_CONFIG"; then 20750 if test -n "$PKG_CONFIG" && \ 20751 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 20752 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 20753 ac_status=$? 20754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20755 test $ac_status = 0; }; then 20756 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 20757 test "x$?" != "x0" && pkg_failed=yes 20758 else 20759 pkg_failed=yes 20760 fi 20761 else 20762 pkg_failed=untried 20763 fi 20764 if test -n "$PCIACCESS_LIBS"; then 20765 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 20766 elif test -n "$PKG_CONFIG"; then 20767 if test -n "$PKG_CONFIG" && \ 20768 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 20769 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 20770 ac_status=$? 20771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20772 test $ac_status = 0; }; then 20773 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 20774 test "x$?" != "x0" && pkg_failed=yes 20775 else 20776 pkg_failed=yes 20777 fi 20778 else 20779 pkg_failed=untried 20780 fi 20781 20782 20783 20784 if test $pkg_failed = yes; then 20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20786 $as_echo "no" >&6; } 20787 20788 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20789 _pkg_short_errors_supported=yes 20790 else 20791 _pkg_short_errors_supported=no 20792 fi 20793 if test $_pkg_short_errors_supported = yes; then 20794 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20795 else 20796 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20797 fi 20798 # Put the nasty error message in config.log where it belongs 20799 echo "$PCIACCESS_PKG_ERRORS" >&5 20800 20801 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met: 20802 20803 $PCIACCESS_PKG_ERRORS 20804 20805 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20806 installed software in a non-standard prefix. 20807 20808 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20809 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20810 See the pkg-config man page for more details." "$LINENO" 5 20811 elif test $pkg_failed = untried; then 20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20813 $as_echo "no" >&6; } 20814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20816 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20817 is in your PATH or set the PKG_CONFIG environment variable to the full 20818 path to pkg-config. 20819 20820 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20821 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20822 See the pkg-config man page for more details. 20823 20824 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20825 See \`config.log' for more details" "$LINENO" 5; } 20826 else 20827 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20828 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20830 $as_echo "yes" >&6; } 20831 20832 fi 20833 20834 # Check whether --enable-sna was given. 20835 if test "${enable_sna+set}" = set; then : 20836 enableval=$enable_sna; SNA="$enableval" 20837 else 20838 SNA=auto 20839 fi 20840 20841 20842 for ac_header in dev/wscons/wsconsio.h 20843 do : 20844 ac_fn_c_check_header_mongrel "$LINENO" "dev/wscons/wsconsio.h" "ac_cv_header_dev_wscons_wsconsio_h" "$ac_includes_default" 20845 if test "x$ac_cv_header_dev_wscons_wsconsio_h" = xyes; then : 20846 cat >>confdefs.h <<_ACEOF 20847 #define HAVE_DEV_WSCONS_WSCONSIO_H 1 20848 _ACEOF 20849 20850 fi 20851 20852 done 20853 20854 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20855 if test "x$ac_cv_type_size_t" = xyes; then : 20856 20857 else 20858 20859 cat >>confdefs.h <<_ACEOF 20860 #define size_t unsigned int 20861 _ACEOF 20862 20863 fi 20864 20865 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 20866 # for constant arguments. Useless! 20867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 20868 $as_echo_n "checking for working alloca.h... " >&6; } 20869 if ${ac_cv_working_alloca_h+:} false; then : 20870 $as_echo_n "(cached) " >&6 20871 else 20872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20873 /* end confdefs.h. */ 20874 #include <alloca.h> 20875 int 20876 main () 20877 { 20878 char *p = (char *) alloca (2 * sizeof (int)); 20879 if (p) return 0; 20880 ; 20881 return 0; 20882 } 20883 _ACEOF 20884 if ac_fn_c_try_link "$LINENO"; then : 20885 ac_cv_working_alloca_h=yes 20886 else 20887 ac_cv_working_alloca_h=no 20888 fi 20889 rm -f core conftest.err conftest.$ac_objext \ 20890 conftest$ac_exeext conftest.$ac_ext 20891 fi 20892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 20893 $as_echo "$ac_cv_working_alloca_h" >&6; } 20894 if test $ac_cv_working_alloca_h = yes; then 20895 20896 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 20897 20898 fi 20899 20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 20901 $as_echo_n "checking for alloca... " >&6; } 20902 if ${ac_cv_func_alloca_works+:} false; then : 20903 $as_echo_n "(cached) " >&6 20904 else 20905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20906 /* end confdefs.h. */ 20907 #ifdef __GNUC__ 20908 # define alloca __builtin_alloca 20909 #else 20910 # ifdef _MSC_VER 20911 # include <malloc.h> 20912 # define alloca _alloca 20913 # elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__) 20914 # include <stdlib.h> 20915 # else 20916 # ifdef HAVE_ALLOCA_H 20917 # include <alloca.h> 20918 # else 20919 # ifdef _AIX 20920 #pragma alloca 20921 # else 20922 # ifndef alloca /* predefined by HP cc +Olibcalls */ 20923 void *alloca (size_t); 20924 # endif 20925 # endif 20926 # endif 20927 # endif 20928 #endif 20929 20930 int 20931 main () 20932 { 20933 char *p = (char *) alloca (1); 20934 if (p) return 0; 20935 ; 20936 return 0; 20937 } 20938 _ACEOF 20939 if ac_fn_c_try_link "$LINENO"; then : 20940 ac_cv_func_alloca_works=yes 20941 else 20942 ac_cv_func_alloca_works=no 20943 fi 20944 rm -f core conftest.err conftest.$ac_objext \ 20945 conftest$ac_exeext conftest.$ac_ext 20946 fi 20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 20948 $as_echo "$ac_cv_func_alloca_works" >&6; } 20949 20950 if test $ac_cv_func_alloca_works = yes; then 20951 20952 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 20953 20954 else 20955 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 20956 # that cause trouble. Some versions do not even contain alloca or 20957 # contain a buggy version. If you still want to use their alloca, 20958 # use ar to extract alloca.o from them instead of compiling alloca.c. 20959 20960 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 20961 20962 $as_echo "#define C_ALLOCA 1" >>confdefs.h 20963 20964 20965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 20966 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 20967 if ${ac_cv_os_cray+:} false; then : 20968 $as_echo_n "(cached) " >&6 20969 else 20970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20971 /* end confdefs.h. */ 20972 #if defined CRAY && ! defined CRAY2 20973 webecray 20974 #else 20975 wenotbecray 20976 #endif 20977 20978 _ACEOF 20979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20980 $EGREP "webecray" >/dev/null 2>&1; then : 20981 ac_cv_os_cray=yes 20982 else 20983 ac_cv_os_cray=no 20984 fi 20985 rm -f conftest* 20986 20987 fi 20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 20989 $as_echo "$ac_cv_os_cray" >&6; } 20990 if test $ac_cv_os_cray = yes; then 20991 for ac_func in _getb67 GETB67 getb67; do 20992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20994 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20995 20996 cat >>confdefs.h <<_ACEOF 20997 #define CRAY_STACKSEG_END $ac_func 20998 _ACEOF 20999 21000 break 21001 fi 21002 21003 done 21004 fi 21005 21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 21007 $as_echo_n "checking stack direction for C alloca... " >&6; } 21008 if ${ac_cv_c_stack_direction+:} false; then : 21009 $as_echo_n "(cached) " >&6 21010 else 21011 if test "$cross_compiling" = yes; then : 21012 ac_cv_c_stack_direction=0 21013 else 21014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21015 /* end confdefs.h. */ 21016 $ac_includes_default 21017 int 21018 find_stack_direction (int *addr, int depth) 21019 { 21020 int dir, dummy = 0; 21021 if (! addr) 21022 addr = &dummy; 21023 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 21024 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 21025 return dir + dummy; 21026 } 21027 21028 int 21029 main (int argc, char **argv) 21030 { 21031 return find_stack_direction (0, argc + !argv + 20) < 0; 21032 } 21033 _ACEOF 21034 if ac_fn_c_try_run "$LINENO"; then : 21035 ac_cv_c_stack_direction=1 21036 else 21037 ac_cv_c_stack_direction=-1 21038 fi 21039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21040 conftest.$ac_objext conftest.beam conftest.$ac_ext 21041 fi 21042 21043 fi 21044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 21045 $as_echo "$ac_cv_c_stack_direction" >&6; } 21046 cat >>confdefs.h <<_ACEOF 21047 #define STACK_DIRECTION $ac_cv_c_stack_direction 21048 _ACEOF 21049 21050 21051 fi 21052 21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 21054 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 21055 if ${ac_cv_header_sys_types_h_makedev+:} false; then : 21056 $as_echo_n "(cached) " >&6 21057 else 21058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21059 /* end confdefs.h. */ 21060 #include <sys/types.h> 21061 int 21062 main () 21063 { 21064 return makedev(0, 0); 21065 ; 21066 return 0; 21067 } 21068 _ACEOF 21069 if ac_fn_c_try_link "$LINENO"; then : 21070 ac_cv_header_sys_types_h_makedev=yes 21071 else 21072 ac_cv_header_sys_types_h_makedev=no 21073 fi 21074 rm -f core conftest.err conftest.$ac_objext \ 21075 conftest$ac_exeext conftest.$ac_ext 21076 21077 fi 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 21079 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 21080 21081 if test $ac_cv_header_sys_types_h_makedev = no; then 21082 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 21083 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 21084 21085 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 21086 21087 fi 21088 21089 21090 21091 if test $ac_cv_header_sys_mkdev_h = no; then 21092 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 21093 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 21094 21095 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 21096 21097 fi 21098 21099 21100 fi 21101 fi 21102 21103 21104 if test "x$SNA" != "xno"; then 21105 21106 $as_echo "#define USE_SNA 1" >>confdefs.h 21107 21108 for ac_header in sys/sysinfo.h 21109 do : 21110 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default" 21111 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then : 21112 cat >>confdefs.h <<_ACEOF 21113 #define HAVE_SYS_SYSINFO_H 1 21114 _ACEOF 21115 21116 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 21117 # ---------------------------------------------------- 21118 # Tries to find if the field MEMBER exists in type AGGR, after including 21119 # INCLUDES, setting cache variable VAR accordingly. 21120 ac_fn_c_check_member () 21121 { 21122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 21124 $as_echo_n "checking for $2.$3... " >&6; } 21125 if eval \${$4+:} false; then : 21126 $as_echo_n "(cached) " >&6 21127 else 21128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21129 /* end confdefs.h. */ 21130 $5 21131 int 21132 main () 21133 { 21134 static $2 ac_aggr; 21135 if (ac_aggr.$3) 21136 return 0; 21137 ; 21138 return 0; 21139 } 21140 _ACEOF 21141 if ac_fn_c_try_compile "$LINENO"; then : 21142 eval "$4=yes" 21143 else 21144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21145 /* end confdefs.h. */ 21146 $5 21147 int 21148 main () 21149 { 21150 static $2 ac_aggr; 21151 if (sizeof ac_aggr.$3) 21152 return 0; 21153 ; 21154 return 0; 21155 } 21156 _ACEOF 21157 if ac_fn_c_try_compile "$LINENO"; then : 21158 eval "$4=yes" 21159 else 21160 eval "$4=no" 21161 fi 21162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21163 fi 21164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21165 fi 21166 eval ac_res=\$$4 21167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21168 $as_echo "$ac_res" >&6; } 21169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 21170 21171 } # ac_fn_c_check_member 21172 ac_fn_c_check_member "$LINENO" "struct sysinfo" "totalram" "ac_cv_member_struct_sysinfo_totalram" "#include <sys/sysinfo.h> 21173 " 21174 if test "x$ac_cv_member_struct_sysinfo_totalram" = xyes; then : 21175 21176 cat >>confdefs.h <<_ACEOF 21177 #define HAVE_STRUCT_SYSINFO_TOTALRAM 1 21178 _ACEOF 21179 21180 21181 fi 21182 21183 fi 21184 21185 done 21186 21187 fi 21188 21189 uxa_requires_libdrm=2.4.52 21190 uxa_requires_pixman=0.24.0 21191 21192 # Check whether --enable-uxa was given. 21193 if test "${enable_uxa+set}" = set; then : 21194 enableval=$enable_uxa; UXA="$enableval" 21195 else 21196 UXA=auto 21197 fi 21198 21199 if test "x$UXA" = "xauto"; then 21200 if test -n "$PKG_CONFIG" && \ 21201 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm pixman-1 >= \$uxa_requires_pixman\""; } >&5 21202 ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm pixman-1 >= $uxa_requires_pixman") 2>&5 21203 ac_status=$? 21204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21205 test $ac_status = 0; }; then 21206 : 21207 else 21208 UXA=no 21209 fi 21210 fi 21211 if test "x$UXA" != "xno"; then 21212 21213 $as_echo "#define USE_UXA 1" >>confdefs.h 21214 21215 21216 pkg_failed=no 21217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRMINTEL" >&5 21218 $as_echo_n "checking for DRMINTEL... " >&6; } 21219 21220 if test -n "$DRMINTEL_CFLAGS"; then 21221 pkg_cv_DRMINTEL_CFLAGS="$DRMINTEL_CFLAGS" 21222 elif test -n "$PKG_CONFIG"; then 21223 if test -n "$PKG_CONFIG" && \ 21224 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm\""; } >&5 21225 ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm") 2>&5 21226 ac_status=$? 21227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21228 test $ac_status = 0; }; then 21229 pkg_cv_DRMINTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $uxa_requires_libdrm" 2>/dev/null` 21230 test "x$?" != "x0" && pkg_failed=yes 21231 else 21232 pkg_failed=yes 21233 fi 21234 else 21235 pkg_failed=untried 21236 fi 21237 if test -n "$DRMINTEL_LIBS"; then 21238 pkg_cv_DRMINTEL_LIBS="$DRMINTEL_LIBS" 21239 elif test -n "$PKG_CONFIG"; then 21240 if test -n "$PKG_CONFIG" && \ 21241 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm\""; } >&5 21242 ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm") 2>&5 21243 ac_status=$? 21244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21245 test $ac_status = 0; }; then 21246 pkg_cv_DRMINTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $uxa_requires_libdrm" 2>/dev/null` 21247 test "x$?" != "x0" && pkg_failed=yes 21248 else 21249 pkg_failed=yes 21250 fi 21251 else 21252 pkg_failed=untried 21253 fi 21254 21255 21256 21257 if test $pkg_failed = yes; then 21258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21259 $as_echo "no" >&6; } 21260 21261 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21262 _pkg_short_errors_supported=yes 21263 else 21264 _pkg_short_errors_supported=no 21265 fi 21266 if test $_pkg_short_errors_supported = yes; then 21267 DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $uxa_requires_libdrm" 2>&1` 21268 else 21269 DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $uxa_requires_libdrm" 2>&1` 21270 fi 21271 # Put the nasty error message in config.log where it belongs 21272 echo "$DRMINTEL_PKG_ERRORS" >&5 21273 21274 as_fn_error $? "Package requirements (libdrm_intel >= $uxa_requires_libdrm) were not met: 21275 21276 $DRMINTEL_PKG_ERRORS 21277 21278 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21279 installed software in a non-standard prefix. 21280 21281 Alternatively, you may set the environment variables DRMINTEL_CFLAGS 21282 and DRMINTEL_LIBS to avoid the need to call pkg-config. 21283 See the pkg-config man page for more details." "$LINENO" 5 21284 elif test $pkg_failed = untried; then 21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21286 $as_echo "no" >&6; } 21287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21289 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21290 is in your PATH or set the PKG_CONFIG environment variable to the full 21291 path to pkg-config. 21292 21293 Alternatively, you may set the environment variables DRMINTEL_CFLAGS 21294 and DRMINTEL_LIBS to avoid the need to call pkg-config. 21295 See the pkg-config man page for more details. 21296 21297 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21298 See \`config.log' for more details" "$LINENO" 5; } 21299 else 21300 DRMINTEL_CFLAGS=$pkg_cv_DRMINTEL_CFLAGS 21301 DRMINTEL_LIBS=$pkg_cv_DRMINTEL_LIBS 21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21303 $as_echo "yes" >&6; } 21304 21305 fi 21306 required_pixman_version=0.24 21307 UXA=yes 21308 fi 21309 21310 21311 pkg_failed=no 21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 21313 $as_echo_n "checking for XORG... " >&6; } 21314 21315 if test -n "$XORG_CFLAGS"; then 21316 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 21317 elif test -n "$PKG_CONFIG"; then 21318 if test -n "$PKG_CONFIG" && \ 21319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto damageproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5 21320 ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5 21321 ac_status=$? 21322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21323 test $ac_status = 0; }; then 21324 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null` 21325 test "x$?" != "x0" && pkg_failed=yes 21326 else 21327 pkg_failed=yes 21328 fi 21329 else 21330 pkg_failed=untried 21331 fi 21332 if test -n "$XORG_LIBS"; then 21333 pkg_cv_XORG_LIBS="$XORG_LIBS" 21334 elif test -n "$PKG_CONFIG"; then 21335 if test -n "$PKG_CONFIG" && \ 21336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto damageproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5 21337 ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5 21338 ac_status=$? 21339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21340 test $ac_status = 0; }; then 21341 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null` 21342 test "x$?" != "x0" && pkg_failed=yes 21343 else 21344 pkg_failed=yes 21345 fi 21346 else 21347 pkg_failed=untried 21348 fi 21349 21350 21351 21352 if test $pkg_failed = yes; then 21353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21354 $as_echo "no" >&6; } 21355 21356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21357 _pkg_short_errors_supported=yes 21358 else 21359 _pkg_short_errors_supported=no 21360 fi 21361 if test $_pkg_short_errors_supported = yes; then 21362 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1` 21363 else 21364 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1` 21365 fi 21366 # Put the nasty error message in config.log where it belongs 21367 echo "$XORG_PKG_ERRORS" >&5 21368 21369 as_fn_error $? "Package requirements (xorg-server >= $required_xorg_server_version xproto fontsproto damageproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES) were not met: 21370 21371 $XORG_PKG_ERRORS 21372 21373 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21374 installed software in a non-standard prefix. 21375 21376 Alternatively, you may set the environment variables XORG_CFLAGS 21377 and XORG_LIBS to avoid the need to call pkg-config. 21378 See the pkg-config man page for more details." "$LINENO" 5 21379 elif test $pkg_failed = untried; then 21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21381 $as_echo "no" >&6; } 21382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21384 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21385 is in your PATH or set the PKG_CONFIG environment variable to the full 21386 path to pkg-config. 21387 21388 Alternatively, you may set the environment variables XORG_CFLAGS 21389 and XORG_LIBS to avoid the need to call pkg-config. 21390 See the pkg-config man page for more details. 21391 21392 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21393 See \`config.log' for more details" "$LINENO" 5; } 21394 else 21395 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21396 XORG_LIBS=$pkg_cv_XORG_LIBS 21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21398 $as_echo "yes" >&6; } 21399 21400 fi 21401 ABI_VERSION=`$PKG_CONFIG --variable=abi_videodrv xorg-server` 21402 XSERVER_VERSION=`$PKG_CONFIG --modversion xorg-server` 21403 PIXMAN_VERSION=`$PKG_CONFIG --modversion pixman-1` 21404 21405 if test "x$ONLY_UMS" = "xyes"; then 21406 UMS="yes" 21407 KMS="no" 21408 fi 21409 21410 if test "x$ONLY_KMS" = "xyes"; then 21411 UMS="no" 21412 KMS="yes" 21413 fi 21414 21415 save_CPPFLAGS=$CPPFLAGS 21416 CPPFLAGS=$XORG_CFLAGS 21417 for ac_header in vgaHW.h 21418 do : 21419 ac_fn_c_check_header_mongrel "$LINENO" "vgaHW.h" "ac_cv_header_vgaHW_h" "$ac_includes_default" 21420 if test "x$ac_cv_header_vgaHW_h" = xyes; then : 21421 cat >>confdefs.h <<_ACEOF 21422 #define HAVE_VGAHW_H 1 21423 _ACEOF 21424 legacy="yes" 21425 else 21426 legacy="no" 21427 fi 21428 21429 done 21430 21431 CPPFLAGS=$save_CPPFLAGS 21432 if test "x$UMS" = "xauto"; then 21433 UMS="$legacy" 21434 fi 21435 if test "x$UMS" = "xyes" -a "x$legacy" = "xno"; then 21436 as_fn_error $? "vgaHW support required for UMS (i810) driver" "$LINENO" 5 21437 fi 21438 21439 if test "x$UMS" = "xyes"; then 21440 # Check whether --enable-xaa was given. 21441 if test "${enable_xaa+set}" = set; then : 21442 enableval=$enable_xaa; XAA="$enableval" 21443 else 21444 XAA="auto" 21445 fi 21446 21447 if test "x$XAA" != "xno"; then 21448 save_CPPFLAGS=$CPPFLAGS 21449 CPPFLAGS=$XORG_CFLAGS 21450 for ac_header in xaa.h 21451 do : 21452 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 21453 if test "x$ac_cv_header_xaa_h" = xyes; then : 21454 cat >>confdefs.h <<_ACEOF 21455 #define HAVE_XAA_H 1 21456 _ACEOF 21457 XAA="yes" 21458 else 21459 XAA="no" 21460 fi 21461 21462 done 21463 21464 CPPFLAGS=$save_CPPFLAGS 21465 fi 21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 21467 $as_echo_n "checking whether to include XAA support... " >&6; } 21468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 21469 $as_echo "$XAA" >&6; } 21470 21471 # Check whether --enable-dga was given. 21472 if test "${enable_dga+set}" = set; then : 21473 enableval=$enable_dga; DGA="$enableval" 21474 else 21475 DGA="auto" 21476 fi 21477 21478 if test "x$DGA" != "xno"; then 21479 save_CFLAGS=$CFLAGS 21480 CFLAGS=$XORG_CFLAGS 21481 for ac_header in dgaproc.h 21482 do : 21483 ac_fn_c_check_header_compile "$LINENO" "dgaproc.h" "ac_cv_header_dgaproc_h" "#include <dixstruct.h> 21484 " 21485 if test "x$ac_cv_header_dgaproc_h" = xyes; then : 21486 cat >>confdefs.h <<_ACEOF 21487 #define HAVE_DGAPROC_H 1 21488 _ACEOF 21489 DGA="yes" 21490 else 21491 DGA="no" 21492 fi 21493 21494 done 21495 21496 CFLAGS=$save_CFLAGS 21497 fi 21498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5 21499 $as_echo_n "checking whether to include DGA support... " >&6; } 21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DGA" >&5 21501 $as_echo "$DGA" >&6; } 21502 fi 21503 if test "x$DGA" = "xyes"; then 21504 DGA_TRUE= 21505 DGA_FALSE='#' 21506 else 21507 DGA_TRUE='#' 21508 DGA_FALSE= 21509 fi 21510 21511 if test "x$XAA" = "xyes"; then 21512 XAA_TRUE= 21513 XAA_FALSE='#' 21514 else 21515 XAA_TRUE='#' 21516 XAA_FALSE= 21517 fi 21518 21519 21520 if test "x$KMS" = "xyes"; then 21521 KMS_TRUE= 21522 KMS_FALSE='#' 21523 else 21524 KMS_TRUE='#' 21525 KMS_FALSE= 21526 fi 21527 21528 if test "x$KMS" = "xyes"; then 21529 21530 $as_echo "#define KMS 1" >>confdefs.h 21531 21532 fi 21533 if test "x$UMS" = "xyes"; then 21534 UMS_TRUE= 21535 UMS_FALSE='#' 21536 else 21537 UMS_TRUE='#' 21538 UMS_FALSE= 21539 fi 21540 21541 if test "x$UMS" = "xyes"; then 21542 21543 $as_echo "#define UMS 1" >>confdefs.h 21544 21545 fi 21546 21547 have_dri1=no 21548 21549 21550 SAVE_CFLAGS="$CFLAGS" 21551 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 21552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21553 /* end confdefs.h. */ 21554 21555 #include "xorg-server.h" 21556 #if !defined XF86DRI 21557 #error XF86DRI not defined 21558 #endif 21559 21560 int 21561 main () 21562 { 21563 21564 ; 21565 return 0; 21566 } 21567 _ACEOF 21568 if ac_fn_c_try_compile "$LINENO"; then : 21569 _EXT_CHECK=yes 21570 else 21571 _EXT_CHECK=no 21572 fi 21573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21574 CFLAGS="$SAVE_CFLAGS" 21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5 21576 $as_echo_n "checking if XF86DRI is defined... " >&6; } 21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 21578 $as_echo "$_EXT_CHECK" >&6; } 21579 if test "$_EXT_CHECK" != no; then 21580 REQUIRED_MODULES="$REQUIRED_MODULES xf86driproto" 21581 fi 21582 21583 if test "x$_EXT_CHECK" != "xno" -a "x$DRI" != "xno" -a "x$DRI1" != "xno" -a "x$UMS" = "xyes"; then 21584 21585 pkg_failed=no 21586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI1" >&5 21587 $as_echo_n "checking for DRI1... " >&6; } 21588 21589 if test -n "$DRI1_CFLAGS"; then 21590 pkg_cv_DRI1_CFLAGS="$DRI1_CFLAGS" 21591 elif test -n "$PKG_CONFIG"; then 21592 if test -n "$PKG_CONFIG" && \ 21593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5 21594 ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5 21595 ac_status=$? 21596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21597 test $ac_status = 0; }; then 21598 pkg_cv_DRI1_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null` 21599 test "x$?" != "x0" && pkg_failed=yes 21600 else 21601 pkg_failed=yes 21602 fi 21603 else 21604 pkg_failed=untried 21605 fi 21606 if test -n "$DRI1_LIBS"; then 21607 pkg_cv_DRI1_LIBS="$DRI1_LIBS" 21608 elif test -n "$PKG_CONFIG"; then 21609 if test -n "$PKG_CONFIG" && \ 21610 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5 21611 ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5 21612 ac_status=$? 21613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21614 test $ac_status = 0; }; then 21615 pkg_cv_DRI1_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null` 21616 test "x$?" != "x0" && pkg_failed=yes 21617 else 21618 pkg_failed=yes 21619 fi 21620 else 21621 pkg_failed=untried 21622 fi 21623 21624 21625 21626 if test $pkg_failed = yes; then 21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21628 $as_echo "no" >&6; } 21629 21630 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21631 _pkg_short_errors_supported=yes 21632 else 21633 _pkg_short_errors_supported=no 21634 fi 21635 if test $_pkg_short_errors_supported = yes; then 21636 DRI1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86driproto" 2>&1` 21637 else 21638 DRI1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86driproto" 2>&1` 21639 fi 21640 # Put the nasty error message in config.log where it belongs 21641 echo "$DRI1_PKG_ERRORS" >&5 21642 21643 have_dri1=no 21644 elif test $pkg_failed = untried; then 21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21646 $as_echo "no" >&6; } 21647 have_dri1=no 21648 else 21649 DRI1_CFLAGS=$pkg_cv_DRI1_CFLAGS 21650 DRI1_LIBS=$pkg_cv_DRI1_LIBS 21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21652 $as_echo "yes" >&6; } 21653 have_dri1=$DRI 21654 fi 21655 save_CFLAGS="$CFLAGS" 21656 save_CPPFLAGS="$CPPFLAGS" 21657 CFLAGS="$CFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS" 21658 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS" 21659 for ac_header in dri.h sarea.h dristruct.h 21660 do : 21661 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21662 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "/* for dri.h */ 21663 #include <xf86str.h> 21664 /* for dristruct.h */ 21665 #include <xorg-server.h> 21666 #ifdef HAVE_DRI_H 21667 # include <dri.h> 21668 #endif 21669 #ifdef HAVE_SAREA_H 21670 # include <sarea.h> 21671 #endif 21672 21673 " 21674 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21675 cat >>confdefs.h <<_ACEOF 21676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21677 _ACEOF 21678 21679 else 21680 have_dri1=no 21681 fi 21682 21683 done 21684 21685 CFLAGS="$save_CFLAGS" 21686 CPPFLAGS="$save_CPPFLAGS" 21687 fi 21688 21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI1 support" >&5 21690 $as_echo_n "checking whether to include DRI1 support... " >&6; } 21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri1" >&5 21692 $as_echo "$have_dri1" >&6; } 21693 21694 if test "x$have_dri1" != "xno"; then 21695 DRI1_TRUE= 21696 DRI1_FALSE='#' 21697 else 21698 DRI1_TRUE='#' 21699 DRI1_FALSE= 21700 fi 21701 21702 if test "x$have_dri1" != "xno"; then 21703 21704 $as_echo "#define HAVE_DRI1 1" >>confdefs.h 21705 21706 str="DRI1" 21707 if test "x$DRI_DEFAULT" = "x1"; then 21708 21709 $as_echo "#define DEFAULT_DRI_LEVEL 1" >>confdefs.h 21710 21711 str="*$str" 21712 fi 21713 dri_msg="$dri_msg $str" 21714 else 21715 DRI1_CFLAGS="" 21716 DRI1_LIBS="" 21717 21718 if test "x$DRI" = "xyes" -a "x$UMS" = "xyes" -a "x$DRI1" != "xno"; then 21719 as_fn_error $? "DRI1 requested but prerequisites not found" "$LINENO" 5 21720 fi 21721 fi 21722 21723 have_dri2=no 21724 have_dri3=no 21725 if test "x$DRI" != "xno"; then 21726 if test "x$DRI2" != "xno"; then 21727 21728 pkg_failed=no 21729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2" >&5 21730 $as_echo_n "checking for DRI2... " >&6; } 21731 21732 if test -n "$DRI2_CFLAGS"; then 21733 pkg_cv_DRI2_CFLAGS="$DRI2_CFLAGS" 21734 elif test -n "$PKG_CONFIG"; then 21735 if test -n "$PKG_CONFIG" && \ 21736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5 21737 ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5 21738 ac_status=$? 21739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21740 test $ac_status = 0; }; then 21741 pkg_cv_DRI2_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.6" 2>/dev/null` 21742 test "x$?" != "x0" && pkg_failed=yes 21743 else 21744 pkg_failed=yes 21745 fi 21746 else 21747 pkg_failed=untried 21748 fi 21749 if test -n "$DRI2_LIBS"; then 21750 pkg_cv_DRI2_LIBS="$DRI2_LIBS" 21751 elif test -n "$PKG_CONFIG"; then 21752 if test -n "$PKG_CONFIG" && \ 21753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5 21754 ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5 21755 ac_status=$? 21756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21757 test $ac_status = 0; }; then 21758 pkg_cv_DRI2_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.6" 2>/dev/null` 21759 test "x$?" != "x0" && pkg_failed=yes 21760 else 21761 pkg_failed=yes 21762 fi 21763 else 21764 pkg_failed=untried 21765 fi 21766 21767 21768 21769 if test $pkg_failed = yes; then 21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21771 $as_echo "no" >&6; } 21772 21773 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21774 _pkg_short_errors_supported=yes 21775 else 21776 _pkg_short_errors_supported=no 21777 fi 21778 if test $_pkg_short_errors_supported = yes; then 21779 DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1` 21780 else 21781 DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1` 21782 fi 21783 # Put the nasty error message in config.log where it belongs 21784 echo "$DRI2_PKG_ERRORS" >&5 21785 21786 have_dri2=no 21787 elif test $pkg_failed = untried; then 21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21789 $as_echo "no" >&6; } 21790 have_dri2=no 21791 else 21792 DRI2_CFLAGS=$pkg_cv_DRI2_CFLAGS 21793 DRI2_LIBS=$pkg_cv_DRI2_LIBS 21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21795 $as_echo "yes" >&6; } 21796 have_dri2=$DRI 21797 fi 21798 fi 21799 if test "x$have_dri2" != "xno"; then 21800 save_CFLAGS=$CFLAGS 21801 CFLAGS="$XORG_CFLAGS $DRM_CFLAGS $DRI1_CFLAGS $DRI2_CFLAGS" 21802 for ac_header in dri2.h 21803 do : 21804 ac_fn_c_check_header_compile "$LINENO" "dri2.h" "ac_cv_header_dri2_h" " 21805 #include <dixstruct.h> 21806 #include <drm.h> 21807 21808 " 21809 if test "x$ac_cv_header_dri2_h" = xyes; then : 21810 cat >>confdefs.h <<_ACEOF 21811 #define HAVE_DRI2_H 1 21812 _ACEOF 21813 21814 else 21815 have_dri2=no 21816 fi 21817 21818 done 21819 21820 CFLAGS=$save_CFLAGS 21821 fi 21822 if test "x$have_dri2" != "xno"; then 21823 dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 21824 if test "x$dridriverdir" = "x"; then 21825 dridriverdir="$libdir/dri" 21826 fi 21827 21828 prefix_NONE= 21829 exec_prefix_NONE= 21830 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21831 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21832 eval ac_define_dir="\"$dridriverdir\"" 21833 eval ac_define_dir="\"$ac_define_dir\"" 21834 DRI_DRIVER_PATH="$ac_define_dir" 21835 21836 21837 cat >>confdefs.h <<_ACEOF 21838 #define DRI_DRIVER_PATH "$ac_define_dir" 21839 _ACEOF 21840 21841 test "$prefix_NONE" && prefix=NONE 21842 test "$exec_prefix_NONE" && exec_prefix=NONE 21843 21844 fi 21845 21846 if test "x$DRI3" != "xno"; then 21847 21848 21849 SAVE_CFLAGS="$CFLAGS" 21850 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 21851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21852 /* end confdefs.h. */ 21853 21854 #include "xorg-server.h" 21855 #if !defined DRI3 21856 #error DRI3 not defined 21857 #endif 21858 21859 int 21860 main () 21861 { 21862 21863 ; 21864 return 0; 21865 } 21866 _ACEOF 21867 if ac_fn_c_try_compile "$LINENO"; then : 21868 _EXT_CHECK=yes 21869 else 21870 _EXT_CHECK=no 21871 fi 21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21873 CFLAGS="$SAVE_CFLAGS" 21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI3 is defined" >&5 21875 $as_echo_n "checking if DRI3 is defined... " >&6; } 21876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 21877 $as_echo "$_EXT_CHECK" >&6; } 21878 if test "$_EXT_CHECK" != no; then 21879 REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" 21880 fi 21881 21882 if test "x$_EXT_CHECK" != "xno"; then 21883 21884 pkg_failed=no 21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3" >&5 21886 $as_echo_n "checking for DRI3... " >&6; } 21887 21888 if test -n "$DRI3_CFLAGS"; then 21889 pkg_cv_DRI3_CFLAGS="$DRI3_CFLAGS" 21890 elif test -n "$PKG_CONFIG"; then 21891 if test -n "$PKG_CONFIG" && \ 21892 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto\""; } >&5 21893 ($PKG_CONFIG --exists --print-errors "dri3proto") 2>&5 21894 ac_status=$? 21895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21896 test $ac_status = 0; }; then 21897 pkg_cv_DRI3_CFLAGS=`$PKG_CONFIG --cflags "dri3proto" 2>/dev/null` 21898 test "x$?" != "x0" && pkg_failed=yes 21899 else 21900 pkg_failed=yes 21901 fi 21902 else 21903 pkg_failed=untried 21904 fi 21905 if test -n "$DRI3_LIBS"; then 21906 pkg_cv_DRI3_LIBS="$DRI3_LIBS" 21907 elif test -n "$PKG_CONFIG"; then 21908 if test -n "$PKG_CONFIG" && \ 21909 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto\""; } >&5 21910 ($PKG_CONFIG --exists --print-errors "dri3proto") 2>&5 21911 ac_status=$? 21912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21913 test $ac_status = 0; }; then 21914 pkg_cv_DRI3_LIBS=`$PKG_CONFIG --libs "dri3proto" 2>/dev/null` 21915 test "x$?" != "x0" && pkg_failed=yes 21916 else 21917 pkg_failed=yes 21918 fi 21919 else 21920 pkg_failed=untried 21921 fi 21922 21923 21924 21925 if test $pkg_failed = yes; then 21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21927 $as_echo "no" >&6; } 21928 21929 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21930 _pkg_short_errors_supported=yes 21931 else 21932 _pkg_short_errors_supported=no 21933 fi 21934 if test $_pkg_short_errors_supported = yes; then 21935 DRI3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri3proto" 2>&1` 21936 else 21937 DRI3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri3proto" 2>&1` 21938 fi 21939 # Put the nasty error message in config.log where it belongs 21940 echo "$DRI3_PKG_ERRORS" >&5 21941 21942 as_fn_error $? "Package requirements (dri3proto) were not met: 21943 21944 $DRI3_PKG_ERRORS 21945 21946 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21947 installed software in a non-standard prefix. 21948 21949 Alternatively, you may set the environment variables DRI3_CFLAGS 21950 and DRI3_LIBS to avoid the need to call pkg-config. 21951 See the pkg-config man page for more details." "$LINENO" 5 21952 elif test $pkg_failed = untried; then 21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21954 $as_echo "no" >&6; } 21955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21957 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21958 is in your PATH or set the PKG_CONFIG environment variable to the full 21959 path to pkg-config. 21960 21961 Alternatively, you may set the environment variables DRI3_CFLAGS 21962 and DRI3_LIBS to avoid the need to call pkg-config. 21963 See the pkg-config man page for more details. 21964 21965 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21966 See \`config.log' for more details" "$LINENO" 5; } 21967 else 21968 DRI3_CFLAGS=$pkg_cv_DRI3_CFLAGS 21969 DRI3_LIBS=$pkg_cv_DRI3_LIBS 21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21971 $as_echo "yes" >&6; } 21972 have_dri3=$DRI 21973 fi 21974 fi 21975 fi 21976 if test "x$have_dri3" != "xno"; then 21977 save_CFLAGS=$CFLAGS 21978 CFLAGS="$XORG_CFLAGS $DRI3_CFLAGS" 21979 ac_fn_c_check_decl "$LINENO" "DRI3" "ac_cv_have_decl_DRI3" "#include <xorg-server.h> 21980 " 21981 if test "x$ac_cv_have_decl_DRI3" = xyes; then : 21982 21983 else 21984 have_dri3=no 21985 fi 21986 21987 for ac_header in misyncstr.h misyncshm.h 21988 do : 21989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21990 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 21991 #include <xorg-server.h> 21992 #include <xf86str.h> 21993 #include <misync.h> 21994 21995 " 21996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21997 cat >>confdefs.h <<_ACEOF 21998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21999 _ACEOF 22000 22001 else 22002 have_dri3=no 22003 fi 22004 22005 done 22006 22007 CFLAGS=$save_CFLAGS 22008 fi 22009 fi 22010 22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI2 support" >&5 22012 $as_echo_n "checking whether to include DRI2 support... " >&6; } 22013 if test "x$have_dri2" != "xno"; then 22014 DRI2_TRUE= 22015 DRI2_FALSE='#' 22016 else 22017 DRI2_TRUE='#' 22018 DRI2_FALSE= 22019 fi 22020 22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri2" >&5 22022 $as_echo "$have_dri2" >&6; } 22023 if test "x$have_dri2" != "xno"; then 22024 22025 $as_echo "#define HAVE_DRI2 1" >>confdefs.h 22026 22027 str="DRI2" 22028 if test "x$DRI_DEFAULT" = "x2"; then 22029 22030 $as_echo "#define DEFAULT_DRI_LEVEL 2" >>confdefs.h 22031 22032 str="*$str" 22033 fi 22034 dri_msg="$dri_msg $str" 22035 else 22036 if test "x$DRI" = "xyes" -a "x$DRI2" != "xno" -a "x$KMS" = "xyes"; then 22037 as_fn_error $? "DRI2 requested but prerequisites not found" "$LINENO" 5 22038 fi 22039 22040 # UXA doesn't build without DRI2 headers, too late to fix 22041 UXA=no 22042 fi 22043 22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI3 support" >&5 22045 $as_echo_n "checking whether to include DRI3 support... " >&6; } 22046 if test "x$have_dri3" != "xno"; then 22047 DRI3_TRUE= 22048 DRI3_FALSE='#' 22049 else 22050 DRI3_TRUE='#' 22051 DRI3_FALSE= 22052 fi 22053 22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri3" >&5 22055 $as_echo "$have_dri3" >&6; } 22056 if test "x$have_dri3" != "xno"; then 22057 22058 $as_echo "#define HAVE_DRI3 1" >>confdefs.h 22059 22060 str="DRI3" 22061 if test "x$DRI_DEFAULT" = "x3"; then 22062 22063 $as_echo "#define DEFAULT_DRI_LEVEL 3" >>confdefs.h 22064 22065 str="*$str" 22066 fi 22067 dri_msg="$dri_msg $str" 22068 else 22069 if test "x$DRI" = "xyes" -a "x$DRI3" != "xno" -a "x$KMS" = "xyes"; then 22070 as_fn_error $? "DRI3 requested but prerequisites not found" "$LINENO" 5 22071 fi 22072 fi 22073 22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default DRI support" >&5 22075 $as_echo_n "checking default DRI support... " >&6; } 22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_DRI_DEFAULT" >&5 22077 $as_echo "$DEFAULT_DRI_DEFAULT" >&6; } 22078 22079 for ac_header in X11/extensions/dpmsconst.h 22080 do : 22081 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/dpmsconst.h" "ac_cv_header_X11_extensions_dpmsconst_h" "$ac_includes_default" 22082 if test "x$ac_cv_header_X11_extensions_dpmsconst_h" = xyes; then : 22083 cat >>confdefs.h <<_ACEOF 22084 #define HAVE_X11_EXTENSIONS_DPMSCONST_H 1 22085 _ACEOF 22086 22087 fi 22088 22089 done 22090 22091 22092 PRESENT="no" 22093 22094 22095 SAVE_CFLAGS="$CFLAGS" 22096 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22098 /* end confdefs.h. */ 22099 22100 #include "xorg-server.h" 22101 #if !defined PRESENT 22102 #error PRESENT not defined 22103 #endif 22104 22105 int 22106 main () 22107 { 22108 22109 ; 22110 return 0; 22111 } 22112 _ACEOF 22113 if ac_fn_c_try_compile "$LINENO"; then : 22114 _EXT_CHECK=yes 22115 else 22116 _EXT_CHECK=no 22117 fi 22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22119 CFLAGS="$SAVE_CFLAGS" 22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PRESENT is defined" >&5 22121 $as_echo_n "checking if PRESENT is defined... " >&6; } 22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 22123 $as_echo "$_EXT_CHECK" >&6; } 22124 if test "$_EXT_CHECK" != no; then 22125 REQUIRED_MODULES="$REQUIRED_MODULES presentproto" 22126 fi 22127 22128 if test "x$_EXT_CHECK" != "xno"; then 22129 22130 pkg_failed=no 22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRESENT" >&5 22132 $as_echo_n "checking for PRESENT... " >&6; } 22133 22134 if test -n "$PRESENT_CFLAGS"; then 22135 pkg_cv_PRESENT_CFLAGS="$PRESENT_CFLAGS" 22136 elif test -n "$PKG_CONFIG"; then 22137 if test -n "$PKG_CONFIG" && \ 22138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto\""; } >&5 22139 ($PKG_CONFIG --exists --print-errors "presentproto") 2>&5 22140 ac_status=$? 22141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22142 test $ac_status = 0; }; then 22143 pkg_cv_PRESENT_CFLAGS=`$PKG_CONFIG --cflags "presentproto" 2>/dev/null` 22144 test "x$?" != "x0" && pkg_failed=yes 22145 else 22146 pkg_failed=yes 22147 fi 22148 else 22149 pkg_failed=untried 22150 fi 22151 if test -n "$PRESENT_LIBS"; then 22152 pkg_cv_PRESENT_LIBS="$PRESENT_LIBS" 22153 elif test -n "$PKG_CONFIG"; then 22154 if test -n "$PKG_CONFIG" && \ 22155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto\""; } >&5 22156 ($PKG_CONFIG --exists --print-errors "presentproto") 2>&5 22157 ac_status=$? 22158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22159 test $ac_status = 0; }; then 22160 pkg_cv_PRESENT_LIBS=`$PKG_CONFIG --libs "presentproto" 2>/dev/null` 22161 test "x$?" != "x0" && pkg_failed=yes 22162 else 22163 pkg_failed=yes 22164 fi 22165 else 22166 pkg_failed=untried 22167 fi 22168 22169 22170 22171 if test $pkg_failed = yes; then 22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22173 $as_echo "no" >&6; } 22174 22175 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22176 _pkg_short_errors_supported=yes 22177 else 22178 _pkg_short_errors_supported=no 22179 fi 22180 if test $_pkg_short_errors_supported = yes; then 22181 PRESENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "presentproto" 2>&1` 22182 else 22183 PRESENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "presentproto" 2>&1` 22184 fi 22185 # Put the nasty error message in config.log where it belongs 22186 echo "$PRESENT_PKG_ERRORS" >&5 22187 22188 as_fn_error $? "Package requirements (presentproto) were not met: 22189 22190 $PRESENT_PKG_ERRORS 22191 22192 Consider adjusting the PKG_CONFIG_PATH environment variable if you 22193 installed software in a non-standard prefix. 22194 22195 Alternatively, you may set the environment variables PRESENT_CFLAGS 22196 and PRESENT_LIBS to avoid the need to call pkg-config. 22197 See the pkg-config man page for more details." "$LINENO" 5 22198 elif test $pkg_failed = untried; then 22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22200 $as_echo "no" >&6; } 22201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22203 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22204 is in your PATH or set the PKG_CONFIG environment variable to the full 22205 path to pkg-config. 22206 22207 Alternatively, you may set the environment variables PRESENT_CFLAGS 22208 and PRESENT_LIBS to avoid the need to call pkg-config. 22209 See the pkg-config man page for more details. 22210 22211 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22212 See \`config.log' for more details" "$LINENO" 5; } 22213 else 22214 PRESENT_CFLAGS=$pkg_cv_PRESENT_CFLAGS 22215 PRESENT_LIBS=$pkg_cv_PRESENT_LIBS 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22217 $as_echo "yes" >&6; } 22218 PRESENT="yes" 22219 fi 22220 fi 22221 if test "x$PRESENT" != "xno"; then 22222 save_CFLAGS=$CFLAGS 22223 CFLAGS="$XORG_CFLAGS $PRESENT_CFLAGS" 22224 for ac_header in present.h 22225 do : 22226 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" " 22227 #include <xorg-server.h> 22228 #include <xf86str.h> 22229 22230 " 22231 if test "x$ac_cv_header_present_h" = xyes; then : 22232 cat >>confdefs.h <<_ACEOF 22233 #define HAVE_PRESENT_H 1 22234 _ACEOF 22235 22236 else 22237 PRESENT="no" 22238 fi 22239 22240 done 22241 22242 CFLAGS=$save_CFLAGS 22243 fi 22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PRESENT support" >&5 22245 $as_echo_n "checking whether to include PRESENT support... " >&6; } 22246 if test "x$PRESENT" != "xno"; then 22247 PRESENT_TRUE= 22248 PRESENT_FALSE='#' 22249 else 22250 PRESENT_TRUE='#' 22251 PRESENT_FALSE= 22252 fi 22253 22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRESENT" >&5 22255 $as_echo "$PRESENT" >&6; } 22256 if test "x$PRESENT" != "xno"; then 22257 22258 $as_echo "#define HAVE_PRESENT 1" >>confdefs.h 22259 22260 dri_msg="$dri_msg Present" 22261 fi 22262 22263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include UXA support" >&5 22264 $as_echo_n "checking whether to include UXA support... " >&6; } 22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UXA" >&5 22266 $as_echo "$UXA" >&6; } 22267 if test "x$UXA" != "xno"; then 22268 UXA_TRUE= 22269 UXA_FALSE='#' 22270 else 22271 UXA_TRUE='#' 22272 UXA_FALSE= 22273 fi 22274 22275 22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SNA support" >&5 22277 $as_echo_n "checking whether to include SNA support... " >&6; } 22278 if test "x$SNA" != "xno"; then 22279 SNA_TRUE= 22280 SNA_FALSE='#' 22281 else 22282 SNA_TRUE='#' 22283 SNA_FALSE= 22284 fi 22285 22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNA" >&5 22287 $as_echo "$SNA" >&6; } 22288 22289 if test "$XVMC" = "yes"; then 22290 22291 pkg_failed=no 22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5 22293 $as_echo_n "checking for XVMCLIB... " >&6; } 22294 22295 if test -n "$XVMCLIB_CFLAGS"; then 22296 pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS" 22297 elif test -n "$PKG_CONFIG"; then 22298 if test -n "$PKG_CONFIG" && \ 22299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel\""; } >&5 22300 ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel") 2>&5 22301 ac_status=$? 22302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22303 test $ac_status = 0; }; then 22304 pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>/dev/null` 22305 test "x$?" != "x0" && pkg_failed=yes 22306 else 22307 pkg_failed=yes 22308 fi 22309 else 22310 pkg_failed=untried 22311 fi 22312 if test -n "$XVMCLIB_LIBS"; then 22313 pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS" 22314 elif test -n "$PKG_CONFIG"; then 22315 if test -n "$PKG_CONFIG" && \ 22316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel\""; } >&5 22317 ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel") 2>&5 22318 ac_status=$? 22319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22320 test $ac_status = 0; }; then 22321 pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>/dev/null` 22322 test "x$?" != "x0" && pkg_failed=yes 22323 else 22324 pkg_failed=yes 22325 fi 22326 else 22327 pkg_failed=untried 22328 fi 22329 22330 22331 22332 if test $pkg_failed = yes; then 22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22334 $as_echo "no" >&6; } 22335 22336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22337 _pkg_short_errors_supported=yes 22338 else 22339 _pkg_short_errors_supported=no 22340 fi 22341 if test $_pkg_short_errors_supported = yes; then 22342 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>&1` 22343 else 22344 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>&1` 22345 fi 22346 # Put the nasty error message in config.log where it belongs 22347 echo "$XVMCLIB_PKG_ERRORS" >&5 22348 22349 XVMC="no" 22350 elif test $pkg_failed = untried; then 22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22352 $as_echo "no" >&6; } 22353 XVMC="no" 22354 else 22355 XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS 22356 XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS 22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22358 $as_echo "yes" >&6; } 22359 22360 fi 22361 fi 22362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5 22363 $as_echo_n "checking whether to include XvMC support... " >&6; } 22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5 22365 $as_echo "$XVMC" >&6; } 22366 if test "x$XVMC" = "xyes"; then 22367 XVMC_TRUE= 22368 XVMC_FALSE='#' 22369 else 22370 XVMC_TRUE='#' 22371 XVMC_FALSE= 22372 fi 22373 22374 if test "x$XVMC" = "xyes"; then 22375 22376 $as_echo "#define ENABLE_XVMC 1" >>confdefs.h 22377 22378 xvmc_msg=" yes" 22379 else 22380 xvmc_msg=" no" 22381 fi 22382 22383 22384 22385 # Check whether --with-default-accel was given. 22386 if test "${with_default_accel+set}" = set; then : 22387 withval=$with_default_accel; accel="$withval" 22388 else 22389 accel="auto" 22390 fi 22391 22392 if test "x$accel" = "xyes"; then 22393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No default acceleration specified, choosing automatic selection" >&5 22394 $as_echo "$as_me: WARNING: No default acceleration specified, choosing automatic selection" >&2;} 22395 accel="auto" 22396 fi 22397 22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which acceleration method to use by default" >&5 22399 $as_echo_n "checking which acceleration method to use by default... " >&6; } 22400 if test "x$accel" = "xauto"; then 22401 if test "x$SNA" != "xno"; then 22402 accel="sna" 22403 else 22404 if test "x$UXA" != "xno"; then 22405 accel="uxa" 22406 fi 22407 fi 22408 if test "x$accel" = "xauto" -a "x$KMS" = "xyes"; then 22409 as_fn_error $? "No default acceleration option" "$LINENO" 5 22410 fi 22411 fi 22412 22413 have_accel="none" 22414 if test "x$accel" = "xsna"; then 22415 if test "x$SNA" != "xno"; then 22416 22417 $as_echo "#define DEFAULT_ACCEL_METHOD SNA" >>confdefs.h 22418 22419 have_accel="yes" 22420 else 22421 as_fn_error $? "SNA requested as default, but is not enabled" "$LINENO" 5 22422 fi 22423 fi 22424 22425 if test "x$accel" = "xuxa"; then 22426 if test "x$UXA" != "xno"; then 22427 22428 $as_echo "#define DEFAULT_ACCEL_METHOD UXA" >>confdefs.h 22429 22430 have_accel="yes" 22431 else 22432 as_fn_error $? "UXA requested as default, but is not enabled" "$LINENO" 5 22433 fi 22434 fi 22435 22436 if test "x$have_accel" = "xnone"; then 22437 if test "x$KMS" = "xyes"; then 22438 if test "x$SNA" != "xno" -o "x$UXA" != "xno"; then 22439 22440 $as_echo "#define DEFAULT_ACCEL_METHOD NOACCEL" >>confdefs.h 22441 22442 else 22443 as_fn_error $? "Invalid default acceleration option" "$LINENO" 5 22444 fi 22445 fi 22446 accel="none" 22447 fi 22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel" >&5 22449 $as_echo "$accel" >&6; } 22450 22451 xp_msg="" 22452 22453 # Check whether --enable-tear-free was given. 22454 if test "${enable_tear_free+set}" = set; then : 22455 enableval=$enable_tear_free; TEARFREE="$enableval" 22456 else 22457 TEARFREE="no" 22458 fi 22459 22460 if test "x$TEARFREE" = "xyes"; then 22461 22462 $as_echo "#define TEARFREE 1" >>confdefs.h 22463 22464 xp_msg="$xp_msg TearFree" 22465 fi 22466 22467 # Check whether --enable-create2 was given. 22468 if test "${enable_create2+set}" = set; then : 22469 enableval=$enable_create2; CREATE2="$enableval" 22470 else 22471 CREATE2="no" 22472 fi 22473 22474 if test "x$CREATE2" = "xyes"; then 22475 USE_CREATE2_TRUE= 22476 USE_CREATE2_FALSE='#' 22477 else 22478 USE_CREATE2_TRUE='#' 22479 USE_CREATE2_FALSE= 22480 fi 22481 22482 if test "x$CREATE2" = "xyes"; then 22483 22484 $as_echo "#define USE_CREATE2 1" >>confdefs.h 22485 22486 xp_msg="$xp_msg create2" 22487 fi 22488 22489 # Check whether --enable-async-swap was given. 22490 if test "${enable_async_swap+set}" = set; then : 22491 enableval=$enable_async_swap; ASYNC_SWAP="$enableval" 22492 else 22493 ASYNC_SWAP="no" 22494 fi 22495 22496 if test "x$ASYNC_SWAP" = "xyes"; then 22497 USE_ASYNC_SWAP_TRUE= 22498 USE_ASYNC_SWAP_FALSE='#' 22499 else 22500 USE_ASYNC_SWAP_TRUE='#' 22501 USE_ASYNC_SWAP_FALSE= 22502 fi 22503 22504 if test "x$ASYNC_SWAP" = "xyes"; then 22505 22506 $as_echo "#define USE_ASYNC_SWAP 1" >>confdefs.h 22507 22508 xp_msg="$xp_msg async-swap" 22509 fi 22510 22511 # Check whether --enable-debug was given. 22512 if test "${enable_debug+set}" = set; then : 22513 enableval=$enable_debug; DEBUG="$enableval" 22514 else 22515 DEBUG="no" 22516 fi 22517 22518 # Check whether --enable-valgrind was given. 22519 if test "${enable_valgrind+set}" = set; then : 22520 enableval=$enable_valgrind; VG="$enableval" 22521 else 22522 VG="no" 22523 fi 22524 22525 22526 LIBS="" 22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 22528 $as_echo_n "checking for library containing clock_gettime... " >&6; } 22529 if ${ac_cv_search_clock_gettime+:} false; then : 22530 $as_echo_n "(cached) " >&6 22531 else 22532 ac_func_search_save_LIBS=$LIBS 22533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22534 /* end confdefs.h. */ 22535 22536 /* Override any GCC internal prototype to avoid an error. 22537 Use char because int might match the return type of a GCC 22538 builtin and then its argument prototype would still apply. */ 22539 #ifdef __cplusplus 22540 extern "C" 22541 #endif 22542 char clock_gettime (); 22543 int 22544 main () 22545 { 22546 return clock_gettime (); 22547 ; 22548 return 0; 22549 } 22550 _ACEOF 22551 for ac_lib in '' rt; do 22552 if test -z "$ac_lib"; then 22553 ac_res="none required" 22554 else 22555 ac_res=-l$ac_lib 22556 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22557 fi 22558 if ac_fn_c_try_link "$LINENO"; then : 22559 ac_cv_search_clock_gettime=$ac_res 22560 fi 22561 rm -f core conftest.err conftest.$ac_objext \ 22562 conftest$ac_exeext 22563 if ${ac_cv_search_clock_gettime+:} false; then : 22564 break 22565 fi 22566 done 22567 if ${ac_cv_search_clock_gettime+:} false; then : 22568 22569 else 22570 ac_cv_search_clock_gettime=no 22571 fi 22572 rm conftest.$ac_ext 22573 LIBS=$ac_func_search_save_LIBS 22574 fi 22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 22576 $as_echo "$ac_cv_search_clock_gettime" >&6; } 22577 ac_res=$ac_cv_search_clock_gettime 22578 if test "$ac_res" != no; then : 22579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22580 CLOCK_GETTIME_LIBS=$LIBS 22581 fi 22582 22583 22584 22585 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 22586 22587 if test "x$DEBUG" != "xno"; then 22588 DEBUG_TRUE= 22589 DEBUG_FALSE='#' 22590 else 22591 DEBUG_TRUE='#' 22592 DEBUG_FALSE= 22593 fi 22594 22595 if test "x$DEBUG" = "xfull"; then 22596 FULL_DEBUG_TRUE= 22597 FULL_DEBUG_FALSE='#' 22598 else 22599 FULL_DEBUG_TRUE='#' 22600 FULL_DEBUG_FALSE= 22601 fi 22602 22603 if test "x$DEBUG" = "xno"; then 22604 22605 $as_echo "#define NDEBUG 1" >>confdefs.h 22606 22607 else 22608 if test "x$VG" != "xyes"; then 22609 VG=auto 22610 fi 22611 fi 22612 debug_msg="" 22613 have_valgrind="no" 22614 if test "x$VG" != "xno"; then 22615 22616 pkg_failed=no 22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5 22618 $as_echo_n "checking for VALGRIND... " >&6; } 22619 22620 if test -n "$VALGRIND_CFLAGS"; then 22621 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" 22622 elif test -n "$PKG_CONFIG"; then 22623 if test -n "$PKG_CONFIG" && \ 22624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 22625 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 22626 ac_status=$? 22627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22628 test $ac_status = 0; }; then 22629 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null` 22630 test "x$?" != "x0" && pkg_failed=yes 22631 else 22632 pkg_failed=yes 22633 fi 22634 else 22635 pkg_failed=untried 22636 fi 22637 if test -n "$VALGRIND_LIBS"; then 22638 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" 22639 elif test -n "$PKG_CONFIG"; then 22640 if test -n "$PKG_CONFIG" && \ 22641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 22642 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 22643 ac_status=$? 22644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22645 test $ac_status = 0; }; then 22646 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null` 22647 test "x$?" != "x0" && pkg_failed=yes 22648 else 22649 pkg_failed=yes 22650 fi 22651 else 22652 pkg_failed=untried 22653 fi 22654 22655 22656 22657 if test $pkg_failed = yes; then 22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22659 $as_echo "no" >&6; } 22660 22661 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22662 _pkg_short_errors_supported=yes 22663 else 22664 _pkg_short_errors_supported=no 22665 fi 22666 if test $_pkg_short_errors_supported = yes; then 22667 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1` 22668 else 22669 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1` 22670 fi 22671 # Put the nasty error message in config.log where it belongs 22672 echo "$VALGRIND_PKG_ERRORS" >&5 22673 22674 have_valgrind="no" 22675 elif test $pkg_failed = untried; then 22676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22677 $as_echo "no" >&6; } 22678 have_valgrind="no" 22679 else 22680 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS 22681 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS 22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22683 $as_echo "yes" >&6; } 22684 have_valgrind="yes" 22685 fi 22686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include valgrind support" >&5 22687 $as_echo_n "checking whether to include valgrind support... " >&6; } 22688 if test "x$have_valgrind" = "xyes"; then 22689 22690 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h 22691 22692 else 22693 if test "x$VG" = "xyes"; then 22694 as_fn_error $? "valgrind support requested, but valgrind-dev headers not found" "$LINENO" 5 22695 fi 22696 fi 22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind ($VG)" >&5 22698 $as_echo "$have_valgrind ($VG)" >&6; } 22699 fi 22700 if test "x$have_valgrind" = "xyes"; then 22701 VALGRIND_TRUE= 22702 VALGRIND_FALSE='#' 22703 else 22704 VALGRIND_TRUE='#' 22705 VALGRIND_FALSE= 22706 fi 22707 22708 if test "x$have_valgrind" = "xyes"; then 22709 debug_msg="$debug_msg valgrind" 22710 fi 22711 if test "x$DEBUG" = "xsync"; then 22712 22713 $as_echo "#define DEBUG_SYNC 1" >>confdefs.h 22714 22715 debug_msg="$debug_msg sync" 22716 fi 22717 if test "x$DEBUG" = "xmemory"; then 22718 22719 $as_echo "#define DEBUG_MEMORY 1" >>confdefs.h 22720 22721 debug_msg="$debug_msg memory" 22722 fi 22723 if test "x$DEBUG" = "xpixmap"; then 22724 22725 $as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h 22726 22727 debug_msg="$debug_msg pixmaps" 22728 fi 22729 if test "x$DEBUG" = "xfull"; then 22730 22731 $as_echo "#define DEBUG_MEMORY 1" >>confdefs.h 22732 22733 22734 $as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h 22735 22736 22737 $as_echo "#define HAS_DEBUG_FULL 1" >>confdefs.h 22738 22739 CFLAGS="$CFLAGS -O0 -ggdb3" 22740 debug_msg=" full" 22741 fi 22742 if test "x$debug_msg" = "x"; then 22743 debug_msg=" none" 22744 fi 22745 22746 22747 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 22748 if test "x$ac_cv_func_getline" = xyes; then : 22749 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 22750 22751 else 22752 case " $LIBOBJS " in 22753 *" getline.$ac_objext "* ) ;; 22754 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 22755 ;; 22756 esac 22757 22758 fi 22759 22760 22761 22762 DRIVER_NAME="intel" 22763 22764 22765 22766 prefix_NONE= 22767 exec_prefix_NONE= 22768 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22769 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22770 eval ac_define_dir="\"$prefix\"" 22771 eval ac_define_dir="\"$ac_define_dir\"" 22772 PREFIX_PATH="$ac_define_dir" 22773 22774 22775 cat >>confdefs.h <<_ACEOF 22776 #define PREFIX_PATH "$ac_define_dir" 22777 _ACEOF 22778 22779 test "$prefix_NONE" && prefix=NONE 22780 test "$exec_prefix_NONE" && exec_prefix=NONE 22781 22782 22783 prefix_NONE= 22784 exec_prefix_NONE= 22785 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22786 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22787 eval ac_define_dir="\"$libexecdir\"" 22788 eval ac_define_dir="\"$ac_define_dir\"" 22789 LIBEXEC_PATH="$ac_define_dir" 22790 22791 22792 cat >>confdefs.h <<_ACEOF 22793 #define LIBEXEC_PATH "$ac_define_dir" 22794 _ACEOF 22795 22796 test "$prefix_NONE" && prefix=NONE 22797 test "$exec_prefix_NONE" && exec_prefix=NONE 22798 22799 22800 ac_config_files="$ac_config_files Makefile man/Makefile libobj/Makefile src/Makefile src/legacy/Makefile src/legacy/i810/Makefile src/legacy/i810/xvmc/Makefile src/render_program/Makefile src/sna/Makefile src/sna/brw/Makefile src/sna/fb/Makefile src/uxa/Makefile xvmc/Makefile xvmc/shader/Makefile xvmc/shader/mc/Makefile xvmc/shader/vld/Makefile test/Makefile benchmarks/Makefile tools/Makefile tools/org.x.xf86-video-intel.backlight-helper.policy" 22801 22802 cat >confcache <<\_ACEOF 22803 # This file is a shell script that caches the results of configure 22804 # tests run on this system so they can be shared between configure 22805 # scripts and configure runs, see configure's option --config-cache. 22806 # It is not useful on other systems. If it contains results you don't 22807 # want to keep, you may remove or edit it. 22808 # 22809 # config.status only pays attention to the cache file if you give it 22810 # the --recheck option to rerun configure. 22811 # 22812 # `ac_cv_env_foo' variables (set or unset) will be overridden when 22813 # loading this file, other *unset* `ac_cv_foo' will be assigned the 22814 # following values. 22815 22816 _ACEOF 22817 22818 # The following way of writing the cache mishandles newlines in values, 22819 # but we know of no workaround that is simple, portable, and efficient. 22820 # So, we kill variables containing newlines. 22821 # Ultrix sh set writes to stderr and can't be redirected directly, 22822 # and sets the high bit in the cache file unless we assign to the vars. 22823 ( 22824 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22825 eval ac_val=\$$ac_var 22826 case $ac_val in #( 22827 *${as_nl}*) 22828 case $ac_var in #( 22829 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22831 esac 22832 case $ac_var in #( 22833 _ | IFS | as_nl) ;; #( 22834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22835 *) { eval $ac_var=; unset $ac_var;} ;; 22836 esac ;; 22837 esac 22838 done 22839 22840 (set) 2>&1 | 22841 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22842 *${as_nl}ac_space=\ *) 22843 # `set' does not quote correctly, so add quotes: double-quote 22844 # substitution turns \\\\ into \\, and sed turns \\ into \. 22845 sed -n \ 22846 "s/'/'\\\\''/g; 22847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22848 ;; #( 22849 *) 22850 # `set' quotes correctly as required by POSIX, so do not add quotes. 22851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22852 ;; 22853 esac | 22854 sort 22855 ) | 22856 sed ' 22857 /^ac_cv_env_/b end 22858 t clear 22859 :clear 22860 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22861 t end 22862 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22863 :end' >>confcache 22864 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22865 if test -w "$cache_file"; then 22866 if test "x$cache_file" != "x/dev/null"; then 22867 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22868 $as_echo "$as_me: updating cache $cache_file" >&6;} 22869 if test ! -f "$cache_file" || test -h "$cache_file"; then 22870 cat confcache >"$cache_file" 22871 else 22872 case $cache_file in #( 22873 */* | ?:*) 22874 mv -f confcache "$cache_file"$$ && 22875 mv -f "$cache_file"$$ "$cache_file" ;; #( 22876 *) 22877 mv -f confcache "$cache_file" ;; 22878 esac 22879 fi 22880 fi 22881 else 22882 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22883 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22884 fi 22885 fi 22886 rm -f confcache 22887 22888 test "x$prefix" = xNONE && prefix=$ac_default_prefix 22889 # Let make expand exec_prefix. 22890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22891 22892 DEFS=-DHAVE_CONFIG_H 22893 22894 ac_libobjs= 22895 ac_ltlibobjs= 22896 U= 22897 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22898 # 1. Remove the extension, and $U if already installed. 22899 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22900 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22901 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22902 # will be set to the directory where LIBOBJS objects are built. 22903 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22904 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22905 done 22906 LIBOBJS=$ac_libobjs 22907 22908 LTLIBOBJS=$ac_ltlibobjs 22909 22910 22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22912 $as_echo_n "checking that generated files are newer than configure... " >&6; } 22913 if test -n "$am_sleep_pid"; then 22914 # Hide warnings about reused PIDs. 22915 wait $am_sleep_pid 2>/dev/null 22916 fi 22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 22918 $as_echo "done" >&6; } 22919 if test -n "$EXEEXT"; then 22920 am__EXEEXT_TRUE= 22921 am__EXEEXT_FALSE='#' 22922 else 22923 am__EXEEXT_TRUE='#' 22924 am__EXEEXT_FALSE= 22925 fi 22926 22927 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22928 as_fn_error $? "conditional \"AMDEP\" was never defined. 22929 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22930 fi 22931 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22932 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22933 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22934 fi 22935 if test -z "${BUILD_BACKLIGHT_HELPER_TRUE}" && test -z "${BUILD_BACKLIGHT_HELPER_FALSE}"; then 22936 as_fn_error $? "conditional \"BUILD_BACKLIGHT_HELPER\" was never defined. 22937 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22938 fi 22939 if test -z "${HAVE_DOT_GIT_TRUE}" && test -z "${HAVE_DOT_GIT_FALSE}"; then 22940 as_fn_error $? "conditional \"HAVE_DOT_GIT\" was never defined. 22941 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22942 fi 22943 if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then 22944 as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined. 22945 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22946 fi 22947 if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then 22948 as_fn_error $? "conditional \"HAVE_X11\" was never defined. 22949 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22950 fi 22951 if test -z "${X11_DRI3_TRUE}" && test -z "${X11_DRI3_FALSE}"; then 22952 as_fn_error $? "conditional \"X11_DRI3\" was never defined. 22953 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22954 fi 22955 if test -z "${X11_SHM_TRUE}" && test -z "${X11_SHM_FALSE}"; then 22956 as_fn_error $? "conditional \"X11_SHM\" was never defined. 22957 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22958 fi 22959 if test -z "${X11_VM_TRUE}" && test -z "${X11_VM_FALSE}"; then 22960 as_fn_error $? "conditional \"X11_VM\" was never defined. 22961 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22962 fi 22963 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then 22964 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined. 22965 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22966 fi 22967 if test -z "${BUILD_TOOL_CURSOR_TRUE}" && test -z "${BUILD_TOOL_CURSOR_FALSE}"; then 22968 as_fn_error $? "conditional \"BUILD_TOOL_CURSOR\" was never defined. 22969 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22970 fi 22971 if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 22972 as_fn_error $? "conditional \"DGA\" was never defined. 22973 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22974 fi 22975 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 22976 as_fn_error $? "conditional \"XAA\" was never defined. 22977 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22978 fi 22979 if test -z "${KMS_TRUE}" && test -z "${KMS_FALSE}"; then 22980 as_fn_error $? "conditional \"KMS\" was never defined. 22981 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22982 fi 22983 if test -z "${UMS_TRUE}" && test -z "${UMS_FALSE}"; then 22984 as_fn_error $? "conditional \"UMS\" was never defined. 22985 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22986 fi 22987 if test -z "${DRI1_TRUE}" && test -z "${DRI1_FALSE}"; then 22988 as_fn_error $? "conditional \"DRI1\" was never defined. 22989 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22990 fi 22991 if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 22992 as_fn_error $? "conditional \"DRI2\" was never defined. 22993 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22994 fi 22995 if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 22996 as_fn_error $? "conditional \"DRI3\" was never defined. 22997 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22998 fi 22999 if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 23000 as_fn_error $? "conditional \"PRESENT\" was never defined. 23001 Usually this means the macro was only invoked conditionally." "$LINENO" 5 23002 fi 23003 if test -z "${UXA_TRUE}" && test -z "${UXA_FALSE}"; then 23004 as_fn_error $? "conditional \"UXA\" was never defined. 23005 Usually this means the macro was only invoked conditionally." "$LINENO" 5 23006 fi 23007 if test -z "${SNA_TRUE}" && test -z "${SNA_FALSE}"; then 23008 as_fn_error $? "conditional \"SNA\" was never defined. 23009 Usually this means the macro was only invoked conditionally." "$LINENO" 5 23010 fi 23011 if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 23012 as_fn_error $? "conditional \"XVMC\" was never defined. 23013 Usually this means the macro was only invoked conditionally." "$LINENO" 5 23014 fi 23015 if test -z "${USE_CREATE2_TRUE}" && test -z "${USE_CREATE2_FALSE}"; then 23016 as_fn_error $? "conditional \"USE_CREATE2\" was never defined. 23017 Usually this means the macro was only invoked conditionally." "$LINENO" 5 23018 fi 23019 if test -z "${USE_ASYNC_SWAP_TRUE}" && test -z "${USE_ASYNC_SWAP_FALSE}"; then 23020 as_fn_error $? "conditional \"USE_ASYNC_SWAP\" was never defined. 23021 Usually this means the macro was only invoked conditionally." "$LINENO" 5 23022 fi 23023 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 23024 as_fn_error $? "conditional \"DEBUG\" was never defined. 23025 Usually this means the macro was only invoked conditionally." "$LINENO" 5 23026 fi 23027 if test -z "${FULL_DEBUG_TRUE}" && test -z "${FULL_DEBUG_FALSE}"; then 23028 as_fn_error $? "conditional \"FULL_DEBUG\" was never defined. 23029 Usually this means the macro was only invoked conditionally." "$LINENO" 5 23030 fi 23031 if test -z "${VALGRIND_TRUE}" && test -z "${VALGRIND_FALSE}"; then 23032 as_fn_error $? "conditional \"VALGRIND\" was never defined. 23033 Usually this means the macro was only invoked conditionally." "$LINENO" 5 23034 fi 23035 23036 : "${CONFIG_STATUS=./config.status}" 23037 ac_write_fail=0 23038 ac_clean_files_save=$ac_clean_files 23039 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23041 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 23042 as_write_fail=0 23043 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23044 #! $SHELL 23045 # Generated by $as_me. 23046 # Run this file to recreate the current configuration. 23047 # Compiler output produced by configure, useful for debugging 23048 # configure, is in config.log if it exists. 23049 23050 debug=false 23051 ac_cs_recheck=false 23052 ac_cs_silent=false 23053 23054 SHELL=\${CONFIG_SHELL-$SHELL} 23055 export SHELL 23056 _ASEOF 23057 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23058 ## -------------------- ## 23059 ## M4sh Initialization. ## 23060 ## -------------------- ## 23061 23062 # Be more Bourne compatible 23063 DUALCASE=1; export DUALCASE # for MKS sh 23064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 23065 emulate sh 23066 NULLCMD=: 23067 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23068 # is contrary to our usage. Disable this feature. 23069 alias -g '${1+"$@"}'='"$@"' 23070 setopt NO_GLOB_SUBST 23071 else 23072 case `(set -o) 2>/dev/null` in #( 23073 *posix*) : 23074 set -o posix ;; #( 23075 *) : 23076 ;; 23077 esac 23078 fi 23079 23080 23081 as_nl=' 23082 ' 23083 export as_nl 23084 # Printing a long string crashes Solaris 7 /usr/bin/printf. 23085 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 23086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 23087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 23088 # Prefer a ksh shell builtin over an external printf program on Solaris, 23089 # but without wasting forks for bash or zsh. 23090 if test -z "$BASH_VERSION$ZSH_VERSION" \ 23091 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 23092 as_echo='print -r --' 23093 as_echo_n='print -rn --' 23094 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 23095 as_echo='printf %s\n' 23096 as_echo_n='printf %s' 23097 else 23098 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 23099 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 23100 as_echo_n='/usr/ucb/echo -n' 23101 else 23102 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 23103 as_echo_n_body='eval 23104 arg=$1; 23105 case $arg in #( 23106 *"$as_nl"*) 23107 expr "X$arg" : "X\\(.*\\)$as_nl"; 23108 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 23109 esac; 23110 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 23111 ' 23112 export as_echo_n_body 23113 as_echo_n='sh -c $as_echo_n_body as_echo' 23114 fi 23115 export as_echo_body 23116 as_echo='sh -c $as_echo_body as_echo' 23117 fi 23118 23119 # The user is always right. 23120 if test "${PATH_SEPARATOR+set}" != set; then 23121 PATH_SEPARATOR=: 23122 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23123 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23124 PATH_SEPARATOR=';' 23125 } 23126 fi 23127 23128 23129 # IFS 23130 # We need space, tab and new line, in precisely that order. Quoting is 23131 # there to prevent editors from complaining about space-tab. 23132 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 23133 # splitting by setting IFS to empty value.) 23134 IFS=" "" $as_nl" 23135 23136 # Find who we are. Look in the path if we contain no directory separator. 23137 as_myself= 23138 case $0 in #(( 23139 *[\\/]* ) as_myself=$0 ;; 23140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23141 for as_dir in $PATH 23142 do 23143 IFS=$as_save_IFS 23144 test -z "$as_dir" && as_dir=. 23145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23146 done 23147 IFS=$as_save_IFS 23148 23149 ;; 23150 esac 23151 # We did not find ourselves, most probably we were run as `sh COMMAND' 23152 # in which case we are not to be found in the path. 23153 if test "x$as_myself" = x; then 23154 as_myself=$0 23155 fi 23156 if test ! -f "$as_myself"; then 23157 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23158 exit 1 23159 fi 23160 23161 # Unset variables that we do not need and which cause bugs (e.g. in 23162 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 23163 # suppresses any "Segmentation fault" message there. '((' could 23164 # trigger a bug in pdksh 5.2.14. 23165 for as_var in BASH_ENV ENV MAIL MAILPATH 23166 do eval test x\${$as_var+set} = xset \ 23167 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23168 done 23169 PS1='$ ' 23170 PS2='> ' 23171 PS4='+ ' 23172 23173 # NLS nuisances. 23174 LC_ALL=C 23175 export LC_ALL 23176 LANGUAGE=C 23177 export LANGUAGE 23178 23179 # CDPATH. 23180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23181 23182 23183 # as_fn_error STATUS ERROR [LINENO LOG_FD] 23184 # ---------------------------------------- 23185 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23186 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23187 # script with STATUS, using 1 if that was 0. 23188 as_fn_error () 23189 { 23190 as_status=$1; test $as_status -eq 0 && as_status=1 23191 if test "$4"; then 23192 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23193 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 23194 fi 23195 $as_echo "$as_me: error: $2" >&2 23196 as_fn_exit $as_status 23197 } # as_fn_error 23198 23199 23200 # as_fn_set_status STATUS 23201 # ----------------------- 23202 # Set $? to STATUS, without forking. 23203 as_fn_set_status () 23204 { 23205 return $1 23206 } # as_fn_set_status 23207 23208 # as_fn_exit STATUS 23209 # ----------------- 23210 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23211 as_fn_exit () 23212 { 23213 set +e 23214 as_fn_set_status $1 23215 exit $1 23216 } # as_fn_exit 23217 23218 # as_fn_unset VAR 23219 # --------------- 23220 # Portably unset VAR. 23221 as_fn_unset () 23222 { 23223 { eval $1=; unset $1;} 23224 } 23225 as_unset=as_fn_unset 23226 # as_fn_append VAR VALUE 23227 # ---------------------- 23228 # Append the text in VALUE to the end of the definition contained in VAR. Take 23229 # advantage of any shell optimizations that allow amortized linear growth over 23230 # repeated appends, instead of the typical quadratic growth present in naive 23231 # implementations. 23232 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 23233 eval 'as_fn_append () 23234 { 23235 eval $1+=\$2 23236 }' 23237 else 23238 as_fn_append () 23239 { 23240 eval $1=\$$1\$2 23241 } 23242 fi # as_fn_append 23243 23244 # as_fn_arith ARG... 23245 # ------------------ 23246 # Perform arithmetic evaluation on the ARGs, and store the result in the 23247 # global $as_val. Take advantage of shells that can avoid forks. The arguments 23248 # must be portable across $(()) and expr. 23249 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 23250 eval 'as_fn_arith () 23251 { 23252 as_val=$(( $* )) 23253 }' 23254 else 23255 as_fn_arith () 23256 { 23257 as_val=`expr "$@" || test $? -eq 1` 23258 } 23259 fi # as_fn_arith 23260 23261 23262 if expr a : '\(a\)' >/dev/null 2>&1 && 23263 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23264 as_expr=expr 23265 else 23266 as_expr=false 23267 fi 23268 23269 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23270 as_basename=basename 23271 else 23272 as_basename=false 23273 fi 23274 23275 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23276 as_dirname=dirname 23277 else 23278 as_dirname=false 23279 fi 23280 23281 as_me=`$as_basename -- "$0" || 23282 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23283 X"$0" : 'X\(//\)$' \| \ 23284 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23285 $as_echo X/"$0" | 23286 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23287 s//\1/ 23288 q 23289 } 23290 /^X\/\(\/\/\)$/{ 23291 s//\1/ 23292 q 23293 } 23294 /^X\/\(\/\).*/{ 23295 s//\1/ 23296 q 23297 } 23298 s/.*/./; q'` 23299 23300 # Avoid depending upon Character Ranges. 23301 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23302 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23303 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23304 as_cr_digits='0123456789' 23305 as_cr_alnum=$as_cr_Letters$as_cr_digits 23306 23307 ECHO_C= ECHO_N= ECHO_T= 23308 case `echo -n x` in #((((( 23309 -n*) 23310 case `echo 'xy\c'` in 23311 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23312 xy) ECHO_C='\c';; 23313 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23314 ECHO_T=' ';; 23315 esac;; 23316 *) 23317 ECHO_N='-n';; 23318 esac 23319 23320 rm -f conf$$ conf$$.exe conf$$.file 23321 if test -d conf$$.dir; then 23322 rm -f conf$$.dir/conf$$.file 23323 else 23324 rm -f conf$$.dir 23325 mkdir conf$$.dir 2>/dev/null 23326 fi 23327 if (echo >conf$$.file) 2>/dev/null; then 23328 if ln -s conf$$.file conf$$ 2>/dev/null; then 23329 as_ln_s='ln -s' 23330 # ... but there are two gotchas: 23331 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23332 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23333 # In both cases, we have to default to `cp -pR'. 23334 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23335 as_ln_s='cp -pR' 23336 elif ln conf$$.file conf$$ 2>/dev/null; then 23337 as_ln_s=ln 23338 else 23339 as_ln_s='cp -pR' 23340 fi 23341 else 23342 as_ln_s='cp -pR' 23343 fi 23344 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23345 rmdir conf$$.dir 2>/dev/null 23346 23347 23348 # as_fn_mkdir_p 23349 # ------------- 23350 # Create "$as_dir" as a directory, including parents if necessary. 23351 as_fn_mkdir_p () 23352 { 23353 23354 case $as_dir in #( 23355 -*) as_dir=./$as_dir;; 23356 esac 23357 test -d "$as_dir" || eval $as_mkdir_p || { 23358 as_dirs= 23359 while :; do 23360 case $as_dir in #( 23361 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23362 *) as_qdir=$as_dir;; 23363 esac 23364 as_dirs="'$as_qdir' $as_dirs" 23365 as_dir=`$as_dirname -- "$as_dir" || 23366 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23367 X"$as_dir" : 'X\(//\)[^/]' \| \ 23368 X"$as_dir" : 'X\(//\)$' \| \ 23369 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23370 $as_echo X"$as_dir" | 23371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23372 s//\1/ 23373 q 23374 } 23375 /^X\(\/\/\)[^/].*/{ 23376 s//\1/ 23377 q 23378 } 23379 /^X\(\/\/\)$/{ 23380 s//\1/ 23381 q 23382 } 23383 /^X\(\/\).*/{ 23384 s//\1/ 23385 q 23386 } 23387 s/.*/./; q'` 23388 test -d "$as_dir" && break 23389 done 23390 test -z "$as_dirs" || eval "mkdir $as_dirs" 23391 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23392 23393 23394 } # as_fn_mkdir_p 23395 if mkdir -p . 2>/dev/null; then 23396 as_mkdir_p='mkdir -p "$as_dir"' 23397 else 23398 test -d ./-p && rmdir ./-p 23399 as_mkdir_p=false 23400 fi 23401 23402 23403 # as_fn_executable_p FILE 23404 # ----------------------- 23405 # Test if FILE is an executable regular file. 23406 as_fn_executable_p () 23407 { 23408 test -f "$1" && test -x "$1" 23409 } # as_fn_executable_p 23410 as_test_x='test -x' 23411 as_executable_p=as_fn_executable_p 23412 23413 # Sed expression to map a string onto a valid CPP name. 23414 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23415 23416 # Sed expression to map a string onto a valid variable name. 23417 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23418 23419 23420 exec 6>&1 23421 ## ----------------------------------- ## 23422 ## Main body of $CONFIG_STATUS script. ## 23423 ## ----------------------------------- ## 23424 _ASEOF 23425 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23426 23427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23428 # Save the log message, to keep $0 and so on meaningful, and to 23429 # report actual input values of CONFIG_FILES etc. instead of their 23430 # values after options handling. 23431 ac_log=" 23432 This file was extended by xf86-video-intel $as_me 2.99.917, which was 23433 generated by GNU Autoconf 2.69. Invocation command line was 23434 23435 CONFIG_FILES = $CONFIG_FILES 23436 CONFIG_HEADERS = $CONFIG_HEADERS 23437 CONFIG_LINKS = $CONFIG_LINKS 23438 CONFIG_COMMANDS = $CONFIG_COMMANDS 23439 $ $0 $@ 23440 23441 on `(hostname || uname -n) 2>/dev/null | sed 1q` 23442 " 23443 23444 _ACEOF 23445 23446 case $ac_config_files in *" 23447 "*) set x $ac_config_files; shift; ac_config_files=$*;; 23448 esac 23449 23450 case $ac_config_headers in *" 23451 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23452 esac 23453 23454 23455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23456 # Files that config.status was made for. 23457 config_files="$ac_config_files" 23458 config_headers="$ac_config_headers" 23459 config_commands="$ac_config_commands" 23460 23461 _ACEOF 23462 23463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23464 ac_cs_usage="\ 23465 \`$as_me' instantiates files and other configuration actions 23466 from templates according to the current configuration. Unless the files 23467 and actions are specified as TAGs, all are instantiated by default. 23468 23469 Usage: $0 [OPTION]... [TAG]... 23470 23471 -h, --help print this help, then exit 23472 -V, --version print version number and configuration settings, then exit 23473 --config print configuration, then exit 23474 -q, --quiet, --silent 23475 do not print progress messages 23476 -d, --debug don't remove temporary files 23477 --recheck update $as_me by reconfiguring in the same conditions 23478 --file=FILE[:TEMPLATE] 23479 instantiate the configuration file FILE 23480 --header=FILE[:TEMPLATE] 23481 instantiate the configuration header FILE 23482 23483 Configuration files: 23484 $config_files 23485 23486 Configuration headers: 23487 $config_headers 23488 23489 Configuration commands: 23490 $config_commands 23491 23492 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 23493 23494 _ACEOF 23495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23496 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 23497 ac_cs_version="\\ 23498 xf86-video-intel config.status 2.99.917 23499 configured by $0, generated by GNU Autoconf 2.69, 23500 with options \\"\$ac_cs_config\\" 23501 23502 Copyright (C) 2012 Free Software Foundation, Inc. 23503 This config.status script is free software; the Free Software Foundation 23504 gives unlimited permission to copy, distribute and modify it." 23505 23506 ac_pwd='$ac_pwd' 23507 srcdir='$srcdir' 23508 INSTALL='$INSTALL' 23509 MKDIR_P='$MKDIR_P' 23510 AWK='$AWK' 23511 test -n "\$AWK" || AWK=awk 23512 _ACEOF 23513 23514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23515 # The default lists apply if the user does not specify any file. 23516 ac_need_defaults=: 23517 while test $# != 0 23518 do 23519 case $1 in 23520 --*=?*) 23521 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23522 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23523 ac_shift=: 23524 ;; 23525 --*=) 23526 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23527 ac_optarg= 23528 ac_shift=: 23529 ;; 23530 *) 23531 ac_option=$1 23532 ac_optarg=$2 23533 ac_shift=shift 23534 ;; 23535 esac 23536 23537 case $ac_option in 23538 # Handling of the options. 23539 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23540 ac_cs_recheck=: ;; 23541 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23542 $as_echo "$ac_cs_version"; exit ;; 23543 --config | --confi | --conf | --con | --co | --c ) 23544 $as_echo "$ac_cs_config"; exit ;; 23545 --debug | --debu | --deb | --de | --d | -d ) 23546 debug=: ;; 23547 --file | --fil | --fi | --f ) 23548 $ac_shift 23549 case $ac_optarg in 23550 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23551 '') as_fn_error $? "missing file argument" ;; 23552 esac 23553 as_fn_append CONFIG_FILES " '$ac_optarg'" 23554 ac_need_defaults=false;; 23555 --header | --heade | --head | --hea ) 23556 $ac_shift 23557 case $ac_optarg in 23558 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23559 esac 23560 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 23561 ac_need_defaults=false;; 23562 --he | --h) 23563 # Conflict between --help and --header 23564 as_fn_error $? "ambiguous option: \`$1' 23565 Try \`$0 --help' for more information.";; 23566 --help | --hel | -h ) 23567 $as_echo "$ac_cs_usage"; exit ;; 23568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23569 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23570 ac_cs_silent=: ;; 23571 23572 # This is an error. 23573 -*) as_fn_error $? "unrecognized option: \`$1' 23574 Try \`$0 --help' for more information." ;; 23575 23576 *) as_fn_append ac_config_targets " $1" 23577 ac_need_defaults=false ;; 23578 23579 esac 23580 shift 23581 done 23582 23583 ac_configure_extra_args= 23584 23585 if $ac_cs_silent; then 23586 exec 6>/dev/null 23587 ac_configure_extra_args="$ac_configure_extra_args --silent" 23588 fi 23589 23590 _ACEOF 23591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23592 if \$ac_cs_recheck; then 23593 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23594 shift 23595 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23596 CONFIG_SHELL='$SHELL' 23597 export CONFIG_SHELL 23598 exec "\$@" 23599 fi 23600 23601 _ACEOF 23602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23603 exec 5>>config.log 23604 { 23605 echo 23606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23607 ## Running $as_me. ## 23608 _ASBOX 23609 $as_echo "$ac_log" 23610 } >&5 23611 23612 _ACEOF 23613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23614 # 23615 # INIT-COMMANDS 23616 # 23617 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 23618 23619 23620 # The HP-UX ksh and POSIX shell print the target directory to stdout 23621 # if CDPATH is set. 23622 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23623 23624 sed_quote_subst='$sed_quote_subst' 23625 double_quote_subst='$double_quote_subst' 23626 delay_variable_subst='$delay_variable_subst' 23627 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23628 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23629 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23630 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23631 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23632 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23633 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23634 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23635 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23636 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23637 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23638 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23639 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23640 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23641 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23642 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23643 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23644 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23645 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23646 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23647 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23648 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23649 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23650 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23651 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23652 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23653 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23654 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23655 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23656 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23657 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23658 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23659 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23660 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23661 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23662 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23663 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23664 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23665 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23666 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23667 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23668 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23669 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23670 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23671 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23672 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23673 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23674 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23675 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23676 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23677 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23678 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23679 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23680 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23681 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23682 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23683 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23684 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23685 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"`' 23686 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23687 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23688 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23689 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23690 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23691 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23692 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23693 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23694 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23695 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23696 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23697 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23698 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23699 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23700 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23701 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23702 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23703 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23704 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23705 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23706 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23707 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23708 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23709 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23710 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23711 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23712 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23713 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23714 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23715 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23716 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23717 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23718 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23719 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23720 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23721 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23722 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23723 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23724 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23725 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23726 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23727 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23728 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23729 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23730 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23731 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23732 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23733 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23734 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23735 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23736 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23737 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23738 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23739 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23740 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23741 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23742 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23743 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23744 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23745 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23746 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23747 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23748 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23749 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23750 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23751 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23752 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23753 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23754 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23755 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23756 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23757 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23758 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23759 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23760 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23761 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23762 23763 LTCC='$LTCC' 23764 LTCFLAGS='$LTCFLAGS' 23765 compiler='$compiler_DEFAULT' 23766 23767 # A function that is used when there is no print builtin or printf. 23768 func_fallback_echo () 23769 { 23770 eval 'cat <<_LTECHO_EOF 23771 \$1 23772 _LTECHO_EOF' 23773 } 23774 23775 # Quote evaled strings. 23776 for var in SHELL \ 23777 ECHO \ 23778 PATH_SEPARATOR \ 23779 SED \ 23780 GREP \ 23781 EGREP \ 23782 FGREP \ 23783 LD \ 23784 NM \ 23785 LN_S \ 23786 lt_SP2NL \ 23787 lt_NL2SP \ 23788 reload_flag \ 23789 OBJDUMP \ 23790 deplibs_check_method \ 23791 file_magic_cmd \ 23792 file_magic_glob \ 23793 want_nocaseglob \ 23794 DLLTOOL \ 23795 sharedlib_from_linklib_cmd \ 23796 AR \ 23797 AR_FLAGS \ 23798 archiver_list_spec \ 23799 STRIP \ 23800 RANLIB \ 23801 CC \ 23802 CFLAGS \ 23803 compiler \ 23804 lt_cv_sys_global_symbol_pipe \ 23805 lt_cv_sys_global_symbol_to_cdecl \ 23806 lt_cv_sys_global_symbol_to_import \ 23807 lt_cv_sys_global_symbol_to_c_name_address \ 23808 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23809 lt_cv_nm_interface \ 23810 nm_file_list_spec \ 23811 lt_cv_truncate_bin \ 23812 lt_prog_compiler_no_builtin_flag \ 23813 lt_prog_compiler_pic \ 23814 lt_prog_compiler_wl \ 23815 lt_prog_compiler_static \ 23816 lt_cv_prog_compiler_c_o \ 23817 need_locks \ 23818 MANIFEST_TOOL \ 23819 DSYMUTIL \ 23820 NMEDIT \ 23821 LIPO \ 23822 OTOOL \ 23823 OTOOL64 \ 23824 shrext_cmds \ 23825 export_dynamic_flag_spec \ 23826 whole_archive_flag_spec \ 23827 compiler_needs_object \ 23828 with_gnu_ld \ 23829 allow_undefined_flag \ 23830 no_undefined_flag \ 23831 hardcode_libdir_flag_spec \ 23832 hardcode_libdir_separator \ 23833 exclude_expsyms \ 23834 include_expsyms \ 23835 file_list_spec \ 23836 variables_saved_for_relink \ 23837 libname_spec \ 23838 library_names_spec \ 23839 soname_spec \ 23840 install_override_mode \ 23841 finish_eval \ 23842 old_striplib \ 23843 striplib; do 23844 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23845 *[\\\\\\\`\\"\\\$]*) 23846 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23847 ;; 23848 *) 23849 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23850 ;; 23851 esac 23852 done 23853 23854 # Double-quote double-evaled strings. 23855 for var in reload_cmds \ 23856 old_postinstall_cmds \ 23857 old_postuninstall_cmds \ 23858 old_archive_cmds \ 23859 extract_expsyms_cmds \ 23860 old_archive_from_new_cmds \ 23861 old_archive_from_expsyms_cmds \ 23862 archive_cmds \ 23863 archive_expsym_cmds \ 23864 module_cmds \ 23865 module_expsym_cmds \ 23866 export_symbols_cmds \ 23867 prelink_cmds \ 23868 postlink_cmds \ 23869 postinstall_cmds \ 23870 postuninstall_cmds \ 23871 finish_cmds \ 23872 sys_lib_search_path_spec \ 23873 configure_time_dlsearch_path \ 23874 configure_time_lt_sys_library_path; do 23875 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23876 *[\\\\\\\`\\"\\\$]*) 23877 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23878 ;; 23879 *) 23880 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23881 ;; 23882 esac 23883 done 23884 23885 ac_aux_dir='$ac_aux_dir' 23886 23887 # See if we are running on zsh, and set the options that allow our 23888 # commands through without removal of \ escapes INIT. 23889 if test -n "\${ZSH_VERSION+set}"; then 23890 setopt NO_GLOB_SUBST 23891 fi 23892 23893 23894 PACKAGE='$PACKAGE' 23895 VERSION='$VERSION' 23896 RM='$RM' 23897 ofile='$ofile' 23898 23899 23900 23901 23902 _ACEOF 23903 23904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23905 23906 # Handling of arguments. 23907 for ac_config_target in $ac_config_targets 23908 do 23909 case $ac_config_target in 23910 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23911 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23912 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23913 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23914 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 23915 "libobj/Makefile") CONFIG_FILES="$CONFIG_FILES libobj/Makefile" ;; 23916 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23917 "src/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/Makefile" ;; 23918 "src/legacy/i810/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/Makefile" ;; 23919 "src/legacy/i810/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/xvmc/Makefile" ;; 23920 "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;; 23921 "src/sna/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/Makefile" ;; 23922 "src/sna/brw/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/brw/Makefile" ;; 23923 "src/sna/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/fb/Makefile" ;; 23924 "src/uxa/Makefile") CONFIG_FILES="$CONFIG_FILES src/uxa/Makefile" ;; 23925 "xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/Makefile" ;; 23926 "xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/Makefile" ;; 23927 "xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/mc/Makefile" ;; 23928 "xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/vld/Makefile" ;; 23929 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 23930 "benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES benchmarks/Makefile" ;; 23931 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 23932 "tools/org.x.xf86-video-intel.backlight-helper.policy") CONFIG_FILES="$CONFIG_FILES tools/org.x.xf86-video-intel.backlight-helper.policy" ;; 23933 23934 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 23935 esac 23936 done 23937 23938 23939 # If the user did not use the arguments to specify the items to instantiate, 23940 # then the envvar interface is used. Set only those that are not. 23941 # We use the long form for the default assignment because of an extremely 23942 # bizarre bug on SunOS 4.1.3. 23943 if $ac_need_defaults; then 23944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23947 fi 23948 23949 # Have a temporary directory for convenience. Make it in the build tree 23950 # simply because there is no reason against having it here, and in addition, 23951 # creating and moving files from /tmp can sometimes cause problems. 23952 # Hook for its removal unless debugging. 23953 # Note that there is a small window in which the directory will not be cleaned: 23954 # after its creation but before its name has been assigned to `$tmp'. 23955 $debug || 23956 { 23957 tmp= ac_tmp= 23958 trap 'exit_status=$? 23959 : "${ac_tmp:=$tmp}" 23960 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23961 ' 0 23962 trap 'as_fn_exit 1' 1 2 13 15 23963 } 23964 # Create a (secure) tmp directory for tmp files. 23965 23966 { 23967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23968 test -d "$tmp" 23969 } || 23970 { 23971 tmp=./conf$$-$RANDOM 23972 (umask 077 && mkdir "$tmp") 23973 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23974 ac_tmp=$tmp 23975 23976 # Set up the scripts for CONFIG_FILES section. 23977 # No need to generate them if there are no CONFIG_FILES. 23978 # This happens for instance with `./config.status config.h'. 23979 if test -n "$CONFIG_FILES"; then 23980 23981 23982 ac_cr=`echo X | tr X '\015'` 23983 # On cygwin, bash can eat \r inside `` if the user requested igncr. 23984 # But we know of no other shell where ac_cr would be empty at this 23985 # point, so we can use a bashism as a fallback. 23986 if test "x$ac_cr" = x; then 23987 eval ac_cr=\$\'\\r\' 23988 fi 23989 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23991 ac_cs_awk_cr='\\r' 23992 else 23993 ac_cs_awk_cr=$ac_cr 23994 fi 23995 23996 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23997 _ACEOF 23998 23999 24000 { 24001 echo "cat >conf$$subs.awk <<_ACEOF" && 24002 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24003 echo "_ACEOF" 24004 } >conf$$subs.sh || 24005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24006 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 24007 ac_delim='%!_!# ' 24008 for ac_last_try in false false false false false :; do 24009 . ./conf$$subs.sh || 24010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24011 24012 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24013 if test $ac_delim_n = $ac_delim_num; then 24014 break 24015 elif $ac_last_try; then 24016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24017 else 24018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24019 fi 24020 done 24021 rm -f conf$$subs.sh 24022 24023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24024 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 24025 _ACEOF 24026 sed -n ' 24027 h 24028 s/^/S["/; s/!.*/"]=/ 24029 p 24030 g 24031 s/^[^!]*!// 24032 :repl 24033 t repl 24034 s/'"$ac_delim"'$// 24035 t delim 24036 :nl 24037 h 24038 s/\(.\{148\}\)..*/\1/ 24039 t more1 24040 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24041 p 24042 n 24043 b repl 24044 :more1 24045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24046 p 24047 g 24048 s/.\{148\}// 24049 t nl 24050 :delim 24051 h 24052 s/\(.\{148\}\)..*/\1/ 24053 t more2 24054 s/["\\]/\\&/g; s/^/"/; s/$/"/ 24055 p 24056 b 24057 :more2 24058 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24059 p 24060 g 24061 s/.\{148\}// 24062 t delim 24063 ' <conf$$subs.awk | sed ' 24064 /^[^""]/{ 24065 N 24066 s/\n// 24067 } 24068 ' >>$CONFIG_STATUS || ac_write_fail=1 24069 rm -f conf$$subs.awk 24070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24071 _ACAWK 24072 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 24073 for (key in S) S_is_set[key] = 1 24074 FS = "" 24075 24076 } 24077 { 24078 line = $ 0 24079 nfields = split(line, field, "@") 24080 substed = 0 24081 len = length(field[1]) 24082 for (i = 2; i < nfields; i++) { 24083 key = field[i] 24084 keylen = length(key) 24085 if (S_is_set[key]) { 24086 value = S[key] 24087 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24088 len += length(value) + length(field[++i]) 24089 substed = 1 24090 } else 24091 len += 1 + keylen 24092 } 24093 24094 print line 24095 } 24096 24097 _ACAWK 24098 _ACEOF 24099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24100 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24101 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24102 else 24103 cat 24104 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24105 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24106 _ACEOF 24107 24108 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24109 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24110 # trailing colons and then remove the whole line if VPATH becomes empty 24111 # (actually we leave an empty line to preserve line numbers). 24112 if test "x$srcdir" = x.; then 24113 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24114 h 24115 s/// 24116 s/^/:/ 24117 s/[ ]*$/:/ 24118 s/:\$(srcdir):/:/g 24119 s/:\${srcdir}:/:/g 24120 s/:@srcdir@:/:/g 24121 s/^:*// 24122 s/:*$// 24123 x 24124 s/\(=[ ]*\).*/\1/ 24125 G 24126 s/\n// 24127 s/^[^=]*=[ ]*$// 24128 }' 24129 fi 24130 24131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24132 fi # test -n "$CONFIG_FILES" 24133 24134 # Set up the scripts for CONFIG_HEADERS section. 24135 # No need to generate them if there are no CONFIG_HEADERS. 24136 # This happens for instance with `./config.status Makefile'. 24137 if test -n "$CONFIG_HEADERS"; then 24138 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 24139 BEGIN { 24140 _ACEOF 24141 24142 # Transform confdefs.h into an awk script `defines.awk', embedded as 24143 # here-document in config.status, that substitutes the proper values into 24144 # config.h.in to produce config.h. 24145 24146 # Create a delimiter string that does not exist in confdefs.h, to ease 24147 # handling of long lines. 24148 ac_delim='%!_!# ' 24149 for ac_last_try in false false :; do 24150 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24151 if test -z "$ac_tt"; then 24152 break 24153 elif $ac_last_try; then 24154 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24155 else 24156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24157 fi 24158 done 24159 24160 # For the awk script, D is an array of macro values keyed by name, 24161 # likewise P contains macro parameters if any. Preserve backslash 24162 # newline sequences. 24163 24164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24165 sed -n ' 24166 s/.\{148\}/&'"$ac_delim"'/g 24167 t rset 24168 :rset 24169 s/^[ ]*#[ ]*define[ ][ ]*/ / 24170 t def 24171 d 24172 :def 24173 s/\\$// 24174 t bsnl 24175 s/["\\]/\\&/g 24176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24177 D["\1"]=" \3"/p 24178 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24179 d 24180 :bsnl 24181 s/["\\]/\\&/g 24182 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24183 D["\1"]=" \3\\\\\\n"\\/p 24184 t cont 24185 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24186 t cont 24187 d 24188 :cont 24189 n 24190 s/.\{148\}/&'"$ac_delim"'/g 24191 t clear 24192 :clear 24193 s/\\$// 24194 t bsnlc 24195 s/["\\]/\\&/g; s/^/"/; s/$/"/p 24196 d 24197 :bsnlc 24198 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24199 b cont 24200 ' <confdefs.h | sed ' 24201 s/'"$ac_delim"'/"\\\ 24202 "/g' >>$CONFIG_STATUS || ac_write_fail=1 24203 24204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24205 for (key in D) D_is_set[key] = 1 24206 FS = "" 24207 } 24208 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24209 line = \$ 0 24210 split(line, arg, " ") 24211 if (arg[1] == "#") { 24212 defundef = arg[2] 24213 mac1 = arg[3] 24214 } else { 24215 defundef = substr(arg[1], 2) 24216 mac1 = arg[2] 24217 } 24218 split(mac1, mac2, "(") #) 24219 macro = mac2[1] 24220 prefix = substr(line, 1, index(line, defundef) - 1) 24221 if (D_is_set[macro]) { 24222 # Preserve the white space surrounding the "#". 24223 print prefix "define", macro P[macro] D[macro] 24224 next 24225 } else { 24226 # Replace #undef with comments. This is necessary, for example, 24227 # in the case of _POSIX_SOURCE, which is predefined and required 24228 # on some systems where configure will not decide to define it. 24229 if (defundef == "undef") { 24230 print "/*", prefix defundef, macro, "*/" 24231 next 24232 } 24233 } 24234 } 24235 { print } 24236 _ACAWK 24237 _ACEOF 24238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24239 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 24240 fi # test -n "$CONFIG_HEADERS" 24241 24242 24243 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24244 shift 24245 for ac_tag 24246 do 24247 case $ac_tag in 24248 :[FHLC]) ac_mode=$ac_tag; continue;; 24249 esac 24250 case $ac_mode$ac_tag in 24251 :[FHL]*:*);; 24252 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 24253 :[FH]-) ac_tag=-:-;; 24254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24255 esac 24256 ac_save_IFS=$IFS 24257 IFS=: 24258 set x $ac_tag 24259 IFS=$ac_save_IFS 24260 shift 24261 ac_file=$1 24262 shift 24263 24264 case $ac_mode in 24265 :L) ac_source=$1;; 24266 :[FH]) 24267 ac_file_inputs= 24268 for ac_f 24269 do 24270 case $ac_f in 24271 -) ac_f="$ac_tmp/stdin";; 24272 *) # Look for the file first in the build tree, then in the source tree 24273 # (if the path is not absolute). The absolute path cannot be DOS-style, 24274 # because $ac_f cannot contain `:'. 24275 test -f "$ac_f" || 24276 case $ac_f in 24277 [\\/$]*) false;; 24278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24279 esac || 24280 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 24281 esac 24282 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24283 as_fn_append ac_file_inputs " '$ac_f'" 24284 done 24285 24286 # Let's still pretend it is `configure' which instantiates (i.e., don't 24287 # use $as_me), people would be surprised to read: 24288 # /* config.h. Generated by config.status. */ 24289 configure_input='Generated from '` 24290 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24291 `' by configure.' 24292 if test x"$ac_file" != x-; then 24293 configure_input="$ac_file. $configure_input" 24294 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24295 $as_echo "$as_me: creating $ac_file" >&6;} 24296 fi 24297 # Neutralize special characters interpreted by sed in replacement strings. 24298 case $configure_input in #( 24299 *\&* | *\|* | *\\* ) 24300 ac_sed_conf_input=`$as_echo "$configure_input" | 24301 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24302 *) ac_sed_conf_input=$configure_input;; 24303 esac 24304 24305 case $ac_tag in 24306 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 24307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24308 esac 24309 ;; 24310 esac 24311 24312 ac_dir=`$as_dirname -- "$ac_file" || 24313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24314 X"$ac_file" : 'X\(//\)[^/]' \| \ 24315 X"$ac_file" : 'X\(//\)$' \| \ 24316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24317 $as_echo X"$ac_file" | 24318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24319 s//\1/ 24320 q 24321 } 24322 /^X\(\/\/\)[^/].*/{ 24323 s//\1/ 24324 q 24325 } 24326 /^X\(\/\/\)$/{ 24327 s//\1/ 24328 q 24329 } 24330 /^X\(\/\).*/{ 24331 s//\1/ 24332 q 24333 } 24334 s/.*/./; q'` 24335 as_dir="$ac_dir"; as_fn_mkdir_p 24336 ac_builddir=. 24337 24338 case "$ac_dir" in 24339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24340 *) 24341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24342 # A ".." for each directory in $ac_dir_suffix. 24343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24344 case $ac_top_builddir_sub in 24345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24347 esac ;; 24348 esac 24349 ac_abs_top_builddir=$ac_pwd 24350 ac_abs_builddir=$ac_pwd$ac_dir_suffix 24351 # for backward compatibility: 24352 ac_top_builddir=$ac_top_build_prefix 24353 24354 case $srcdir in 24355 .) # We are building in place. 24356 ac_srcdir=. 24357 ac_top_srcdir=$ac_top_builddir_sub 24358 ac_abs_top_srcdir=$ac_pwd ;; 24359 [\\/]* | ?:[\\/]* ) # Absolute name. 24360 ac_srcdir=$srcdir$ac_dir_suffix; 24361 ac_top_srcdir=$srcdir 24362 ac_abs_top_srcdir=$srcdir ;; 24363 *) # Relative name. 24364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24365 ac_top_srcdir=$ac_top_build_prefix$srcdir 24366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24367 esac 24368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24369 24370 24371 case $ac_mode in 24372 :F) 24373 # 24374 # CONFIG_FILE 24375 # 24376 24377 case $INSTALL in 24378 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24379 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24380 esac 24381 ac_MKDIR_P=$MKDIR_P 24382 case $MKDIR_P in 24383 [\\/$]* | ?:[\\/]* ) ;; 24384 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24385 esac 24386 _ACEOF 24387 24388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24389 # If the template does not know about datarootdir, expand it. 24390 # FIXME: This hack should be removed a few years after 2.60. 24391 ac_datarootdir_hack=; ac_datarootdir_seen= 24392 ac_sed_dataroot=' 24393 /datarootdir/ { 24394 p 24395 q 24396 } 24397 /@datadir@/p 24398 /@docdir@/p 24399 /@infodir@/p 24400 /@localedir@/p 24401 /@mandir@/p' 24402 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24403 *datarootdir*) ac_datarootdir_seen=yes;; 24404 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24406 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24407 _ACEOF 24408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24409 ac_datarootdir_hack=' 24410 s&@datadir@&$datadir&g 24411 s&@docdir@&$docdir&g 24412 s&@infodir@&$infodir&g 24413 s&@localedir@&$localedir&g 24414 s&@mandir@&$mandir&g 24415 s&\\\${datarootdir}&$datarootdir&g' ;; 24416 esac 24417 _ACEOF 24418 24419 # Neutralize VPATH when `$srcdir' = `.'. 24420 # Shell code in configure.ac might set extrasub. 24421 # FIXME: do we really want to maintain this feature? 24422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24423 ac_sed_extra="$ac_vpsub 24424 $extrasub 24425 _ACEOF 24426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24427 :t 24428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24429 s|@configure_input@|$ac_sed_conf_input|;t t 24430 s&@top_builddir@&$ac_top_builddir_sub&;t t 24431 s&@top_build_prefix@&$ac_top_build_prefix&;t t 24432 s&@srcdir@&$ac_srcdir&;t t 24433 s&@abs_srcdir@&$ac_abs_srcdir&;t t 24434 s&@top_srcdir@&$ac_top_srcdir&;t t 24435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24436 s&@builddir@&$ac_builddir&;t t 24437 s&@abs_builddir@&$ac_abs_builddir&;t t 24438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24439 s&@INSTALL@&$ac_INSTALL&;t t 24440 s&@MKDIR_P@&$ac_MKDIR_P&;t t 24441 $ac_datarootdir_hack 24442 " 24443 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24444 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24445 24446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24447 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24449 "$ac_tmp/out"`; test -z "$ac_out"; } && 24450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24451 which seems to be undefined. Please make sure it is defined" >&5 24452 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24453 which seems to be undefined. Please make sure it is defined" >&2;} 24454 24455 rm -f "$ac_tmp/stdin" 24456 case $ac_file in 24457 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24458 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24459 esac \ 24460 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24461 ;; 24462 :H) 24463 # 24464 # CONFIG_HEADER 24465 # 24466 if test x"$ac_file" != x-; then 24467 { 24468 $as_echo "/* $configure_input */" \ 24469 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 24470 } >"$ac_tmp/config.h" \ 24471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24472 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 24473 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24474 $as_echo "$as_me: $ac_file is unchanged" >&6;} 24475 else 24476 rm -f "$ac_file" 24477 mv "$ac_tmp/config.h" "$ac_file" \ 24478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24479 fi 24480 else 24481 $as_echo "/* $configure_input */" \ 24482 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 24483 || as_fn_error $? "could not create -" "$LINENO" 5 24484 fi 24485 # Compute "$ac_file"'s index in $config_headers. 24486 _am_arg="$ac_file" 24487 _am_stamp_count=1 24488 for _am_header in $config_headers :; do 24489 case $_am_header in 24490 $_am_arg | $_am_arg:* ) 24491 break ;; 24492 * ) 24493 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24494 esac 24495 done 24496 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24497 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24498 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24499 X"$_am_arg" : 'X\(//\)$' \| \ 24500 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24501 $as_echo X"$_am_arg" | 24502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24503 s//\1/ 24504 q 24505 } 24506 /^X\(\/\/\)[^/].*/{ 24507 s//\1/ 24508 q 24509 } 24510 /^X\(\/\/\)$/{ 24511 s//\1/ 24512 q 24513 } 24514 /^X\(\/\).*/{ 24515 s//\1/ 24516 q 24517 } 24518 s/.*/./; q'`/stamp-h$_am_stamp_count 24519 ;; 24520 24521 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24522 $as_echo "$as_me: executing $ac_file commands" >&6;} 24523 ;; 24524 esac 24525 24526 24527 case $ac_file$ac_mode in 24528 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24529 # Older Autoconf quotes --file arguments for eval, but not when files 24530 # are listed without --file. Let's play safe and only enable the eval 24531 # if we detect the quoting. 24532 # TODO: see whether this extra hack can be removed once we start 24533 # requiring Autoconf 2.70 or later. 24534 case $CONFIG_FILES in #( 24535 *\'*) : 24536 eval set x "$CONFIG_FILES" ;; #( 24537 *) : 24538 set x $CONFIG_FILES ;; #( 24539 *) : 24540 ;; 24541 esac 24542 shift 24543 # Used to flag and report bootstrapping failures. 24544 am_rc=0 24545 for am_mf 24546 do 24547 # Strip MF so we end up with the name of the file. 24548 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 24549 # Check whether this is an Automake generated Makefile which includes 24550 # dependency-tracking related rules and includes. 24551 # Grep'ing the whole file directly is not great: AIX grep has a line 24552 # limit of 2048, but all sed's we know have understand at least 4000. 24553 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 24554 || continue 24555 am_dirpart=`$as_dirname -- "$am_mf" || 24556 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24557 X"$am_mf" : 'X\(//\)[^/]' \| \ 24558 X"$am_mf" : 'X\(//\)$' \| \ 24559 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24560 $as_echo X"$am_mf" | 24561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24562 s//\1/ 24563 q 24564 } 24565 /^X\(\/\/\)[^/].*/{ 24566 s//\1/ 24567 q 24568 } 24569 /^X\(\/\/\)$/{ 24570 s//\1/ 24571 q 24572 } 24573 /^X\(\/\).*/{ 24574 s//\1/ 24575 q 24576 } 24577 s/.*/./; q'` 24578 am_filepart=`$as_basename -- "$am_mf" || 24579 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 24580 X"$am_mf" : 'X\(//\)$' \| \ 24581 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24582 $as_echo X/"$am_mf" | 24583 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24584 s//\1/ 24585 q 24586 } 24587 /^X\/\(\/\/\)$/{ 24588 s//\1/ 24589 q 24590 } 24591 /^X\/\(\/\).*/{ 24592 s//\1/ 24593 q 24594 } 24595 s/.*/./; q'` 24596 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 24597 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24598 | $MAKE -f - am--depfiles" >&5 24599 (cd "$am_dirpart" \ 24600 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24601 | $MAKE -f - am--depfiles) >&5 2>&5 24602 ac_status=$? 24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24604 (exit $ac_status); } || am_rc=$? 24605 done 24606 if test $am_rc -ne 0; then 24607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24609 as_fn_error $? "Something went wrong bootstrapping makefile fragments 24610 for automatic dependency tracking. Try re-running configure with the 24611 '--disable-dependency-tracking' option to at least be able to build 24612 the package (albeit without support for automatic dependency tracking). 24613 See \`config.log' for more details" "$LINENO" 5; } 24614 fi 24615 { am_dirpart=; unset am_dirpart;} 24616 { am_filepart=; unset am_filepart;} 24617 { am_mf=; unset am_mf;} 24618 { am_rc=; unset am_rc;} 24619 rm -f conftest-deps.mk 24620 } 24621 ;; 24622 "libtool":C) 24623 24624 # See if we are running on zsh, and set the options that allow our 24625 # commands through without removal of \ escapes. 24626 if test -n "${ZSH_VERSION+set}"; then 24627 setopt NO_GLOB_SUBST 24628 fi 24629 24630 cfgfile=${ofile}T 24631 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24632 $RM "$cfgfile" 24633 24634 cat <<_LT_EOF >> "$cfgfile" 24635 #! $SHELL 24636 # Generated automatically by $as_me ($PACKAGE) $VERSION 24637 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24638 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 24639 24640 # Provide generalized library-building support services. 24641 # Written by Gordon Matzigkeit, 1996 24642 24643 # Copyright (C) 2014 Free Software Foundation, Inc. 24644 # This is free software; see the source for copying conditions. There is NO 24645 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24646 24647 # GNU Libtool is free software; you can redistribute it and/or modify 24648 # it under the terms of the GNU General Public License as published by 24649 # the Free Software Foundation; either version 2 of of the License, or 24650 # (at your option) any later version. 24651 # 24652 # As a special exception to the GNU General Public License, if you 24653 # distribute this file as part of a program or library that is built 24654 # using GNU Libtool, you may include this file under the same 24655 # distribution terms that you use for the rest of that program. 24656 # 24657 # GNU Libtool is distributed in the hope that it will be useful, but 24658 # WITHOUT ANY WARRANTY; without even the implied warranty of 24659 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24660 # GNU General Public License for more details. 24661 # 24662 # You should have received a copy of the GNU General Public License 24663 # along with this program. If not, see <http://www.gnu.org/licenses/>. 24664 24665 24666 # The names of the tagged configurations supported by this script. 24667 available_tags='' 24668 24669 # Configured defaults for sys_lib_dlsearch_path munging. 24670 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24671 24672 # ### BEGIN LIBTOOL CONFIG 24673 24674 # Whether or not to build static libraries. 24675 build_old_libs=$enable_static 24676 24677 # Which release of libtool.m4 was used? 24678 macro_version=$macro_version 24679 macro_revision=$macro_revision 24680 24681 # Whether or not to build shared libraries. 24682 build_libtool_libs=$enable_shared 24683 24684 # What type of objects to build. 24685 pic_mode=$pic_mode 24686 24687 # Whether or not to optimize for fast installation. 24688 fast_install=$enable_fast_install 24689 24690 # Shared archive member basename,for filename based shared library versioning on AIX. 24691 shared_archive_member_spec=$shared_archive_member_spec 24692 24693 # Shell to use when invoking shell scripts. 24694 SHELL=$lt_SHELL 24695 24696 # An echo program that protects backslashes. 24697 ECHO=$lt_ECHO 24698 24699 # The PATH separator for the build system. 24700 PATH_SEPARATOR=$lt_PATH_SEPARATOR 24701 24702 # The host system. 24703 host_alias=$host_alias 24704 host=$host 24705 host_os=$host_os 24706 24707 # The build system. 24708 build_alias=$build_alias 24709 build=$build 24710 build_os=$build_os 24711 24712 # A sed program that does not truncate output. 24713 SED=$lt_SED 24714 24715 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 24716 Xsed="\$SED -e 1s/^X//" 24717 24718 # A grep program that handles long lines. 24719 GREP=$lt_GREP 24720 24721 # An ERE matcher. 24722 EGREP=$lt_EGREP 24723 24724 # A literal string matcher. 24725 FGREP=$lt_FGREP 24726 24727 # A BSD- or MS-compatible name lister. 24728 NM=$lt_NM 24729 24730 # Whether we need soft or hard links. 24731 LN_S=$lt_LN_S 24732 24733 # What is the maximum length of a command? 24734 max_cmd_len=$max_cmd_len 24735 24736 # Object file suffix (normally "o"). 24737 objext=$ac_objext 24738 24739 # Executable file suffix (normally ""). 24740 exeext=$exeext 24741 24742 # whether the shell understands "unset". 24743 lt_unset=$lt_unset 24744 24745 # turn spaces into newlines. 24746 SP2NL=$lt_lt_SP2NL 24747 24748 # turn newlines into spaces. 24749 NL2SP=$lt_lt_NL2SP 24750 24751 # convert \$build file names to \$host format. 24752 to_host_file_cmd=$lt_cv_to_host_file_cmd 24753 24754 # convert \$build files to toolchain format. 24755 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24756 24757 # An object symbol dumper. 24758 OBJDUMP=$lt_OBJDUMP 24759 24760 # Method to check whether dependent libraries are shared objects. 24761 deplibs_check_method=$lt_deplibs_check_method 24762 24763 # Command to use when deplibs_check_method = "file_magic". 24764 file_magic_cmd=$lt_file_magic_cmd 24765 24766 # How to find potential files when deplibs_check_method = "file_magic". 24767 file_magic_glob=$lt_file_magic_glob 24768 24769 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24770 want_nocaseglob=$lt_want_nocaseglob 24771 24772 # DLL creation program. 24773 DLLTOOL=$lt_DLLTOOL 24774 24775 # Command to associate shared and link libraries. 24776 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24777 24778 # The archiver. 24779 AR=$lt_AR 24780 24781 # Flags to create an archive. 24782 AR_FLAGS=$lt_AR_FLAGS 24783 24784 # How to feed a file listing to the archiver. 24785 archiver_list_spec=$lt_archiver_list_spec 24786 24787 # A symbol stripping program. 24788 STRIP=$lt_STRIP 24789 24790 # Commands used to install an old-style archive. 24791 RANLIB=$lt_RANLIB 24792 old_postinstall_cmds=$lt_old_postinstall_cmds 24793 old_postuninstall_cmds=$lt_old_postuninstall_cmds 24794 24795 # Whether to use a lock for old archive extraction. 24796 lock_old_archive_extraction=$lock_old_archive_extraction 24797 24798 # A C compiler. 24799 LTCC=$lt_CC 24800 24801 # LTCC compiler flags. 24802 LTCFLAGS=$lt_CFLAGS 24803 24804 # Take the output of nm and produce a listing of raw symbols and C names. 24805 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24806 24807 # Transform the output of nm in a proper C declaration. 24808 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24809 24810 # Transform the output of nm into a list of symbols to manually relocate. 24811 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24812 24813 # Transform the output of nm in a C name address pair. 24814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24815 24816 # Transform the output of nm in a C name address pair when lib prefix is needed. 24817 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24818 24819 # The name lister interface. 24820 nm_interface=$lt_lt_cv_nm_interface 24821 24822 # Specify filename containing input files for \$NM. 24823 nm_file_list_spec=$lt_nm_file_list_spec 24824 24825 # The root where to search for dependent libraries,and where our libraries should be installed. 24826 lt_sysroot=$lt_sysroot 24827 24828 # Command to truncate a binary pipe. 24829 lt_truncate_bin=$lt_lt_cv_truncate_bin 24830 24831 # The name of the directory that contains temporary libtool files. 24832 objdir=$objdir 24833 24834 # Used to examine libraries when file_magic_cmd begins with "file". 24835 MAGIC_CMD=$MAGIC_CMD 24836 24837 # Must we lock files when doing compilation? 24838 need_locks=$lt_need_locks 24839 24840 # Manifest tool. 24841 MANIFEST_TOOL=$lt_MANIFEST_TOOL 24842 24843 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24844 DSYMUTIL=$lt_DSYMUTIL 24845 24846 # Tool to change global to local symbols on Mac OS X. 24847 NMEDIT=$lt_NMEDIT 24848 24849 # Tool to manipulate fat objects and archives on Mac OS X. 24850 LIPO=$lt_LIPO 24851 24852 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 24853 OTOOL=$lt_OTOOL 24854 24855 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24856 OTOOL64=$lt_OTOOL64 24857 24858 # Old archive suffix (normally "a"). 24859 libext=$libext 24860 24861 # Shared library suffix (normally ".so"). 24862 shrext_cmds=$lt_shrext_cmds 24863 24864 # The commands to extract the exported symbol list from a shared archive. 24865 extract_expsyms_cmds=$lt_extract_expsyms_cmds 24866 24867 # Variables whose values should be saved in libtool wrapper scripts and 24868 # restored at link time. 24869 variables_saved_for_relink=$lt_variables_saved_for_relink 24870 24871 # Do we need the "lib" prefix for modules? 24872 need_lib_prefix=$need_lib_prefix 24873 24874 # Do we need a version for libraries? 24875 need_version=$need_version 24876 24877 # Library versioning type. 24878 version_type=$version_type 24879 24880 # Shared library runtime path variable. 24881 runpath_var=$runpath_var 24882 24883 # Shared library path variable. 24884 shlibpath_var=$shlibpath_var 24885 24886 # Is shlibpath searched before the hard-coded library search path? 24887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24888 24889 # Format of library name prefix. 24890 libname_spec=$lt_libname_spec 24891 24892 # List of archive names. First name is the real one, the rest are links. 24893 # The last name is the one that the linker finds with -lNAME 24894 library_names_spec=$lt_library_names_spec 24895 24896 # The coded name of the library, if different from the real name. 24897 soname_spec=$lt_soname_spec 24898 24899 # Permission mode override for installation of shared libraries. 24900 install_override_mode=$lt_install_override_mode 24901 24902 # Command to use after installation of a shared archive. 24903 postinstall_cmds=$lt_postinstall_cmds 24904 24905 # Command to use after uninstallation of a shared archive. 24906 postuninstall_cmds=$lt_postuninstall_cmds 24907 24908 # Commands used to finish a libtool library installation in a directory. 24909 finish_cmds=$lt_finish_cmds 24910 24911 # As "finish_cmds", except a single script fragment to be evaled but 24912 # not shown. 24913 finish_eval=$lt_finish_eval 24914 24915 # Whether we should hardcode library paths into libraries. 24916 hardcode_into_libs=$hardcode_into_libs 24917 24918 # Compile-time system search path for libraries. 24919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24920 24921 # Detected run-time system search path for libraries. 24922 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24923 24924 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24925 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24926 24927 # Whether dlopen is supported. 24928 dlopen_support=$enable_dlopen 24929 24930 # Whether dlopen of programs is supported. 24931 dlopen_self=$enable_dlopen_self 24932 24933 # Whether dlopen of statically linked programs is supported. 24934 dlopen_self_static=$enable_dlopen_self_static 24935 24936 # Commands to strip libraries. 24937 old_striplib=$lt_old_striplib 24938 striplib=$lt_striplib 24939 24940 24941 # The linker used to build libraries. 24942 LD=$lt_LD 24943 24944 # How to create reloadable object files. 24945 reload_flag=$lt_reload_flag 24946 reload_cmds=$lt_reload_cmds 24947 24948 # Commands used to build an old-style archive. 24949 old_archive_cmds=$lt_old_archive_cmds 24950 24951 # A language specific compiler. 24952 CC=$lt_compiler 24953 24954 # Is the compiler the GNU compiler? 24955 with_gcc=$GCC 24956 24957 # Compiler flag to turn off builtin functions. 24958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24959 24960 # Additional compiler flags for building library objects. 24961 pic_flag=$lt_lt_prog_compiler_pic 24962 24963 # How to pass a linker flag through the compiler. 24964 wl=$lt_lt_prog_compiler_wl 24965 24966 # Compiler flag to prevent dynamic linking. 24967 link_static_flag=$lt_lt_prog_compiler_static 24968 24969 # Does compiler simultaneously support -c and -o options? 24970 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24971 24972 # Whether or not to add -lc for building shared libraries. 24973 build_libtool_need_lc=$archive_cmds_need_lc 24974 24975 # Whether or not to disallow shared libs when runtime libs are static. 24976 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24977 24978 # Compiler flag to allow reflexive dlopens. 24979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24980 24981 # Compiler flag to generate shared objects directly from archives. 24982 whole_archive_flag_spec=$lt_whole_archive_flag_spec 24983 24984 # Whether the compiler copes with passing no objects directly. 24985 compiler_needs_object=$lt_compiler_needs_object 24986 24987 # Create an old-style archive from a shared archive. 24988 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24989 24990 # Create a temporary old-style archive to link instead of a shared archive. 24991 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24992 24993 # Commands used to build a shared archive. 24994 archive_cmds=$lt_archive_cmds 24995 archive_expsym_cmds=$lt_archive_expsym_cmds 24996 24997 # Commands used to build a loadable module if different from building 24998 # a shared archive. 24999 module_cmds=$lt_module_cmds 25000 module_expsym_cmds=$lt_module_expsym_cmds 25001 25002 # Whether we are building with GNU ld or not. 25003 with_gnu_ld=$lt_with_gnu_ld 25004 25005 # Flag that allows shared libraries with undefined symbols to be built. 25006 allow_undefined_flag=$lt_allow_undefined_flag 25007 25008 # Flag that enforces no undefined symbols. 25009 no_undefined_flag=$lt_no_undefined_flag 25010 25011 # Flag to hardcode \$libdir into a binary during linking. 25012 # This must work even if \$libdir does not exist 25013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 25014 25015 # Whether we need a single "-rpath" flag with a separated argument. 25016 hardcode_libdir_separator=$lt_hardcode_libdir_separator 25017 25018 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25019 # DIR into the resulting binary. 25020 hardcode_direct=$hardcode_direct 25021 25022 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25023 # DIR into the resulting binary and the resulting library dependency is 25024 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 25025 # library is relocated. 25026 hardcode_direct_absolute=$hardcode_direct_absolute 25027 25028 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25029 # into the resulting binary. 25030 hardcode_minus_L=$hardcode_minus_L 25031 25032 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25033 # into the resulting binary. 25034 hardcode_shlibpath_var=$hardcode_shlibpath_var 25035 25036 # Set to "yes" if building a shared library automatically hardcodes DIR 25037 # into the library and all subsequent libraries and executables linked 25038 # against it. 25039 hardcode_automatic=$hardcode_automatic 25040 25041 # Set to yes if linker adds runtime paths of dependent libraries 25042 # to runtime path list. 25043 inherit_rpath=$inherit_rpath 25044 25045 # Whether libtool must link a program against all its dependency libraries. 25046 link_all_deplibs=$link_all_deplibs 25047 25048 # Set to "yes" if exported symbols are required. 25049 always_export_symbols=$always_export_symbols 25050 25051 # The commands to list exported symbols. 25052 export_symbols_cmds=$lt_export_symbols_cmds 25053 25054 # Symbols that should not be listed in the preloaded symbols. 25055 exclude_expsyms=$lt_exclude_expsyms 25056 25057 # Symbols that must always be exported. 25058 include_expsyms=$lt_include_expsyms 25059 25060 # Commands necessary for linking programs (against libraries) with templates. 25061 prelink_cmds=$lt_prelink_cmds 25062 25063 # Commands necessary for finishing linking programs. 25064 postlink_cmds=$lt_postlink_cmds 25065 25066 # Specify filename containing input files. 25067 file_list_spec=$lt_file_list_spec 25068 25069 # How to hardcode a shared library path into an executable. 25070 hardcode_action=$hardcode_action 25071 25072 # ### END LIBTOOL CONFIG 25073 25074 _LT_EOF 25075 25076 cat <<'_LT_EOF' >> "$cfgfile" 25077 25078 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 25079 25080 # func_munge_path_list VARIABLE PATH 25081 # ----------------------------------- 25082 # VARIABLE is name of variable containing _space_ separated list of 25083 # directories to be munged by the contents of PATH, which is string 25084 # having a format: 25085 # "DIR[:DIR]:" 25086 # string "DIR[ DIR]" will be prepended to VARIABLE 25087 # ":DIR[:DIR]" 25088 # string "DIR[ DIR]" will be appended to VARIABLE 25089 # "DIRP[:DIRP]::[DIRA:]DIRA" 25090 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 25091 # "DIRA[ DIRA]" will be appended to VARIABLE 25092 # "DIR[:DIR]" 25093 # VARIABLE will be replaced by "DIR[ DIR]" 25094 func_munge_path_list () 25095 { 25096 case x$2 in 25097 x) 25098 ;; 25099 *:) 25100 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 25101 ;; 25102 x:*) 25103 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 25104 ;; 25105 *::*) 25106 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 25107 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 25108 ;; 25109 *) 25110 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 25111 ;; 25112 esac 25113 } 25114 25115 25116 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 25117 func_cc_basename () 25118 { 25119 for cc_temp in $*""; do 25120 case $cc_temp in 25121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 25122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 25123 \-*) ;; 25124 *) break;; 25125 esac 25126 done 25127 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 25128 } 25129 25130 25131 # ### END FUNCTIONS SHARED WITH CONFIGURE 25132 25133 _LT_EOF 25134 25135 case $host_os in 25136 aix3*) 25137 cat <<\_LT_EOF >> "$cfgfile" 25138 # AIX sometimes has problems with the GCC collect2 program. For some 25139 # reason, if we set the COLLECT_NAMES environment variable, the problems 25140 # vanish in a puff of smoke. 25141 if test set != "${COLLECT_NAMES+set}"; then 25142 COLLECT_NAMES= 25143 export COLLECT_NAMES 25144 fi 25145 _LT_EOF 25146 ;; 25147 esac 25148 25149 25150 ltmain=$ac_aux_dir/ltmain.sh 25151 25152 25153 # We use sed instead of cat because bash on DJGPP gets confused if 25154 # if finds mixed CR/LF and LF-only lines. Since sed operates in 25155 # text mode, it properly converts lines to CR/LF. This bash problem 25156 # is reportedly fixed, but why not run on old versions too? 25157 sed '$q' "$ltmain" >> "$cfgfile" \ 25158 || (rm -f "$cfgfile"; exit 1) 25159 25160 mv -f "$cfgfile" "$ofile" || 25161 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 25162 chmod +x "$ofile" 25163 25164 ;; 25165 25166 esac 25167 done # for ac_tag 25168 25169 25170 as_fn_exit 0 25171 _ACEOF 25172 ac_clean_files=$ac_clean_files_save 25173 25174 test $ac_write_fail = 0 || 25175 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25176 25177 25178 # configure is writing to config.log, and then calls config.status. 25179 # config.status does its own redirection, appending to config.log. 25180 # Unfortunately, on DOS this fails, as config.log is still kept open 25181 # by configure, so config.status won't be able to write to it; its 25182 # output is simply discarded. So we exec the FD to /dev/null, 25183 # effectively closing config.log, so it can be properly (re)opened and 25184 # appended to by config.status. When coming back to configure, we 25185 # need to make the FD available again. 25186 if test "$no_create" != yes; then 25187 ac_cs_success=: 25188 ac_config_status_args= 25189 test "$silent" = yes && 25190 ac_config_status_args="$ac_config_status_args --quiet" 25191 exec 5>/dev/null 25192 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25193 exec 5>>config.log 25194 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25195 # would make configure fail if this is the last instruction. 25196 $ac_cs_success || as_fn_exit 1 25197 fi 25198 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25200 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25201 fi 25202 25203 25204 echo "" 25205 echo "" 25206 cat $srcdir/README 25207 25208 accel_msg="" 25209 if test "x$SNA" != "xno"; then 25210 if test "$accel" = "none"; then 25211 accel_msg="$accel_msg *none" 25212 else 25213 accel_msg="$accel_msg none" 25214 fi 25215 if test "$accel" = "sna"; then 25216 accel_msg="$accel_msg *sna" 25217 else 25218 accel_msg="$accel_msg sna" 25219 fi 25220 fi 25221 if test "x$UXA" != "xno"; then 25222 if test "x$SNA" = "xno"; then 25223 if test "$accel" = "none"; then 25224 accel_msg="$accel_msg *none" 25225 else 25226 accel_msg="$accel_msg none" 25227 fi 25228 fi 25229 if test "$accel" = "uxa"; then 25230 accel_msg="$accel_msg *uxa" 25231 else 25232 accel_msg="$accel_msg uxa" 25233 fi 25234 fi 25235 25236 if test "x$dri_msg" = "x"; then 25237 dri_msg=" none" 25238 fi 25239 25240 if test "x$tools_msg" = "x"; then 25241 tools_msg=" none" 25242 fi 25243 25244 echo "" 25245 echo "xf86-video-intel 2.99.917 will be compiled with:" 25246 echo " Xorg Video ABI version: $ABI_VERSION (xorg-server-$XSERVER_VERSION)" 25247 echo " pixman version: pixman-1-$PIXMAN_VERSION" 25248 echo " Acceleration backends:$accel_msg" 25249 echo " Additional debugging support?$debug_msg" 25250 echo " Support for Kernel Mode Setting? $KMS" 25251 echo " Support for legacy User Mode Setting (for i810)? $UMS" 25252 echo " Support for Direct Rendering Infrastructure:$dri_msg" 25253 echo " Support for Xv motion compensation (XvMC and libXvMC):$xvmc_msg" 25254 echo " Support for display hotplug notifications (udev):$udev_msg" 25255 echo " Build additional tools and utilities?$tools_msg" 25256 if test -n "$xp_msg"; then 25257 echo " Experimental support:$xp_msg" 25258 fi 25259 echo "" 25260