1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for xf86-video-rendition 4.2.6. 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-rendition' 593 PACKAGE_TARNAME='xf86-video-rendition' 594 PACKAGE_VERSION='4.2.6' 595 PACKAGE_STRING='xf86-video-rendition 4.2.6' 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_subst_vars='am__EXEEXT_FALSE 637 am__EXEEXT_TRUE 638 LTLIBOBJS 639 LIBOBJS 640 DRIVER_NAME 641 moduledir 642 XSERVER_LIBPCIACCESS_FALSE 643 XSERVER_LIBPCIACCESS_TRUE 644 PCIACCESS_LIBS 645 PCIACCESS_CFLAGS 646 XAA_FALSE 647 XAA_TRUE 648 XORG_LIBS 649 XORG_CFLAGS 650 LT_SYS_LIBRARY_PATH 651 OTOOL64 652 OTOOL 653 LIPO 654 NMEDIT 655 DSYMUTIL 656 MANIFEST_TOOL 657 RANLIB 658 ac_ct_AR 659 AR 660 DLLTOOL 661 OBJDUMP 662 LN_S 663 NM 664 ac_ct_DUMPBIN 665 DUMPBIN 666 LD 667 FGREP 668 LIBTOOL 669 MAN_SUBSTS 670 XORG_MAN_PAGE 671 ADMIN_MAN_DIR 672 DRIVER_MAN_DIR 673 MISC_MAN_DIR 674 FILE_MAN_DIR 675 LIB_MAN_DIR 676 APP_MAN_DIR 677 ADMIN_MAN_SUFFIX 678 DRIVER_MAN_SUFFIX 679 MISC_MAN_SUFFIX 680 FILE_MAN_SUFFIX 681 LIB_MAN_SUFFIX 682 APP_MAN_SUFFIX 683 SED 684 host_os 685 host_vendor 686 host_cpu 687 host 688 build_os 689 build_vendor 690 build_cpu 691 build 692 INSTALL_CMD 693 PKG_CONFIG_LIBDIR 694 PKG_CONFIG_PATH 695 PKG_CONFIG 696 CHANGELOG_CMD 697 STRICT_CFLAGS 698 CWARNFLAGS 699 BASE_CFLAGS 700 EGREP 701 GREP 702 CPP 703 am__fastdepCC_FALSE 704 am__fastdepCC_TRUE 705 CCDEPMODE 706 am__nodep 707 AMDEPBACKSLASH 708 AMDEP_FALSE 709 AMDEP_TRUE 710 am__quote 711 am__include 712 DEPDIR 713 OBJEXT 714 EXEEXT 715 ac_ct_CC 716 CPPFLAGS 717 LDFLAGS 718 CFLAGS 719 CC 720 MAINT 721 MAINTAINER_MODE_FALSE 722 MAINTAINER_MODE_TRUE 723 AM_BACKSLASH 724 AM_DEFAULT_VERBOSITY 725 AM_DEFAULT_V 726 AM_V 727 am__untar 728 am__tar 729 AMTAR 730 am__leading_dot 731 SET_MAKE 732 AWK 733 mkdir_p 734 MKDIR_P 735 INSTALL_STRIP_PROGRAM 736 STRIP 737 install_sh 738 MAKEINFO 739 AUTOHEADER 740 AUTOMAKE 741 AUTOCONF 742 ACLOCAL 743 VERSION 744 PACKAGE 745 CYGPATH_W 746 am__isrc 747 INSTALL_DATA 748 INSTALL_SCRIPT 749 INSTALL_PROGRAM 750 target_alias 751 host_alias 752 build_alias 753 LIBS 754 ECHO_T 755 ECHO_N 756 ECHO_C 757 DEFS 758 mandir 759 localedir 760 libdir 761 psdir 762 pdfdir 763 dvidir 764 htmldir 765 infodir 766 docdir 767 oldincludedir 768 includedir 769 localstatedir 770 sharedstatedir 771 sysconfdir 772 datadir 773 datarootdir 774 libexecdir 775 sbindir 776 bindir 777 program_transform_name 778 prefix 779 exec_prefix 780 PACKAGE_URL 781 PACKAGE_BUGREPORT 782 PACKAGE_STRING 783 PACKAGE_VERSION 784 PACKAGE_TARNAME 785 PACKAGE_NAME 786 PATH_SEPARATOR 787 SHELL' 788 ac_subst_files='' 789 ac_user_opts=' 790 enable_option_checking 791 enable_silent_rules 792 enable_maintainer_mode 793 enable_dependency_tracking 794 enable_selective_werror 795 enable_strict_compilation 796 enable_static 797 enable_shared 798 with_pic 799 enable_fast_install 800 with_aix_soname 801 with_gnu_ld 802 with_sysroot 803 enable_libtool_lock 804 with_xorg_module_dir 805 enable_xaa 806 ' 807 ac_precious_vars='build_alias 808 host_alias 809 target_alias 810 CC 811 CFLAGS 812 LDFLAGS 813 LIBS 814 CPPFLAGS 815 CPP 816 PKG_CONFIG 817 PKG_CONFIG_PATH 818 PKG_CONFIG_LIBDIR 819 LT_SYS_LIBRARY_PATH 820 XORG_CFLAGS 821 XORG_LIBS 822 PCIACCESS_CFLAGS 823 PCIACCESS_LIBS' 824 825 826 # Initialize some variables set by options. 827 ac_init_help= 828 ac_init_version=false 829 ac_unrecognized_opts= 830 ac_unrecognized_sep= 831 # The variables have the same names as the options, with 832 # dashes changed to underlines. 833 cache_file=/dev/null 834 exec_prefix=NONE 835 no_create= 836 no_recursion= 837 prefix=NONE 838 program_prefix=NONE 839 program_suffix=NONE 840 program_transform_name=s,x,x, 841 silent= 842 site= 843 srcdir= 844 verbose= 845 x_includes=NONE 846 x_libraries=NONE 847 848 # Installation directory options. 849 # These are left unexpanded so users can "make install exec_prefix=/foo" 850 # and all the variables that are supposed to be based on exec_prefix 851 # by default will actually change. 852 # Use braces instead of parens because sh, perl, etc. also accept them. 853 # (The list follows the same order as the GNU Coding Standards.) 854 bindir='${exec_prefix}/bin' 855 sbindir='${exec_prefix}/sbin' 856 libexecdir='${exec_prefix}/libexec' 857 datarootdir='${prefix}/share' 858 datadir='${datarootdir}' 859 sysconfdir='${prefix}/etc' 860 sharedstatedir='${prefix}/com' 861 localstatedir='${prefix}/var' 862 includedir='${prefix}/include' 863 oldincludedir='/usr/include' 864 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 865 infodir='${datarootdir}/info' 866 htmldir='${docdir}' 867 dvidir='${docdir}' 868 pdfdir='${docdir}' 869 psdir='${docdir}' 870 libdir='${exec_prefix}/lib' 871 localedir='${datarootdir}/locale' 872 mandir='${datarootdir}/man' 873 874 ac_prev= 875 ac_dashdash= 876 for ac_option 877 do 878 # If the previous option needs an argument, assign it. 879 if test -n "$ac_prev"; then 880 eval $ac_prev=\$ac_option 881 ac_prev= 882 continue 883 fi 884 885 case $ac_option in 886 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 887 *=) ac_optarg= ;; 888 *) ac_optarg=yes ;; 889 esac 890 891 # Accept the important Cygnus configure options, so we can diagnose typos. 892 893 case $ac_dashdash$ac_option in 894 --) 895 ac_dashdash=yes ;; 896 897 -bindir | --bindir | --bindi | --bind | --bin | --bi) 898 ac_prev=bindir ;; 899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 900 bindir=$ac_optarg ;; 901 902 -build | --build | --buil | --bui | --bu) 903 ac_prev=build_alias ;; 904 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 905 build_alias=$ac_optarg ;; 906 907 -cache-file | --cache-file | --cache-fil | --cache-fi \ 908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 909 ac_prev=cache_file ;; 910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 912 cache_file=$ac_optarg ;; 913 914 --config-cache | -C) 915 cache_file=config.cache ;; 916 917 -datadir | --datadir | --datadi | --datad) 918 ac_prev=datadir ;; 919 -datadir=* | --datadir=* | --datadi=* | --datad=*) 920 datadir=$ac_optarg ;; 921 922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 923 | --dataroo | --dataro | --datar) 924 ac_prev=datarootdir ;; 925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 927 datarootdir=$ac_optarg ;; 928 929 -disable-* | --disable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: $ac_useropt" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938 "enable_$ac_useropt" 939 "*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=no ;; 944 945 -docdir | --docdir | --docdi | --doc | --do) 946 ac_prev=docdir ;; 947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 948 docdir=$ac_optarg ;; 949 950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 951 ac_prev=dvidir ;; 952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 953 dvidir=$ac_optarg ;; 954 955 -enable-* | --enable-*) 956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 as_fn_error $? "invalid feature name: $ac_useropt" 960 ac_useropt_orig=$ac_useropt 961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 962 case $ac_user_opts in 963 *" 964 "enable_$ac_useropt" 965 "*) ;; 966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 967 ac_unrecognized_sep=', ';; 968 esac 969 eval enable_$ac_useropt=\$ac_optarg ;; 970 971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 973 | --exec | --exe | --ex) 974 ac_prev=exec_prefix ;; 975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 977 | --exec=* | --exe=* | --ex=*) 978 exec_prefix=$ac_optarg ;; 979 980 -gas | --gas | --ga | --g) 981 # Obsolete; use --with-gas. 982 with_gas=yes ;; 983 984 -help | --help | --hel | --he | -h) 985 ac_init_help=long ;; 986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 987 ac_init_help=recursive ;; 988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 989 ac_init_help=short ;; 990 991 -host | --host | --hos | --ho) 992 ac_prev=host_alias ;; 993 -host=* | --host=* | --hos=* | --ho=*) 994 host_alias=$ac_optarg ;; 995 996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 997 ac_prev=htmldir ;; 998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 999 | --ht=*) 1000 htmldir=$ac_optarg ;; 1001 1002 -includedir | --includedir | --includedi | --included | --include \ 1003 | --includ | --inclu | --incl | --inc) 1004 ac_prev=includedir ;; 1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1006 | --includ=* | --inclu=* | --incl=* | --inc=*) 1007 includedir=$ac_optarg ;; 1008 1009 -infodir | --infodir | --infodi | --infod | --info | --inf) 1010 ac_prev=infodir ;; 1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1012 infodir=$ac_optarg ;; 1013 1014 -libdir | --libdir | --libdi | --libd) 1015 ac_prev=libdir ;; 1016 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1017 libdir=$ac_optarg ;; 1018 1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1020 | --libexe | --libex | --libe) 1021 ac_prev=libexecdir ;; 1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1023 | --libexe=* | --libex=* | --libe=*) 1024 libexecdir=$ac_optarg ;; 1025 1026 -localedir | --localedir | --localedi | --localed | --locale) 1027 ac_prev=localedir ;; 1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1029 localedir=$ac_optarg ;; 1030 1031 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1032 | --localstate | --localstat | --localsta | --localst | --locals) 1033 ac_prev=localstatedir ;; 1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1036 localstatedir=$ac_optarg ;; 1037 1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1039 ac_prev=mandir ;; 1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1041 mandir=$ac_optarg ;; 1042 1043 -nfp | --nfp | --nf) 1044 # Obsolete; use --without-fp. 1045 with_fp=no ;; 1046 1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1048 | --no-cr | --no-c | -n) 1049 no_create=yes ;; 1050 1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1053 no_recursion=yes ;; 1054 1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1057 | --oldin | --oldi | --old | --ol | --o) 1058 ac_prev=oldincludedir ;; 1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1062 oldincludedir=$ac_optarg ;; 1063 1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1065 ac_prev=prefix ;; 1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1067 prefix=$ac_optarg ;; 1068 1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1070 | --program-pre | --program-pr | --program-p) 1071 ac_prev=program_prefix ;; 1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1074 program_prefix=$ac_optarg ;; 1075 1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1077 | --program-suf | --program-su | --program-s) 1078 ac_prev=program_suffix ;; 1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1081 program_suffix=$ac_optarg ;; 1082 1083 -program-transform-name | --program-transform-name \ 1084 | --program-transform-nam | --program-transform-na \ 1085 | --program-transform-n | --program-transform- \ 1086 | --program-transform | --program-transfor \ 1087 | --program-transfo | --program-transf \ 1088 | --program-trans | --program-tran \ 1089 | --progr-tra | --program-tr | --program-t) 1090 ac_prev=program_transform_name ;; 1091 -program-transform-name=* | --program-transform-name=* \ 1092 | --program-transform-nam=* | --program-transform-na=* \ 1093 | --program-transform-n=* | --program-transform-=* \ 1094 | --program-transform=* | --program-transfor=* \ 1095 | --program-transfo=* | --program-transf=* \ 1096 | --program-trans=* | --program-tran=* \ 1097 | --progr-tra=* | --program-tr=* | --program-t=*) 1098 program_transform_name=$ac_optarg ;; 1099 1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1101 ac_prev=pdfdir ;; 1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1103 pdfdir=$ac_optarg ;; 1104 1105 -psdir | --psdir | --psdi | --psd | --ps) 1106 ac_prev=psdir ;; 1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1108 psdir=$ac_optarg ;; 1109 1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1111 | -silent | --silent | --silen | --sile | --sil) 1112 silent=yes ;; 1113 1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1115 ac_prev=sbindir ;; 1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1117 | --sbi=* | --sb=*) 1118 sbindir=$ac_optarg ;; 1119 1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1122 | --sharedst | --shareds | --shared | --share | --shar \ 1123 | --sha | --sh) 1124 ac_prev=sharedstatedir ;; 1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1128 | --sha=* | --sh=*) 1129 sharedstatedir=$ac_optarg ;; 1130 1131 -site | --site | --sit) 1132 ac_prev=site ;; 1133 -site=* | --site=* | --sit=*) 1134 site=$ac_optarg ;; 1135 1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1137 ac_prev=srcdir ;; 1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1139 srcdir=$ac_optarg ;; 1140 1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1142 | --syscon | --sysco | --sysc | --sys | --sy) 1143 ac_prev=sysconfdir ;; 1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1146 sysconfdir=$ac_optarg ;; 1147 1148 -target | --target | --targe | --targ | --tar | --ta | --t) 1149 ac_prev=target_alias ;; 1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1151 target_alias=$ac_optarg ;; 1152 1153 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1154 verbose=yes ;; 1155 1156 -version | --version | --versio | --versi | --vers | -V) 1157 ac_init_version=: ;; 1158 1159 -with-* | --with-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: $ac_useropt" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168 "with_$ac_useropt" 1169 "*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=\$ac_optarg ;; 1174 1175 -without-* | --without-*) 1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1177 # Reject names that are not valid shell variable names. 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1179 as_fn_error $? "invalid package name: $ac_useropt" 1180 ac_useropt_orig=$ac_useropt 1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 case $ac_user_opts in 1183 *" 1184 "with_$ac_useropt" 1185 "*) ;; 1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1187 ac_unrecognized_sep=', ';; 1188 esac 1189 eval with_$ac_useropt=no ;; 1190 1191 --x) 1192 # Obsolete; use --with-x. 1193 with_x=yes ;; 1194 1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1196 | --x-incl | --x-inc | --x-in | --x-i) 1197 ac_prev=x_includes ;; 1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1200 x_includes=$ac_optarg ;; 1201 1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1204 ac_prev=x_libraries ;; 1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1207 x_libraries=$ac_optarg ;; 1208 1209 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1210 Try \`$0 --help' for more information" 1211 ;; 1212 1213 *=*) 1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1215 # Reject names that are not valid shell variable names. 1216 case $ac_envvar in #( 1217 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1218 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1219 esac 1220 eval $ac_envvar=\$ac_optarg 1221 export $ac_envvar ;; 1222 1223 *) 1224 # FIXME: should be removed in autoconf 3.0. 1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1228 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1229 ;; 1230 1231 esac 1232 done 1233 1234 if test -n "$ac_prev"; then 1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1236 as_fn_error $? "missing argument to $ac_option" 1237 fi 1238 1239 if test -n "$ac_unrecognized_opts"; then 1240 case $enable_option_checking in 1241 no) ;; 1242 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1244 esac 1245 fi 1246 1247 # Check all directory arguments for consistency. 1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1249 datadir sysconfdir sharedstatedir localstatedir includedir \ 1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1251 libdir localedir mandir 1252 do 1253 eval ac_val=\$$ac_var 1254 # Remove trailing slashes. 1255 case $ac_val in 1256 */ ) 1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1258 eval $ac_var=\$ac_val;; 1259 esac 1260 # Be sure to have absolute directory names. 1261 case $ac_val in 1262 [\\/$]* | ?:[\\/]* ) continue;; 1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1264 esac 1265 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1266 done 1267 1268 # There might be people who depend on the old broken behavior: `$host' 1269 # used to hold the argument of --host etc. 1270 # FIXME: To remove some day. 1271 build=$build_alias 1272 host=$host_alias 1273 target=$target_alias 1274 1275 # FIXME: To remove some day. 1276 if test "x$host_alias" != x; then 1277 if test "x$build_alias" = x; then 1278 cross_compiling=maybe 1279 elif test "x$build_alias" != "x$host_alias"; then 1280 cross_compiling=yes 1281 fi 1282 fi 1283 1284 ac_tool_prefix= 1285 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1286 1287 test "$silent" = yes && exec 6>/dev/null 1288 1289 1290 ac_pwd=`pwd` && test -n "$ac_pwd" && 1291 ac_ls_di=`ls -di .` && 1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1293 as_fn_error $? "working directory cannot be determined" 1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1295 as_fn_error $? "pwd does not report name of working directory" 1296 1297 1298 # Find the source files, if location was not specified. 1299 if test -z "$srcdir"; then 1300 ac_srcdir_defaulted=yes 1301 # Try the directory containing this script, then the parent directory. 1302 ac_confdir=`$as_dirname -- "$as_myself" || 1303 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1304 X"$as_myself" : 'X\(//\)[^/]' \| \ 1305 X"$as_myself" : 'X\(//\)$' \| \ 1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1307 $as_echo X"$as_myself" | 1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\/\)[^/].*/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\/\)$/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\).*/{ 1321 s//\1/ 1322 q 1323 } 1324 s/.*/./; q'` 1325 srcdir=$ac_confdir 1326 if test ! -r "$srcdir/$ac_unique_file"; then 1327 srcdir=.. 1328 fi 1329 else 1330 ac_srcdir_defaulted=no 1331 fi 1332 if test ! -r "$srcdir/$ac_unique_file"; then 1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1334 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1335 fi 1336 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1337 ac_abs_confdir=`( 1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1339 pwd)` 1340 # When building in place, set srcdir=. 1341 if test "$ac_abs_confdir" = "$ac_pwd"; then 1342 srcdir=. 1343 fi 1344 # Remove unnecessary trailing slashes from srcdir. 1345 # Double slashes in file names in object file debugging info 1346 # mess up M-x gdb in Emacs. 1347 case $srcdir in 1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1349 esac 1350 for ac_var in $ac_precious_vars; do 1351 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1352 eval ac_env_${ac_var}_value=\$${ac_var} 1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1354 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1355 done 1356 1357 # 1358 # Report the --help message. 1359 # 1360 if test "$ac_init_help" = "long"; then 1361 # Omit some internal or obsolete options to make the list less imposing. 1362 # This message is too long to be a string in the A/UX 3.1 sh. 1363 cat <<_ACEOF 1364 \`configure' configures xf86-video-rendition 4.2.6 to adapt to many kinds of systems. 1365 1366 Usage: $0 [OPTION]... [VAR=VALUE]... 1367 1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1369 VAR=VALUE. See below for descriptions of some of the useful variables. 1370 1371 Defaults for the options are specified in brackets. 1372 1373 Configuration: 1374 -h, --help display this help and exit 1375 --help=short display options specific to this package 1376 --help=recursive display the short help of all the included packages 1377 -V, --version display version information and exit 1378 -q, --quiet, --silent do not print \`checking ...' messages 1379 --cache-file=FILE cache test results in FILE [disabled] 1380 -C, --config-cache alias for \`--cache-file=config.cache' 1381 -n, --no-create do not create output files 1382 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1383 1384 Installation directories: 1385 --prefix=PREFIX install architecture-independent files in PREFIX 1386 [$ac_default_prefix] 1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1388 [PREFIX] 1389 1390 By default, \`make install' will install all the files in 1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1393 for instance \`--prefix=\$HOME'. 1394 1395 For better control, use the options below. 1396 1397 Fine tuning of the installation directories: 1398 --bindir=DIR user executables [EPREFIX/bin] 1399 --sbindir=DIR system admin executables [EPREFIX/sbin] 1400 --libexecdir=DIR program executables [EPREFIX/libexec] 1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1404 --libdir=DIR object code libraries [EPREFIX/lib] 1405 --includedir=DIR C header files [PREFIX/include] 1406 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1409 --infodir=DIR info documentation [DATAROOTDIR/info] 1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1411 --mandir=DIR man documentation [DATAROOTDIR/man] 1412 --docdir=DIR documentation root 1413 [DATAROOTDIR/doc/xf86-video-rendition] 1414 --htmldir=DIR html documentation [DOCDIR] 1415 --dvidir=DIR dvi documentation [DOCDIR] 1416 --pdfdir=DIR pdf documentation [DOCDIR] 1417 --psdir=DIR ps documentation [DOCDIR] 1418 _ACEOF 1419 1420 cat <<\_ACEOF 1421 1422 Program names: 1423 --program-prefix=PREFIX prepend PREFIX to installed program names 1424 --program-suffix=SUFFIX append SUFFIX to installed program names 1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1426 1427 System types: 1428 --build=BUILD configure for building on BUILD [guessed] 1429 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1430 _ACEOF 1431 fi 1432 1433 if test -n "$ac_init_help"; then 1434 case $ac_init_help in 1435 short | recursive ) echo "Configuration of xf86-video-rendition 4.2.6:";; 1436 esac 1437 cat <<\_ACEOF 1438 1439 Optional Features: 1440 --disable-option-checking ignore unrecognized --enable/--with options 1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1443 --enable-silent-rules less verbose build output (undo: "make V=1") 1444 --disable-silent-rules verbose build output (undo: "make V=0") 1445 --enable-maintainer-mode 1446 enable make rules and dependencies not useful (and 1447 sometimes confusing) to the casual installer 1448 --enable-dependency-tracking 1449 do not reject slow dependency extractors 1450 --disable-dependency-tracking 1451 speeds up one-time build 1452 --disable-selective-werror 1453 Turn off selective compiler errors. (default: 1454 enabled) 1455 --enable-strict-compilation 1456 Enable all warnings from compiler and make them 1457 errors (default: disabled) 1458 --enable-static[=PKGS] build static libraries [default=no] 1459 --enable-shared[=PKGS] build shared libraries [default=yes] 1460 --enable-fast-install[=PKGS] 1461 optimize for fast installation [default=yes] 1462 --disable-libtool-lock avoid locking (might break parallel builds) 1463 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1464 [default=auto] 1465 1466 Optional Packages: 1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1469 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1470 both] 1471 --with-aix-soname=aix|svr4|both 1472 shared library versioning (aka "SONAME") variant to 1473 provide on AIX, [default=aix]. 1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1475 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1476 compiler's sysroot if not specified). 1477 --with-xorg-module-dir=DIR 1478 Default xorg module directory 1479 [[default=$libdir/xorg/modules]] 1480 1481 Some influential environment variables: 1482 CC C compiler command 1483 CFLAGS C compiler flags 1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1485 nonstandard directory <lib dir> 1486 LIBS libraries to pass to the linker, e.g. -l<library> 1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1488 you have headers in a nonstandard directory <include dir> 1489 CPP C preprocessor 1490 PKG_CONFIG path to pkg-config utility 1491 PKG_CONFIG_PATH 1492 directories to add to pkg-config's search path 1493 PKG_CONFIG_LIBDIR 1494 path overriding pkg-config's built-in search path 1495 LT_SYS_LIBRARY_PATH 1496 User-defined run-time library search path. 1497 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1498 XORG_LIBS linker flags for XORG, overriding pkg-config 1499 PCIACCESS_CFLAGS 1500 C compiler flags for PCIACCESS, overriding pkg-config 1501 PCIACCESS_LIBS 1502 linker flags for PCIACCESS, overriding pkg-config 1503 1504 Use these variables to override the choices made by `configure' or to help 1505 it to find libraries and programs with nonstandard names/locations. 1506 1507 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1508 _ACEOF 1509 ac_status=$? 1510 fi 1511 1512 if test "$ac_init_help" = "recursive"; then 1513 # If there are subdirs, report their specific --help. 1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1515 test -d "$ac_dir" || 1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1517 continue 1518 ac_builddir=. 1519 1520 case "$ac_dir" in 1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522 *) 1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1524 # A ".." for each directory in $ac_dir_suffix. 1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1526 case $ac_top_builddir_sub in 1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1529 esac ;; 1530 esac 1531 ac_abs_top_builddir=$ac_pwd 1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1533 # for backward compatibility: 1534 ac_top_builddir=$ac_top_build_prefix 1535 1536 case $srcdir in 1537 .) # We are building in place. 1538 ac_srcdir=. 1539 ac_top_srcdir=$ac_top_builddir_sub 1540 ac_abs_top_srcdir=$ac_pwd ;; 1541 [\\/]* | ?:[\\/]* ) # Absolute name. 1542 ac_srcdir=$srcdir$ac_dir_suffix; 1543 ac_top_srcdir=$srcdir 1544 ac_abs_top_srcdir=$srcdir ;; 1545 *) # Relative name. 1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1547 ac_top_srcdir=$ac_top_build_prefix$srcdir 1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1549 esac 1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1551 1552 cd "$ac_dir" || { ac_status=$?; continue; } 1553 # Check for guested configure. 1554 if test -f "$ac_srcdir/configure.gnu"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1557 elif test -f "$ac_srcdir/configure"; then 1558 echo && 1559 $SHELL "$ac_srcdir/configure" --help=recursive 1560 else 1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1562 fi || ac_status=$? 1563 cd "$ac_pwd" || { ac_status=$?; break; } 1564 done 1565 fi 1566 1567 test -n "$ac_init_help" && exit $ac_status 1568 if $ac_init_version; then 1569 cat <<\_ACEOF 1570 xf86-video-rendition configure 4.2.6 1571 generated by GNU Autoconf 2.69 1572 1573 Copyright (C) 2012 Free Software Foundation, Inc. 1574 This configure script is free software; the Free Software Foundation 1575 gives unlimited permission to copy, distribute and modify it. 1576 _ACEOF 1577 exit 1578 fi 1579 1580 ## ------------------------ ## 1581 ## Autoconf initialization. ## 1582 ## ------------------------ ## 1583 1584 # ac_fn_c_try_compile LINENO 1585 # -------------------------- 1586 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1587 ac_fn_c_try_compile () 1588 { 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 rm -f conftest.$ac_objext 1591 if { { ac_try="$ac_compile" 1592 case "(($ac_try" in 1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1594 *) ac_try_echo=$ac_try;; 1595 esac 1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1597 $as_echo "$ac_try_echo"; } >&5 1598 (eval "$ac_compile") 2>conftest.err 1599 ac_status=$? 1600 if test -s conftest.err; then 1601 grep -v '^ *+' conftest.err >conftest.er1 1602 cat conftest.er1 >&5 1603 mv -f conftest.er1 conftest.err 1604 fi 1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1606 test $ac_status = 0; } && { 1607 test -z "$ac_c_werror_flag" || 1608 test ! -s conftest.err 1609 } && test -s conftest.$ac_objext; then : 1610 ac_retval=0 1611 else 1612 $as_echo "$as_me: failed program was:" >&5 1613 sed 's/^/| /' conftest.$ac_ext >&5 1614 1615 ac_retval=1 1616 fi 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 as_fn_set_status $ac_retval 1619 1620 } # ac_fn_c_try_compile 1621 1622 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1623 # --------------------------------------------- 1624 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1625 # accordingly. 1626 ac_fn_c_check_decl () 1627 { 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 as_decl_name=`echo $2|sed 's/ *(.*//'` 1630 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1632 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1633 if eval \${$3+:} false; then : 1634 $as_echo_n "(cached) " >&6 1635 else 1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1637 /* end confdefs.h. */ 1638 $4 1639 int 1640 main () 1641 { 1642 #ifndef $as_decl_name 1643 #ifdef __cplusplus 1644 (void) $as_decl_use; 1645 #else 1646 (void) $as_decl_name; 1647 #endif 1648 #endif 1649 1650 ; 1651 return 0; 1652 } 1653 _ACEOF 1654 if ac_fn_c_try_compile "$LINENO"; then : 1655 eval "$3=yes" 1656 else 1657 eval "$3=no" 1658 fi 1659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1660 fi 1661 eval ac_res=\$$3 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1663 $as_echo "$ac_res" >&6; } 1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1665 1666 } # ac_fn_c_check_decl 1667 1668 # ac_fn_c_try_cpp LINENO 1669 # ---------------------- 1670 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1671 ac_fn_c_try_cpp () 1672 { 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 if { { ac_try="$ac_cpp conftest.$ac_ext" 1675 case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678 esac 1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680 $as_echo "$ac_try_echo"; } >&5 1681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1682 ac_status=$? 1683 if test -s conftest.err; then 1684 grep -v '^ *+' conftest.err >conftest.er1 1685 cat conftest.er1 >&5 1686 mv -f conftest.er1 conftest.err 1687 fi 1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } > conftest.i && { 1690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1691 test ! -s conftest.err 1692 }; then : 1693 ac_retval=0 1694 else 1695 $as_echo "$as_me: failed program was:" >&5 1696 sed 's/^/| /' conftest.$ac_ext >&5 1697 1698 ac_retval=1 1699 fi 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1701 as_fn_set_status $ac_retval 1702 1703 } # ac_fn_c_try_cpp 1704 1705 # ac_fn_c_try_run LINENO 1706 # ---------------------- 1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1708 # that executables *can* be run. 1709 ac_fn_c_try_run () 1710 { 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 if { { ac_try="$ac_link" 1713 case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716 esac 1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718 $as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_link") 2>&5 1720 ac_status=$? 1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1723 { { case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726 esac 1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728 $as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_try") 2>&5 1730 ac_status=$? 1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1732 test $ac_status = 0; }; }; then : 1733 ac_retval=0 1734 else 1735 $as_echo "$as_me: program exited with status $ac_status" >&5 1736 $as_echo "$as_me: failed program was:" >&5 1737 sed 's/^/| /' conftest.$ac_ext >&5 1738 1739 ac_retval=$ac_status 1740 fi 1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 as_fn_set_status $ac_retval 1744 1745 } # ac_fn_c_try_run 1746 1747 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1748 # ------------------------------------------------------- 1749 # Tests whether HEADER exists and can be compiled using the include files in 1750 # INCLUDES, setting the cache variable VAR accordingly. 1751 ac_fn_c_check_header_compile () 1752 { 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1755 $as_echo_n "checking for $2... " >&6; } 1756 if eval \${$3+:} false; then : 1757 $as_echo_n "(cached) " >&6 1758 else 1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1760 /* end confdefs.h. */ 1761 $4 1762 #include <$2> 1763 _ACEOF 1764 if ac_fn_c_try_compile "$LINENO"; then : 1765 eval "$3=yes" 1766 else 1767 eval "$3=no" 1768 fi 1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1770 fi 1771 eval ac_res=\$$3 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1773 $as_echo "$ac_res" >&6; } 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 1776 } # ac_fn_c_check_header_compile 1777 1778 # ac_fn_c_try_link LINENO 1779 # ----------------------- 1780 # Try to link conftest.$ac_ext, and return whether this succeeded. 1781 ac_fn_c_try_link () 1782 { 1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1784 rm -f conftest.$ac_objext conftest$ac_exeext 1785 if { { ac_try="$ac_link" 1786 case "(($ac_try" in 1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1788 *) ac_try_echo=$ac_try;; 1789 esac 1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1791 $as_echo "$ac_try_echo"; } >&5 1792 (eval "$ac_link") 2>conftest.err 1793 ac_status=$? 1794 if test -s conftest.err; then 1795 grep -v '^ *+' conftest.err >conftest.er1 1796 cat conftest.er1 >&5 1797 mv -f conftest.er1 conftest.err 1798 fi 1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1800 test $ac_status = 0; } && { 1801 test -z "$ac_c_werror_flag" || 1802 test ! -s conftest.err 1803 } && test -s conftest$ac_exeext && { 1804 test "$cross_compiling" = yes || 1805 test -x conftest$ac_exeext 1806 }; then : 1807 ac_retval=0 1808 else 1809 $as_echo "$as_me: failed program was:" >&5 1810 sed 's/^/| /' conftest.$ac_ext >&5 1811 1812 ac_retval=1 1813 fi 1814 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1815 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1816 # interfere with the next link command; also delete a directory that is 1817 # left behind by Apple's compiler. We do this before executing the actions. 1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 as_fn_set_status $ac_retval 1821 1822 } # ac_fn_c_try_link 1823 1824 # ac_fn_c_check_func LINENO FUNC VAR 1825 # ---------------------------------- 1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1827 ac_fn_c_check_func () 1828 { 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1831 $as_echo_n "checking for $2... " >&6; } 1832 if eval \${$3+:} false; then : 1833 $as_echo_n "(cached) " >&6 1834 else 1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836 /* end confdefs.h. */ 1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1838 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1839 #define $2 innocuous_$2 1840 1841 /* System header to define __stub macros and hopefully few prototypes, 1842 which can conflict with char $2 (); below. 1843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1844 <limits.h> exists even on freestanding compilers. */ 1845 1846 #ifdef __STDC__ 1847 # include <limits.h> 1848 #else 1849 # include <assert.h> 1850 #endif 1851 1852 #undef $2 1853 1854 /* Override any GCC internal prototype to avoid an error. 1855 Use char because int might match the return type of a GCC 1856 builtin and then its argument prototype would still apply. */ 1857 #ifdef __cplusplus 1858 extern "C" 1859 #endif 1860 char $2 (); 1861 /* The GNU C library defines this for functions which it implements 1862 to always fail with ENOSYS. Some functions are actually named 1863 something starting with __ and the normal name is an alias. */ 1864 #if defined __stub_$2 || defined __stub___$2 1865 choke me 1866 #endif 1867 1868 int 1869 main () 1870 { 1871 return $2 (); 1872 ; 1873 return 0; 1874 } 1875 _ACEOF 1876 if ac_fn_c_try_link "$LINENO"; then : 1877 eval "$3=yes" 1878 else 1879 eval "$3=no" 1880 fi 1881 rm -f core conftest.err conftest.$ac_objext \ 1882 conftest$ac_exeext conftest.$ac_ext 1883 fi 1884 eval ac_res=\$$3 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1886 $as_echo "$ac_res" >&6; } 1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1888 1889 } # ac_fn_c_check_func 1890 1891 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1892 # ------------------------------------------------------- 1893 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1894 # the include files in INCLUDES and setting the cache variable VAR 1895 # accordingly. 1896 ac_fn_c_check_header_mongrel () 1897 { 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1899 if eval \${$3+:} false; then : 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1901 $as_echo_n "checking for $2... " >&6; } 1902 if eval \${$3+:} false; then : 1903 $as_echo_n "(cached) " >&6 1904 fi 1905 eval ac_res=\$$3 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1907 $as_echo "$ac_res" >&6; } 1908 else 1909 # Is the header compilable? 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1911 $as_echo_n "checking $2 usability... " >&6; } 1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1913 /* end confdefs.h. */ 1914 $4 1915 #include <$2> 1916 _ACEOF 1917 if ac_fn_c_try_compile "$LINENO"; then : 1918 ac_header_compiler=yes 1919 else 1920 ac_header_compiler=no 1921 fi 1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1924 $as_echo "$ac_header_compiler" >&6; } 1925 1926 # Is the header present? 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1928 $as_echo_n "checking $2 presence... " >&6; } 1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1930 /* end confdefs.h. */ 1931 #include <$2> 1932 _ACEOF 1933 if ac_fn_c_try_cpp "$LINENO"; then : 1934 ac_header_preproc=yes 1935 else 1936 ac_header_preproc=no 1937 fi 1938 rm -f conftest.err conftest.i conftest.$ac_ext 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1940 $as_echo "$ac_header_preproc" >&6; } 1941 1942 # So? What about this header? 1943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1944 yes:no: ) 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1946 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1949 ;; 1950 no:yes:* ) 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1952 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1954 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1956 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1958 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1961 ( $as_echo "## ---------------------------------------------------------------------- ## 1962 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1963 ## ---------------------------------------------------------------------- ##" 1964 ) | sed "s/^/$as_me: WARNING: /" >&2 1965 ;; 1966 esac 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1968 $as_echo_n "checking for $2... " >&6; } 1969 if eval \${$3+:} false; then : 1970 $as_echo_n "(cached) " >&6 1971 else 1972 eval "$3=\$ac_header_compiler" 1973 fi 1974 eval ac_res=\$$3 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1976 $as_echo "$ac_res" >&6; } 1977 fi 1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1979 1980 } # ac_fn_c_check_header_mongrel 1981 cat >config.log <<_ACEOF 1982 This file contains any messages produced by compilers while 1983 running configure, to aid debugging if configure makes a mistake. 1984 1985 It was created by xf86-video-rendition $as_me 4.2.6, which was 1986 generated by GNU Autoconf 2.69. Invocation command line was 1987 1988 $ $0 $@ 1989 1990 _ACEOF 1991 exec 5>>config.log 1992 { 1993 cat <<_ASUNAME 1994 ## --------- ## 1995 ## Platform. ## 1996 ## --------- ## 1997 1998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1999 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2000 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2001 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2002 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2003 2004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2006 2007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2010 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2014 2015 _ASUNAME 2016 2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2018 for as_dir in $PATH 2019 do 2020 IFS=$as_save_IFS 2021 test -z "$as_dir" && as_dir=. 2022 $as_echo "PATH: $as_dir" 2023 done 2024 IFS=$as_save_IFS 2025 2026 } >&5 2027 2028 cat >&5 <<_ACEOF 2029 2030 2031 ## ----------- ## 2032 ## Core tests. ## 2033 ## ----------- ## 2034 2035 _ACEOF 2036 2037 2038 # Keep a trace of the command line. 2039 # Strip out --no-create and --no-recursion so they do not pile up. 2040 # Strip out --silent because we don't want to record it for future runs. 2041 # Also quote any args containing shell meta-characters. 2042 # Make two passes to allow for proper duplicate-argument suppression. 2043 ac_configure_args= 2044 ac_configure_args0= 2045 ac_configure_args1= 2046 ac_must_keep_next=false 2047 for ac_pass in 1 2 2048 do 2049 for ac_arg 2050 do 2051 case $ac_arg in 2052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2054 | -silent | --silent | --silen | --sile | --sil) 2055 continue ;; 2056 *\'*) 2057 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2058 esac 2059 case $ac_pass in 2060 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2061 2) 2062 as_fn_append ac_configure_args1 " '$ac_arg'" 2063 if test $ac_must_keep_next = true; then 2064 ac_must_keep_next=false # Got value, back to normal. 2065 else 2066 case $ac_arg in 2067 *=* | --config-cache | -C | -disable-* | --disable-* \ 2068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2070 | -with-* | --with-* | -without-* | --without-* | --x) 2071 case "$ac_configure_args0 " in 2072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2073 esac 2074 ;; 2075 -* ) ac_must_keep_next=true ;; 2076 esac 2077 fi 2078 as_fn_append ac_configure_args " '$ac_arg'" 2079 ;; 2080 esac 2081 done 2082 done 2083 { ac_configure_args0=; unset ac_configure_args0;} 2084 { ac_configure_args1=; unset ac_configure_args1;} 2085 2086 # When interrupted or exit'd, cleanup temporary files, and complete 2087 # config.log. We remove comments because anyway the quotes in there 2088 # would cause problems or look ugly. 2089 # WARNING: Use '\'' to represent an apostrophe within the trap. 2090 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2091 trap 'exit_status=$? 2092 # Save into config.log some information that might help in debugging. 2093 { 2094 echo 2095 2096 $as_echo "## ---------------- ## 2097 ## Cache variables. ## 2098 ## ---------------- ##" 2099 echo 2100 # The following way of writing the cache mishandles newlines in values, 2101 ( 2102 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2103 eval ac_val=\$$ac_var 2104 case $ac_val in #( 2105 *${as_nl}*) 2106 case $ac_var in #( 2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2109 esac 2110 case $ac_var in #( 2111 _ | IFS | as_nl) ;; #( 2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2113 *) { eval $ac_var=; unset $ac_var;} ;; 2114 esac ;; 2115 esac 2116 done 2117 (set) 2>&1 | 2118 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2119 *${as_nl}ac_space=\ *) 2120 sed -n \ 2121 "s/'\''/'\''\\\\'\'''\''/g; 2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2123 ;; #( 2124 *) 2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2126 ;; 2127 esac | 2128 sort 2129 ) 2130 echo 2131 2132 $as_echo "## ----------------- ## 2133 ## Output variables. ## 2134 ## ----------------- ##" 2135 echo 2136 for ac_var in $ac_subst_vars 2137 do 2138 eval ac_val=\$$ac_var 2139 case $ac_val in 2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2141 esac 2142 $as_echo "$ac_var='\''$ac_val'\''" 2143 done | sort 2144 echo 2145 2146 if test -n "$ac_subst_files"; then 2147 $as_echo "## ------------------- ## 2148 ## File substitutions. ## 2149 ## ------------------- ##" 2150 echo 2151 for ac_var in $ac_subst_files 2152 do 2153 eval ac_val=\$$ac_var 2154 case $ac_val in 2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2156 esac 2157 $as_echo "$ac_var='\''$ac_val'\''" 2158 done | sort 2159 echo 2160 fi 2161 2162 if test -s confdefs.h; then 2163 $as_echo "## ----------- ## 2164 ## confdefs.h. ## 2165 ## ----------- ##" 2166 echo 2167 cat confdefs.h 2168 echo 2169 fi 2170 test "$ac_signal" != 0 && 2171 $as_echo "$as_me: caught signal $ac_signal" 2172 $as_echo "$as_me: exit $exit_status" 2173 } >&5 2174 rm -f core *.core core.conftest.* && 2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2176 exit $exit_status 2177 ' 0 2178 for ac_signal in 1 2 13 15; do 2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2180 done 2181 ac_signal=0 2182 2183 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2184 rm -f -r conftest* confdefs.h 2185 2186 $as_echo "/* confdefs.h */" > confdefs.h 2187 2188 # Predefined preprocessor variables. 2189 2190 cat >>confdefs.h <<_ACEOF 2191 #define PACKAGE_NAME "$PACKAGE_NAME" 2192 _ACEOF 2193 2194 cat >>confdefs.h <<_ACEOF 2195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2196 _ACEOF 2197 2198 cat >>confdefs.h <<_ACEOF 2199 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2200 _ACEOF 2201 2202 cat >>confdefs.h <<_ACEOF 2203 #define PACKAGE_STRING "$PACKAGE_STRING" 2204 _ACEOF 2205 2206 cat >>confdefs.h <<_ACEOF 2207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2208 _ACEOF 2209 2210 cat >>confdefs.h <<_ACEOF 2211 #define PACKAGE_URL "$PACKAGE_URL" 2212 _ACEOF 2213 2214 2215 # Let the site file select an alternate cache file if it wants to. 2216 # Prefer an explicitly selected file to automatically selected ones. 2217 ac_site_file1=NONE 2218 ac_site_file2=NONE 2219 if test -n "$CONFIG_SITE"; then 2220 # We do not want a PATH search for config.site. 2221 case $CONFIG_SITE in #(( 2222 -*) ac_site_file1=./$CONFIG_SITE;; 2223 */*) ac_site_file1=$CONFIG_SITE;; 2224 *) ac_site_file1=./$CONFIG_SITE;; 2225 esac 2226 elif test "x$prefix" != xNONE; then 2227 ac_site_file1=$prefix/share/config.site 2228 ac_site_file2=$prefix/etc/config.site 2229 else 2230 ac_site_file1=$ac_default_prefix/share/config.site 2231 ac_site_file2=$ac_default_prefix/etc/config.site 2232 fi 2233 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2234 do 2235 test "x$ac_site_file" = xNONE && continue 2236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2238 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2239 sed 's/^/| /' "$ac_site_file" >&5 2240 . "$ac_site_file" \ 2241 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2243 as_fn_error $? "failed to load site script $ac_site_file 2244 See \`config.log' for more details" "$LINENO" 5; } 2245 fi 2246 done 2247 2248 if test -r "$cache_file"; then 2249 # Some versions of bash will fail to source /dev/null (special files 2250 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2251 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2253 $as_echo "$as_me: loading cache $cache_file" >&6;} 2254 case $cache_file in 2255 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2256 *) . "./$cache_file";; 2257 esac 2258 fi 2259 else 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2261 $as_echo "$as_me: creating cache $cache_file" >&6;} 2262 >$cache_file 2263 fi 2264 2265 # Check that the precious variables saved in the cache have kept the same 2266 # value. 2267 ac_cache_corrupted=false 2268 for ac_var in $ac_precious_vars; do 2269 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2270 eval ac_new_set=\$ac_env_${ac_var}_set 2271 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2272 eval ac_new_val=\$ac_env_${ac_var}_value 2273 case $ac_old_set,$ac_new_set in 2274 set,) 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2276 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2277 ac_cache_corrupted=: ;; 2278 ,set) 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2280 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2281 ac_cache_corrupted=: ;; 2282 ,);; 2283 *) 2284 if test "x$ac_old_val" != "x$ac_new_val"; then 2285 # differences in whitespace do not lead to failure. 2286 ac_old_val_w=`echo x $ac_old_val` 2287 ac_new_val_w=`echo x $ac_new_val` 2288 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2290 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2291 ac_cache_corrupted=: 2292 else 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2294 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2295 eval $ac_var=\$ac_old_val 2296 fi 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2298 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2300 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2301 fi;; 2302 esac 2303 # Pass precious variables to config.status. 2304 if test "$ac_new_set" = set; then 2305 case $ac_new_val in 2306 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2307 *) ac_arg=$ac_var=$ac_new_val ;; 2308 esac 2309 case " $ac_configure_args " in 2310 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2311 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2312 esac 2313 fi 2314 done 2315 if $ac_cache_corrupted; then 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2319 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2320 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2321 fi 2322 ## -------------------- ## 2323 ## Main body of script. ## 2324 ## -------------------- ## 2325 2326 ac_ext=c 2327 ac_cpp='$CPP $CPPFLAGS' 2328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2330 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2331 2332 2333 2334 ac_config_headers="$ac_config_headers config.h" 2335 2336 ac_aux_dir= 2337 for ac_dir in . "$srcdir"/.; do 2338 if test -f "$ac_dir/install-sh"; then 2339 ac_aux_dir=$ac_dir 2340 ac_install_sh="$ac_aux_dir/install-sh -c" 2341 break 2342 elif test -f "$ac_dir/install.sh"; then 2343 ac_aux_dir=$ac_dir 2344 ac_install_sh="$ac_aux_dir/install.sh -c" 2345 break 2346 elif test -f "$ac_dir/shtool"; then 2347 ac_aux_dir=$ac_dir 2348 ac_install_sh="$ac_aux_dir/shtool install -c" 2349 break 2350 fi 2351 done 2352 if test -z "$ac_aux_dir"; then 2353 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2354 fi 2355 2356 # These three variables are undocumented and unsupported, 2357 # and are intended to be withdrawn in a future Autoconf release. 2358 # They can cause serious problems if a builder's source tree is in a directory 2359 # whose full name contains unusual characters. 2360 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2361 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2362 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2363 2364 2365 2366 # Initialize Automake 2367 am__api_version='1.15' 2368 2369 # Find a good install program. We prefer a C program (faster), 2370 # so one script is as good as another. But avoid the broken or 2371 # incompatible versions: 2372 # SysV /etc/install, /usr/sbin/install 2373 # SunOS /usr/etc/install 2374 # IRIX /sbin/install 2375 # AIX /bin/install 2376 # AmigaOS /C/install, which installs bootblocks on floppy discs 2377 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2378 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2379 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2380 # OS/2's system install, which has a completely different semantic 2381 # ./install, which can be erroneously created by make from ./install.sh. 2382 # Reject install programs that cannot install multiple files. 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2384 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2385 if test -z "$INSTALL"; then 2386 if ${ac_cv_path_install+:} false; then : 2387 $as_echo_n "(cached) " >&6 2388 else 2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2390 for as_dir in $PATH 2391 do 2392 IFS=$as_save_IFS 2393 test -z "$as_dir" && as_dir=. 2394 # Account for people who put trailing slashes in PATH elements. 2395 case $as_dir/ in #(( 2396 ./ | .// | /[cC]/* | \ 2397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2398 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2399 /usr/ucb/* ) ;; 2400 *) 2401 # OSF1 and SCO ODT 3.0 have their own names for install. 2402 # Don't use installbsd from OSF since it installs stuff as root 2403 # by default. 2404 for ac_prog in ginstall scoinst install; do 2405 for ac_exec_ext in '' $ac_executable_extensions; do 2406 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2407 if test $ac_prog = install && 2408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2409 # AIX install. It has an incompatible calling convention. 2410 : 2411 elif test $ac_prog = install && 2412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2413 # program-specific install script used by HP pwplus--don't use. 2414 : 2415 else 2416 rm -rf conftest.one conftest.two conftest.dir 2417 echo one > conftest.one 2418 echo two > conftest.two 2419 mkdir conftest.dir 2420 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2421 test -s conftest.one && test -s conftest.two && 2422 test -s conftest.dir/conftest.one && 2423 test -s conftest.dir/conftest.two 2424 then 2425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2426 break 3 2427 fi 2428 fi 2429 fi 2430 done 2431 done 2432 ;; 2433 esac 2434 2435 done 2436 IFS=$as_save_IFS 2437 2438 rm -rf conftest.one conftest.two conftest.dir 2439 2440 fi 2441 if test "${ac_cv_path_install+set}" = set; then 2442 INSTALL=$ac_cv_path_install 2443 else 2444 # As a last resort, use the slow shell script. Don't cache a 2445 # value for INSTALL within a source directory, because that will 2446 # break other packages using the cache if that directory is 2447 # removed, or if the value is a relative name. 2448 INSTALL=$ac_install_sh 2449 fi 2450 fi 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2452 $as_echo "$INSTALL" >&6; } 2453 2454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2455 # It thinks the first close brace ends the variable substitution. 2456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2457 2458 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2459 2460 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2461 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2463 $as_echo_n "checking whether build environment is sane... " >&6; } 2464 # Reject unsafe characters in $srcdir or the absolute working directory 2465 # name. Accept space and tab only in the latter. 2466 am_lf=' 2467 ' 2468 case `pwd` in 2469 *[\\\"\#\$\&\'\`$am_lf]*) 2470 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2471 esac 2472 case $srcdir in 2473 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2474 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2475 esac 2476 2477 # Do 'set' in a subshell so we don't clobber the current shell's 2478 # arguments. Must try -L first in case configure is actually a 2479 # symlink; some systems play weird games with the mod time of symlinks 2480 # (eg FreeBSD returns the mod time of the symlink's containing 2481 # directory). 2482 if ( 2483 am_has_slept=no 2484 for am_try in 1 2; do 2485 echo "timestamp, slept: $am_has_slept" > conftest.file 2486 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2487 if test "$*" = "X"; then 2488 # -L didn't work. 2489 set X `ls -t "$srcdir/configure" conftest.file` 2490 fi 2491 if test "$*" != "X $srcdir/configure conftest.file" \ 2492 && test "$*" != "X conftest.file $srcdir/configure"; then 2493 2494 # If neither matched, then we have a broken ls. This can happen 2495 # if, for instance, CONFIG_SHELL is bash and it inherits a 2496 # broken ls alias from the environment. This has actually 2497 # happened. Such a system could not be considered "sane". 2498 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2499 alias in your environment" "$LINENO" 5 2500 fi 2501 if test "$2" = conftest.file || test $am_try -eq 2; then 2502 break 2503 fi 2504 # Just in case. 2505 sleep 1 2506 am_has_slept=yes 2507 done 2508 test "$2" = conftest.file 2509 ) 2510 then 2511 # Ok. 2512 : 2513 else 2514 as_fn_error $? "newly created file is older than distributed files! 2515 Check your system clock" "$LINENO" 5 2516 fi 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2518 $as_echo "yes" >&6; } 2519 # If we didn't sleep, we still need to ensure time stamps of config.status and 2520 # generated files are strictly newer. 2521 am_sleep_pid= 2522 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2523 ( sleep 1 ) & 2524 am_sleep_pid=$! 2525 fi 2526 2527 rm -f conftest.file 2528 2529 test "$program_prefix" != NONE && 2530 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2531 # Use a double $ so make ignores it. 2532 test "$program_suffix" != NONE && 2533 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2534 # Double any \ or $. 2535 # By default was `s,x,x', remove it if useless. 2536 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2537 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2538 2539 # Expand $ac_aux_dir to an absolute path. 2540 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2541 2542 if test x"${MISSING+set}" != xset; then 2543 case $am_aux_dir in 2544 *\ * | *\ *) 2545 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2546 *) 2547 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2548 esac 2549 fi 2550 # Use eval to expand $SHELL 2551 if eval "$MISSING --is-lightweight"; then 2552 am_missing_run="$MISSING " 2553 else 2554 am_missing_run= 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2556 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2557 fi 2558 2559 if test x"${install_sh+set}" != xset; then 2560 case $am_aux_dir in 2561 *\ * | *\ *) 2562 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2563 *) 2564 install_sh="\${SHELL} $am_aux_dir/install-sh" 2565 esac 2566 fi 2567 2568 # Installed binaries are usually stripped using 'strip' when the user 2569 # run "make install-strip". However 'strip' might not be the right 2570 # tool to use in cross-compilation environments, therefore Automake 2571 # will honor the 'STRIP' environment variable to overrule this program. 2572 if test "$cross_compiling" != no; then 2573 if test -n "$ac_tool_prefix"; then 2574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2575 set dummy ${ac_tool_prefix}strip; ac_word=$2 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2577 $as_echo_n "checking for $ac_word... " >&6; } 2578 if ${ac_cv_prog_STRIP+:} false; then : 2579 $as_echo_n "(cached) " >&6 2580 else 2581 if test -n "$STRIP"; then 2582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2583 else 2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2585 for as_dir in $PATH 2586 do 2587 IFS=$as_save_IFS 2588 test -z "$as_dir" && as_dir=. 2589 for ac_exec_ext in '' $ac_executable_extensions; do 2590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2591 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2593 break 2 2594 fi 2595 done 2596 done 2597 IFS=$as_save_IFS 2598 2599 fi 2600 fi 2601 STRIP=$ac_cv_prog_STRIP 2602 if test -n "$STRIP"; then 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2604 $as_echo "$STRIP" >&6; } 2605 else 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2607 $as_echo "no" >&6; } 2608 fi 2609 2610 2611 fi 2612 if test -z "$ac_cv_prog_STRIP"; then 2613 ac_ct_STRIP=$STRIP 2614 # Extract the first word of "strip", so it can be a program name with args. 2615 set dummy strip; ac_word=$2 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2617 $as_echo_n "checking for $ac_word... " >&6; } 2618 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2619 $as_echo_n "(cached) " >&6 2620 else 2621 if test -n "$ac_ct_STRIP"; then 2622 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2623 else 2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2625 for as_dir in $PATH 2626 do 2627 IFS=$as_save_IFS 2628 test -z "$as_dir" && as_dir=. 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2631 ac_cv_prog_ac_ct_STRIP="strip" 2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2633 break 2 2634 fi 2635 done 2636 done 2637 IFS=$as_save_IFS 2638 2639 fi 2640 fi 2641 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2642 if test -n "$ac_ct_STRIP"; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2644 $as_echo "$ac_ct_STRIP" >&6; } 2645 else 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2647 $as_echo "no" >&6; } 2648 fi 2649 2650 if test "x$ac_ct_STRIP" = x; then 2651 STRIP=":" 2652 else 2653 case $cross_compiling:$ac_tool_warned in 2654 yes:) 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2657 ac_tool_warned=yes ;; 2658 esac 2659 STRIP=$ac_ct_STRIP 2660 fi 2661 else 2662 STRIP="$ac_cv_prog_STRIP" 2663 fi 2664 2665 fi 2666 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2667 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2669 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2670 if test -z "$MKDIR_P"; then 2671 if ${ac_cv_path_mkdir+:} false; then : 2672 $as_echo_n "(cached) " >&6 2673 else 2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2675 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2676 do 2677 IFS=$as_save_IFS 2678 test -z "$as_dir" && as_dir=. 2679 for ac_prog in mkdir gmkdir; do 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2682 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2683 'mkdir (GNU coreutils) '* | \ 2684 'mkdir (coreutils) '* | \ 2685 'mkdir (fileutils) '4.1*) 2686 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2687 break 3;; 2688 esac 2689 done 2690 done 2691 done 2692 IFS=$as_save_IFS 2693 2694 fi 2695 2696 test -d ./--version && rmdir ./--version 2697 if test "${ac_cv_path_mkdir+set}" = set; then 2698 MKDIR_P="$ac_cv_path_mkdir -p" 2699 else 2700 # As a last resort, use the slow shell script. Don't cache a 2701 # value for MKDIR_P within a source directory, because that will 2702 # break other packages using the cache if that directory is 2703 # removed, or if the value is a relative name. 2704 MKDIR_P="$ac_install_sh -d" 2705 fi 2706 fi 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2708 $as_echo "$MKDIR_P" >&6; } 2709 2710 for ac_prog in gawk mawk nawk awk 2711 do 2712 # Extract the first word of "$ac_prog", so it can be a program name with args. 2713 set dummy $ac_prog; ac_word=$2 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2715 $as_echo_n "checking for $ac_word... " >&6; } 2716 if ${ac_cv_prog_AWK+:} false; then : 2717 $as_echo_n "(cached) " >&6 2718 else 2719 if test -n "$AWK"; then 2720 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2721 else 2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723 for as_dir in $PATH 2724 do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2729 ac_cv_prog_AWK="$ac_prog" 2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2731 break 2 2732 fi 2733 done 2734 done 2735 IFS=$as_save_IFS 2736 2737 fi 2738 fi 2739 AWK=$ac_cv_prog_AWK 2740 if test -n "$AWK"; then 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2742 $as_echo "$AWK" >&6; } 2743 else 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2745 $as_echo "no" >&6; } 2746 fi 2747 2748 2749 test -n "$AWK" && break 2750 done 2751 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2753 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2754 set x ${MAKE-make} 2755 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2756 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2757 $as_echo_n "(cached) " >&6 2758 else 2759 cat >conftest.make <<\_ACEOF 2760 SHELL = /bin/sh 2761 all: 2762 @echo '@@@%%%=$(MAKE)=@@@%%%' 2763 _ACEOF 2764 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2765 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2766 *@@@%%%=?*=@@@%%%*) 2767 eval ac_cv_prog_make_${ac_make}_set=yes;; 2768 *) 2769 eval ac_cv_prog_make_${ac_make}_set=no;; 2770 esac 2771 rm -f conftest.make 2772 fi 2773 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2775 $as_echo "yes" >&6; } 2776 SET_MAKE= 2777 else 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2779 $as_echo "no" >&6; } 2780 SET_MAKE="MAKE=${MAKE-make}" 2781 fi 2782 2783 rm -rf .tst 2>/dev/null 2784 mkdir .tst 2>/dev/null 2785 if test -d .tst; then 2786 am__leading_dot=. 2787 else 2788 am__leading_dot=_ 2789 fi 2790 rmdir .tst 2>/dev/null 2791 2792 # Check whether --enable-silent-rules was given. 2793 if test "${enable_silent_rules+set}" = set; then : 2794 enableval=$enable_silent_rules; 2795 fi 2796 2797 case $enable_silent_rules in # ((( 2798 yes) AM_DEFAULT_VERBOSITY=0;; 2799 no) AM_DEFAULT_VERBOSITY=1;; 2800 *) AM_DEFAULT_VERBOSITY=1;; 2801 esac 2802 am_make=${MAKE-make} 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2804 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2805 if ${am_cv_make_support_nested_variables+:} false; then : 2806 $as_echo_n "(cached) " >&6 2807 else 2808 if $as_echo 'TRUE=$(BAR$(V)) 2809 BAR0=false 2810 BAR1=true 2811 V=1 2812 am__doit: 2813 @$(TRUE) 2814 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2815 am_cv_make_support_nested_variables=yes 2816 else 2817 am_cv_make_support_nested_variables=no 2818 fi 2819 fi 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2821 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2822 if test $am_cv_make_support_nested_variables = yes; then 2823 AM_V='$(V)' 2824 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2825 else 2826 AM_V=$AM_DEFAULT_VERBOSITY 2827 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2828 fi 2829 AM_BACKSLASH='\' 2830 2831 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2832 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2833 # is not polluted with repeated "-I." 2834 am__isrc=' -I$(srcdir)' 2835 # test to see if srcdir already configured 2836 if test -f $srcdir/config.status; then 2837 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2838 fi 2839 fi 2840 2841 # test whether we have cygpath 2842 if test -z "$CYGPATH_W"; then 2843 if (cygpath --version) >/dev/null 2>/dev/null; then 2844 CYGPATH_W='cygpath -w' 2845 else 2846 CYGPATH_W=echo 2847 fi 2848 fi 2849 2850 2851 # Define the identity of the package. 2852 PACKAGE='xf86-video-rendition' 2853 VERSION='4.2.6' 2854 2855 2856 cat >>confdefs.h <<_ACEOF 2857 #define PACKAGE "$PACKAGE" 2858 _ACEOF 2859 2860 2861 cat >>confdefs.h <<_ACEOF 2862 #define VERSION "$VERSION" 2863 _ACEOF 2864 2865 # Some tools Automake needs. 2866 2867 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2868 2869 2870 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2871 2872 2873 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2874 2875 2876 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2877 2878 2879 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2880 2881 # For better backward compatibility. To be removed once Automake 1.9.x 2882 # dies out for good. For more background, see: 2883 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2884 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2885 mkdir_p='$(MKDIR_P)' 2886 2887 # We need awk for the "check" target (and possibly the TAP driver). The 2888 # system "awk" is bad on some platforms. 2889 # Always define AMTAR for backward compatibility. Yes, it's still used 2890 # in the wild :-( We should find a proper way to deprecate it ... 2891 AMTAR='$${TAR-tar}' 2892 2893 2894 # We'll loop over all known methods to create a tar archive until one works. 2895 _am_tools='gnutar pax cpio none' 2896 2897 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2898 2899 2900 2901 2902 2903 2904 # POSIX will say in a future version that running "rm -f" with no argument 2905 # is OK; and we want to be able to make that assumption in our Makefile 2906 # recipes. So use an aggressive probe to check that the usage we want is 2907 # actually supported "in the wild" to an acceptable degree. 2908 # See automake bug#10828. 2909 # To make any issue more visible, cause the running configure to be aborted 2910 # by default if the 'rm' program in use doesn't match our expectations; the 2911 # user can still override this though. 2912 if rm -f && rm -fr && rm -rf; then : OK; else 2913 cat >&2 <<'END' 2914 Oops! 2915 2916 Your 'rm' program seems unable to run without file operands specified 2917 on the command line, even when the '-f' option is present. This is contrary 2918 to the behaviour of most rm programs out there, and not conforming with 2919 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2920 2921 Please tell bug-automake@gnu.org about your system, including the value 2922 of your $PATH and any error possibly output before this message. This 2923 can help us improve future automake versions. 2924 2925 END 2926 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2927 echo 'Configuration will proceed anyway, since you have set the' >&2 2928 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2929 echo >&2 2930 else 2931 cat >&2 <<'END' 2932 Aborting the configuration process, to ensure you take notice of the issue. 2933 2934 You can download and install GNU coreutils to get an 'rm' implementation 2935 that behaves properly: <http://www.gnu.org/software/coreutils/>. 2936 2937 If you want to complete the configuration process using your problematic 2938 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2939 to "yes", and re-run configure. 2940 2941 END 2942 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2943 fi 2944 fi 2945 2946 2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2948 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2949 # Check whether --enable-maintainer-mode was given. 2950 if test "${enable_maintainer_mode+set}" = set; then : 2951 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2952 else 2953 USE_MAINTAINER_MODE=no 2954 fi 2955 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2957 $as_echo "$USE_MAINTAINER_MODE" >&6; } 2958 if test $USE_MAINTAINER_MODE = yes; then 2959 MAINTAINER_MODE_TRUE= 2960 MAINTAINER_MODE_FALSE='#' 2961 else 2962 MAINTAINER_MODE_TRUE='#' 2963 MAINTAINER_MODE_FALSE= 2964 fi 2965 2966 MAINT=$MAINTAINER_MODE_TRUE 2967 2968 2969 2970 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 DEPDIR="${am__leading_dot}deps" 2983 2984 ac_config_commands="$ac_config_commands depfiles" 2985 2986 2987 am_make=${MAKE-make} 2988 cat > confinc << 'END' 2989 am__doit: 2990 @echo this is the am__doit target 2991 .PHONY: am__doit 2992 END 2993 # If we don't find an include directive, just comment out the code. 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2995 $as_echo_n "checking for style of include used by $am_make... " >&6; } 2996 am__include="#" 2997 am__quote= 2998 _am_result=none 2999 # First try GNU make style include. 3000 echo "include confinc" > confmf 3001 # Ignore all kinds of additional output from 'make'. 3002 case `$am_make -s -f confmf 2> /dev/null` in #( 3003 *the\ am__doit\ target*) 3004 am__include=include 3005 am__quote= 3006 _am_result=GNU 3007 ;; 3008 esac 3009 # Now try BSD make style include. 3010 if test "$am__include" = "#"; then 3011 echo '.include "confinc"' > confmf 3012 case `$am_make -s -f confmf 2> /dev/null` in #( 3013 *the\ am__doit\ target*) 3014 am__include=.include 3015 am__quote="\"" 3016 _am_result=BSD 3017 ;; 3018 esac 3019 fi 3020 3021 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3023 $as_echo "$_am_result" >&6; } 3024 rm -f confinc confmf 3025 3026 # Check whether --enable-dependency-tracking was given. 3027 if test "${enable_dependency_tracking+set}" = set; then : 3028 enableval=$enable_dependency_tracking; 3029 fi 3030 3031 if test "x$enable_dependency_tracking" != xno; then 3032 am_depcomp="$ac_aux_dir/depcomp" 3033 AMDEPBACKSLASH='\' 3034 am__nodep='_no' 3035 fi 3036 if test "x$enable_dependency_tracking" != xno; then 3037 AMDEP_TRUE= 3038 AMDEP_FALSE='#' 3039 else 3040 AMDEP_TRUE='#' 3041 AMDEP_FALSE= 3042 fi 3043 3044 3045 ac_ext=c 3046 ac_cpp='$CPP $CPPFLAGS' 3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3050 if test -n "$ac_tool_prefix"; then 3051 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3052 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3054 $as_echo_n "checking for $ac_word... " >&6; } 3055 if ${ac_cv_prog_CC+:} false; then : 3056 $as_echo_n "(cached) " >&6 3057 else 3058 if test -n "$CC"; then 3059 ac_cv_prog_CC="$CC" # Let the user override the test. 3060 else 3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3062 for as_dir in $PATH 3063 do 3064 IFS=$as_save_IFS 3065 test -z "$as_dir" && as_dir=. 3066 for ac_exec_ext in '' $ac_executable_extensions; do 3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3068 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3070 break 2 3071 fi 3072 done 3073 done 3074 IFS=$as_save_IFS 3075 3076 fi 3077 fi 3078 CC=$ac_cv_prog_CC 3079 if test -n "$CC"; then 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3081 $as_echo "$CC" >&6; } 3082 else 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3084 $as_echo "no" >&6; } 3085 fi 3086 3087 3088 fi 3089 if test -z "$ac_cv_prog_CC"; then 3090 ac_ct_CC=$CC 3091 # Extract the first word of "gcc", so it can be a program name with args. 3092 set dummy gcc; ac_word=$2 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3094 $as_echo_n "checking for $ac_word... " >&6; } 3095 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3096 $as_echo_n "(cached) " >&6 3097 else 3098 if test -n "$ac_ct_CC"; then 3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3100 else 3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3102 for as_dir in $PATH 3103 do 3104 IFS=$as_save_IFS 3105 test -z "$as_dir" && as_dir=. 3106 for ac_exec_ext in '' $ac_executable_extensions; do 3107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3108 ac_cv_prog_ac_ct_CC="gcc" 3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3110 break 2 3111 fi 3112 done 3113 done 3114 IFS=$as_save_IFS 3115 3116 fi 3117 fi 3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3119 if test -n "$ac_ct_CC"; then 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3121 $as_echo "$ac_ct_CC" >&6; } 3122 else 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3124 $as_echo "no" >&6; } 3125 fi 3126 3127 if test "x$ac_ct_CC" = x; then 3128 CC="" 3129 else 3130 case $cross_compiling:$ac_tool_warned in 3131 yes:) 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3134 ac_tool_warned=yes ;; 3135 esac 3136 CC=$ac_ct_CC 3137 fi 3138 else 3139 CC="$ac_cv_prog_CC" 3140 fi 3141 3142 if test -z "$CC"; then 3143 if test -n "$ac_tool_prefix"; then 3144 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3145 set dummy ${ac_tool_prefix}cc; ac_word=$2 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3147 $as_echo_n "checking for $ac_word... " >&6; } 3148 if ${ac_cv_prog_CC+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150 else 3151 if test -n "$CC"; then 3152 ac_cv_prog_CC="$CC" # Let the user override the test. 3153 else 3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3155 for as_dir in $PATH 3156 do 3157 IFS=$as_save_IFS 3158 test -z "$as_dir" && as_dir=. 3159 for ac_exec_ext in '' $ac_executable_extensions; do 3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3161 ac_cv_prog_CC="${ac_tool_prefix}cc" 3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3163 break 2 3164 fi 3165 done 3166 done 3167 IFS=$as_save_IFS 3168 3169 fi 3170 fi 3171 CC=$ac_cv_prog_CC 3172 if test -n "$CC"; then 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3174 $as_echo "$CC" >&6; } 3175 else 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3177 $as_echo "no" >&6; } 3178 fi 3179 3180 3181 fi 3182 fi 3183 if test -z "$CC"; then 3184 # Extract the first word of "cc", so it can be a program name with args. 3185 set dummy cc; ac_word=$2 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3187 $as_echo_n "checking for $ac_word... " >&6; } 3188 if ${ac_cv_prog_CC+:} false; then : 3189 $as_echo_n "(cached) " >&6 3190 else 3191 if test -n "$CC"; then 3192 ac_cv_prog_CC="$CC" # Let the user override the test. 3193 else 3194 ac_prog_rejected=no 3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3196 for as_dir in $PATH 3197 do 3198 IFS=$as_save_IFS 3199 test -z "$as_dir" && as_dir=. 3200 for ac_exec_ext in '' $ac_executable_extensions; do 3201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3202 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3203 ac_prog_rejected=yes 3204 continue 3205 fi 3206 ac_cv_prog_CC="cc" 3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3208 break 2 3209 fi 3210 done 3211 done 3212 IFS=$as_save_IFS 3213 3214 if test $ac_prog_rejected = yes; then 3215 # We found a bogon in the path, so make sure we never use it. 3216 set dummy $ac_cv_prog_CC 3217 shift 3218 if test $# != 0; then 3219 # We chose a different compiler from the bogus one. 3220 # However, it has the same basename, so the bogon will be chosen 3221 # first if we set CC to just the basename; use the full file name. 3222 shift 3223 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3224 fi 3225 fi 3226 fi 3227 fi 3228 CC=$ac_cv_prog_CC 3229 if test -n "$CC"; then 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3231 $as_echo "$CC" >&6; } 3232 else 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3234 $as_echo "no" >&6; } 3235 fi 3236 3237 3238 fi 3239 if test -z "$CC"; then 3240 if test -n "$ac_tool_prefix"; then 3241 for ac_prog in cl.exe 3242 do 3243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3246 $as_echo_n "checking for $ac_word... " >&6; } 3247 if ${ac_cv_prog_CC+:} false; then : 3248 $as_echo_n "(cached) " >&6 3249 else 3250 if test -n "$CC"; then 3251 ac_cv_prog_CC="$CC" # Let the user override the test. 3252 else 3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3254 for as_dir in $PATH 3255 do 3256 IFS=$as_save_IFS 3257 test -z "$as_dir" && as_dir=. 3258 for ac_exec_ext in '' $ac_executable_extensions; do 3259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3262 break 2 3263 fi 3264 done 3265 done 3266 IFS=$as_save_IFS 3267 3268 fi 3269 fi 3270 CC=$ac_cv_prog_CC 3271 if test -n "$CC"; then 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3273 $as_echo "$CC" >&6; } 3274 else 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3276 $as_echo "no" >&6; } 3277 fi 3278 3279 3280 test -n "$CC" && break 3281 done 3282 fi 3283 if test -z "$CC"; then 3284 ac_ct_CC=$CC 3285 for ac_prog in cl.exe 3286 do 3287 # Extract the first word of "$ac_prog", so it can be a program name with args. 3288 set dummy $ac_prog; ac_word=$2 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3290 $as_echo_n "checking for $ac_word... " >&6; } 3291 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3292 $as_echo_n "(cached) " >&6 3293 else 3294 if test -n "$ac_ct_CC"; then 3295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3296 else 3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3298 for as_dir in $PATH 3299 do 3300 IFS=$as_save_IFS 3301 test -z "$as_dir" && as_dir=. 3302 for ac_exec_ext in '' $ac_executable_extensions; do 3303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3304 ac_cv_prog_ac_ct_CC="$ac_prog" 3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3306 break 2 3307 fi 3308 done 3309 done 3310 IFS=$as_save_IFS 3311 3312 fi 3313 fi 3314 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3315 if test -n "$ac_ct_CC"; then 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3317 $as_echo "$ac_ct_CC" >&6; } 3318 else 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3320 $as_echo "no" >&6; } 3321 fi 3322 3323 3324 test -n "$ac_ct_CC" && break 3325 done 3326 3327 if test "x$ac_ct_CC" = x; then 3328 CC="" 3329 else 3330 case $cross_compiling:$ac_tool_warned in 3331 yes:) 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3334 ac_tool_warned=yes ;; 3335 esac 3336 CC=$ac_ct_CC 3337 fi 3338 fi 3339 3340 fi 3341 3342 3343 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3345 as_fn_error $? "no acceptable C compiler found in \$PATH 3346 See \`config.log' for more details" "$LINENO" 5; } 3347 3348 # Provide some information about the compiler. 3349 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3350 set X $ac_compile 3351 ac_compiler=$2 3352 for ac_option in --version -v -V -qversion; do 3353 { { ac_try="$ac_compiler $ac_option >&5" 3354 case "(($ac_try" in 3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3356 *) ac_try_echo=$ac_try;; 3357 esac 3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3359 $as_echo "$ac_try_echo"; } >&5 3360 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3361 ac_status=$? 3362 if test -s conftest.err; then 3363 sed '10a\ 3364 ... rest of stderr output deleted ... 3365 10q' conftest.err >conftest.er1 3366 cat conftest.er1 >&5 3367 fi 3368 rm -f conftest.er1 conftest.err 3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3370 test $ac_status = 0; } 3371 done 3372 3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3374 /* end confdefs.h. */ 3375 3376 int 3377 main () 3378 { 3379 3380 ; 3381 return 0; 3382 } 3383 _ACEOF 3384 ac_clean_files_save=$ac_clean_files 3385 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3386 # Try to create an executable without -o first, disregard a.out. 3387 # It will help us diagnose broken compilers, and finding out an intuition 3388 # of exeext. 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3390 $as_echo_n "checking whether the C compiler works... " >&6; } 3391 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3392 3393 # The possible output files: 3394 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3395 3396 ac_rmfiles= 3397 for ac_file in $ac_files 3398 do 3399 case $ac_file in 3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3401 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3402 esac 3403 done 3404 rm -f $ac_rmfiles 3405 3406 if { { ac_try="$ac_link_default" 3407 case "(($ac_try" in 3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3409 *) ac_try_echo=$ac_try;; 3410 esac 3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3412 $as_echo "$ac_try_echo"; } >&5 3413 (eval "$ac_link_default") 2>&5 3414 ac_status=$? 3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3416 test $ac_status = 0; }; then : 3417 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3418 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3419 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3420 # so that the user can short-circuit this test for compilers unknown to 3421 # Autoconf. 3422 for ac_file in $ac_files '' 3423 do 3424 test -f "$ac_file" || continue 3425 case $ac_file in 3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3427 ;; 3428 [ab].out ) 3429 # We found the default executable, but exeext='' is most 3430 # certainly right. 3431 break;; 3432 *.* ) 3433 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3434 then :; else 3435 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3436 fi 3437 # We set ac_cv_exeext here because the later test for it is not 3438 # safe: cross compilers may not add the suffix if given an `-o' 3439 # argument, so we may need to know it at that point already. 3440 # Even if this section looks crufty: it has the advantage of 3441 # actually working. 3442 break;; 3443 * ) 3444 break;; 3445 esac 3446 done 3447 test "$ac_cv_exeext" = no && ac_cv_exeext= 3448 3449 else 3450 ac_file='' 3451 fi 3452 if test -z "$ac_file"; then : 3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3454 $as_echo "no" >&6; } 3455 $as_echo "$as_me: failed program was:" >&5 3456 sed 's/^/| /' conftest.$ac_ext >&5 3457 3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3460 as_fn_error 77 "C compiler cannot create executables 3461 See \`config.log' for more details" "$LINENO" 5; } 3462 else 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3464 $as_echo "yes" >&6; } 3465 fi 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3467 $as_echo_n "checking for C compiler default output file name... " >&6; } 3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3469 $as_echo "$ac_file" >&6; } 3470 ac_exeext=$ac_cv_exeext 3471 3472 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3473 ac_clean_files=$ac_clean_files_save 3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3475 $as_echo_n "checking for suffix of executables... " >&6; } 3476 if { { ac_try="$ac_link" 3477 case "(($ac_try" in 3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3479 *) ac_try_echo=$ac_try;; 3480 esac 3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3482 $as_echo "$ac_try_echo"; } >&5 3483 (eval "$ac_link") 2>&5 3484 ac_status=$? 3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3486 test $ac_status = 0; }; then : 3487 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3488 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3489 # work properly (i.e., refer to `conftest.exe'), while it won't with 3490 # `rm'. 3491 for ac_file in conftest.exe conftest conftest.*; do 3492 test -f "$ac_file" || continue 3493 case $ac_file in 3494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3495 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3496 break;; 3497 * ) break;; 3498 esac 3499 done 3500 else 3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3503 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3504 See \`config.log' for more details" "$LINENO" 5; } 3505 fi 3506 rm -f conftest conftest$ac_cv_exeext 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3508 $as_echo "$ac_cv_exeext" >&6; } 3509 3510 rm -f conftest.$ac_ext 3511 EXEEXT=$ac_cv_exeext 3512 ac_exeext=$EXEEXT 3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3514 /* end confdefs.h. */ 3515 #include <stdio.h> 3516 int 3517 main () 3518 { 3519 FILE *f = fopen ("conftest.out", "w"); 3520 return ferror (f) || fclose (f) != 0; 3521 3522 ; 3523 return 0; 3524 } 3525 _ACEOF 3526 ac_clean_files="$ac_clean_files conftest.out" 3527 # Check that the compiler produces executables we can run. If not, either 3528 # the compiler is broken, or we cross compile. 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3530 $as_echo_n "checking whether we are cross compiling... " >&6; } 3531 if test "$cross_compiling" != yes; then 3532 { { ac_try="$ac_link" 3533 case "(($ac_try" in 3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3535 *) ac_try_echo=$ac_try;; 3536 esac 3537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3538 $as_echo "$ac_try_echo"; } >&5 3539 (eval "$ac_link") 2>&5 3540 ac_status=$? 3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3542 test $ac_status = 0; } 3543 if { ac_try='./conftest$ac_cv_exeext' 3544 { { case "(($ac_try" in 3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3546 *) ac_try_echo=$ac_try;; 3547 esac 3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3549 $as_echo "$ac_try_echo"; } >&5 3550 (eval "$ac_try") 2>&5 3551 ac_status=$? 3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3553 test $ac_status = 0; }; }; then 3554 cross_compiling=no 3555 else 3556 if test "$cross_compiling" = maybe; then 3557 cross_compiling=yes 3558 else 3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3561 as_fn_error $? "cannot run C compiled programs. 3562 If you meant to cross compile, use \`--host'. 3563 See \`config.log' for more details" "$LINENO" 5; } 3564 fi 3565 fi 3566 fi 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3568 $as_echo "$cross_compiling" >&6; } 3569 3570 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3571 ac_clean_files=$ac_clean_files_save 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3573 $as_echo_n "checking for suffix of object files... " >&6; } 3574 if ${ac_cv_objext+:} false; then : 3575 $as_echo_n "(cached) " >&6 3576 else 3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3578 /* end confdefs.h. */ 3579 3580 int 3581 main () 3582 { 3583 3584 ; 3585 return 0; 3586 } 3587 _ACEOF 3588 rm -f conftest.o conftest.obj 3589 if { { ac_try="$ac_compile" 3590 case "(($ac_try" in 3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3592 *) ac_try_echo=$ac_try;; 3593 esac 3594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3595 $as_echo "$ac_try_echo"; } >&5 3596 (eval "$ac_compile") 2>&5 3597 ac_status=$? 3598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3599 test $ac_status = 0; }; then : 3600 for ac_file in conftest.o conftest.obj conftest.*; do 3601 test -f "$ac_file" || continue; 3602 case $ac_file in 3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3604 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3605 break;; 3606 esac 3607 done 3608 else 3609 $as_echo "$as_me: failed program was:" >&5 3610 sed 's/^/| /' conftest.$ac_ext >&5 3611 3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3614 as_fn_error $? "cannot compute suffix of object files: cannot compile 3615 See \`config.log' for more details" "$LINENO" 5; } 3616 fi 3617 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3618 fi 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3620 $as_echo "$ac_cv_objext" >&6; } 3621 OBJEXT=$ac_cv_objext 3622 ac_objext=$OBJEXT 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3624 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3625 if ${ac_cv_c_compiler_gnu+:} false; then : 3626 $as_echo_n "(cached) " >&6 3627 else 3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3629 /* end confdefs.h. */ 3630 3631 int 3632 main () 3633 { 3634 #ifndef __GNUC__ 3635 choke me 3636 #endif 3637 3638 ; 3639 return 0; 3640 } 3641 _ACEOF 3642 if ac_fn_c_try_compile "$LINENO"; then : 3643 ac_compiler_gnu=yes 3644 else 3645 ac_compiler_gnu=no 3646 fi 3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3648 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3649 3650 fi 3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3652 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3653 if test $ac_compiler_gnu = yes; then 3654 GCC=yes 3655 else 3656 GCC= 3657 fi 3658 ac_test_CFLAGS=${CFLAGS+set} 3659 ac_save_CFLAGS=$CFLAGS 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3661 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3662 if ${ac_cv_prog_cc_g+:} false; then : 3663 $as_echo_n "(cached) " >&6 3664 else 3665 ac_save_c_werror_flag=$ac_c_werror_flag 3666 ac_c_werror_flag=yes 3667 ac_cv_prog_cc_g=no 3668 CFLAGS="-g" 3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3670 /* end confdefs.h. */ 3671 3672 int 3673 main () 3674 { 3675 3676 ; 3677 return 0; 3678 } 3679 _ACEOF 3680 if ac_fn_c_try_compile "$LINENO"; then : 3681 ac_cv_prog_cc_g=yes 3682 else 3683 CFLAGS="" 3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685 /* end confdefs.h. */ 3686 3687 int 3688 main () 3689 { 3690 3691 ; 3692 return 0; 3693 } 3694 _ACEOF 3695 if ac_fn_c_try_compile "$LINENO"; then : 3696 3697 else 3698 ac_c_werror_flag=$ac_save_c_werror_flag 3699 CFLAGS="-g" 3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3701 /* end confdefs.h. */ 3702 3703 int 3704 main () 3705 { 3706 3707 ; 3708 return 0; 3709 } 3710 _ACEOF 3711 if ac_fn_c_try_compile "$LINENO"; then : 3712 ac_cv_prog_cc_g=yes 3713 fi 3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3715 fi 3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3717 fi 3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3719 ac_c_werror_flag=$ac_save_c_werror_flag 3720 fi 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3722 $as_echo "$ac_cv_prog_cc_g" >&6; } 3723 if test "$ac_test_CFLAGS" = set; then 3724 CFLAGS=$ac_save_CFLAGS 3725 elif test $ac_cv_prog_cc_g = yes; then 3726 if test "$GCC" = yes; then 3727 CFLAGS="-g -O2" 3728 else 3729 CFLAGS="-g" 3730 fi 3731 else 3732 if test "$GCC" = yes; then 3733 CFLAGS="-O2" 3734 else 3735 CFLAGS= 3736 fi 3737 fi 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3739 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3740 if ${ac_cv_prog_cc_c89+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742 else 3743 ac_cv_prog_cc_c89=no 3744 ac_save_CC=$CC 3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3746 /* end confdefs.h. */ 3747 #include <stdarg.h> 3748 #include <stdio.h> 3749 struct stat; 3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3751 struct buf { int x; }; 3752 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3753 static char *e (p, i) 3754 char **p; 3755 int i; 3756 { 3757 return p[i]; 3758 } 3759 static char *f (char * (*g) (char **, int), char **p, ...) 3760 { 3761 char *s; 3762 va_list v; 3763 va_start (v,p); 3764 s = g (p, va_arg (v,int)); 3765 va_end (v); 3766 return s; 3767 } 3768 3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3770 function prototypes and stuff, but not '\xHH' hex character constants. 3771 These don't provoke an error unfortunately, instead are silently treated 3772 as 'x'. The following induces an error, until -std is added to get 3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3774 array size at least. It's necessary to write '\x00'==0 to get something 3775 that's true only with -std. */ 3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3777 3778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3779 inside strings and character constants. */ 3780 #define FOO(x) 'x' 3781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3782 3783 int test (int i, double x); 3784 struct s1 {int (*f) (int a);}; 3785 struct s2 {int (*f) (double a);}; 3786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3787 int argc; 3788 char **argv; 3789 int 3790 main () 3791 { 3792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3793 ; 3794 return 0; 3795 } 3796 _ACEOF 3797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3799 do 3800 CC="$ac_save_CC $ac_arg" 3801 if ac_fn_c_try_compile "$LINENO"; then : 3802 ac_cv_prog_cc_c89=$ac_arg 3803 fi 3804 rm -f core conftest.err conftest.$ac_objext 3805 test "x$ac_cv_prog_cc_c89" != "xno" && break 3806 done 3807 rm -f conftest.$ac_ext 3808 CC=$ac_save_CC 3809 3810 fi 3811 # AC_CACHE_VAL 3812 case "x$ac_cv_prog_cc_c89" in 3813 x) 3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3815 $as_echo "none needed" >&6; } ;; 3816 xno) 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3818 $as_echo "unsupported" >&6; } ;; 3819 *) 3820 CC="$CC $ac_cv_prog_cc_c89" 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3822 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3823 esac 3824 if test "x$ac_cv_prog_cc_c89" != xno; then : 3825 3826 fi 3827 3828 ac_ext=c 3829 ac_cpp='$CPP $CPPFLAGS' 3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3833 3834 ac_ext=c 3835 ac_cpp='$CPP $CPPFLAGS' 3836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3840 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3841 if ${am_cv_prog_cc_c_o+:} false; then : 3842 $as_echo_n "(cached) " >&6 3843 else 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845 /* end confdefs.h. */ 3846 3847 int 3848 main () 3849 { 3850 3851 ; 3852 return 0; 3853 } 3854 _ACEOF 3855 # Make sure it works both with $CC and with simple cc. 3856 # Following AC_PROG_CC_C_O, we do the test twice because some 3857 # compilers refuse to overwrite an existing .o file with -o, 3858 # though they will create one. 3859 am_cv_prog_cc_c_o=yes 3860 for am_i in 1 2; do 3861 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3862 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3863 ac_status=$? 3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3865 (exit $ac_status); } \ 3866 && test -f conftest2.$ac_objext; then 3867 : OK 3868 else 3869 am_cv_prog_cc_c_o=no 3870 break 3871 fi 3872 done 3873 rm -f core conftest* 3874 unset am_i 3875 fi 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3877 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3878 if test "$am_cv_prog_cc_c_o" != yes; then 3879 # Losing compiler, so override with the script. 3880 # FIXME: It is wrong to rewrite CC. 3881 # But if we don't then we get into trouble of one sort or another. 3882 # A longer-term fix would be to have automake use am__CC in this case, 3883 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3884 CC="$am_aux_dir/compile $CC" 3885 fi 3886 ac_ext=c 3887 ac_cpp='$CPP $CPPFLAGS' 3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3891 3892 3893 depcc="$CC" am_compiler_list= 3894 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3896 $as_echo_n "checking dependency style of $depcc... " >&6; } 3897 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3898 $as_echo_n "(cached) " >&6 3899 else 3900 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3901 # We make a subdir and do the tests there. Otherwise we can end up 3902 # making bogus files that we don't know about and never remove. For 3903 # instance it was reported that on HP-UX the gcc test will end up 3904 # making a dummy file named 'D' -- because '-MD' means "put the output 3905 # in D". 3906 rm -rf conftest.dir 3907 mkdir conftest.dir 3908 # Copy depcomp to subdir because otherwise we won't find it if we're 3909 # using a relative directory. 3910 cp "$am_depcomp" conftest.dir 3911 cd conftest.dir 3912 # We will build objects and dependencies in a subdirectory because 3913 # it helps to detect inapplicable dependency modes. For instance 3914 # both Tru64's cc and ICC support -MD to output dependencies as a 3915 # side effect of compilation, but ICC will put the dependencies in 3916 # the current directory while Tru64 will put them in the object 3917 # directory. 3918 mkdir sub 3919 3920 am_cv_CC_dependencies_compiler_type=none 3921 if test "$am_compiler_list" = ""; then 3922 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3923 fi 3924 am__universal=false 3925 case " $depcc " in #( 3926 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3927 esac 3928 3929 for depmode in $am_compiler_list; do 3930 # Setup a source with many dependencies, because some compilers 3931 # like to wrap large dependency lists on column 80 (with \), and 3932 # we should not choose a depcomp mode which is confused by this. 3933 # 3934 # We need to recreate these files for each test, as the compiler may 3935 # overwrite some of them when testing with obscure command lines. 3936 # This happens at least with the AIX C compiler. 3937 : > sub/conftest.c 3938 for i in 1 2 3 4 5 6; do 3939 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3940 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3941 # Solaris 10 /bin/sh. 3942 echo '/* dummy */' > sub/conftst$i.h 3943 done 3944 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3945 3946 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3947 # mode. It turns out that the SunPro C++ compiler does not properly 3948 # handle '-M -o', and we need to detect this. Also, some Intel 3949 # versions had trouble with output in subdirs. 3950 am__obj=sub/conftest.${OBJEXT-o} 3951 am__minus_obj="-o $am__obj" 3952 case $depmode in 3953 gcc) 3954 # This depmode causes a compiler race in universal mode. 3955 test "$am__universal" = false || continue 3956 ;; 3957 nosideeffect) 3958 # After this tag, mechanisms are not by side-effect, so they'll 3959 # only be used when explicitly requested. 3960 if test "x$enable_dependency_tracking" = xyes; then 3961 continue 3962 else 3963 break 3964 fi 3965 ;; 3966 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3967 # This compiler won't grok '-c -o', but also, the minuso test has 3968 # not run yet. These depmodes are late enough in the game, and 3969 # so weak that their functioning should not be impacted. 3970 am__obj=conftest.${OBJEXT-o} 3971 am__minus_obj= 3972 ;; 3973 none) break ;; 3974 esac 3975 if depmode=$depmode \ 3976 source=sub/conftest.c object=$am__obj \ 3977 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3978 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3979 >/dev/null 2>conftest.err && 3980 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3981 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3982 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3983 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3984 # icc doesn't choke on unknown options, it will just issue warnings 3985 # or remarks (even with -Werror). So we grep stderr for any message 3986 # that says an option was ignored or not supported. 3987 # When given -MP, icc 7.0 and 7.1 complain thusly: 3988 # icc: Command line warning: ignoring option '-M'; no argument required 3989 # The diagnosis changed in icc 8.0: 3990 # icc: Command line remark: option '-MP' not supported 3991 if (grep 'ignoring option' conftest.err || 3992 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3993 am_cv_CC_dependencies_compiler_type=$depmode 3994 break 3995 fi 3996 fi 3997 done 3998 3999 cd .. 4000 rm -rf conftest.dir 4001 else 4002 am_cv_CC_dependencies_compiler_type=none 4003 fi 4004 4005 fi 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4007 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4008 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4009 4010 if 4011 test "x$enable_dependency_tracking" != xno \ 4012 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4013 am__fastdepCC_TRUE= 4014 am__fastdepCC_FALSE='#' 4015 else 4016 am__fastdepCC_TRUE='#' 4017 am__fastdepCC_FALSE= 4018 fi 4019 4020 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4022 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4023 if ${ac_cv_prog_cc_c99+:} false; then : 4024 $as_echo_n "(cached) " >&6 4025 else 4026 ac_cv_prog_cc_c99=no 4027 ac_save_CC=$CC 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029 /* end confdefs.h. */ 4030 #include <stdarg.h> 4031 #include <stdbool.h> 4032 #include <stdlib.h> 4033 #include <wchar.h> 4034 #include <stdio.h> 4035 4036 // Check varargs macros. These examples are taken from C99 6.10.3.5. 4037 #define debug(...) fprintf (stderr, __VA_ARGS__) 4038 #define showlist(...) puts (#__VA_ARGS__) 4039 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4040 static void 4041 test_varargs_macros (void) 4042 { 4043 int x = 1234; 4044 int y = 5678; 4045 debug ("Flag"); 4046 debug ("X = %d\n", x); 4047 showlist (The first, second, and third items.); 4048 report (x>y, "x is %d but y is %d", x, y); 4049 } 4050 4051 // Check long long types. 4052 #define BIG64 18446744073709551615ull 4053 #define BIG32 4294967295ul 4054 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4055 #if !BIG_OK 4056 your preprocessor is broken; 4057 #endif 4058 #if BIG_OK 4059 #else 4060 your preprocessor is broken; 4061 #endif 4062 static long long int bignum = -9223372036854775807LL; 4063 static unsigned long long int ubignum = BIG64; 4064 4065 struct incomplete_array 4066 { 4067 int datasize; 4068 double data[]; 4069 }; 4070 4071 struct named_init { 4072 int number; 4073 const wchar_t *name; 4074 double average; 4075 }; 4076 4077 typedef const char *ccp; 4078 4079 static inline int 4080 test_restrict (ccp restrict text) 4081 { 4082 // See if C++-style comments work. 4083 // Iterate through items via the restricted pointer. 4084 // Also check for declarations in for loops. 4085 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4086 continue; 4087 return 0; 4088 } 4089 4090 // Check varargs and va_copy. 4091 static void 4092 test_varargs (const char *format, ...) 4093 { 4094 va_list args; 4095 va_start (args, format); 4096 va_list args_copy; 4097 va_copy (args_copy, args); 4098 4099 const char *str; 4100 int number; 4101 float fnumber; 4102 4103 while (*format) 4104 { 4105 switch (*format++) 4106 { 4107 case 's': // string 4108 str = va_arg (args_copy, const char *); 4109 break; 4110 case 'd': // int 4111 number = va_arg (args_copy, int); 4112 break; 4113 case 'f': // float 4114 fnumber = va_arg (args_copy, double); 4115 break; 4116 default: 4117 break; 4118 } 4119 } 4120 va_end (args_copy); 4121 va_end (args); 4122 } 4123 4124 int 4125 main () 4126 { 4127 4128 // Check bool. 4129 _Bool success = false; 4130 4131 // Check restrict. 4132 if (test_restrict ("String literal") == 0) 4133 success = true; 4134 char *restrict newvar = "Another string"; 4135 4136 // Check varargs. 4137 test_varargs ("s, d' f .", "string", 65, 34.234); 4138 test_varargs_macros (); 4139 4140 // Check flexible array members. 4141 struct incomplete_array *ia = 4142 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4143 ia->datasize = 10; 4144 for (int i = 0; i < ia->datasize; ++i) 4145 ia->data[i] = i * 1.234; 4146 4147 // Check named initializers. 4148 struct named_init ni = { 4149 .number = 34, 4150 .name = L"Test wide string", 4151 .average = 543.34343, 4152 }; 4153 4154 ni.number = 58; 4155 4156 int dynamic_array[ni.number]; 4157 dynamic_array[ni.number - 1] = 543; 4158 4159 // work around unused variable warnings 4160 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4161 || dynamic_array[ni.number - 1] != 543); 4162 4163 ; 4164 return 0; 4165 } 4166 _ACEOF 4167 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4168 do 4169 CC="$ac_save_CC $ac_arg" 4170 if ac_fn_c_try_compile "$LINENO"; then : 4171 ac_cv_prog_cc_c99=$ac_arg 4172 fi 4173 rm -f core conftest.err conftest.$ac_objext 4174 test "x$ac_cv_prog_cc_c99" != "xno" && break 4175 done 4176 rm -f conftest.$ac_ext 4177 CC=$ac_save_CC 4178 4179 fi 4180 # AC_CACHE_VAL 4181 case "x$ac_cv_prog_cc_c99" in 4182 x) 4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4184 $as_echo "none needed" >&6; } ;; 4185 xno) 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4187 $as_echo "unsupported" >&6; } ;; 4188 *) 4189 CC="$CC $ac_cv_prog_cc_c99" 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4191 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4192 esac 4193 if test "x$ac_cv_prog_cc_c99" != xno; then : 4194 4195 fi 4196 4197 4198 4199 ac_ext=c 4200 ac_cpp='$CPP $CPPFLAGS' 4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4205 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4206 # On Suns, sometimes $CPP names a directory. 4207 if test -n "$CPP" && test -d "$CPP"; then 4208 CPP= 4209 fi 4210 if test -z "$CPP"; then 4211 if ${ac_cv_prog_CPP+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213 else 4214 # Double quotes because CPP needs to be expanded 4215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4216 do 4217 ac_preproc_ok=false 4218 for ac_c_preproc_warn_flag in '' yes 4219 do 4220 # Use a header file that comes with gcc, so configuring glibc 4221 # with a fresh cross-compiler works. 4222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4223 # <limits.h> exists even on freestanding compilers. 4224 # On the NeXT, cc -E runs the code through the compiler's parser, 4225 # not just through cpp. "Syntax error" is here to catch this case. 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227 /* end confdefs.h. */ 4228 #ifdef __STDC__ 4229 # include <limits.h> 4230 #else 4231 # include <assert.h> 4232 #endif 4233 Syntax error 4234 _ACEOF 4235 if ac_fn_c_try_cpp "$LINENO"; then : 4236 4237 else 4238 # Broken: fails on valid input. 4239 continue 4240 fi 4241 rm -f conftest.err conftest.i conftest.$ac_ext 4242 4243 # OK, works on sane cases. Now check whether nonexistent headers 4244 # can be detected and how. 4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246 /* end confdefs.h. */ 4247 #include <ac_nonexistent.h> 4248 _ACEOF 4249 if ac_fn_c_try_cpp "$LINENO"; then : 4250 # Broken: success on invalid input. 4251 continue 4252 else 4253 # Passes both tests. 4254 ac_preproc_ok=: 4255 break 4256 fi 4257 rm -f conftest.err conftest.i conftest.$ac_ext 4258 4259 done 4260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4261 rm -f conftest.i conftest.err conftest.$ac_ext 4262 if $ac_preproc_ok; then : 4263 break 4264 fi 4265 4266 done 4267 ac_cv_prog_CPP=$CPP 4268 4269 fi 4270 CPP=$ac_cv_prog_CPP 4271 else 4272 ac_cv_prog_CPP=$CPP 4273 fi 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4275 $as_echo "$CPP" >&6; } 4276 ac_preproc_ok=false 4277 for ac_c_preproc_warn_flag in '' yes 4278 do 4279 # Use a header file that comes with gcc, so configuring glibc 4280 # with a fresh cross-compiler works. 4281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4282 # <limits.h> exists even on freestanding compilers. 4283 # On the NeXT, cc -E runs the code through the compiler's parser, 4284 # not just through cpp. "Syntax error" is here to catch this case. 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286 /* end confdefs.h. */ 4287 #ifdef __STDC__ 4288 # include <limits.h> 4289 #else 4290 # include <assert.h> 4291 #endif 4292 Syntax error 4293 _ACEOF 4294 if ac_fn_c_try_cpp "$LINENO"; then : 4295 4296 else 4297 # Broken: fails on valid input. 4298 continue 4299 fi 4300 rm -f conftest.err conftest.i conftest.$ac_ext 4301 4302 # OK, works on sane cases. Now check whether nonexistent headers 4303 # can be detected and how. 4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4305 /* end confdefs.h. */ 4306 #include <ac_nonexistent.h> 4307 _ACEOF 4308 if ac_fn_c_try_cpp "$LINENO"; then : 4309 # Broken: success on invalid input. 4310 continue 4311 else 4312 # Passes both tests. 4313 ac_preproc_ok=: 4314 break 4315 fi 4316 rm -f conftest.err conftest.i conftest.$ac_ext 4317 4318 done 4319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4320 rm -f conftest.i conftest.err conftest.$ac_ext 4321 if $ac_preproc_ok; then : 4322 4323 else 4324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4326 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4327 See \`config.log' for more details" "$LINENO" 5; } 4328 fi 4329 4330 ac_ext=c 4331 ac_cpp='$CPP $CPPFLAGS' 4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4335 4336 4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4338 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4339 if ${ac_cv_path_GREP+:} false; then : 4340 $as_echo_n "(cached) " >&6 4341 else 4342 if test -z "$GREP"; then 4343 ac_path_GREP_found=false 4344 # Loop through the user's path and test for each of PROGNAME-LIST 4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4347 do 4348 IFS=$as_save_IFS 4349 test -z "$as_dir" && as_dir=. 4350 for ac_prog in grep ggrep; do 4351 for ac_exec_ext in '' $ac_executable_extensions; do 4352 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4353 as_fn_executable_p "$ac_path_GREP" || continue 4354 # Check for GNU ac_path_GREP and select it if it is found. 4355 # Check for GNU $ac_path_GREP 4356 case `"$ac_path_GREP" --version 2>&1` in 4357 *GNU*) 4358 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4359 *) 4360 ac_count=0 4361 $as_echo_n 0123456789 >"conftest.in" 4362 while : 4363 do 4364 cat "conftest.in" "conftest.in" >"conftest.tmp" 4365 mv "conftest.tmp" "conftest.in" 4366 cp "conftest.in" "conftest.nl" 4367 $as_echo 'GREP' >> "conftest.nl" 4368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4370 as_fn_arith $ac_count + 1 && ac_count=$as_val 4371 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4372 # Best one so far, save it but keep looking for a better one 4373 ac_cv_path_GREP="$ac_path_GREP" 4374 ac_path_GREP_max=$ac_count 4375 fi 4376 # 10*(2^10) chars as input seems more than enough 4377 test $ac_count -gt 10 && break 4378 done 4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4380 esac 4381 4382 $ac_path_GREP_found && break 3 4383 done 4384 done 4385 done 4386 IFS=$as_save_IFS 4387 if test -z "$ac_cv_path_GREP"; then 4388 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4389 fi 4390 else 4391 ac_cv_path_GREP=$GREP 4392 fi 4393 4394 fi 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4396 $as_echo "$ac_cv_path_GREP" >&6; } 4397 GREP="$ac_cv_path_GREP" 4398 4399 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4401 $as_echo_n "checking for egrep... " >&6; } 4402 if ${ac_cv_path_EGREP+:} false; then : 4403 $as_echo_n "(cached) " >&6 4404 else 4405 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4406 then ac_cv_path_EGREP="$GREP -E" 4407 else 4408 if test -z "$EGREP"; then 4409 ac_path_EGREP_found=false 4410 # Loop through the user's path and test for each of PROGNAME-LIST 4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4413 do 4414 IFS=$as_save_IFS 4415 test -z "$as_dir" && as_dir=. 4416 for ac_prog in egrep; do 4417 for ac_exec_ext in '' $ac_executable_extensions; do 4418 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4419 as_fn_executable_p "$ac_path_EGREP" || continue 4420 # Check for GNU ac_path_EGREP and select it if it is found. 4421 # Check for GNU $ac_path_EGREP 4422 case `"$ac_path_EGREP" --version 2>&1` in 4423 *GNU*) 4424 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4425 *) 4426 ac_count=0 4427 $as_echo_n 0123456789 >"conftest.in" 4428 while : 4429 do 4430 cat "conftest.in" "conftest.in" >"conftest.tmp" 4431 mv "conftest.tmp" "conftest.in" 4432 cp "conftest.in" "conftest.nl" 4433 $as_echo 'EGREP' >> "conftest.nl" 4434 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4436 as_fn_arith $ac_count + 1 && ac_count=$as_val 4437 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4438 # Best one so far, save it but keep looking for a better one 4439 ac_cv_path_EGREP="$ac_path_EGREP" 4440 ac_path_EGREP_max=$ac_count 4441 fi 4442 # 10*(2^10) chars as input seems more than enough 4443 test $ac_count -gt 10 && break 4444 done 4445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4446 esac 4447 4448 $ac_path_EGREP_found && break 3 4449 done 4450 done 4451 done 4452 IFS=$as_save_IFS 4453 if test -z "$ac_cv_path_EGREP"; then 4454 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4455 fi 4456 else 4457 ac_cv_path_EGREP=$EGREP 4458 fi 4459 4460 fi 4461 fi 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4463 $as_echo "$ac_cv_path_EGREP" >&6; } 4464 EGREP="$ac_cv_path_EGREP" 4465 4466 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4468 $as_echo_n "checking for ANSI C header files... " >&6; } 4469 if ${ac_cv_header_stdc+:} false; then : 4470 $as_echo_n "(cached) " >&6 4471 else 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4473 /* end confdefs.h. */ 4474 #include <stdlib.h> 4475 #include <stdarg.h> 4476 #include <string.h> 4477 #include <float.h> 4478 4479 int 4480 main () 4481 { 4482 4483 ; 4484 return 0; 4485 } 4486 _ACEOF 4487 if ac_fn_c_try_compile "$LINENO"; then : 4488 ac_cv_header_stdc=yes 4489 else 4490 ac_cv_header_stdc=no 4491 fi 4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4493 4494 if test $ac_cv_header_stdc = yes; then 4495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4497 /* end confdefs.h. */ 4498 #include <string.h> 4499 4500 _ACEOF 4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4502 $EGREP "memchr" >/dev/null 2>&1; then : 4503 4504 else 4505 ac_cv_header_stdc=no 4506 fi 4507 rm -f conftest* 4508 4509 fi 4510 4511 if test $ac_cv_header_stdc = yes; then 4512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4514 /* end confdefs.h. */ 4515 #include <stdlib.h> 4516 4517 _ACEOF 4518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4519 $EGREP "free" >/dev/null 2>&1; then : 4520 4521 else 4522 ac_cv_header_stdc=no 4523 fi 4524 rm -f conftest* 4525 4526 fi 4527 4528 if test $ac_cv_header_stdc = yes; then 4529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4530 if test "$cross_compiling" = yes; then : 4531 : 4532 else 4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534 /* end confdefs.h. */ 4535 #include <ctype.h> 4536 #include <stdlib.h> 4537 #if ((' ' & 0x0FF) == 0x020) 4538 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4539 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4540 #else 4541 # define ISLOWER(c) \ 4542 (('a' <= (c) && (c) <= 'i') \ 4543 || ('j' <= (c) && (c) <= 'r') \ 4544 || ('s' <= (c) && (c) <= 'z')) 4545 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4546 #endif 4547 4548 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4549 int 4550 main () 4551 { 4552 int i; 4553 for (i = 0; i < 256; i++) 4554 if (XOR (islower (i), ISLOWER (i)) 4555 || toupper (i) != TOUPPER (i)) 4556 return 2; 4557 return 0; 4558 } 4559 _ACEOF 4560 if ac_fn_c_try_run "$LINENO"; then : 4561 4562 else 4563 ac_cv_header_stdc=no 4564 fi 4565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4566 conftest.$ac_objext conftest.beam conftest.$ac_ext 4567 fi 4568 4569 fi 4570 fi 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4572 $as_echo "$ac_cv_header_stdc" >&6; } 4573 if test $ac_cv_header_stdc = yes; then 4574 4575 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4576 4577 fi 4578 4579 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4580 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4581 inttypes.h stdint.h unistd.h 4582 do : 4583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4584 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4585 " 4586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4587 cat >>confdefs.h <<_ACEOF 4588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4589 _ACEOF 4590 4591 fi 4592 4593 done 4594 4595 4596 4597 4598 4599 4600 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4601 if test "x$ac_cv_have_decl___clang__" = xyes; then : 4602 CLANGCC="yes" 4603 else 4604 CLANGCC="no" 4605 fi 4606 4607 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4608 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4609 INTELCC="yes" 4610 else 4611 INTELCC="no" 4612 fi 4613 4614 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4615 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4616 SUNCC="yes" 4617 else 4618 SUNCC="no" 4619 fi 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4630 if test -n "$ac_tool_prefix"; then 4631 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4632 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4634 $as_echo_n "checking for $ac_word... " >&6; } 4635 if ${ac_cv_path_PKG_CONFIG+:} false; then : 4636 $as_echo_n "(cached) " >&6 4637 else 4638 case $PKG_CONFIG in 4639 [\\/]* | ?:[\\/]*) 4640 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4641 ;; 4642 *) 4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4644 for as_dir in $PATH 4645 do 4646 IFS=$as_save_IFS 4647 test -z "$as_dir" && as_dir=. 4648 for ac_exec_ext in '' $ac_executable_extensions; do 4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4650 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4652 break 2 4653 fi 4654 done 4655 done 4656 IFS=$as_save_IFS 4657 4658 ;; 4659 esac 4660 fi 4661 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4662 if test -n "$PKG_CONFIG"; then 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4664 $as_echo "$PKG_CONFIG" >&6; } 4665 else 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4667 $as_echo "no" >&6; } 4668 fi 4669 4670 4671 fi 4672 if test -z "$ac_cv_path_PKG_CONFIG"; then 4673 ac_pt_PKG_CONFIG=$PKG_CONFIG 4674 # Extract the first word of "pkg-config", so it can be a program name with args. 4675 set dummy pkg-config; ac_word=$2 4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4677 $as_echo_n "checking for $ac_word... " >&6; } 4678 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4679 $as_echo_n "(cached) " >&6 4680 else 4681 case $ac_pt_PKG_CONFIG in 4682 [\\/]* | ?:[\\/]*) 4683 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4684 ;; 4685 *) 4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4687 for as_dir in $PATH 4688 do 4689 IFS=$as_save_IFS 4690 test -z "$as_dir" && as_dir=. 4691 for ac_exec_ext in '' $ac_executable_extensions; do 4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4693 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4695 break 2 4696 fi 4697 done 4698 done 4699 IFS=$as_save_IFS 4700 4701 ;; 4702 esac 4703 fi 4704 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4705 if test -n "$ac_pt_PKG_CONFIG"; then 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4707 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4708 else 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4710 $as_echo "no" >&6; } 4711 fi 4712 4713 if test "x$ac_pt_PKG_CONFIG" = x; then 4714 PKG_CONFIG="" 4715 else 4716 case $cross_compiling:$ac_tool_warned in 4717 yes:) 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4720 ac_tool_warned=yes ;; 4721 esac 4722 PKG_CONFIG=$ac_pt_PKG_CONFIG 4723 fi 4724 else 4725 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4726 fi 4727 4728 fi 4729 if test -n "$PKG_CONFIG"; then 4730 _pkg_min_version=0.9.0 4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4732 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4733 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4735 $as_echo "yes" >&6; } 4736 else 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4738 $as_echo "no" >&6; } 4739 PKG_CONFIG="" 4740 fi 4741 fi 4742 # Make sure we can run config.sub. 4743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4744 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4745 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4747 $as_echo_n "checking build system type... " >&6; } 4748 if ${ac_cv_build+:} false; then : 4749 $as_echo_n "(cached) " >&6 4750 else 4751 ac_build_alias=$build_alias 4752 test "x$ac_build_alias" = x && 4753 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4754 test "x$ac_build_alias" = x && 4755 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4757 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4758 4759 fi 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4761 $as_echo "$ac_cv_build" >&6; } 4762 case $ac_cv_build in 4763 *-*-*) ;; 4764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4765 esac 4766 build=$ac_cv_build 4767 ac_save_IFS=$IFS; IFS='-' 4768 set x $ac_cv_build 4769 shift 4770 build_cpu=$1 4771 build_vendor=$2 4772 shift; shift 4773 # Remember, the first character of IFS is used to create $*, 4774 # except with old shells: 4775 build_os=$* 4776 IFS=$ac_save_IFS 4777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4778 4779 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4781 $as_echo_n "checking host system type... " >&6; } 4782 if ${ac_cv_host+:} false; then : 4783 $as_echo_n "(cached) " >&6 4784 else 4785 if test "x$host_alias" = x; then 4786 ac_cv_host=$ac_cv_build 4787 else 4788 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4790 fi 4791 4792 fi 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4794 $as_echo "$ac_cv_host" >&6; } 4795 case $ac_cv_host in 4796 *-*-*) ;; 4797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4798 esac 4799 host=$ac_cv_host 4800 ac_save_IFS=$IFS; IFS='-' 4801 set x $ac_cv_host 4802 shift 4803 host_cpu=$1 4804 host_vendor=$2 4805 shift; shift 4806 # Remember, the first character of IFS is used to create $*, 4807 # except with old shells: 4808 host_os=$* 4809 IFS=$ac_save_IFS 4810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4811 4812 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4814 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4815 if ${ac_cv_path_SED+:} false; then : 4816 $as_echo_n "(cached) " >&6 4817 else 4818 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4819 for ac_i in 1 2 3 4 5 6 7; do 4820 ac_script="$ac_script$as_nl$ac_script" 4821 done 4822 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4823 { ac_script=; unset ac_script;} 4824 if test -z "$SED"; then 4825 ac_path_SED_found=false 4826 # Loop through the user's path and test for each of PROGNAME-LIST 4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4828 for as_dir in $PATH 4829 do 4830 IFS=$as_save_IFS 4831 test -z "$as_dir" && as_dir=. 4832 for ac_prog in sed gsed; do 4833 for ac_exec_ext in '' $ac_executable_extensions; do 4834 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4835 as_fn_executable_p "$ac_path_SED" || continue 4836 # Check for GNU ac_path_SED and select it if it is found. 4837 # Check for GNU $ac_path_SED 4838 case `"$ac_path_SED" --version 2>&1` in 4839 *GNU*) 4840 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4841 *) 4842 ac_count=0 4843 $as_echo_n 0123456789 >"conftest.in" 4844 while : 4845 do 4846 cat "conftest.in" "conftest.in" >"conftest.tmp" 4847 mv "conftest.tmp" "conftest.in" 4848 cp "conftest.in" "conftest.nl" 4849 $as_echo '' >> "conftest.nl" 4850 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4852 as_fn_arith $ac_count + 1 && ac_count=$as_val 4853 if test $ac_count -gt ${ac_path_SED_max-0}; then 4854 # Best one so far, save it but keep looking for a better one 4855 ac_cv_path_SED="$ac_path_SED" 4856 ac_path_SED_max=$ac_count 4857 fi 4858 # 10*(2^10) chars as input seems more than enough 4859 test $ac_count -gt 10 && break 4860 done 4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4862 esac 4863 4864 $ac_path_SED_found && break 3 4865 done 4866 done 4867 done 4868 IFS=$as_save_IFS 4869 if test -z "$ac_cv_path_SED"; then 4870 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4871 fi 4872 else 4873 ac_cv_path_SED=$SED 4874 fi 4875 4876 fi 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4878 $as_echo "$ac_cv_path_SED" >&6; } 4879 SED="$ac_cv_path_SED" 4880 rm -f conftest.sed 4881 4882 4883 4884 4885 4886 4887 # Check whether --enable-selective-werror was given. 4888 if test "${enable_selective_werror+set}" = set; then : 4889 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4890 else 4891 SELECTIVE_WERROR=yes 4892 fi 4893 4894 4895 4896 4897 4898 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4899 if test "x$SUNCC" = "xyes"; then 4900 BASE_CFLAGS="-v" 4901 else 4902 BASE_CFLAGS="" 4903 fi 4904 4905 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 xorg_testset_save_CFLAGS="$CFLAGS" 4920 4921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4924 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4925 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927 else 4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4929 /* end confdefs.h. */ 4930 int i; 4931 _ACEOF 4932 if ac_fn_c_try_compile "$LINENO"; then : 4933 xorg_cv_cc_flag_unknown_warning_option=yes 4934 else 4935 xorg_cv_cc_flag_unknown_warning_option=no 4936 fi 4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4938 fi 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4940 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4942 CFLAGS="$xorg_testset_save_CFLAGS" 4943 fi 4944 4945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4948 fi 4949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4951 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4952 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954 else 4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4956 /* end confdefs.h. */ 4957 int i; 4958 _ACEOF 4959 if ac_fn_c_try_compile "$LINENO"; then : 4960 xorg_cv_cc_flag_unused_command_line_argument=yes 4961 else 4962 xorg_cv_cc_flag_unused_command_line_argument=no 4963 fi 4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4965 fi 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4967 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4969 CFLAGS="$xorg_testset_save_CFLAGS" 4970 fi 4971 4972 found="no" 4973 4974 if test $found = "no" ; then 4975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4977 fi 4978 4979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4981 fi 4982 4983 CFLAGS="$CFLAGS -Wall" 4984 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4986 $as_echo_n "checking if $CC supports -Wall... " >&6; } 4987 cacheid=xorg_cv_cc_flag__Wall 4988 if eval \${$cacheid+:} false; then : 4989 $as_echo_n "(cached) " >&6 4990 else 4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4992 /* end confdefs.h. */ 4993 int i; 4994 int 4995 main () 4996 { 4997 4998 ; 4999 return 0; 5000 } 5001 _ACEOF 5002 if ac_fn_c_try_link "$LINENO"; then : 5003 eval $cacheid=yes 5004 else 5005 eval $cacheid=no 5006 fi 5007 rm -f core conftest.err conftest.$ac_objext \ 5008 conftest$ac_exeext conftest.$ac_ext 5009 fi 5010 5011 5012 CFLAGS="$xorg_testset_save_CFLAGS" 5013 5014 eval supported=\$$cacheid 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5016 $as_echo "$supported" >&6; } 5017 if test "$supported" = "yes" ; then 5018 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5019 found="yes" 5020 fi 5021 fi 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 xorg_testset_save_CFLAGS="$CFLAGS" 5038 5039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5042 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5043 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5044 $as_echo_n "(cached) " >&6 5045 else 5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5047 /* end confdefs.h. */ 5048 int i; 5049 _ACEOF 5050 if ac_fn_c_try_compile "$LINENO"; then : 5051 xorg_cv_cc_flag_unknown_warning_option=yes 5052 else 5053 xorg_cv_cc_flag_unknown_warning_option=no 5054 fi 5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5056 fi 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5058 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5060 CFLAGS="$xorg_testset_save_CFLAGS" 5061 fi 5062 5063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5066 fi 5067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5069 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5070 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5071 $as_echo_n "(cached) " >&6 5072 else 5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5074 /* end confdefs.h. */ 5075 int i; 5076 _ACEOF 5077 if ac_fn_c_try_compile "$LINENO"; then : 5078 xorg_cv_cc_flag_unused_command_line_argument=yes 5079 else 5080 xorg_cv_cc_flag_unused_command_line_argument=no 5081 fi 5082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5083 fi 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5085 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5087 CFLAGS="$xorg_testset_save_CFLAGS" 5088 fi 5089 5090 found="no" 5091 5092 if test $found = "no" ; then 5093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5095 fi 5096 5097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5099 fi 5100 5101 CFLAGS="$CFLAGS -Wpointer-arith" 5102 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5104 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5105 cacheid=xorg_cv_cc_flag__Wpointer_arith 5106 if eval \${$cacheid+:} false; then : 5107 $as_echo_n "(cached) " >&6 5108 else 5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5110 /* end confdefs.h. */ 5111 int i; 5112 int 5113 main () 5114 { 5115 5116 ; 5117 return 0; 5118 } 5119 _ACEOF 5120 if ac_fn_c_try_link "$LINENO"; then : 5121 eval $cacheid=yes 5122 else 5123 eval $cacheid=no 5124 fi 5125 rm -f core conftest.err conftest.$ac_objext \ 5126 conftest$ac_exeext conftest.$ac_ext 5127 fi 5128 5129 5130 CFLAGS="$xorg_testset_save_CFLAGS" 5131 5132 eval supported=\$$cacheid 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5134 $as_echo "$supported" >&6; } 5135 if test "$supported" = "yes" ; then 5136 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5137 found="yes" 5138 fi 5139 fi 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 xorg_testset_save_CFLAGS="$CFLAGS" 5156 5157 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5160 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5161 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5162 $as_echo_n "(cached) " >&6 5163 else 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5165 /* end confdefs.h. */ 5166 int i; 5167 _ACEOF 5168 if ac_fn_c_try_compile "$LINENO"; then : 5169 xorg_cv_cc_flag_unknown_warning_option=yes 5170 else 5171 xorg_cv_cc_flag_unknown_warning_option=no 5172 fi 5173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5174 fi 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5176 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5178 CFLAGS="$xorg_testset_save_CFLAGS" 5179 fi 5180 5181 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5184 fi 5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5187 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5188 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190 else 5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5192 /* end confdefs.h. */ 5193 int i; 5194 _ACEOF 5195 if ac_fn_c_try_compile "$LINENO"; then : 5196 xorg_cv_cc_flag_unused_command_line_argument=yes 5197 else 5198 xorg_cv_cc_flag_unused_command_line_argument=no 5199 fi 5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5201 fi 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5203 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5205 CFLAGS="$xorg_testset_save_CFLAGS" 5206 fi 5207 5208 found="no" 5209 5210 if test $found = "no" ; then 5211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5213 fi 5214 5215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5217 fi 5218 5219 CFLAGS="$CFLAGS -Wmissing-declarations" 5220 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5222 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5223 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5224 if eval \${$cacheid+:} false; then : 5225 $as_echo_n "(cached) " >&6 5226 else 5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5228 /* end confdefs.h. */ 5229 int i; 5230 int 5231 main () 5232 { 5233 5234 ; 5235 return 0; 5236 } 5237 _ACEOF 5238 if ac_fn_c_try_link "$LINENO"; then : 5239 eval $cacheid=yes 5240 else 5241 eval $cacheid=no 5242 fi 5243 rm -f core conftest.err conftest.$ac_objext \ 5244 conftest$ac_exeext conftest.$ac_ext 5245 fi 5246 5247 5248 CFLAGS="$xorg_testset_save_CFLAGS" 5249 5250 eval supported=\$$cacheid 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5252 $as_echo "$supported" >&6; } 5253 if test "$supported" = "yes" ; then 5254 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5255 found="yes" 5256 fi 5257 fi 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 xorg_testset_save_CFLAGS="$CFLAGS" 5274 5275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5278 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5279 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5280 $as_echo_n "(cached) " >&6 5281 else 5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5283 /* end confdefs.h. */ 5284 int i; 5285 _ACEOF 5286 if ac_fn_c_try_compile "$LINENO"; then : 5287 xorg_cv_cc_flag_unknown_warning_option=yes 5288 else 5289 xorg_cv_cc_flag_unknown_warning_option=no 5290 fi 5291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5292 fi 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5294 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5296 CFLAGS="$xorg_testset_save_CFLAGS" 5297 fi 5298 5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5302 fi 5303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5305 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5306 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5307 $as_echo_n "(cached) " >&6 5308 else 5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5310 /* end confdefs.h. */ 5311 int i; 5312 _ACEOF 5313 if ac_fn_c_try_compile "$LINENO"; then : 5314 xorg_cv_cc_flag_unused_command_line_argument=yes 5315 else 5316 xorg_cv_cc_flag_unused_command_line_argument=no 5317 fi 5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5319 fi 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5321 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5323 CFLAGS="$xorg_testset_save_CFLAGS" 5324 fi 5325 5326 found="no" 5327 5328 if test $found = "no" ; then 5329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5331 fi 5332 5333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5335 fi 5336 5337 CFLAGS="$CFLAGS -Wformat=2" 5338 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5340 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5341 cacheid=xorg_cv_cc_flag__Wformat_2 5342 if eval \${$cacheid+:} false; then : 5343 $as_echo_n "(cached) " >&6 5344 else 5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5346 /* end confdefs.h. */ 5347 int i; 5348 int 5349 main () 5350 { 5351 5352 ; 5353 return 0; 5354 } 5355 _ACEOF 5356 if ac_fn_c_try_link "$LINENO"; then : 5357 eval $cacheid=yes 5358 else 5359 eval $cacheid=no 5360 fi 5361 rm -f core conftest.err conftest.$ac_objext \ 5362 conftest$ac_exeext conftest.$ac_ext 5363 fi 5364 5365 5366 CFLAGS="$xorg_testset_save_CFLAGS" 5367 5368 eval supported=\$$cacheid 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5370 $as_echo "$supported" >&6; } 5371 if test "$supported" = "yes" ; then 5372 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5373 found="yes" 5374 fi 5375 fi 5376 5377 if test $found = "no" ; then 5378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5380 fi 5381 5382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5384 fi 5385 5386 CFLAGS="$CFLAGS -Wformat" 5387 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5389 $as_echo_n "checking if $CC supports -Wformat... " >&6; } 5390 cacheid=xorg_cv_cc_flag__Wformat 5391 if eval \${$cacheid+:} false; then : 5392 $as_echo_n "(cached) " >&6 5393 else 5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5395 /* end confdefs.h. */ 5396 int i; 5397 int 5398 main () 5399 { 5400 5401 ; 5402 return 0; 5403 } 5404 _ACEOF 5405 if ac_fn_c_try_link "$LINENO"; then : 5406 eval $cacheid=yes 5407 else 5408 eval $cacheid=no 5409 fi 5410 rm -f core conftest.err conftest.$ac_objext \ 5411 conftest$ac_exeext conftest.$ac_ext 5412 fi 5413 5414 5415 CFLAGS="$xorg_testset_save_CFLAGS" 5416 5417 eval supported=\$$cacheid 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5419 $as_echo "$supported" >&6; } 5420 if test "$supported" = "yes" ; then 5421 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5422 found="yes" 5423 fi 5424 fi 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 xorg_testset_save_CFLAGS="$CFLAGS" 5443 5444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5447 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5448 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5449 $as_echo_n "(cached) " >&6 5450 else 5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5452 /* end confdefs.h. */ 5453 int i; 5454 _ACEOF 5455 if ac_fn_c_try_compile "$LINENO"; then : 5456 xorg_cv_cc_flag_unknown_warning_option=yes 5457 else 5458 xorg_cv_cc_flag_unknown_warning_option=no 5459 fi 5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5461 fi 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5463 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5465 CFLAGS="$xorg_testset_save_CFLAGS" 5466 fi 5467 5468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5471 fi 5472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5474 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5475 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5476 $as_echo_n "(cached) " >&6 5477 else 5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479 /* end confdefs.h. */ 5480 int i; 5481 _ACEOF 5482 if ac_fn_c_try_compile "$LINENO"; then : 5483 xorg_cv_cc_flag_unused_command_line_argument=yes 5484 else 5485 xorg_cv_cc_flag_unused_command_line_argument=no 5486 fi 5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5488 fi 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5490 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5492 CFLAGS="$xorg_testset_save_CFLAGS" 5493 fi 5494 5495 found="no" 5496 5497 if test $found = "no" ; then 5498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5500 fi 5501 5502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5504 fi 5505 5506 CFLAGS="$CFLAGS -Wstrict-prototypes" 5507 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5509 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5510 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5511 if eval \${$cacheid+:} false; then : 5512 $as_echo_n "(cached) " >&6 5513 else 5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5515 /* end confdefs.h. */ 5516 int i; 5517 int 5518 main () 5519 { 5520 5521 ; 5522 return 0; 5523 } 5524 _ACEOF 5525 if ac_fn_c_try_link "$LINENO"; then : 5526 eval $cacheid=yes 5527 else 5528 eval $cacheid=no 5529 fi 5530 rm -f core conftest.err conftest.$ac_objext \ 5531 conftest$ac_exeext conftest.$ac_ext 5532 fi 5533 5534 5535 CFLAGS="$xorg_testset_save_CFLAGS" 5536 5537 eval supported=\$$cacheid 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5539 $as_echo "$supported" >&6; } 5540 if test "$supported" = "yes" ; then 5541 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5542 found="yes" 5543 fi 5544 fi 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 xorg_testset_save_CFLAGS="$CFLAGS" 5561 5562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5565 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5566 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5567 $as_echo_n "(cached) " >&6 5568 else 5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5570 /* end confdefs.h. */ 5571 int i; 5572 _ACEOF 5573 if ac_fn_c_try_compile "$LINENO"; then : 5574 xorg_cv_cc_flag_unknown_warning_option=yes 5575 else 5576 xorg_cv_cc_flag_unknown_warning_option=no 5577 fi 5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5579 fi 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5581 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5583 CFLAGS="$xorg_testset_save_CFLAGS" 5584 fi 5585 5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5589 fi 5590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5592 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5593 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595 else 5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5597 /* end confdefs.h. */ 5598 int i; 5599 _ACEOF 5600 if ac_fn_c_try_compile "$LINENO"; then : 5601 xorg_cv_cc_flag_unused_command_line_argument=yes 5602 else 5603 xorg_cv_cc_flag_unused_command_line_argument=no 5604 fi 5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5606 fi 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5608 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5610 CFLAGS="$xorg_testset_save_CFLAGS" 5611 fi 5612 5613 found="no" 5614 5615 if test $found = "no" ; then 5616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5618 fi 5619 5620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5622 fi 5623 5624 CFLAGS="$CFLAGS -Wmissing-prototypes" 5625 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5627 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5628 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5629 if eval \${$cacheid+:} false; then : 5630 $as_echo_n "(cached) " >&6 5631 else 5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5633 /* end confdefs.h. */ 5634 int i; 5635 int 5636 main () 5637 { 5638 5639 ; 5640 return 0; 5641 } 5642 _ACEOF 5643 if ac_fn_c_try_link "$LINENO"; then : 5644 eval $cacheid=yes 5645 else 5646 eval $cacheid=no 5647 fi 5648 rm -f core conftest.err conftest.$ac_objext \ 5649 conftest$ac_exeext conftest.$ac_ext 5650 fi 5651 5652 5653 CFLAGS="$xorg_testset_save_CFLAGS" 5654 5655 eval supported=\$$cacheid 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5657 $as_echo "$supported" >&6; } 5658 if test "$supported" = "yes" ; then 5659 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5660 found="yes" 5661 fi 5662 fi 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 xorg_testset_save_CFLAGS="$CFLAGS" 5679 5680 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5683 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5684 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686 else 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688 /* end confdefs.h. */ 5689 int i; 5690 _ACEOF 5691 if ac_fn_c_try_compile "$LINENO"; then : 5692 xorg_cv_cc_flag_unknown_warning_option=yes 5693 else 5694 xorg_cv_cc_flag_unknown_warning_option=no 5695 fi 5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5697 fi 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5699 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5701 CFLAGS="$xorg_testset_save_CFLAGS" 5702 fi 5703 5704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5707 fi 5708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5710 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5711 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5712 $as_echo_n "(cached) " >&6 5713 else 5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5715 /* end confdefs.h. */ 5716 int i; 5717 _ACEOF 5718 if ac_fn_c_try_compile "$LINENO"; then : 5719 xorg_cv_cc_flag_unused_command_line_argument=yes 5720 else 5721 xorg_cv_cc_flag_unused_command_line_argument=no 5722 fi 5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5724 fi 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5726 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5728 CFLAGS="$xorg_testset_save_CFLAGS" 5729 fi 5730 5731 found="no" 5732 5733 if test $found = "no" ; then 5734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5736 fi 5737 5738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5740 fi 5741 5742 CFLAGS="$CFLAGS -Wnested-externs" 5743 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5745 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5746 cacheid=xorg_cv_cc_flag__Wnested_externs 5747 if eval \${$cacheid+:} false; then : 5748 $as_echo_n "(cached) " >&6 5749 else 5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5751 /* end confdefs.h. */ 5752 int i; 5753 int 5754 main () 5755 { 5756 5757 ; 5758 return 0; 5759 } 5760 _ACEOF 5761 if ac_fn_c_try_link "$LINENO"; then : 5762 eval $cacheid=yes 5763 else 5764 eval $cacheid=no 5765 fi 5766 rm -f core conftest.err conftest.$ac_objext \ 5767 conftest$ac_exeext conftest.$ac_ext 5768 fi 5769 5770 5771 CFLAGS="$xorg_testset_save_CFLAGS" 5772 5773 eval supported=\$$cacheid 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5775 $as_echo "$supported" >&6; } 5776 if test "$supported" = "yes" ; then 5777 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5778 found="yes" 5779 fi 5780 fi 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 xorg_testset_save_CFLAGS="$CFLAGS" 5797 5798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5801 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5802 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5803 $as_echo_n "(cached) " >&6 5804 else 5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5806 /* end confdefs.h. */ 5807 int i; 5808 _ACEOF 5809 if ac_fn_c_try_compile "$LINENO"; then : 5810 xorg_cv_cc_flag_unknown_warning_option=yes 5811 else 5812 xorg_cv_cc_flag_unknown_warning_option=no 5813 fi 5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5815 fi 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5817 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5819 CFLAGS="$xorg_testset_save_CFLAGS" 5820 fi 5821 5822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5825 fi 5826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5828 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5829 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831 else 5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5833 /* end confdefs.h. */ 5834 int i; 5835 _ACEOF 5836 if ac_fn_c_try_compile "$LINENO"; then : 5837 xorg_cv_cc_flag_unused_command_line_argument=yes 5838 else 5839 xorg_cv_cc_flag_unused_command_line_argument=no 5840 fi 5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5842 fi 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5844 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5846 CFLAGS="$xorg_testset_save_CFLAGS" 5847 fi 5848 5849 found="no" 5850 5851 if test $found = "no" ; then 5852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5854 fi 5855 5856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5858 fi 5859 5860 CFLAGS="$CFLAGS -Wbad-function-cast" 5861 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5863 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5864 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5865 if eval \${$cacheid+:} false; then : 5866 $as_echo_n "(cached) " >&6 5867 else 5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5869 /* end confdefs.h. */ 5870 int i; 5871 int 5872 main () 5873 { 5874 5875 ; 5876 return 0; 5877 } 5878 _ACEOF 5879 if ac_fn_c_try_link "$LINENO"; then : 5880 eval $cacheid=yes 5881 else 5882 eval $cacheid=no 5883 fi 5884 rm -f core conftest.err conftest.$ac_objext \ 5885 conftest$ac_exeext conftest.$ac_ext 5886 fi 5887 5888 5889 CFLAGS="$xorg_testset_save_CFLAGS" 5890 5891 eval supported=\$$cacheid 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5893 $as_echo "$supported" >&6; } 5894 if test "$supported" = "yes" ; then 5895 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5896 found="yes" 5897 fi 5898 fi 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 xorg_testset_save_CFLAGS="$CFLAGS" 5915 5916 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5919 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5920 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5921 $as_echo_n "(cached) " >&6 5922 else 5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924 /* end confdefs.h. */ 5925 int i; 5926 _ACEOF 5927 if ac_fn_c_try_compile "$LINENO"; then : 5928 xorg_cv_cc_flag_unknown_warning_option=yes 5929 else 5930 xorg_cv_cc_flag_unknown_warning_option=no 5931 fi 5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5933 fi 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5935 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5937 CFLAGS="$xorg_testset_save_CFLAGS" 5938 fi 5939 5940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5943 fi 5944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5946 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5947 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5948 $as_echo_n "(cached) " >&6 5949 else 5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5951 /* end confdefs.h. */ 5952 int i; 5953 _ACEOF 5954 if ac_fn_c_try_compile "$LINENO"; then : 5955 xorg_cv_cc_flag_unused_command_line_argument=yes 5956 else 5957 xorg_cv_cc_flag_unused_command_line_argument=no 5958 fi 5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5960 fi 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5962 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5964 CFLAGS="$xorg_testset_save_CFLAGS" 5965 fi 5966 5967 found="no" 5968 5969 if test $found = "no" ; then 5970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5972 fi 5973 5974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5976 fi 5977 5978 CFLAGS="$CFLAGS -Wold-style-definition" 5979 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5981 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5982 cacheid=xorg_cv_cc_flag__Wold_style_definition 5983 if eval \${$cacheid+:} false; then : 5984 $as_echo_n "(cached) " >&6 5985 else 5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5987 /* end confdefs.h. */ 5988 int i; 5989 int 5990 main () 5991 { 5992 5993 ; 5994 return 0; 5995 } 5996 _ACEOF 5997 if ac_fn_c_try_link "$LINENO"; then : 5998 eval $cacheid=yes 5999 else 6000 eval $cacheid=no 6001 fi 6002 rm -f core conftest.err conftest.$ac_objext \ 6003 conftest$ac_exeext conftest.$ac_ext 6004 fi 6005 6006 6007 CFLAGS="$xorg_testset_save_CFLAGS" 6008 6009 eval supported=\$$cacheid 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6011 $as_echo "$supported" >&6; } 6012 if test "$supported" = "yes" ; then 6013 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6014 found="yes" 6015 fi 6016 fi 6017 6018 if test $found = "no" ; then 6019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6021 fi 6022 6023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6025 fi 6026 6027 CFLAGS="$CFLAGS -fd" 6028 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6030 $as_echo_n "checking if $CC supports -fd... " >&6; } 6031 cacheid=xorg_cv_cc_flag__fd 6032 if eval \${$cacheid+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034 else 6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6036 /* end confdefs.h. */ 6037 int i; 6038 int 6039 main () 6040 { 6041 6042 ; 6043 return 0; 6044 } 6045 _ACEOF 6046 if ac_fn_c_try_link "$LINENO"; then : 6047 eval $cacheid=yes 6048 else 6049 eval $cacheid=no 6050 fi 6051 rm -f core conftest.err conftest.$ac_objext \ 6052 conftest$ac_exeext conftest.$ac_ext 6053 fi 6054 6055 6056 CFLAGS="$xorg_testset_save_CFLAGS" 6057 6058 eval supported=\$$cacheid 6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6060 $as_echo "$supported" >&6; } 6061 if test "$supported" = "yes" ; then 6062 BASE_CFLAGS="$BASE_CFLAGS -fd" 6063 found="yes" 6064 fi 6065 fi 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 xorg_testset_save_CFLAGS="$CFLAGS" 6082 6083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6086 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6087 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6088 $as_echo_n "(cached) " >&6 6089 else 6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6091 /* end confdefs.h. */ 6092 int i; 6093 _ACEOF 6094 if ac_fn_c_try_compile "$LINENO"; then : 6095 xorg_cv_cc_flag_unknown_warning_option=yes 6096 else 6097 xorg_cv_cc_flag_unknown_warning_option=no 6098 fi 6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6100 fi 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6102 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6104 CFLAGS="$xorg_testset_save_CFLAGS" 6105 fi 6106 6107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6110 fi 6111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6113 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6114 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6115 $as_echo_n "(cached) " >&6 6116 else 6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6118 /* end confdefs.h. */ 6119 int i; 6120 _ACEOF 6121 if ac_fn_c_try_compile "$LINENO"; then : 6122 xorg_cv_cc_flag_unused_command_line_argument=yes 6123 else 6124 xorg_cv_cc_flag_unused_command_line_argument=no 6125 fi 6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6127 fi 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6129 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6131 CFLAGS="$xorg_testset_save_CFLAGS" 6132 fi 6133 6134 found="no" 6135 6136 if test $found = "no" ; then 6137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6139 fi 6140 6141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6143 fi 6144 6145 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6146 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6148 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6149 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6150 if eval \${$cacheid+:} false; then : 6151 $as_echo_n "(cached) " >&6 6152 else 6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6154 /* end confdefs.h. */ 6155 int i; 6156 int 6157 main () 6158 { 6159 6160 ; 6161 return 0; 6162 } 6163 _ACEOF 6164 if ac_fn_c_try_link "$LINENO"; then : 6165 eval $cacheid=yes 6166 else 6167 eval $cacheid=no 6168 fi 6169 rm -f core conftest.err conftest.$ac_objext \ 6170 conftest$ac_exeext conftest.$ac_ext 6171 fi 6172 6173 6174 CFLAGS="$xorg_testset_save_CFLAGS" 6175 6176 eval supported=\$$cacheid 6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6178 $as_echo "$supported" >&6; } 6179 if test "$supported" = "yes" ; then 6180 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6181 found="yes" 6182 fi 6183 fi 6184 6185 6186 6187 6188 6189 # This chunk adds additional warnings that could catch undesired effects. 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 xorg_testset_save_CFLAGS="$CFLAGS" 6204 6205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6208 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6209 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes 6218 else 6219 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 6224 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6226 CFLAGS="$xorg_testset_save_CFLAGS" 6227 fi 6228 6229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6232 fi 6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6236 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6237 $as_echo_n "(cached) " >&6 6238 else 6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6240 /* end confdefs.h. */ 6241 int i; 6242 _ACEOF 6243 if ac_fn_c_try_compile "$LINENO"; then : 6244 xorg_cv_cc_flag_unused_command_line_argument=yes 6245 else 6246 xorg_cv_cc_flag_unused_command_line_argument=no 6247 fi 6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6249 fi 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6251 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6253 CFLAGS="$xorg_testset_save_CFLAGS" 6254 fi 6255 6256 found="no" 6257 6258 if test $found = "no" ; then 6259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6261 fi 6262 6263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6265 fi 6266 6267 CFLAGS="$CFLAGS -Wunused" 6268 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6270 $as_echo_n "checking if $CC supports -Wunused... " >&6; } 6271 cacheid=xorg_cv_cc_flag__Wunused 6272 if eval \${$cacheid+:} false; then : 6273 $as_echo_n "(cached) " >&6 6274 else 6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6276 /* end confdefs.h. */ 6277 int i; 6278 int 6279 main () 6280 { 6281 6282 ; 6283 return 0; 6284 } 6285 _ACEOF 6286 if ac_fn_c_try_link "$LINENO"; then : 6287 eval $cacheid=yes 6288 else 6289 eval $cacheid=no 6290 fi 6291 rm -f core conftest.err conftest.$ac_objext \ 6292 conftest$ac_exeext conftest.$ac_ext 6293 fi 6294 6295 6296 CFLAGS="$xorg_testset_save_CFLAGS" 6297 6298 eval supported=\$$cacheid 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6300 $as_echo "$supported" >&6; } 6301 if test "$supported" = "yes" ; then 6302 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6303 found="yes" 6304 fi 6305 fi 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 xorg_testset_save_CFLAGS="$CFLAGS" 6322 6323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6326 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6327 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6328 $as_echo_n "(cached) " >&6 6329 else 6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331 /* end confdefs.h. */ 6332 int i; 6333 _ACEOF 6334 if ac_fn_c_try_compile "$LINENO"; then : 6335 xorg_cv_cc_flag_unknown_warning_option=yes 6336 else 6337 xorg_cv_cc_flag_unknown_warning_option=no 6338 fi 6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6340 fi 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6342 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6344 CFLAGS="$xorg_testset_save_CFLAGS" 6345 fi 6346 6347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6350 fi 6351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6353 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6354 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6355 $as_echo_n "(cached) " >&6 6356 else 6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6358 /* end confdefs.h. */ 6359 int i; 6360 _ACEOF 6361 if ac_fn_c_try_compile "$LINENO"; then : 6362 xorg_cv_cc_flag_unused_command_line_argument=yes 6363 else 6364 xorg_cv_cc_flag_unused_command_line_argument=no 6365 fi 6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6367 fi 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6369 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6371 CFLAGS="$xorg_testset_save_CFLAGS" 6372 fi 6373 6374 found="no" 6375 6376 if test $found = "no" ; then 6377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6379 fi 6380 6381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6383 fi 6384 6385 CFLAGS="$CFLAGS -Wuninitialized" 6386 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6388 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6389 cacheid=xorg_cv_cc_flag__Wuninitialized 6390 if eval \${$cacheid+:} false; then : 6391 $as_echo_n "(cached) " >&6 6392 else 6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6394 /* end confdefs.h. */ 6395 int i; 6396 int 6397 main () 6398 { 6399 6400 ; 6401 return 0; 6402 } 6403 _ACEOF 6404 if ac_fn_c_try_link "$LINENO"; then : 6405 eval $cacheid=yes 6406 else 6407 eval $cacheid=no 6408 fi 6409 rm -f core conftest.err conftest.$ac_objext \ 6410 conftest$ac_exeext conftest.$ac_ext 6411 fi 6412 6413 6414 CFLAGS="$xorg_testset_save_CFLAGS" 6415 6416 eval supported=\$$cacheid 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6418 $as_echo "$supported" >&6; } 6419 if test "$supported" = "yes" ; then 6420 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6421 found="yes" 6422 fi 6423 fi 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 xorg_testset_save_CFLAGS="$CFLAGS" 6440 6441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447 else 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449 /* end confdefs.h. */ 6450 int i; 6451 _ACEOF 6452 if ac_fn_c_try_compile "$LINENO"; then : 6453 xorg_cv_cc_flag_unknown_warning_option=yes 6454 else 6455 xorg_cv_cc_flag_unknown_warning_option=no 6456 fi 6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6458 fi 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6462 CFLAGS="$xorg_testset_save_CFLAGS" 6463 fi 6464 6465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6468 fi 6469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6473 $as_echo_n "(cached) " >&6 6474 else 6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476 /* end confdefs.h. */ 6477 int i; 6478 _ACEOF 6479 if ac_fn_c_try_compile "$LINENO"; then : 6480 xorg_cv_cc_flag_unused_command_line_argument=yes 6481 else 6482 xorg_cv_cc_flag_unused_command_line_argument=no 6483 fi 6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6485 fi 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490 fi 6491 6492 found="no" 6493 6494 if test $found = "no" ; then 6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 fi 6498 6499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6501 fi 6502 6503 CFLAGS="$CFLAGS -Wshadow" 6504 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6506 $as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6507 cacheid=xorg_cv_cc_flag__Wshadow 6508 if eval \${$cacheid+:} false; then : 6509 $as_echo_n "(cached) " >&6 6510 else 6511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6512 /* end confdefs.h. */ 6513 int i; 6514 int 6515 main () 6516 { 6517 6518 ; 6519 return 0; 6520 } 6521 _ACEOF 6522 if ac_fn_c_try_link "$LINENO"; then : 6523 eval $cacheid=yes 6524 else 6525 eval $cacheid=no 6526 fi 6527 rm -f core conftest.err conftest.$ac_objext \ 6528 conftest$ac_exeext conftest.$ac_ext 6529 fi 6530 6531 6532 CFLAGS="$xorg_testset_save_CFLAGS" 6533 6534 eval supported=\$$cacheid 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6536 $as_echo "$supported" >&6; } 6537 if test "$supported" = "yes" ; then 6538 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6539 found="yes" 6540 fi 6541 fi 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 xorg_testset_save_CFLAGS="$CFLAGS" 6558 6559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6564 $as_echo_n "(cached) " >&6 6565 else 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6567 /* end confdefs.h. */ 6568 int i; 6569 _ACEOF 6570 if ac_fn_c_try_compile "$LINENO"; then : 6571 xorg_cv_cc_flag_unknown_warning_option=yes 6572 else 6573 xorg_cv_cc_flag_unknown_warning_option=no 6574 fi 6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6576 fi 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6580 CFLAGS="$xorg_testset_save_CFLAGS" 6581 fi 6582 6583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6586 fi 6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6591 $as_echo_n "(cached) " >&6 6592 else 6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6594 /* end confdefs.h. */ 6595 int i; 6596 _ACEOF 6597 if ac_fn_c_try_compile "$LINENO"; then : 6598 xorg_cv_cc_flag_unused_command_line_argument=yes 6599 else 6600 xorg_cv_cc_flag_unused_command_line_argument=no 6601 fi 6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6603 fi 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6607 CFLAGS="$xorg_testset_save_CFLAGS" 6608 fi 6609 6610 found="no" 6611 6612 if test $found = "no" ; then 6613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6615 fi 6616 6617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6619 fi 6620 6621 CFLAGS="$CFLAGS -Wmissing-noreturn" 6622 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6624 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6625 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6626 if eval \${$cacheid+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628 else 6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6630 /* end confdefs.h. */ 6631 int i; 6632 int 6633 main () 6634 { 6635 6636 ; 6637 return 0; 6638 } 6639 _ACEOF 6640 if ac_fn_c_try_link "$LINENO"; then : 6641 eval $cacheid=yes 6642 else 6643 eval $cacheid=no 6644 fi 6645 rm -f core conftest.err conftest.$ac_objext \ 6646 conftest$ac_exeext conftest.$ac_ext 6647 fi 6648 6649 6650 CFLAGS="$xorg_testset_save_CFLAGS" 6651 6652 eval supported=\$$cacheid 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6654 $as_echo "$supported" >&6; } 6655 if test "$supported" = "yes" ; then 6656 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6657 found="yes" 6658 fi 6659 fi 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 xorg_testset_save_CFLAGS="$CFLAGS" 6676 6677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683 else 6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6685 /* end confdefs.h. */ 6686 int i; 6687 _ACEOF 6688 if ac_fn_c_try_compile "$LINENO"; then : 6689 xorg_cv_cc_flag_unknown_warning_option=yes 6690 else 6691 xorg_cv_cc_flag_unknown_warning_option=no 6692 fi 6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6694 fi 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6698 CFLAGS="$xorg_testset_save_CFLAGS" 6699 fi 6700 6701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6704 fi 6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710 else 6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712 /* end confdefs.h. */ 6713 int i; 6714 _ACEOF 6715 if ac_fn_c_try_compile "$LINENO"; then : 6716 xorg_cv_cc_flag_unused_command_line_argument=yes 6717 else 6718 xorg_cv_cc_flag_unused_command_line_argument=no 6719 fi 6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6721 fi 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6725 CFLAGS="$xorg_testset_save_CFLAGS" 6726 fi 6727 6728 found="no" 6729 6730 if test $found = "no" ; then 6731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6733 fi 6734 6735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6737 fi 6738 6739 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6740 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6742 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6743 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6744 if eval \${$cacheid+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746 else 6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6748 /* end confdefs.h. */ 6749 int i; 6750 int 6751 main () 6752 { 6753 6754 ; 6755 return 0; 6756 } 6757 _ACEOF 6758 if ac_fn_c_try_link "$LINENO"; then : 6759 eval $cacheid=yes 6760 else 6761 eval $cacheid=no 6762 fi 6763 rm -f core conftest.err conftest.$ac_objext \ 6764 conftest$ac_exeext conftest.$ac_ext 6765 fi 6766 6767 6768 CFLAGS="$xorg_testset_save_CFLAGS" 6769 6770 eval supported=\$$cacheid 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6772 $as_echo "$supported" >&6; } 6773 if test "$supported" = "yes" ; then 6774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6775 found="yes" 6776 fi 6777 fi 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 xorg_testset_save_CFLAGS="$CFLAGS" 6794 6795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801 else 6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803 /* end confdefs.h. */ 6804 int i; 6805 _ACEOF 6806 if ac_fn_c_try_compile "$LINENO"; then : 6807 xorg_cv_cc_flag_unknown_warning_option=yes 6808 else 6809 xorg_cv_cc_flag_unknown_warning_option=no 6810 fi 6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6812 fi 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6816 CFLAGS="$xorg_testset_save_CFLAGS" 6817 fi 6818 6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6822 fi 6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828 else 6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830 /* end confdefs.h. */ 6831 int i; 6832 _ACEOF 6833 if ac_fn_c_try_compile "$LINENO"; then : 6834 xorg_cv_cc_flag_unused_command_line_argument=yes 6835 else 6836 xorg_cv_cc_flag_unused_command_line_argument=no 6837 fi 6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6839 fi 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6843 CFLAGS="$xorg_testset_save_CFLAGS" 6844 fi 6845 6846 found="no" 6847 6848 if test $found = "no" ; then 6849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6851 fi 6852 6853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6855 fi 6856 6857 CFLAGS="$CFLAGS -Wredundant-decls" 6858 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6860 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6861 cacheid=xorg_cv_cc_flag__Wredundant_decls 6862 if eval \${$cacheid+:} false; then : 6863 $as_echo_n "(cached) " >&6 6864 else 6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6866 /* end confdefs.h. */ 6867 int i; 6868 int 6869 main () 6870 { 6871 6872 ; 6873 return 0; 6874 } 6875 _ACEOF 6876 if ac_fn_c_try_link "$LINENO"; then : 6877 eval $cacheid=yes 6878 else 6879 eval $cacheid=no 6880 fi 6881 rm -f core conftest.err conftest.$ac_objext \ 6882 conftest$ac_exeext conftest.$ac_ext 6883 fi 6884 6885 6886 CFLAGS="$xorg_testset_save_CFLAGS" 6887 6888 eval supported=\$$cacheid 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6890 $as_echo "$supported" >&6; } 6891 if test "$supported" = "yes" ; then 6892 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6893 found="yes" 6894 fi 6895 fi 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 xorg_testset_save_CFLAGS="$CFLAGS" 6912 6913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6918 $as_echo_n "(cached) " >&6 6919 else 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921 /* end confdefs.h. */ 6922 int i; 6923 _ACEOF 6924 if ac_fn_c_try_compile "$LINENO"; then : 6925 xorg_cv_cc_flag_unknown_warning_option=yes 6926 else 6927 xorg_cv_cc_flag_unknown_warning_option=no 6928 fi 6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6930 fi 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6934 CFLAGS="$xorg_testset_save_CFLAGS" 6935 fi 6936 6937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6940 fi 6941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946 else 6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6948 /* end confdefs.h. */ 6949 int i; 6950 _ACEOF 6951 if ac_fn_c_try_compile "$LINENO"; then : 6952 xorg_cv_cc_flag_unused_command_line_argument=yes 6953 else 6954 xorg_cv_cc_flag_unused_command_line_argument=no 6955 fi 6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6957 fi 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6961 CFLAGS="$xorg_testset_save_CFLAGS" 6962 fi 6963 6964 found="no" 6965 6966 if test $found = "no" ; then 6967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6969 fi 6970 6971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6973 fi 6974 6975 CFLAGS="$CFLAGS -Wlogical-op" 6976 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6978 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6979 cacheid=xorg_cv_cc_flag__Wlogical_op 6980 if eval \${$cacheid+:} false; then : 6981 $as_echo_n "(cached) " >&6 6982 else 6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6984 /* end confdefs.h. */ 6985 int i; 6986 int 6987 main () 6988 { 6989 6990 ; 6991 return 0; 6992 } 6993 _ACEOF 6994 if ac_fn_c_try_link "$LINENO"; then : 6995 eval $cacheid=yes 6996 else 6997 eval $cacheid=no 6998 fi 6999 rm -f core conftest.err conftest.$ac_objext \ 7000 conftest$ac_exeext conftest.$ac_ext 7001 fi 7002 7003 7004 CFLAGS="$xorg_testset_save_CFLAGS" 7005 7006 eval supported=\$$cacheid 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7008 $as_echo "$supported" >&6; } 7009 if test "$supported" = "yes" ; then 7010 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7011 found="yes" 7012 fi 7013 fi 7014 7015 7016 7017 # These are currently disabled because they are noisy. They will be enabled 7018 # in the future once the codebase is sufficiently modernized to silence 7019 # them. For now, I don't want them to drown out the other warnings. 7020 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7021 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7022 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7023 7024 # Turn some warnings into errors, so we don't accidently get successful builds 7025 # when there are problems that should be fixed. 7026 7027 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 xorg_testset_save_CFLAGS="$CFLAGS" 7042 7043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7046 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7047 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7048 $as_echo_n "(cached) " >&6 7049 else 7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7051 /* end confdefs.h. */ 7052 int i; 7053 _ACEOF 7054 if ac_fn_c_try_compile "$LINENO"; then : 7055 xorg_cv_cc_flag_unknown_warning_option=yes 7056 else 7057 xorg_cv_cc_flag_unknown_warning_option=no 7058 fi 7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7060 fi 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7062 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7064 CFLAGS="$xorg_testset_save_CFLAGS" 7065 fi 7066 7067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7070 fi 7071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7073 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7074 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7075 $as_echo_n "(cached) " >&6 7076 else 7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078 /* end confdefs.h. */ 7079 int i; 7080 _ACEOF 7081 if ac_fn_c_try_compile "$LINENO"; then : 7082 xorg_cv_cc_flag_unused_command_line_argument=yes 7083 else 7084 xorg_cv_cc_flag_unused_command_line_argument=no 7085 fi 7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7087 fi 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7089 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7091 CFLAGS="$xorg_testset_save_CFLAGS" 7092 fi 7093 7094 found="no" 7095 7096 if test $found = "no" ; then 7097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7099 fi 7100 7101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7103 fi 7104 7105 CFLAGS="$CFLAGS -Werror=implicit" 7106 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7108 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7109 cacheid=xorg_cv_cc_flag__Werror_implicit 7110 if eval \${$cacheid+:} false; then : 7111 $as_echo_n "(cached) " >&6 7112 else 7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114 /* end confdefs.h. */ 7115 int i; 7116 int 7117 main () 7118 { 7119 7120 ; 7121 return 0; 7122 } 7123 _ACEOF 7124 if ac_fn_c_try_link "$LINENO"; then : 7125 eval $cacheid=yes 7126 else 7127 eval $cacheid=no 7128 fi 7129 rm -f core conftest.err conftest.$ac_objext \ 7130 conftest$ac_exeext conftest.$ac_ext 7131 fi 7132 7133 7134 CFLAGS="$xorg_testset_save_CFLAGS" 7135 7136 eval supported=\$$cacheid 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7138 $as_echo "$supported" >&6; } 7139 if test "$supported" = "yes" ; then 7140 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7141 found="yes" 7142 fi 7143 fi 7144 7145 if test $found = "no" ; then 7146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7148 fi 7149 7150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7152 fi 7153 7154 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7155 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7157 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7158 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7159 if eval \${$cacheid+:} false; then : 7160 $as_echo_n "(cached) " >&6 7161 else 7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7163 /* end confdefs.h. */ 7164 int i; 7165 int 7166 main () 7167 { 7168 7169 ; 7170 return 0; 7171 } 7172 _ACEOF 7173 if ac_fn_c_try_link "$LINENO"; then : 7174 eval $cacheid=yes 7175 else 7176 eval $cacheid=no 7177 fi 7178 rm -f core conftest.err conftest.$ac_objext \ 7179 conftest$ac_exeext conftest.$ac_ext 7180 fi 7181 7182 7183 CFLAGS="$xorg_testset_save_CFLAGS" 7184 7185 eval supported=\$$cacheid 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7187 $as_echo "$supported" >&6; } 7188 if test "$supported" = "yes" ; then 7189 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7190 found="yes" 7191 fi 7192 fi 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 xorg_testset_save_CFLAGS="$CFLAGS" 7209 7210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7213 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7214 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216 else 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218 /* end confdefs.h. */ 7219 int i; 7220 _ACEOF 7221 if ac_fn_c_try_compile "$LINENO"; then : 7222 xorg_cv_cc_flag_unknown_warning_option=yes 7223 else 7224 xorg_cv_cc_flag_unknown_warning_option=no 7225 fi 7226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7227 fi 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7229 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7231 CFLAGS="$xorg_testset_save_CFLAGS" 7232 fi 7233 7234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7237 fi 7238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7240 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7241 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7242 $as_echo_n "(cached) " >&6 7243 else 7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7245 /* end confdefs.h. */ 7246 int i; 7247 _ACEOF 7248 if ac_fn_c_try_compile "$LINENO"; then : 7249 xorg_cv_cc_flag_unused_command_line_argument=yes 7250 else 7251 xorg_cv_cc_flag_unused_command_line_argument=no 7252 fi 7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7254 fi 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7256 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7258 CFLAGS="$xorg_testset_save_CFLAGS" 7259 fi 7260 7261 found="no" 7262 7263 if test $found = "no" ; then 7264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7266 fi 7267 7268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7270 fi 7271 7272 CFLAGS="$CFLAGS -Werror=nonnull" 7273 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7275 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7276 cacheid=xorg_cv_cc_flag__Werror_nonnull 7277 if eval \${$cacheid+:} false; then : 7278 $as_echo_n "(cached) " >&6 7279 else 7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7281 /* end confdefs.h. */ 7282 int i; 7283 int 7284 main () 7285 { 7286 7287 ; 7288 return 0; 7289 } 7290 _ACEOF 7291 if ac_fn_c_try_link "$LINENO"; then : 7292 eval $cacheid=yes 7293 else 7294 eval $cacheid=no 7295 fi 7296 rm -f core conftest.err conftest.$ac_objext \ 7297 conftest$ac_exeext conftest.$ac_ext 7298 fi 7299 7300 7301 CFLAGS="$xorg_testset_save_CFLAGS" 7302 7303 eval supported=\$$cacheid 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7305 $as_echo "$supported" >&6; } 7306 if test "$supported" = "yes" ; then 7307 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7308 found="yes" 7309 fi 7310 fi 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 xorg_testset_save_CFLAGS="$CFLAGS" 7327 7328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7331 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7332 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334 else 7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336 /* end confdefs.h. */ 7337 int i; 7338 _ACEOF 7339 if ac_fn_c_try_compile "$LINENO"; then : 7340 xorg_cv_cc_flag_unknown_warning_option=yes 7341 else 7342 xorg_cv_cc_flag_unknown_warning_option=no 7343 fi 7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7345 fi 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7347 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7349 CFLAGS="$xorg_testset_save_CFLAGS" 7350 fi 7351 7352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7355 fi 7356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7358 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7359 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361 else 7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7363 /* end confdefs.h. */ 7364 int i; 7365 _ACEOF 7366 if ac_fn_c_try_compile "$LINENO"; then : 7367 xorg_cv_cc_flag_unused_command_line_argument=yes 7368 else 7369 xorg_cv_cc_flag_unused_command_line_argument=no 7370 fi 7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7372 fi 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7374 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7376 CFLAGS="$xorg_testset_save_CFLAGS" 7377 fi 7378 7379 found="no" 7380 7381 if test $found = "no" ; then 7382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7384 fi 7385 7386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7388 fi 7389 7390 CFLAGS="$CFLAGS -Werror=init-self" 7391 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7393 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7394 cacheid=xorg_cv_cc_flag__Werror_init_self 7395 if eval \${$cacheid+:} false; then : 7396 $as_echo_n "(cached) " >&6 7397 else 7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7399 /* end confdefs.h. */ 7400 int i; 7401 int 7402 main () 7403 { 7404 7405 ; 7406 return 0; 7407 } 7408 _ACEOF 7409 if ac_fn_c_try_link "$LINENO"; then : 7410 eval $cacheid=yes 7411 else 7412 eval $cacheid=no 7413 fi 7414 rm -f core conftest.err conftest.$ac_objext \ 7415 conftest$ac_exeext conftest.$ac_ext 7416 fi 7417 7418 7419 CFLAGS="$xorg_testset_save_CFLAGS" 7420 7421 eval supported=\$$cacheid 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7423 $as_echo "$supported" >&6; } 7424 if test "$supported" = "yes" ; then 7425 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7426 found="yes" 7427 fi 7428 fi 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 xorg_testset_save_CFLAGS="$CFLAGS" 7445 7446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7449 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7450 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7451 $as_echo_n "(cached) " >&6 7452 else 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454 /* end confdefs.h. */ 7455 int i; 7456 _ACEOF 7457 if ac_fn_c_try_compile "$LINENO"; then : 7458 xorg_cv_cc_flag_unknown_warning_option=yes 7459 else 7460 xorg_cv_cc_flag_unknown_warning_option=no 7461 fi 7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7463 fi 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7465 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7467 CFLAGS="$xorg_testset_save_CFLAGS" 7468 fi 7469 7470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7473 fi 7474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7476 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7477 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479 else 7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7481 /* end confdefs.h. */ 7482 int i; 7483 _ACEOF 7484 if ac_fn_c_try_compile "$LINENO"; then : 7485 xorg_cv_cc_flag_unused_command_line_argument=yes 7486 else 7487 xorg_cv_cc_flag_unused_command_line_argument=no 7488 fi 7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7490 fi 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7492 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7494 CFLAGS="$xorg_testset_save_CFLAGS" 7495 fi 7496 7497 found="no" 7498 7499 if test $found = "no" ; then 7500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7502 fi 7503 7504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7506 fi 7507 7508 CFLAGS="$CFLAGS -Werror=main" 7509 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7511 $as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7512 cacheid=xorg_cv_cc_flag__Werror_main 7513 if eval \${$cacheid+:} false; then : 7514 $as_echo_n "(cached) " >&6 7515 else 7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7517 /* end confdefs.h. */ 7518 int i; 7519 int 7520 main () 7521 { 7522 7523 ; 7524 return 0; 7525 } 7526 _ACEOF 7527 if ac_fn_c_try_link "$LINENO"; then : 7528 eval $cacheid=yes 7529 else 7530 eval $cacheid=no 7531 fi 7532 rm -f core conftest.err conftest.$ac_objext \ 7533 conftest$ac_exeext conftest.$ac_ext 7534 fi 7535 7536 7537 CFLAGS="$xorg_testset_save_CFLAGS" 7538 7539 eval supported=\$$cacheid 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7541 $as_echo "$supported" >&6; } 7542 if test "$supported" = "yes" ; then 7543 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7544 found="yes" 7545 fi 7546 fi 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 xorg_testset_save_CFLAGS="$CFLAGS" 7563 7564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570 else 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572 /* end confdefs.h. */ 7573 int i; 7574 _ACEOF 7575 if ac_fn_c_try_compile "$LINENO"; then : 7576 xorg_cv_cc_flag_unknown_warning_option=yes 7577 else 7578 xorg_cv_cc_flag_unknown_warning_option=no 7579 fi 7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7581 fi 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7585 CFLAGS="$xorg_testset_save_CFLAGS" 7586 fi 7587 7588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7591 fi 7592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597 else 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599 /* end confdefs.h. */ 7600 int i; 7601 _ACEOF 7602 if ac_fn_c_try_compile "$LINENO"; then : 7603 xorg_cv_cc_flag_unused_command_line_argument=yes 7604 else 7605 xorg_cv_cc_flag_unused_command_line_argument=no 7606 fi 7607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7608 fi 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7612 CFLAGS="$xorg_testset_save_CFLAGS" 7613 fi 7614 7615 found="no" 7616 7617 if test $found = "no" ; then 7618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7620 fi 7621 7622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7624 fi 7625 7626 CFLAGS="$CFLAGS -Werror=missing-braces" 7627 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7629 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7630 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7631 if eval \${$cacheid+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633 else 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635 /* end confdefs.h. */ 7636 int i; 7637 int 7638 main () 7639 { 7640 7641 ; 7642 return 0; 7643 } 7644 _ACEOF 7645 if ac_fn_c_try_link "$LINENO"; then : 7646 eval $cacheid=yes 7647 else 7648 eval $cacheid=no 7649 fi 7650 rm -f core conftest.err conftest.$ac_objext \ 7651 conftest$ac_exeext conftest.$ac_ext 7652 fi 7653 7654 7655 CFLAGS="$xorg_testset_save_CFLAGS" 7656 7657 eval supported=\$$cacheid 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7659 $as_echo "$supported" >&6; } 7660 if test "$supported" = "yes" ; then 7661 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7662 found="yes" 7663 fi 7664 fi 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 xorg_testset_save_CFLAGS="$CFLAGS" 7681 7682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7685 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7686 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688 else 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690 /* end confdefs.h. */ 7691 int i; 7692 _ACEOF 7693 if ac_fn_c_try_compile "$LINENO"; then : 7694 xorg_cv_cc_flag_unknown_warning_option=yes 7695 else 7696 xorg_cv_cc_flag_unknown_warning_option=no 7697 fi 7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7699 fi 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7701 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7703 CFLAGS="$xorg_testset_save_CFLAGS" 7704 fi 7705 7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7709 fi 7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7712 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7713 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715 else 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717 /* end confdefs.h. */ 7718 int i; 7719 _ACEOF 7720 if ac_fn_c_try_compile "$LINENO"; then : 7721 xorg_cv_cc_flag_unused_command_line_argument=yes 7722 else 7723 xorg_cv_cc_flag_unused_command_line_argument=no 7724 fi 7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7726 fi 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7728 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7730 CFLAGS="$xorg_testset_save_CFLAGS" 7731 fi 7732 7733 found="no" 7734 7735 if test $found = "no" ; then 7736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7738 fi 7739 7740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7742 fi 7743 7744 CFLAGS="$CFLAGS -Werror=sequence-point" 7745 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7747 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7748 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7749 if eval \${$cacheid+:} false; then : 7750 $as_echo_n "(cached) " >&6 7751 else 7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7753 /* end confdefs.h. */ 7754 int i; 7755 int 7756 main () 7757 { 7758 7759 ; 7760 return 0; 7761 } 7762 _ACEOF 7763 if ac_fn_c_try_link "$LINENO"; then : 7764 eval $cacheid=yes 7765 else 7766 eval $cacheid=no 7767 fi 7768 rm -f core conftest.err conftest.$ac_objext \ 7769 conftest$ac_exeext conftest.$ac_ext 7770 fi 7771 7772 7773 CFLAGS="$xorg_testset_save_CFLAGS" 7774 7775 eval supported=\$$cacheid 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7777 $as_echo "$supported" >&6; } 7778 if test "$supported" = "yes" ; then 7779 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7780 found="yes" 7781 fi 7782 fi 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 xorg_testset_save_CFLAGS="$CFLAGS" 7799 7800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806 else 7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808 /* end confdefs.h. */ 7809 int i; 7810 _ACEOF 7811 if ac_fn_c_try_compile "$LINENO"; then : 7812 xorg_cv_cc_flag_unknown_warning_option=yes 7813 else 7814 xorg_cv_cc_flag_unknown_warning_option=no 7815 fi 7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7817 fi 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7821 CFLAGS="$xorg_testset_save_CFLAGS" 7822 fi 7823 7824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7827 fi 7828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833 else 7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835 /* end confdefs.h. */ 7836 int i; 7837 _ACEOF 7838 if ac_fn_c_try_compile "$LINENO"; then : 7839 xorg_cv_cc_flag_unused_command_line_argument=yes 7840 else 7841 xorg_cv_cc_flag_unused_command_line_argument=no 7842 fi 7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7844 fi 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7848 CFLAGS="$xorg_testset_save_CFLAGS" 7849 fi 7850 7851 found="no" 7852 7853 if test $found = "no" ; then 7854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7856 fi 7857 7858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7860 fi 7861 7862 CFLAGS="$CFLAGS -Werror=return-type" 7863 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7865 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7866 cacheid=xorg_cv_cc_flag__Werror_return_type 7867 if eval \${$cacheid+:} false; then : 7868 $as_echo_n "(cached) " >&6 7869 else 7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7871 /* end confdefs.h. */ 7872 int i; 7873 int 7874 main () 7875 { 7876 7877 ; 7878 return 0; 7879 } 7880 _ACEOF 7881 if ac_fn_c_try_link "$LINENO"; then : 7882 eval $cacheid=yes 7883 else 7884 eval $cacheid=no 7885 fi 7886 rm -f core conftest.err conftest.$ac_objext \ 7887 conftest$ac_exeext conftest.$ac_ext 7888 fi 7889 7890 7891 CFLAGS="$xorg_testset_save_CFLAGS" 7892 7893 eval supported=\$$cacheid 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7895 $as_echo "$supported" >&6; } 7896 if test "$supported" = "yes" ; then 7897 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7898 found="yes" 7899 fi 7900 fi 7901 7902 if test $found = "no" ; then 7903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7905 fi 7906 7907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7909 fi 7910 7911 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7912 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7914 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7915 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7916 if eval \${$cacheid+:} false; then : 7917 $as_echo_n "(cached) " >&6 7918 else 7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7920 /* end confdefs.h. */ 7921 int i; 7922 int 7923 main () 7924 { 7925 7926 ; 7927 return 0; 7928 } 7929 _ACEOF 7930 if ac_fn_c_try_link "$LINENO"; then : 7931 eval $cacheid=yes 7932 else 7933 eval $cacheid=no 7934 fi 7935 rm -f core conftest.err conftest.$ac_objext \ 7936 conftest$ac_exeext conftest.$ac_ext 7937 fi 7938 7939 7940 CFLAGS="$xorg_testset_save_CFLAGS" 7941 7942 eval supported=\$$cacheid 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7944 $as_echo "$supported" >&6; } 7945 if test "$supported" = "yes" ; then 7946 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7947 found="yes" 7948 fi 7949 fi 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 xorg_testset_save_CFLAGS="$CFLAGS" 7966 7967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7972 $as_echo_n "(cached) " >&6 7973 else 7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7975 /* end confdefs.h. */ 7976 int i; 7977 _ACEOF 7978 if ac_fn_c_try_compile "$LINENO"; then : 7979 xorg_cv_cc_flag_unknown_warning_option=yes 7980 else 7981 xorg_cv_cc_flag_unknown_warning_option=no 7982 fi 7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7984 fi 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7988 CFLAGS="$xorg_testset_save_CFLAGS" 7989 fi 7990 7991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7994 fi 7995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7999 $as_echo_n "(cached) " >&6 8000 else 8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8002 /* end confdefs.h. */ 8003 int i; 8004 _ACEOF 8005 if ac_fn_c_try_compile "$LINENO"; then : 8006 xorg_cv_cc_flag_unused_command_line_argument=yes 8007 else 8008 xorg_cv_cc_flag_unused_command_line_argument=no 8009 fi 8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8011 fi 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016 fi 8017 8018 found="no" 8019 8020 if test $found = "no" ; then 8021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8023 fi 8024 8025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8027 fi 8028 8029 CFLAGS="$CFLAGS -Werror=trigraphs" 8030 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8032 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8033 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8034 if eval \${$cacheid+:} false; then : 8035 $as_echo_n "(cached) " >&6 8036 else 8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038 /* end confdefs.h. */ 8039 int i; 8040 int 8041 main () 8042 { 8043 8044 ; 8045 return 0; 8046 } 8047 _ACEOF 8048 if ac_fn_c_try_link "$LINENO"; then : 8049 eval $cacheid=yes 8050 else 8051 eval $cacheid=no 8052 fi 8053 rm -f core conftest.err conftest.$ac_objext \ 8054 conftest$ac_exeext conftest.$ac_ext 8055 fi 8056 8057 8058 CFLAGS="$xorg_testset_save_CFLAGS" 8059 8060 eval supported=\$$cacheid 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8062 $as_echo "$supported" >&6; } 8063 if test "$supported" = "yes" ; then 8064 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8065 found="yes" 8066 fi 8067 fi 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 xorg_testset_save_CFLAGS="$CFLAGS" 8084 8085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8090 $as_echo_n "(cached) " >&6 8091 else 8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093 /* end confdefs.h. */ 8094 int i; 8095 _ACEOF 8096 if ac_fn_c_try_compile "$LINENO"; then : 8097 xorg_cv_cc_flag_unknown_warning_option=yes 8098 else 8099 xorg_cv_cc_flag_unknown_warning_option=no 8100 fi 8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8102 fi 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8106 CFLAGS="$xorg_testset_save_CFLAGS" 8107 fi 8108 8109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8112 fi 8113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8117 $as_echo_n "(cached) " >&6 8118 else 8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8120 /* end confdefs.h. */ 8121 int i; 8122 _ACEOF 8123 if ac_fn_c_try_compile "$LINENO"; then : 8124 xorg_cv_cc_flag_unused_command_line_argument=yes 8125 else 8126 xorg_cv_cc_flag_unused_command_line_argument=no 8127 fi 8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8129 fi 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8133 CFLAGS="$xorg_testset_save_CFLAGS" 8134 fi 8135 8136 found="no" 8137 8138 if test $found = "no" ; then 8139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8141 fi 8142 8143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8145 fi 8146 8147 CFLAGS="$CFLAGS -Werror=array-bounds" 8148 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8150 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8151 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8152 if eval \${$cacheid+:} false; then : 8153 $as_echo_n "(cached) " >&6 8154 else 8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8156 /* end confdefs.h. */ 8157 int i; 8158 int 8159 main () 8160 { 8161 8162 ; 8163 return 0; 8164 } 8165 _ACEOF 8166 if ac_fn_c_try_link "$LINENO"; then : 8167 eval $cacheid=yes 8168 else 8169 eval $cacheid=no 8170 fi 8171 rm -f core conftest.err conftest.$ac_objext \ 8172 conftest$ac_exeext conftest.$ac_ext 8173 fi 8174 8175 8176 CFLAGS="$xorg_testset_save_CFLAGS" 8177 8178 eval supported=\$$cacheid 8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8180 $as_echo "$supported" >&6; } 8181 if test "$supported" = "yes" ; then 8182 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8183 found="yes" 8184 fi 8185 fi 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 xorg_testset_save_CFLAGS="$CFLAGS" 8202 8203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8208 $as_echo_n "(cached) " >&6 8209 else 8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8211 /* end confdefs.h. */ 8212 int i; 8213 _ACEOF 8214 if ac_fn_c_try_compile "$LINENO"; then : 8215 xorg_cv_cc_flag_unknown_warning_option=yes 8216 else 8217 xorg_cv_cc_flag_unknown_warning_option=no 8218 fi 8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8220 fi 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8224 CFLAGS="$xorg_testset_save_CFLAGS" 8225 fi 8226 8227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8230 fi 8231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8235 $as_echo_n "(cached) " >&6 8236 else 8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238 /* end confdefs.h. */ 8239 int i; 8240 _ACEOF 8241 if ac_fn_c_try_compile "$LINENO"; then : 8242 xorg_cv_cc_flag_unused_command_line_argument=yes 8243 else 8244 xorg_cv_cc_flag_unused_command_line_argument=no 8245 fi 8246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8247 fi 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8251 CFLAGS="$xorg_testset_save_CFLAGS" 8252 fi 8253 8254 found="no" 8255 8256 if test $found = "no" ; then 8257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8259 fi 8260 8261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8263 fi 8264 8265 CFLAGS="$CFLAGS -Werror=write-strings" 8266 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8268 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8269 cacheid=xorg_cv_cc_flag__Werror_write_strings 8270 if eval \${$cacheid+:} false; then : 8271 $as_echo_n "(cached) " >&6 8272 else 8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8274 /* end confdefs.h. */ 8275 int i; 8276 int 8277 main () 8278 { 8279 8280 ; 8281 return 0; 8282 } 8283 _ACEOF 8284 if ac_fn_c_try_link "$LINENO"; then : 8285 eval $cacheid=yes 8286 else 8287 eval $cacheid=no 8288 fi 8289 rm -f core conftest.err conftest.$ac_objext \ 8290 conftest$ac_exeext conftest.$ac_ext 8291 fi 8292 8293 8294 CFLAGS="$xorg_testset_save_CFLAGS" 8295 8296 eval supported=\$$cacheid 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8298 $as_echo "$supported" >&6; } 8299 if test "$supported" = "yes" ; then 8300 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8301 found="yes" 8302 fi 8303 fi 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 xorg_testset_save_CFLAGS="$CFLAGS" 8320 8321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8326 $as_echo_n "(cached) " >&6 8327 else 8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8329 /* end confdefs.h. */ 8330 int i; 8331 _ACEOF 8332 if ac_fn_c_try_compile "$LINENO"; then : 8333 xorg_cv_cc_flag_unknown_warning_option=yes 8334 else 8335 xorg_cv_cc_flag_unknown_warning_option=no 8336 fi 8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8338 fi 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8342 CFLAGS="$xorg_testset_save_CFLAGS" 8343 fi 8344 8345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8348 fi 8349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354 else 8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8356 /* end confdefs.h. */ 8357 int i; 8358 _ACEOF 8359 if ac_fn_c_try_compile "$LINENO"; then : 8360 xorg_cv_cc_flag_unused_command_line_argument=yes 8361 else 8362 xorg_cv_cc_flag_unused_command_line_argument=no 8363 fi 8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8365 fi 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8369 CFLAGS="$xorg_testset_save_CFLAGS" 8370 fi 8371 8372 found="no" 8373 8374 if test $found = "no" ; then 8375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8377 fi 8378 8379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8381 fi 8382 8383 CFLAGS="$CFLAGS -Werror=address" 8384 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8386 $as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8387 cacheid=xorg_cv_cc_flag__Werror_address 8388 if eval \${$cacheid+:} false; then : 8389 $as_echo_n "(cached) " >&6 8390 else 8391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8392 /* end confdefs.h. */ 8393 int i; 8394 int 8395 main () 8396 { 8397 8398 ; 8399 return 0; 8400 } 8401 _ACEOF 8402 if ac_fn_c_try_link "$LINENO"; then : 8403 eval $cacheid=yes 8404 else 8405 eval $cacheid=no 8406 fi 8407 rm -f core conftest.err conftest.$ac_objext \ 8408 conftest$ac_exeext conftest.$ac_ext 8409 fi 8410 8411 8412 CFLAGS="$xorg_testset_save_CFLAGS" 8413 8414 eval supported=\$$cacheid 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8416 $as_echo "$supported" >&6; } 8417 if test "$supported" = "yes" ; then 8418 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8419 found="yes" 8420 fi 8421 fi 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 xorg_testset_save_CFLAGS="$CFLAGS" 8438 8439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8444 $as_echo_n "(cached) " >&6 8445 else 8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8447 /* end confdefs.h. */ 8448 int i; 8449 _ACEOF 8450 if ac_fn_c_try_compile "$LINENO"; then : 8451 xorg_cv_cc_flag_unknown_warning_option=yes 8452 else 8453 xorg_cv_cc_flag_unknown_warning_option=no 8454 fi 8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8456 fi 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8460 CFLAGS="$xorg_testset_save_CFLAGS" 8461 fi 8462 8463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8466 fi 8467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8471 $as_echo_n "(cached) " >&6 8472 else 8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474 /* end confdefs.h. */ 8475 int i; 8476 _ACEOF 8477 if ac_fn_c_try_compile "$LINENO"; then : 8478 xorg_cv_cc_flag_unused_command_line_argument=yes 8479 else 8480 xorg_cv_cc_flag_unused_command_line_argument=no 8481 fi 8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8483 fi 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8487 CFLAGS="$xorg_testset_save_CFLAGS" 8488 fi 8489 8490 found="no" 8491 8492 if test $found = "no" ; then 8493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8495 fi 8496 8497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8499 fi 8500 8501 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8502 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8504 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8505 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8506 if eval \${$cacheid+:} false; then : 8507 $as_echo_n "(cached) " >&6 8508 else 8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8510 /* end confdefs.h. */ 8511 int i; 8512 int 8513 main () 8514 { 8515 8516 ; 8517 return 0; 8518 } 8519 _ACEOF 8520 if ac_fn_c_try_link "$LINENO"; then : 8521 eval $cacheid=yes 8522 else 8523 eval $cacheid=no 8524 fi 8525 rm -f core conftest.err conftest.$ac_objext \ 8526 conftest$ac_exeext conftest.$ac_ext 8527 fi 8528 8529 8530 CFLAGS="$xorg_testset_save_CFLAGS" 8531 8532 eval supported=\$$cacheid 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8534 $as_echo "$supported" >&6; } 8535 if test "$supported" = "yes" ; then 8536 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8537 found="yes" 8538 fi 8539 fi 8540 8541 if test $found = "no" ; then 8542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8544 fi 8545 8546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8548 fi 8549 8550 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8551 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8553 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8554 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8555 if eval \${$cacheid+:} false; then : 8556 $as_echo_n "(cached) " >&6 8557 else 8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8559 /* end confdefs.h. */ 8560 int i; 8561 int 8562 main () 8563 { 8564 8565 ; 8566 return 0; 8567 } 8568 _ACEOF 8569 if ac_fn_c_try_link "$LINENO"; then : 8570 eval $cacheid=yes 8571 else 8572 eval $cacheid=no 8573 fi 8574 rm -f core conftest.err conftest.$ac_objext \ 8575 conftest$ac_exeext conftest.$ac_ext 8576 fi 8577 8578 8579 CFLAGS="$xorg_testset_save_CFLAGS" 8580 8581 eval supported=\$$cacheid 8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8583 $as_echo "$supported" >&6; } 8584 if test "$supported" = "yes" ; then 8585 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8586 found="yes" 8587 fi 8588 fi 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 xorg_testset_save_CFLAGS="$CFLAGS" 8605 8606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612 else 8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8614 /* end confdefs.h. */ 8615 int i; 8616 _ACEOF 8617 if ac_fn_c_try_compile "$LINENO"; then : 8618 xorg_cv_cc_flag_unknown_warning_option=yes 8619 else 8620 xorg_cv_cc_flag_unknown_warning_option=no 8621 fi 8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8623 fi 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8627 CFLAGS="$xorg_testset_save_CFLAGS" 8628 fi 8629 8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8633 fi 8634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8638 $as_echo_n "(cached) " >&6 8639 else 8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641 /* end confdefs.h. */ 8642 int i; 8643 _ACEOF 8644 if ac_fn_c_try_compile "$LINENO"; then : 8645 xorg_cv_cc_flag_unused_command_line_argument=yes 8646 else 8647 xorg_cv_cc_flag_unused_command_line_argument=no 8648 fi 8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8650 fi 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8654 CFLAGS="$xorg_testset_save_CFLAGS" 8655 fi 8656 8657 found="no" 8658 8659 if test $found = "no" ; then 8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8662 fi 8663 8664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8666 fi 8667 8668 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8669 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8671 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8672 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8673 if eval \${$cacheid+:} false; then : 8674 $as_echo_n "(cached) " >&6 8675 else 8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8677 /* end confdefs.h. */ 8678 int i; 8679 int 8680 main () 8681 { 8682 8683 ; 8684 return 0; 8685 } 8686 _ACEOF 8687 if ac_fn_c_try_link "$LINENO"; then : 8688 eval $cacheid=yes 8689 else 8690 eval $cacheid=no 8691 fi 8692 rm -f core conftest.err conftest.$ac_objext \ 8693 conftest$ac_exeext conftest.$ac_ext 8694 fi 8695 8696 8697 CFLAGS="$xorg_testset_save_CFLAGS" 8698 8699 eval supported=\$$cacheid 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8701 $as_echo "$supported" >&6; } 8702 if test "$supported" = "yes" ; then 8703 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8704 found="yes" 8705 fi 8706 fi 8707 8708 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8709 else 8710 { $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 8711 $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;} 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 xorg_testset_save_CFLAGS="$CFLAGS" 8726 8727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8732 $as_echo_n "(cached) " >&6 8733 else 8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8735 /* end confdefs.h. */ 8736 int i; 8737 _ACEOF 8738 if ac_fn_c_try_compile "$LINENO"; then : 8739 xorg_cv_cc_flag_unknown_warning_option=yes 8740 else 8741 xorg_cv_cc_flag_unknown_warning_option=no 8742 fi 8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8744 fi 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8748 CFLAGS="$xorg_testset_save_CFLAGS" 8749 fi 8750 8751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8754 fi 8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8759 $as_echo_n "(cached) " >&6 8760 else 8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8762 /* end confdefs.h. */ 8763 int i; 8764 _ACEOF 8765 if ac_fn_c_try_compile "$LINENO"; then : 8766 xorg_cv_cc_flag_unused_command_line_argument=yes 8767 else 8768 xorg_cv_cc_flag_unused_command_line_argument=no 8769 fi 8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8771 fi 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8775 CFLAGS="$xorg_testset_save_CFLAGS" 8776 fi 8777 8778 found="no" 8779 8780 if test $found = "no" ; then 8781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8783 fi 8784 8785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8787 fi 8788 8789 CFLAGS="$CFLAGS -Wimplicit" 8790 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8792 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8793 cacheid=xorg_cv_cc_flag__Wimplicit 8794 if eval \${$cacheid+:} false; then : 8795 $as_echo_n "(cached) " >&6 8796 else 8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8798 /* end confdefs.h. */ 8799 int i; 8800 int 8801 main () 8802 { 8803 8804 ; 8805 return 0; 8806 } 8807 _ACEOF 8808 if ac_fn_c_try_link "$LINENO"; then : 8809 eval $cacheid=yes 8810 else 8811 eval $cacheid=no 8812 fi 8813 rm -f core conftest.err conftest.$ac_objext \ 8814 conftest$ac_exeext conftest.$ac_ext 8815 fi 8816 8817 8818 CFLAGS="$xorg_testset_save_CFLAGS" 8819 8820 eval supported=\$$cacheid 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8822 $as_echo "$supported" >&6; } 8823 if test "$supported" = "yes" ; then 8824 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8825 found="yes" 8826 fi 8827 fi 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 xorg_testset_save_CFLAGS="$CFLAGS" 8844 8845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8850 $as_echo_n "(cached) " >&6 8851 else 8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8853 /* end confdefs.h. */ 8854 int i; 8855 _ACEOF 8856 if ac_fn_c_try_compile "$LINENO"; then : 8857 xorg_cv_cc_flag_unknown_warning_option=yes 8858 else 8859 xorg_cv_cc_flag_unknown_warning_option=no 8860 fi 8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8862 fi 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8866 CFLAGS="$xorg_testset_save_CFLAGS" 8867 fi 8868 8869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8872 fi 8873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878 else 8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8880 /* end confdefs.h. */ 8881 int i; 8882 _ACEOF 8883 if ac_fn_c_try_compile "$LINENO"; then : 8884 xorg_cv_cc_flag_unused_command_line_argument=yes 8885 else 8886 xorg_cv_cc_flag_unused_command_line_argument=no 8887 fi 8888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8889 fi 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8893 CFLAGS="$xorg_testset_save_CFLAGS" 8894 fi 8895 8896 found="no" 8897 8898 if test $found = "no" ; then 8899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8901 fi 8902 8903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8905 fi 8906 8907 CFLAGS="$CFLAGS -Wnonnull" 8908 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8910 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8911 cacheid=xorg_cv_cc_flag__Wnonnull 8912 if eval \${$cacheid+:} false; then : 8913 $as_echo_n "(cached) " >&6 8914 else 8915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8916 /* end confdefs.h. */ 8917 int i; 8918 int 8919 main () 8920 { 8921 8922 ; 8923 return 0; 8924 } 8925 _ACEOF 8926 if ac_fn_c_try_link "$LINENO"; then : 8927 eval $cacheid=yes 8928 else 8929 eval $cacheid=no 8930 fi 8931 rm -f core conftest.err conftest.$ac_objext \ 8932 conftest$ac_exeext conftest.$ac_ext 8933 fi 8934 8935 8936 CFLAGS="$xorg_testset_save_CFLAGS" 8937 8938 eval supported=\$$cacheid 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8940 $as_echo "$supported" >&6; } 8941 if test "$supported" = "yes" ; then 8942 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8943 found="yes" 8944 fi 8945 fi 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 xorg_testset_save_CFLAGS="$CFLAGS" 8962 8963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8968 $as_echo_n "(cached) " >&6 8969 else 8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8971 /* end confdefs.h. */ 8972 int i; 8973 _ACEOF 8974 if ac_fn_c_try_compile "$LINENO"; then : 8975 xorg_cv_cc_flag_unknown_warning_option=yes 8976 else 8977 xorg_cv_cc_flag_unknown_warning_option=no 8978 fi 8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8980 fi 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8984 CFLAGS="$xorg_testset_save_CFLAGS" 8985 fi 8986 8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8990 fi 8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8995 $as_echo_n "(cached) " >&6 8996 else 8997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8998 /* end confdefs.h. */ 8999 int i; 9000 _ACEOF 9001 if ac_fn_c_try_compile "$LINENO"; then : 9002 xorg_cv_cc_flag_unused_command_line_argument=yes 9003 else 9004 xorg_cv_cc_flag_unused_command_line_argument=no 9005 fi 9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9007 fi 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9011 CFLAGS="$xorg_testset_save_CFLAGS" 9012 fi 9013 9014 found="no" 9015 9016 if test $found = "no" ; then 9017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9019 fi 9020 9021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9023 fi 9024 9025 CFLAGS="$CFLAGS -Winit-self" 9026 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9028 $as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9029 cacheid=xorg_cv_cc_flag__Winit_self 9030 if eval \${$cacheid+:} false; then : 9031 $as_echo_n "(cached) " >&6 9032 else 9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9034 /* end confdefs.h. */ 9035 int i; 9036 int 9037 main () 9038 { 9039 9040 ; 9041 return 0; 9042 } 9043 _ACEOF 9044 if ac_fn_c_try_link "$LINENO"; then : 9045 eval $cacheid=yes 9046 else 9047 eval $cacheid=no 9048 fi 9049 rm -f core conftest.err conftest.$ac_objext \ 9050 conftest$ac_exeext conftest.$ac_ext 9051 fi 9052 9053 9054 CFLAGS="$xorg_testset_save_CFLAGS" 9055 9056 eval supported=\$$cacheid 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9058 $as_echo "$supported" >&6; } 9059 if test "$supported" = "yes" ; then 9060 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9061 found="yes" 9062 fi 9063 fi 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 xorg_testset_save_CFLAGS="$CFLAGS" 9080 9081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9086 $as_echo_n "(cached) " >&6 9087 else 9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9089 /* end confdefs.h. */ 9090 int i; 9091 _ACEOF 9092 if ac_fn_c_try_compile "$LINENO"; then : 9093 xorg_cv_cc_flag_unknown_warning_option=yes 9094 else 9095 xorg_cv_cc_flag_unknown_warning_option=no 9096 fi 9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9098 fi 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9102 CFLAGS="$xorg_testset_save_CFLAGS" 9103 fi 9104 9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9108 fi 9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9113 $as_echo_n "(cached) " >&6 9114 else 9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116 /* end confdefs.h. */ 9117 int i; 9118 _ACEOF 9119 if ac_fn_c_try_compile "$LINENO"; then : 9120 xorg_cv_cc_flag_unused_command_line_argument=yes 9121 else 9122 xorg_cv_cc_flag_unused_command_line_argument=no 9123 fi 9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9125 fi 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9129 CFLAGS="$xorg_testset_save_CFLAGS" 9130 fi 9131 9132 found="no" 9133 9134 if test $found = "no" ; then 9135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9137 fi 9138 9139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9141 fi 9142 9143 CFLAGS="$CFLAGS -Wmain" 9144 9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9146 $as_echo_n "checking if $CC supports -Wmain... " >&6; } 9147 cacheid=xorg_cv_cc_flag__Wmain 9148 if eval \${$cacheid+:} false; then : 9149 $as_echo_n "(cached) " >&6 9150 else 9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9152 /* end confdefs.h. */ 9153 int i; 9154 int 9155 main () 9156 { 9157 9158 ; 9159 return 0; 9160 } 9161 _ACEOF 9162 if ac_fn_c_try_link "$LINENO"; then : 9163 eval $cacheid=yes 9164 else 9165 eval $cacheid=no 9166 fi 9167 rm -f core conftest.err conftest.$ac_objext \ 9168 conftest$ac_exeext conftest.$ac_ext 9169 fi 9170 9171 9172 CFLAGS="$xorg_testset_save_CFLAGS" 9173 9174 eval supported=\$$cacheid 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9176 $as_echo "$supported" >&6; } 9177 if test "$supported" = "yes" ; then 9178 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9179 found="yes" 9180 fi 9181 fi 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 xorg_testset_save_CFLAGS="$CFLAGS" 9198 9199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9204 $as_echo_n "(cached) " >&6 9205 else 9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207 /* end confdefs.h. */ 9208 int i; 9209 _ACEOF 9210 if ac_fn_c_try_compile "$LINENO"; then : 9211 xorg_cv_cc_flag_unknown_warning_option=yes 9212 else 9213 xorg_cv_cc_flag_unknown_warning_option=no 9214 fi 9215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9216 fi 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9220 CFLAGS="$xorg_testset_save_CFLAGS" 9221 fi 9222 9223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9226 fi 9227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9231 $as_echo_n "(cached) " >&6 9232 else 9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9234 /* end confdefs.h. */ 9235 int i; 9236 _ACEOF 9237 if ac_fn_c_try_compile "$LINENO"; then : 9238 xorg_cv_cc_flag_unused_command_line_argument=yes 9239 else 9240 xorg_cv_cc_flag_unused_command_line_argument=no 9241 fi 9242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9243 fi 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9247 CFLAGS="$xorg_testset_save_CFLAGS" 9248 fi 9249 9250 found="no" 9251 9252 if test $found = "no" ; then 9253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9255 fi 9256 9257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9259 fi 9260 9261 CFLAGS="$CFLAGS -Wmissing-braces" 9262 9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9264 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9265 cacheid=xorg_cv_cc_flag__Wmissing_braces 9266 if eval \${$cacheid+:} false; then : 9267 $as_echo_n "(cached) " >&6 9268 else 9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270 /* end confdefs.h. */ 9271 int i; 9272 int 9273 main () 9274 { 9275 9276 ; 9277 return 0; 9278 } 9279 _ACEOF 9280 if ac_fn_c_try_link "$LINENO"; then : 9281 eval $cacheid=yes 9282 else 9283 eval $cacheid=no 9284 fi 9285 rm -f core conftest.err conftest.$ac_objext \ 9286 conftest$ac_exeext conftest.$ac_ext 9287 fi 9288 9289 9290 CFLAGS="$xorg_testset_save_CFLAGS" 9291 9292 eval supported=\$$cacheid 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9294 $as_echo "$supported" >&6; } 9295 if test "$supported" = "yes" ; then 9296 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9297 found="yes" 9298 fi 9299 fi 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 xorg_testset_save_CFLAGS="$CFLAGS" 9316 9317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9322 $as_echo_n "(cached) " >&6 9323 else 9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9325 /* end confdefs.h. */ 9326 int i; 9327 _ACEOF 9328 if ac_fn_c_try_compile "$LINENO"; then : 9329 xorg_cv_cc_flag_unknown_warning_option=yes 9330 else 9331 xorg_cv_cc_flag_unknown_warning_option=no 9332 fi 9333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9334 fi 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9338 CFLAGS="$xorg_testset_save_CFLAGS" 9339 fi 9340 9341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9344 fi 9345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9349 $as_echo_n "(cached) " >&6 9350 else 9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352 /* end confdefs.h. */ 9353 int i; 9354 _ACEOF 9355 if ac_fn_c_try_compile "$LINENO"; then : 9356 xorg_cv_cc_flag_unused_command_line_argument=yes 9357 else 9358 xorg_cv_cc_flag_unused_command_line_argument=no 9359 fi 9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9361 fi 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9365 CFLAGS="$xorg_testset_save_CFLAGS" 9366 fi 9367 9368 found="no" 9369 9370 if test $found = "no" ; then 9371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9373 fi 9374 9375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9377 fi 9378 9379 CFLAGS="$CFLAGS -Wsequence-point" 9380 9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9382 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9383 cacheid=xorg_cv_cc_flag__Wsequence_point 9384 if eval \${$cacheid+:} false; then : 9385 $as_echo_n "(cached) " >&6 9386 else 9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9388 /* end confdefs.h. */ 9389 int i; 9390 int 9391 main () 9392 { 9393 9394 ; 9395 return 0; 9396 } 9397 _ACEOF 9398 if ac_fn_c_try_link "$LINENO"; then : 9399 eval $cacheid=yes 9400 else 9401 eval $cacheid=no 9402 fi 9403 rm -f core conftest.err conftest.$ac_objext \ 9404 conftest$ac_exeext conftest.$ac_ext 9405 fi 9406 9407 9408 CFLAGS="$xorg_testset_save_CFLAGS" 9409 9410 eval supported=\$$cacheid 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9412 $as_echo "$supported" >&6; } 9413 if test "$supported" = "yes" ; then 9414 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9415 found="yes" 9416 fi 9417 fi 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 xorg_testset_save_CFLAGS="$CFLAGS" 9434 9435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441 else 9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9443 /* end confdefs.h. */ 9444 int i; 9445 _ACEOF 9446 if ac_fn_c_try_compile "$LINENO"; then : 9447 xorg_cv_cc_flag_unknown_warning_option=yes 9448 else 9449 xorg_cv_cc_flag_unknown_warning_option=no 9450 fi 9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9452 fi 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9456 CFLAGS="$xorg_testset_save_CFLAGS" 9457 fi 9458 9459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9462 fi 9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9467 $as_echo_n "(cached) " >&6 9468 else 9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470 /* end confdefs.h. */ 9471 int i; 9472 _ACEOF 9473 if ac_fn_c_try_compile "$LINENO"; then : 9474 xorg_cv_cc_flag_unused_command_line_argument=yes 9475 else 9476 xorg_cv_cc_flag_unused_command_line_argument=no 9477 fi 9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9479 fi 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9483 CFLAGS="$xorg_testset_save_CFLAGS" 9484 fi 9485 9486 found="no" 9487 9488 if test $found = "no" ; then 9489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9491 fi 9492 9493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9495 fi 9496 9497 CFLAGS="$CFLAGS -Wreturn-type" 9498 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9500 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9501 cacheid=xorg_cv_cc_flag__Wreturn_type 9502 if eval \${$cacheid+:} false; then : 9503 $as_echo_n "(cached) " >&6 9504 else 9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9506 /* end confdefs.h. */ 9507 int i; 9508 int 9509 main () 9510 { 9511 9512 ; 9513 return 0; 9514 } 9515 _ACEOF 9516 if ac_fn_c_try_link "$LINENO"; then : 9517 eval $cacheid=yes 9518 else 9519 eval $cacheid=no 9520 fi 9521 rm -f core conftest.err conftest.$ac_objext \ 9522 conftest$ac_exeext conftest.$ac_ext 9523 fi 9524 9525 9526 CFLAGS="$xorg_testset_save_CFLAGS" 9527 9528 eval supported=\$$cacheid 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9530 $as_echo "$supported" >&6; } 9531 if test "$supported" = "yes" ; then 9532 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9533 found="yes" 9534 fi 9535 fi 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 xorg_testset_save_CFLAGS="$CFLAGS" 9552 9553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9558 $as_echo_n "(cached) " >&6 9559 else 9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9561 /* end confdefs.h. */ 9562 int i; 9563 _ACEOF 9564 if ac_fn_c_try_compile "$LINENO"; then : 9565 xorg_cv_cc_flag_unknown_warning_option=yes 9566 else 9567 xorg_cv_cc_flag_unknown_warning_option=no 9568 fi 9569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9570 fi 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9574 CFLAGS="$xorg_testset_save_CFLAGS" 9575 fi 9576 9577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9580 fi 9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9585 $as_echo_n "(cached) " >&6 9586 else 9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9588 /* end confdefs.h. */ 9589 int i; 9590 _ACEOF 9591 if ac_fn_c_try_compile "$LINENO"; then : 9592 xorg_cv_cc_flag_unused_command_line_argument=yes 9593 else 9594 xorg_cv_cc_flag_unused_command_line_argument=no 9595 fi 9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9597 fi 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9601 CFLAGS="$xorg_testset_save_CFLAGS" 9602 fi 9603 9604 found="no" 9605 9606 if test $found = "no" ; then 9607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9609 fi 9610 9611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9613 fi 9614 9615 CFLAGS="$CFLAGS -Wtrigraphs" 9616 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9618 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9619 cacheid=xorg_cv_cc_flag__Wtrigraphs 9620 if eval \${$cacheid+:} false; then : 9621 $as_echo_n "(cached) " >&6 9622 else 9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9624 /* end confdefs.h. */ 9625 int i; 9626 int 9627 main () 9628 { 9629 9630 ; 9631 return 0; 9632 } 9633 _ACEOF 9634 if ac_fn_c_try_link "$LINENO"; then : 9635 eval $cacheid=yes 9636 else 9637 eval $cacheid=no 9638 fi 9639 rm -f core conftest.err conftest.$ac_objext \ 9640 conftest$ac_exeext conftest.$ac_ext 9641 fi 9642 9643 9644 CFLAGS="$xorg_testset_save_CFLAGS" 9645 9646 eval supported=\$$cacheid 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9648 $as_echo "$supported" >&6; } 9649 if test "$supported" = "yes" ; then 9650 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9651 found="yes" 9652 fi 9653 fi 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 xorg_testset_save_CFLAGS="$CFLAGS" 9670 9671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9674 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9675 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677 else 9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9679 /* end confdefs.h. */ 9680 int i; 9681 _ACEOF 9682 if ac_fn_c_try_compile "$LINENO"; then : 9683 xorg_cv_cc_flag_unknown_warning_option=yes 9684 else 9685 xorg_cv_cc_flag_unknown_warning_option=no 9686 fi 9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9688 fi 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9690 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9692 CFLAGS="$xorg_testset_save_CFLAGS" 9693 fi 9694 9695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9698 fi 9699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9701 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9702 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9703 $as_echo_n "(cached) " >&6 9704 else 9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9706 /* end confdefs.h. */ 9707 int i; 9708 _ACEOF 9709 if ac_fn_c_try_compile "$LINENO"; then : 9710 xorg_cv_cc_flag_unused_command_line_argument=yes 9711 else 9712 xorg_cv_cc_flag_unused_command_line_argument=no 9713 fi 9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9715 fi 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9717 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9719 CFLAGS="$xorg_testset_save_CFLAGS" 9720 fi 9721 9722 found="no" 9723 9724 if test $found = "no" ; then 9725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9727 fi 9728 9729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9731 fi 9732 9733 CFLAGS="$CFLAGS -Warray-bounds" 9734 9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9736 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9737 cacheid=xorg_cv_cc_flag__Warray_bounds 9738 if eval \${$cacheid+:} false; then : 9739 $as_echo_n "(cached) " >&6 9740 else 9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9742 /* end confdefs.h. */ 9743 int i; 9744 int 9745 main () 9746 { 9747 9748 ; 9749 return 0; 9750 } 9751 _ACEOF 9752 if ac_fn_c_try_link "$LINENO"; then : 9753 eval $cacheid=yes 9754 else 9755 eval $cacheid=no 9756 fi 9757 rm -f core conftest.err conftest.$ac_objext \ 9758 conftest$ac_exeext conftest.$ac_ext 9759 fi 9760 9761 9762 CFLAGS="$xorg_testset_save_CFLAGS" 9763 9764 eval supported=\$$cacheid 9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9766 $as_echo "$supported" >&6; } 9767 if test "$supported" = "yes" ; then 9768 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9769 found="yes" 9770 fi 9771 fi 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 xorg_testset_save_CFLAGS="$CFLAGS" 9788 9789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9792 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9793 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9794 $as_echo_n "(cached) " >&6 9795 else 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797 /* end confdefs.h. */ 9798 int i; 9799 _ACEOF 9800 if ac_fn_c_try_compile "$LINENO"; then : 9801 xorg_cv_cc_flag_unknown_warning_option=yes 9802 else 9803 xorg_cv_cc_flag_unknown_warning_option=no 9804 fi 9805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9806 fi 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9808 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9810 CFLAGS="$xorg_testset_save_CFLAGS" 9811 fi 9812 9813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9816 fi 9817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9819 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9820 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9821 $as_echo_n "(cached) " >&6 9822 else 9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9824 /* end confdefs.h. */ 9825 int i; 9826 _ACEOF 9827 if ac_fn_c_try_compile "$LINENO"; then : 9828 xorg_cv_cc_flag_unused_command_line_argument=yes 9829 else 9830 xorg_cv_cc_flag_unused_command_line_argument=no 9831 fi 9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9833 fi 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9835 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9837 CFLAGS="$xorg_testset_save_CFLAGS" 9838 fi 9839 9840 found="no" 9841 9842 if test $found = "no" ; then 9843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9845 fi 9846 9847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9849 fi 9850 9851 CFLAGS="$CFLAGS -Wwrite-strings" 9852 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9854 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9855 cacheid=xorg_cv_cc_flag__Wwrite_strings 9856 if eval \${$cacheid+:} false; then : 9857 $as_echo_n "(cached) " >&6 9858 else 9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9860 /* end confdefs.h. */ 9861 int i; 9862 int 9863 main () 9864 { 9865 9866 ; 9867 return 0; 9868 } 9869 _ACEOF 9870 if ac_fn_c_try_link "$LINENO"; then : 9871 eval $cacheid=yes 9872 else 9873 eval $cacheid=no 9874 fi 9875 rm -f core conftest.err conftest.$ac_objext \ 9876 conftest$ac_exeext conftest.$ac_ext 9877 fi 9878 9879 9880 CFLAGS="$xorg_testset_save_CFLAGS" 9881 9882 eval supported=\$$cacheid 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9884 $as_echo "$supported" >&6; } 9885 if test "$supported" = "yes" ; then 9886 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9887 found="yes" 9888 fi 9889 fi 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 xorg_testset_save_CFLAGS="$CFLAGS" 9906 9907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9910 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9911 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9912 $as_echo_n "(cached) " >&6 9913 else 9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9915 /* end confdefs.h. */ 9916 int i; 9917 _ACEOF 9918 if ac_fn_c_try_compile "$LINENO"; then : 9919 xorg_cv_cc_flag_unknown_warning_option=yes 9920 else 9921 xorg_cv_cc_flag_unknown_warning_option=no 9922 fi 9923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9924 fi 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9926 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9928 CFLAGS="$xorg_testset_save_CFLAGS" 9929 fi 9930 9931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9934 fi 9935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9937 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9938 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9939 $as_echo_n "(cached) " >&6 9940 else 9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9942 /* end confdefs.h. */ 9943 int i; 9944 _ACEOF 9945 if ac_fn_c_try_compile "$LINENO"; then : 9946 xorg_cv_cc_flag_unused_command_line_argument=yes 9947 else 9948 xorg_cv_cc_flag_unused_command_line_argument=no 9949 fi 9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9951 fi 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9953 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9955 CFLAGS="$xorg_testset_save_CFLAGS" 9956 fi 9957 9958 found="no" 9959 9960 if test $found = "no" ; then 9961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9963 fi 9964 9965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9967 fi 9968 9969 CFLAGS="$CFLAGS -Waddress" 9970 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9972 $as_echo_n "checking if $CC supports -Waddress... " >&6; } 9973 cacheid=xorg_cv_cc_flag__Waddress 9974 if eval \${$cacheid+:} false; then : 9975 $as_echo_n "(cached) " >&6 9976 else 9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9978 /* end confdefs.h. */ 9979 int i; 9980 int 9981 main () 9982 { 9983 9984 ; 9985 return 0; 9986 } 9987 _ACEOF 9988 if ac_fn_c_try_link "$LINENO"; then : 9989 eval $cacheid=yes 9990 else 9991 eval $cacheid=no 9992 fi 9993 rm -f core conftest.err conftest.$ac_objext \ 9994 conftest$ac_exeext conftest.$ac_ext 9995 fi 9996 9997 9998 CFLAGS="$xorg_testset_save_CFLAGS" 9999 10000 eval supported=\$$cacheid 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10002 $as_echo "$supported" >&6; } 10003 if test "$supported" = "yes" ; then 10004 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10005 found="yes" 10006 fi 10007 fi 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 xorg_testset_save_CFLAGS="$CFLAGS" 10024 10025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10028 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10029 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10030 $as_echo_n "(cached) " >&6 10031 else 10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10033 /* end confdefs.h. */ 10034 int i; 10035 _ACEOF 10036 if ac_fn_c_try_compile "$LINENO"; then : 10037 xorg_cv_cc_flag_unknown_warning_option=yes 10038 else 10039 xorg_cv_cc_flag_unknown_warning_option=no 10040 fi 10041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10042 fi 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10044 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10046 CFLAGS="$xorg_testset_save_CFLAGS" 10047 fi 10048 10049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10052 fi 10053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10055 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10056 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10057 $as_echo_n "(cached) " >&6 10058 else 10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10060 /* end confdefs.h. */ 10061 int i; 10062 _ACEOF 10063 if ac_fn_c_try_compile "$LINENO"; then : 10064 xorg_cv_cc_flag_unused_command_line_argument=yes 10065 else 10066 xorg_cv_cc_flag_unused_command_line_argument=no 10067 fi 10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10069 fi 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10071 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10073 CFLAGS="$xorg_testset_save_CFLAGS" 10074 fi 10075 10076 found="no" 10077 10078 if test $found = "no" ; then 10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10081 fi 10082 10083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10085 fi 10086 10087 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10088 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10090 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10091 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10092 if eval \${$cacheid+:} false; then : 10093 $as_echo_n "(cached) " >&6 10094 else 10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10096 /* end confdefs.h. */ 10097 int i; 10098 int 10099 main () 10100 { 10101 10102 ; 10103 return 0; 10104 } 10105 _ACEOF 10106 if ac_fn_c_try_link "$LINENO"; then : 10107 eval $cacheid=yes 10108 else 10109 eval $cacheid=no 10110 fi 10111 rm -f core conftest.err conftest.$ac_objext \ 10112 conftest$ac_exeext conftest.$ac_ext 10113 fi 10114 10115 10116 CFLAGS="$xorg_testset_save_CFLAGS" 10117 10118 eval supported=\$$cacheid 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10120 $as_echo "$supported" >&6; } 10121 if test "$supported" = "yes" ; then 10122 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10123 found="yes" 10124 fi 10125 fi 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 xorg_testset_save_CFLAGS="$CFLAGS" 10142 10143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10146 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10147 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10148 $as_echo_n "(cached) " >&6 10149 else 10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10151 /* end confdefs.h. */ 10152 int i; 10153 _ACEOF 10154 if ac_fn_c_try_compile "$LINENO"; then : 10155 xorg_cv_cc_flag_unknown_warning_option=yes 10156 else 10157 xorg_cv_cc_flag_unknown_warning_option=no 10158 fi 10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10160 fi 10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10162 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10164 CFLAGS="$xorg_testset_save_CFLAGS" 10165 fi 10166 10167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10170 fi 10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10173 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10174 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10175 $as_echo_n "(cached) " >&6 10176 else 10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10178 /* end confdefs.h. */ 10179 int i; 10180 _ACEOF 10181 if ac_fn_c_try_compile "$LINENO"; then : 10182 xorg_cv_cc_flag_unused_command_line_argument=yes 10183 else 10184 xorg_cv_cc_flag_unused_command_line_argument=no 10185 fi 10186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10187 fi 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10189 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10191 CFLAGS="$xorg_testset_save_CFLAGS" 10192 fi 10193 10194 found="no" 10195 10196 if test $found = "no" ; then 10197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10199 fi 10200 10201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10203 fi 10204 10205 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10206 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10208 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10209 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10210 if eval \${$cacheid+:} false; then : 10211 $as_echo_n "(cached) " >&6 10212 else 10213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10214 /* end confdefs.h. */ 10215 int i; 10216 int 10217 main () 10218 { 10219 10220 ; 10221 return 0; 10222 } 10223 _ACEOF 10224 if ac_fn_c_try_link "$LINENO"; then : 10225 eval $cacheid=yes 10226 else 10227 eval $cacheid=no 10228 fi 10229 rm -f core conftest.err conftest.$ac_objext \ 10230 conftest$ac_exeext conftest.$ac_ext 10231 fi 10232 10233 10234 CFLAGS="$xorg_testset_save_CFLAGS" 10235 10236 eval supported=\$$cacheid 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10238 $as_echo "$supported" >&6; } 10239 if test "$supported" = "yes" ; then 10240 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10241 found="yes" 10242 fi 10243 fi 10244 10245 10246 fi 10247 10248 10249 10250 10251 10252 10253 10254 CWARNFLAGS="$BASE_CFLAGS" 10255 if test "x$GCC" = xyes ; then 10256 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10257 fi 10258 10259 10260 10261 10262 10263 10264 10265 10266 # Check whether --enable-strict-compilation was given. 10267 if test "${enable_strict_compilation+set}" = set; then : 10268 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10269 else 10270 STRICT_COMPILE=no 10271 fi 10272 10273 10274 10275 10276 10277 10278 STRICT_CFLAGS="" 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 xorg_testset_save_CFLAGS="$CFLAGS" 10293 10294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10297 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10298 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10299 $as_echo_n "(cached) " >&6 10300 else 10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10302 /* end confdefs.h. */ 10303 int i; 10304 _ACEOF 10305 if ac_fn_c_try_compile "$LINENO"; then : 10306 xorg_cv_cc_flag_unknown_warning_option=yes 10307 else 10308 xorg_cv_cc_flag_unknown_warning_option=no 10309 fi 10310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10311 fi 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10313 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10315 CFLAGS="$xorg_testset_save_CFLAGS" 10316 fi 10317 10318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10321 fi 10322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10324 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10325 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10326 $as_echo_n "(cached) " >&6 10327 else 10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10329 /* end confdefs.h. */ 10330 int i; 10331 _ACEOF 10332 if ac_fn_c_try_compile "$LINENO"; then : 10333 xorg_cv_cc_flag_unused_command_line_argument=yes 10334 else 10335 xorg_cv_cc_flag_unused_command_line_argument=no 10336 fi 10337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10338 fi 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10340 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10342 CFLAGS="$xorg_testset_save_CFLAGS" 10343 fi 10344 10345 found="no" 10346 10347 if test $found = "no" ; then 10348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10350 fi 10351 10352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10354 fi 10355 10356 CFLAGS="$CFLAGS -pedantic" 10357 10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10359 $as_echo_n "checking if $CC supports -pedantic... " >&6; } 10360 cacheid=xorg_cv_cc_flag__pedantic 10361 if eval \${$cacheid+:} false; then : 10362 $as_echo_n "(cached) " >&6 10363 else 10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10365 /* end confdefs.h. */ 10366 int i; 10367 int 10368 main () 10369 { 10370 10371 ; 10372 return 0; 10373 } 10374 _ACEOF 10375 if ac_fn_c_try_link "$LINENO"; then : 10376 eval $cacheid=yes 10377 else 10378 eval $cacheid=no 10379 fi 10380 rm -f core conftest.err conftest.$ac_objext \ 10381 conftest$ac_exeext conftest.$ac_ext 10382 fi 10383 10384 10385 CFLAGS="$xorg_testset_save_CFLAGS" 10386 10387 eval supported=\$$cacheid 10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10389 $as_echo "$supported" >&6; } 10390 if test "$supported" = "yes" ; then 10391 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10392 found="yes" 10393 fi 10394 fi 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 xorg_testset_save_CFLAGS="$CFLAGS" 10411 10412 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10415 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10416 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10417 $as_echo_n "(cached) " >&6 10418 else 10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10420 /* end confdefs.h. */ 10421 int i; 10422 _ACEOF 10423 if ac_fn_c_try_compile "$LINENO"; then : 10424 xorg_cv_cc_flag_unknown_warning_option=yes 10425 else 10426 xorg_cv_cc_flag_unknown_warning_option=no 10427 fi 10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10429 fi 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10431 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10433 CFLAGS="$xorg_testset_save_CFLAGS" 10434 fi 10435 10436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10439 fi 10440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10442 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10443 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10444 $as_echo_n "(cached) " >&6 10445 else 10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10447 /* end confdefs.h. */ 10448 int i; 10449 _ACEOF 10450 if ac_fn_c_try_compile "$LINENO"; then : 10451 xorg_cv_cc_flag_unused_command_line_argument=yes 10452 else 10453 xorg_cv_cc_flag_unused_command_line_argument=no 10454 fi 10455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10456 fi 10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10458 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10460 CFLAGS="$xorg_testset_save_CFLAGS" 10461 fi 10462 10463 found="no" 10464 10465 if test $found = "no" ; then 10466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10468 fi 10469 10470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10472 fi 10473 10474 CFLAGS="$CFLAGS -Werror" 10475 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10477 $as_echo_n "checking if $CC supports -Werror... " >&6; } 10478 cacheid=xorg_cv_cc_flag__Werror 10479 if eval \${$cacheid+:} false; then : 10480 $as_echo_n "(cached) " >&6 10481 else 10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10483 /* end confdefs.h. */ 10484 int i; 10485 int 10486 main () 10487 { 10488 10489 ; 10490 return 0; 10491 } 10492 _ACEOF 10493 if ac_fn_c_try_link "$LINENO"; then : 10494 eval $cacheid=yes 10495 else 10496 eval $cacheid=no 10497 fi 10498 rm -f core conftest.err conftest.$ac_objext \ 10499 conftest$ac_exeext conftest.$ac_ext 10500 fi 10501 10502 10503 CFLAGS="$xorg_testset_save_CFLAGS" 10504 10505 eval supported=\$$cacheid 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10507 $as_echo "$supported" >&6; } 10508 if test "$supported" = "yes" ; then 10509 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10510 found="yes" 10511 fi 10512 fi 10513 10514 if test $found = "no" ; then 10515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10517 fi 10518 10519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10521 fi 10522 10523 CFLAGS="$CFLAGS -errwarn" 10524 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10526 $as_echo_n "checking if $CC supports -errwarn... " >&6; } 10527 cacheid=xorg_cv_cc_flag__errwarn 10528 if eval \${$cacheid+:} false; then : 10529 $as_echo_n "(cached) " >&6 10530 else 10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10532 /* end confdefs.h. */ 10533 int i; 10534 int 10535 main () 10536 { 10537 10538 ; 10539 return 0; 10540 } 10541 _ACEOF 10542 if ac_fn_c_try_link "$LINENO"; then : 10543 eval $cacheid=yes 10544 else 10545 eval $cacheid=no 10546 fi 10547 rm -f core conftest.err conftest.$ac_objext \ 10548 conftest$ac_exeext conftest.$ac_ext 10549 fi 10550 10551 10552 CFLAGS="$xorg_testset_save_CFLAGS" 10553 10554 eval supported=\$$cacheid 10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10556 $as_echo "$supported" >&6; } 10557 if test "$supported" = "yes" ; then 10558 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10559 found="yes" 10560 fi 10561 fi 10562 10563 10564 10565 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10566 # activate it with -Werror, so we add it here explicitly. 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 xorg_testset_save_CFLAGS="$CFLAGS" 10581 10582 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10585 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10586 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10587 $as_echo_n "(cached) " >&6 10588 else 10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10590 /* end confdefs.h. */ 10591 int i; 10592 _ACEOF 10593 if ac_fn_c_try_compile "$LINENO"; then : 10594 xorg_cv_cc_flag_unknown_warning_option=yes 10595 else 10596 xorg_cv_cc_flag_unknown_warning_option=no 10597 fi 10598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10599 fi 10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10601 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10603 CFLAGS="$xorg_testset_save_CFLAGS" 10604 fi 10605 10606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10609 fi 10610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10612 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10613 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10614 $as_echo_n "(cached) " >&6 10615 else 10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617 /* end confdefs.h. */ 10618 int i; 10619 _ACEOF 10620 if ac_fn_c_try_compile "$LINENO"; then : 10621 xorg_cv_cc_flag_unused_command_line_argument=yes 10622 else 10623 xorg_cv_cc_flag_unused_command_line_argument=no 10624 fi 10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10626 fi 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10628 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10630 CFLAGS="$xorg_testset_save_CFLAGS" 10631 fi 10632 10633 found="no" 10634 10635 if test $found = "no" ; then 10636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10638 fi 10639 10640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10642 fi 10643 10644 CFLAGS="$CFLAGS -Werror=attributes" 10645 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10647 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10648 cacheid=xorg_cv_cc_flag__Werror_attributes 10649 if eval \${$cacheid+:} false; then : 10650 $as_echo_n "(cached) " >&6 10651 else 10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10653 /* end confdefs.h. */ 10654 int i; 10655 int 10656 main () 10657 { 10658 10659 ; 10660 return 0; 10661 } 10662 _ACEOF 10663 if ac_fn_c_try_link "$LINENO"; then : 10664 eval $cacheid=yes 10665 else 10666 eval $cacheid=no 10667 fi 10668 rm -f core conftest.err conftest.$ac_objext \ 10669 conftest$ac_exeext conftest.$ac_ext 10670 fi 10671 10672 10673 CFLAGS="$xorg_testset_save_CFLAGS" 10674 10675 eval supported=\$$cacheid 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10677 $as_echo "$supported" >&6; } 10678 if test "$supported" = "yes" ; then 10679 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10680 found="yes" 10681 fi 10682 fi 10683 10684 10685 10686 if test "x$STRICT_COMPILE" = "xyes"; then 10687 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10688 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10689 fi 10690 10691 10692 10693 10694 10695 10696 cat >>confdefs.h <<_ACEOF 10697 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10698 _ACEOF 10699 10700 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10701 if test "x$PVM" = "x"; then 10702 PVM="0" 10703 fi 10704 10705 cat >>confdefs.h <<_ACEOF 10706 #define PACKAGE_VERSION_MINOR $PVM 10707 _ACEOF 10708 10709 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10710 if test "x$PVP" = "x"; then 10711 PVP="0" 10712 fi 10713 10714 cat >>confdefs.h <<_ACEOF 10715 #define PACKAGE_VERSION_PATCHLEVEL $PVP 10716 _ACEOF 10717 10718 10719 10720 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10721 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10722 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10723 echo 'git directory not found: installing possibly empty changelog.' >&2)" 10724 10725 10726 10727 10728 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10729 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10730 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10731 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10732 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10733 10734 10735 10736 10737 10738 10739 if test x$APP_MAN_SUFFIX = x ; then 10740 APP_MAN_SUFFIX=1 10741 fi 10742 if test x$APP_MAN_DIR = x ; then 10743 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10744 fi 10745 10746 if test x$LIB_MAN_SUFFIX = x ; then 10747 LIB_MAN_SUFFIX=3 10748 fi 10749 if test x$LIB_MAN_DIR = x ; then 10750 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10751 fi 10752 10753 if test x$FILE_MAN_SUFFIX = x ; then 10754 case $host_os in 10755 solaris*) FILE_MAN_SUFFIX=4 ;; 10756 *) FILE_MAN_SUFFIX=5 ;; 10757 esac 10758 fi 10759 if test x$FILE_MAN_DIR = x ; then 10760 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10761 fi 10762 10763 if test x$MISC_MAN_SUFFIX = x ; then 10764 case $host_os in 10765 solaris*) MISC_MAN_SUFFIX=5 ;; 10766 *) MISC_MAN_SUFFIX=7 ;; 10767 esac 10768 fi 10769 if test x$MISC_MAN_DIR = x ; then 10770 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10771 fi 10772 10773 if test x$DRIVER_MAN_SUFFIX = x ; then 10774 case $host_os in 10775 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10776 *) DRIVER_MAN_SUFFIX=4 ;; 10777 esac 10778 fi 10779 if test x$DRIVER_MAN_DIR = x ; then 10780 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10781 fi 10782 10783 if test x$ADMIN_MAN_SUFFIX = x ; then 10784 case $host_os in 10785 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10786 *) ADMIN_MAN_SUFFIX=8 ;; 10787 esac 10788 fi 10789 if test x$ADMIN_MAN_DIR = x ; then 10790 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10791 fi 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 XORG_MAN_PAGE="X Version 11" 10808 10809 MAN_SUBSTS="\ 10810 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10811 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10812 -e 's|__xservername__|Xorg|g' \ 10813 -e 's|__xconfigfile__|xorg.conf|g' \ 10814 -e 's|__projectroot__|\$(prefix)|g' \ 10815 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10816 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10817 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10818 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10819 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10820 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10821 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10822 10823 10824 10825 # Check whether --enable-silent-rules was given. 10826 if test "${enable_silent_rules+set}" = set; then : 10827 enableval=$enable_silent_rules; 10828 fi 10829 10830 case $enable_silent_rules in # ((( 10831 yes) AM_DEFAULT_VERBOSITY=0;; 10832 no) AM_DEFAULT_VERBOSITY=1;; 10833 *) AM_DEFAULT_VERBOSITY=0;; 10834 esac 10835 am_make=${MAKE-make} 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10837 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10838 if ${am_cv_make_support_nested_variables+:} false; then : 10839 $as_echo_n "(cached) " >&6 10840 else 10841 if $as_echo 'TRUE=$(BAR$(V)) 10842 BAR0=false 10843 BAR1=true 10844 V=1 10845 am__doit: 10846 @$(TRUE) 10847 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10848 am_cv_make_support_nested_variables=yes 10849 else 10850 am_cv_make_support_nested_variables=no 10851 fi 10852 fi 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10854 $as_echo "$am_cv_make_support_nested_variables" >&6; } 10855 if test $am_cv_make_support_nested_variables = yes; then 10856 AM_V='$(V)' 10857 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10858 else 10859 AM_V=$AM_DEFAULT_VERBOSITY 10860 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10861 fi 10862 AM_BACKSLASH='\' 10863 10864 10865 10866 # Initialize libtool 10867 # Check whether --enable-static was given. 10868 if test "${enable_static+set}" = set; then : 10869 enableval=$enable_static; p=${PACKAGE-default} 10870 case $enableval in 10871 yes) enable_static=yes ;; 10872 no) enable_static=no ;; 10873 *) 10874 enable_static=no 10875 # Look at the argument we got. We use all the common list separators. 10876 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10877 for pkg in $enableval; do 10878 IFS=$lt_save_ifs 10879 if test "X$pkg" = "X$p"; then 10880 enable_static=yes 10881 fi 10882 done 10883 IFS=$lt_save_ifs 10884 ;; 10885 esac 10886 else 10887 enable_static=no 10888 fi 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 case `pwd` in 10899 *\ * | *\ *) 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10901 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10902 esac 10903 10904 10905 10906 macro_version='2.4.6' 10907 macro_revision='2.4.6' 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 ltmain=$ac_aux_dir/ltmain.sh 10922 10923 # Backslashify metacharacters that are still active within 10924 # double-quoted strings. 10925 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10926 10927 # Same as above, but do not quote variable references. 10928 double_quote_subst='s/\(["`\\]\)/\\\1/g' 10929 10930 # Sed substitution to delay expansion of an escaped shell variable in a 10931 # double_quote_subst'ed string. 10932 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10933 10934 # Sed substitution to delay expansion of an escaped single quote. 10935 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10936 10937 # Sed substitution to avoid accidental globbing in evaled expressions 10938 no_glob_subst='s/\*/\\\*/g' 10939 10940 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10942 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10943 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10945 $as_echo_n "checking how to print strings... " >&6; } 10946 # Test print first, because it will be a builtin if present. 10947 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10948 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10949 ECHO='print -r --' 10950 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10951 ECHO='printf %s\n' 10952 else 10953 # Use this function as a fallback that always works. 10954 func_fallback_echo () 10955 { 10956 eval 'cat <<_LTECHO_EOF 10957 $1 10958 _LTECHO_EOF' 10959 } 10960 ECHO='func_fallback_echo' 10961 fi 10962 10963 # func_echo_all arg... 10964 # Invoke $ECHO with all args, space-separated. 10965 func_echo_all () 10966 { 10967 $ECHO "" 10968 } 10969 10970 case $ECHO in 10971 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10972 $as_echo "printf" >&6; } ;; 10973 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10974 $as_echo "print -r" >&6; } ;; 10975 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10976 $as_echo "cat" >&6; } ;; 10977 esac 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10993 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 10994 if ${ac_cv_path_SED+:} false; then : 10995 $as_echo_n "(cached) " >&6 10996 else 10997 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10998 for ac_i in 1 2 3 4 5 6 7; do 10999 ac_script="$ac_script$as_nl$ac_script" 11000 done 11001 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11002 { ac_script=; unset ac_script;} 11003 if test -z "$SED"; then 11004 ac_path_SED_found=false 11005 # Loop through the user's path and test for each of PROGNAME-LIST 11006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11007 for as_dir in $PATH 11008 do 11009 IFS=$as_save_IFS 11010 test -z "$as_dir" && as_dir=. 11011 for ac_prog in sed gsed; do 11012 for ac_exec_ext in '' $ac_executable_extensions; do 11013 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11014 as_fn_executable_p "$ac_path_SED" || continue 11015 # Check for GNU ac_path_SED and select it if it is found. 11016 # Check for GNU $ac_path_SED 11017 case `"$ac_path_SED" --version 2>&1` in 11018 *GNU*) 11019 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11020 *) 11021 ac_count=0 11022 $as_echo_n 0123456789 >"conftest.in" 11023 while : 11024 do 11025 cat "conftest.in" "conftest.in" >"conftest.tmp" 11026 mv "conftest.tmp" "conftest.in" 11027 cp "conftest.in" "conftest.nl" 11028 $as_echo '' >> "conftest.nl" 11029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11031 as_fn_arith $ac_count + 1 && ac_count=$as_val 11032 if test $ac_count -gt ${ac_path_SED_max-0}; then 11033 # Best one so far, save it but keep looking for a better one 11034 ac_cv_path_SED="$ac_path_SED" 11035 ac_path_SED_max=$ac_count 11036 fi 11037 # 10*(2^10) chars as input seems more than enough 11038 test $ac_count -gt 10 && break 11039 done 11040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11041 esac 11042 11043 $ac_path_SED_found && break 3 11044 done 11045 done 11046 done 11047 IFS=$as_save_IFS 11048 if test -z "$ac_cv_path_SED"; then 11049 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11050 fi 11051 else 11052 ac_cv_path_SED=$SED 11053 fi 11054 11055 fi 11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11057 $as_echo "$ac_cv_path_SED" >&6; } 11058 SED="$ac_cv_path_SED" 11059 rm -f conftest.sed 11060 11061 test -z "$SED" && SED=sed 11062 Xsed="$SED -e 1s/^X//" 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11075 $as_echo_n "checking for fgrep... " >&6; } 11076 if ${ac_cv_path_FGREP+:} false; then : 11077 $as_echo_n "(cached) " >&6 11078 else 11079 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11080 then ac_cv_path_FGREP="$GREP -F" 11081 else 11082 if test -z "$FGREP"; then 11083 ac_path_FGREP_found=false 11084 # Loop through the user's path and test for each of PROGNAME-LIST 11085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11087 do 11088 IFS=$as_save_IFS 11089 test -z "$as_dir" && as_dir=. 11090 for ac_prog in fgrep; do 11091 for ac_exec_ext in '' $ac_executable_extensions; do 11092 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11093 as_fn_executable_p "$ac_path_FGREP" || continue 11094 # Check for GNU ac_path_FGREP and select it if it is found. 11095 # Check for GNU $ac_path_FGREP 11096 case `"$ac_path_FGREP" --version 2>&1` in 11097 *GNU*) 11098 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11099 *) 11100 ac_count=0 11101 $as_echo_n 0123456789 >"conftest.in" 11102 while : 11103 do 11104 cat "conftest.in" "conftest.in" >"conftest.tmp" 11105 mv "conftest.tmp" "conftest.in" 11106 cp "conftest.in" "conftest.nl" 11107 $as_echo 'FGREP' >> "conftest.nl" 11108 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11110 as_fn_arith $ac_count + 1 && ac_count=$as_val 11111 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11112 # Best one so far, save it but keep looking for a better one 11113 ac_cv_path_FGREP="$ac_path_FGREP" 11114 ac_path_FGREP_max=$ac_count 11115 fi 11116 # 10*(2^10) chars as input seems more than enough 11117 test $ac_count -gt 10 && break 11118 done 11119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11120 esac 11121 11122 $ac_path_FGREP_found && break 3 11123 done 11124 done 11125 done 11126 IFS=$as_save_IFS 11127 if test -z "$ac_cv_path_FGREP"; then 11128 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11129 fi 11130 else 11131 ac_cv_path_FGREP=$FGREP 11132 fi 11133 11134 fi 11135 fi 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11137 $as_echo "$ac_cv_path_FGREP" >&6; } 11138 FGREP="$ac_cv_path_FGREP" 11139 11140 11141 test -z "$GREP" && GREP=grep 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 # Check whether --with-gnu-ld was given. 11162 if test "${with_gnu_ld+set}" = set; then : 11163 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11164 else 11165 with_gnu_ld=no 11166 fi 11167 11168 ac_prog=ld 11169 if test yes = "$GCC"; then 11170 # Check if gcc -print-prog-name=ld gives a path. 11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11172 $as_echo_n "checking for ld used by $CC... " >&6; } 11173 case $host in 11174 *-*-mingw*) 11175 # gcc leaves a trailing carriage return, which upsets mingw 11176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11177 *) 11178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11179 esac 11180 case $ac_prog in 11181 # Accept absolute paths. 11182 [\\/]* | ?:[\\/]*) 11183 re_direlt='/[^/][^/]*/\.\./' 11184 # Canonicalize the pathname of ld 11185 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11186 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11187 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11188 done 11189 test -z "$LD" && LD=$ac_prog 11190 ;; 11191 "") 11192 # If it fails, then pretend we aren't using GCC. 11193 ac_prog=ld 11194 ;; 11195 *) 11196 # If it is relative, then search for the first ld in PATH. 11197 with_gnu_ld=unknown 11198 ;; 11199 esac 11200 elif test yes = "$with_gnu_ld"; then 11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11202 $as_echo_n "checking for GNU ld... " >&6; } 11203 else 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11205 $as_echo_n "checking for non-GNU ld... " >&6; } 11206 fi 11207 if ${lt_cv_path_LD+:} false; then : 11208 $as_echo_n "(cached) " >&6 11209 else 11210 if test -z "$LD"; then 11211 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11212 for ac_dir in $PATH; do 11213 IFS=$lt_save_ifs 11214 test -z "$ac_dir" && ac_dir=. 11215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11216 lt_cv_path_LD=$ac_dir/$ac_prog 11217 # Check to see if the program is GNU ld. I'd rather use --version, 11218 # but apparently some variants of GNU ld only accept -v. 11219 # Break only if it was the GNU/non-GNU ld that we prefer. 11220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11221 *GNU* | *'with BFD'*) 11222 test no != "$with_gnu_ld" && break 11223 ;; 11224 *) 11225 test yes != "$with_gnu_ld" && break 11226 ;; 11227 esac 11228 fi 11229 done 11230 IFS=$lt_save_ifs 11231 else 11232 lt_cv_path_LD=$LD # Let the user override the test with a path. 11233 fi 11234 fi 11235 11236 LD=$lt_cv_path_LD 11237 if test -n "$LD"; then 11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11239 $as_echo "$LD" >&6; } 11240 else 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11242 $as_echo "no" >&6; } 11243 fi 11244 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11247 if ${lt_cv_prog_gnu_ld+:} false; then : 11248 $as_echo_n "(cached) " >&6 11249 else 11250 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11251 case `$LD -v 2>&1 </dev/null` in 11252 *GNU* | *'with BFD'*) 11253 lt_cv_prog_gnu_ld=yes 11254 ;; 11255 *) 11256 lt_cv_prog_gnu_ld=no 11257 ;; 11258 esac 11259 fi 11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11261 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11262 with_gnu_ld=$lt_cv_prog_gnu_ld 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11273 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11274 if ${lt_cv_path_NM+:} false; then : 11275 $as_echo_n "(cached) " >&6 11276 else 11277 if test -n "$NM"; then 11278 # Let the user override the test. 11279 lt_cv_path_NM=$NM 11280 else 11281 lt_nm_to_check=${ac_tool_prefix}nm 11282 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11283 lt_nm_to_check="$lt_nm_to_check nm" 11284 fi 11285 for lt_tmp_nm in $lt_nm_to_check; do 11286 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11287 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11288 IFS=$lt_save_ifs 11289 test -z "$ac_dir" && ac_dir=. 11290 tmp_nm=$ac_dir/$lt_tmp_nm 11291 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11292 # Check to see if the nm accepts a BSD-compat flag. 11293 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11294 # nm: unknown option "B" ignored 11295 # Tru64's nm complains that /dev/null is an invalid object file 11296 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11297 case $build_os in 11298 mingw*) lt_bad_file=conftest.nm/nofile ;; 11299 *) lt_bad_file=/dev/null ;; 11300 esac 11301 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11302 *$lt_bad_file* | *'Invalid file or object type'*) 11303 lt_cv_path_NM="$tmp_nm -B" 11304 break 2 11305 ;; 11306 *) 11307 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11308 */dev/null*) 11309 lt_cv_path_NM="$tmp_nm -p" 11310 break 2 11311 ;; 11312 *) 11313 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11314 continue # so that we can try to find one that supports BSD flags 11315 ;; 11316 esac 11317 ;; 11318 esac 11319 fi 11320 done 11321 IFS=$lt_save_ifs 11322 done 11323 : ${lt_cv_path_NM=no} 11324 fi 11325 fi 11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11327 $as_echo "$lt_cv_path_NM" >&6; } 11328 if test no != "$lt_cv_path_NM"; then 11329 NM=$lt_cv_path_NM 11330 else 11331 # Didn't find any BSD compatible name lister, look for dumpbin. 11332 if test -n "$DUMPBIN"; then : 11333 # Let the user override the test. 11334 else 11335 if test -n "$ac_tool_prefix"; then 11336 for ac_prog in dumpbin "link -dump" 11337 do 11338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11341 $as_echo_n "checking for $ac_word... " >&6; } 11342 if ${ac_cv_prog_DUMPBIN+:} false; then : 11343 $as_echo_n "(cached) " >&6 11344 else 11345 if test -n "$DUMPBIN"; then 11346 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11347 else 11348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11349 for as_dir in $PATH 11350 do 11351 IFS=$as_save_IFS 11352 test -z "$as_dir" && as_dir=. 11353 for ac_exec_ext in '' $ac_executable_extensions; do 11354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11355 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11357 break 2 11358 fi 11359 done 11360 done 11361 IFS=$as_save_IFS 11362 11363 fi 11364 fi 11365 DUMPBIN=$ac_cv_prog_DUMPBIN 11366 if test -n "$DUMPBIN"; then 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11368 $as_echo "$DUMPBIN" >&6; } 11369 else 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11371 $as_echo "no" >&6; } 11372 fi 11373 11374 11375 test -n "$DUMPBIN" && break 11376 done 11377 fi 11378 if test -z "$DUMPBIN"; then 11379 ac_ct_DUMPBIN=$DUMPBIN 11380 for ac_prog in dumpbin "link -dump" 11381 do 11382 # Extract the first word of "$ac_prog", so it can be a program name with args. 11383 set dummy $ac_prog; ac_word=$2 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11385 $as_echo_n "checking for $ac_word... " >&6; } 11386 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11387 $as_echo_n "(cached) " >&6 11388 else 11389 if test -n "$ac_ct_DUMPBIN"; then 11390 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11391 else 11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11393 for as_dir in $PATH 11394 do 11395 IFS=$as_save_IFS 11396 test -z "$as_dir" && as_dir=. 11397 for ac_exec_ext in '' $ac_executable_extensions; do 11398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11399 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11401 break 2 11402 fi 11403 done 11404 done 11405 IFS=$as_save_IFS 11406 11407 fi 11408 fi 11409 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11410 if test -n "$ac_ct_DUMPBIN"; then 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11412 $as_echo "$ac_ct_DUMPBIN" >&6; } 11413 else 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11415 $as_echo "no" >&6; } 11416 fi 11417 11418 11419 test -n "$ac_ct_DUMPBIN" && break 11420 done 11421 11422 if test "x$ac_ct_DUMPBIN" = x; then 11423 DUMPBIN=":" 11424 else 11425 case $cross_compiling:$ac_tool_warned in 11426 yes:) 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11429 ac_tool_warned=yes ;; 11430 esac 11431 DUMPBIN=$ac_ct_DUMPBIN 11432 fi 11433 fi 11434 11435 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11436 *COFF*) 11437 DUMPBIN="$DUMPBIN -symbols -headers" 11438 ;; 11439 *) 11440 DUMPBIN=: 11441 ;; 11442 esac 11443 fi 11444 11445 if test : != "$DUMPBIN"; then 11446 NM=$DUMPBIN 11447 fi 11448 fi 11449 test -z "$NM" && NM=nm 11450 11451 11452 11453 11454 11455 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11457 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 11458 if ${lt_cv_nm_interface+:} false; then : 11459 $as_echo_n "(cached) " >&6 11460 else 11461 lt_cv_nm_interface="BSD nm" 11462 echo "int some_variable = 0;" > conftest.$ac_ext 11463 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11464 (eval "$ac_compile" 2>conftest.err) 11465 cat conftest.err >&5 11466 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11467 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11468 cat conftest.err >&5 11469 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11470 cat conftest.out >&5 11471 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11472 lt_cv_nm_interface="MS dumpbin" 11473 fi 11474 rm -f conftest* 11475 fi 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11477 $as_echo "$lt_cv_nm_interface" >&6; } 11478 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11480 $as_echo_n "checking whether ln -s works... " >&6; } 11481 LN_S=$as_ln_s 11482 if test "$LN_S" = "ln -s"; then 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11484 $as_echo "yes" >&6; } 11485 else 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11487 $as_echo "no, using $LN_S" >&6; } 11488 fi 11489 11490 # find the maximum length of command line arguments 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11492 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 11493 if ${lt_cv_sys_max_cmd_len+:} false; then : 11494 $as_echo_n "(cached) " >&6 11495 else 11496 i=0 11497 teststring=ABCD 11498 11499 case $build_os in 11500 msdosdjgpp*) 11501 # On DJGPP, this test can blow up pretty badly due to problems in libc 11502 # (any single argument exceeding 2000 bytes causes a buffer overrun 11503 # during glob expansion). Even if it were fixed, the result of this 11504 # check would be larger than it should be. 11505 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11506 ;; 11507 11508 gnu*) 11509 # Under GNU Hurd, this test is not required because there is 11510 # no limit to the length of command line arguments. 11511 # Libtool will interpret -1 as no limit whatsoever 11512 lt_cv_sys_max_cmd_len=-1; 11513 ;; 11514 11515 cygwin* | mingw* | cegcc*) 11516 # On Win9x/ME, this test blows up -- it succeeds, but takes 11517 # about 5 minutes as the teststring grows exponentially. 11518 # Worse, since 9x/ME are not pre-emptively multitasking, 11519 # you end up with a "frozen" computer, even though with patience 11520 # the test eventually succeeds (with a max line length of 256k). 11521 # Instead, let's just punt: use the minimum linelength reported by 11522 # all of the supported platforms: 8192 (on NT/2K/XP). 11523 lt_cv_sys_max_cmd_len=8192; 11524 ;; 11525 11526 mint*) 11527 # On MiNT this can take a long time and run out of memory. 11528 lt_cv_sys_max_cmd_len=8192; 11529 ;; 11530 11531 amigaos*) 11532 # On AmigaOS with pdksh, this test takes hours, literally. 11533 # So we just punt and use a minimum line length of 8192. 11534 lt_cv_sys_max_cmd_len=8192; 11535 ;; 11536 11537 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11538 # This has been around since 386BSD, at least. Likely further. 11539 if test -x /sbin/sysctl; then 11540 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11541 elif test -x /usr/sbin/sysctl; then 11542 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11543 else 11544 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11545 fi 11546 # And add a safety zone 11547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11549 ;; 11550 11551 interix*) 11552 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11553 lt_cv_sys_max_cmd_len=196608 11554 ;; 11555 11556 os2*) 11557 # The test takes a long time on OS/2. 11558 lt_cv_sys_max_cmd_len=8192 11559 ;; 11560 11561 osf*) 11562 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11563 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11564 # nice to cause kernel panics so lets avoid the loop below. 11565 # First set a reasonable default. 11566 lt_cv_sys_max_cmd_len=16384 11567 # 11568 if test -x /sbin/sysconfig; then 11569 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11570 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11571 esac 11572 fi 11573 ;; 11574 sco3.2v5*) 11575 lt_cv_sys_max_cmd_len=102400 11576 ;; 11577 sysv5* | sco5v6* | sysv4.2uw2*) 11578 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11579 if test -n "$kargmax"; then 11580 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11581 else 11582 lt_cv_sys_max_cmd_len=32768 11583 fi 11584 ;; 11585 *) 11586 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11587 if test -n "$lt_cv_sys_max_cmd_len" && \ 11588 test undefined != "$lt_cv_sys_max_cmd_len"; then 11589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11591 else 11592 # Make teststring a little bigger before we do anything with it. 11593 # a 1K string should be a reasonable start. 11594 for i in 1 2 3 4 5 6 7 8; do 11595 teststring=$teststring$teststring 11596 done 11597 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11598 # If test is not a shell built-in, we'll probably end up computing a 11599 # maximum length that is only half of the actual maximum length, but 11600 # we can't tell. 11601 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11602 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11603 test 17 != "$i" # 1/2 MB should be enough 11604 do 11605 i=`expr $i + 1` 11606 teststring=$teststring$teststring 11607 done 11608 # Only check the string length outside the loop. 11609 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11610 teststring= 11611 # Add a significant safety factor because C++ compilers can tack on 11612 # massive amounts of additional arguments before passing them to the 11613 # linker. It appears as though 1/2 is a usable value. 11614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11615 fi 11616 ;; 11617 esac 11618 11619 fi 11620 11621 if test -n "$lt_cv_sys_max_cmd_len"; then 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11623 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11624 else 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11626 $as_echo "none" >&6; } 11627 fi 11628 max_cmd_len=$lt_cv_sys_max_cmd_len 11629 11630 11631 11632 11633 11634 11635 : ${CP="cp -f"} 11636 : ${MV="mv -f"} 11637 : ${RM="rm -f"} 11638 11639 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11640 lt_unset=unset 11641 else 11642 lt_unset=false 11643 fi 11644 11645 11646 11647 11648 11649 # test EBCDIC or ASCII 11650 case `echo X|tr X '\101'` in 11651 A) # ASCII based system 11652 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11653 lt_SP2NL='tr \040 \012' 11654 lt_NL2SP='tr \015\012 \040\040' 11655 ;; 11656 *) # EBCDIC based system 11657 lt_SP2NL='tr \100 \n' 11658 lt_NL2SP='tr \r\n \100\100' 11659 ;; 11660 esac 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11671 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11672 if ${lt_cv_to_host_file_cmd+:} false; then : 11673 $as_echo_n "(cached) " >&6 11674 else 11675 case $host in 11676 *-*-mingw* ) 11677 case $build in 11678 *-*-mingw* ) # actually msys 11679 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11680 ;; 11681 *-*-cygwin* ) 11682 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11683 ;; 11684 * ) # otherwise, assume *nix 11685 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11686 ;; 11687 esac 11688 ;; 11689 *-*-cygwin* ) 11690 case $build in 11691 *-*-mingw* ) # actually msys 11692 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11693 ;; 11694 *-*-cygwin* ) 11695 lt_cv_to_host_file_cmd=func_convert_file_noop 11696 ;; 11697 * ) # otherwise, assume *nix 11698 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11699 ;; 11700 esac 11701 ;; 11702 * ) # unhandled hosts (and "normal" native builds) 11703 lt_cv_to_host_file_cmd=func_convert_file_noop 11704 ;; 11705 esac 11706 11707 fi 11708 11709 to_host_file_cmd=$lt_cv_to_host_file_cmd 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11711 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 11712 11713 11714 11715 11716 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11718 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11719 if ${lt_cv_to_tool_file_cmd+:} false; then : 11720 $as_echo_n "(cached) " >&6 11721 else 11722 #assume ordinary cross tools, or native build. 11723 lt_cv_to_tool_file_cmd=func_convert_file_noop 11724 case $host in 11725 *-*-mingw* ) 11726 case $build in 11727 *-*-mingw* ) # actually msys 11728 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11729 ;; 11730 esac 11731 ;; 11732 esac 11733 11734 fi 11735 11736 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11738 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11739 11740 11741 11742 11743 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11745 $as_echo_n "checking for $LD option to reload object files... " >&6; } 11746 if ${lt_cv_ld_reload_flag+:} false; then : 11747 $as_echo_n "(cached) " >&6 11748 else 11749 lt_cv_ld_reload_flag='-r' 11750 fi 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11752 $as_echo "$lt_cv_ld_reload_flag" >&6; } 11753 reload_flag=$lt_cv_ld_reload_flag 11754 case $reload_flag in 11755 "" | " "*) ;; 11756 *) reload_flag=" $reload_flag" ;; 11757 esac 11758 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11759 case $host_os in 11760 cygwin* | mingw* | pw32* | cegcc*) 11761 if test yes != "$GCC"; then 11762 reload_cmds=false 11763 fi 11764 ;; 11765 darwin*) 11766 if test yes = "$GCC"; then 11767 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11768 else 11769 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11770 fi 11771 ;; 11772 esac 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 if test -n "$ac_tool_prefix"; then 11783 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11784 set dummy ${ac_tool_prefix}objdump; ac_word=$2 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11786 $as_echo_n "checking for $ac_word... " >&6; } 11787 if ${ac_cv_prog_OBJDUMP+:} false; then : 11788 $as_echo_n "(cached) " >&6 11789 else 11790 if test -n "$OBJDUMP"; then 11791 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11792 else 11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11794 for as_dir in $PATH 11795 do 11796 IFS=$as_save_IFS 11797 test -z "$as_dir" && as_dir=. 11798 for ac_exec_ext in '' $ac_executable_extensions; do 11799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11800 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11802 break 2 11803 fi 11804 done 11805 done 11806 IFS=$as_save_IFS 11807 11808 fi 11809 fi 11810 OBJDUMP=$ac_cv_prog_OBJDUMP 11811 if test -n "$OBJDUMP"; then 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11813 $as_echo "$OBJDUMP" >&6; } 11814 else 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11816 $as_echo "no" >&6; } 11817 fi 11818 11819 11820 fi 11821 if test -z "$ac_cv_prog_OBJDUMP"; then 11822 ac_ct_OBJDUMP=$OBJDUMP 11823 # Extract the first word of "objdump", so it can be a program name with args. 11824 set dummy objdump; ac_word=$2 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11826 $as_echo_n "checking for $ac_word... " >&6; } 11827 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11828 $as_echo_n "(cached) " >&6 11829 else 11830 if test -n "$ac_ct_OBJDUMP"; then 11831 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11832 else 11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11834 for as_dir in $PATH 11835 do 11836 IFS=$as_save_IFS 11837 test -z "$as_dir" && as_dir=. 11838 for ac_exec_ext in '' $ac_executable_extensions; do 11839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11840 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11842 break 2 11843 fi 11844 done 11845 done 11846 IFS=$as_save_IFS 11847 11848 fi 11849 fi 11850 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11851 if test -n "$ac_ct_OBJDUMP"; then 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11853 $as_echo "$ac_ct_OBJDUMP" >&6; } 11854 else 11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11856 $as_echo "no" >&6; } 11857 fi 11858 11859 if test "x$ac_ct_OBJDUMP" = x; then 11860 OBJDUMP="false" 11861 else 11862 case $cross_compiling:$ac_tool_warned in 11863 yes:) 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11866 ac_tool_warned=yes ;; 11867 esac 11868 OBJDUMP=$ac_ct_OBJDUMP 11869 fi 11870 else 11871 OBJDUMP="$ac_cv_prog_OBJDUMP" 11872 fi 11873 11874 test -z "$OBJDUMP" && OBJDUMP=objdump 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11885 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 11886 if ${lt_cv_deplibs_check_method+:} false; then : 11887 $as_echo_n "(cached) " >&6 11888 else 11889 lt_cv_file_magic_cmd='$MAGIC_CMD' 11890 lt_cv_file_magic_test_file= 11891 lt_cv_deplibs_check_method='unknown' 11892 # Need to set the preceding variable on all platforms that support 11893 # interlibrary dependencies. 11894 # 'none' -- dependencies not supported. 11895 # 'unknown' -- same as none, but documents that we really don't know. 11896 # 'pass_all' -- all dependencies passed with no checks. 11897 # 'test_compile' -- check by making test program. 11898 # 'file_magic [[regex]]' -- check by looking for files in library path 11899 # that responds to the $file_magic_cmd with a given extended regex. 11900 # If you have 'file' or equivalent on your system and you're not sure 11901 # whether 'pass_all' will *always* work, you probably want this one. 11902 11903 case $host_os in 11904 aix[4-9]*) 11905 lt_cv_deplibs_check_method=pass_all 11906 ;; 11907 11908 beos*) 11909 lt_cv_deplibs_check_method=pass_all 11910 ;; 11911 11912 bsdi[45]*) 11913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11914 lt_cv_file_magic_cmd='/usr/bin/file -L' 11915 lt_cv_file_magic_test_file=/shlib/libc.so 11916 ;; 11917 11918 cygwin*) 11919 # func_win32_libid is a shell function defined in ltmain.sh 11920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11921 lt_cv_file_magic_cmd='func_win32_libid' 11922 ;; 11923 11924 mingw* | pw32*) 11925 # Base MSYS/MinGW do not provide the 'file' command needed by 11926 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11927 # unless we find 'file', for example because we are cross-compiling. 11928 if ( file / ) >/dev/null 2>&1; then 11929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11930 lt_cv_file_magic_cmd='func_win32_libid' 11931 else 11932 # Keep this pattern in sync with the one in func_win32_libid. 11933 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11934 lt_cv_file_magic_cmd='$OBJDUMP -f' 11935 fi 11936 ;; 11937 11938 cegcc*) 11939 # use the weaker test based on 'objdump'. See mingw*. 11940 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11941 lt_cv_file_magic_cmd='$OBJDUMP -f' 11942 ;; 11943 11944 darwin* | rhapsody*) 11945 lt_cv_deplibs_check_method=pass_all 11946 ;; 11947 11948 freebsd* | dragonfly*) 11949 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11950 case $host_cpu in 11951 i*86 ) 11952 # Not sure whether the presence of OpenBSD here was a mistake. 11953 # Let's accept both of them until this is cleared up. 11954 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11955 lt_cv_file_magic_cmd=/usr/bin/file 11956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11957 ;; 11958 esac 11959 else 11960 lt_cv_deplibs_check_method=pass_all 11961 fi 11962 ;; 11963 11964 haiku*) 11965 lt_cv_deplibs_check_method=pass_all 11966 ;; 11967 11968 hpux10.20* | hpux11*) 11969 lt_cv_file_magic_cmd=/usr/bin/file 11970 case $host_cpu in 11971 ia64*) 11972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11973 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11974 ;; 11975 hppa*64*) 11976 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]' 11977 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11978 ;; 11979 *) 11980 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11981 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11982 ;; 11983 esac 11984 ;; 11985 11986 interix[3-9]*) 11987 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11989 ;; 11990 11991 irix5* | irix6* | nonstopux*) 11992 case $LD in 11993 *-32|*"-32 ") libmagic=32-bit;; 11994 *-n32|*"-n32 ") libmagic=N32;; 11995 *-64|*"-64 ") libmagic=64-bit;; 11996 *) libmagic=never-match;; 11997 esac 11998 lt_cv_deplibs_check_method=pass_all 11999 ;; 12000 12001 # This must be glibc/ELF. 12002 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12003 lt_cv_deplibs_check_method=pass_all 12004 ;; 12005 12006 netbsd*) 12007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12009 else 12010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12011 fi 12012 ;; 12013 12014 newos6*) 12015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12016 lt_cv_file_magic_cmd=/usr/bin/file 12017 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12018 ;; 12019 12020 *nto* | *qnx*) 12021 lt_cv_deplibs_check_method=pass_all 12022 ;; 12023 12024 openbsd* | bitrig*) 12025 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12027 else 12028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12029 fi 12030 ;; 12031 12032 osf3* | osf4* | osf5*) 12033 lt_cv_deplibs_check_method=pass_all 12034 ;; 12035 12036 rdos*) 12037 lt_cv_deplibs_check_method=pass_all 12038 ;; 12039 12040 solaris*) 12041 lt_cv_deplibs_check_method=pass_all 12042 ;; 12043 12044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12045 lt_cv_deplibs_check_method=pass_all 12046 ;; 12047 12048 sysv4 | sysv4.3*) 12049 case $host_vendor in 12050 motorola) 12051 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]' 12052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12053 ;; 12054 ncr) 12055 lt_cv_deplibs_check_method=pass_all 12056 ;; 12057 sequent) 12058 lt_cv_file_magic_cmd='/bin/file' 12059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12060 ;; 12061 sni) 12062 lt_cv_file_magic_cmd='/bin/file' 12063 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12064 lt_cv_file_magic_test_file=/lib/libc.so 12065 ;; 12066 siemens) 12067 lt_cv_deplibs_check_method=pass_all 12068 ;; 12069 pc) 12070 lt_cv_deplibs_check_method=pass_all 12071 ;; 12072 esac 12073 ;; 12074 12075 tpf*) 12076 lt_cv_deplibs_check_method=pass_all 12077 ;; 12078 os2*) 12079 lt_cv_deplibs_check_method=pass_all 12080 ;; 12081 esac 12082 12083 fi 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12085 $as_echo "$lt_cv_deplibs_check_method" >&6; } 12086 12087 file_magic_glob= 12088 want_nocaseglob=no 12089 if test "$build" = "$host"; then 12090 case $host_os in 12091 mingw* | pw32*) 12092 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12093 want_nocaseglob=yes 12094 else 12095 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12096 fi 12097 ;; 12098 esac 12099 fi 12100 12101 file_magic_cmd=$lt_cv_file_magic_cmd 12102 deplibs_check_method=$lt_cv_deplibs_check_method 12103 test -z "$deplibs_check_method" && deplibs_check_method=unknown 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 if test -n "$ac_tool_prefix"; then 12127 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12128 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12130 $as_echo_n "checking for $ac_word... " >&6; } 12131 if ${ac_cv_prog_DLLTOOL+:} false; then : 12132 $as_echo_n "(cached) " >&6 12133 else 12134 if test -n "$DLLTOOL"; then 12135 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12136 else 12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12138 for as_dir in $PATH 12139 do 12140 IFS=$as_save_IFS 12141 test -z "$as_dir" && as_dir=. 12142 for ac_exec_ext in '' $ac_executable_extensions; do 12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12144 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12146 break 2 12147 fi 12148 done 12149 done 12150 IFS=$as_save_IFS 12151 12152 fi 12153 fi 12154 DLLTOOL=$ac_cv_prog_DLLTOOL 12155 if test -n "$DLLTOOL"; then 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12157 $as_echo "$DLLTOOL" >&6; } 12158 else 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12160 $as_echo "no" >&6; } 12161 fi 12162 12163 12164 fi 12165 if test -z "$ac_cv_prog_DLLTOOL"; then 12166 ac_ct_DLLTOOL=$DLLTOOL 12167 # Extract the first word of "dlltool", so it can be a program name with args. 12168 set dummy dlltool; ac_word=$2 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12170 $as_echo_n "checking for $ac_word... " >&6; } 12171 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12172 $as_echo_n "(cached) " >&6 12173 else 12174 if test -n "$ac_ct_DLLTOOL"; then 12175 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12176 else 12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12178 for as_dir in $PATH 12179 do 12180 IFS=$as_save_IFS 12181 test -z "$as_dir" && as_dir=. 12182 for ac_exec_ext in '' $ac_executable_extensions; do 12183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12184 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12186 break 2 12187 fi 12188 done 12189 done 12190 IFS=$as_save_IFS 12191 12192 fi 12193 fi 12194 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12195 if test -n "$ac_ct_DLLTOOL"; then 12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12197 $as_echo "$ac_ct_DLLTOOL" >&6; } 12198 else 12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12200 $as_echo "no" >&6; } 12201 fi 12202 12203 if test "x$ac_ct_DLLTOOL" = x; then 12204 DLLTOOL="false" 12205 else 12206 case $cross_compiling:$ac_tool_warned in 12207 yes:) 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12210 ac_tool_warned=yes ;; 12211 esac 12212 DLLTOOL=$ac_ct_DLLTOOL 12213 fi 12214 else 12215 DLLTOOL="$ac_cv_prog_DLLTOOL" 12216 fi 12217 12218 test -z "$DLLTOOL" && DLLTOOL=dlltool 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12230 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12231 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12232 $as_echo_n "(cached) " >&6 12233 else 12234 lt_cv_sharedlib_from_linklib_cmd='unknown' 12235 12236 case $host_os in 12237 cygwin* | mingw* | pw32* | cegcc*) 12238 # two different shell functions defined in ltmain.sh; 12239 # decide which one to use based on capabilities of $DLLTOOL 12240 case `$DLLTOOL --help 2>&1` in 12241 *--identify-strict*) 12242 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12243 ;; 12244 *) 12245 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12246 ;; 12247 esac 12248 ;; 12249 *) 12250 # fallback: assume linklib IS sharedlib 12251 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12252 ;; 12253 esac 12254 12255 fi 12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12257 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12258 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12259 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12260 12261 12262 12263 12264 12265 12266 12267 if test -n "$ac_tool_prefix"; then 12268 for ac_prog in ar 12269 do 12270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12273 $as_echo_n "checking for $ac_word... " >&6; } 12274 if ${ac_cv_prog_AR+:} false; then : 12275 $as_echo_n "(cached) " >&6 12276 else 12277 if test -n "$AR"; then 12278 ac_cv_prog_AR="$AR" # Let the user override the test. 12279 else 12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12281 for as_dir in $PATH 12282 do 12283 IFS=$as_save_IFS 12284 test -z "$as_dir" && as_dir=. 12285 for ac_exec_ext in '' $ac_executable_extensions; do 12286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12287 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12289 break 2 12290 fi 12291 done 12292 done 12293 IFS=$as_save_IFS 12294 12295 fi 12296 fi 12297 AR=$ac_cv_prog_AR 12298 if test -n "$AR"; then 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12300 $as_echo "$AR" >&6; } 12301 else 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12303 $as_echo "no" >&6; } 12304 fi 12305 12306 12307 test -n "$AR" && break 12308 done 12309 fi 12310 if test -z "$AR"; then 12311 ac_ct_AR=$AR 12312 for ac_prog in ar 12313 do 12314 # Extract the first word of "$ac_prog", so it can be a program name with args. 12315 set dummy $ac_prog; ac_word=$2 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12317 $as_echo_n "checking for $ac_word... " >&6; } 12318 if ${ac_cv_prog_ac_ct_AR+:} false; then : 12319 $as_echo_n "(cached) " >&6 12320 else 12321 if test -n "$ac_ct_AR"; then 12322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12323 else 12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12325 for as_dir in $PATH 12326 do 12327 IFS=$as_save_IFS 12328 test -z "$as_dir" && as_dir=. 12329 for ac_exec_ext in '' $ac_executable_extensions; do 12330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12331 ac_cv_prog_ac_ct_AR="$ac_prog" 12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12333 break 2 12334 fi 12335 done 12336 done 12337 IFS=$as_save_IFS 12338 12339 fi 12340 fi 12341 ac_ct_AR=$ac_cv_prog_ac_ct_AR 12342 if test -n "$ac_ct_AR"; then 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12344 $as_echo "$ac_ct_AR" >&6; } 12345 else 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12347 $as_echo "no" >&6; } 12348 fi 12349 12350 12351 test -n "$ac_ct_AR" && break 12352 done 12353 12354 if test "x$ac_ct_AR" = x; then 12355 AR="false" 12356 else 12357 case $cross_compiling:$ac_tool_warned in 12358 yes:) 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12361 ac_tool_warned=yes ;; 12362 esac 12363 AR=$ac_ct_AR 12364 fi 12365 fi 12366 12367 : ${AR=ar} 12368 : ${AR_FLAGS=cru} 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12381 $as_echo_n "checking for archiver @FILE support... " >&6; } 12382 if ${lt_cv_ar_at_file+:} false; then : 12383 $as_echo_n "(cached) " >&6 12384 else 12385 lt_cv_ar_at_file=no 12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12387 /* end confdefs.h. */ 12388 12389 int 12390 main () 12391 { 12392 12393 ; 12394 return 0; 12395 } 12396 _ACEOF 12397 if ac_fn_c_try_compile "$LINENO"; then : 12398 echo conftest.$ac_objext > conftest.lst 12399 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12401 (eval $lt_ar_try) 2>&5 12402 ac_status=$? 12403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12404 test $ac_status = 0; } 12405 if test 0 -eq "$ac_status"; then 12406 # Ensure the archiver fails upon bogus file names. 12407 rm -f conftest.$ac_objext libconftest.a 12408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12409 (eval $lt_ar_try) 2>&5 12410 ac_status=$? 12411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12412 test $ac_status = 0; } 12413 if test 0 -ne "$ac_status"; then 12414 lt_cv_ar_at_file=@ 12415 fi 12416 fi 12417 rm -f conftest.* libconftest.a 12418 12419 fi 12420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12421 12422 fi 12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12424 $as_echo "$lt_cv_ar_at_file" >&6; } 12425 12426 if test no = "$lt_cv_ar_at_file"; then 12427 archiver_list_spec= 12428 else 12429 archiver_list_spec=$lt_cv_ar_at_file 12430 fi 12431 12432 12433 12434 12435 12436 12437 12438 if test -n "$ac_tool_prefix"; then 12439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12440 set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then : 12444 $as_echo_n "(cached) " >&6 12445 else 12446 if test -n "$STRIP"; then 12447 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip" 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 STRIP=$ac_cv_prog_STRIP 12467 if test -n "$STRIP"; then 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12469 $as_echo "$STRIP" >&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_STRIP"; then 12478 ac_ct_STRIP=$STRIP 12479 # Extract the first word of "strip", so it can be a program name with args. 12480 set dummy strip; 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_STRIP+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485 else 12486 if test -n "$ac_ct_STRIP"; then 12487 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip" 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_STRIP=$ac_cv_prog_ac_ct_STRIP 12507 if test -n "$ac_ct_STRIP"; then 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12509 $as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then 12516 STRIP=":" 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 STRIP=$ac_ct_STRIP 12525 fi 12526 else 12527 STRIP="$ac_cv_prog_STRIP" 12528 fi 12529 12530 test -z "$STRIP" && STRIP=: 12531 12532 12533 12534 12535 12536 12537 if test -n "$ac_tool_prefix"; then 12538 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12539 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12541 $as_echo_n "checking for $ac_word... " >&6; } 12542 if ${ac_cv_prog_RANLIB+:} false; then : 12543 $as_echo_n "(cached) " >&6 12544 else 12545 if test -n "$RANLIB"; then 12546 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12547 else 12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12549 for as_dir in $PATH 12550 do 12551 IFS=$as_save_IFS 12552 test -z "$as_dir" && as_dir=. 12553 for ac_exec_ext in '' $ac_executable_extensions; do 12554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12555 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12557 break 2 12558 fi 12559 done 12560 done 12561 IFS=$as_save_IFS 12562 12563 fi 12564 fi 12565 RANLIB=$ac_cv_prog_RANLIB 12566 if test -n "$RANLIB"; then 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12568 $as_echo "$RANLIB" >&6; } 12569 else 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12571 $as_echo "no" >&6; } 12572 fi 12573 12574 12575 fi 12576 if test -z "$ac_cv_prog_RANLIB"; then 12577 ac_ct_RANLIB=$RANLIB 12578 # Extract the first word of "ranlib", so it can be a program name with args. 12579 set dummy ranlib; ac_word=$2 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12581 $as_echo_n "checking for $ac_word... " >&6; } 12582 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12583 $as_echo_n "(cached) " >&6 12584 else 12585 if test -n "$ac_ct_RANLIB"; then 12586 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12587 else 12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12589 for as_dir in $PATH 12590 do 12591 IFS=$as_save_IFS 12592 test -z "$as_dir" && as_dir=. 12593 for ac_exec_ext in '' $ac_executable_extensions; do 12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12595 ac_cv_prog_ac_ct_RANLIB="ranlib" 12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12597 break 2 12598 fi 12599 done 12600 done 12601 IFS=$as_save_IFS 12602 12603 fi 12604 fi 12605 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12606 if test -n "$ac_ct_RANLIB"; then 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12608 $as_echo "$ac_ct_RANLIB" >&6; } 12609 else 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12611 $as_echo "no" >&6; } 12612 fi 12613 12614 if test "x$ac_ct_RANLIB" = x; then 12615 RANLIB=":" 12616 else 12617 case $cross_compiling:$ac_tool_warned in 12618 yes:) 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12621 ac_tool_warned=yes ;; 12622 esac 12623 RANLIB=$ac_ct_RANLIB 12624 fi 12625 else 12626 RANLIB="$ac_cv_prog_RANLIB" 12627 fi 12628 12629 test -z "$RANLIB" && RANLIB=: 12630 12631 12632 12633 12634 12635 12636 # Determine commands to create old-style static archives. 12637 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12638 old_postinstall_cmds='chmod 644 $oldlib' 12639 old_postuninstall_cmds= 12640 12641 if test -n "$RANLIB"; then 12642 case $host_os in 12643 bitrig* | openbsd*) 12644 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12645 ;; 12646 *) 12647 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12648 ;; 12649 esac 12650 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12651 fi 12652 12653 case $host_os in 12654 darwin*) 12655 lock_old_archive_extraction=yes ;; 12656 *) 12657 lock_old_archive_extraction=no ;; 12658 esac 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 # If no C compiler was specified, use CC. 12699 LTCC=${LTCC-"$CC"} 12700 12701 # If no C compiler flags were specified, use CFLAGS. 12702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12703 12704 # Allow CC to be a program name with arguments. 12705 compiler=$CC 12706 12707 12708 # Check for command to grab the raw symbol name followed by C symbol from nm. 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12710 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12711 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12712 $as_echo_n "(cached) " >&6 12713 else 12714 12715 # These are sane defaults that work on at least a few old systems. 12716 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 12717 12718 # Character class describing NM global symbol codes. 12719 symcode='[BCDEGRST]' 12720 12721 # Regexp to match symbols that can be accessed directly from C. 12722 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12723 12724 # Define system-specific variables. 12725 case $host_os in 12726 aix*) 12727 symcode='[BCDT]' 12728 ;; 12729 cygwin* | mingw* | pw32* | cegcc*) 12730 symcode='[ABCDGISTW]' 12731 ;; 12732 hpux*) 12733 if test ia64 = "$host_cpu"; then 12734 symcode='[ABCDEGRST]' 12735 fi 12736 ;; 12737 irix* | nonstopux*) 12738 symcode='[BCDEGRST]' 12739 ;; 12740 osf*) 12741 symcode='[BCDEGQRST]' 12742 ;; 12743 solaris*) 12744 symcode='[BDRT]' 12745 ;; 12746 sco3.2v5*) 12747 symcode='[DT]' 12748 ;; 12749 sysv4.2uw2*) 12750 symcode='[DT]' 12751 ;; 12752 sysv5* | sco5v6* | unixware* | OpenUNIX*) 12753 symcode='[ABDT]' 12754 ;; 12755 sysv4) 12756 symcode='[DFNSTU]' 12757 ;; 12758 esac 12759 12760 # If we're using GNU nm, then use its standard symbol codes. 12761 case `$NM -V 2>&1` in 12762 *GNU* | *'with BFD'*) 12763 symcode='[ABCDGIRSTW]' ;; 12764 esac 12765 12766 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12767 # Gets list of data symbols to import. 12768 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12769 # Adjust the below global symbol transforms to fixup imported variables. 12770 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12771 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12772 lt_c_name_lib_hook="\ 12773 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12774 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12775 else 12776 # Disable hooks by default. 12777 lt_cv_sys_global_symbol_to_import= 12778 lt_cdecl_hook= 12779 lt_c_name_hook= 12780 lt_c_name_lib_hook= 12781 fi 12782 12783 # Transform an extracted symbol line into a proper C declaration. 12784 # Some systems (esp. on ia64) link data and code symbols differently, 12785 # so use this general approach. 12786 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12787 $lt_cdecl_hook\ 12788 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12789 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12790 12791 # Transform an extracted symbol line into symbol name and symbol address 12792 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12793 $lt_c_name_hook\ 12794 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12795 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12796 12797 # Transform an extracted symbol line into symbol name with lib prefix and 12798 # symbol address. 12799 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12800 $lt_c_name_lib_hook\ 12801 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12802 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12803 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12804 12805 # Handle CRLF in mingw tool chain 12806 opt_cr= 12807 case $build_os in 12808 mingw*) 12809 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12810 ;; 12811 esac 12812 12813 # Try without a prefix underscore, then with it. 12814 for ac_symprfx in "" "_"; do 12815 12816 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12817 symxfrm="\\1 $ac_symprfx\\2 \\2" 12818 12819 # Write the raw and C identifiers. 12820 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12821 # Fake it for dumpbin and say T for any non-static function, 12822 # D for any global variable and I for any imported variable. 12823 # Also find C++ and __fastcall symbols from MSVC++, 12824 # which start with @ or ?. 12825 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12826 " {last_section=section; section=\$ 3};"\ 12827 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12828 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12829 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12830 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12831 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12832 " \$ 0!~/External *\|/{next};"\ 12833 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12834 " {if(hide[section]) next};"\ 12835 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12836 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12837 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12838 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12839 " ' prfx=^$ac_symprfx" 12840 else 12841 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12842 fi 12843 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12844 12845 # Check to see that the pipe works correctly. 12846 pipe_works=no 12847 12848 rm -f conftest* 12849 cat > conftest.$ac_ext <<_LT_EOF 12850 #ifdef __cplusplus 12851 extern "C" { 12852 #endif 12853 char nm_test_var; 12854 void nm_test_func(void); 12855 void nm_test_func(void){} 12856 #ifdef __cplusplus 12857 } 12858 #endif 12859 int main(){nm_test_var='a';nm_test_func();return(0);} 12860 _LT_EOF 12861 12862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12863 (eval $ac_compile) 2>&5 12864 ac_status=$? 12865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12866 test $ac_status = 0; }; then 12867 # Now try to grab the symbols. 12868 nlist=conftest.nm 12869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12870 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12871 ac_status=$? 12872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12873 test $ac_status = 0; } && test -s "$nlist"; then 12874 # Try sorting and uniquifying the output. 12875 if sort "$nlist" | uniq > "$nlist"T; then 12876 mv -f "$nlist"T "$nlist" 12877 else 12878 rm -f "$nlist"T 12879 fi 12880 12881 # Make sure that we snagged all the symbols we need. 12882 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12883 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12884 cat <<_LT_EOF > conftest.$ac_ext 12885 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12886 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12887 /* DATA imports from DLLs on WIN32 can't be const, because runtime 12888 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12889 # define LT_DLSYM_CONST 12890 #elif defined __osf__ 12891 /* This system does not cope well with relocations in const data. */ 12892 # define LT_DLSYM_CONST 12893 #else 12894 # define LT_DLSYM_CONST const 12895 #endif 12896 12897 #ifdef __cplusplus 12898 extern "C" { 12899 #endif 12900 12901 _LT_EOF 12902 # Now generate the symbol file. 12903 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12904 12905 cat <<_LT_EOF >> conftest.$ac_ext 12906 12907 /* The mapping between symbol names and symbols. */ 12908 LT_DLSYM_CONST struct { 12909 const char *name; 12910 void *address; 12911 } 12912 lt__PROGRAM__LTX_preloaded_symbols[] = 12913 { 12914 { "@PROGRAM@", (void *) 0 }, 12915 _LT_EOF 12916 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12917 cat <<\_LT_EOF >> conftest.$ac_ext 12918 {0, (void *) 0} 12919 }; 12920 12921 /* This works around a problem in FreeBSD linker */ 12922 #ifdef FREEBSD_WORKAROUND 12923 static const void *lt_preloaded_setup() { 12924 return lt__PROGRAM__LTX_preloaded_symbols; 12925 } 12926 #endif 12927 12928 #ifdef __cplusplus 12929 } 12930 #endif 12931 _LT_EOF 12932 # Now try linking the two files. 12933 mv conftest.$ac_objext conftstm.$ac_objext 12934 lt_globsym_save_LIBS=$LIBS 12935 lt_globsym_save_CFLAGS=$CFLAGS 12936 LIBS=conftstm.$ac_objext 12937 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12939 (eval $ac_link) 2>&5 12940 ac_status=$? 12941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12942 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12943 pipe_works=yes 12944 fi 12945 LIBS=$lt_globsym_save_LIBS 12946 CFLAGS=$lt_globsym_save_CFLAGS 12947 else 12948 echo "cannot find nm_test_func in $nlist" >&5 12949 fi 12950 else 12951 echo "cannot find nm_test_var in $nlist" >&5 12952 fi 12953 else 12954 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12955 fi 12956 else 12957 echo "$progname: failed program was:" >&5 12958 cat conftest.$ac_ext >&5 12959 fi 12960 rm -rf conftest* conftst* 12961 12962 # Do not use the global_symbol_pipe unless it works. 12963 if test yes = "$pipe_works"; then 12964 break 12965 else 12966 lt_cv_sys_global_symbol_pipe= 12967 fi 12968 done 12969 12970 fi 12971 12972 if test -z "$lt_cv_sys_global_symbol_pipe"; then 12973 lt_cv_sys_global_symbol_to_cdecl= 12974 fi 12975 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12977 $as_echo "failed" >&6; } 12978 else 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12980 $as_echo "ok" >&6; } 12981 fi 12982 12983 # Response file support. 12984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12985 nm_file_list_spec='@' 12986 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12987 nm_file_list_spec='@' 12988 fi 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13027 $as_echo_n "checking for sysroot... " >&6; } 13028 13029 # Check whether --with-sysroot was given. 13030 if test "${with_sysroot+set}" = set; then : 13031 withval=$with_sysroot; 13032 else 13033 with_sysroot=no 13034 fi 13035 13036 13037 lt_sysroot= 13038 case $with_sysroot in #( 13039 yes) 13040 if test yes = "$GCC"; then 13041 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13042 fi 13043 ;; #( 13044 /*) 13045 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13046 ;; #( 13047 no|'') 13048 ;; #( 13049 *) 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13051 $as_echo "$with_sysroot" >&6; } 13052 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13053 ;; 13054 esac 13055 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13057 $as_echo "${lt_sysroot:-no}" >&6; } 13058 13059 13060 13061 13062 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13064 $as_echo_n "checking for a working dd... " >&6; } 13065 if ${ac_cv_path_lt_DD+:} false; then : 13066 $as_echo_n "(cached) " >&6 13067 else 13068 printf 0123456789abcdef0123456789abcdef >conftest.i 13069 cat conftest.i conftest.i >conftest2.i 13070 : ${lt_DD:=$DD} 13071 if test -z "$lt_DD"; then 13072 ac_path_lt_DD_found=false 13073 # Loop through the user's path and test for each of PROGNAME-LIST 13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13075 for as_dir in $PATH 13076 do 13077 IFS=$as_save_IFS 13078 test -z "$as_dir" && as_dir=. 13079 for ac_prog in dd; do 13080 for ac_exec_ext in '' $ac_executable_extensions; do 13081 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13082 as_fn_executable_p "$ac_path_lt_DD" || continue 13083 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13084 cmp -s conftest.i conftest.out \ 13085 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13086 fi 13087 $ac_path_lt_DD_found && break 3 13088 done 13089 done 13090 done 13091 IFS=$as_save_IFS 13092 if test -z "$ac_cv_path_lt_DD"; then 13093 : 13094 fi 13095 else 13096 ac_cv_path_lt_DD=$lt_DD 13097 fi 13098 13099 rm -f conftest.i conftest2.i conftest.out 13100 fi 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13102 $as_echo "$ac_cv_path_lt_DD" >&6; } 13103 13104 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13106 $as_echo_n "checking how to truncate binary pipes... " >&6; } 13107 if ${lt_cv_truncate_bin+:} false; then : 13108 $as_echo_n "(cached) " >&6 13109 else 13110 printf 0123456789abcdef0123456789abcdef >conftest.i 13111 cat conftest.i conftest.i >conftest2.i 13112 lt_cv_truncate_bin= 13113 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13114 cmp -s conftest.i conftest.out \ 13115 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13116 fi 13117 rm -f conftest.i conftest2.i conftest.out 13118 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13119 fi 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13121 $as_echo "$lt_cv_truncate_bin" >&6; } 13122 13123 13124 13125 13126 13127 13128 13129 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13130 func_cc_basename () 13131 { 13132 for cc_temp in $*""; do 13133 case $cc_temp in 13134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13136 \-*) ;; 13137 *) break;; 13138 esac 13139 done 13140 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13141 } 13142 13143 # Check whether --enable-libtool-lock was given. 13144 if test "${enable_libtool_lock+set}" = set; then : 13145 enableval=$enable_libtool_lock; 13146 fi 13147 13148 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13149 13150 # Some flags need to be propagated to the compiler or linker for good 13151 # libtool support. 13152 case $host in 13153 ia64-*-hpux*) 13154 # Find out what ABI is being produced by ac_compile, and set mode 13155 # options accordingly. 13156 echo 'int i;' > conftest.$ac_ext 13157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13158 (eval $ac_compile) 2>&5 13159 ac_status=$? 13160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13161 test $ac_status = 0; }; then 13162 case `/usr/bin/file conftest.$ac_objext` in 13163 *ELF-32*) 13164 HPUX_IA64_MODE=32 13165 ;; 13166 *ELF-64*) 13167 HPUX_IA64_MODE=64 13168 ;; 13169 esac 13170 fi 13171 rm -rf conftest* 13172 ;; 13173 *-*-irix6*) 13174 # Find out what ABI is being produced by ac_compile, and set linker 13175 # options accordingly. 13176 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13178 (eval $ac_compile) 2>&5 13179 ac_status=$? 13180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13181 test $ac_status = 0; }; then 13182 if test yes = "$lt_cv_prog_gnu_ld"; then 13183 case `/usr/bin/file conftest.$ac_objext` in 13184 *32-bit*) 13185 LD="${LD-ld} -melf32bsmip" 13186 ;; 13187 *N32*) 13188 LD="${LD-ld} -melf32bmipn32" 13189 ;; 13190 *64-bit*) 13191 LD="${LD-ld} -melf64bmip" 13192 ;; 13193 esac 13194 else 13195 case `/usr/bin/file conftest.$ac_objext` in 13196 *32-bit*) 13197 LD="${LD-ld} -32" 13198 ;; 13199 *N32*) 13200 LD="${LD-ld} -n32" 13201 ;; 13202 *64-bit*) 13203 LD="${LD-ld} -64" 13204 ;; 13205 esac 13206 fi 13207 fi 13208 rm -rf conftest* 13209 ;; 13210 13211 mips64*-*linux*) 13212 # Find out what ABI is being produced by ac_compile, and set linker 13213 # options accordingly. 13214 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13216 (eval $ac_compile) 2>&5 13217 ac_status=$? 13218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13219 test $ac_status = 0; }; then 13220 emul=elf 13221 case `/usr/bin/file conftest.$ac_objext` in 13222 *32-bit*) 13223 emul="${emul}32" 13224 ;; 13225 *64-bit*) 13226 emul="${emul}64" 13227 ;; 13228 esac 13229 case `/usr/bin/file conftest.$ac_objext` in 13230 *MSB*) 13231 emul="${emul}btsmip" 13232 ;; 13233 *LSB*) 13234 emul="${emul}ltsmip" 13235 ;; 13236 esac 13237 case `/usr/bin/file conftest.$ac_objext` in 13238 *N32*) 13239 emul="${emul}n32" 13240 ;; 13241 esac 13242 LD="${LD-ld} -m $emul" 13243 fi 13244 rm -rf conftest* 13245 ;; 13246 13247 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13248 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13249 # Find out what ABI is being produced by ac_compile, and set linker 13250 # options accordingly. Note that the listed cases only cover the 13251 # situations where additional linker options are needed (such as when 13252 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13253 # vice versa); the common cases where no linker options are needed do 13254 # not appear in the list. 13255 echo 'int i;' > conftest.$ac_ext 13256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13257 (eval $ac_compile) 2>&5 13258 ac_status=$? 13259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13260 test $ac_status = 0; }; then 13261 case `/usr/bin/file conftest.o` in 13262 *32-bit*) 13263 case $host in 13264 x86_64-*kfreebsd*-gnu) 13265 LD="${LD-ld} -m elf_i386_fbsd" 13266 ;; 13267 x86_64-*linux*) 13268 case `/usr/bin/file conftest.o` in 13269 *x86-64*) 13270 LD="${LD-ld} -m elf32_x86_64" 13271 ;; 13272 *) 13273 LD="${LD-ld} -m elf_i386" 13274 ;; 13275 esac 13276 ;; 13277 powerpc64le-*linux*) 13278 LD="${LD-ld} -m elf32lppclinux" 13279 ;; 13280 powerpc64-*linux*) 13281 LD="${LD-ld} -m elf32ppclinux" 13282 ;; 13283 s390x-*linux*) 13284 LD="${LD-ld} -m elf_s390" 13285 ;; 13286 sparc64-*linux*) 13287 LD="${LD-ld} -m elf32_sparc" 13288 ;; 13289 esac 13290 ;; 13291 *64-bit*) 13292 case $host in 13293 x86_64-*kfreebsd*-gnu) 13294 LD="${LD-ld} -m elf_x86_64_fbsd" 13295 ;; 13296 x86_64-*linux*) 13297 LD="${LD-ld} -m elf_x86_64" 13298 ;; 13299 powerpcle-*linux*) 13300 LD="${LD-ld} -m elf64lppc" 13301 ;; 13302 powerpc-*linux*) 13303 LD="${LD-ld} -m elf64ppc" 13304 ;; 13305 s390*-*linux*|s390*-*tpf*) 13306 LD="${LD-ld} -m elf64_s390" 13307 ;; 13308 sparc*-*linux*) 13309 LD="${LD-ld} -m elf64_sparc" 13310 ;; 13311 esac 13312 ;; 13313 esac 13314 fi 13315 rm -rf conftest* 13316 ;; 13317 13318 *-*-sco3.2v5*) 13319 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13320 SAVE_CFLAGS=$CFLAGS 13321 CFLAGS="$CFLAGS -belf" 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13323 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13324 if ${lt_cv_cc_needs_belf+:} false; then : 13325 $as_echo_n "(cached) " >&6 13326 else 13327 ac_ext=c 13328 ac_cpp='$CPP $CPPFLAGS' 13329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13331 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13332 13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13334 /* end confdefs.h. */ 13335 13336 int 13337 main () 13338 { 13339 13340 ; 13341 return 0; 13342 } 13343 _ACEOF 13344 if ac_fn_c_try_link "$LINENO"; then : 13345 lt_cv_cc_needs_belf=yes 13346 else 13347 lt_cv_cc_needs_belf=no 13348 fi 13349 rm -f core conftest.err conftest.$ac_objext \ 13350 conftest$ac_exeext conftest.$ac_ext 13351 ac_ext=c 13352 ac_cpp='$CPP $CPPFLAGS' 13353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13355 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13356 13357 fi 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13359 $as_echo "$lt_cv_cc_needs_belf" >&6; } 13360 if test yes != "$lt_cv_cc_needs_belf"; then 13361 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13362 CFLAGS=$SAVE_CFLAGS 13363 fi 13364 ;; 13365 *-*solaris*) 13366 # Find out what ABI is being produced by ac_compile, and set linker 13367 # options accordingly. 13368 echo 'int i;' > conftest.$ac_ext 13369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13370 (eval $ac_compile) 2>&5 13371 ac_status=$? 13372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13373 test $ac_status = 0; }; then 13374 case `/usr/bin/file conftest.o` in 13375 *64-bit*) 13376 case $lt_cv_prog_gnu_ld in 13377 yes*) 13378 case $host in 13379 i?86-*-solaris*|x86_64-*-solaris*) 13380 LD="${LD-ld} -m elf_x86_64" 13381 ;; 13382 sparc*-*-solaris*) 13383 LD="${LD-ld} -m elf64_sparc" 13384 ;; 13385 esac 13386 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13387 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13388 LD=${LD-ld}_sol2 13389 fi 13390 ;; 13391 *) 13392 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13393 LD="${LD-ld} -64" 13394 fi 13395 ;; 13396 esac 13397 ;; 13398 esac 13399 fi 13400 rm -rf conftest* 13401 ;; 13402 esac 13403 13404 need_locks=$enable_libtool_lock 13405 13406 if test -n "$ac_tool_prefix"; then 13407 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13408 set dummy ${ac_tool_prefix}mt; ac_word=$2 13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13410 $as_echo_n "checking for $ac_word... " >&6; } 13411 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13412 $as_echo_n "(cached) " >&6 13413 else 13414 if test -n "$MANIFEST_TOOL"; then 13415 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13416 else 13417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13418 for as_dir in $PATH 13419 do 13420 IFS=$as_save_IFS 13421 test -z "$as_dir" && as_dir=. 13422 for ac_exec_ext in '' $ac_executable_extensions; do 13423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13424 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13426 break 2 13427 fi 13428 done 13429 done 13430 IFS=$as_save_IFS 13431 13432 fi 13433 fi 13434 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13435 if test -n "$MANIFEST_TOOL"; then 13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13437 $as_echo "$MANIFEST_TOOL" >&6; } 13438 else 13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13440 $as_echo "no" >&6; } 13441 fi 13442 13443 13444 fi 13445 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13446 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13447 # Extract the first word of "mt", so it can be a program name with args. 13448 set dummy mt; ac_word=$2 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13450 $as_echo_n "checking for $ac_word... " >&6; } 13451 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13452 $as_echo_n "(cached) " >&6 13453 else 13454 if test -n "$ac_ct_MANIFEST_TOOL"; then 13455 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13456 else 13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13458 for as_dir in $PATH 13459 do 13460 IFS=$as_save_IFS 13461 test -z "$as_dir" && as_dir=. 13462 for ac_exec_ext in '' $ac_executable_extensions; do 13463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13464 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13466 break 2 13467 fi 13468 done 13469 done 13470 IFS=$as_save_IFS 13471 13472 fi 13473 fi 13474 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13475 if test -n "$ac_ct_MANIFEST_TOOL"; then 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13477 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13478 else 13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13480 $as_echo "no" >&6; } 13481 fi 13482 13483 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13484 MANIFEST_TOOL=":" 13485 else 13486 case $cross_compiling:$ac_tool_warned in 13487 yes:) 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13490 ac_tool_warned=yes ;; 13491 esac 13492 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13493 fi 13494 else 13495 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13496 fi 13497 13498 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13500 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13501 if ${lt_cv_path_mainfest_tool+:} false; then : 13502 $as_echo_n "(cached) " >&6 13503 else 13504 lt_cv_path_mainfest_tool=no 13505 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13506 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13507 cat conftest.err >&5 13508 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13509 lt_cv_path_mainfest_tool=yes 13510 fi 13511 rm -f conftest* 13512 fi 13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13514 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 13515 if test yes != "$lt_cv_path_mainfest_tool"; then 13516 MANIFEST_TOOL=: 13517 fi 13518 13519 13520 13521 13522 13523 13524 case $host_os in 13525 rhapsody* | darwin*) 13526 if test -n "$ac_tool_prefix"; then 13527 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13528 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13530 $as_echo_n "checking for $ac_word... " >&6; } 13531 if ${ac_cv_prog_DSYMUTIL+:} false; then : 13532 $as_echo_n "(cached) " >&6 13533 else 13534 if test -n "$DSYMUTIL"; then 13535 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13536 else 13537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13538 for as_dir in $PATH 13539 do 13540 IFS=$as_save_IFS 13541 test -z "$as_dir" && as_dir=. 13542 for ac_exec_ext in '' $ac_executable_extensions; do 13543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13544 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13546 break 2 13547 fi 13548 done 13549 done 13550 IFS=$as_save_IFS 13551 13552 fi 13553 fi 13554 DSYMUTIL=$ac_cv_prog_DSYMUTIL 13555 if test -n "$DSYMUTIL"; then 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13557 $as_echo "$DSYMUTIL" >&6; } 13558 else 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13560 $as_echo "no" >&6; } 13561 fi 13562 13563 13564 fi 13565 if test -z "$ac_cv_prog_DSYMUTIL"; then 13566 ac_ct_DSYMUTIL=$DSYMUTIL 13567 # Extract the first word of "dsymutil", so it can be a program name with args. 13568 set dummy dsymutil; ac_word=$2 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13570 $as_echo_n "checking for $ac_word... " >&6; } 13571 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13572 $as_echo_n "(cached) " >&6 13573 else 13574 if test -n "$ac_ct_DSYMUTIL"; then 13575 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13576 else 13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13578 for as_dir in $PATH 13579 do 13580 IFS=$as_save_IFS 13581 test -z "$as_dir" && as_dir=. 13582 for ac_exec_ext in '' $ac_executable_extensions; do 13583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13584 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13586 break 2 13587 fi 13588 done 13589 done 13590 IFS=$as_save_IFS 13591 13592 fi 13593 fi 13594 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13595 if test -n "$ac_ct_DSYMUTIL"; then 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13597 $as_echo "$ac_ct_DSYMUTIL" >&6; } 13598 else 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13600 $as_echo "no" >&6; } 13601 fi 13602 13603 if test "x$ac_ct_DSYMUTIL" = x; then 13604 DSYMUTIL=":" 13605 else 13606 case $cross_compiling:$ac_tool_warned in 13607 yes:) 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13610 ac_tool_warned=yes ;; 13611 esac 13612 DSYMUTIL=$ac_ct_DSYMUTIL 13613 fi 13614 else 13615 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13616 fi 13617 13618 if test -n "$ac_tool_prefix"; then 13619 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13620 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13622 $as_echo_n "checking for $ac_word... " >&6; } 13623 if ${ac_cv_prog_NMEDIT+:} false; then : 13624 $as_echo_n "(cached) " >&6 13625 else 13626 if test -n "$NMEDIT"; then 13627 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13628 else 13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13630 for as_dir in $PATH 13631 do 13632 IFS=$as_save_IFS 13633 test -z "$as_dir" && as_dir=. 13634 for ac_exec_ext in '' $ac_executable_extensions; do 13635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13636 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13638 break 2 13639 fi 13640 done 13641 done 13642 IFS=$as_save_IFS 13643 13644 fi 13645 fi 13646 NMEDIT=$ac_cv_prog_NMEDIT 13647 if test -n "$NMEDIT"; then 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13649 $as_echo "$NMEDIT" >&6; } 13650 else 13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13652 $as_echo "no" >&6; } 13653 fi 13654 13655 13656 fi 13657 if test -z "$ac_cv_prog_NMEDIT"; then 13658 ac_ct_NMEDIT=$NMEDIT 13659 # Extract the first word of "nmedit", so it can be a program name with args. 13660 set dummy nmedit; ac_word=$2 13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13662 $as_echo_n "checking for $ac_word... " >&6; } 13663 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13664 $as_echo_n "(cached) " >&6 13665 else 13666 if test -n "$ac_ct_NMEDIT"; then 13667 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13668 else 13669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13670 for as_dir in $PATH 13671 do 13672 IFS=$as_save_IFS 13673 test -z "$as_dir" && as_dir=. 13674 for ac_exec_ext in '' $ac_executable_extensions; do 13675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13676 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13678 break 2 13679 fi 13680 done 13681 done 13682 IFS=$as_save_IFS 13683 13684 fi 13685 fi 13686 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13687 if test -n "$ac_ct_NMEDIT"; then 13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13689 $as_echo "$ac_ct_NMEDIT" >&6; } 13690 else 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13692 $as_echo "no" >&6; } 13693 fi 13694 13695 if test "x$ac_ct_NMEDIT" = x; then 13696 NMEDIT=":" 13697 else 13698 case $cross_compiling:$ac_tool_warned in 13699 yes:) 13700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13702 ac_tool_warned=yes ;; 13703 esac 13704 NMEDIT=$ac_ct_NMEDIT 13705 fi 13706 else 13707 NMEDIT="$ac_cv_prog_NMEDIT" 13708 fi 13709 13710 if test -n "$ac_tool_prefix"; then 13711 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13712 set dummy ${ac_tool_prefix}lipo; ac_word=$2 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13714 $as_echo_n "checking for $ac_word... " >&6; } 13715 if ${ac_cv_prog_LIPO+:} false; then : 13716 $as_echo_n "(cached) " >&6 13717 else 13718 if test -n "$LIPO"; then 13719 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13720 else 13721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13722 for as_dir in $PATH 13723 do 13724 IFS=$as_save_IFS 13725 test -z "$as_dir" && as_dir=. 13726 for ac_exec_ext in '' $ac_executable_extensions; do 13727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13728 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13730 break 2 13731 fi 13732 done 13733 done 13734 IFS=$as_save_IFS 13735 13736 fi 13737 fi 13738 LIPO=$ac_cv_prog_LIPO 13739 if test -n "$LIPO"; then 13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13741 $as_echo "$LIPO" >&6; } 13742 else 13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13744 $as_echo "no" >&6; } 13745 fi 13746 13747 13748 fi 13749 if test -z "$ac_cv_prog_LIPO"; then 13750 ac_ct_LIPO=$LIPO 13751 # Extract the first word of "lipo", so it can be a program name with args. 13752 set dummy lipo; ac_word=$2 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13754 $as_echo_n "checking for $ac_word... " >&6; } 13755 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13756 $as_echo_n "(cached) " >&6 13757 else 13758 if test -n "$ac_ct_LIPO"; then 13759 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13760 else 13761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13762 for as_dir in $PATH 13763 do 13764 IFS=$as_save_IFS 13765 test -z "$as_dir" && as_dir=. 13766 for ac_exec_ext in '' $ac_executable_extensions; do 13767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13768 ac_cv_prog_ac_ct_LIPO="lipo" 13769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13770 break 2 13771 fi 13772 done 13773 done 13774 IFS=$as_save_IFS 13775 13776 fi 13777 fi 13778 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13779 if test -n "$ac_ct_LIPO"; then 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13781 $as_echo "$ac_ct_LIPO" >&6; } 13782 else 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13784 $as_echo "no" >&6; } 13785 fi 13786 13787 if test "x$ac_ct_LIPO" = x; then 13788 LIPO=":" 13789 else 13790 case $cross_compiling:$ac_tool_warned in 13791 yes:) 13792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13794 ac_tool_warned=yes ;; 13795 esac 13796 LIPO=$ac_ct_LIPO 13797 fi 13798 else 13799 LIPO="$ac_cv_prog_LIPO" 13800 fi 13801 13802 if test -n "$ac_tool_prefix"; then 13803 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13804 set dummy ${ac_tool_prefix}otool; ac_word=$2 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13806 $as_echo_n "checking for $ac_word... " >&6; } 13807 if ${ac_cv_prog_OTOOL+:} false; then : 13808 $as_echo_n "(cached) " >&6 13809 else 13810 if test -n "$OTOOL"; then 13811 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13812 else 13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13814 for as_dir in $PATH 13815 do 13816 IFS=$as_save_IFS 13817 test -z "$as_dir" && as_dir=. 13818 for ac_exec_ext in '' $ac_executable_extensions; do 13819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13820 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13822 break 2 13823 fi 13824 done 13825 done 13826 IFS=$as_save_IFS 13827 13828 fi 13829 fi 13830 OTOOL=$ac_cv_prog_OTOOL 13831 if test -n "$OTOOL"; then 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13833 $as_echo "$OTOOL" >&6; } 13834 else 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13836 $as_echo "no" >&6; } 13837 fi 13838 13839 13840 fi 13841 if test -z "$ac_cv_prog_OTOOL"; then 13842 ac_ct_OTOOL=$OTOOL 13843 # Extract the first word of "otool", so it can be a program name with args. 13844 set dummy otool; ac_word=$2 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13846 $as_echo_n "checking for $ac_word... " >&6; } 13847 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13848 $as_echo_n "(cached) " >&6 13849 else 13850 if test -n "$ac_ct_OTOOL"; then 13851 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13852 else 13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13854 for as_dir in $PATH 13855 do 13856 IFS=$as_save_IFS 13857 test -z "$as_dir" && as_dir=. 13858 for ac_exec_ext in '' $ac_executable_extensions; do 13859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13860 ac_cv_prog_ac_ct_OTOOL="otool" 13861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13862 break 2 13863 fi 13864 done 13865 done 13866 IFS=$as_save_IFS 13867 13868 fi 13869 fi 13870 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13871 if test -n "$ac_ct_OTOOL"; then 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13873 $as_echo "$ac_ct_OTOOL" >&6; } 13874 else 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13876 $as_echo "no" >&6; } 13877 fi 13878 13879 if test "x$ac_ct_OTOOL" = x; then 13880 OTOOL=":" 13881 else 13882 case $cross_compiling:$ac_tool_warned in 13883 yes:) 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13886 ac_tool_warned=yes ;; 13887 esac 13888 OTOOL=$ac_ct_OTOOL 13889 fi 13890 else 13891 OTOOL="$ac_cv_prog_OTOOL" 13892 fi 13893 13894 if test -n "$ac_tool_prefix"; then 13895 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13896 set dummy ${ac_tool_prefix}otool64; ac_word=$2 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13898 $as_echo_n "checking for $ac_word... " >&6; } 13899 if ${ac_cv_prog_OTOOL64+:} false; then : 13900 $as_echo_n "(cached) " >&6 13901 else 13902 if test -n "$OTOOL64"; then 13903 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13904 else 13905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13906 for as_dir in $PATH 13907 do 13908 IFS=$as_save_IFS 13909 test -z "$as_dir" && as_dir=. 13910 for ac_exec_ext in '' $ac_executable_extensions; do 13911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13912 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13914 break 2 13915 fi 13916 done 13917 done 13918 IFS=$as_save_IFS 13919 13920 fi 13921 fi 13922 OTOOL64=$ac_cv_prog_OTOOL64 13923 if test -n "$OTOOL64"; then 13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13925 $as_echo "$OTOOL64" >&6; } 13926 else 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13928 $as_echo "no" >&6; } 13929 fi 13930 13931 13932 fi 13933 if test -z "$ac_cv_prog_OTOOL64"; then 13934 ac_ct_OTOOL64=$OTOOL64 13935 # Extract the first word of "otool64", so it can be a program name with args. 13936 set dummy otool64; ac_word=$2 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13938 $as_echo_n "checking for $ac_word... " >&6; } 13939 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13940 $as_echo_n "(cached) " >&6 13941 else 13942 if test -n "$ac_ct_OTOOL64"; then 13943 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13944 else 13945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13946 for as_dir in $PATH 13947 do 13948 IFS=$as_save_IFS 13949 test -z "$as_dir" && as_dir=. 13950 for ac_exec_ext in '' $ac_executable_extensions; do 13951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13952 ac_cv_prog_ac_ct_OTOOL64="otool64" 13953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13954 break 2 13955 fi 13956 done 13957 done 13958 IFS=$as_save_IFS 13959 13960 fi 13961 fi 13962 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13963 if test -n "$ac_ct_OTOOL64"; then 13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13965 $as_echo "$ac_ct_OTOOL64" >&6; } 13966 else 13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13968 $as_echo "no" >&6; } 13969 fi 13970 13971 if test "x$ac_ct_OTOOL64" = x; then 13972 OTOOL64=":" 13973 else 13974 case $cross_compiling:$ac_tool_warned in 13975 yes:) 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13978 ac_tool_warned=yes ;; 13979 esac 13980 OTOOL64=$ac_ct_OTOOL64 13981 fi 13982 else 13983 OTOOL64="$ac_cv_prog_OTOOL64" 13984 fi 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14013 $as_echo_n "checking for -single_module linker flag... " >&6; } 14014 if ${lt_cv_apple_cc_single_mod+:} false; then : 14015 $as_echo_n "(cached) " >&6 14016 else 14017 lt_cv_apple_cc_single_mod=no 14018 if test -z "$LT_MULTI_MODULE"; then 14019 # By default we will add the -single_module flag. You can override 14020 # by either setting the environment variable LT_MULTI_MODULE 14021 # non-empty at configure time, or by adding -multi_module to the 14022 # link flags. 14023 rm -rf libconftest.dylib* 14024 echo "int foo(void){return 1;}" > conftest.c 14025 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14026 -dynamiclib -Wl,-single_module conftest.c" >&5 14027 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14028 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14029 _lt_result=$? 14030 # If there is a non-empty error log, and "single_module" 14031 # appears in it, assume the flag caused a linker warning 14032 if test -s conftest.err && $GREP single_module conftest.err; then 14033 cat conftest.err >&5 14034 # Otherwise, if the output was created with a 0 exit code from 14035 # the compiler, it worked. 14036 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14037 lt_cv_apple_cc_single_mod=yes 14038 else 14039 cat conftest.err >&5 14040 fi 14041 rm -rf libconftest.dylib* 14042 rm -f conftest.* 14043 fi 14044 fi 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14046 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14047 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14049 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14050 if ${lt_cv_ld_exported_symbols_list+:} false; then : 14051 $as_echo_n "(cached) " >&6 14052 else 14053 lt_cv_ld_exported_symbols_list=no 14054 save_LDFLAGS=$LDFLAGS 14055 echo "_main" > conftest.sym 14056 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14058 /* end confdefs.h. */ 14059 14060 int 14061 main () 14062 { 14063 14064 ; 14065 return 0; 14066 } 14067 _ACEOF 14068 if ac_fn_c_try_link "$LINENO"; then : 14069 lt_cv_ld_exported_symbols_list=yes 14070 else 14071 lt_cv_ld_exported_symbols_list=no 14072 fi 14073 rm -f core conftest.err conftest.$ac_objext \ 14074 conftest$ac_exeext conftest.$ac_ext 14075 LDFLAGS=$save_LDFLAGS 14076 14077 fi 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14079 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14080 14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14082 $as_echo_n "checking for -force_load linker flag... " >&6; } 14083 if ${lt_cv_ld_force_load+:} false; then : 14084 $as_echo_n "(cached) " >&6 14085 else 14086 lt_cv_ld_force_load=no 14087 cat > conftest.c << _LT_EOF 14088 int forced_loaded() { return 2;} 14089 _LT_EOF 14090 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14091 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14092 echo "$AR cru libconftest.a conftest.o" >&5 14093 $AR cru libconftest.a conftest.o 2>&5 14094 echo "$RANLIB libconftest.a" >&5 14095 $RANLIB libconftest.a 2>&5 14096 cat > conftest.c << _LT_EOF 14097 int main() { return 0;} 14098 _LT_EOF 14099 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14100 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14101 _lt_result=$? 14102 if test -s conftest.err && $GREP force_load conftest.err; then 14103 cat conftest.err >&5 14104 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14105 lt_cv_ld_force_load=yes 14106 else 14107 cat conftest.err >&5 14108 fi 14109 rm -f conftest.err libconftest.a conftest conftest.c 14110 rm -rf conftest.dSYM 14111 14112 fi 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14114 $as_echo "$lt_cv_ld_force_load" >&6; } 14115 case $host_os in 14116 rhapsody* | darwin1.[012]) 14117 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14118 darwin1.*) 14119 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14120 darwin*) # darwin 5.x on 14121 # if running on 10.5 or later, the deployment target defaults 14122 # to the OS version, if on x86, and 10.4, the deployment 14123 # target defaults to 10.4. Don't you love it? 14124 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14125 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14126 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14127 10.[012][,.]*) 14128 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14129 10.*) 14130 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14131 esac 14132 ;; 14133 esac 14134 if test yes = "$lt_cv_apple_cc_single_mod"; then 14135 _lt_dar_single_mod='$single_module' 14136 fi 14137 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14138 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14139 else 14140 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14141 fi 14142 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14143 _lt_dsymutil='~$DSYMUTIL $lib || :' 14144 else 14145 _lt_dsymutil= 14146 fi 14147 ;; 14148 esac 14149 14150 # func_munge_path_list VARIABLE PATH 14151 # ----------------------------------- 14152 # VARIABLE is name of variable containing _space_ separated list of 14153 # directories to be munged by the contents of PATH, which is string 14154 # having a format: 14155 # "DIR[:DIR]:" 14156 # string "DIR[ DIR]" will be prepended to VARIABLE 14157 # ":DIR[:DIR]" 14158 # string "DIR[ DIR]" will be appended to VARIABLE 14159 # "DIRP[:DIRP]::[DIRA:]DIRA" 14160 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14161 # "DIRA[ DIRA]" will be appended to VARIABLE 14162 # "DIR[:DIR]" 14163 # VARIABLE will be replaced by "DIR[ DIR]" 14164 func_munge_path_list () 14165 { 14166 case x$2 in 14167 x) 14168 ;; 14169 *:) 14170 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14171 ;; 14172 x:*) 14173 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14174 ;; 14175 *::*) 14176 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14177 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14178 ;; 14179 *) 14180 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14181 ;; 14182 esac 14183 } 14184 14185 for ac_header in dlfcn.h 14186 do : 14187 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14188 " 14189 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14190 cat >>confdefs.h <<_ACEOF 14191 #define HAVE_DLFCN_H 1 14192 _ACEOF 14193 14194 fi 14195 14196 done 14197 14198 14199 14200 14201 14202 # Set options 14203 14204 14205 14206 enable_dlopen=no 14207 14208 14209 enable_win32_dll=no 14210 14211 14212 # Check whether --enable-shared was given. 14213 if test "${enable_shared+set}" = set; then : 14214 enableval=$enable_shared; p=${PACKAGE-default} 14215 case $enableval in 14216 yes) enable_shared=yes ;; 14217 no) enable_shared=no ;; 14218 *) 14219 enable_shared=no 14220 # Look at the argument we got. We use all the common list separators. 14221 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14222 for pkg in $enableval; do 14223 IFS=$lt_save_ifs 14224 if test "X$pkg" = "X$p"; then 14225 enable_shared=yes 14226 fi 14227 done 14228 IFS=$lt_save_ifs 14229 ;; 14230 esac 14231 else 14232 enable_shared=yes 14233 fi 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 # Check whether --with-pic was given. 14246 if test "${with_pic+set}" = set; then : 14247 withval=$with_pic; lt_p=${PACKAGE-default} 14248 case $withval in 14249 yes|no) pic_mode=$withval ;; 14250 *) 14251 pic_mode=default 14252 # Look at the argument we got. We use all the common list separators. 14253 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14254 for lt_pkg in $withval; do 14255 IFS=$lt_save_ifs 14256 if test "X$lt_pkg" = "X$lt_p"; then 14257 pic_mode=yes 14258 fi 14259 done 14260 IFS=$lt_save_ifs 14261 ;; 14262 esac 14263 else 14264 pic_mode=default 14265 fi 14266 14267 14268 14269 14270 14271 14272 14273 14274 # Check whether --enable-fast-install was given. 14275 if test "${enable_fast_install+set}" = set; then : 14276 enableval=$enable_fast_install; p=${PACKAGE-default} 14277 case $enableval in 14278 yes) enable_fast_install=yes ;; 14279 no) enable_fast_install=no ;; 14280 *) 14281 enable_fast_install=no 14282 # Look at the argument we got. We use all the common list separators. 14283 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14284 for pkg in $enableval; do 14285 IFS=$lt_save_ifs 14286 if test "X$pkg" = "X$p"; then 14287 enable_fast_install=yes 14288 fi 14289 done 14290 IFS=$lt_save_ifs 14291 ;; 14292 esac 14293 else 14294 enable_fast_install=yes 14295 fi 14296 14297 14298 14299 14300 14301 14302 14303 14304 shared_archive_member_spec= 14305 case $host,$enable_shared in 14306 power*-*-aix[5-9]*,yes) 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14308 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14309 14310 # Check whether --with-aix-soname was given. 14311 if test "${with_aix_soname+set}" = set; then : 14312 withval=$with_aix_soname; case $withval in 14313 aix|svr4|both) 14314 ;; 14315 *) 14316 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14317 ;; 14318 esac 14319 lt_cv_with_aix_soname=$with_aix_soname 14320 else 14321 if ${lt_cv_with_aix_soname+:} false; then : 14322 $as_echo_n "(cached) " >&6 14323 else 14324 lt_cv_with_aix_soname=aix 14325 fi 14326 14327 with_aix_soname=$lt_cv_with_aix_soname 14328 fi 14329 14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14331 $as_echo "$with_aix_soname" >&6; } 14332 if test aix != "$with_aix_soname"; then 14333 # For the AIX way of multilib, we name the shared archive member 14334 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14335 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14336 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14337 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14338 if test 64 = "${OBJECT_MODE-32}"; then 14339 shared_archive_member_spec=shr_64 14340 else 14341 shared_archive_member_spec=shr 14342 fi 14343 fi 14344 ;; 14345 *) 14346 with_aix_soname=aix 14347 ;; 14348 esac 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 # This can be used to rebuild libtool when needed 14360 LIBTOOL_DEPS=$ltmain 14361 14362 # Always use our own libtool. 14363 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 test -z "$LN_S" && LN_S="ln -s" 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 if test -n "${ZSH_VERSION+set}"; then 14410 setopt NO_GLOB_SUBST 14411 fi 14412 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14414 $as_echo_n "checking for objdir... " >&6; } 14415 if ${lt_cv_objdir+:} false; then : 14416 $as_echo_n "(cached) " >&6 14417 else 14418 rm -f .libs 2>/dev/null 14419 mkdir .libs 2>/dev/null 14420 if test -d .libs; then 14421 lt_cv_objdir=.libs 14422 else 14423 # MS-DOS does not allow filenames that begin with a dot. 14424 lt_cv_objdir=_libs 14425 fi 14426 rmdir .libs 2>/dev/null 14427 fi 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14429 $as_echo "$lt_cv_objdir" >&6; } 14430 objdir=$lt_cv_objdir 14431 14432 14433 14434 14435 14436 cat >>confdefs.h <<_ACEOF 14437 #define LT_OBJDIR "$lt_cv_objdir/" 14438 _ACEOF 14439 14440 14441 14442 14443 case $host_os in 14444 aix3*) 14445 # AIX sometimes has problems with the GCC collect2 program. For some 14446 # reason, if we set the COLLECT_NAMES environment variable, the problems 14447 # vanish in a puff of smoke. 14448 if test set != "${COLLECT_NAMES+set}"; then 14449 COLLECT_NAMES= 14450 export COLLECT_NAMES 14451 fi 14452 ;; 14453 esac 14454 14455 # Global variables: 14456 ofile=libtool 14457 can_build_shared=yes 14458 14459 # All known linkers require a '.a' archive for static linking (except MSVC, 14460 # which needs '.lib'). 14461 libext=a 14462 14463 with_gnu_ld=$lt_cv_prog_gnu_ld 14464 14465 old_CC=$CC 14466 old_CFLAGS=$CFLAGS 14467 14468 # Set sane defaults for various variables 14469 test -z "$CC" && CC=cc 14470 test -z "$LTCC" && LTCC=$CC 14471 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14472 test -z "$LD" && LD=ld 14473 test -z "$ac_objext" && ac_objext=o 14474 14475 func_cc_basename $compiler 14476 cc_basename=$func_cc_basename_result 14477 14478 14479 # Only perform the check for file, if the check method requires it 14480 test -z "$MAGIC_CMD" && MAGIC_CMD=file 14481 case $deplibs_check_method in 14482 file_magic*) 14483 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14485 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14486 if ${lt_cv_path_MAGIC_CMD+:} false; then : 14487 $as_echo_n "(cached) " >&6 14488 else 14489 case $MAGIC_CMD in 14490 [\\/*] | ?:[\\/]*) 14491 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14492 ;; 14493 *) 14494 lt_save_MAGIC_CMD=$MAGIC_CMD 14495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14497 for ac_dir in $ac_dummy; do 14498 IFS=$lt_save_ifs 14499 test -z "$ac_dir" && ac_dir=. 14500 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14501 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14502 if test -n "$file_magic_test_file"; then 14503 case $deplibs_check_method in 14504 "file_magic "*) 14505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14506 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14508 $EGREP "$file_magic_regex" > /dev/null; then 14509 : 14510 else 14511 cat <<_LT_EOF 1>&2 14512 14513 *** Warning: the command libtool uses to detect shared libraries, 14514 *** $file_magic_cmd, produces output that libtool cannot recognize. 14515 *** The result is that libtool may fail to recognize shared libraries 14516 *** as such. This will affect the creation of libtool libraries that 14517 *** depend on shared libraries, but programs linked with such libtool 14518 *** libraries will work regardless of this problem. Nevertheless, you 14519 *** may want to report the problem to your system manager and/or to 14520 *** bug-libtool (at] gnu.org 14521 14522 _LT_EOF 14523 fi ;; 14524 esac 14525 fi 14526 break 14527 fi 14528 done 14529 IFS=$lt_save_ifs 14530 MAGIC_CMD=$lt_save_MAGIC_CMD 14531 ;; 14532 esac 14533 fi 14534 14535 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14536 if test -n "$MAGIC_CMD"; then 14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14538 $as_echo "$MAGIC_CMD" >&6; } 14539 else 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14541 $as_echo "no" >&6; } 14542 fi 14543 14544 14545 14546 14547 14548 if test -z "$lt_cv_path_MAGIC_CMD"; then 14549 if test -n "$ac_tool_prefix"; then 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14551 $as_echo_n "checking for file... " >&6; } 14552 if ${lt_cv_path_MAGIC_CMD+:} false; then : 14553 $as_echo_n "(cached) " >&6 14554 else 14555 case $MAGIC_CMD in 14556 [\\/*] | ?:[\\/]*) 14557 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14558 ;; 14559 *) 14560 lt_save_MAGIC_CMD=$MAGIC_CMD 14561 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14563 for ac_dir in $ac_dummy; do 14564 IFS=$lt_save_ifs 14565 test -z "$ac_dir" && ac_dir=. 14566 if test -f "$ac_dir/file"; then 14567 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14568 if test -n "$file_magic_test_file"; then 14569 case $deplibs_check_method in 14570 "file_magic "*) 14571 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14572 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14574 $EGREP "$file_magic_regex" > /dev/null; then 14575 : 14576 else 14577 cat <<_LT_EOF 1>&2 14578 14579 *** Warning: the command libtool uses to detect shared libraries, 14580 *** $file_magic_cmd, produces output that libtool cannot recognize. 14581 *** The result is that libtool may fail to recognize shared libraries 14582 *** as such. This will affect the creation of libtool libraries that 14583 *** depend on shared libraries, but programs linked with such libtool 14584 *** libraries will work regardless of this problem. Nevertheless, you 14585 *** may want to report the problem to your system manager and/or to 14586 *** bug-libtool (at] gnu.org 14587 14588 _LT_EOF 14589 fi ;; 14590 esac 14591 fi 14592 break 14593 fi 14594 done 14595 IFS=$lt_save_ifs 14596 MAGIC_CMD=$lt_save_MAGIC_CMD 14597 ;; 14598 esac 14599 fi 14600 14601 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14602 if test -n "$MAGIC_CMD"; then 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14604 $as_echo "$MAGIC_CMD" >&6; } 14605 else 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14607 $as_echo "no" >&6; } 14608 fi 14609 14610 14611 else 14612 MAGIC_CMD=: 14613 fi 14614 fi 14615 14616 fi 14617 ;; 14618 esac 14619 14620 # Use C for the default configuration in the libtool script 14621 14622 lt_save_CC=$CC 14623 ac_ext=c 14624 ac_cpp='$CPP $CPPFLAGS' 14625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14627 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14628 14629 14630 # Source file extension for C test sources. 14631 ac_ext=c 14632 14633 # Object file extension for compiled C test sources. 14634 objext=o 14635 objext=$objext 14636 14637 # Code to be used in simple compile tests 14638 lt_simple_compile_test_code="int some_variable = 0;" 14639 14640 # Code to be used in simple link tests 14641 lt_simple_link_test_code='int main(){return(0);}' 14642 14643 14644 14645 14646 14647 14648 14649 # If no C compiler was specified, use CC. 14650 LTCC=${LTCC-"$CC"} 14651 14652 # If no C compiler flags were specified, use CFLAGS. 14653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14654 14655 # Allow CC to be a program name with arguments. 14656 compiler=$CC 14657 14658 # Save the default compiler, since it gets overwritten when the other 14659 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14660 compiler_DEFAULT=$CC 14661 14662 # save warnings/boilerplate of simple test code 14663 ac_outfile=conftest.$ac_objext 14664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14666 _lt_compiler_boilerplate=`cat conftest.err` 14667 $RM conftest* 14668 14669 ac_outfile=conftest.$ac_objext 14670 echo "$lt_simple_link_test_code" >conftest.$ac_ext 14671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14672 _lt_linker_boilerplate=`cat conftest.err` 14673 $RM -r conftest* 14674 14675 14676 if test -n "$compiler"; then 14677 14678 lt_prog_compiler_no_builtin_flag= 14679 14680 if test yes = "$GCC"; then 14681 case $cc_basename in 14682 nvcc*) 14683 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14684 *) 14685 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14686 esac 14687 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14689 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14690 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14691 $as_echo_n "(cached) " >&6 14692 else 14693 lt_cv_prog_compiler_rtti_exceptions=no 14694 ac_outfile=conftest.$ac_objext 14695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14696 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14697 # Insert the option either (1) after the last *FLAGS variable, or 14698 # (2) before a word containing "conftest.", or (3) at the end. 14699 # Note that $ac_compile itself does not contain backslashes and begins 14700 # with a dollar sign (not a hyphen), so the echo should work correctly. 14701 # The option is referenced via a variable to avoid confusing sed. 14702 lt_compile=`echo "$ac_compile" | $SED \ 14703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14705 -e 's:$: $lt_compiler_flag:'` 14706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14707 (eval "$lt_compile" 2>conftest.err) 14708 ac_status=$? 14709 cat conftest.err >&5 14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14711 if (exit $ac_status) && test -s "$ac_outfile"; then 14712 # The compiler can only warn and ignore the option if not recognized 14713 # So say no if there are warnings other than the usual output. 14714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14717 lt_cv_prog_compiler_rtti_exceptions=yes 14718 fi 14719 fi 14720 $RM conftest* 14721 14722 fi 14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14724 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14725 14726 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14727 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14728 else 14729 : 14730 fi 14731 14732 fi 14733 14734 14735 14736 14737 14738 14739 lt_prog_compiler_wl= 14740 lt_prog_compiler_pic= 14741 lt_prog_compiler_static= 14742 14743 14744 if test yes = "$GCC"; then 14745 lt_prog_compiler_wl='-Wl,' 14746 lt_prog_compiler_static='-static' 14747 14748 case $host_os in 14749 aix*) 14750 # All AIX code is PIC. 14751 if test ia64 = "$host_cpu"; then 14752 # AIX 5 now supports IA64 processor 14753 lt_prog_compiler_static='-Bstatic' 14754 fi 14755 lt_prog_compiler_pic='-fPIC' 14756 ;; 14757 14758 amigaos*) 14759 case $host_cpu in 14760 powerpc) 14761 # see comment about AmigaOS4 .so support 14762 lt_prog_compiler_pic='-fPIC' 14763 ;; 14764 m68k) 14765 # FIXME: we need at least 68020 code to build shared libraries, but 14766 # adding the '-m68020' flag to GCC prevents building anything better, 14767 # like '-m68040'. 14768 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14769 ;; 14770 esac 14771 ;; 14772 14773 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14774 # PIC is the default for these OSes. 14775 ;; 14776 14777 mingw* | cygwin* | pw32* | os2* | cegcc*) 14778 # This hack is so that the source file can tell whether it is being 14779 # built for inclusion in a dll (and should export symbols for example). 14780 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14781 # (--disable-auto-import) libraries 14782 lt_prog_compiler_pic='-DDLL_EXPORT' 14783 case $host_os in 14784 os2*) 14785 lt_prog_compiler_static='$wl-static' 14786 ;; 14787 esac 14788 ;; 14789 14790 darwin* | rhapsody*) 14791 # PIC is the default on this platform 14792 # Common symbols not allowed in MH_DYLIB files 14793 lt_prog_compiler_pic='-fno-common' 14794 ;; 14795 14796 haiku*) 14797 # PIC is the default for Haiku. 14798 # The "-static" flag exists, but is broken. 14799 lt_prog_compiler_static= 14800 ;; 14801 14802 hpux*) 14803 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14804 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14805 # sets the default TLS model and affects inlining. 14806 case $host_cpu in 14807 hppa*64*) 14808 # +Z the default 14809 ;; 14810 *) 14811 lt_prog_compiler_pic='-fPIC' 14812 ;; 14813 esac 14814 ;; 14815 14816 interix[3-9]*) 14817 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14818 # Instead, we relocate shared libraries at runtime. 14819 ;; 14820 14821 msdosdjgpp*) 14822 # Just because we use GCC doesn't mean we suddenly get shared libraries 14823 # on systems that don't support them. 14824 lt_prog_compiler_can_build_shared=no 14825 enable_shared=no 14826 ;; 14827 14828 *nto* | *qnx*) 14829 # QNX uses GNU C++, but need to define -shared option too, otherwise 14830 # it will coredump. 14831 lt_prog_compiler_pic='-fPIC -shared' 14832 ;; 14833 14834 sysv4*MP*) 14835 if test -d /usr/nec; then 14836 lt_prog_compiler_pic=-Kconform_pic 14837 fi 14838 ;; 14839 14840 *) 14841 lt_prog_compiler_pic='-fPIC' 14842 ;; 14843 esac 14844 14845 case $cc_basename in 14846 nvcc*) # Cuda Compiler Driver 2.2 14847 lt_prog_compiler_wl='-Xlinker ' 14848 if test -n "$lt_prog_compiler_pic"; then 14849 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14850 fi 14851 ;; 14852 esac 14853 else 14854 # PORTME Check for flag to pass linker flags through the system compiler. 14855 case $host_os in 14856 aix*) 14857 lt_prog_compiler_wl='-Wl,' 14858 if test ia64 = "$host_cpu"; then 14859 # AIX 5 now supports IA64 processor 14860 lt_prog_compiler_static='-Bstatic' 14861 else 14862 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14863 fi 14864 ;; 14865 14866 darwin* | rhapsody*) 14867 # PIC is the default on this platform 14868 # Common symbols not allowed in MH_DYLIB files 14869 lt_prog_compiler_pic='-fno-common' 14870 case $cc_basename in 14871 nagfor*) 14872 # NAG Fortran compiler 14873 lt_prog_compiler_wl='-Wl,-Wl,,' 14874 lt_prog_compiler_pic='-PIC' 14875 lt_prog_compiler_static='-Bstatic' 14876 ;; 14877 esac 14878 ;; 14879 14880 mingw* | cygwin* | pw32* | os2* | cegcc*) 14881 # This hack is so that the source file can tell whether it is being 14882 # built for inclusion in a dll (and should export symbols for example). 14883 lt_prog_compiler_pic='-DDLL_EXPORT' 14884 case $host_os in 14885 os2*) 14886 lt_prog_compiler_static='$wl-static' 14887 ;; 14888 esac 14889 ;; 14890 14891 hpux9* | hpux10* | hpux11*) 14892 lt_prog_compiler_wl='-Wl,' 14893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14894 # not for PA HP-UX. 14895 case $host_cpu in 14896 hppa*64*|ia64*) 14897 # +Z the default 14898 ;; 14899 *) 14900 lt_prog_compiler_pic='+Z' 14901 ;; 14902 esac 14903 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14904 lt_prog_compiler_static='$wl-a ${wl}archive' 14905 ;; 14906 14907 irix5* | irix6* | nonstopux*) 14908 lt_prog_compiler_wl='-Wl,' 14909 # PIC (with -KPIC) is the default. 14910 lt_prog_compiler_static='-non_shared' 14911 ;; 14912 14913 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14914 case $cc_basename in 14915 # old Intel for x86_64, which still supported -KPIC. 14916 ecc*) 14917 lt_prog_compiler_wl='-Wl,' 14918 lt_prog_compiler_pic='-KPIC' 14919 lt_prog_compiler_static='-static' 14920 ;; 14921 # icc used to be incompatible with GCC. 14922 # ICC 10 doesn't accept -KPIC any more. 14923 icc* | ifort*) 14924 lt_prog_compiler_wl='-Wl,' 14925 lt_prog_compiler_pic='-fPIC' 14926 lt_prog_compiler_static='-static' 14927 ;; 14928 # Lahey Fortran 8.1. 14929 lf95*) 14930 lt_prog_compiler_wl='-Wl,' 14931 lt_prog_compiler_pic='--shared' 14932 lt_prog_compiler_static='--static' 14933 ;; 14934 nagfor*) 14935 # NAG Fortran compiler 14936 lt_prog_compiler_wl='-Wl,-Wl,,' 14937 lt_prog_compiler_pic='-PIC' 14938 lt_prog_compiler_static='-Bstatic' 14939 ;; 14940 tcc*) 14941 # Fabrice Bellard et al's Tiny C Compiler 14942 lt_prog_compiler_wl='-Wl,' 14943 lt_prog_compiler_pic='-fPIC' 14944 lt_prog_compiler_static='-static' 14945 ;; 14946 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14947 # Portland Group compilers (*not* the Pentium gcc compiler, 14948 # which looks to be a dead project) 14949 lt_prog_compiler_wl='-Wl,' 14950 lt_prog_compiler_pic='-fpic' 14951 lt_prog_compiler_static='-Bstatic' 14952 ;; 14953 ccc*) 14954 lt_prog_compiler_wl='-Wl,' 14955 # All Alpha code is PIC. 14956 lt_prog_compiler_static='-non_shared' 14957 ;; 14958 xl* | bgxl* | bgf* | mpixl*) 14959 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14960 lt_prog_compiler_wl='-Wl,' 14961 lt_prog_compiler_pic='-qpic' 14962 lt_prog_compiler_static='-qstaticlink' 14963 ;; 14964 *) 14965 case `$CC -V 2>&1 | sed 5q` in 14966 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14967 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14968 lt_prog_compiler_pic='-KPIC' 14969 lt_prog_compiler_static='-Bstatic' 14970 lt_prog_compiler_wl='' 14971 ;; 14972 *Sun\ F* | *Sun*Fortran*) 14973 lt_prog_compiler_pic='-KPIC' 14974 lt_prog_compiler_static='-Bstatic' 14975 lt_prog_compiler_wl='-Qoption ld ' 14976 ;; 14977 *Sun\ C*) 14978 # Sun C 5.9 14979 lt_prog_compiler_pic='-KPIC' 14980 lt_prog_compiler_static='-Bstatic' 14981 lt_prog_compiler_wl='-Wl,' 14982 ;; 14983 *Intel*\ [CF]*Compiler*) 14984 lt_prog_compiler_wl='-Wl,' 14985 lt_prog_compiler_pic='-fPIC' 14986 lt_prog_compiler_static='-static' 14987 ;; 14988 *Portland\ Group*) 14989 lt_prog_compiler_wl='-Wl,' 14990 lt_prog_compiler_pic='-fpic' 14991 lt_prog_compiler_static='-Bstatic' 14992 ;; 14993 esac 14994 ;; 14995 esac 14996 ;; 14997 14998 newsos6) 14999 lt_prog_compiler_pic='-KPIC' 15000 lt_prog_compiler_static='-Bstatic' 15001 ;; 15002 15003 *nto* | *qnx*) 15004 # QNX uses GNU C++, but need to define -shared option too, otherwise 15005 # it will coredump. 15006 lt_prog_compiler_pic='-fPIC -shared' 15007 ;; 15008 15009 osf3* | osf4* | osf5*) 15010 lt_prog_compiler_wl='-Wl,' 15011 # All OSF/1 code is PIC. 15012 lt_prog_compiler_static='-non_shared' 15013 ;; 15014 15015 rdos*) 15016 lt_prog_compiler_static='-non_shared' 15017 ;; 15018 15019 solaris*) 15020 lt_prog_compiler_pic='-KPIC' 15021 lt_prog_compiler_static='-Bstatic' 15022 case $cc_basename in 15023 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15024 lt_prog_compiler_wl='-Qoption ld ';; 15025 *) 15026 lt_prog_compiler_wl='-Wl,';; 15027 esac 15028 ;; 15029 15030 sunos4*) 15031 lt_prog_compiler_wl='-Qoption ld ' 15032 lt_prog_compiler_pic='-PIC' 15033 lt_prog_compiler_static='-Bstatic' 15034 ;; 15035 15036 sysv4 | sysv4.2uw2* | sysv4.3*) 15037 lt_prog_compiler_wl='-Wl,' 15038 lt_prog_compiler_pic='-KPIC' 15039 lt_prog_compiler_static='-Bstatic' 15040 ;; 15041 15042 sysv4*MP*) 15043 if test -d /usr/nec; then 15044 lt_prog_compiler_pic='-Kconform_pic' 15045 lt_prog_compiler_static='-Bstatic' 15046 fi 15047 ;; 15048 15049 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15050 lt_prog_compiler_wl='-Wl,' 15051 lt_prog_compiler_pic='-KPIC' 15052 lt_prog_compiler_static='-Bstatic' 15053 ;; 15054 15055 unicos*) 15056 lt_prog_compiler_wl='-Wl,' 15057 lt_prog_compiler_can_build_shared=no 15058 ;; 15059 15060 uts4*) 15061 lt_prog_compiler_pic='-pic' 15062 lt_prog_compiler_static='-Bstatic' 15063 ;; 15064 15065 *) 15066 lt_prog_compiler_can_build_shared=no 15067 ;; 15068 esac 15069 fi 15070 15071 case $host_os in 15072 # For platforms that do not support PIC, -DPIC is meaningless: 15073 *djgpp*) 15074 lt_prog_compiler_pic= 15075 ;; 15076 *) 15077 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15078 ;; 15079 esac 15080 15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15082 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15083 if ${lt_cv_prog_compiler_pic+:} false; then : 15084 $as_echo_n "(cached) " >&6 15085 else 15086 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15087 fi 15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15089 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 15090 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15091 15092 # 15093 # Check to make sure the PIC flag actually works. 15094 # 15095 if test -n "$lt_prog_compiler_pic"; then 15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15097 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15098 if ${lt_cv_prog_compiler_pic_works+:} false; then : 15099 $as_echo_n "(cached) " >&6 15100 else 15101 lt_cv_prog_compiler_pic_works=no 15102 ac_outfile=conftest.$ac_objext 15103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15104 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15105 # Insert the option either (1) after the last *FLAGS variable, or 15106 # (2) before a word containing "conftest.", or (3) at the end. 15107 # Note that $ac_compile itself does not contain backslashes and begins 15108 # with a dollar sign (not a hyphen), so the echo should work correctly. 15109 # The option is referenced via a variable to avoid confusing sed. 15110 lt_compile=`echo "$ac_compile" | $SED \ 15111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15113 -e 's:$: $lt_compiler_flag:'` 15114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15115 (eval "$lt_compile" 2>conftest.err) 15116 ac_status=$? 15117 cat conftest.err >&5 15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15119 if (exit $ac_status) && test -s "$ac_outfile"; then 15120 # The compiler can only warn and ignore the option if not recognized 15121 # So say no if there are warnings other than the usual output. 15122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15124 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15125 lt_cv_prog_compiler_pic_works=yes 15126 fi 15127 fi 15128 $RM conftest* 15129 15130 fi 15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15132 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15133 15134 if test yes = "$lt_cv_prog_compiler_pic_works"; then 15135 case $lt_prog_compiler_pic in 15136 "" | " "*) ;; 15137 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15138 esac 15139 else 15140 lt_prog_compiler_pic= 15141 lt_prog_compiler_can_build_shared=no 15142 fi 15143 15144 fi 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 # 15157 # Check to make sure the static flag actually works. 15158 # 15159 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15161 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15162 if ${lt_cv_prog_compiler_static_works+:} false; then : 15163 $as_echo_n "(cached) " >&6 15164 else 15165 lt_cv_prog_compiler_static_works=no 15166 save_LDFLAGS=$LDFLAGS 15167 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15168 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15169 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15170 # The linker can only warn and ignore the option if not recognized 15171 # So say no if there are warnings 15172 if test -s conftest.err; then 15173 # Append any errors to the config.log. 15174 cat conftest.err 1>&5 15175 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15177 if diff conftest.exp conftest.er2 >/dev/null; then 15178 lt_cv_prog_compiler_static_works=yes 15179 fi 15180 else 15181 lt_cv_prog_compiler_static_works=yes 15182 fi 15183 fi 15184 $RM -r conftest* 15185 LDFLAGS=$save_LDFLAGS 15186 15187 fi 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15189 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15190 15191 if test yes = "$lt_cv_prog_compiler_static_works"; then 15192 : 15193 else 15194 lt_prog_compiler_static= 15195 fi 15196 15197 15198 15199 15200 15201 15202 15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15204 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15205 if ${lt_cv_prog_compiler_c_o+:} false; then : 15206 $as_echo_n "(cached) " >&6 15207 else 15208 lt_cv_prog_compiler_c_o=no 15209 $RM -r conftest 2>/dev/null 15210 mkdir conftest 15211 cd conftest 15212 mkdir out 15213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15214 15215 lt_compiler_flag="-o out/conftest2.$ac_objext" 15216 # Insert the option either (1) after the last *FLAGS variable, or 15217 # (2) before a word containing "conftest.", or (3) at the end. 15218 # Note that $ac_compile itself does not contain backslashes and begins 15219 # with a dollar sign (not a hyphen), so the echo should work correctly. 15220 lt_compile=`echo "$ac_compile" | $SED \ 15221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15223 -e 's:$: $lt_compiler_flag:'` 15224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15225 (eval "$lt_compile" 2>out/conftest.err) 15226 ac_status=$? 15227 cat out/conftest.err >&5 15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15229 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15230 then 15231 # The compiler can only warn and ignore the option if not recognized 15232 # So say no if there are warnings 15233 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15234 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15235 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15236 lt_cv_prog_compiler_c_o=yes 15237 fi 15238 fi 15239 chmod u+w . 2>&5 15240 $RM conftest* 15241 # SGI C++ compiler will create directory out/ii_files/ for 15242 # template instantiation 15243 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15244 $RM out/* && rmdir out 15245 cd .. 15246 $RM -r conftest 15247 $RM conftest* 15248 15249 fi 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15251 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15252 15253 15254 15255 15256 15257 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15260 if ${lt_cv_prog_compiler_c_o+:} false; then : 15261 $as_echo_n "(cached) " >&6 15262 else 15263 lt_cv_prog_compiler_c_o=no 15264 $RM -r conftest 2>/dev/null 15265 mkdir conftest 15266 cd conftest 15267 mkdir out 15268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15269 15270 lt_compiler_flag="-o out/conftest2.$ac_objext" 15271 # Insert the option either (1) after the last *FLAGS variable, or 15272 # (2) before a word containing "conftest.", or (3) at the end. 15273 # Note that $ac_compile itself does not contain backslashes and begins 15274 # with a dollar sign (not a hyphen), so the echo should work correctly. 15275 lt_compile=`echo "$ac_compile" | $SED \ 15276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15278 -e 's:$: $lt_compiler_flag:'` 15279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15280 (eval "$lt_compile" 2>out/conftest.err) 15281 ac_status=$? 15282 cat out/conftest.err >&5 15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15284 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15285 then 15286 # The compiler can only warn and ignore the option if not recognized 15287 # So say no if there are warnings 15288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15291 lt_cv_prog_compiler_c_o=yes 15292 fi 15293 fi 15294 chmod u+w . 2>&5 15295 $RM conftest* 15296 # SGI C++ compiler will create directory out/ii_files/ for 15297 # template instantiation 15298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15299 $RM out/* && rmdir out 15300 cd .. 15301 $RM -r conftest 15302 $RM conftest* 15303 15304 fi 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15306 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15307 15308 15309 15310 15311 hard_links=nottested 15312 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15313 # do not overwrite the value of need_locks provided by the user 15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15315 $as_echo_n "checking if we can lock with hard links... " >&6; } 15316 hard_links=yes 15317 $RM conftest* 15318 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15319 touch conftest.a 15320 ln conftest.a conftest.b 2>&5 || hard_links=no 15321 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15323 $as_echo "$hard_links" >&6; } 15324 if test no = "$hard_links"; then 15325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15326 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15327 need_locks=warn 15328 fi 15329 else 15330 need_locks=no 15331 fi 15332 15333 15334 15335 15336 15337 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15339 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15340 15341 runpath_var= 15342 allow_undefined_flag= 15343 always_export_symbols=no 15344 archive_cmds= 15345 archive_expsym_cmds= 15346 compiler_needs_object=no 15347 enable_shared_with_static_runtimes=no 15348 export_dynamic_flag_spec= 15349 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15350 hardcode_automatic=no 15351 hardcode_direct=no 15352 hardcode_direct_absolute=no 15353 hardcode_libdir_flag_spec= 15354 hardcode_libdir_separator= 15355 hardcode_minus_L=no 15356 hardcode_shlibpath_var=unsupported 15357 inherit_rpath=no 15358 link_all_deplibs=unknown 15359 module_cmds= 15360 module_expsym_cmds= 15361 old_archive_from_new_cmds= 15362 old_archive_from_expsyms_cmds= 15363 thread_safe_flag_spec= 15364 whole_archive_flag_spec= 15365 # include_expsyms should be a list of space-separated symbols to be *always* 15366 # included in the symbol list 15367 include_expsyms= 15368 # exclude_expsyms can be an extended regexp of symbols to exclude 15369 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15370 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15371 # as well as any symbol that contains 'd'. 15372 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15373 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15374 # platforms (ab)use it in PIC code, but their linkers get confused if 15375 # the symbol is explicitly referenced. Since portable code cannot 15376 # rely on this symbol name, it's probably fine to never include it in 15377 # preloaded symbol tables. 15378 # Exclude shared library initialization/finalization symbols. 15379 extract_expsyms_cmds= 15380 15381 case $host_os in 15382 cygwin* | mingw* | pw32* | cegcc*) 15383 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15384 # When not using gcc, we currently assume that we are using 15385 # Microsoft Visual C++. 15386 if test yes != "$GCC"; then 15387 with_gnu_ld=no 15388 fi 15389 ;; 15390 interix*) 15391 # we just hope/assume this is gcc and not c89 (= MSVC++) 15392 with_gnu_ld=yes 15393 ;; 15394 openbsd* | bitrig*) 15395 with_gnu_ld=no 15396 ;; 15397 esac 15398 15399 ld_shlibs=yes 15400 15401 # On some targets, GNU ld is compatible enough with the native linker 15402 # that we're better off using the native interface for both. 15403 lt_use_gnu_ld_interface=no 15404 if test yes = "$with_gnu_ld"; then 15405 case $host_os in 15406 aix*) 15407 # The AIX port of GNU ld has always aspired to compatibility 15408 # with the native linker. However, as the warning in the GNU ld 15409 # block says, versions before 2.19.5* couldn't really create working 15410 # shared libraries, regardless of the interface used. 15411 case `$LD -v 2>&1` in 15412 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15413 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15414 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15415 *) 15416 lt_use_gnu_ld_interface=yes 15417 ;; 15418 esac 15419 ;; 15420 *) 15421 lt_use_gnu_ld_interface=yes 15422 ;; 15423 esac 15424 fi 15425 15426 if test yes = "$lt_use_gnu_ld_interface"; then 15427 # If archive_cmds runs LD, not CC, wlarc should be empty 15428 wlarc='$wl' 15429 15430 # Set some defaults for GNU ld with shared library support. These 15431 # are reset later if shared libraries are not supported. Putting them 15432 # here allows them to be overridden if necessary. 15433 runpath_var=LD_RUN_PATH 15434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15435 export_dynamic_flag_spec='$wl--export-dynamic' 15436 # ancient GNU ld didn't support --whole-archive et. al. 15437 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15438 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15439 else 15440 whole_archive_flag_spec= 15441 fi 15442 supports_anon_versioning=no 15443 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15444 *GNU\ gold*) supports_anon_versioning=yes ;; 15445 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15446 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15447 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15448 *\ 2.11.*) ;; # other 2.11 versions 15449 *) supports_anon_versioning=yes ;; 15450 esac 15451 15452 # See if GNU ld supports shared libraries. 15453 case $host_os in 15454 aix[3-9]*) 15455 # On AIX/PPC, the GNU linker is very broken 15456 if test ia64 != "$host_cpu"; then 15457 ld_shlibs=no 15458 cat <<_LT_EOF 1>&2 15459 15460 *** Warning: the GNU linker, at least up to release 2.19, is reported 15461 *** to be unable to reliably create shared libraries on AIX. 15462 *** Therefore, libtool is disabling shared libraries support. If you 15463 *** really care for shared libraries, you may want to install binutils 15464 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15465 *** You will then need to restart the configuration process. 15466 15467 _LT_EOF 15468 fi 15469 ;; 15470 15471 amigaos*) 15472 case $host_cpu in 15473 powerpc) 15474 # see comment about AmigaOS4 .so support 15475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15476 archive_expsym_cmds='' 15477 ;; 15478 m68k) 15479 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)' 15480 hardcode_libdir_flag_spec='-L$libdir' 15481 hardcode_minus_L=yes 15482 ;; 15483 esac 15484 ;; 15485 15486 beos*) 15487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15488 allow_undefined_flag=unsupported 15489 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 15490 # support --undefined. This deserves some investigation. FIXME 15491 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15492 else 15493 ld_shlibs=no 15494 fi 15495 ;; 15496 15497 cygwin* | mingw* | pw32* | cegcc*) 15498 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15499 # as there is no search path for DLLs. 15500 hardcode_libdir_flag_spec='-L$libdir' 15501 export_dynamic_flag_spec='$wl--export-all-symbols' 15502 allow_undefined_flag=unsupported 15503 always_export_symbols=no 15504 enable_shared_with_static_runtimes=yes 15505 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' 15506 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15507 15508 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15510 # If the export-symbols file already is a .def file, use it as 15511 # is; otherwise, prepend EXPORTS... 15512 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15513 cp $export_symbols $output_objdir/$soname.def; 15514 else 15515 echo EXPORTS > $output_objdir/$soname.def; 15516 cat $export_symbols >> $output_objdir/$soname.def; 15517 fi~ 15518 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15519 else 15520 ld_shlibs=no 15521 fi 15522 ;; 15523 15524 haiku*) 15525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15526 link_all_deplibs=yes 15527 ;; 15528 15529 os2*) 15530 hardcode_libdir_flag_spec='-L$libdir' 15531 hardcode_minus_L=yes 15532 allow_undefined_flag=unsupported 15533 shrext_cmds=.dll 15534 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15535 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15536 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15537 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15538 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15539 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15540 emximp -o $lib $output_objdir/$libname.def' 15541 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15542 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15543 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15544 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15545 prefix_cmds="$SED"~ 15546 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15547 prefix_cmds="$prefix_cmds -e 1d"; 15548 fi~ 15549 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15550 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15551 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15552 emximp -o $lib $output_objdir/$libname.def' 15553 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15554 enable_shared_with_static_runtimes=yes 15555 ;; 15556 15557 interix[3-9]*) 15558 hardcode_direct=no 15559 hardcode_shlibpath_var=no 15560 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15561 export_dynamic_flag_spec='$wl-E' 15562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15563 # Instead, shared libraries are loaded at an image base (0x10000000 by 15564 # default) and relocated if they conflict, which is a slow very memory 15565 # consuming and fragmenting process. To avoid this, we pick a random, 15566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15567 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15568 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15569 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' 15570 ;; 15571 15572 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15573 tmp_diet=no 15574 if test linux-dietlibc = "$host_os"; then 15575 case $cc_basename in 15576 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15577 esac 15578 fi 15579 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15580 && test no = "$tmp_diet" 15581 then 15582 tmp_addflag=' $pic_flag' 15583 tmp_sharedflag='-shared' 15584 case $cc_basename,$host_cpu in 15585 pgcc*) # Portland Group C compiler 15586 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' 15587 tmp_addflag=' $pic_flag' 15588 ;; 15589 pgf77* | pgf90* | pgf95* | pgfortran*) 15590 # Portland Group f77 and f90 compilers 15591 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' 15592 tmp_addflag=' $pic_flag -Mnomain' ;; 15593 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15594 tmp_addflag=' -i_dynamic' ;; 15595 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15596 tmp_addflag=' -i_dynamic -nofor_main' ;; 15597 ifc* | ifort*) # Intel Fortran compiler 15598 tmp_addflag=' -nofor_main' ;; 15599 lf95*) # Lahey Fortran 8.1 15600 whole_archive_flag_spec= 15601 tmp_sharedflag='--shared' ;; 15602 nagfor*) # NAGFOR 5.3 15603 tmp_sharedflag='-Wl,-shared' ;; 15604 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15605 tmp_sharedflag='-qmkshrobj' 15606 tmp_addflag= ;; 15607 nvcc*) # Cuda Compiler Driver 2.2 15608 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' 15609 compiler_needs_object=yes 15610 ;; 15611 esac 15612 case `$CC -V 2>&1 | sed 5q` in 15613 *Sun\ C*) # Sun C 5.9 15614 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' 15615 compiler_needs_object=yes 15616 tmp_sharedflag='-G' ;; 15617 *Sun\ F*) # Sun Fortran 8.3 15618 tmp_sharedflag='-G' ;; 15619 esac 15620 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15621 15622 if test yes = "$supports_anon_versioning"; then 15623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15625 echo "local: *; };" >> $output_objdir/$libname.ver~ 15626 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15627 fi 15628 15629 case $cc_basename in 15630 tcc*) 15631 export_dynamic_flag_spec='-rdynamic' 15632 ;; 15633 xlf* | bgf* | bgxlf* | mpixlf*) 15634 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15635 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15636 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15637 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15638 if test yes = "$supports_anon_versioning"; then 15639 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15640 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15641 echo "local: *; };" >> $output_objdir/$libname.ver~ 15642 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15643 fi 15644 ;; 15645 esac 15646 else 15647 ld_shlibs=no 15648 fi 15649 ;; 15650 15651 netbsd*) 15652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15653 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15654 wlarc= 15655 else 15656 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15657 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15658 fi 15659 ;; 15660 15661 solaris*) 15662 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15663 ld_shlibs=no 15664 cat <<_LT_EOF 1>&2 15665 15666 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 15667 *** create shared libraries on Solaris systems. Therefore, libtool 15668 *** is disabling shared libraries support. We urge you to upgrade GNU 15669 *** binutils to release 2.9.1 or newer. Another option is to modify 15670 *** your PATH or compiler configuration so that the native linker is 15671 *** used, and then restart. 15672 15673 _LT_EOF 15674 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15675 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15676 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15677 else 15678 ld_shlibs=no 15679 fi 15680 ;; 15681 15682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15683 case `$LD -v 2>&1` in 15684 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15685 ld_shlibs=no 15686 cat <<_LT_EOF 1>&2 15687 15688 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15689 *** reliably create shared libraries on SCO systems. Therefore, libtool 15690 *** is disabling shared libraries support. We urge you to upgrade GNU 15691 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15692 *** your PATH or compiler configuration so that the native linker is 15693 *** used, and then restart. 15694 15695 _LT_EOF 15696 ;; 15697 *) 15698 # For security reasons, it is highly recommended that you always 15699 # use absolute paths for naming shared libraries, and exclude the 15700 # DT_RUNPATH tag from executables and libraries. But doing so 15701 # requires that you compile everything twice, which is a pain. 15702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15703 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15706 else 15707 ld_shlibs=no 15708 fi 15709 ;; 15710 esac 15711 ;; 15712 15713 sunos4*) 15714 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15715 wlarc= 15716 hardcode_direct=yes 15717 hardcode_shlibpath_var=no 15718 ;; 15719 15720 *) 15721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15722 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15723 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15724 else 15725 ld_shlibs=no 15726 fi 15727 ;; 15728 esac 15729 15730 if test no = "$ld_shlibs"; then 15731 runpath_var= 15732 hardcode_libdir_flag_spec= 15733 export_dynamic_flag_spec= 15734 whole_archive_flag_spec= 15735 fi 15736 else 15737 # PORTME fill in a description of your system's linker (not GNU ld) 15738 case $host_os in 15739 aix3*) 15740 allow_undefined_flag=unsupported 15741 always_export_symbols=yes 15742 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' 15743 # Note: this linker hardcodes the directories in LIBPATH if there 15744 # are no directories specified by -L. 15745 hardcode_minus_L=yes 15746 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15747 # Neither direct hardcoding nor static linking is supported with a 15748 # broken collect2. 15749 hardcode_direct=unsupported 15750 fi 15751 ;; 15752 15753 aix[4-9]*) 15754 if test ia64 = "$host_cpu"; then 15755 # On IA64, the linker does run time linking by default, so we don't 15756 # have to do anything special. 15757 aix_use_runtimelinking=no 15758 exp_sym_flag='-Bexport' 15759 no_entry_flag= 15760 else 15761 # If we're using GNU nm, then we don't want the "-C" option. 15762 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15763 # Without the "-l" option, or with the "-B" option, AIX nm treats 15764 # weak defined symbols like other global defined symbols, whereas 15765 # GNU nm marks them as "W". 15766 # While the 'weak' keyword is ignored in the Export File, we need 15767 # it in the Import File for the 'aix-soname' feature, so we have 15768 # to replace the "-B" option with "-P" for AIX nm. 15769 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15770 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' 15771 else 15772 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' 15773 fi 15774 aix_use_runtimelinking=no 15775 15776 # Test if we are trying to use run time linking or normal 15777 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15778 # have runtime linking enabled, and use it for executables. 15779 # For shared libraries, we enable/disable runtime linking 15780 # depending on the kind of the shared library created - 15781 # when "with_aix_soname,aix_use_runtimelinking" is: 15782 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15783 # "aix,yes" lib.so shared, rtl:yes, for executables 15784 # lib.a static archive 15785 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15786 # lib.a(lib.so.V) shared, rtl:no, for executables 15787 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15788 # lib.a(lib.so.V) shared, rtl:no 15789 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15790 # lib.a static archive 15791 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15792 for ld_flag in $LDFLAGS; do 15793 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15794 aix_use_runtimelinking=yes 15795 break 15796 fi 15797 done 15798 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15799 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15800 # so we don't have lib.a shared libs to link our executables. 15801 # We have to force runtime linking in this case. 15802 aix_use_runtimelinking=yes 15803 LDFLAGS="$LDFLAGS -Wl,-brtl" 15804 fi 15805 ;; 15806 esac 15807 15808 exp_sym_flag='-bexport' 15809 no_entry_flag='-bnoentry' 15810 fi 15811 15812 # When large executables or shared objects are built, AIX ld can 15813 # have problems creating the table of contents. If linking a library 15814 # or program results in "error TOC overflow" add -mminimal-toc to 15815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15817 15818 archive_cmds='' 15819 hardcode_direct=yes 15820 hardcode_direct_absolute=yes 15821 hardcode_libdir_separator=':' 15822 link_all_deplibs=yes 15823 file_list_spec='$wl-f,' 15824 case $with_aix_soname,$aix_use_runtimelinking in 15825 aix,*) ;; # traditional, no import file 15826 svr4,* | *,yes) # use import file 15827 # The Import File defines what to hardcode. 15828 hardcode_direct=no 15829 hardcode_direct_absolute=no 15830 ;; 15831 esac 15832 15833 if test yes = "$GCC"; then 15834 case $host_os in aix4.[012]|aix4.[012].*) 15835 # We only want to do this on AIX 4.2 and lower, the check 15836 # below for broken collect2 doesn't work under 4.3+ 15837 collect2name=`$CC -print-prog-name=collect2` 15838 if test -f "$collect2name" && 15839 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15840 then 15841 # We have reworked collect2 15842 : 15843 else 15844 # We have old collect2 15845 hardcode_direct=unsupported 15846 # It fails to find uninstalled libraries when the uninstalled 15847 # path is not listed in the libpath. Setting hardcode_minus_L 15848 # to unsupported forces relinking 15849 hardcode_minus_L=yes 15850 hardcode_libdir_flag_spec='-L$libdir' 15851 hardcode_libdir_separator= 15852 fi 15853 ;; 15854 esac 15855 shared_flag='-shared' 15856 if test yes = "$aix_use_runtimelinking"; then 15857 shared_flag="$shared_flag "'$wl-G' 15858 fi 15859 # Need to ensure runtime linking is disabled for the traditional 15860 # shared library, or the linker may eventually find shared libraries 15861 # /with/ Import File - we do not want to mix them. 15862 shared_flag_aix='-shared' 15863 shared_flag_svr4='-shared $wl-G' 15864 else 15865 # not using gcc 15866 if test ia64 = "$host_cpu"; then 15867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15868 # chokes on -Wl,-G. The following line is correct: 15869 shared_flag='-G' 15870 else 15871 if test yes = "$aix_use_runtimelinking"; then 15872 shared_flag='$wl-G' 15873 else 15874 shared_flag='$wl-bM:SRE' 15875 fi 15876 shared_flag_aix='$wl-bM:SRE' 15877 shared_flag_svr4='$wl-G' 15878 fi 15879 fi 15880 15881 export_dynamic_flag_spec='$wl-bexpall' 15882 # It seems that -bexpall does not export symbols beginning with 15883 # underscore (_), so it is better to generate a list of symbols to export. 15884 always_export_symbols=yes 15885 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15886 # Warning - without using the other runtime loading flags (-brtl), 15887 # -berok will link without error, but may produce a broken library. 15888 allow_undefined_flag='-berok' 15889 # Determine the default libpath from the value encoded in an 15890 # empty executable. 15891 if test set = "${lt_cv_aix_libpath+set}"; then 15892 aix_libpath=$lt_cv_aix_libpath 15893 else 15894 if ${lt_cv_aix_libpath_+:} false; then : 15895 $as_echo_n "(cached) " >&6 15896 else 15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15898 /* end confdefs.h. */ 15899 15900 int 15901 main () 15902 { 15903 15904 ; 15905 return 0; 15906 } 15907 _ACEOF 15908 if ac_fn_c_try_link "$LINENO"; then : 15909 15910 lt_aix_libpath_sed=' 15911 /Import File Strings/,/^$/ { 15912 /^0/ { 15913 s/^0 *\([^ ]*\) *$/\1/ 15914 p 15915 } 15916 }' 15917 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15918 # Check for a 64-bit object if we didn't find anything. 15919 if test -z "$lt_cv_aix_libpath_"; then 15920 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15921 fi 15922 fi 15923 rm -f core conftest.err conftest.$ac_objext \ 15924 conftest$ac_exeext conftest.$ac_ext 15925 if test -z "$lt_cv_aix_libpath_"; then 15926 lt_cv_aix_libpath_=/usr/lib:/lib 15927 fi 15928 15929 fi 15930 15931 aix_libpath=$lt_cv_aix_libpath_ 15932 fi 15933 15934 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15935 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 15936 else 15937 if test ia64 = "$host_cpu"; then 15938 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15939 allow_undefined_flag="-z nodefs" 15940 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" 15941 else 15942 # Determine the default libpath from the value encoded in an 15943 # empty executable. 15944 if test set = "${lt_cv_aix_libpath+set}"; then 15945 aix_libpath=$lt_cv_aix_libpath 15946 else 15947 if ${lt_cv_aix_libpath_+:} false; then : 15948 $as_echo_n "(cached) " >&6 15949 else 15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15951 /* end confdefs.h. */ 15952 15953 int 15954 main () 15955 { 15956 15957 ; 15958 return 0; 15959 } 15960 _ACEOF 15961 if ac_fn_c_try_link "$LINENO"; then : 15962 15963 lt_aix_libpath_sed=' 15964 /Import File Strings/,/^$/ { 15965 /^0/ { 15966 s/^0 *\([^ ]*\) *$/\1/ 15967 p 15968 } 15969 }' 15970 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15971 # Check for a 64-bit object if we didn't find anything. 15972 if test -z "$lt_cv_aix_libpath_"; then 15973 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15974 fi 15975 fi 15976 rm -f core conftest.err conftest.$ac_objext \ 15977 conftest$ac_exeext conftest.$ac_ext 15978 if test -z "$lt_cv_aix_libpath_"; then 15979 lt_cv_aix_libpath_=/usr/lib:/lib 15980 fi 15981 15982 fi 15983 15984 aix_libpath=$lt_cv_aix_libpath_ 15985 fi 15986 15987 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15988 # Warning - without using the other run time loading flags, 15989 # -berok will link without error, but may produce a broken library. 15990 no_undefined_flag=' $wl-bernotok' 15991 allow_undefined_flag=' $wl-berok' 15992 if test yes = "$with_gnu_ld"; then 15993 # We only use this code for GNU lds that support --whole-archive. 15994 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15995 else 15996 # Exported symbols can be pulled into shared objects from archives 15997 whole_archive_flag_spec='$convenience' 15998 fi 15999 archive_cmds_need_lc=yes 16000 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16001 # -brtl affects multiple linker settings, -berok does not and is overridden later 16002 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16003 if test svr4 != "$with_aix_soname"; then 16004 # This is similar to how AIX traditionally builds its shared libraries. 16005 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' 16006 fi 16007 if test aix != "$with_aix_soname"; then 16008 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' 16009 else 16010 # used by -dlpreopen to get the symbols 16011 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16012 fi 16013 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16014 fi 16015 fi 16016 ;; 16017 16018 amigaos*) 16019 case $host_cpu in 16020 powerpc) 16021 # see comment about AmigaOS4 .so support 16022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16023 archive_expsym_cmds='' 16024 ;; 16025 m68k) 16026 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)' 16027 hardcode_libdir_flag_spec='-L$libdir' 16028 hardcode_minus_L=yes 16029 ;; 16030 esac 16031 ;; 16032 16033 bsdi[45]*) 16034 export_dynamic_flag_spec=-rdynamic 16035 ;; 16036 16037 cygwin* | mingw* | pw32* | cegcc*) 16038 # When not using gcc, we currently assume that we are using 16039 # Microsoft Visual C++. 16040 # hardcode_libdir_flag_spec is actually meaningless, as there is 16041 # no search path for DLLs. 16042 case $cc_basename in 16043 cl*) 16044 # Native MSVC 16045 hardcode_libdir_flag_spec=' ' 16046 allow_undefined_flag=unsupported 16047 always_export_symbols=yes 16048 file_list_spec='@' 16049 # Tell ltmain to make .lib files, not .a files. 16050 libext=lib 16051 # Tell ltmain to make .dll files, not .so files. 16052 shrext_cmds=.dll 16053 # FIXME: Setting linknames here is a bad hack. 16054 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16055 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16056 cp "$export_symbols" "$output_objdir/$soname.def"; 16057 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16058 else 16059 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16060 fi~ 16061 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16062 linknames=' 16063 # The linker will not automatically build a static lib if we build a DLL. 16064 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16065 enable_shared_with_static_runtimes=yes 16066 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16067 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16068 # Don't use ranlib 16069 old_postinstall_cmds='chmod 644 $oldlib' 16070 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16071 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16072 case $lt_outputfile in 16073 *.exe|*.EXE) ;; 16074 *) 16075 lt_outputfile=$lt_outputfile.exe 16076 lt_tool_outputfile=$lt_tool_outputfile.exe 16077 ;; 16078 esac~ 16079 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16080 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16081 $RM "$lt_outputfile.manifest"; 16082 fi' 16083 ;; 16084 *) 16085 # Assume MSVC wrapper 16086 hardcode_libdir_flag_spec=' ' 16087 allow_undefined_flag=unsupported 16088 # Tell ltmain to make .lib files, not .a files. 16089 libext=lib 16090 # Tell ltmain to make .dll files, not .so files. 16091 shrext_cmds=.dll 16092 # FIXME: Setting linknames here is a bad hack. 16093 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16094 # The linker will automatically build a .lib file if we build a DLL. 16095 old_archive_from_new_cmds='true' 16096 # FIXME: Should let the user specify the lib program. 16097 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16098 enable_shared_with_static_runtimes=yes 16099 ;; 16100 esac 16101 ;; 16102 16103 darwin* | rhapsody*) 16104 16105 16106 archive_cmds_need_lc=no 16107 hardcode_direct=no 16108 hardcode_automatic=yes 16109 hardcode_shlibpath_var=unsupported 16110 if test yes = "$lt_cv_ld_force_load"; then 16111 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\"`' 16112 16113 else 16114 whole_archive_flag_spec='' 16115 fi 16116 link_all_deplibs=yes 16117 allow_undefined_flag=$_lt_dar_allow_undefined 16118 case $cc_basename in 16119 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16120 *) _lt_dar_can_shared=$GCC ;; 16121 esac 16122 if test yes = "$_lt_dar_can_shared"; then 16123 output_verbose_link_cmd=func_echo_all 16124 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16125 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16126 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" 16127 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" 16128 16129 else 16130 ld_shlibs=no 16131 fi 16132 16133 ;; 16134 16135 dgux*) 16136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16137 hardcode_libdir_flag_spec='-L$libdir' 16138 hardcode_shlibpath_var=no 16139 ;; 16140 16141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16142 # support. Future versions do this automatically, but an explicit c++rt0.o 16143 # does not break anything, and helps significantly (at the cost of a little 16144 # extra space). 16145 freebsd2.2*) 16146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16147 hardcode_libdir_flag_spec='-R$libdir' 16148 hardcode_direct=yes 16149 hardcode_shlibpath_var=no 16150 ;; 16151 16152 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16153 freebsd2.*) 16154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16155 hardcode_direct=yes 16156 hardcode_minus_L=yes 16157 hardcode_shlibpath_var=no 16158 ;; 16159 16160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16161 freebsd* | dragonfly*) 16162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16163 hardcode_libdir_flag_spec='-R$libdir' 16164 hardcode_direct=yes 16165 hardcode_shlibpath_var=no 16166 ;; 16167 16168 hpux9*) 16169 if test yes = "$GCC"; then 16170 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' 16171 else 16172 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' 16173 fi 16174 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16175 hardcode_libdir_separator=: 16176 hardcode_direct=yes 16177 16178 # hardcode_minus_L: Not really in the search PATH, 16179 # but as the default location of the library. 16180 hardcode_minus_L=yes 16181 export_dynamic_flag_spec='$wl-E' 16182 ;; 16183 16184 hpux10*) 16185 if test yes,no = "$GCC,$with_gnu_ld"; then 16186 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16187 else 16188 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16189 fi 16190 if test no = "$with_gnu_ld"; then 16191 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16192 hardcode_libdir_separator=: 16193 hardcode_direct=yes 16194 hardcode_direct_absolute=yes 16195 export_dynamic_flag_spec='$wl-E' 16196 # hardcode_minus_L: Not really in the search PATH, 16197 # but as the default location of the library. 16198 hardcode_minus_L=yes 16199 fi 16200 ;; 16201 16202 hpux11*) 16203 if test yes,no = "$GCC,$with_gnu_ld"; then 16204 case $host_cpu in 16205 hppa*64*) 16206 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16207 ;; 16208 ia64*) 16209 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16210 ;; 16211 *) 16212 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16213 ;; 16214 esac 16215 else 16216 case $host_cpu in 16217 hppa*64*) 16218 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16219 ;; 16220 ia64*) 16221 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16222 ;; 16223 *) 16224 16225 # Older versions of the 11.00 compiler do not understand -b yet 16226 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16228 $as_echo_n "checking if $CC understands -b... " >&6; } 16229 if ${lt_cv_prog_compiler__b+:} false; then : 16230 $as_echo_n "(cached) " >&6 16231 else 16232 lt_cv_prog_compiler__b=no 16233 save_LDFLAGS=$LDFLAGS 16234 LDFLAGS="$LDFLAGS -b" 16235 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16236 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16237 # The linker can only warn and ignore the option if not recognized 16238 # So say no if there are warnings 16239 if test -s conftest.err; then 16240 # Append any errors to the config.log. 16241 cat conftest.err 1>&5 16242 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16244 if diff conftest.exp conftest.er2 >/dev/null; then 16245 lt_cv_prog_compiler__b=yes 16246 fi 16247 else 16248 lt_cv_prog_compiler__b=yes 16249 fi 16250 fi 16251 $RM -r conftest* 16252 LDFLAGS=$save_LDFLAGS 16253 16254 fi 16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16256 $as_echo "$lt_cv_prog_compiler__b" >&6; } 16257 16258 if test yes = "$lt_cv_prog_compiler__b"; then 16259 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16260 else 16261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16262 fi 16263 16264 ;; 16265 esac 16266 fi 16267 if test no = "$with_gnu_ld"; then 16268 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16269 hardcode_libdir_separator=: 16270 16271 case $host_cpu in 16272 hppa*64*|ia64*) 16273 hardcode_direct=no 16274 hardcode_shlibpath_var=no 16275 ;; 16276 *) 16277 hardcode_direct=yes 16278 hardcode_direct_absolute=yes 16279 export_dynamic_flag_spec='$wl-E' 16280 16281 # hardcode_minus_L: Not really in the search PATH, 16282 # but as the default location of the library. 16283 hardcode_minus_L=yes 16284 ;; 16285 esac 16286 fi 16287 ;; 16288 16289 irix5* | irix6* | nonstopux*) 16290 if test yes = "$GCC"; then 16291 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' 16292 # Try to use the -exported_symbol ld option, if it does not 16293 # work, assume that -exports_file does not work either and 16294 # implicitly export all symbols. 16295 # This should be the same for all languages, so no per-tag cache variable. 16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16297 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16298 if ${lt_cv_irix_exported_symbol+:} false; then : 16299 $as_echo_n "(cached) " >&6 16300 else 16301 save_LDFLAGS=$LDFLAGS 16302 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16304 /* end confdefs.h. */ 16305 int foo (void) { return 0; } 16306 _ACEOF 16307 if ac_fn_c_try_link "$LINENO"; then : 16308 lt_cv_irix_exported_symbol=yes 16309 else 16310 lt_cv_irix_exported_symbol=no 16311 fi 16312 rm -f core conftest.err conftest.$ac_objext \ 16313 conftest$ac_exeext conftest.$ac_ext 16314 LDFLAGS=$save_LDFLAGS 16315 fi 16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16317 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 16318 if test yes = "$lt_cv_irix_exported_symbol"; then 16319 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' 16320 fi 16321 else 16322 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' 16323 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' 16324 fi 16325 archive_cmds_need_lc='no' 16326 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16327 hardcode_libdir_separator=: 16328 inherit_rpath=yes 16329 link_all_deplibs=yes 16330 ;; 16331 16332 linux*) 16333 case $cc_basename in 16334 tcc*) 16335 # Fabrice Bellard et al's Tiny C Compiler 16336 ld_shlibs=yes 16337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16338 ;; 16339 esac 16340 ;; 16341 16342 netbsd*) 16343 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16345 else 16346 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16347 fi 16348 hardcode_libdir_flag_spec='-R$libdir' 16349 hardcode_direct=yes 16350 hardcode_shlibpath_var=no 16351 ;; 16352 16353 newsos6) 16354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16355 hardcode_direct=yes 16356 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16357 hardcode_libdir_separator=: 16358 hardcode_shlibpath_var=no 16359 ;; 16360 16361 *nto* | *qnx*) 16362 ;; 16363 16364 openbsd* | bitrig*) 16365 if test -f /usr/libexec/ld.so; then 16366 hardcode_direct=yes 16367 hardcode_shlibpath_var=no 16368 hardcode_direct_absolute=yes 16369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16371 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16372 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16373 export_dynamic_flag_spec='$wl-E' 16374 else 16375 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16376 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16377 fi 16378 else 16379 ld_shlibs=no 16380 fi 16381 ;; 16382 16383 os2*) 16384 hardcode_libdir_flag_spec='-L$libdir' 16385 hardcode_minus_L=yes 16386 allow_undefined_flag=unsupported 16387 shrext_cmds=.dll 16388 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16389 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16390 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16391 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16392 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16393 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16394 emximp -o $lib $output_objdir/$libname.def' 16395 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16396 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16397 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16398 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16399 prefix_cmds="$SED"~ 16400 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16401 prefix_cmds="$prefix_cmds -e 1d"; 16402 fi~ 16403 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16404 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16405 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16406 emximp -o $lib $output_objdir/$libname.def' 16407 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16408 enable_shared_with_static_runtimes=yes 16409 ;; 16410 16411 osf3*) 16412 if test yes = "$GCC"; then 16413 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16414 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' 16415 else 16416 allow_undefined_flag=' -expect_unresolved \*' 16417 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' 16418 fi 16419 archive_cmds_need_lc='no' 16420 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16421 hardcode_libdir_separator=: 16422 ;; 16423 16424 osf4* | osf5*) # as osf3* with the addition of -msym flag 16425 if test yes = "$GCC"; then 16426 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16427 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' 16428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16429 else 16430 allow_undefined_flag=' -expect_unresolved \*' 16431 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' 16432 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~ 16433 $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' 16434 16435 # Both c and cxx compiler support -rpath directly 16436 hardcode_libdir_flag_spec='-rpath $libdir' 16437 fi 16438 archive_cmds_need_lc='no' 16439 hardcode_libdir_separator=: 16440 ;; 16441 16442 solaris*) 16443 no_undefined_flag=' -z defs' 16444 if test yes = "$GCC"; then 16445 wlarc='$wl' 16446 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16447 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16448 $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' 16449 else 16450 case `$CC -V 2>&1` in 16451 *"Compilers 5.0"*) 16452 wlarc='' 16453 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16454 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16455 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16456 ;; 16457 *) 16458 wlarc='$wl' 16459 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16460 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16461 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16462 ;; 16463 esac 16464 fi 16465 hardcode_libdir_flag_spec='-R$libdir' 16466 hardcode_shlibpath_var=no 16467 case $host_os in 16468 solaris2.[0-5] | solaris2.[0-5].*) ;; 16469 *) 16470 # The compiler driver will combine and reorder linker options, 16471 # but understands '-z linker_flag'. GCC discards it without '$wl', 16472 # but is careful enough not to reorder. 16473 # Supported since Solaris 2.6 (maybe 2.5.1?) 16474 if test yes = "$GCC"; then 16475 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16476 else 16477 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16478 fi 16479 ;; 16480 esac 16481 link_all_deplibs=yes 16482 ;; 16483 16484 sunos4*) 16485 if test sequent = "$host_vendor"; then 16486 # Use $CC to link under sequent, because it throws in some extra .o 16487 # files that make .init and .fini sections work. 16488 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16489 else 16490 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16491 fi 16492 hardcode_libdir_flag_spec='-L$libdir' 16493 hardcode_direct=yes 16494 hardcode_minus_L=yes 16495 hardcode_shlibpath_var=no 16496 ;; 16497 16498 sysv4) 16499 case $host_vendor in 16500 sni) 16501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16502 hardcode_direct=yes # is this really true??? 16503 ;; 16504 siemens) 16505 ## LD is ld it makes a PLAMLIB 16506 ## CC just makes a GrossModule. 16507 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16508 reload_cmds='$CC -r -o $output$reload_objs' 16509 hardcode_direct=no 16510 ;; 16511 motorola) 16512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16513 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16514 ;; 16515 esac 16516 runpath_var='LD_RUN_PATH' 16517 hardcode_shlibpath_var=no 16518 ;; 16519 16520 sysv4.3*) 16521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16522 hardcode_shlibpath_var=no 16523 export_dynamic_flag_spec='-Bexport' 16524 ;; 16525 16526 sysv4*MP*) 16527 if test -d /usr/nec; then 16528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16529 hardcode_shlibpath_var=no 16530 runpath_var=LD_RUN_PATH 16531 hardcode_runpath_var=yes 16532 ld_shlibs=yes 16533 fi 16534 ;; 16535 16536 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16537 no_undefined_flag='$wl-z,text' 16538 archive_cmds_need_lc=no 16539 hardcode_shlibpath_var=no 16540 runpath_var='LD_RUN_PATH' 16541 16542 if test yes = "$GCC"; then 16543 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16544 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16545 else 16546 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16547 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16548 fi 16549 ;; 16550 16551 sysv5* | sco3.2v5* | sco5v6*) 16552 # Note: We CANNOT use -z defs as we might desire, because we do not 16553 # link with -lc, and that would cause any symbols used from libc to 16554 # always be unresolved, which means just about no library would 16555 # ever link correctly. If we're not using GNU ld we use -z text 16556 # though, which does catch some bad symbols but isn't as heavy-handed 16557 # as -z defs. 16558 no_undefined_flag='$wl-z,text' 16559 allow_undefined_flag='$wl-z,nodefs' 16560 archive_cmds_need_lc=no 16561 hardcode_shlibpath_var=no 16562 hardcode_libdir_flag_spec='$wl-R,$libdir' 16563 hardcode_libdir_separator=':' 16564 link_all_deplibs=yes 16565 export_dynamic_flag_spec='$wl-Bexport' 16566 runpath_var='LD_RUN_PATH' 16567 16568 if test yes = "$GCC"; then 16569 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16570 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16571 else 16572 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16573 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16574 fi 16575 ;; 16576 16577 uts4*) 16578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16579 hardcode_libdir_flag_spec='-L$libdir' 16580 hardcode_shlibpath_var=no 16581 ;; 16582 16583 *) 16584 ld_shlibs=no 16585 ;; 16586 esac 16587 16588 if test sni = "$host_vendor"; then 16589 case $host in 16590 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16591 export_dynamic_flag_spec='$wl-Blargedynsym' 16592 ;; 16593 esac 16594 fi 16595 fi 16596 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16598 $as_echo "$ld_shlibs" >&6; } 16599 test no = "$ld_shlibs" && can_build_shared=no 16600 16601 with_gnu_ld=$with_gnu_ld 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 # 16618 # Do we need to explicitly link libc? 16619 # 16620 case "x$archive_cmds_need_lc" in 16621 x|xyes) 16622 # Assume -lc should be added 16623 archive_cmds_need_lc=yes 16624 16625 if test yes,yes = "$GCC,$enable_shared"; then 16626 case $archive_cmds in 16627 *'~'*) 16628 # FIXME: we may have to deal with multi-command sequences. 16629 ;; 16630 '$CC '*) 16631 # Test whether the compiler implicitly links with -lc since on some 16632 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16633 # to ld, don't add -lc before -lgcc. 16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16635 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16636 if ${lt_cv_archive_cmds_need_lc+:} false; then : 16637 $as_echo_n "(cached) " >&6 16638 else 16639 $RM conftest* 16640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16641 16642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16643 (eval $ac_compile) 2>&5 16644 ac_status=$? 16645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16646 test $ac_status = 0; } 2>conftest.err; then 16647 soname=conftest 16648 lib=conftest 16649 libobjs=conftest.$ac_objext 16650 deplibs= 16651 wl=$lt_prog_compiler_wl 16652 pic_flag=$lt_prog_compiler_pic 16653 compiler_flags=-v 16654 linker_flags=-v 16655 verstring= 16656 output_objdir=. 16657 libname=conftest 16658 lt_save_allow_undefined_flag=$allow_undefined_flag 16659 allow_undefined_flag= 16660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16661 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16662 ac_status=$? 16663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16664 test $ac_status = 0; } 16665 then 16666 lt_cv_archive_cmds_need_lc=no 16667 else 16668 lt_cv_archive_cmds_need_lc=yes 16669 fi 16670 allow_undefined_flag=$lt_save_allow_undefined_flag 16671 else 16672 cat conftest.err 1>&5 16673 fi 16674 $RM conftest* 16675 16676 fi 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16678 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16679 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16680 ;; 16681 esac 16682 fi 16683 ;; 16684 esac 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16838 $as_echo_n "checking dynamic linker characteristics... " >&6; } 16839 16840 if test yes = "$GCC"; then 16841 case $host_os in 16842 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16843 *) lt_awk_arg='/^libraries:/' ;; 16844 esac 16845 case $host_os in 16846 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16847 *) lt_sed_strip_eq='s|=/|/|g' ;; 16848 esac 16849 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16850 case $lt_search_path_spec in 16851 *\;*) 16852 # if the path contains ";" then we assume it to be the separator 16853 # otherwise default to the standard path separator (i.e. ":") - it is 16854 # assumed that no part of a normal pathname contains ";" but that should 16855 # okay in the real world where ";" in dirpaths is itself problematic. 16856 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16857 ;; 16858 *) 16859 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16860 ;; 16861 esac 16862 # Ok, now we have the path, separated by spaces, we can step through it 16863 # and add multilib dir if necessary... 16864 lt_tmp_lt_search_path_spec= 16865 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16866 # ...but if some path component already ends with the multilib dir we assume 16867 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16868 case "$lt_multi_os_dir; $lt_search_path_spec " in 16869 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16870 lt_multi_os_dir= 16871 ;; 16872 esac 16873 for lt_sys_path in $lt_search_path_spec; do 16874 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16875 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16876 elif test -n "$lt_multi_os_dir"; then 16877 test -d "$lt_sys_path" && \ 16878 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16879 fi 16880 done 16881 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16882 BEGIN {RS = " "; FS = "/|\n";} { 16883 lt_foo = ""; 16884 lt_count = 0; 16885 for (lt_i = NF; lt_i > 0; lt_i--) { 16886 if ($lt_i != "" && $lt_i != ".") { 16887 if ($lt_i == "..") { 16888 lt_count++; 16889 } else { 16890 if (lt_count == 0) { 16891 lt_foo = "/" $lt_i lt_foo; 16892 } else { 16893 lt_count--; 16894 } 16895 } 16896 } 16897 } 16898 if (lt_foo != "") { lt_freq[lt_foo]++; } 16899 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16900 }'` 16901 # AWK program above erroneously prepends '/' to C:/dos/paths 16902 # for these hosts. 16903 case $host_os in 16904 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16905 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16906 esac 16907 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16908 else 16909 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16910 fi 16911 library_names_spec= 16912 libname_spec='lib$name' 16913 soname_spec= 16914 shrext_cmds=.so 16915 postinstall_cmds= 16916 postuninstall_cmds= 16917 finish_cmds= 16918 finish_eval= 16919 shlibpath_var= 16920 shlibpath_overrides_runpath=unknown 16921 version_type=none 16922 dynamic_linker="$host_os ld.so" 16923 sys_lib_dlsearch_path_spec="/lib /usr/lib" 16924 need_lib_prefix=unknown 16925 hardcode_into_libs=no 16926 16927 # when you set need_version to no, make sure it does not cause -set_version 16928 # flags to be left without arguments 16929 need_version=unknown 16930 16931 16932 16933 case $host_os in 16934 aix3*) 16935 version_type=linux # correct to gnu/linux during the next big refactor 16936 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16937 shlibpath_var=LIBPATH 16938 16939 # AIX 3 has no versioning support, so we append a major version to the name. 16940 soname_spec='$libname$release$shared_ext$major' 16941 ;; 16942 16943 aix[4-9]*) 16944 version_type=linux # correct to gnu/linux during the next big refactor 16945 need_lib_prefix=no 16946 need_version=no 16947 hardcode_into_libs=yes 16948 if test ia64 = "$host_cpu"; then 16949 # AIX 5 supports IA64 16950 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16951 shlibpath_var=LD_LIBRARY_PATH 16952 else 16953 # With GCC up to 2.95.x, collect2 would create an import file 16954 # for dependence libraries. The import file would start with 16955 # the line '#! .'. This would cause the generated library to 16956 # depend on '.', always an invalid library. This was fixed in 16957 # development snapshots of GCC prior to 3.0. 16958 case $host_os in 16959 aix4 | aix4.[01] | aix4.[01].*) 16960 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16961 echo ' yes ' 16962 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16963 : 16964 else 16965 can_build_shared=no 16966 fi 16967 ;; 16968 esac 16969 # Using Import Files as archive members, it is possible to support 16970 # filename-based versioning of shared library archives on AIX. While 16971 # this would work for both with and without runtime linking, it will 16972 # prevent static linking of such archives. So we do filename-based 16973 # shared library versioning with .so extension only, which is used 16974 # when both runtime linking and shared linking is enabled. 16975 # Unfortunately, runtime linking may impact performance, so we do 16976 # not want this to be the default eventually. Also, we use the 16977 # versioned .so libs for executables only if there is the -brtl 16978 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16979 # To allow for filename-based versioning support, we need to create 16980 # libNAME.so.V as an archive file, containing: 16981 # *) an Import File, referring to the versioned filename of the 16982 # archive as well as the shared archive member, telling the 16983 # bitwidth (32 or 64) of that shared object, and providing the 16984 # list of exported symbols of that shared object, eventually 16985 # decorated with the 'weak' keyword 16986 # *) the shared object with the F_LOADONLY flag set, to really avoid 16987 # it being seen by the linker. 16988 # At run time we better use the real file rather than another symlink, 16989 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16990 16991 case $with_aix_soname,$aix_use_runtimelinking in 16992 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16993 # soname into executable. Probably we can add versioning support to 16994 # collect2, so additional links can be useful in future. 16995 aix,yes) # traditional libtool 16996 dynamic_linker='AIX unversionable lib.so' 16997 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16998 # instead of lib<name>.a to let people know that these are not 16999 # typical AIX shared libraries. 17000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17001 ;; 17002 aix,no) # traditional AIX only 17003 dynamic_linker='AIX lib.a(lib.so.V)' 17004 # We preserve .a as extension for shared libraries through AIX4.2 17005 # and later when we are not doing run time linking. 17006 library_names_spec='$libname$release.a $libname.a' 17007 soname_spec='$libname$release$shared_ext$major' 17008 ;; 17009 svr4,*) # full svr4 only 17010 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17011 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17012 # We do not specify a path in Import Files, so LIBPATH fires. 17013 shlibpath_overrides_runpath=yes 17014 ;; 17015 *,yes) # both, prefer svr4 17016 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17017 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17018 # unpreferred sharedlib libNAME.a needs extra handling 17019 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"' 17020 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"' 17021 # We do not specify a path in Import Files, so LIBPATH fires. 17022 shlibpath_overrides_runpath=yes 17023 ;; 17024 *,no) # both, prefer aix 17025 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17026 library_names_spec='$libname$release.a $libname.a' 17027 soname_spec='$libname$release$shared_ext$major' 17028 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17029 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)' 17030 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"' 17031 ;; 17032 esac 17033 shlibpath_var=LIBPATH 17034 fi 17035 ;; 17036 17037 amigaos*) 17038 case $host_cpu in 17039 powerpc) 17040 # Since July 2007 AmigaOS4 officially supports .so libraries. 17041 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17043 ;; 17044 m68k) 17045 library_names_spec='$libname.ixlibrary $libname.a' 17046 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17047 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' 17048 ;; 17049 esac 17050 ;; 17051 17052 beos*) 17053 library_names_spec='$libname$shared_ext' 17054 dynamic_linker="$host_os ld.so" 17055 shlibpath_var=LIBRARY_PATH 17056 ;; 17057 17058 bsdi[45]*) 17059 version_type=linux # correct to gnu/linux during the next big refactor 17060 need_version=no 17061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17062 soname_spec='$libname$release$shared_ext$major' 17063 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17064 shlibpath_var=LD_LIBRARY_PATH 17065 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17066 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17067 # the default ld.so.conf also contains /usr/contrib/lib and 17068 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17069 # libtool to hard-code these into programs 17070 ;; 17071 17072 cygwin* | mingw* | pw32* | cegcc*) 17073 version_type=windows 17074 shrext_cmds=.dll 17075 need_version=no 17076 need_lib_prefix=no 17077 17078 case $GCC,$cc_basename in 17079 yes,*) 17080 # gcc 17081 library_names_spec='$libname.dll.a' 17082 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17083 postinstall_cmds='base_file=`basename \$file`~ 17084 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17085 dldir=$destdir/`dirname \$dlpath`~ 17086 test -d \$dldir || mkdir -p \$dldir~ 17087 $install_prog $dir/$dlname \$dldir/$dlname~ 17088 chmod a+x \$dldir/$dlname~ 17089 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17090 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17091 fi' 17092 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17093 dlpath=$dir/\$dldll~ 17094 $RM \$dlpath' 17095 shlibpath_overrides_runpath=yes 17096 17097 case $host_os in 17098 cygwin*) 17099 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17100 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17101 17102 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17103 ;; 17104 mingw* | cegcc*) 17105 # MinGW DLLs use traditional 'lib' prefix 17106 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17107 ;; 17108 pw32*) 17109 # pw32 DLLs use 'pw' prefix rather than 'lib' 17110 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17111 ;; 17112 esac 17113 dynamic_linker='Win32 ld.exe' 17114 ;; 17115 17116 *,cl*) 17117 # Native MSVC 17118 libname_spec='$name' 17119 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17120 library_names_spec='$libname.dll.lib' 17121 17122 case $build_os in 17123 mingw*) 17124 sys_lib_search_path_spec= 17125 lt_save_ifs=$IFS 17126 IFS=';' 17127 for lt_path in $LIB 17128 do 17129 IFS=$lt_save_ifs 17130 # Let DOS variable expansion print the short 8.3 style file name. 17131 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17132 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17133 done 17134 IFS=$lt_save_ifs 17135 # Convert to MSYS style. 17136 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17137 ;; 17138 cygwin*) 17139 # Convert to unix form, then to dos form, then back to unix form 17140 # but this time dos style (no spaces!) so that the unix form looks 17141 # like /cygdrive/c/PROGRA~1:/cygdr... 17142 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17143 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17144 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17145 ;; 17146 *) 17147 sys_lib_search_path_spec=$LIB 17148 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17149 # It is most probably a Windows format PATH. 17150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17151 else 17152 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17153 fi 17154 # FIXME: find the short name or the path components, as spaces are 17155 # common. (e.g. "Program Files" -> "PROGRA~1") 17156 ;; 17157 esac 17158 17159 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17160 postinstall_cmds='base_file=`basename \$file`~ 17161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17162 dldir=$destdir/`dirname \$dlpath`~ 17163 test -d \$dldir || mkdir -p \$dldir~ 17164 $install_prog $dir/$dlname \$dldir/$dlname' 17165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17166 dlpath=$dir/\$dldll~ 17167 $RM \$dlpath' 17168 shlibpath_overrides_runpath=yes 17169 dynamic_linker='Win32 link.exe' 17170 ;; 17171 17172 *) 17173 # Assume MSVC wrapper 17174 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17175 dynamic_linker='Win32 ld.exe' 17176 ;; 17177 esac 17178 # FIXME: first we should search . and the directory the executable is in 17179 shlibpath_var=PATH 17180 ;; 17181 17182 darwin* | rhapsody*) 17183 dynamic_linker="$host_os dyld" 17184 version_type=darwin 17185 need_lib_prefix=no 17186 need_version=no 17187 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17188 soname_spec='$libname$release$major$shared_ext' 17189 shlibpath_overrides_runpath=yes 17190 shlibpath_var=DYLD_LIBRARY_PATH 17191 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17192 17193 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17194 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17195 ;; 17196 17197 dgux*) 17198 version_type=linux # correct to gnu/linux during the next big refactor 17199 need_lib_prefix=no 17200 need_version=no 17201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17202 soname_spec='$libname$release$shared_ext$major' 17203 shlibpath_var=LD_LIBRARY_PATH 17204 ;; 17205 17206 freebsd* | dragonfly*) 17207 # DragonFly does not have aout. When/if they implement a new 17208 # versioning mechanism, adjust this. 17209 if test -x /usr/bin/objformat; then 17210 objformat=`/usr/bin/objformat` 17211 else 17212 case $host_os in 17213 freebsd[23].*) objformat=aout ;; 17214 *) objformat=elf ;; 17215 esac 17216 fi 17217 version_type=freebsd-$objformat 17218 case $version_type in 17219 freebsd-elf*) 17220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17221 soname_spec='$libname$release$shared_ext$major' 17222 need_version=no 17223 need_lib_prefix=no 17224 ;; 17225 freebsd-*) 17226 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17227 need_version=yes 17228 ;; 17229 esac 17230 shlibpath_var=LD_LIBRARY_PATH 17231 case $host_os in 17232 freebsd2.*) 17233 shlibpath_overrides_runpath=yes 17234 ;; 17235 freebsd3.[01]* | freebsdelf3.[01]*) 17236 shlibpath_overrides_runpath=yes 17237 hardcode_into_libs=yes 17238 ;; 17239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17241 shlibpath_overrides_runpath=no 17242 hardcode_into_libs=yes 17243 ;; 17244 *) # from 4.6 on, and DragonFly 17245 shlibpath_overrides_runpath=yes 17246 hardcode_into_libs=yes 17247 ;; 17248 esac 17249 ;; 17250 17251 haiku*) 17252 version_type=linux # correct to gnu/linux during the next big refactor 17253 need_lib_prefix=no 17254 need_version=no 17255 dynamic_linker="$host_os runtime_loader" 17256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17257 soname_spec='$libname$release$shared_ext$major' 17258 shlibpath_var=LIBRARY_PATH 17259 shlibpath_overrides_runpath=no 17260 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17261 hardcode_into_libs=yes 17262 ;; 17263 17264 hpux9* | hpux10* | hpux11*) 17265 # Give a soname corresponding to the major version so that dld.sl refuses to 17266 # link against other versions. 17267 version_type=sunos 17268 need_lib_prefix=no 17269 need_version=no 17270 case $host_cpu in 17271 ia64*) 17272 shrext_cmds='.so' 17273 hardcode_into_libs=yes 17274 dynamic_linker="$host_os dld.so" 17275 shlibpath_var=LD_LIBRARY_PATH 17276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17278 soname_spec='$libname$release$shared_ext$major' 17279 if test 32 = "$HPUX_IA64_MODE"; then 17280 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17281 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17282 else 17283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17284 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17285 fi 17286 ;; 17287 hppa*64*) 17288 shrext_cmds='.sl' 17289 hardcode_into_libs=yes 17290 dynamic_linker="$host_os dld.sl" 17291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17294 soname_spec='$libname$release$shared_ext$major' 17295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17297 ;; 17298 *) 17299 shrext_cmds='.sl' 17300 dynamic_linker="$host_os dld.sl" 17301 shlibpath_var=SHLIB_PATH 17302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17304 soname_spec='$libname$release$shared_ext$major' 17305 ;; 17306 esac 17307 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17308 postinstall_cmds='chmod 555 $lib' 17309 # or fails outright, so override atomically: 17310 install_override_mode=555 17311 ;; 17312 17313 interix[3-9]*) 17314 version_type=linux # correct to gnu/linux during the next big refactor 17315 need_lib_prefix=no 17316 need_version=no 17317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17318 soname_spec='$libname$release$shared_ext$major' 17319 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17320 shlibpath_var=LD_LIBRARY_PATH 17321 shlibpath_overrides_runpath=no 17322 hardcode_into_libs=yes 17323 ;; 17324 17325 irix5* | irix6* | nonstopux*) 17326 case $host_os in 17327 nonstopux*) version_type=nonstopux ;; 17328 *) 17329 if test yes = "$lt_cv_prog_gnu_ld"; then 17330 version_type=linux # correct to gnu/linux during the next big refactor 17331 else 17332 version_type=irix 17333 fi ;; 17334 esac 17335 need_lib_prefix=no 17336 need_version=no 17337 soname_spec='$libname$release$shared_ext$major' 17338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17339 case $host_os in 17340 irix5* | nonstopux*) 17341 libsuff= shlibsuff= 17342 ;; 17343 *) 17344 case $LD in # libtool.m4 will add one of these switches to LD 17345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17346 libsuff= shlibsuff= libmagic=32-bit;; 17347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17348 libsuff=32 shlibsuff=N32 libmagic=N32;; 17349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17350 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17351 *) libsuff= shlibsuff= libmagic=never-match;; 17352 esac 17353 ;; 17354 esac 17355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17356 shlibpath_overrides_runpath=no 17357 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17358 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17359 hardcode_into_libs=yes 17360 ;; 17361 17362 # No shared lib support for Linux oldld, aout, or coff. 17363 linux*oldld* | linux*aout* | linux*coff*) 17364 dynamic_linker=no 17365 ;; 17366 17367 linux*android*) 17368 version_type=none # Android doesn't support versioned libraries. 17369 need_lib_prefix=no 17370 need_version=no 17371 library_names_spec='$libname$release$shared_ext' 17372 soname_spec='$libname$release$shared_ext' 17373 finish_cmds= 17374 shlibpath_var=LD_LIBRARY_PATH 17375 shlibpath_overrides_runpath=yes 17376 17377 # This implies no fast_install, which is unacceptable. 17378 # Some rework will be needed to allow for fast_install 17379 # before this can be enabled. 17380 hardcode_into_libs=yes 17381 17382 dynamic_linker='Android linker' 17383 # Don't embed -rpath directories since the linker doesn't support them. 17384 hardcode_libdir_flag_spec='-L$libdir' 17385 ;; 17386 17387 # This must be glibc/ELF. 17388 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17389 version_type=linux # correct to gnu/linux during the next big refactor 17390 need_lib_prefix=no 17391 need_version=no 17392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17393 soname_spec='$libname$release$shared_ext$major' 17394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17395 shlibpath_var=LD_LIBRARY_PATH 17396 shlibpath_overrides_runpath=no 17397 17398 # Some binutils ld are patched to set DT_RUNPATH 17399 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17400 $as_echo_n "(cached) " >&6 17401 else 17402 lt_cv_shlibpath_overrides_runpath=no 17403 save_LDFLAGS=$LDFLAGS 17404 save_libdir=$libdir 17405 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17406 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17408 /* end confdefs.h. */ 17409 17410 int 17411 main () 17412 { 17413 17414 ; 17415 return 0; 17416 } 17417 _ACEOF 17418 if ac_fn_c_try_link "$LINENO"; then : 17419 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17420 lt_cv_shlibpath_overrides_runpath=yes 17421 fi 17422 fi 17423 rm -f core conftest.err conftest.$ac_objext \ 17424 conftest$ac_exeext conftest.$ac_ext 17425 LDFLAGS=$save_LDFLAGS 17426 libdir=$save_libdir 17427 17428 fi 17429 17430 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17431 17432 # This implies no fast_install, which is unacceptable. 17433 # Some rework will be needed to allow for fast_install 17434 # before this can be enabled. 17435 hardcode_into_libs=yes 17436 17437 # Add ABI-specific directories to the system library path. 17438 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 17439 17440 # Ideally, we could use ldconfig to report *all* directores which are 17441 # searched for libraries, however this is still not possible. Aside from not 17442 # being certain /sbin/ldconfig is available, command 17443 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17444 # even though it is searched at run-time. Try to do the best guess by 17445 # appending ld.so.conf contents (and includes) to the search path. 17446 if test -f /etc/ld.so.conf; then 17447 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' ' '` 17448 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 17449 fi 17450 17451 # We used to test for /lib/ld.so.1 and disable shared libraries on 17452 # powerpc, because MkLinux only supported shared libraries with the 17453 # GNU dynamic linker. Since this was broken with cross compilers, 17454 # most powerpc-linux boxes support dynamic linking these days and 17455 # people can always --disable-shared, the test was removed, and we 17456 # assume the GNU/Linux dynamic linker is in use. 17457 dynamic_linker='GNU/Linux ld.so' 17458 ;; 17459 17460 netbsd*) 17461 version_type=sunos 17462 need_lib_prefix=no 17463 need_version=no 17464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17467 dynamic_linker='NetBSD (a.out) ld.so' 17468 else 17469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17470 soname_spec='$libname$release$shared_ext$major' 17471 dynamic_linker='NetBSD ld.elf_so' 17472 fi 17473 shlibpath_var=LD_LIBRARY_PATH 17474 shlibpath_overrides_runpath=yes 17475 hardcode_into_libs=yes 17476 ;; 17477 17478 newsos6) 17479 version_type=linux # correct to gnu/linux during the next big refactor 17480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17481 shlibpath_var=LD_LIBRARY_PATH 17482 shlibpath_overrides_runpath=yes 17483 ;; 17484 17485 *nto* | *qnx*) 17486 version_type=qnx 17487 need_lib_prefix=no 17488 need_version=no 17489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17490 soname_spec='$libname$release$shared_ext$major' 17491 shlibpath_var=LD_LIBRARY_PATH 17492 shlibpath_overrides_runpath=no 17493 hardcode_into_libs=yes 17494 dynamic_linker='ldqnx.so' 17495 ;; 17496 17497 openbsd* | bitrig*) 17498 version_type=sunos 17499 sys_lib_dlsearch_path_spec=/usr/lib 17500 need_lib_prefix=no 17501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17502 need_version=no 17503 else 17504 need_version=yes 17505 fi 17506 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17508 shlibpath_var=LD_LIBRARY_PATH 17509 shlibpath_overrides_runpath=yes 17510 ;; 17511 17512 os2*) 17513 libname_spec='$name' 17514 version_type=windows 17515 shrext_cmds=.dll 17516 need_version=no 17517 need_lib_prefix=no 17518 # OS/2 can only load a DLL with a base name of 8 characters or less. 17519 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17520 v=$($ECHO $release$versuffix | tr -d .-); 17521 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17522 $ECHO $n$v`$shared_ext' 17523 library_names_spec='${libname}_dll.$libext' 17524 dynamic_linker='OS/2 ld.exe' 17525 shlibpath_var=BEGINLIBPATH 17526 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17528 postinstall_cmds='base_file=`basename \$file`~ 17529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17530 dldir=$destdir/`dirname \$dlpath`~ 17531 test -d \$dldir || mkdir -p \$dldir~ 17532 $install_prog $dir/$dlname \$dldir/$dlname~ 17533 chmod a+x \$dldir/$dlname~ 17534 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17535 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17536 fi' 17537 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17538 dlpath=$dir/\$dldll~ 17539 $RM \$dlpath' 17540 ;; 17541 17542 osf3* | osf4* | osf5*) 17543 version_type=osf 17544 need_lib_prefix=no 17545 need_version=no 17546 soname_spec='$libname$release$shared_ext$major' 17547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17548 shlibpath_var=LD_LIBRARY_PATH 17549 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17551 ;; 17552 17553 rdos*) 17554 dynamic_linker=no 17555 ;; 17556 17557 solaris*) 17558 version_type=linux # correct to gnu/linux during the next big refactor 17559 need_lib_prefix=no 17560 need_version=no 17561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17562 soname_spec='$libname$release$shared_ext$major' 17563 shlibpath_var=LD_LIBRARY_PATH 17564 shlibpath_overrides_runpath=yes 17565 hardcode_into_libs=yes 17566 # ldd complains unless libraries are executable 17567 postinstall_cmds='chmod +x $lib' 17568 ;; 17569 17570 sunos4*) 17571 version_type=sunos 17572 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17573 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17574 shlibpath_var=LD_LIBRARY_PATH 17575 shlibpath_overrides_runpath=yes 17576 if test yes = "$with_gnu_ld"; then 17577 need_lib_prefix=no 17578 fi 17579 need_version=yes 17580 ;; 17581 17582 sysv4 | sysv4.3*) 17583 version_type=linux # correct to gnu/linux during the next big refactor 17584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17585 soname_spec='$libname$release$shared_ext$major' 17586 shlibpath_var=LD_LIBRARY_PATH 17587 case $host_vendor in 17588 sni) 17589 shlibpath_overrides_runpath=no 17590 need_lib_prefix=no 17591 runpath_var=LD_RUN_PATH 17592 ;; 17593 siemens) 17594 need_lib_prefix=no 17595 ;; 17596 motorola) 17597 need_lib_prefix=no 17598 need_version=no 17599 shlibpath_overrides_runpath=no 17600 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17601 ;; 17602 esac 17603 ;; 17604 17605 sysv4*MP*) 17606 if test -d /usr/nec; then 17607 version_type=linux # correct to gnu/linux during the next big refactor 17608 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17609 soname_spec='$libname$shared_ext.$major' 17610 shlibpath_var=LD_LIBRARY_PATH 17611 fi 17612 ;; 17613 17614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17615 version_type=sco 17616 need_lib_prefix=no 17617 need_version=no 17618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17619 soname_spec='$libname$release$shared_ext$major' 17620 shlibpath_var=LD_LIBRARY_PATH 17621 shlibpath_overrides_runpath=yes 17622 hardcode_into_libs=yes 17623 if test yes = "$with_gnu_ld"; then 17624 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17625 else 17626 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17627 case $host_os in 17628 sco3.2v5*) 17629 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17630 ;; 17631 esac 17632 fi 17633 sys_lib_dlsearch_path_spec='/usr/lib' 17634 ;; 17635 17636 tpf*) 17637 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17638 version_type=linux # correct to gnu/linux during the next big refactor 17639 need_lib_prefix=no 17640 need_version=no 17641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17642 shlibpath_var=LD_LIBRARY_PATH 17643 shlibpath_overrides_runpath=no 17644 hardcode_into_libs=yes 17645 ;; 17646 17647 uts4*) 17648 version_type=linux # correct to gnu/linux during the next big refactor 17649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17650 soname_spec='$libname$release$shared_ext$major' 17651 shlibpath_var=LD_LIBRARY_PATH 17652 ;; 17653 17654 *) 17655 dynamic_linker=no 17656 ;; 17657 esac 17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17659 $as_echo "$dynamic_linker" >&6; } 17660 test no = "$dynamic_linker" && can_build_shared=no 17661 17662 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17663 if test yes = "$GCC"; then 17664 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17665 fi 17666 17667 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17668 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17669 fi 17670 17671 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17672 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17673 fi 17674 17675 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17676 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17677 17678 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17679 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17680 17681 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17682 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17781 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17782 hardcode_action= 17783 if test -n "$hardcode_libdir_flag_spec" || 17784 test -n "$runpath_var" || 17785 test yes = "$hardcode_automatic"; then 17786 17787 # We can hardcode non-existent directories. 17788 if test no != "$hardcode_direct" && 17789 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17790 # have to relink, otherwise we might link with an installed library 17791 # when we should be linking with a yet-to-be-installed one 17792 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17793 test no != "$hardcode_minus_L"; then 17794 # Linking always hardcodes the temporary library directory. 17795 hardcode_action=relink 17796 else 17797 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17798 hardcode_action=immediate 17799 fi 17800 else 17801 # We cannot hardcode anything, or else we can only hardcode existing 17802 # directories. 17803 hardcode_action=unsupported 17804 fi 17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17806 $as_echo "$hardcode_action" >&6; } 17807 17808 if test relink = "$hardcode_action" || 17809 test yes = "$inherit_rpath"; then 17810 # Fast installation is not supported 17811 enable_fast_install=no 17812 elif test yes = "$shlibpath_overrides_runpath" || 17813 test no = "$enable_shared"; then 17814 # Fast installation is not necessary 17815 enable_fast_install=needless 17816 fi 17817 17818 17819 17820 17821 17822 17823 if test yes != "$enable_dlopen"; then 17824 enable_dlopen=unknown 17825 enable_dlopen_self=unknown 17826 enable_dlopen_self_static=unknown 17827 else 17828 lt_cv_dlopen=no 17829 lt_cv_dlopen_libs= 17830 17831 case $host_os in 17832 beos*) 17833 lt_cv_dlopen=load_add_on 17834 lt_cv_dlopen_libs= 17835 lt_cv_dlopen_self=yes 17836 ;; 17837 17838 mingw* | pw32* | cegcc*) 17839 lt_cv_dlopen=LoadLibrary 17840 lt_cv_dlopen_libs= 17841 ;; 17842 17843 cygwin*) 17844 lt_cv_dlopen=dlopen 17845 lt_cv_dlopen_libs= 17846 ;; 17847 17848 darwin*) 17849 # if libdl is installed we need to link against it 17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17851 $as_echo_n "checking for dlopen in -ldl... " >&6; } 17852 if ${ac_cv_lib_dl_dlopen+:} false; then : 17853 $as_echo_n "(cached) " >&6 17854 else 17855 ac_check_lib_save_LIBS=$LIBS 17856 LIBS="-ldl $LIBS" 17857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17858 /* end confdefs.h. */ 17859 17860 /* Override any GCC internal prototype to avoid an error. 17861 Use char because int might match the return type of a GCC 17862 builtin and then its argument prototype would still apply. */ 17863 #ifdef __cplusplus 17864 extern "C" 17865 #endif 17866 char dlopen (); 17867 int 17868 main () 17869 { 17870 return dlopen (); 17871 ; 17872 return 0; 17873 } 17874 _ACEOF 17875 if ac_fn_c_try_link "$LINENO"; then : 17876 ac_cv_lib_dl_dlopen=yes 17877 else 17878 ac_cv_lib_dl_dlopen=no 17879 fi 17880 rm -f core conftest.err conftest.$ac_objext \ 17881 conftest$ac_exeext conftest.$ac_ext 17882 LIBS=$ac_check_lib_save_LIBS 17883 fi 17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17885 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17886 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17887 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17888 else 17889 17890 lt_cv_dlopen=dyld 17891 lt_cv_dlopen_libs= 17892 lt_cv_dlopen_self=yes 17893 17894 fi 17895 17896 ;; 17897 17898 tpf*) 17899 # Don't try to run any link tests for TPF. We know it's impossible 17900 # because TPF is a cross-compiler, and we know how we open DSOs. 17901 lt_cv_dlopen=dlopen 17902 lt_cv_dlopen_libs= 17903 lt_cv_dlopen_self=no 17904 ;; 17905 17906 *) 17907 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17908 if test "x$ac_cv_func_shl_load" = xyes; then : 17909 lt_cv_dlopen=shl_load 17910 else 17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17912 $as_echo_n "checking for shl_load in -ldld... " >&6; } 17913 if ${ac_cv_lib_dld_shl_load+:} false; then : 17914 $as_echo_n "(cached) " >&6 17915 else 17916 ac_check_lib_save_LIBS=$LIBS 17917 LIBS="-ldld $LIBS" 17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17919 /* end confdefs.h. */ 17920 17921 /* Override any GCC internal prototype to avoid an error. 17922 Use char because int might match the return type of a GCC 17923 builtin and then its argument prototype would still apply. */ 17924 #ifdef __cplusplus 17925 extern "C" 17926 #endif 17927 char shl_load (); 17928 int 17929 main () 17930 { 17931 return shl_load (); 17932 ; 17933 return 0; 17934 } 17935 _ACEOF 17936 if ac_fn_c_try_link "$LINENO"; then : 17937 ac_cv_lib_dld_shl_load=yes 17938 else 17939 ac_cv_lib_dld_shl_load=no 17940 fi 17941 rm -f core conftest.err conftest.$ac_objext \ 17942 conftest$ac_exeext conftest.$ac_ext 17943 LIBS=$ac_check_lib_save_LIBS 17944 fi 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17946 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17947 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17948 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17949 else 17950 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17951 if test "x$ac_cv_func_dlopen" = xyes; then : 17952 lt_cv_dlopen=dlopen 17953 else 17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17955 $as_echo_n "checking for dlopen in -ldl... " >&6; } 17956 if ${ac_cv_lib_dl_dlopen+:} false; then : 17957 $as_echo_n "(cached) " >&6 17958 else 17959 ac_check_lib_save_LIBS=$LIBS 17960 LIBS="-ldl $LIBS" 17961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17962 /* end confdefs.h. */ 17963 17964 /* Override any GCC internal prototype to avoid an error. 17965 Use char because int might match the return type of a GCC 17966 builtin and then its argument prototype would still apply. */ 17967 #ifdef __cplusplus 17968 extern "C" 17969 #endif 17970 char dlopen (); 17971 int 17972 main () 17973 { 17974 return dlopen (); 17975 ; 17976 return 0; 17977 } 17978 _ACEOF 17979 if ac_fn_c_try_link "$LINENO"; then : 17980 ac_cv_lib_dl_dlopen=yes 17981 else 17982 ac_cv_lib_dl_dlopen=no 17983 fi 17984 rm -f core conftest.err conftest.$ac_objext \ 17985 conftest$ac_exeext conftest.$ac_ext 17986 LIBS=$ac_check_lib_save_LIBS 17987 fi 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17989 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17990 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17991 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17992 else 17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17994 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 17995 if ${ac_cv_lib_svld_dlopen+:} false; then : 17996 $as_echo_n "(cached) " >&6 17997 else 17998 ac_check_lib_save_LIBS=$LIBS 17999 LIBS="-lsvld $LIBS" 18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18001 /* end confdefs.h. */ 18002 18003 /* Override any GCC internal prototype to avoid an error. 18004 Use char because int might match the return type of a GCC 18005 builtin and then its argument prototype would still apply. */ 18006 #ifdef __cplusplus 18007 extern "C" 18008 #endif 18009 char dlopen (); 18010 int 18011 main () 18012 { 18013 return dlopen (); 18014 ; 18015 return 0; 18016 } 18017 _ACEOF 18018 if ac_fn_c_try_link "$LINENO"; then : 18019 ac_cv_lib_svld_dlopen=yes 18020 else 18021 ac_cv_lib_svld_dlopen=no 18022 fi 18023 rm -f core conftest.err conftest.$ac_objext \ 18024 conftest$ac_exeext conftest.$ac_ext 18025 LIBS=$ac_check_lib_save_LIBS 18026 fi 18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18028 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18029 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18030 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18031 else 18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18033 $as_echo_n "checking for dld_link in -ldld... " >&6; } 18034 if ${ac_cv_lib_dld_dld_link+:} false; then : 18035 $as_echo_n "(cached) " >&6 18036 else 18037 ac_check_lib_save_LIBS=$LIBS 18038 LIBS="-ldld $LIBS" 18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18040 /* end confdefs.h. */ 18041 18042 /* Override any GCC internal prototype to avoid an error. 18043 Use char because int might match the return type of a GCC 18044 builtin and then its argument prototype would still apply. */ 18045 #ifdef __cplusplus 18046 extern "C" 18047 #endif 18048 char dld_link (); 18049 int 18050 main () 18051 { 18052 return dld_link (); 18053 ; 18054 return 0; 18055 } 18056 _ACEOF 18057 if ac_fn_c_try_link "$LINENO"; then : 18058 ac_cv_lib_dld_dld_link=yes 18059 else 18060 ac_cv_lib_dld_dld_link=no 18061 fi 18062 rm -f core conftest.err conftest.$ac_objext \ 18063 conftest$ac_exeext conftest.$ac_ext 18064 LIBS=$ac_check_lib_save_LIBS 18065 fi 18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18067 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18068 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18069 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18070 fi 18071 18072 18073 fi 18074 18075 18076 fi 18077 18078 18079 fi 18080 18081 18082 fi 18083 18084 18085 fi 18086 18087 ;; 18088 esac 18089 18090 if test no = "$lt_cv_dlopen"; then 18091 enable_dlopen=no 18092 else 18093 enable_dlopen=yes 18094 fi 18095 18096 case $lt_cv_dlopen in 18097 dlopen) 18098 save_CPPFLAGS=$CPPFLAGS 18099 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18100 18101 save_LDFLAGS=$LDFLAGS 18102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18103 18104 save_LIBS=$LIBS 18105 LIBS="$lt_cv_dlopen_libs $LIBS" 18106 18107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18108 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 18109 if ${lt_cv_dlopen_self+:} false; then : 18110 $as_echo_n "(cached) " >&6 18111 else 18112 if test yes = "$cross_compiling"; then : 18113 lt_cv_dlopen_self=cross 18114 else 18115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18116 lt_status=$lt_dlunknown 18117 cat > conftest.$ac_ext <<_LT_EOF 18118 #line $LINENO "configure" 18119 #include "confdefs.h" 18120 18121 #if HAVE_DLFCN_H 18122 #include <dlfcn.h> 18123 #endif 18124 18125 #include <stdio.h> 18126 18127 #ifdef RTLD_GLOBAL 18128 # define LT_DLGLOBAL RTLD_GLOBAL 18129 #else 18130 # ifdef DL_GLOBAL 18131 # define LT_DLGLOBAL DL_GLOBAL 18132 # else 18133 # define LT_DLGLOBAL 0 18134 # endif 18135 #endif 18136 18137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18138 find out it does not work in some platform. */ 18139 #ifndef LT_DLLAZY_OR_NOW 18140 # ifdef RTLD_LAZY 18141 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18142 # else 18143 # ifdef DL_LAZY 18144 # define LT_DLLAZY_OR_NOW DL_LAZY 18145 # else 18146 # ifdef RTLD_NOW 18147 # define LT_DLLAZY_OR_NOW RTLD_NOW 18148 # else 18149 # ifdef DL_NOW 18150 # define LT_DLLAZY_OR_NOW DL_NOW 18151 # else 18152 # define LT_DLLAZY_OR_NOW 0 18153 # endif 18154 # endif 18155 # endif 18156 # endif 18157 #endif 18158 18159 /* When -fvisibility=hidden is used, assume the code has been annotated 18160 correspondingly for the symbols needed. */ 18161 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18162 int fnord () __attribute__((visibility("default"))); 18163 #endif 18164 18165 int fnord () { return 42; } 18166 int main () 18167 { 18168 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18169 int status = $lt_dlunknown; 18170 18171 if (self) 18172 { 18173 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18174 else 18175 { 18176 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18177 else puts (dlerror ()); 18178 } 18179 /* dlclose (self); */ 18180 } 18181 else 18182 puts (dlerror ()); 18183 18184 return status; 18185 } 18186 _LT_EOF 18187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18188 (eval $ac_link) 2>&5 18189 ac_status=$? 18190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18191 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18192 (./conftest; exit; ) >&5 2>/dev/null 18193 lt_status=$? 18194 case x$lt_status in 18195 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18196 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18197 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18198 esac 18199 else : 18200 # compilation failed 18201 lt_cv_dlopen_self=no 18202 fi 18203 fi 18204 rm -fr conftest* 18205 18206 18207 fi 18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18209 $as_echo "$lt_cv_dlopen_self" >&6; } 18210 18211 if test yes = "$lt_cv_dlopen_self"; then 18212 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18214 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18215 if ${lt_cv_dlopen_self_static+:} false; then : 18216 $as_echo_n "(cached) " >&6 18217 else 18218 if test yes = "$cross_compiling"; then : 18219 lt_cv_dlopen_self_static=cross 18220 else 18221 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18222 lt_status=$lt_dlunknown 18223 cat > conftest.$ac_ext <<_LT_EOF 18224 #line $LINENO "configure" 18225 #include "confdefs.h" 18226 18227 #if HAVE_DLFCN_H 18228 #include <dlfcn.h> 18229 #endif 18230 18231 #include <stdio.h> 18232 18233 #ifdef RTLD_GLOBAL 18234 # define LT_DLGLOBAL RTLD_GLOBAL 18235 #else 18236 # ifdef DL_GLOBAL 18237 # define LT_DLGLOBAL DL_GLOBAL 18238 # else 18239 # define LT_DLGLOBAL 0 18240 # endif 18241 #endif 18242 18243 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18244 find out it does not work in some platform. */ 18245 #ifndef LT_DLLAZY_OR_NOW 18246 # ifdef RTLD_LAZY 18247 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18248 # else 18249 # ifdef DL_LAZY 18250 # define LT_DLLAZY_OR_NOW DL_LAZY 18251 # else 18252 # ifdef RTLD_NOW 18253 # define LT_DLLAZY_OR_NOW RTLD_NOW 18254 # else 18255 # ifdef DL_NOW 18256 # define LT_DLLAZY_OR_NOW DL_NOW 18257 # else 18258 # define LT_DLLAZY_OR_NOW 0 18259 # endif 18260 # endif 18261 # endif 18262 # endif 18263 #endif 18264 18265 /* When -fvisibility=hidden is used, assume the code has been annotated 18266 correspondingly for the symbols needed. */ 18267 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18268 int fnord () __attribute__((visibility("default"))); 18269 #endif 18270 18271 int fnord () { return 42; } 18272 int main () 18273 { 18274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18275 int status = $lt_dlunknown; 18276 18277 if (self) 18278 { 18279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18280 else 18281 { 18282 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18283 else puts (dlerror ()); 18284 } 18285 /* dlclose (self); */ 18286 } 18287 else 18288 puts (dlerror ()); 18289 18290 return status; 18291 } 18292 _LT_EOF 18293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18294 (eval $ac_link) 2>&5 18295 ac_status=$? 18296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18297 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18298 (./conftest; exit; ) >&5 2>/dev/null 18299 lt_status=$? 18300 case x$lt_status in 18301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18304 esac 18305 else : 18306 # compilation failed 18307 lt_cv_dlopen_self_static=no 18308 fi 18309 fi 18310 rm -fr conftest* 18311 18312 18313 fi 18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18315 $as_echo "$lt_cv_dlopen_self_static" >&6; } 18316 fi 18317 18318 CPPFLAGS=$save_CPPFLAGS 18319 LDFLAGS=$save_LDFLAGS 18320 LIBS=$save_LIBS 18321 ;; 18322 esac 18323 18324 case $lt_cv_dlopen_self in 18325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18326 *) enable_dlopen_self=unknown ;; 18327 esac 18328 18329 case $lt_cv_dlopen_self_static in 18330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18331 *) enable_dlopen_self_static=unknown ;; 18332 esac 18333 fi 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 striplib= 18352 old_striplib= 18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18354 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 18355 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18356 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18357 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18359 $as_echo "yes" >&6; } 18360 else 18361 # FIXME - insert some real tests, host_os isn't really good enough 18362 case $host_os in 18363 darwin*) 18364 if test -n "$STRIP"; then 18365 striplib="$STRIP -x" 18366 old_striplib="$STRIP -S" 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18368 $as_echo "yes" >&6; } 18369 else 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18371 $as_echo "no" >&6; } 18372 fi 18373 ;; 18374 *) 18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18376 $as_echo "no" >&6; } 18377 ;; 18378 esac 18379 fi 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 # Report what library types will actually be built 18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18394 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18396 $as_echo "$can_build_shared" >&6; } 18397 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18399 $as_echo_n "checking whether to build shared libraries... " >&6; } 18400 test no = "$can_build_shared" && enable_shared=no 18401 18402 # On AIX, shared libraries and static libraries use the same namespace, and 18403 # are all built from PIC. 18404 case $host_os in 18405 aix3*) 18406 test yes = "$enable_shared" && enable_static=no 18407 if test -n "$RANLIB"; then 18408 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18409 postinstall_cmds='$RANLIB $lib' 18410 fi 18411 ;; 18412 18413 aix[4-9]*) 18414 if test ia64 != "$host_cpu"; then 18415 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18416 yes,aix,yes) ;; # shared object as lib.so file only 18417 yes,svr4,*) ;; # shared object as lib.so archive member only 18418 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18419 esac 18420 fi 18421 ;; 18422 esac 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18424 $as_echo "$enable_shared" >&6; } 18425 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18427 $as_echo_n "checking whether to build static libraries... " >&6; } 18428 # Make sure either enable_shared or enable_static is yes. 18429 test yes = "$enable_shared" || enable_static=yes 18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18431 $as_echo "$enable_static" >&6; } 18432 18433 18434 18435 18436 fi 18437 ac_ext=c 18438 ac_cpp='$CPP $CPPFLAGS' 18439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18441 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18442 18443 CC=$lt_save_CC 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 ac_config_commands="$ac_config_commands libtool" 18460 18461 18462 18463 18464 # Only expand once: 18465 18466 18467 18468 18469 18470 # Define a configure option for an alternate module directory 18471 18472 # Check whether --with-xorg-module-dir was given. 18473 if test "${with_xorg_module_dir+set}" = set; then : 18474 withval=$with_xorg_module_dir; moduledir="$withval" 18475 else 18476 moduledir="$libdir/xorg/modules" 18477 fi 18478 18479 18480 # Store the list of server defined optional extensions in REQUIRED_MODULES 18481 18482 18483 SAVE_CFLAGS="$CFLAGS" 18484 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18486 /* end confdefs.h. */ 18487 18488 #include "xorg-server.h" 18489 #if !defined RANDR 18490 #error RANDR not defined 18491 #endif 18492 18493 int 18494 main () 18495 { 18496 18497 ; 18498 return 0; 18499 } 18500 _ACEOF 18501 if ac_fn_c_try_compile "$LINENO"; then : 18502 _EXT_CHECK=yes 18503 else 18504 _EXT_CHECK=no 18505 fi 18506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18507 CFLAGS="$SAVE_CFLAGS" 18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18509 $as_echo_n "checking if RANDR is defined... " >&6; } 18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18511 $as_echo "$_EXT_CHECK" >&6; } 18512 if test "$_EXT_CHECK" != no; then 18513 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18514 fi 18515 18516 18517 18518 SAVE_CFLAGS="$CFLAGS" 18519 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18521 /* end confdefs.h. */ 18522 18523 #include "xorg-server.h" 18524 #if !defined RENDER 18525 #error RENDER not defined 18526 #endif 18527 18528 int 18529 main () 18530 { 18531 18532 ; 18533 return 0; 18534 } 18535 _ACEOF 18536 if ac_fn_c_try_compile "$LINENO"; then : 18537 _EXT_CHECK=yes 18538 else 18539 _EXT_CHECK=no 18540 fi 18541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18542 CFLAGS="$SAVE_CFLAGS" 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18544 $as_echo_n "checking if RENDER is defined... " >&6; } 18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18546 $as_echo "$_EXT_CHECK" >&6; } 18547 if test "$_EXT_CHECK" != no; then 18548 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18549 fi 18550 18551 18552 18553 SAVE_CFLAGS="$CFLAGS" 18554 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18556 /* end confdefs.h. */ 18557 18558 #include "xorg-server.h" 18559 #if !defined DPMSExtension 18560 #error DPMSExtension not defined 18561 #endif 18562 18563 int 18564 main () 18565 { 18566 18567 ; 18568 return 0; 18569 } 18570 _ACEOF 18571 if ac_fn_c_try_compile "$LINENO"; then : 18572 _EXT_CHECK=yes 18573 else 18574 _EXT_CHECK=no 18575 fi 18576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18577 CFLAGS="$SAVE_CFLAGS" 18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18579 $as_echo_n "checking if DPMSExtension is defined... " >&6; } 18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18581 $as_echo "$_EXT_CHECK" >&6; } 18582 if test "$_EXT_CHECK" != no; then 18583 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18584 fi 18585 18586 18587 # Obtain compiler/linker options for the driver dependencies 18588 18589 pkg_failed=no 18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18591 $as_echo_n "checking for XORG... " >&6; } 18592 18593 if test -n "$XORG_CFLAGS"; then 18594 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18595 elif test -n "$PKG_CONFIG"; then 18596 if test -n "$PKG_CONFIG" && \ 18597 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18598 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18599 ac_status=$? 18600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18601 test $ac_status = 0; }; then 18602 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18603 test "x$?" != "x0" && pkg_failed=yes 18604 else 18605 pkg_failed=yes 18606 fi 18607 else 18608 pkg_failed=untried 18609 fi 18610 if test -n "$XORG_LIBS"; then 18611 pkg_cv_XORG_LIBS="$XORG_LIBS" 18612 elif test -n "$PKG_CONFIG"; then 18613 if test -n "$PKG_CONFIG" && \ 18614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18615 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18616 ac_status=$? 18617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18618 test $ac_status = 0; }; then 18619 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18620 test "x$?" != "x0" && pkg_failed=yes 18621 else 18622 pkg_failed=yes 18623 fi 18624 else 18625 pkg_failed=untried 18626 fi 18627 18628 18629 18630 if test $pkg_failed = yes; then 18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18632 $as_echo "no" >&6; } 18633 18634 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18635 _pkg_short_errors_supported=yes 18636 else 18637 _pkg_short_errors_supported=no 18638 fi 18639 if test $_pkg_short_errors_supported = yes; then 18640 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18641 else 18642 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18643 fi 18644 # Put the nasty error message in config.log where it belongs 18645 echo "$XORG_PKG_ERRORS" >&5 18646 18647 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 18648 18649 $XORG_PKG_ERRORS 18650 18651 Consider adjusting the PKG_CONFIG_PATH environment variable if you 18652 installed software in a non-standard prefix. 18653 18654 Alternatively, you may set the environment variables XORG_CFLAGS 18655 and XORG_LIBS to avoid the need to call pkg-config. 18656 See the pkg-config man page for more details." "$LINENO" 5 18657 elif test $pkg_failed = untried; then 18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18659 $as_echo "no" >&6; } 18660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18662 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18663 is in your PATH or set the PKG_CONFIG environment variable to the full 18664 path to pkg-config. 18665 18666 Alternatively, you may set the environment variables XORG_CFLAGS 18667 and XORG_LIBS to avoid the need to call pkg-config. 18668 See the pkg-config man page for more details. 18669 18670 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18671 See \`config.log' for more details" "$LINENO" 5; } 18672 else 18673 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18674 XORG_LIBS=$pkg_cv_XORG_LIBS 18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18676 $as_echo "yes" >&6; } 18677 18678 fi 18679 18680 # Checks for libraries. 18681 SAVE_CPPFLAGS="$CPPFLAGS" 18682 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 18683 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18684 " 18685 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18686 XSERVER_LIBPCIACCESS=yes 18687 else 18688 XSERVER_LIBPCIACCESS=no 18689 fi 18690 18691 ac_fn_c_check_header_mongrel "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default" 18692 if test "x$ac_cv_header_xf1bpp_h" = xyes; then : 18693 18694 $as_echo "#define HAVE_XF1BPP 1" >>confdefs.h 18695 18696 fi 18697 18698 18699 ac_fn_c_check_header_mongrel "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default" 18700 if test "x$ac_cv_header_xf4bpp_h" = xyes; then : 18701 18702 $as_echo "#define HAVE_XF4BPP 1" >>confdefs.h 18703 18704 fi 18705 18706 18707 CPPFLAGS="$SAVE_CPPFLAGS" 18708 18709 # Check whether --enable-xaa was given. 18710 if test "${enable_xaa+set}" = set; then : 18711 enableval=$enable_xaa; XAA="$enableval" 18712 else 18713 XAA=auto 18714 fi 18715 18716 if test "x$XAA" != xno; then 18717 save_CFLAGS=$CFLAGS 18718 save_CPPFLAGS=$CPPFLAGS 18719 CFLAGS=$XORG_CFLAGS 18720 CPPFLAGS="$XORG_CFLAGS" 18721 for ac_header in xaa.h 18722 do : 18723 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18724 if test "x$ac_cv_header_xaa_h" = xyes; then : 18725 cat >>confdefs.h <<_ACEOF 18726 #define HAVE_XAA_H 1 18727 _ACEOF 18728 XAA=yes 18729 else 18730 XAA=no 18731 fi 18732 18733 done 18734 18735 CFLAGS=$save_CFLAGS 18736 CPPFLAGS=$save_CPPFLAGS 18737 fi 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18739 $as_echo_n "checking whether to include XAA support... " >&6; } 18740 if test "x$XAA" = xyes; then 18741 XAA_TRUE= 18742 XAA_FALSE='#' 18743 else 18744 XAA_TRUE='#' 18745 XAA_FALSE= 18746 fi 18747 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18749 $as_echo "$XAA" >&6; } 18750 18751 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18752 18753 pkg_failed=no 18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18755 $as_echo_n "checking for PCIACCESS... " >&6; } 18756 18757 if test -n "$PCIACCESS_CFLAGS"; then 18758 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18759 elif test -n "$PKG_CONFIG"; then 18760 if test -n "$PKG_CONFIG" && \ 18761 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18762 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18763 ac_status=$? 18764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18765 test $ac_status = 0; }; then 18766 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18767 test "x$?" != "x0" && pkg_failed=yes 18768 else 18769 pkg_failed=yes 18770 fi 18771 else 18772 pkg_failed=untried 18773 fi 18774 if test -n "$PCIACCESS_LIBS"; then 18775 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18776 elif test -n "$PKG_CONFIG"; then 18777 if test -n "$PKG_CONFIG" && \ 18778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18779 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18780 ac_status=$? 18781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18782 test $ac_status = 0; }; then 18783 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 18784 test "x$?" != "x0" && pkg_failed=yes 18785 else 18786 pkg_failed=yes 18787 fi 18788 else 18789 pkg_failed=untried 18790 fi 18791 18792 18793 18794 if test $pkg_failed = yes; then 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18796 $as_echo "no" >&6; } 18797 18798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18799 _pkg_short_errors_supported=yes 18800 else 18801 _pkg_short_errors_supported=no 18802 fi 18803 if test $_pkg_short_errors_supported = yes; then 18804 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18805 else 18806 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18807 fi 18808 # Put the nasty error message in config.log where it belongs 18809 echo "$PCIACCESS_PKG_ERRORS" >&5 18810 18811 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18812 18813 $PCIACCESS_PKG_ERRORS 18814 18815 Consider adjusting the PKG_CONFIG_PATH environment variable if you 18816 installed software in a non-standard prefix. 18817 18818 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18819 and PCIACCESS_LIBS to avoid the need to call pkg-config. 18820 See the pkg-config man page for more details." "$LINENO" 5 18821 elif test $pkg_failed = untried; then 18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18823 $as_echo "no" >&6; } 18824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18826 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18827 is in your PATH or set the PKG_CONFIG environment variable to the full 18828 path to pkg-config. 18829 18830 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18831 and PCIACCESS_LIBS to avoid the need to call pkg-config. 18832 See the pkg-config man page for more details. 18833 18834 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18835 See \`config.log' for more details" "$LINENO" 5; } 18836 else 18837 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18838 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18840 $as_echo "yes" >&6; } 18841 18842 fi 18843 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 18844 fi 18845 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18846 XSERVER_LIBPCIACCESS_TRUE= 18847 XSERVER_LIBPCIACCESS_FALSE='#' 18848 else 18849 XSERVER_LIBPCIACCESS_TRUE='#' 18850 XSERVER_LIBPCIACCESS_FALSE= 18851 fi 18852 18853 18854 # Checks for header files. 18855 for ac_header in elf.h elf_abi.h 18856 do : 18857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18858 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18859 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18860 cat >>confdefs.h <<_ACEOF 18861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18862 _ACEOF 18863 18864 fi 18865 18866 done 18867 18868 18869 18870 18871 DRIVER_NAME=rendition 18872 18873 18874 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18875 18876 cat >confcache <<\_ACEOF 18877 # This file is a shell script that caches the results of configure 18878 # tests run on this system so they can be shared between configure 18879 # scripts and configure runs, see configure's option --config-cache. 18880 # It is not useful on other systems. If it contains results you don't 18881 # want to keep, you may remove or edit it. 18882 # 18883 # config.status only pays attention to the cache file if you give it 18884 # the --recheck option to rerun configure. 18885 # 18886 # `ac_cv_env_foo' variables (set or unset) will be overridden when 18887 # loading this file, other *unset* `ac_cv_foo' will be assigned the 18888 # following values. 18889 18890 _ACEOF 18891 18892 # The following way of writing the cache mishandles newlines in values, 18893 # but we know of no workaround that is simple, portable, and efficient. 18894 # So, we kill variables containing newlines. 18895 # Ultrix sh set writes to stderr and can't be redirected directly, 18896 # and sets the high bit in the cache file unless we assign to the vars. 18897 ( 18898 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18899 eval ac_val=\$$ac_var 18900 case $ac_val in #( 18901 *${as_nl}*) 18902 case $ac_var in #( 18903 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18904 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18905 esac 18906 case $ac_var in #( 18907 _ | IFS | as_nl) ;; #( 18908 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18909 *) { eval $ac_var=; unset $ac_var;} ;; 18910 esac ;; 18911 esac 18912 done 18913 18914 (set) 2>&1 | 18915 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18916 *${as_nl}ac_space=\ *) 18917 # `set' does not quote correctly, so add quotes: double-quote 18918 # substitution turns \\\\ into \\, and sed turns \\ into \. 18919 sed -n \ 18920 "s/'/'\\\\''/g; 18921 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18922 ;; #( 18923 *) 18924 # `set' quotes correctly as required by POSIX, so do not add quotes. 18925 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18926 ;; 18927 esac | 18928 sort 18929 ) | 18930 sed ' 18931 /^ac_cv_env_/b end 18932 t clear 18933 :clear 18934 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18935 t end 18936 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18937 :end' >>confcache 18938 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18939 if test -w "$cache_file"; then 18940 if test "x$cache_file" != "x/dev/null"; then 18941 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18942 $as_echo "$as_me: updating cache $cache_file" >&6;} 18943 if test ! -f "$cache_file" || test -h "$cache_file"; then 18944 cat confcache >"$cache_file" 18945 else 18946 case $cache_file in #( 18947 */* | ?:*) 18948 mv -f confcache "$cache_file"$$ && 18949 mv -f "$cache_file"$$ "$cache_file" ;; #( 18950 *) 18951 mv -f confcache "$cache_file" ;; 18952 esac 18953 fi 18954 fi 18955 else 18956 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18957 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18958 fi 18959 fi 18960 rm -f confcache 18961 18962 test "x$prefix" = xNONE && prefix=$ac_default_prefix 18963 # Let make expand exec_prefix. 18964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18965 18966 DEFS=-DHAVE_CONFIG_H 18967 18968 ac_libobjs= 18969 ac_ltlibobjs= 18970 U= 18971 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18972 # 1. Remove the extension, and $U if already installed. 18973 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18974 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18975 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18976 # will be set to the directory where LIBOBJS objects are built. 18977 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18978 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18979 done 18980 LIBOBJS=$ac_libobjs 18981 18982 LTLIBOBJS=$ac_ltlibobjs 18983 18984 18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18986 $as_echo_n "checking that generated files are newer than configure... " >&6; } 18987 if test -n "$am_sleep_pid"; then 18988 # Hide warnings about reused PIDs. 18989 wait $am_sleep_pid 2>/dev/null 18990 fi 18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18992 $as_echo "done" >&6; } 18993 if test -n "$EXEEXT"; then 18994 am__EXEEXT_TRUE= 18995 am__EXEEXT_FALSE='#' 18996 else 18997 am__EXEEXT_TRUE='#' 18998 am__EXEEXT_FALSE= 18999 fi 19000 19001 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19002 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19003 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19004 fi 19005 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19006 as_fn_error $? "conditional \"AMDEP\" was never defined. 19007 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19008 fi 19009 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19010 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19011 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19012 fi 19013 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19014 as_fn_error $? "conditional \"XAA\" was never defined. 19015 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19016 fi 19017 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19018 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19019 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19020 fi 19021 19022 : "${CONFIG_STATUS=./config.status}" 19023 ac_write_fail=0 19024 ac_clean_files_save=$ac_clean_files 19025 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19027 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19028 as_write_fail=0 19029 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19030 #! $SHELL 19031 # Generated by $as_me. 19032 # Run this file to recreate the current configuration. 19033 # Compiler output produced by configure, useful for debugging 19034 # configure, is in config.log if it exists. 19035 19036 debug=false 19037 ac_cs_recheck=false 19038 ac_cs_silent=false 19039 19040 SHELL=\${CONFIG_SHELL-$SHELL} 19041 export SHELL 19042 _ASEOF 19043 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19044 ## -------------------- ## 19045 ## M4sh Initialization. ## 19046 ## -------------------- ## 19047 19048 # Be more Bourne compatible 19049 DUALCASE=1; export DUALCASE # for MKS sh 19050 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19051 emulate sh 19052 NULLCMD=: 19053 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19054 # is contrary to our usage. Disable this feature. 19055 alias -g '${1+"$@"}'='"$@"' 19056 setopt NO_GLOB_SUBST 19057 else 19058 case `(set -o) 2>/dev/null` in #( 19059 *posix*) : 19060 set -o posix ;; #( 19061 *) : 19062 ;; 19063 esac 19064 fi 19065 19066 19067 as_nl=' 19068 ' 19069 export as_nl 19070 # Printing a long string crashes Solaris 7 /usr/bin/printf. 19071 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19073 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19074 # Prefer a ksh shell builtin over an external printf program on Solaris, 19075 # but without wasting forks for bash or zsh. 19076 if test -z "$BASH_VERSION$ZSH_VERSION" \ 19077 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19078 as_echo='print -r --' 19079 as_echo_n='print -rn --' 19080 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19081 as_echo='printf %s\n' 19082 as_echo_n='printf %s' 19083 else 19084 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19085 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19086 as_echo_n='/usr/ucb/echo -n' 19087 else 19088 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19089 as_echo_n_body='eval 19090 arg=$1; 19091 case $arg in #( 19092 *"$as_nl"*) 19093 expr "X$arg" : "X\\(.*\\)$as_nl"; 19094 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19095 esac; 19096 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19097 ' 19098 export as_echo_n_body 19099 as_echo_n='sh -c $as_echo_n_body as_echo' 19100 fi 19101 export as_echo_body 19102 as_echo='sh -c $as_echo_body as_echo' 19103 fi 19104 19105 # The user is always right. 19106 if test "${PATH_SEPARATOR+set}" != set; then 19107 PATH_SEPARATOR=: 19108 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19109 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19110 PATH_SEPARATOR=';' 19111 } 19112 fi 19113 19114 19115 # IFS 19116 # We need space, tab and new line, in precisely that order. Quoting is 19117 # there to prevent editors from complaining about space-tab. 19118 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 19119 # splitting by setting IFS to empty value.) 19120 IFS=" "" $as_nl" 19121 19122 # Find who we are. Look in the path if we contain no directory separator. 19123 as_myself= 19124 case $0 in #(( 19125 *[\\/]* ) as_myself=$0 ;; 19126 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19127 for as_dir in $PATH 19128 do 19129 IFS=$as_save_IFS 19130 test -z "$as_dir" && as_dir=. 19131 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19132 done 19133 IFS=$as_save_IFS 19134 19135 ;; 19136 esac 19137 # We did not find ourselves, most probably we were run as `sh COMMAND' 19138 # in which case we are not to be found in the path. 19139 if test "x$as_myself" = x; then 19140 as_myself=$0 19141 fi 19142 if test ! -f "$as_myself"; then 19143 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19144 exit 1 19145 fi 19146 19147 # Unset variables that we do not need and which cause bugs (e.g. in 19148 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19149 # suppresses any "Segmentation fault" message there. '((' could 19150 # trigger a bug in pdksh 5.2.14. 19151 for as_var in BASH_ENV ENV MAIL MAILPATH 19152 do eval test x\${$as_var+set} = xset \ 19153 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19154 done 19155 PS1='$ ' 19156 PS2='> ' 19157 PS4='+ ' 19158 19159 # NLS nuisances. 19160 LC_ALL=C 19161 export LC_ALL 19162 LANGUAGE=C 19163 export LANGUAGE 19164 19165 # CDPATH. 19166 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19167 19168 19169 # as_fn_error STATUS ERROR [LINENO LOG_FD] 19170 # ---------------------------------------- 19171 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19172 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19173 # script with STATUS, using 1 if that was 0. 19174 as_fn_error () 19175 { 19176 as_status=$1; test $as_status -eq 0 && as_status=1 19177 if test "$4"; then 19178 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19179 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19180 fi 19181 $as_echo "$as_me: error: $2" >&2 19182 as_fn_exit $as_status 19183 } # as_fn_error 19184 19185 19186 # as_fn_set_status STATUS 19187 # ----------------------- 19188 # Set $? to STATUS, without forking. 19189 as_fn_set_status () 19190 { 19191 return $1 19192 } # as_fn_set_status 19193 19194 # as_fn_exit STATUS 19195 # ----------------- 19196 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19197 as_fn_exit () 19198 { 19199 set +e 19200 as_fn_set_status $1 19201 exit $1 19202 } # as_fn_exit 19203 19204 # as_fn_unset VAR 19205 # --------------- 19206 # Portably unset VAR. 19207 as_fn_unset () 19208 { 19209 { eval $1=; unset $1;} 19210 } 19211 as_unset=as_fn_unset 19212 # as_fn_append VAR VALUE 19213 # ---------------------- 19214 # Append the text in VALUE to the end of the definition contained in VAR. Take 19215 # advantage of any shell optimizations that allow amortized linear growth over 19216 # repeated appends, instead of the typical quadratic growth present in naive 19217 # implementations. 19218 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19219 eval 'as_fn_append () 19220 { 19221 eval $1+=\$2 19222 }' 19223 else 19224 as_fn_append () 19225 { 19226 eval $1=\$$1\$2 19227 } 19228 fi # as_fn_append 19229 19230 # as_fn_arith ARG... 19231 # ------------------ 19232 # Perform arithmetic evaluation on the ARGs, and store the result in the 19233 # global $as_val. Take advantage of shells that can avoid forks. The arguments 19234 # must be portable across $(()) and expr. 19235 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19236 eval 'as_fn_arith () 19237 { 19238 as_val=$(( $* )) 19239 }' 19240 else 19241 as_fn_arith () 19242 { 19243 as_val=`expr "$@" || test $? -eq 1` 19244 } 19245 fi # as_fn_arith 19246 19247 19248 if expr a : '\(a\)' >/dev/null 2>&1 && 19249 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19250 as_expr=expr 19251 else 19252 as_expr=false 19253 fi 19254 19255 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19256 as_basename=basename 19257 else 19258 as_basename=false 19259 fi 19260 19261 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19262 as_dirname=dirname 19263 else 19264 as_dirname=false 19265 fi 19266 19267 as_me=`$as_basename -- "$0" || 19268 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19269 X"$0" : 'X\(//\)$' \| \ 19270 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19271 $as_echo X/"$0" | 19272 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19273 s//\1/ 19274 q 19275 } 19276 /^X\/\(\/\/\)$/{ 19277 s//\1/ 19278 q 19279 } 19280 /^X\/\(\/\).*/{ 19281 s//\1/ 19282 q 19283 } 19284 s/.*/./; q'` 19285 19286 # Avoid depending upon Character Ranges. 19287 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19288 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19289 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19290 as_cr_digits='0123456789' 19291 as_cr_alnum=$as_cr_Letters$as_cr_digits 19292 19293 ECHO_C= ECHO_N= ECHO_T= 19294 case `echo -n x` in #((((( 19295 -n*) 19296 case `echo 'xy\c'` in 19297 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19298 xy) ECHO_C='\c';; 19299 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19300 ECHO_T=' ';; 19301 esac;; 19302 *) 19303 ECHO_N='-n';; 19304 esac 19305 19306 rm -f conf$$ conf$$.exe conf$$.file 19307 if test -d conf$$.dir; then 19308 rm -f conf$$.dir/conf$$.file 19309 else 19310 rm -f conf$$.dir 19311 mkdir conf$$.dir 2>/dev/null 19312 fi 19313 if (echo >conf$$.file) 2>/dev/null; then 19314 if ln -s conf$$.file conf$$ 2>/dev/null; then 19315 as_ln_s='ln -s' 19316 # ... but there are two gotchas: 19317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19319 # In both cases, we have to default to `cp -pR'. 19320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19321 as_ln_s='cp -pR' 19322 elif ln conf$$.file conf$$ 2>/dev/null; then 19323 as_ln_s=ln 19324 else 19325 as_ln_s='cp -pR' 19326 fi 19327 else 19328 as_ln_s='cp -pR' 19329 fi 19330 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19331 rmdir conf$$.dir 2>/dev/null 19332 19333 19334 # as_fn_mkdir_p 19335 # ------------- 19336 # Create "$as_dir" as a directory, including parents if necessary. 19337 as_fn_mkdir_p () 19338 { 19339 19340 case $as_dir in #( 19341 -*) as_dir=./$as_dir;; 19342 esac 19343 test -d "$as_dir" || eval $as_mkdir_p || { 19344 as_dirs= 19345 while :; do 19346 case $as_dir in #( 19347 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19348 *) as_qdir=$as_dir;; 19349 esac 19350 as_dirs="'$as_qdir' $as_dirs" 19351 as_dir=`$as_dirname -- "$as_dir" || 19352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19353 X"$as_dir" : 'X\(//\)[^/]' \| \ 19354 X"$as_dir" : 'X\(//\)$' \| \ 19355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19356 $as_echo X"$as_dir" | 19357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19358 s//\1/ 19359 q 19360 } 19361 /^X\(\/\/\)[^/].*/{ 19362 s//\1/ 19363 q 19364 } 19365 /^X\(\/\/\)$/{ 19366 s//\1/ 19367 q 19368 } 19369 /^X\(\/\).*/{ 19370 s//\1/ 19371 q 19372 } 19373 s/.*/./; q'` 19374 test -d "$as_dir" && break 19375 done 19376 test -z "$as_dirs" || eval "mkdir $as_dirs" 19377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19378 19379 19380 } # as_fn_mkdir_p 19381 if mkdir -p . 2>/dev/null; then 19382 as_mkdir_p='mkdir -p "$as_dir"' 19383 else 19384 test -d ./-p && rmdir ./-p 19385 as_mkdir_p=false 19386 fi 19387 19388 19389 # as_fn_executable_p FILE 19390 # ----------------------- 19391 # Test if FILE is an executable regular file. 19392 as_fn_executable_p () 19393 { 19394 test -f "$1" && test -x "$1" 19395 } # as_fn_executable_p 19396 as_test_x='test -x' 19397 as_executable_p=as_fn_executable_p 19398 19399 # Sed expression to map a string onto a valid CPP name. 19400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19401 19402 # Sed expression to map a string onto a valid variable name. 19403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19404 19405 19406 exec 6>&1 19407 ## ----------------------------------- ## 19408 ## Main body of $CONFIG_STATUS script. ## 19409 ## ----------------------------------- ## 19410 _ASEOF 19411 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19412 19413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19414 # Save the log message, to keep $0 and so on meaningful, and to 19415 # report actual input values of CONFIG_FILES etc. instead of their 19416 # values after options handling. 19417 ac_log=" 19418 This file was extended by xf86-video-rendition $as_me 4.2.6, which was 19419 generated by GNU Autoconf 2.69. Invocation command line was 19420 19421 CONFIG_FILES = $CONFIG_FILES 19422 CONFIG_HEADERS = $CONFIG_HEADERS 19423 CONFIG_LINKS = $CONFIG_LINKS 19424 CONFIG_COMMANDS = $CONFIG_COMMANDS 19425 $ $0 $@ 19426 19427 on `(hostname || uname -n) 2>/dev/null | sed 1q` 19428 " 19429 19430 _ACEOF 19431 19432 case $ac_config_files in *" 19433 "*) set x $ac_config_files; shift; ac_config_files=$*;; 19434 esac 19435 19436 case $ac_config_headers in *" 19437 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19438 esac 19439 19440 19441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19442 # Files that config.status was made for. 19443 config_files="$ac_config_files" 19444 config_headers="$ac_config_headers" 19445 config_commands="$ac_config_commands" 19446 19447 _ACEOF 19448 19449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19450 ac_cs_usage="\ 19451 \`$as_me' instantiates files and other configuration actions 19452 from templates according to the current configuration. Unless the files 19453 and actions are specified as TAGs, all are instantiated by default. 19454 19455 Usage: $0 [OPTION]... [TAG]... 19456 19457 -h, --help print this help, then exit 19458 -V, --version print version number and configuration settings, then exit 19459 --config print configuration, then exit 19460 -q, --quiet, --silent 19461 do not print progress messages 19462 -d, --debug don't remove temporary files 19463 --recheck update $as_me by reconfiguring in the same conditions 19464 --file=FILE[:TEMPLATE] 19465 instantiate the configuration file FILE 19466 --header=FILE[:TEMPLATE] 19467 instantiate the configuration header FILE 19468 19469 Configuration files: 19470 $config_files 19471 19472 Configuration headers: 19473 $config_headers 19474 19475 Configuration commands: 19476 $config_commands 19477 19478 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19479 19480 _ACEOF 19481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19482 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19483 ac_cs_version="\\ 19484 xf86-video-rendition config.status 4.2.6 19485 configured by $0, generated by GNU Autoconf 2.69, 19486 with options \\"\$ac_cs_config\\" 19487 19488 Copyright (C) 2012 Free Software Foundation, Inc. 19489 This config.status script is free software; the Free Software Foundation 19490 gives unlimited permission to copy, distribute and modify it." 19491 19492 ac_pwd='$ac_pwd' 19493 srcdir='$srcdir' 19494 INSTALL='$INSTALL' 19495 MKDIR_P='$MKDIR_P' 19496 AWK='$AWK' 19497 test -n "\$AWK" || AWK=awk 19498 _ACEOF 19499 19500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19501 # The default lists apply if the user does not specify any file. 19502 ac_need_defaults=: 19503 while test $# != 0 19504 do 19505 case $1 in 19506 --*=?*) 19507 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19508 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19509 ac_shift=: 19510 ;; 19511 --*=) 19512 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19513 ac_optarg= 19514 ac_shift=: 19515 ;; 19516 *) 19517 ac_option=$1 19518 ac_optarg=$2 19519 ac_shift=shift 19520 ;; 19521 esac 19522 19523 case $ac_option in 19524 # Handling of the options. 19525 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19526 ac_cs_recheck=: ;; 19527 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19528 $as_echo "$ac_cs_version"; exit ;; 19529 --config | --confi | --conf | --con | --co | --c ) 19530 $as_echo "$ac_cs_config"; exit ;; 19531 --debug | --debu | --deb | --de | --d | -d ) 19532 debug=: ;; 19533 --file | --fil | --fi | --f ) 19534 $ac_shift 19535 case $ac_optarg in 19536 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19537 '') as_fn_error $? "missing file argument" ;; 19538 esac 19539 as_fn_append CONFIG_FILES " '$ac_optarg'" 19540 ac_need_defaults=false;; 19541 --header | --heade | --head | --hea ) 19542 $ac_shift 19543 case $ac_optarg in 19544 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19545 esac 19546 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19547 ac_need_defaults=false;; 19548 --he | --h) 19549 # Conflict between --help and --header 19550 as_fn_error $? "ambiguous option: \`$1' 19551 Try \`$0 --help' for more information.";; 19552 --help | --hel | -h ) 19553 $as_echo "$ac_cs_usage"; exit ;; 19554 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19555 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19556 ac_cs_silent=: ;; 19557 19558 # This is an error. 19559 -*) as_fn_error $? "unrecognized option: \`$1' 19560 Try \`$0 --help' for more information." ;; 19561 19562 *) as_fn_append ac_config_targets " $1" 19563 ac_need_defaults=false ;; 19564 19565 esac 19566 shift 19567 done 19568 19569 ac_configure_extra_args= 19570 19571 if $ac_cs_silent; then 19572 exec 6>/dev/null 19573 ac_configure_extra_args="$ac_configure_extra_args --silent" 19574 fi 19575 19576 _ACEOF 19577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19578 if \$ac_cs_recheck; then 19579 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19580 shift 19581 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19582 CONFIG_SHELL='$SHELL' 19583 export CONFIG_SHELL 19584 exec "\$@" 19585 fi 19586 19587 _ACEOF 19588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19589 exec 5>>config.log 19590 { 19591 echo 19592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19593 ## Running $as_me. ## 19594 _ASBOX 19595 $as_echo "$ac_log" 19596 } >&5 19597 19598 _ACEOF 19599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19600 # 19601 # INIT-COMMANDS 19602 # 19603 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19604 19605 19606 # The HP-UX ksh and POSIX shell print the target directory to stdout 19607 # if CDPATH is set. 19608 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19609 19610 sed_quote_subst='$sed_quote_subst' 19611 double_quote_subst='$double_quote_subst' 19612 delay_variable_subst='$delay_variable_subst' 19613 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19614 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19615 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19616 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19617 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19618 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19619 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19620 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19621 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19622 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19623 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19624 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19625 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19626 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19627 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19628 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19629 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19630 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19631 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19632 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19633 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19634 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19635 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19636 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19637 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19638 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19639 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19640 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19641 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19642 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19643 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19644 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19645 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19646 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19647 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19648 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19649 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19650 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19651 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19652 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19653 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19654 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19655 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19656 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19657 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19658 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19659 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19660 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19661 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19662 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19663 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19664 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19665 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19666 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19667 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19668 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19669 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19670 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19671 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"`' 19672 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19673 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19674 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19675 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19676 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19677 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19678 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19679 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19680 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19681 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19682 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19683 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19684 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19685 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19686 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19687 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19688 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19689 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19690 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19691 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19692 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19693 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19694 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19695 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19696 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19697 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19698 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19699 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19700 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19701 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19702 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19703 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19704 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19705 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19706 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19707 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19708 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19709 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19710 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19711 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19712 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19713 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19714 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19715 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19716 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19717 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19718 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19719 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19720 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19721 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19722 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19723 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19724 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19725 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19726 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19727 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19728 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19729 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19730 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19731 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19732 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19733 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19734 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19735 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19736 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19737 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19738 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19739 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19740 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19741 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19742 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19743 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19744 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19745 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19746 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19747 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19748 19749 LTCC='$LTCC' 19750 LTCFLAGS='$LTCFLAGS' 19751 compiler='$compiler_DEFAULT' 19752 19753 # A function that is used when there is no print builtin or printf. 19754 func_fallback_echo () 19755 { 19756 eval 'cat <<_LTECHO_EOF 19757 \$1 19758 _LTECHO_EOF' 19759 } 19760 19761 # Quote evaled strings. 19762 for var in SHELL \ 19763 ECHO \ 19764 PATH_SEPARATOR \ 19765 SED \ 19766 GREP \ 19767 EGREP \ 19768 FGREP \ 19769 LD \ 19770 NM \ 19771 LN_S \ 19772 lt_SP2NL \ 19773 lt_NL2SP \ 19774 reload_flag \ 19775 OBJDUMP \ 19776 deplibs_check_method \ 19777 file_magic_cmd \ 19778 file_magic_glob \ 19779 want_nocaseglob \ 19780 DLLTOOL \ 19781 sharedlib_from_linklib_cmd \ 19782 AR \ 19783 AR_FLAGS \ 19784 archiver_list_spec \ 19785 STRIP \ 19786 RANLIB \ 19787 CC \ 19788 CFLAGS \ 19789 compiler \ 19790 lt_cv_sys_global_symbol_pipe \ 19791 lt_cv_sys_global_symbol_to_cdecl \ 19792 lt_cv_sys_global_symbol_to_import \ 19793 lt_cv_sys_global_symbol_to_c_name_address \ 19794 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19795 lt_cv_nm_interface \ 19796 nm_file_list_spec \ 19797 lt_cv_truncate_bin \ 19798 lt_prog_compiler_no_builtin_flag \ 19799 lt_prog_compiler_pic \ 19800 lt_prog_compiler_wl \ 19801 lt_prog_compiler_static \ 19802 lt_cv_prog_compiler_c_o \ 19803 need_locks \ 19804 MANIFEST_TOOL \ 19805 DSYMUTIL \ 19806 NMEDIT \ 19807 LIPO \ 19808 OTOOL \ 19809 OTOOL64 \ 19810 shrext_cmds \ 19811 export_dynamic_flag_spec \ 19812 whole_archive_flag_spec \ 19813 compiler_needs_object \ 19814 with_gnu_ld \ 19815 allow_undefined_flag \ 19816 no_undefined_flag \ 19817 hardcode_libdir_flag_spec \ 19818 hardcode_libdir_separator \ 19819 exclude_expsyms \ 19820 include_expsyms \ 19821 file_list_spec \ 19822 variables_saved_for_relink \ 19823 libname_spec \ 19824 library_names_spec \ 19825 soname_spec \ 19826 install_override_mode \ 19827 finish_eval \ 19828 old_striplib \ 19829 striplib; do 19830 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19831 *[\\\\\\\`\\"\\\$]*) 19832 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19833 ;; 19834 *) 19835 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19836 ;; 19837 esac 19838 done 19839 19840 # Double-quote double-evaled strings. 19841 for var in reload_cmds \ 19842 old_postinstall_cmds \ 19843 old_postuninstall_cmds \ 19844 old_archive_cmds \ 19845 extract_expsyms_cmds \ 19846 old_archive_from_new_cmds \ 19847 old_archive_from_expsyms_cmds \ 19848 archive_cmds \ 19849 archive_expsym_cmds \ 19850 module_cmds \ 19851 module_expsym_cmds \ 19852 export_symbols_cmds \ 19853 prelink_cmds \ 19854 postlink_cmds \ 19855 postinstall_cmds \ 19856 postuninstall_cmds \ 19857 finish_cmds \ 19858 sys_lib_search_path_spec \ 19859 configure_time_dlsearch_path \ 19860 configure_time_lt_sys_library_path; do 19861 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19862 *[\\\\\\\`\\"\\\$]*) 19863 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19864 ;; 19865 *) 19866 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19867 ;; 19868 esac 19869 done 19870 19871 ac_aux_dir='$ac_aux_dir' 19872 19873 # See if we are running on zsh, and set the options that allow our 19874 # commands through without removal of \ escapes INIT. 19875 if test -n "\${ZSH_VERSION+set}"; then 19876 setopt NO_GLOB_SUBST 19877 fi 19878 19879 19880 PACKAGE='$PACKAGE' 19881 VERSION='$VERSION' 19882 RM='$RM' 19883 ofile='$ofile' 19884 19885 19886 19887 19888 _ACEOF 19889 19890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19891 19892 # Handling of arguments. 19893 for ac_config_target in $ac_config_targets 19894 do 19895 case $ac_config_target in 19896 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19897 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19898 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19899 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19900 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19901 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19902 19903 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19904 esac 19905 done 19906 19907 19908 # If the user did not use the arguments to specify the items to instantiate, 19909 # then the envvar interface is used. Set only those that are not. 19910 # We use the long form for the default assignment because of an extremely 19911 # bizarre bug on SunOS 4.1.3. 19912 if $ac_need_defaults; then 19913 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19914 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19916 fi 19917 19918 # Have a temporary directory for convenience. Make it in the build tree 19919 # simply because there is no reason against having it here, and in addition, 19920 # creating and moving files from /tmp can sometimes cause problems. 19921 # Hook for its removal unless debugging. 19922 # Note that there is a small window in which the directory will not be cleaned: 19923 # after its creation but before its name has been assigned to `$tmp'. 19924 $debug || 19925 { 19926 tmp= ac_tmp= 19927 trap 'exit_status=$? 19928 : "${ac_tmp:=$tmp}" 19929 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19930 ' 0 19931 trap 'as_fn_exit 1' 1 2 13 15 19932 } 19933 # Create a (secure) tmp directory for tmp files. 19934 19935 { 19936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19937 test -d "$tmp" 19938 } || 19939 { 19940 tmp=./conf$$-$RANDOM 19941 (umask 077 && mkdir "$tmp") 19942 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19943 ac_tmp=$tmp 19944 19945 # Set up the scripts for CONFIG_FILES section. 19946 # No need to generate them if there are no CONFIG_FILES. 19947 # This happens for instance with `./config.status config.h'. 19948 if test -n "$CONFIG_FILES"; then 19949 19950 19951 ac_cr=`echo X | tr X '\015'` 19952 # On cygwin, bash can eat \r inside `` if the user requested igncr. 19953 # But we know of no other shell where ac_cr would be empty at this 19954 # point, so we can use a bashism as a fallback. 19955 if test "x$ac_cr" = x; then 19956 eval ac_cr=\$\'\\r\' 19957 fi 19958 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19959 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19960 ac_cs_awk_cr='\\r' 19961 else 19962 ac_cs_awk_cr=$ac_cr 19963 fi 19964 19965 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19966 _ACEOF 19967 19968 19969 { 19970 echo "cat >conf$$subs.awk <<_ACEOF" && 19971 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19972 echo "_ACEOF" 19973 } >conf$$subs.sh || 19974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19975 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19976 ac_delim='%!_!# ' 19977 for ac_last_try in false false false false false :; do 19978 . ./conf$$subs.sh || 19979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19980 19981 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19982 if test $ac_delim_n = $ac_delim_num; then 19983 break 19984 elif $ac_last_try; then 19985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19986 else 19987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19988 fi 19989 done 19990 rm -f conf$$subs.sh 19991 19992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19993 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19994 _ACEOF 19995 sed -n ' 19996 h 19997 s/^/S["/; s/!.*/"]=/ 19998 p 19999 g 20000 s/^[^!]*!// 20001 :repl 20002 t repl 20003 s/'"$ac_delim"'$// 20004 t delim 20005 :nl 20006 h 20007 s/\(.\{148\}\)..*/\1/ 20008 t more1 20009 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20010 p 20011 n 20012 b repl 20013 :more1 20014 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20015 p 20016 g 20017 s/.\{148\}// 20018 t nl 20019 :delim 20020 h 20021 s/\(.\{148\}\)..*/\1/ 20022 t more2 20023 s/["\\]/\\&/g; s/^/"/; s/$/"/ 20024 p 20025 b 20026 :more2 20027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20028 p 20029 g 20030 s/.\{148\}// 20031 t delim 20032 ' <conf$$subs.awk | sed ' 20033 /^[^""]/{ 20034 N 20035 s/\n// 20036 } 20037 ' >>$CONFIG_STATUS || ac_write_fail=1 20038 rm -f conf$$subs.awk 20039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20040 _ACAWK 20041 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20042 for (key in S) S_is_set[key] = 1 20043 FS = "" 20044 20045 } 20046 { 20047 line = $ 0 20048 nfields = split(line, field, "@") 20049 substed = 0 20050 len = length(field[1]) 20051 for (i = 2; i < nfields; i++) { 20052 key = field[i] 20053 keylen = length(key) 20054 if (S_is_set[key]) { 20055 value = S[key] 20056 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20057 len += length(value) + length(field[++i]) 20058 substed = 1 20059 } else 20060 len += 1 + keylen 20061 } 20062 20063 print line 20064 } 20065 20066 _ACAWK 20067 _ACEOF 20068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20069 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20070 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20071 else 20072 cat 20073 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20074 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20075 _ACEOF 20076 20077 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20078 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20079 # trailing colons and then remove the whole line if VPATH becomes empty 20080 # (actually we leave an empty line to preserve line numbers). 20081 if test "x$srcdir" = x.; then 20082 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20083 h 20084 s/// 20085 s/^/:/ 20086 s/[ ]*$/:/ 20087 s/:\$(srcdir):/:/g 20088 s/:\${srcdir}:/:/g 20089 s/:@srcdir@:/:/g 20090 s/^:*// 20091 s/:*$// 20092 x 20093 s/\(=[ ]*\).*/\1/ 20094 G 20095 s/\n// 20096 s/^[^=]*=[ ]*$// 20097 }' 20098 fi 20099 20100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20101 fi # test -n "$CONFIG_FILES" 20102 20103 # Set up the scripts for CONFIG_HEADERS section. 20104 # No need to generate them if there are no CONFIG_HEADERS. 20105 # This happens for instance with `./config.status Makefile'. 20106 if test -n "$CONFIG_HEADERS"; then 20107 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20108 BEGIN { 20109 _ACEOF 20110 20111 # Transform confdefs.h into an awk script `defines.awk', embedded as 20112 # here-document in config.status, that substitutes the proper values into 20113 # config.h.in to produce config.h. 20114 20115 # Create a delimiter string that does not exist in confdefs.h, to ease 20116 # handling of long lines. 20117 ac_delim='%!_!# ' 20118 for ac_last_try in false false :; do 20119 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20120 if test -z "$ac_tt"; then 20121 break 20122 elif $ac_last_try; then 20123 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20124 else 20125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20126 fi 20127 done 20128 20129 # For the awk script, D is an array of macro values keyed by name, 20130 # likewise P contains macro parameters if any. Preserve backslash 20131 # newline sequences. 20132 20133 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20134 sed -n ' 20135 s/.\{148\}/&'"$ac_delim"'/g 20136 t rset 20137 :rset 20138 s/^[ ]*#[ ]*define[ ][ ]*/ / 20139 t def 20140 d 20141 :def 20142 s/\\$// 20143 t bsnl 20144 s/["\\]/\\&/g 20145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20146 D["\1"]=" \3"/p 20147 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20148 d 20149 :bsnl 20150 s/["\\]/\\&/g 20151 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20152 D["\1"]=" \3\\\\\\n"\\/p 20153 t cont 20154 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20155 t cont 20156 d 20157 :cont 20158 n 20159 s/.\{148\}/&'"$ac_delim"'/g 20160 t clear 20161 :clear 20162 s/\\$// 20163 t bsnlc 20164 s/["\\]/\\&/g; s/^/"/; s/$/"/p 20165 d 20166 :bsnlc 20167 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20168 b cont 20169 ' <confdefs.h | sed ' 20170 s/'"$ac_delim"'/"\\\ 20171 "/g' >>$CONFIG_STATUS || ac_write_fail=1 20172 20173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20174 for (key in D) D_is_set[key] = 1 20175 FS = "" 20176 } 20177 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20178 line = \$ 0 20179 split(line, arg, " ") 20180 if (arg[1] == "#") { 20181 defundef = arg[2] 20182 mac1 = arg[3] 20183 } else { 20184 defundef = substr(arg[1], 2) 20185 mac1 = arg[2] 20186 } 20187 split(mac1, mac2, "(") #) 20188 macro = mac2[1] 20189 prefix = substr(line, 1, index(line, defundef) - 1) 20190 if (D_is_set[macro]) { 20191 # Preserve the white space surrounding the "#". 20192 print prefix "define", macro P[macro] D[macro] 20193 next 20194 } else { 20195 # Replace #undef with comments. This is necessary, for example, 20196 # in the case of _POSIX_SOURCE, which is predefined and required 20197 # on some systems where configure will not decide to define it. 20198 if (defundef == "undef") { 20199 print "/*", prefix defundef, macro, "*/" 20200 next 20201 } 20202 } 20203 } 20204 { print } 20205 _ACAWK 20206 _ACEOF 20207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20208 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20209 fi # test -n "$CONFIG_HEADERS" 20210 20211 20212 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20213 shift 20214 for ac_tag 20215 do 20216 case $ac_tag in 20217 :[FHLC]) ac_mode=$ac_tag; continue;; 20218 esac 20219 case $ac_mode$ac_tag in 20220 :[FHL]*:*);; 20221 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20222 :[FH]-) ac_tag=-:-;; 20223 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20224 esac 20225 ac_save_IFS=$IFS 20226 IFS=: 20227 set x $ac_tag 20228 IFS=$ac_save_IFS 20229 shift 20230 ac_file=$1 20231 shift 20232 20233 case $ac_mode in 20234 :L) ac_source=$1;; 20235 :[FH]) 20236 ac_file_inputs= 20237 for ac_f 20238 do 20239 case $ac_f in 20240 -) ac_f="$ac_tmp/stdin";; 20241 *) # Look for the file first in the build tree, then in the source tree 20242 # (if the path is not absolute). The absolute path cannot be DOS-style, 20243 # because $ac_f cannot contain `:'. 20244 test -f "$ac_f" || 20245 case $ac_f in 20246 [\\/$]*) false;; 20247 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20248 esac || 20249 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20250 esac 20251 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20252 as_fn_append ac_file_inputs " '$ac_f'" 20253 done 20254 20255 # Let's still pretend it is `configure' which instantiates (i.e., don't 20256 # use $as_me), people would be surprised to read: 20257 # /* config.h. Generated by config.status. */ 20258 configure_input='Generated from '` 20259 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20260 `' by configure.' 20261 if test x"$ac_file" != x-; then 20262 configure_input="$ac_file. $configure_input" 20263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20264 $as_echo "$as_me: creating $ac_file" >&6;} 20265 fi 20266 # Neutralize special characters interpreted by sed in replacement strings. 20267 case $configure_input in #( 20268 *\&* | *\|* | *\\* ) 20269 ac_sed_conf_input=`$as_echo "$configure_input" | 20270 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20271 *) ac_sed_conf_input=$configure_input;; 20272 esac 20273 20274 case $ac_tag in 20275 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20277 esac 20278 ;; 20279 esac 20280 20281 ac_dir=`$as_dirname -- "$ac_file" || 20282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20283 X"$ac_file" : 'X\(//\)[^/]' \| \ 20284 X"$ac_file" : 'X\(//\)$' \| \ 20285 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20286 $as_echo X"$ac_file" | 20287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20288 s//\1/ 20289 q 20290 } 20291 /^X\(\/\/\)[^/].*/{ 20292 s//\1/ 20293 q 20294 } 20295 /^X\(\/\/\)$/{ 20296 s//\1/ 20297 q 20298 } 20299 /^X\(\/\).*/{ 20300 s//\1/ 20301 q 20302 } 20303 s/.*/./; q'` 20304 as_dir="$ac_dir"; as_fn_mkdir_p 20305 ac_builddir=. 20306 20307 case "$ac_dir" in 20308 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20309 *) 20310 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20311 # A ".." for each directory in $ac_dir_suffix. 20312 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20313 case $ac_top_builddir_sub in 20314 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20315 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20316 esac ;; 20317 esac 20318 ac_abs_top_builddir=$ac_pwd 20319 ac_abs_builddir=$ac_pwd$ac_dir_suffix 20320 # for backward compatibility: 20321 ac_top_builddir=$ac_top_build_prefix 20322 20323 case $srcdir in 20324 .) # We are building in place. 20325 ac_srcdir=. 20326 ac_top_srcdir=$ac_top_builddir_sub 20327 ac_abs_top_srcdir=$ac_pwd ;; 20328 [\\/]* | ?:[\\/]* ) # Absolute name. 20329 ac_srcdir=$srcdir$ac_dir_suffix; 20330 ac_top_srcdir=$srcdir 20331 ac_abs_top_srcdir=$srcdir ;; 20332 *) # Relative name. 20333 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20334 ac_top_srcdir=$ac_top_build_prefix$srcdir 20335 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20336 esac 20337 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20338 20339 20340 case $ac_mode in 20341 :F) 20342 # 20343 # CONFIG_FILE 20344 # 20345 20346 case $INSTALL in 20347 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20348 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20349 esac 20350 ac_MKDIR_P=$MKDIR_P 20351 case $MKDIR_P in 20352 [\\/$]* | ?:[\\/]* ) ;; 20353 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20354 esac 20355 _ACEOF 20356 20357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20358 # If the template does not know about datarootdir, expand it. 20359 # FIXME: This hack should be removed a few years after 2.60. 20360 ac_datarootdir_hack=; ac_datarootdir_seen= 20361 ac_sed_dataroot=' 20362 /datarootdir/ { 20363 p 20364 q 20365 } 20366 /@datadir@/p 20367 /@docdir@/p 20368 /@infodir@/p 20369 /@localedir@/p 20370 /@mandir@/p' 20371 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20372 *datarootdir*) ac_datarootdir_seen=yes;; 20373 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20375 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20376 _ACEOF 20377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20378 ac_datarootdir_hack=' 20379 s&@datadir@&$datadir&g 20380 s&@docdir@&$docdir&g 20381 s&@infodir@&$infodir&g 20382 s&@localedir@&$localedir&g 20383 s&@mandir@&$mandir&g 20384 s&\\\${datarootdir}&$datarootdir&g' ;; 20385 esac 20386 _ACEOF 20387 20388 # Neutralize VPATH when `$srcdir' = `.'. 20389 # Shell code in configure.ac might set extrasub. 20390 # FIXME: do we really want to maintain this feature? 20391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20392 ac_sed_extra="$ac_vpsub 20393 $extrasub 20394 _ACEOF 20395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20396 :t 20397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20398 s|@configure_input@|$ac_sed_conf_input|;t t 20399 s&@top_builddir@&$ac_top_builddir_sub&;t t 20400 s&@top_build_prefix@&$ac_top_build_prefix&;t t 20401 s&@srcdir@&$ac_srcdir&;t t 20402 s&@abs_srcdir@&$ac_abs_srcdir&;t t 20403 s&@top_srcdir@&$ac_top_srcdir&;t t 20404 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20405 s&@builddir@&$ac_builddir&;t t 20406 s&@abs_builddir@&$ac_abs_builddir&;t t 20407 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20408 s&@INSTALL@&$ac_INSTALL&;t t 20409 s&@MKDIR_P@&$ac_MKDIR_P&;t t 20410 $ac_datarootdir_hack 20411 " 20412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20413 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20414 20415 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20416 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20417 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20418 "$ac_tmp/out"`; test -z "$ac_out"; } && 20419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20420 which seems to be undefined. Please make sure it is defined" >&5 20421 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20422 which seems to be undefined. Please make sure it is defined" >&2;} 20423 20424 rm -f "$ac_tmp/stdin" 20425 case $ac_file in 20426 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20427 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20428 esac \ 20429 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20430 ;; 20431 :H) 20432 # 20433 # CONFIG_HEADER 20434 # 20435 if test x"$ac_file" != x-; then 20436 { 20437 $as_echo "/* $configure_input */" \ 20438 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20439 } >"$ac_tmp/config.h" \ 20440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20441 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20442 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20443 $as_echo "$as_me: $ac_file is unchanged" >&6;} 20444 else 20445 rm -f "$ac_file" 20446 mv "$ac_tmp/config.h" "$ac_file" \ 20447 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20448 fi 20449 else 20450 $as_echo "/* $configure_input */" \ 20451 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20452 || as_fn_error $? "could not create -" "$LINENO" 5 20453 fi 20454 # Compute "$ac_file"'s index in $config_headers. 20455 _am_arg="$ac_file" 20456 _am_stamp_count=1 20457 for _am_header in $config_headers :; do 20458 case $_am_header in 20459 $_am_arg | $_am_arg:* ) 20460 break ;; 20461 * ) 20462 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20463 esac 20464 done 20465 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20466 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20467 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20468 X"$_am_arg" : 'X\(//\)$' \| \ 20469 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20470 $as_echo X"$_am_arg" | 20471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20472 s//\1/ 20473 q 20474 } 20475 /^X\(\/\/\)[^/].*/{ 20476 s//\1/ 20477 q 20478 } 20479 /^X\(\/\/\)$/{ 20480 s//\1/ 20481 q 20482 } 20483 /^X\(\/\).*/{ 20484 s//\1/ 20485 q 20486 } 20487 s/.*/./; q'`/stamp-h$_am_stamp_count 20488 ;; 20489 20490 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20491 $as_echo "$as_me: executing $ac_file commands" >&6;} 20492 ;; 20493 esac 20494 20495 20496 case $ac_file$ac_mode in 20497 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20498 # Older Autoconf quotes --file arguments for eval, but not when files 20499 # are listed without --file. Let's play safe and only enable the eval 20500 # if we detect the quoting. 20501 case $CONFIG_FILES in 20502 *\'*) eval set x "$CONFIG_FILES" ;; 20503 *) set x $CONFIG_FILES ;; 20504 esac 20505 shift 20506 for mf 20507 do 20508 # Strip MF so we end up with the name of the file. 20509 mf=`echo "$mf" | sed -e 's/:.*$//'` 20510 # Check whether this is an Automake generated Makefile or not. 20511 # We used to match only the files named 'Makefile.in', but 20512 # some people rename them; so instead we look at the file content. 20513 # Grep'ing the first line is not enough: some people post-process 20514 # each Makefile.in and add a new line on top of each file to say so. 20515 # Grep'ing the whole file is not good either: AIX grep has a line 20516 # limit of 2048, but all sed's we know have understand at least 4000. 20517 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20518 dirpart=`$as_dirname -- "$mf" || 20519 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20520 X"$mf" : 'X\(//\)[^/]' \| \ 20521 X"$mf" : 'X\(//\)$' \| \ 20522 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20523 $as_echo X"$mf" | 20524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20525 s//\1/ 20526 q 20527 } 20528 /^X\(\/\/\)[^/].*/{ 20529 s//\1/ 20530 q 20531 } 20532 /^X\(\/\/\)$/{ 20533 s//\1/ 20534 q 20535 } 20536 /^X\(\/\).*/{ 20537 s//\1/ 20538 q 20539 } 20540 s/.*/./; q'` 20541 else 20542 continue 20543 fi 20544 # Extract the definition of DEPDIR, am__include, and am__quote 20545 # from the Makefile without running 'make'. 20546 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20547 test -z "$DEPDIR" && continue 20548 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20549 test -z "$am__include" && continue 20550 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20551 # Find all dependency output files, they are included files with 20552 # $(DEPDIR) in their names. We invoke sed twice because it is the 20553 # simplest approach to changing $(DEPDIR) to its actual value in the 20554 # expansion. 20555 for file in `sed -n " 20556 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20557 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20558 # Make sure the directory exists. 20559 test -f "$dirpart/$file" && continue 20560 fdir=`$as_dirname -- "$file" || 20561 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20562 X"$file" : 'X\(//\)[^/]' \| \ 20563 X"$file" : 'X\(//\)$' \| \ 20564 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20565 $as_echo X"$file" | 20566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20567 s//\1/ 20568 q 20569 } 20570 /^X\(\/\/\)[^/].*/{ 20571 s//\1/ 20572 q 20573 } 20574 /^X\(\/\/\)$/{ 20575 s//\1/ 20576 q 20577 } 20578 /^X\(\/\).*/{ 20579 s//\1/ 20580 q 20581 } 20582 s/.*/./; q'` 20583 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20584 # echo "creating $dirpart/$file" 20585 echo '# dummy' > "$dirpart/$file" 20586 done 20587 done 20588 } 20589 ;; 20590 "libtool":C) 20591 20592 # See if we are running on zsh, and set the options that allow our 20593 # commands through without removal of \ escapes. 20594 if test -n "${ZSH_VERSION+set}"; then 20595 setopt NO_GLOB_SUBST 20596 fi 20597 20598 cfgfile=${ofile}T 20599 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20600 $RM "$cfgfile" 20601 20602 cat <<_LT_EOF >> "$cfgfile" 20603 #! $SHELL 20604 # Generated automatically by $as_me ($PACKAGE) $VERSION 20605 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20606 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 20607 20608 # Provide generalized library-building support services. 20609 # Written by Gordon Matzigkeit, 1996 20610 20611 # Copyright (C) 2014 Free Software Foundation, Inc. 20612 # This is free software; see the source for copying conditions. There is NO 20613 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20614 20615 # GNU Libtool is free software; you can redistribute it and/or modify 20616 # it under the terms of the GNU General Public License as published by 20617 # the Free Software Foundation; either version 2 of of the License, or 20618 # (at your option) any later version. 20619 # 20620 # As a special exception to the GNU General Public License, if you 20621 # distribute this file as part of a program or library that is built 20622 # using GNU Libtool, you may include this file under the same 20623 # distribution terms that you use for the rest of that program. 20624 # 20625 # GNU Libtool is distributed in the hope that it will be useful, but 20626 # WITHOUT ANY WARRANTY; without even the implied warranty of 20627 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20628 # GNU General Public License for more details. 20629 # 20630 # You should have received a copy of the GNU General Public License 20631 # along with this program. If not, see <http://www.gnu.org/licenses/>. 20632 20633 20634 # The names of the tagged configurations supported by this script. 20635 available_tags='' 20636 20637 # Configured defaults for sys_lib_dlsearch_path munging. 20638 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20639 20640 # ### BEGIN LIBTOOL CONFIG 20641 20642 # Whether or not to build static libraries. 20643 build_old_libs=$enable_static 20644 20645 # Which release of libtool.m4 was used? 20646 macro_version=$macro_version 20647 macro_revision=$macro_revision 20648 20649 # Whether or not to build shared libraries. 20650 build_libtool_libs=$enable_shared 20651 20652 # What type of objects to build. 20653 pic_mode=$pic_mode 20654 20655 # Whether or not to optimize for fast installation. 20656 fast_install=$enable_fast_install 20657 20658 # Shared archive member basename,for filename based shared library versioning on AIX. 20659 shared_archive_member_spec=$shared_archive_member_spec 20660 20661 # Shell to use when invoking shell scripts. 20662 SHELL=$lt_SHELL 20663 20664 # An echo program that protects backslashes. 20665 ECHO=$lt_ECHO 20666 20667 # The PATH separator for the build system. 20668 PATH_SEPARATOR=$lt_PATH_SEPARATOR 20669 20670 # The host system. 20671 host_alias=$host_alias 20672 host=$host 20673 host_os=$host_os 20674 20675 # The build system. 20676 build_alias=$build_alias 20677 build=$build 20678 build_os=$build_os 20679 20680 # A sed program that does not truncate output. 20681 SED=$lt_SED 20682 20683 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 20684 Xsed="\$SED -e 1s/^X//" 20685 20686 # A grep program that handles long lines. 20687 GREP=$lt_GREP 20688 20689 # An ERE matcher. 20690 EGREP=$lt_EGREP 20691 20692 # A literal string matcher. 20693 FGREP=$lt_FGREP 20694 20695 # A BSD- or MS-compatible name lister. 20696 NM=$lt_NM 20697 20698 # Whether we need soft or hard links. 20699 LN_S=$lt_LN_S 20700 20701 # What is the maximum length of a command? 20702 max_cmd_len=$max_cmd_len 20703 20704 # Object file suffix (normally "o"). 20705 objext=$ac_objext 20706 20707 # Executable file suffix (normally ""). 20708 exeext=$exeext 20709 20710 # whether the shell understands "unset". 20711 lt_unset=$lt_unset 20712 20713 # turn spaces into newlines. 20714 SP2NL=$lt_lt_SP2NL 20715 20716 # turn newlines into spaces. 20717 NL2SP=$lt_lt_NL2SP 20718 20719 # convert \$build file names to \$host format. 20720 to_host_file_cmd=$lt_cv_to_host_file_cmd 20721 20722 # convert \$build files to toolchain format. 20723 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20724 20725 # An object symbol dumper. 20726 OBJDUMP=$lt_OBJDUMP 20727 20728 # Method to check whether dependent libraries are shared objects. 20729 deplibs_check_method=$lt_deplibs_check_method 20730 20731 # Command to use when deplibs_check_method = "file_magic". 20732 file_magic_cmd=$lt_file_magic_cmd 20733 20734 # How to find potential files when deplibs_check_method = "file_magic". 20735 file_magic_glob=$lt_file_magic_glob 20736 20737 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20738 want_nocaseglob=$lt_want_nocaseglob 20739 20740 # DLL creation program. 20741 DLLTOOL=$lt_DLLTOOL 20742 20743 # Command to associate shared and link libraries. 20744 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20745 20746 # The archiver. 20747 AR=$lt_AR 20748 20749 # Flags to create an archive. 20750 AR_FLAGS=$lt_AR_FLAGS 20751 20752 # How to feed a file listing to the archiver. 20753 archiver_list_spec=$lt_archiver_list_spec 20754 20755 # A symbol stripping program. 20756 STRIP=$lt_STRIP 20757 20758 # Commands used to install an old-style archive. 20759 RANLIB=$lt_RANLIB 20760 old_postinstall_cmds=$lt_old_postinstall_cmds 20761 old_postuninstall_cmds=$lt_old_postuninstall_cmds 20762 20763 # Whether to use a lock for old archive extraction. 20764 lock_old_archive_extraction=$lock_old_archive_extraction 20765 20766 # A C compiler. 20767 LTCC=$lt_CC 20768 20769 # LTCC compiler flags. 20770 LTCFLAGS=$lt_CFLAGS 20771 20772 # Take the output of nm and produce a listing of raw symbols and C names. 20773 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20774 20775 # Transform the output of nm in a proper C declaration. 20776 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20777 20778 # Transform the output of nm into a list of symbols to manually relocate. 20779 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20780 20781 # Transform the output of nm in a C name address pair. 20782 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20783 20784 # Transform the output of nm in a C name address pair when lib prefix is needed. 20785 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20786 20787 # The name lister interface. 20788 nm_interface=$lt_lt_cv_nm_interface 20789 20790 # Specify filename containing input files for \$NM. 20791 nm_file_list_spec=$lt_nm_file_list_spec 20792 20793 # The root where to search for dependent libraries,and where our libraries should be installed. 20794 lt_sysroot=$lt_sysroot 20795 20796 # Command to truncate a binary pipe. 20797 lt_truncate_bin=$lt_lt_cv_truncate_bin 20798 20799 # The name of the directory that contains temporary libtool files. 20800 objdir=$objdir 20801 20802 # Used to examine libraries when file_magic_cmd begins with "file". 20803 MAGIC_CMD=$MAGIC_CMD 20804 20805 # Must we lock files when doing compilation? 20806 need_locks=$lt_need_locks 20807 20808 # Manifest tool. 20809 MANIFEST_TOOL=$lt_MANIFEST_TOOL 20810 20811 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20812 DSYMUTIL=$lt_DSYMUTIL 20813 20814 # Tool to change global to local symbols on Mac OS X. 20815 NMEDIT=$lt_NMEDIT 20816 20817 # Tool to manipulate fat objects and archives on Mac OS X. 20818 LIPO=$lt_LIPO 20819 20820 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 20821 OTOOL=$lt_OTOOL 20822 20823 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20824 OTOOL64=$lt_OTOOL64 20825 20826 # Old archive suffix (normally "a"). 20827 libext=$libext 20828 20829 # Shared library suffix (normally ".so"). 20830 shrext_cmds=$lt_shrext_cmds 20831 20832 # The commands to extract the exported symbol list from a shared archive. 20833 extract_expsyms_cmds=$lt_extract_expsyms_cmds 20834 20835 # Variables whose values should be saved in libtool wrapper scripts and 20836 # restored at link time. 20837 variables_saved_for_relink=$lt_variables_saved_for_relink 20838 20839 # Do we need the "lib" prefix for modules? 20840 need_lib_prefix=$need_lib_prefix 20841 20842 # Do we need a version for libraries? 20843 need_version=$need_version 20844 20845 # Library versioning type. 20846 version_type=$version_type 20847 20848 # Shared library runtime path variable. 20849 runpath_var=$runpath_var 20850 20851 # Shared library path variable. 20852 shlibpath_var=$shlibpath_var 20853 20854 # Is shlibpath searched before the hard-coded library search path? 20855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20856 20857 # Format of library name prefix. 20858 libname_spec=$lt_libname_spec 20859 20860 # List of archive names. First name is the real one, the rest are links. 20861 # The last name is the one that the linker finds with -lNAME 20862 library_names_spec=$lt_library_names_spec 20863 20864 # The coded name of the library, if different from the real name. 20865 soname_spec=$lt_soname_spec 20866 20867 # Permission mode override for installation of shared libraries. 20868 install_override_mode=$lt_install_override_mode 20869 20870 # Command to use after installation of a shared archive. 20871 postinstall_cmds=$lt_postinstall_cmds 20872 20873 # Command to use after uninstallation of a shared archive. 20874 postuninstall_cmds=$lt_postuninstall_cmds 20875 20876 # Commands used to finish a libtool library installation in a directory. 20877 finish_cmds=$lt_finish_cmds 20878 20879 # As "finish_cmds", except a single script fragment to be evaled but 20880 # not shown. 20881 finish_eval=$lt_finish_eval 20882 20883 # Whether we should hardcode library paths into libraries. 20884 hardcode_into_libs=$hardcode_into_libs 20885 20886 # Compile-time system search path for libraries. 20887 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20888 20889 # Detected run-time system search path for libraries. 20890 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20891 20892 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20893 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20894 20895 # Whether dlopen is supported. 20896 dlopen_support=$enable_dlopen 20897 20898 # Whether dlopen of programs is supported. 20899 dlopen_self=$enable_dlopen_self 20900 20901 # Whether dlopen of statically linked programs is supported. 20902 dlopen_self_static=$enable_dlopen_self_static 20903 20904 # Commands to strip libraries. 20905 old_striplib=$lt_old_striplib 20906 striplib=$lt_striplib 20907 20908 20909 # The linker used to build libraries. 20910 LD=$lt_LD 20911 20912 # How to create reloadable object files. 20913 reload_flag=$lt_reload_flag 20914 reload_cmds=$lt_reload_cmds 20915 20916 # Commands used to build an old-style archive. 20917 old_archive_cmds=$lt_old_archive_cmds 20918 20919 # A language specific compiler. 20920 CC=$lt_compiler 20921 20922 # Is the compiler the GNU compiler? 20923 with_gcc=$GCC 20924 20925 # Compiler flag to turn off builtin functions. 20926 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20927 20928 # Additional compiler flags for building library objects. 20929 pic_flag=$lt_lt_prog_compiler_pic 20930 20931 # How to pass a linker flag through the compiler. 20932 wl=$lt_lt_prog_compiler_wl 20933 20934 # Compiler flag to prevent dynamic linking. 20935 link_static_flag=$lt_lt_prog_compiler_static 20936 20937 # Does compiler simultaneously support -c and -o options? 20938 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20939 20940 # Whether or not to add -lc for building shared libraries. 20941 build_libtool_need_lc=$archive_cmds_need_lc 20942 20943 # Whether or not to disallow shared libs when runtime libs are static. 20944 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20945 20946 # Compiler flag to allow reflexive dlopens. 20947 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20948 20949 # Compiler flag to generate shared objects directly from archives. 20950 whole_archive_flag_spec=$lt_whole_archive_flag_spec 20951 20952 # Whether the compiler copes with passing no objects directly. 20953 compiler_needs_object=$lt_compiler_needs_object 20954 20955 # Create an old-style archive from a shared archive. 20956 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20957 20958 # Create a temporary old-style archive to link instead of a shared archive. 20959 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20960 20961 # Commands used to build a shared archive. 20962 archive_cmds=$lt_archive_cmds 20963 archive_expsym_cmds=$lt_archive_expsym_cmds 20964 20965 # Commands used to build a loadable module if different from building 20966 # a shared archive. 20967 module_cmds=$lt_module_cmds 20968 module_expsym_cmds=$lt_module_expsym_cmds 20969 20970 # Whether we are building with GNU ld or not. 20971 with_gnu_ld=$lt_with_gnu_ld 20972 20973 # Flag that allows shared libraries with undefined symbols to be built. 20974 allow_undefined_flag=$lt_allow_undefined_flag 20975 20976 # Flag that enforces no undefined symbols. 20977 no_undefined_flag=$lt_no_undefined_flag 20978 20979 # Flag to hardcode \$libdir into a binary during linking. 20980 # This must work even if \$libdir does not exist 20981 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20982 20983 # Whether we need a single "-rpath" flag with a separated argument. 20984 hardcode_libdir_separator=$lt_hardcode_libdir_separator 20985 20986 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20987 # DIR into the resulting binary. 20988 hardcode_direct=$hardcode_direct 20989 20990 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20991 # DIR into the resulting binary and the resulting library dependency is 20992 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 20993 # library is relocated. 20994 hardcode_direct_absolute=$hardcode_direct_absolute 20995 20996 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20997 # into the resulting binary. 20998 hardcode_minus_L=$hardcode_minus_L 20999 21000 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21001 # into the resulting binary. 21002 hardcode_shlibpath_var=$hardcode_shlibpath_var 21003 21004 # Set to "yes" if building a shared library automatically hardcodes DIR 21005 # into the library and all subsequent libraries and executables linked 21006 # against it. 21007 hardcode_automatic=$hardcode_automatic 21008 21009 # Set to yes if linker adds runtime paths of dependent libraries 21010 # to runtime path list. 21011 inherit_rpath=$inherit_rpath 21012 21013 # Whether libtool must link a program against all its dependency libraries. 21014 link_all_deplibs=$link_all_deplibs 21015 21016 # Set to "yes" if exported symbols are required. 21017 always_export_symbols=$always_export_symbols 21018 21019 # The commands to list exported symbols. 21020 export_symbols_cmds=$lt_export_symbols_cmds 21021 21022 # Symbols that should not be listed in the preloaded symbols. 21023 exclude_expsyms=$lt_exclude_expsyms 21024 21025 # Symbols that must always be exported. 21026 include_expsyms=$lt_include_expsyms 21027 21028 # Commands necessary for linking programs (against libraries) with templates. 21029 prelink_cmds=$lt_prelink_cmds 21030 21031 # Commands necessary for finishing linking programs. 21032 postlink_cmds=$lt_postlink_cmds 21033 21034 # Specify filename containing input files. 21035 file_list_spec=$lt_file_list_spec 21036 21037 # How to hardcode a shared library path into an executable. 21038 hardcode_action=$hardcode_action 21039 21040 # ### END LIBTOOL CONFIG 21041 21042 _LT_EOF 21043 21044 cat <<'_LT_EOF' >> "$cfgfile" 21045 21046 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21047 21048 # func_munge_path_list VARIABLE PATH 21049 # ----------------------------------- 21050 # VARIABLE is name of variable containing _space_ separated list of 21051 # directories to be munged by the contents of PATH, which is string 21052 # having a format: 21053 # "DIR[:DIR]:" 21054 # string "DIR[ DIR]" will be prepended to VARIABLE 21055 # ":DIR[:DIR]" 21056 # string "DIR[ DIR]" will be appended to VARIABLE 21057 # "DIRP[:DIRP]::[DIRA:]DIRA" 21058 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21059 # "DIRA[ DIRA]" will be appended to VARIABLE 21060 # "DIR[:DIR]" 21061 # VARIABLE will be replaced by "DIR[ DIR]" 21062 func_munge_path_list () 21063 { 21064 case x$2 in 21065 x) 21066 ;; 21067 *:) 21068 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21069 ;; 21070 x:*) 21071 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21072 ;; 21073 *::*) 21074 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21075 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21076 ;; 21077 *) 21078 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21079 ;; 21080 esac 21081 } 21082 21083 21084 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21085 func_cc_basename () 21086 { 21087 for cc_temp in $*""; do 21088 case $cc_temp in 21089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21091 \-*) ;; 21092 *) break;; 21093 esac 21094 done 21095 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21096 } 21097 21098 21099 # ### END FUNCTIONS SHARED WITH CONFIGURE 21100 21101 _LT_EOF 21102 21103 case $host_os in 21104 aix3*) 21105 cat <<\_LT_EOF >> "$cfgfile" 21106 # AIX sometimes has problems with the GCC collect2 program. For some 21107 # reason, if we set the COLLECT_NAMES environment variable, the problems 21108 # vanish in a puff of smoke. 21109 if test set != "${COLLECT_NAMES+set}"; then 21110 COLLECT_NAMES= 21111 export COLLECT_NAMES 21112 fi 21113 _LT_EOF 21114 ;; 21115 esac 21116 21117 21118 ltmain=$ac_aux_dir/ltmain.sh 21119 21120 21121 # We use sed instead of cat because bash on DJGPP gets confused if 21122 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21123 # text mode, it properly converts lines to CR/LF. This bash problem 21124 # is reportedly fixed, but why not run on old versions too? 21125 sed '$q' "$ltmain" >> "$cfgfile" \ 21126 || (rm -f "$cfgfile"; exit 1) 21127 21128 mv -f "$cfgfile" "$ofile" || 21129 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21130 chmod +x "$ofile" 21131 21132 ;; 21133 21134 esac 21135 done # for ac_tag 21136 21137 21138 as_fn_exit 0 21139 _ACEOF 21140 ac_clean_files=$ac_clean_files_save 21141 21142 test $ac_write_fail = 0 || 21143 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21144 21145 21146 # configure is writing to config.log, and then calls config.status. 21147 # config.status does its own redirection, appending to config.log. 21148 # Unfortunately, on DOS this fails, as config.log is still kept open 21149 # by configure, so config.status won't be able to write to it; its 21150 # output is simply discarded. So we exec the FD to /dev/null, 21151 # effectively closing config.log, so it can be properly (re)opened and 21152 # appended to by config.status. When coming back to configure, we 21153 # need to make the FD available again. 21154 if test "$no_create" != yes; then 21155 ac_cs_success=: 21156 ac_config_status_args= 21157 test "$silent" = yes && 21158 ac_config_status_args="$ac_config_status_args --quiet" 21159 exec 5>/dev/null 21160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21161 exec 5>>config.log 21162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21163 # would make configure fail if this is the last instruction. 21164 $ac_cs_success || as_fn_exit 1 21165 fi 21166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21169 fi 21170 21171