1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for xf86-video-mga 2.0.1. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed `exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 195 if (eval "$as_required") 2>/dev/null 196 then : 197 as_have_required=yes 198 else $as_nop 199 as_have_required=no 200 fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202 then : 203 204 else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206 as_found=false 207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208 do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223 then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226 then : 227 break 2 228 fi 229 fi 230 done;; 231 esac 232 as_found=false 233 done 234 IFS=$as_save_IFS 235 if $as_found 236 then : 237 238 else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241 then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243 fi 244 fi 245 246 247 if test "x$CONFIG_SHELL" != x 248 then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno 271 then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 279 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues 280 $0: about your system, including any error possibly output 281 $0: before this message. Then install a modern shell, or 282 $0: manually run the script under such a shell if you do 283 $0: have one." 284 fi 285 exit 1 286 fi 287 fi 288 fi 289 SHELL=${CONFIG_SHELL-/bin/sh} 290 export SHELL 291 # Unset more variables known to interfere with behavior of common tools. 292 CLICOLOR_FORCE= GREP_OPTIONS= 293 unset CLICOLOR_FORCE GREP_OPTIONS 294 295 ## --------------------- ## 296 ## M4sh Shell Functions. ## 297 ## --------------------- ## 298 # as_fn_unset VAR 299 # --------------- 300 # Portably unset VAR. 301 as_fn_unset () 302 { 303 { eval $1=; unset $1;} 304 } 305 as_unset=as_fn_unset 306 307 308 # as_fn_set_status STATUS 309 # ----------------------- 310 # Set $? to STATUS, without forking. 311 as_fn_set_status () 312 { 313 return $1 314 } # as_fn_set_status 315 316 # as_fn_exit STATUS 317 # ----------------- 318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319 as_fn_exit () 320 { 321 set +e 322 as_fn_set_status $1 323 exit $1 324 } # as_fn_exit 325 # as_fn_nop 326 # --------- 327 # Do nothing but, unlike ":", preserve the value of $?. 328 as_fn_nop () 329 { 330 return $? 331 } 332 as_nop=as_fn_nop 333 334 # as_fn_mkdir_p 335 # ------------- 336 # Create "$as_dir" as a directory, including parents if necessary. 337 as_fn_mkdir_p () 338 { 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356 printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380 } # as_fn_mkdir_p 381 382 # as_fn_executable_p FILE 383 # ----------------------- 384 # Test if FILE is an executable regular file. 385 as_fn_executable_p () 386 { 387 test -f "$1" && test -x "$1" 388 } # as_fn_executable_p 389 # as_fn_append VAR VALUE 390 # ---------------------- 391 # Append the text in VALUE to the end of the definition contained in VAR. Take 392 # advantage of any shell optimizations that allow amortized linear growth over 393 # repeated appends, instead of the typical quadratic growth present in naive 394 # implementations. 395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396 then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401 else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406 fi # as_fn_append 407 408 # as_fn_arith ARG... 409 # ------------------ 410 # Perform arithmetic evaluation on the ARGs, and store the result in the 411 # global $as_val. Take advantage of shells that can avoid forks. The arguments 412 # must be portable across $(()) and expr. 413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414 then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419 else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424 fi # as_fn_arith 425 426 # as_fn_nop 427 # --------- 428 # Do nothing but, unlike ":", preserve the value of $?. 429 as_fn_nop () 430 { 431 return $? 432 } 433 as_nop=as_fn_nop 434 435 # as_fn_error STATUS ERROR [LINENO LOG_FD] 436 # ---------------------------------------- 437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439 # script with STATUS, using 1 if that was 0. 440 as_fn_error () 441 { 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449 } # as_fn_error 450 451 if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454 else 455 as_expr=false 456 fi 457 458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460 else 461 as_basename=false 462 fi 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 as_me=`$as_basename -- "$0" || 471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474 printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489 # Avoid depending upon Character Ranges. 490 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493 as_cr_digits='0123456789' 494 as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530 } 531 532 533 # Determine whether it's possible to make 'echo' print without a newline. 534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535 # for compatibility with existing Makefiles. 536 ECHO_C= ECHO_N= ECHO_T= 537 case `echo -n x` in #((((( 538 -n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545 *) 546 ECHO_N='-n';; 547 esac 548 549 # For backward compatibility with old third-party macros, we provide 550 # the shell variables $as_echo and $as_echo_n. New code should use 551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552 as_echo='printf %s\n' 553 as_echo_n='printf %s' 554 555 556 rm -f conf$$ conf$$.exe conf$$.file 557 if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559 else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562 fi 563 if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577 else 578 as_ln_s='cp -pR' 579 fi 580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581 rmdir conf$$.dir 2>/dev/null 582 583 if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585 else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588 fi 589 590 as_test_x='test -x' 591 as_executable_p=as_fn_executable_p 592 593 # Sed expression to map a string onto a valid CPP name. 594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596 # Sed expression to map a string onto a valid variable name. 597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599 SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602 test -n "$DJDIR" || exec 7<&0 </dev/null 603 exec 6>&1 604 605 # Name of the host. 606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607 # so uname gets run too. 608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610 # 611 # Initializations. 612 # 613 ac_default_prefix=/usr/local 614 ac_clean_files= 615 ac_config_libobj_dir=. 616 LIBOBJS= 617 cross_compiling=no 618 subdirs= 619 MFLAGS= 620 MAKEFLAGS= 621 622 # Identity of this package. 623 PACKAGE_NAME='xf86-video-mga' 624 PACKAGE_TARNAME='xf86-video-mga' 625 PACKAGE_VERSION='2.0.1' 626 PACKAGE_STRING='xf86-video-mga 2.0.1' 627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues' 628 PACKAGE_URL='' 629 630 ac_unique_file="Makefile.am" 631 # Factoring default headers for most tests. 632 ac_includes_default="\ 633 #include <stddef.h> 634 #ifdef HAVE_STDIO_H 635 # include <stdio.h> 636 #endif 637 #ifdef HAVE_STDLIB_H 638 # include <stdlib.h> 639 #endif 640 #ifdef HAVE_STRING_H 641 # include <string.h> 642 #endif 643 #ifdef HAVE_INTTYPES_H 644 # include <inttypes.h> 645 #endif 646 #ifdef HAVE_STDINT_H 647 # include <stdint.h> 648 #endif 649 #ifdef HAVE_STRINGS_H 650 # include <strings.h> 651 #endif 652 #ifdef HAVE_SYS_TYPES_H 653 # include <sys/types.h> 654 #endif 655 #ifdef HAVE_SYS_STAT_H 656 # include <sys/stat.h> 657 #endif 658 #ifdef HAVE_UNISTD_H 659 # include <unistd.h> 660 #endif" 661 662 ac_header_c_list= 663 ac_subst_vars='am__EXEEXT_FALSE 664 am__EXEEXT_TRUE 665 LTLIBOBJS 666 LIBOBJS 667 DRIVER_NAME 668 moduledir 669 USE_EXA_FALSE 670 USE_EXA_TRUE 671 CPP 672 XAA_FALSE 673 XAA_TRUE 674 XSERVER_LIBPCIACCESS_FALSE 675 XSERVER_LIBPCIACCESS_TRUE 676 PCIACCESS_LIBS 677 PCIACCESS_CFLAGS 678 DRI_LIBS 679 DRI_CFLAGS 680 DRI_FALSE 681 DRI_TRUE 682 XORG_LIBS 683 XORG_CFLAGS 684 LT_SYS_LIBRARY_PATH 685 OTOOL64 686 OTOOL 687 LIPO 688 NMEDIT 689 DSYMUTIL 690 MANIFEST_TOOL 691 RANLIB 692 ac_ct_AR 693 AR 694 DLLTOOL 695 OBJDUMP 696 FILECMD 697 LN_S 698 NM 699 ac_ct_DUMPBIN 700 DUMPBIN 701 LD 702 FGREP 703 EGREP 704 GREP 705 LIBTOOL 706 CSCOPE 707 ETAGS 708 CTAGS 709 am__fastdepCC_FALSE 710 am__fastdepCC_TRUE 711 CCDEPMODE 712 am__nodep 713 AMDEPBACKSLASH 714 AMDEP_FALSE 715 AMDEP_TRUE 716 am__include 717 DEPDIR 718 am__untar 719 am__tar 720 AMTAR 721 am__leading_dot 722 SET_MAKE 723 AWK 724 mkdir_p 725 MKDIR_P 726 INSTALL_STRIP_PROGRAM 727 STRIP 728 install_sh 729 MAKEINFO 730 AUTOHEADER 731 AUTOMAKE 732 AUTOCONF 733 ACLOCAL 734 VERSION 735 PACKAGE 736 CYGPATH_W 737 am__isrc 738 AM_BACKSLASH 739 AM_DEFAULT_VERBOSITY 740 AM_DEFAULT_V 741 AM_V 742 MAN_SUBSTS 743 XORG_MAN_PAGE 744 ADMIN_MAN_DIR 745 DRIVER_MAN_DIR 746 MISC_MAN_DIR 747 FILE_MAN_DIR 748 LIB_MAN_DIR 749 APP_MAN_DIR 750 ADMIN_MAN_SUFFIX 751 DRIVER_MAN_SUFFIX 752 MISC_MAN_SUFFIX 753 FILE_MAN_SUFFIX 754 LIB_MAN_SUFFIX 755 APP_MAN_SUFFIX 756 SED 757 host_os 758 host_vendor 759 host_cpu 760 host 761 build_os 762 build_vendor 763 build_cpu 764 build 765 INSTALL_CMD 766 PKG_CONFIG_LIBDIR 767 PKG_CONFIG_PATH 768 PKG_CONFIG 769 CHANGELOG_CMD 770 STRICT_CFLAGS 771 CWARNFLAGS 772 BASE_CFLAGS 773 OBJEXT 774 EXEEXT 775 ac_ct_CC 776 CPPFLAGS 777 LDFLAGS 778 CFLAGS 779 CC 780 INSTALL_DATA 781 INSTALL_SCRIPT 782 INSTALL_PROGRAM 783 target_alias 784 host_alias 785 build_alias 786 LIBS 787 ECHO_T 788 ECHO_N 789 ECHO_C 790 DEFS 791 mandir 792 localedir 793 libdir 794 psdir 795 pdfdir 796 dvidir 797 htmldir 798 infodir 799 docdir 800 oldincludedir 801 includedir 802 runstatedir 803 localstatedir 804 sharedstatedir 805 sysconfdir 806 datadir 807 datarootdir 808 libexecdir 809 sbindir 810 bindir 811 program_transform_name 812 prefix 813 exec_prefix 814 PACKAGE_URL 815 PACKAGE_BUGREPORT 816 PACKAGE_STRING 817 PACKAGE_VERSION 818 PACKAGE_TARNAME 819 PACKAGE_NAME 820 PATH_SEPARATOR 821 SHELL 822 am__quote' 823 ac_subst_files='' 824 ac_user_opts=' 825 enable_option_checking 826 enable_selective_werror 827 enable_strict_compilation 828 enable_silent_rules 829 enable_dependency_tracking 830 enable_static 831 enable_shared 832 with_pic 833 enable_fast_install 834 with_aix_soname 835 with_gnu_ld 836 with_sysroot 837 enable_libtool_lock 838 with_xorg_module_dir 839 enable_dri 840 enable_exa 841 enable_xaa 842 ' 843 ac_precious_vars='build_alias 844 host_alias 845 target_alias 846 CC 847 CFLAGS 848 LDFLAGS 849 LIBS 850 CPPFLAGS 851 PKG_CONFIG 852 PKG_CONFIG_PATH 853 PKG_CONFIG_LIBDIR 854 LT_SYS_LIBRARY_PATH 855 XORG_CFLAGS 856 XORG_LIBS 857 DRI_CFLAGS 858 DRI_LIBS 859 PCIACCESS_CFLAGS 860 PCIACCESS_LIBS 861 CPP' 862 863 864 # Initialize some variables set by options. 865 ac_init_help= 866 ac_init_version=false 867 ac_unrecognized_opts= 868 ac_unrecognized_sep= 869 # The variables have the same names as the options, with 870 # dashes changed to underlines. 871 cache_file=/dev/null 872 exec_prefix=NONE 873 no_create= 874 no_recursion= 875 prefix=NONE 876 program_prefix=NONE 877 program_suffix=NONE 878 program_transform_name=s,x,x, 879 silent= 880 site= 881 srcdir= 882 verbose= 883 x_includes=NONE 884 x_libraries=NONE 885 886 # Installation directory options. 887 # These are left unexpanded so users can "make install exec_prefix=/foo" 888 # and all the variables that are supposed to be based on exec_prefix 889 # by default will actually change. 890 # Use braces instead of parens because sh, perl, etc. also accept them. 891 # (The list follows the same order as the GNU Coding Standards.) 892 bindir='${exec_prefix}/bin' 893 sbindir='${exec_prefix}/sbin' 894 libexecdir='${exec_prefix}/libexec' 895 datarootdir='${prefix}/share' 896 datadir='${datarootdir}' 897 sysconfdir='${prefix}/etc' 898 sharedstatedir='${prefix}/com' 899 localstatedir='${prefix}/var' 900 runstatedir='${localstatedir}/run' 901 includedir='${prefix}/include' 902 oldincludedir='/usr/include' 903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 904 infodir='${datarootdir}/info' 905 htmldir='${docdir}' 906 dvidir='${docdir}' 907 pdfdir='${docdir}' 908 psdir='${docdir}' 909 libdir='${exec_prefix}/lib' 910 localedir='${datarootdir}/locale' 911 mandir='${datarootdir}/man' 912 913 ac_prev= 914 ac_dashdash= 915 for ac_option 916 do 917 # If the previous option needs an argument, assign it. 918 if test -n "$ac_prev"; then 919 eval $ac_prev=\$ac_option 920 ac_prev= 921 continue 922 fi 923 924 case $ac_option in 925 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 926 *=) ac_optarg= ;; 927 *) ac_optarg=yes ;; 928 esac 929 930 case $ac_dashdash$ac_option in 931 --) 932 ac_dashdash=yes ;; 933 934 -bindir | --bindir | --bindi | --bind | --bin | --bi) 935 ac_prev=bindir ;; 936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 937 bindir=$ac_optarg ;; 938 939 -build | --build | --buil | --bui | --bu) 940 ac_prev=build_alias ;; 941 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 942 build_alias=$ac_optarg ;; 943 944 -cache-file | --cache-file | --cache-fil | --cache-fi \ 945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 946 ac_prev=cache_file ;; 947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 949 cache_file=$ac_optarg ;; 950 951 --config-cache | -C) 952 cache_file=config.cache ;; 953 954 -datadir | --datadir | --datadi | --datad) 955 ac_prev=datadir ;; 956 -datadir=* | --datadir=* | --datadi=* | --datad=*) 957 datadir=$ac_optarg ;; 958 959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 960 | --dataroo | --dataro | --datar) 961 ac_prev=datarootdir ;; 962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 964 datarootdir=$ac_optarg ;; 965 966 -disable-* | --disable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: \`$ac_useropt'" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975 "enable_$ac_useropt" 976 "*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=no ;; 981 982 -docdir | --docdir | --docdi | --doc | --do) 983 ac_prev=docdir ;; 984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 985 docdir=$ac_optarg ;; 986 987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 988 ac_prev=dvidir ;; 989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 990 dvidir=$ac_optarg ;; 991 992 -enable-* | --enable-*) 993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 994 # Reject names that are not valid shell variable names. 995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 996 as_fn_error $? "invalid feature name: \`$ac_useropt'" 997 ac_useropt_orig=$ac_useropt 998 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 999 case $ac_user_opts in 1000 *" 1001 "enable_$ac_useropt" 1002 "*) ;; 1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1004 ac_unrecognized_sep=', ';; 1005 esac 1006 eval enable_$ac_useropt=\$ac_optarg ;; 1007 1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1010 | --exec | --exe | --ex) 1011 ac_prev=exec_prefix ;; 1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1014 | --exec=* | --exe=* | --ex=*) 1015 exec_prefix=$ac_optarg ;; 1016 1017 -gas | --gas | --ga | --g) 1018 # Obsolete; use --with-gas. 1019 with_gas=yes ;; 1020 1021 -help | --help | --hel | --he | -h) 1022 ac_init_help=long ;; 1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1024 ac_init_help=recursive ;; 1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1026 ac_init_help=short ;; 1027 1028 -host | --host | --hos | --ho) 1029 ac_prev=host_alias ;; 1030 -host=* | --host=* | --hos=* | --ho=*) 1031 host_alias=$ac_optarg ;; 1032 1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1034 ac_prev=htmldir ;; 1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1036 | --ht=*) 1037 htmldir=$ac_optarg ;; 1038 1039 -includedir | --includedir | --includedi | --included | --include \ 1040 | --includ | --inclu | --incl | --inc) 1041 ac_prev=includedir ;; 1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1043 | --includ=* | --inclu=* | --incl=* | --inc=*) 1044 includedir=$ac_optarg ;; 1045 1046 -infodir | --infodir | --infodi | --infod | --info | --inf) 1047 ac_prev=infodir ;; 1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1049 infodir=$ac_optarg ;; 1050 1051 -libdir | --libdir | --libdi | --libd) 1052 ac_prev=libdir ;; 1053 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1054 libdir=$ac_optarg ;; 1055 1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1057 | --libexe | --libex | --libe) 1058 ac_prev=libexecdir ;; 1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1060 | --libexe=* | --libex=* | --libe=*) 1061 libexecdir=$ac_optarg ;; 1062 1063 -localedir | --localedir | --localedi | --localed | --locale) 1064 ac_prev=localedir ;; 1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1066 localedir=$ac_optarg ;; 1067 1068 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1069 | --localstate | --localstat | --localsta | --localst | --locals) 1070 ac_prev=localstatedir ;; 1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1073 localstatedir=$ac_optarg ;; 1074 1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1076 ac_prev=mandir ;; 1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1078 mandir=$ac_optarg ;; 1079 1080 -nfp | --nfp | --nf) 1081 # Obsolete; use --without-fp. 1082 with_fp=no ;; 1083 1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1085 | --no-cr | --no-c | -n) 1086 no_create=yes ;; 1087 1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1090 no_recursion=yes ;; 1091 1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1094 | --oldin | --oldi | --old | --ol | --o) 1095 ac_prev=oldincludedir ;; 1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1099 oldincludedir=$ac_optarg ;; 1100 1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1102 ac_prev=prefix ;; 1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1104 prefix=$ac_optarg ;; 1105 1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1107 | --program-pre | --program-pr | --program-p) 1108 ac_prev=program_prefix ;; 1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1111 program_prefix=$ac_optarg ;; 1112 1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1114 | --program-suf | --program-su | --program-s) 1115 ac_prev=program_suffix ;; 1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1118 program_suffix=$ac_optarg ;; 1119 1120 -program-transform-name | --program-transform-name \ 1121 | --program-transform-nam | --program-transform-na \ 1122 | --program-transform-n | --program-transform- \ 1123 | --program-transform | --program-transfor \ 1124 | --program-transfo | --program-transf \ 1125 | --program-trans | --program-tran \ 1126 | --progr-tra | --program-tr | --program-t) 1127 ac_prev=program_transform_name ;; 1128 -program-transform-name=* | --program-transform-name=* \ 1129 | --program-transform-nam=* | --program-transform-na=* \ 1130 | --program-transform-n=* | --program-transform-=* \ 1131 | --program-transform=* | --program-transfor=* \ 1132 | --program-transfo=* | --program-transf=* \ 1133 | --program-trans=* | --program-tran=* \ 1134 | --progr-tra=* | --program-tr=* | --program-t=*) 1135 program_transform_name=$ac_optarg ;; 1136 1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1138 ac_prev=pdfdir ;; 1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1140 pdfdir=$ac_optarg ;; 1141 1142 -psdir | --psdir | --psdi | --psd | --ps) 1143 ac_prev=psdir ;; 1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1145 psdir=$ac_optarg ;; 1146 1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1148 | -silent | --silent | --silen | --sile | --sil) 1149 silent=yes ;; 1150 1151 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1152 | --runstate | --runstat | --runsta | --runst | --runs \ 1153 | --run | --ru | --r) 1154 ac_prev=runstatedir ;; 1155 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1156 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1157 | --run=* | --ru=* | --r=*) 1158 runstatedir=$ac_optarg ;; 1159 1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1161 ac_prev=sbindir ;; 1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1163 | --sbi=* | --sb=*) 1164 sbindir=$ac_optarg ;; 1165 1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1168 | --sharedst | --shareds | --shared | --share | --shar \ 1169 | --sha | --sh) 1170 ac_prev=sharedstatedir ;; 1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1174 | --sha=* | --sh=*) 1175 sharedstatedir=$ac_optarg ;; 1176 1177 -site | --site | --sit) 1178 ac_prev=site ;; 1179 -site=* | --site=* | --sit=*) 1180 site=$ac_optarg ;; 1181 1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1183 ac_prev=srcdir ;; 1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1185 srcdir=$ac_optarg ;; 1186 1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1188 | --syscon | --sysco | --sysc | --sys | --sy) 1189 ac_prev=sysconfdir ;; 1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1192 sysconfdir=$ac_optarg ;; 1193 1194 -target | --target | --targe | --targ | --tar | --ta | --t) 1195 ac_prev=target_alias ;; 1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1197 target_alias=$ac_optarg ;; 1198 1199 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1200 verbose=yes ;; 1201 1202 -version | --version | --versio | --versi | --vers | -V) 1203 ac_init_version=: ;; 1204 1205 -with-* | --with-*) 1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1207 # Reject names that are not valid shell variable names. 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1209 as_fn_error $? "invalid package name: \`$ac_useropt'" 1210 ac_useropt_orig=$ac_useropt 1211 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1212 case $ac_user_opts in 1213 *" 1214 "with_$ac_useropt" 1215 "*) ;; 1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1217 ac_unrecognized_sep=', ';; 1218 esac 1219 eval with_$ac_useropt=\$ac_optarg ;; 1220 1221 -without-* | --without-*) 1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1223 # Reject names that are not valid shell variable names. 1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1225 as_fn_error $? "invalid package name: \`$ac_useropt'" 1226 ac_useropt_orig=$ac_useropt 1227 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1228 case $ac_user_opts in 1229 *" 1230 "with_$ac_useropt" 1231 "*) ;; 1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1233 ac_unrecognized_sep=', ';; 1234 esac 1235 eval with_$ac_useropt=no ;; 1236 1237 --x) 1238 # Obsolete; use --with-x. 1239 with_x=yes ;; 1240 1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1242 | --x-incl | --x-inc | --x-in | --x-i) 1243 ac_prev=x_includes ;; 1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1246 x_includes=$ac_optarg ;; 1247 1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1250 ac_prev=x_libraries ;; 1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1253 x_libraries=$ac_optarg ;; 1254 1255 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1256 Try \`$0 --help' for more information" 1257 ;; 1258 1259 *=*) 1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1261 # Reject names that are not valid shell variable names. 1262 case $ac_envvar in #( 1263 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1265 esac 1266 eval $ac_envvar=\$ac_optarg 1267 export $ac_envvar ;; 1268 1269 *) 1270 # FIXME: should be removed in autoconf 3.0. 1271 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1273 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1275 ;; 1276 1277 esac 1278 done 1279 1280 if test -n "$ac_prev"; then 1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1282 as_fn_error $? "missing argument to $ac_option" 1283 fi 1284 1285 if test -n "$ac_unrecognized_opts"; then 1286 case $enable_option_checking in 1287 no) ;; 1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1289 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1290 esac 1291 fi 1292 1293 # Check all directory arguments for consistency. 1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1295 datadir sysconfdir sharedstatedir localstatedir includedir \ 1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1297 libdir localedir mandir runstatedir 1298 do 1299 eval ac_val=\$$ac_var 1300 # Remove trailing slashes. 1301 case $ac_val in 1302 */ ) 1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1304 eval $ac_var=\$ac_val;; 1305 esac 1306 # Be sure to have absolute directory names. 1307 case $ac_val in 1308 [\\/$]* | ?:[\\/]* ) continue;; 1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1310 esac 1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1312 done 1313 1314 # There might be people who depend on the old broken behavior: `$host' 1315 # used to hold the argument of --host etc. 1316 # FIXME: To remove some day. 1317 build=$build_alias 1318 host=$host_alias 1319 target=$target_alias 1320 1321 # FIXME: To remove some day. 1322 if test "x$host_alias" != x; then 1323 if test "x$build_alias" = x; then 1324 cross_compiling=maybe 1325 elif test "x$build_alias" != "x$host_alias"; then 1326 cross_compiling=yes 1327 fi 1328 fi 1329 1330 ac_tool_prefix= 1331 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1332 1333 test "$silent" = yes && exec 6>/dev/null 1334 1335 1336 ac_pwd=`pwd` && test -n "$ac_pwd" && 1337 ac_ls_di=`ls -di .` && 1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1339 as_fn_error $? "working directory cannot be determined" 1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1341 as_fn_error $? "pwd does not report name of working directory" 1342 1343 1344 # Find the source files, if location was not specified. 1345 if test -z "$srcdir"; then 1346 ac_srcdir_defaulted=yes 1347 # Try the directory containing this script, then the parent directory. 1348 ac_confdir=`$as_dirname -- "$as_myself" || 1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1350 X"$as_myself" : 'X\(//\)[^/]' \| \ 1351 X"$as_myself" : 'X\(//\)$' \| \ 1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1353 printf "%s\n" X"$as_myself" | 1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\/\)[^/].*/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\/\)$/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\).*/{ 1367 s//\1/ 1368 q 1369 } 1370 s/.*/./; q'` 1371 srcdir=$ac_confdir 1372 if test ! -r "$srcdir/$ac_unique_file"; then 1373 srcdir=.. 1374 fi 1375 else 1376 ac_srcdir_defaulted=no 1377 fi 1378 if test ! -r "$srcdir/$ac_unique_file"; then 1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1381 fi 1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1383 ac_abs_confdir=`( 1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1385 pwd)` 1386 # When building in place, set srcdir=. 1387 if test "$ac_abs_confdir" = "$ac_pwd"; then 1388 srcdir=. 1389 fi 1390 # Remove unnecessary trailing slashes from srcdir. 1391 # Double slashes in file names in object file debugging info 1392 # mess up M-x gdb in Emacs. 1393 case $srcdir in 1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1395 esac 1396 for ac_var in $ac_precious_vars; do 1397 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1398 eval ac_env_${ac_var}_value=\$${ac_var} 1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1400 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1401 done 1402 1403 # 1404 # Report the --help message. 1405 # 1406 if test "$ac_init_help" = "long"; then 1407 # Omit some internal or obsolete options to make the list less imposing. 1408 # This message is too long to be a string in the A/UX 3.1 sh. 1409 cat <<_ACEOF 1410 \`configure' configures xf86-video-mga 2.0.1 to adapt to many kinds of systems. 1411 1412 Usage: $0 [OPTION]... [VAR=VALUE]... 1413 1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1415 VAR=VALUE. See below for descriptions of some of the useful variables. 1416 1417 Defaults for the options are specified in brackets. 1418 1419 Configuration: 1420 -h, --help display this help and exit 1421 --help=short display options specific to this package 1422 --help=recursive display the short help of all the included packages 1423 -V, --version display version information and exit 1424 -q, --quiet, --silent do not print \`checking ...' messages 1425 --cache-file=FILE cache test results in FILE [disabled] 1426 -C, --config-cache alias for \`--cache-file=config.cache' 1427 -n, --no-create do not create output files 1428 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1429 1430 Installation directories: 1431 --prefix=PREFIX install architecture-independent files in PREFIX 1432 [$ac_default_prefix] 1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1434 [PREFIX] 1435 1436 By default, \`make install' will install all the files in 1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1439 for instance \`--prefix=\$HOME'. 1440 1441 For better control, use the options below. 1442 1443 Fine tuning of the installation directories: 1444 --bindir=DIR user executables [EPREFIX/bin] 1445 --sbindir=DIR system admin executables [EPREFIX/sbin] 1446 --libexecdir=DIR program executables [EPREFIX/libexec] 1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1450 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1451 --libdir=DIR object code libraries [EPREFIX/lib] 1452 --includedir=DIR C header files [PREFIX/include] 1453 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1456 --infodir=DIR info documentation [DATAROOTDIR/info] 1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1458 --mandir=DIR man documentation [DATAROOTDIR/man] 1459 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-mga] 1460 --htmldir=DIR html documentation [DOCDIR] 1461 --dvidir=DIR dvi documentation [DOCDIR] 1462 --pdfdir=DIR pdf documentation [DOCDIR] 1463 --psdir=DIR ps documentation [DOCDIR] 1464 _ACEOF 1465 1466 cat <<\_ACEOF 1467 1468 Program names: 1469 --program-prefix=C prepend C to installed program names 1470 --program-suffix=SUFFIX append SUFFIX to installed program names 1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1472 1473 System types: 1474 --build=BUILD configure for building on BUILD [guessed] 1475 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1476 _ACEOF 1477 fi 1478 1479 if test -n "$ac_init_help"; then 1480 case $ac_init_help in 1481 short | recursive ) echo "Configuration of xf86-video-mga 2.0.1:";; 1482 esac 1483 cat <<\_ACEOF 1484 1485 Optional Features: 1486 --disable-option-checking ignore unrecognized --enable/--with options 1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1489 --disable-selective-werror 1490 Turn off selective compiler errors. (default: 1491 enabled) 1492 --enable-strict-compilation 1493 Enable all warnings from compiler and make them 1494 errors (default: disabled) 1495 --enable-silent-rules less verbose build output (undo: "make V=1") 1496 --disable-silent-rules verbose build output (undo: "make V=0") 1497 --enable-dependency-tracking 1498 do not reject slow dependency extractors 1499 --disable-dependency-tracking 1500 speeds up one-time build 1501 --enable-static[=PKGS] build static libraries [default=no] 1502 --enable-shared[=PKGS] build shared libraries [default=yes] 1503 --enable-fast-install[=PKGS] 1504 optimize for fast installation [default=yes] 1505 --disable-libtool-lock avoid locking (might break parallel builds) 1506 --disable-dri Disable DRI support [[default=auto]] 1507 --disable-exa Disable EXA support [[default=enabled]] 1508 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1509 [default=auto] 1510 1511 Optional Packages: 1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1514 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1515 both] 1516 --with-aix-soname=aix|svr4|both 1517 shared library versioning (aka "SONAME") variant to 1518 provide on AIX, [default=aix]. 1519 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1520 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1521 compiler's sysroot if not specified). 1522 --with-xorg-module-dir=DIR 1523 Default xorg module directory 1524 [[default=$libdir/xorg/modules]] 1525 1526 Some influential environment variables: 1527 CC C compiler command 1528 CFLAGS C compiler flags 1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1530 nonstandard directory <lib dir> 1531 LIBS libraries to pass to the linker, e.g. -l<library> 1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1533 you have headers in a nonstandard directory <include dir> 1534 PKG_CONFIG path to pkg-config utility 1535 PKG_CONFIG_PATH 1536 directories to add to pkg-config's search path 1537 PKG_CONFIG_LIBDIR 1538 path overriding pkg-config's built-in search path 1539 LT_SYS_LIBRARY_PATH 1540 User-defined run-time library search path. 1541 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1542 XORG_LIBS linker flags for XORG, overriding pkg-config 1543 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1544 DRI_LIBS linker flags for DRI, overriding pkg-config 1545 PCIACCESS_CFLAGS 1546 C compiler flags for PCIACCESS, overriding pkg-config 1547 PCIACCESS_LIBS 1548 linker flags for PCIACCESS, overriding pkg-config 1549 CPP C preprocessor 1550 1551 Use these variables to override the choices made by `configure' or to help 1552 it to find libraries and programs with nonstandard names/locations. 1553 1554 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues>. 1555 _ACEOF 1556 ac_status=$? 1557 fi 1558 1559 if test "$ac_init_help" = "recursive"; then 1560 # If there are subdirs, report their specific --help. 1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1562 test -d "$ac_dir" || 1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1564 continue 1565 ac_builddir=. 1566 1567 case "$ac_dir" in 1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569 *) 1570 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1571 # A ".." for each directory in $ac_dir_suffix. 1572 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1573 case $ac_top_builddir_sub in 1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1576 esac ;; 1577 esac 1578 ac_abs_top_builddir=$ac_pwd 1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1580 # for backward compatibility: 1581 ac_top_builddir=$ac_top_build_prefix 1582 1583 case $srcdir in 1584 .) # We are building in place. 1585 ac_srcdir=. 1586 ac_top_srcdir=$ac_top_builddir_sub 1587 ac_abs_top_srcdir=$ac_pwd ;; 1588 [\\/]* | ?:[\\/]* ) # Absolute name. 1589 ac_srcdir=$srcdir$ac_dir_suffix; 1590 ac_top_srcdir=$srcdir 1591 ac_abs_top_srcdir=$srcdir ;; 1592 *) # Relative name. 1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1594 ac_top_srcdir=$ac_top_build_prefix$srcdir 1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1596 esac 1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1598 1599 cd "$ac_dir" || { ac_status=$?; continue; } 1600 # Check for configure.gnu first; this name is used for a wrapper for 1601 # Metaconfig's "Configure" on case-insensitive file systems. 1602 if test -f "$ac_srcdir/configure.gnu"; then 1603 echo && 1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1605 elif test -f "$ac_srcdir/configure"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure" --help=recursive 1608 else 1609 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1610 fi || ac_status=$? 1611 cd "$ac_pwd" || { ac_status=$?; break; } 1612 done 1613 fi 1614 1615 test -n "$ac_init_help" && exit $ac_status 1616 if $ac_init_version; then 1617 cat <<\_ACEOF 1618 xf86-video-mga configure 2.0.1 1619 generated by GNU Autoconf 2.71 1620 1621 Copyright (C) 2021 Free Software Foundation, Inc. 1622 This configure script is free software; the Free Software Foundation 1623 gives unlimited permission to copy, distribute and modify it. 1624 _ACEOF 1625 exit 1626 fi 1627 1628 ## ------------------------ ## 1629 ## Autoconf initialization. ## 1630 ## ------------------------ ## 1631 1632 # ac_fn_c_try_compile LINENO 1633 # -------------------------- 1634 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1635 ac_fn_c_try_compile () 1636 { 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 rm -f conftest.$ac_objext conftest.beam 1639 if { { ac_try="$ac_compile" 1640 case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643 esac 1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645 printf "%s\n" "$ac_try_echo"; } >&5 1646 (eval "$ac_compile") 2>conftest.err 1647 ac_status=$? 1648 if test -s conftest.err; then 1649 grep -v '^ *+' conftest.err >conftest.er1 1650 cat conftest.er1 >&5 1651 mv -f conftest.er1 conftest.err 1652 fi 1653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } && { 1655 test -z "$ac_c_werror_flag" || 1656 test ! -s conftest.err 1657 } && test -s conftest.$ac_objext 1658 then : 1659 ac_retval=0 1660 else $as_nop 1661 printf "%s\n" "$as_me: failed program was:" >&5 1662 sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=1 1665 fi 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669 } # ac_fn_c_try_compile 1670 1671 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1672 # ------------------------------------------------------------------ 1673 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1674 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1675 ac_fn_check_decl () 1676 { 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 as_decl_name=`echo $2|sed 's/ *(.*//'` 1679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1680 printf %s "checking whether $as_decl_name is declared... " >&6; } 1681 if eval test \${$3+y} 1682 then : 1683 printf %s "(cached) " >&6 1684 else $as_nop 1685 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1686 eval ac_save_FLAGS=\$$6 1687 as_fn_append $6 " $5" 1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1689 /* end confdefs.h. */ 1690 $4 1691 int 1692 main (void) 1693 { 1694 #ifndef $as_decl_name 1695 #ifdef __cplusplus 1696 (void) $as_decl_use; 1697 #else 1698 (void) $as_decl_name; 1699 #endif 1700 #endif 1701 1702 ; 1703 return 0; 1704 } 1705 _ACEOF 1706 if ac_fn_c_try_compile "$LINENO" 1707 then : 1708 eval "$3=yes" 1709 else $as_nop 1710 eval "$3=no" 1711 fi 1712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1713 eval $6=\$ac_save_FLAGS 1714 1715 fi 1716 eval ac_res=\$$3 1717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1718 printf "%s\n" "$ac_res" >&6; } 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 1721 } # ac_fn_check_decl 1722 1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1724 # ------------------------------------------------------- 1725 # Tests whether HEADER exists and can be compiled using the include files in 1726 # INCLUDES, setting the cache variable VAR accordingly. 1727 ac_fn_c_check_header_compile () 1728 { 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1731 printf %s "checking for $2... " >&6; } 1732 if eval test \${$3+y} 1733 then : 1734 printf %s "(cached) " >&6 1735 else $as_nop 1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737 /* end confdefs.h. */ 1738 $4 1739 #include <$2> 1740 _ACEOF 1741 if ac_fn_c_try_compile "$LINENO" 1742 then : 1743 eval "$3=yes" 1744 else $as_nop 1745 eval "$3=no" 1746 fi 1747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1748 fi 1749 eval ac_res=\$$3 1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751 printf "%s\n" "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754 } # ac_fn_c_check_header_compile 1755 1756 # ac_fn_c_try_link LINENO 1757 # ----------------------- 1758 # Try to link conftest.$ac_ext, and return whether this succeeded. 1759 ac_fn_c_try_link () 1760 { 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1763 if { { ac_try="$ac_link" 1764 case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767 esac 1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769 printf "%s\n" "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>conftest.err 1771 ac_status=$? 1772 if test -s conftest.err; then 1773 grep -v '^ *+' conftest.err >conftest.er1 1774 cat conftest.er1 >&5 1775 mv -f conftest.er1 conftest.err 1776 fi 1777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { 1779 test -z "$ac_c_werror_flag" || 1780 test ! -s conftest.err 1781 } && test -s conftest$ac_exeext && { 1782 test "$cross_compiling" = yes || 1783 test -x conftest$ac_exeext 1784 } 1785 then : 1786 ac_retval=0 1787 else $as_nop 1788 printf "%s\n" "$as_me: failed program was:" >&5 1789 sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=1 1792 fi 1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1795 # interfere with the next link command; also delete a directory that is 1796 # left behind by Apple's compiler. We do this before executing the actions. 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801 } # ac_fn_c_try_link 1802 1803 # ac_fn_c_check_func LINENO FUNC VAR 1804 # ---------------------------------- 1805 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1806 ac_fn_c_check_func () 1807 { 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810 printf %s "checking for $2... " >&6; } 1811 if eval test \${$3+y} 1812 then : 1813 printf %s "(cached) " >&6 1814 else $as_nop 1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816 /* end confdefs.h. */ 1817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1819 #define $2 innocuous_$2 1820 1821 /* System header to define __stub macros and hopefully few prototypes, 1822 which can conflict with char $2 (); below. */ 1823 1824 #include <limits.h> 1825 #undef $2 1826 1827 /* Override any GCC internal prototype to avoid an error. 1828 Use char because int might match the return type of a GCC 1829 builtin and then its argument prototype would still apply. */ 1830 #ifdef __cplusplus 1831 extern "C" 1832 #endif 1833 char $2 (); 1834 /* The GNU C library defines this for functions which it implements 1835 to always fail with ENOSYS. Some functions are actually named 1836 something starting with __ and the normal name is an alias. */ 1837 #if defined __stub_$2 || defined __stub___$2 1838 choke me 1839 #endif 1840 1841 int 1842 main (void) 1843 { 1844 return $2 (); 1845 ; 1846 return 0; 1847 } 1848 _ACEOF 1849 if ac_fn_c_try_link "$LINENO" 1850 then : 1851 eval "$3=yes" 1852 else $as_nop 1853 eval "$3=no" 1854 fi 1855 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1856 conftest$ac_exeext conftest.$ac_ext 1857 fi 1858 eval ac_res=\$$3 1859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1860 printf "%s\n" "$ac_res" >&6; } 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 1863 } # ac_fn_c_check_func 1864 1865 # ac_fn_c_try_cpp LINENO 1866 # ---------------------- 1867 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1868 ac_fn_c_try_cpp () 1869 { 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 if { { ac_try="$ac_cpp conftest.$ac_ext" 1872 case "(($ac_try" in 1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1874 *) ac_try_echo=$ac_try;; 1875 esac 1876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1877 printf "%s\n" "$ac_try_echo"; } >&5 1878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1879 ac_status=$? 1880 if test -s conftest.err; then 1881 grep -v '^ *+' conftest.err >conftest.er1 1882 cat conftest.er1 >&5 1883 mv -f conftest.er1 conftest.err 1884 fi 1885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1886 test $ac_status = 0; } > conftest.i && { 1887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1888 test ! -s conftest.err 1889 } 1890 then : 1891 ac_retval=0 1892 else $as_nop 1893 printf "%s\n" "$as_me: failed program was:" >&5 1894 sed 's/^/| /' conftest.$ac_ext >&5 1895 1896 ac_retval=1 1897 fi 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 as_fn_set_status $ac_retval 1900 1901 } # ac_fn_c_try_cpp 1902 ac_configure_args_raw= 1903 for ac_arg 1904 do 1905 case $ac_arg in 1906 *\'*) 1907 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1908 esac 1909 as_fn_append ac_configure_args_raw " '$ac_arg'" 1910 done 1911 1912 case $ac_configure_args_raw in 1913 *$as_nl*) 1914 ac_safe_unquote= ;; 1915 *) 1916 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1917 ac_unsafe_a="$ac_unsafe_z#~" 1918 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1919 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1920 esac 1921 1922 cat >config.log <<_ACEOF 1923 This file contains any messages produced by compilers while 1924 running configure, to aid debugging if configure makes a mistake. 1925 1926 It was created by xf86-video-mga $as_me 2.0.1, which was 1927 generated by GNU Autoconf 2.71. Invocation command line was 1928 1929 $ $0$ac_configure_args_raw 1930 1931 _ACEOF 1932 exec 5>>config.log 1933 { 1934 cat <<_ASUNAME 1935 ## --------- ## 1936 ## Platform. ## 1937 ## --------- ## 1938 1939 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1940 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1941 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1942 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1943 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1944 1945 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1946 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1947 1948 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1949 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1950 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1951 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1952 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1953 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1954 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1955 1956 _ASUNAME 1957 1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1959 for as_dir in $PATH 1960 do 1961 IFS=$as_save_IFS 1962 case $as_dir in #((( 1963 '') as_dir=./ ;; 1964 */) ;; 1965 *) as_dir=$as_dir/ ;; 1966 esac 1967 printf "%s\n" "PATH: $as_dir" 1968 done 1969 IFS=$as_save_IFS 1970 1971 } >&5 1972 1973 cat >&5 <<_ACEOF 1974 1975 1976 ## ----------- ## 1977 ## Core tests. ## 1978 ## ----------- ## 1979 1980 _ACEOF 1981 1982 1983 # Keep a trace of the command line. 1984 # Strip out --no-create and --no-recursion so they do not pile up. 1985 # Strip out --silent because we don't want to record it for future runs. 1986 # Also quote any args containing shell meta-characters. 1987 # Make two passes to allow for proper duplicate-argument suppression. 1988 ac_configure_args= 1989 ac_configure_args0= 1990 ac_configure_args1= 1991 ac_must_keep_next=false 1992 for ac_pass in 1 2 1993 do 1994 for ac_arg 1995 do 1996 case $ac_arg in 1997 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1999 | -silent | --silent | --silen | --sile | --sil) 2000 continue ;; 2001 *\'*) 2002 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2003 esac 2004 case $ac_pass in 2005 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2006 2) 2007 as_fn_append ac_configure_args1 " '$ac_arg'" 2008 if test $ac_must_keep_next = true; then 2009 ac_must_keep_next=false # Got value, back to normal. 2010 else 2011 case $ac_arg in 2012 *=* | --config-cache | -C | -disable-* | --disable-* \ 2013 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2014 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2015 | -with-* | --with-* | -without-* | --without-* | --x) 2016 case "$ac_configure_args0 " in 2017 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2018 esac 2019 ;; 2020 -* ) ac_must_keep_next=true ;; 2021 esac 2022 fi 2023 as_fn_append ac_configure_args " '$ac_arg'" 2024 ;; 2025 esac 2026 done 2027 done 2028 { ac_configure_args0=; unset ac_configure_args0;} 2029 { ac_configure_args1=; unset ac_configure_args1;} 2030 2031 # When interrupted or exit'd, cleanup temporary files, and complete 2032 # config.log. We remove comments because anyway the quotes in there 2033 # would cause problems or look ugly. 2034 # WARNING: Use '\'' to represent an apostrophe within the trap. 2035 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2036 trap 'exit_status=$? 2037 # Sanitize IFS. 2038 IFS=" "" $as_nl" 2039 # Save into config.log some information that might help in debugging. 2040 { 2041 echo 2042 2043 printf "%s\n" "## ---------------- ## 2044 ## Cache variables. ## 2045 ## ---------------- ##" 2046 echo 2047 # The following way of writing the cache mishandles newlines in values, 2048 ( 2049 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2050 eval ac_val=\$$ac_var 2051 case $ac_val in #( 2052 *${as_nl}*) 2053 case $ac_var in #( 2054 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2055 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2056 esac 2057 case $ac_var in #( 2058 _ | IFS | as_nl) ;; #( 2059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2060 *) { eval $ac_var=; unset $ac_var;} ;; 2061 esac ;; 2062 esac 2063 done 2064 (set) 2>&1 | 2065 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2066 *${as_nl}ac_space=\ *) 2067 sed -n \ 2068 "s/'\''/'\''\\\\'\'''\''/g; 2069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2070 ;; #( 2071 *) 2072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2073 ;; 2074 esac | 2075 sort 2076 ) 2077 echo 2078 2079 printf "%s\n" "## ----------------- ## 2080 ## Output variables. ## 2081 ## ----------------- ##" 2082 echo 2083 for ac_var in $ac_subst_vars 2084 do 2085 eval ac_val=\$$ac_var 2086 case $ac_val in 2087 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2088 esac 2089 printf "%s\n" "$ac_var='\''$ac_val'\''" 2090 done | sort 2091 echo 2092 2093 if test -n "$ac_subst_files"; then 2094 printf "%s\n" "## ------------------- ## 2095 ## File substitutions. ## 2096 ## ------------------- ##" 2097 echo 2098 for ac_var in $ac_subst_files 2099 do 2100 eval ac_val=\$$ac_var 2101 case $ac_val in 2102 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2103 esac 2104 printf "%s\n" "$ac_var='\''$ac_val'\''" 2105 done | sort 2106 echo 2107 fi 2108 2109 if test -s confdefs.h; then 2110 printf "%s\n" "## ----------- ## 2111 ## confdefs.h. ## 2112 ## ----------- ##" 2113 echo 2114 cat confdefs.h 2115 echo 2116 fi 2117 test "$ac_signal" != 0 && 2118 printf "%s\n" "$as_me: caught signal $ac_signal" 2119 printf "%s\n" "$as_me: exit $exit_status" 2120 } >&5 2121 rm -f core *.core core.conftest.* && 2122 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2123 exit $exit_status 2124 ' 0 2125 for ac_signal in 1 2 13 15; do 2126 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2127 done 2128 ac_signal=0 2129 2130 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2131 rm -f -r conftest* confdefs.h 2132 2133 printf "%s\n" "/* confdefs.h */" > confdefs.h 2134 2135 # Predefined preprocessor variables. 2136 2137 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2138 2139 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2140 2141 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2142 2143 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2144 2145 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2146 2147 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2148 2149 2150 # Let the site file select an alternate cache file if it wants to. 2151 # Prefer an explicitly selected file to automatically selected ones. 2152 if test -n "$CONFIG_SITE"; then 2153 ac_site_files="$CONFIG_SITE" 2154 elif test "x$prefix" != xNONE; then 2155 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2156 else 2157 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2158 fi 2159 2160 for ac_site_file in $ac_site_files 2161 do 2162 case $ac_site_file in #( 2163 */*) : 2164 ;; #( 2165 *) : 2166 ac_site_file=./$ac_site_file ;; 2167 esac 2168 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2170 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2171 sed 's/^/| /' "$ac_site_file" >&5 2172 . "$ac_site_file" \ 2173 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2174 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2175 as_fn_error $? "failed to load site script $ac_site_file 2176 See \`config.log' for more details" "$LINENO" 5; } 2177 fi 2178 done 2179 2180 if test -r "$cache_file"; then 2181 # Some versions of bash will fail to source /dev/null (special files 2182 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2183 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2185 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2186 case $cache_file in 2187 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2188 *) . "./$cache_file";; 2189 esac 2190 fi 2191 else 2192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2193 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2194 >$cache_file 2195 fi 2196 2197 # Test code for whether the C compiler supports C89 (global declarations) 2198 ac_c_conftest_c89_globals=' 2199 /* Does the compiler advertise C89 conformance? 2200 Do not test the value of __STDC__, because some compilers set it to 0 2201 while being otherwise adequately conformant. */ 2202 #if !defined __STDC__ 2203 # error "Compiler does not advertise C89 conformance" 2204 #endif 2205 2206 #include <stddef.h> 2207 #include <stdarg.h> 2208 struct stat; 2209 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2210 struct buf { int x; }; 2211 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2212 static char *e (p, i) 2213 char **p; 2214 int i; 2215 { 2216 return p[i]; 2217 } 2218 static char *f (char * (*g) (char **, int), char **p, ...) 2219 { 2220 char *s; 2221 va_list v; 2222 va_start (v,p); 2223 s = g (p, va_arg (v,int)); 2224 va_end (v); 2225 return s; 2226 } 2227 2228 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2229 function prototypes and stuff, but not \xHH hex character constants. 2230 These do not provoke an error unfortunately, instead are silently treated 2231 as an "x". The following induces an error, until -std is added to get 2232 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2233 array size at least. It is necessary to write \x00 == 0 to get something 2234 that is true only with -std. */ 2235 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2236 2237 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2238 inside strings and character constants. */ 2239 #define FOO(x) '\''x'\'' 2240 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2241 2242 int test (int i, double x); 2243 struct s1 {int (*f) (int a);}; 2244 struct s2 {int (*f) (double a);}; 2245 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2246 int, int);' 2247 2248 # Test code for whether the C compiler supports C89 (body of main). 2249 ac_c_conftest_c89_main=' 2250 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2251 ' 2252 2253 # Test code for whether the C compiler supports C99 (global declarations) 2254 ac_c_conftest_c99_globals=' 2255 // Does the compiler advertise C99 conformance? 2256 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2257 # error "Compiler does not advertise C99 conformance" 2258 #endif 2259 2260 #include <stdbool.h> 2261 extern int puts (const char *); 2262 extern int printf (const char *, ...); 2263 extern int dprintf (int, const char *, ...); 2264 extern void *malloc (size_t); 2265 2266 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2267 // dprintf is used instead of fprintf to avoid needing to declare 2268 // FILE and stderr. 2269 #define debug(...) dprintf (2, __VA_ARGS__) 2270 #define showlist(...) puts (#__VA_ARGS__) 2271 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2272 static void 2273 test_varargs_macros (void) 2274 { 2275 int x = 1234; 2276 int y = 5678; 2277 debug ("Flag"); 2278 debug ("X = %d\n", x); 2279 showlist (The first, second, and third items.); 2280 report (x>y, "x is %d but y is %d", x, y); 2281 } 2282 2283 // Check long long types. 2284 #define BIG64 18446744073709551615ull 2285 #define BIG32 4294967295ul 2286 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2287 #if !BIG_OK 2288 #error "your preprocessor is broken" 2289 #endif 2290 #if BIG_OK 2291 #else 2292 #error "your preprocessor is broken" 2293 #endif 2294 static long long int bignum = -9223372036854775807LL; 2295 static unsigned long long int ubignum = BIG64; 2296 2297 struct incomplete_array 2298 { 2299 int datasize; 2300 double data[]; 2301 }; 2302 2303 struct named_init { 2304 int number; 2305 const wchar_t *name; 2306 double average; 2307 }; 2308 2309 typedef const char *ccp; 2310 2311 static inline int 2312 test_restrict (ccp restrict text) 2313 { 2314 // See if C++-style comments work. 2315 // Iterate through items via the restricted pointer. 2316 // Also check for declarations in for loops. 2317 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2318 continue; 2319 return 0; 2320 } 2321 2322 // Check varargs and va_copy. 2323 static bool 2324 test_varargs (const char *format, ...) 2325 { 2326 va_list args; 2327 va_start (args, format); 2328 va_list args_copy; 2329 va_copy (args_copy, args); 2330 2331 const char *str = ""; 2332 int number = 0; 2333 float fnumber = 0; 2334 2335 while (*format) 2336 { 2337 switch (*format++) 2338 { 2339 case '\''s'\'': // string 2340 str = va_arg (args_copy, const char *); 2341 break; 2342 case '\''d'\'': // int 2343 number = va_arg (args_copy, int); 2344 break; 2345 case '\''f'\'': // float 2346 fnumber = va_arg (args_copy, double); 2347 break; 2348 default: 2349 break; 2350 } 2351 } 2352 va_end (args_copy); 2353 va_end (args); 2354 2355 return *str && number && fnumber; 2356 } 2357 ' 2358 2359 # Test code for whether the C compiler supports C99 (body of main). 2360 ac_c_conftest_c99_main=' 2361 // Check bool. 2362 _Bool success = false; 2363 success |= (argc != 0); 2364 2365 // Check restrict. 2366 if (test_restrict ("String literal") == 0) 2367 success = true; 2368 char *restrict newvar = "Another string"; 2369 2370 // Check varargs. 2371 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2372 test_varargs_macros (); 2373 2374 // Check flexible array members. 2375 struct incomplete_array *ia = 2376 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2377 ia->datasize = 10; 2378 for (int i = 0; i < ia->datasize; ++i) 2379 ia->data[i] = i * 1.234; 2380 2381 // Check named initializers. 2382 struct named_init ni = { 2383 .number = 34, 2384 .name = L"Test wide string", 2385 .average = 543.34343, 2386 }; 2387 2388 ni.number = 58; 2389 2390 int dynamic_array[ni.number]; 2391 dynamic_array[0] = argv[0][0]; 2392 dynamic_array[ni.number - 1] = 543; 2393 2394 // work around unused variable warnings 2395 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2396 || dynamic_array[ni.number - 1] != 543); 2397 ' 2398 2399 # Test code for whether the C compiler supports C11 (global declarations) 2400 ac_c_conftest_c11_globals=' 2401 // Does the compiler advertise C11 conformance? 2402 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2403 # error "Compiler does not advertise C11 conformance" 2404 #endif 2405 2406 // Check _Alignas. 2407 char _Alignas (double) aligned_as_double; 2408 char _Alignas (0) no_special_alignment; 2409 extern char aligned_as_int; 2410 char _Alignas (0) _Alignas (int) aligned_as_int; 2411 2412 // Check _Alignof. 2413 enum 2414 { 2415 int_alignment = _Alignof (int), 2416 int_array_alignment = _Alignof (int[100]), 2417 char_alignment = _Alignof (char) 2418 }; 2419 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2420 2421 // Check _Noreturn. 2422 int _Noreturn does_not_return (void) { for (;;) continue; } 2423 2424 // Check _Static_assert. 2425 struct test_static_assert 2426 { 2427 int x; 2428 _Static_assert (sizeof (int) <= sizeof (long int), 2429 "_Static_assert does not work in struct"); 2430 long int y; 2431 }; 2432 2433 // Check UTF-8 literals. 2434 #define u8 syntax error! 2435 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2436 2437 // Check duplicate typedefs. 2438 typedef long *long_ptr; 2439 typedef long int *long_ptr; 2440 typedef long_ptr long_ptr; 2441 2442 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2443 struct anonymous 2444 { 2445 union { 2446 struct { int i; int j; }; 2447 struct { int k; long int l; } w; 2448 }; 2449 int m; 2450 } v1; 2451 ' 2452 2453 # Test code for whether the C compiler supports C11 (body of main). 2454 ac_c_conftest_c11_main=' 2455 _Static_assert ((offsetof (struct anonymous, i) 2456 == offsetof (struct anonymous, w.k)), 2457 "Anonymous union alignment botch"); 2458 v1.i = 2; 2459 v1.w.k = 5; 2460 ok |= v1.i != 5; 2461 ' 2462 2463 # Test code for whether the C compiler supports C11 (complete). 2464 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2465 ${ac_c_conftest_c99_globals} 2466 ${ac_c_conftest_c11_globals} 2467 2468 int 2469 main (int argc, char **argv) 2470 { 2471 int ok = 0; 2472 ${ac_c_conftest_c89_main} 2473 ${ac_c_conftest_c99_main} 2474 ${ac_c_conftest_c11_main} 2475 return ok; 2476 } 2477 " 2478 2479 # Test code for whether the C compiler supports C99 (complete). 2480 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2481 ${ac_c_conftest_c99_globals} 2482 2483 int 2484 main (int argc, char **argv) 2485 { 2486 int ok = 0; 2487 ${ac_c_conftest_c89_main} 2488 ${ac_c_conftest_c99_main} 2489 return ok; 2490 } 2491 " 2492 2493 # Test code for whether the C compiler supports C89 (complete). 2494 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2495 2496 int 2497 main (int argc, char **argv) 2498 { 2499 int ok = 0; 2500 ${ac_c_conftest_c89_main} 2501 return ok; 2502 } 2503 " 2504 2505 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2506 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2507 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2508 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2509 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2510 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2511 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2512 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2513 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2514 2515 # Auxiliary files required by this configure script. 2516 ac_aux_files="ltmain.sh missing config.guess config.sub compile install-sh" 2517 2518 # Locations in which to look for auxiliary files. 2519 ac_aux_dir_candidates="${srcdir}/." 2520 2521 # Search for a directory containing all of the required auxiliary files, 2522 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2523 # If we don't find one directory that contains all the files we need, 2524 # we report the set of missing files from the *first* directory in 2525 # $ac_aux_dir_candidates and give up. 2526 ac_missing_aux_files="" 2527 ac_first_candidate=: 2528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2530 as_found=false 2531 for as_dir in $ac_aux_dir_candidates 2532 do 2533 IFS=$as_save_IFS 2534 case $as_dir in #((( 2535 '') as_dir=./ ;; 2536 */) ;; 2537 *) as_dir=$as_dir/ ;; 2538 esac 2539 as_found=: 2540 2541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2542 ac_aux_dir_found=yes 2543 ac_install_sh= 2544 for ac_aux in $ac_aux_files 2545 do 2546 # As a special case, if "install-sh" is required, that requirement 2547 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2548 # and $ac_install_sh is set appropriately for whichever one is found. 2549 if test x"$ac_aux" = x"install-sh" 2550 then 2551 if test -f "${as_dir}install-sh"; then 2552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2553 ac_install_sh="${as_dir}install-sh -c" 2554 elif test -f "${as_dir}install.sh"; then 2555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2556 ac_install_sh="${as_dir}install.sh -c" 2557 elif test -f "${as_dir}shtool"; then 2558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2559 ac_install_sh="${as_dir}shtool install -c" 2560 else 2561 ac_aux_dir_found=no 2562 if $ac_first_candidate; then 2563 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2564 else 2565 break 2566 fi 2567 fi 2568 else 2569 if test -f "${as_dir}${ac_aux}"; then 2570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2571 else 2572 ac_aux_dir_found=no 2573 if $ac_first_candidate; then 2574 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2575 else 2576 break 2577 fi 2578 fi 2579 fi 2580 done 2581 if test "$ac_aux_dir_found" = yes; then 2582 ac_aux_dir="$as_dir" 2583 break 2584 fi 2585 ac_first_candidate=false 2586 2587 as_found=false 2588 done 2589 IFS=$as_save_IFS 2590 if $as_found 2591 then : 2592 2593 else $as_nop 2594 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2595 fi 2596 2597 2598 # These three variables are undocumented and unsupported, 2599 # and are intended to be withdrawn in a future Autoconf release. 2600 # They can cause serious problems if a builder's source tree is in a directory 2601 # whose full name contains unusual characters. 2602 if test -f "${ac_aux_dir}config.guess"; then 2603 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2604 fi 2605 if test -f "${ac_aux_dir}config.sub"; then 2606 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2607 fi 2608 if test -f "$ac_aux_dir/configure"; then 2609 ac_configure="$SHELL ${ac_aux_dir}configure" 2610 fi 2611 2612 # Check that the precious variables saved in the cache have kept the same 2613 # value. 2614 ac_cache_corrupted=false 2615 for ac_var in $ac_precious_vars; do 2616 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2617 eval ac_new_set=\$ac_env_${ac_var}_set 2618 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2619 eval ac_new_val=\$ac_env_${ac_var}_value 2620 case $ac_old_set,$ac_new_set in 2621 set,) 2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2623 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2624 ac_cache_corrupted=: ;; 2625 ,set) 2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2627 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2628 ac_cache_corrupted=: ;; 2629 ,);; 2630 *) 2631 if test "x$ac_old_val" != "x$ac_new_val"; then 2632 # differences in whitespace do not lead to failure. 2633 ac_old_val_w=`echo x $ac_old_val` 2634 ac_new_val_w=`echo x $ac_new_val` 2635 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2637 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2638 ac_cache_corrupted=: 2639 else 2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2641 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2642 eval $ac_var=\$ac_old_val 2643 fi 2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2645 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2647 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2648 fi;; 2649 esac 2650 # Pass precious variables to config.status. 2651 if test "$ac_new_set" = set; then 2652 case $ac_new_val in 2653 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2654 *) ac_arg=$ac_var=$ac_new_val ;; 2655 esac 2656 case " $ac_configure_args " in 2657 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2658 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2659 esac 2660 fi 2661 done 2662 if $ac_cache_corrupted; then 2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2664 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2666 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2667 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2668 and start over" "$LINENO" 5 2669 fi 2670 ## -------------------- ## 2671 ## Main body of script. ## 2672 ## -------------------- ## 2673 2674 ac_ext=c 2675 ac_cpp='$CPP $CPPFLAGS' 2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2679 2680 2681 2682 ac_config_headers="$ac_config_headers config.h" 2683 2684 2685 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 # Find a good install program. We prefer a C program (faster), 2700 # so one script is as good as another. But avoid the broken or 2701 # incompatible versions: 2702 # SysV /etc/install, /usr/sbin/install 2703 # SunOS /usr/etc/install 2704 # IRIX /sbin/install 2705 # AIX /bin/install 2706 # AmigaOS /C/install, which installs bootblocks on floppy discs 2707 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2708 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2709 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2710 # OS/2's system install, which has a completely different semantic 2711 # ./install, which can be erroneously created by make from ./install.sh. 2712 # Reject install programs that cannot install multiple files. 2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2714 printf %s "checking for a BSD-compatible install... " >&6; } 2715 if test -z "$INSTALL"; then 2716 if test ${ac_cv_path_install+y} 2717 then : 2718 printf %s "(cached) " >&6 2719 else $as_nop 2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2721 for as_dir in $PATH 2722 do 2723 IFS=$as_save_IFS 2724 case $as_dir in #((( 2725 '') as_dir=./ ;; 2726 */) ;; 2727 *) as_dir=$as_dir/ ;; 2728 esac 2729 # Account for fact that we put trailing slashes in our PATH walk. 2730 case $as_dir in #(( 2731 ./ | /[cC]/* | \ 2732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2733 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2734 /usr/ucb/* ) ;; 2735 *) 2736 # OSF1 and SCO ODT 3.0 have their own names for install. 2737 # Don't use installbsd from OSF since it installs stuff as root 2738 # by default. 2739 for ac_prog in ginstall scoinst install; do 2740 for ac_exec_ext in '' $ac_executable_extensions; do 2741 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2742 if test $ac_prog = install && 2743 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2744 # AIX install. It has an incompatible calling convention. 2745 : 2746 elif test $ac_prog = install && 2747 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2748 # program-specific install script used by HP pwplus--don't use. 2749 : 2750 else 2751 rm -rf conftest.one conftest.two conftest.dir 2752 echo one > conftest.one 2753 echo two > conftest.two 2754 mkdir conftest.dir 2755 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2756 test -s conftest.one && test -s conftest.two && 2757 test -s conftest.dir/conftest.one && 2758 test -s conftest.dir/conftest.two 2759 then 2760 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2761 break 3 2762 fi 2763 fi 2764 fi 2765 done 2766 done 2767 ;; 2768 esac 2769 2770 done 2771 IFS=$as_save_IFS 2772 2773 rm -rf conftest.one conftest.two conftest.dir 2774 2775 fi 2776 if test ${ac_cv_path_install+y}; then 2777 INSTALL=$ac_cv_path_install 2778 else 2779 # As a last resort, use the slow shell script. Don't cache a 2780 # value for INSTALL within a source directory, because that will 2781 # break other packages using the cache if that directory is 2782 # removed, or if the value is a relative name. 2783 INSTALL=$ac_install_sh 2784 fi 2785 fi 2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2787 printf "%s\n" "$INSTALL" >&6; } 2788 2789 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2790 # It thinks the first close brace ends the variable substitution. 2791 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2792 2793 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2794 2795 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 # Expand $ac_aux_dir to an absolute path. 2808 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2809 2810 ac_ext=c 2811 ac_cpp='$CPP $CPPFLAGS' 2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2815 if test -n "$ac_tool_prefix"; then 2816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2817 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2819 printf %s "checking for $ac_word... " >&6; } 2820 if test ${ac_cv_prog_CC+y} 2821 then : 2822 printf %s "(cached) " >&6 2823 else $as_nop 2824 if test -n "$CC"; then 2825 ac_cv_prog_CC="$CC" # Let the user override the test. 2826 else 2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2828 for as_dir in $PATH 2829 do 2830 IFS=$as_save_IFS 2831 case $as_dir in #((( 2832 '') as_dir=./ ;; 2833 */) ;; 2834 *) as_dir=$as_dir/ ;; 2835 esac 2836 for ac_exec_ext in '' $ac_executable_extensions; do 2837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2838 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2840 break 2 2841 fi 2842 done 2843 done 2844 IFS=$as_save_IFS 2845 2846 fi 2847 fi 2848 CC=$ac_cv_prog_CC 2849 if test -n "$CC"; then 2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2851 printf "%s\n" "$CC" >&6; } 2852 else 2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854 printf "%s\n" "no" >&6; } 2855 fi 2856 2857 2858 fi 2859 if test -z "$ac_cv_prog_CC"; then 2860 ac_ct_CC=$CC 2861 # Extract the first word of "gcc", so it can be a program name with args. 2862 set dummy gcc; ac_word=$2 2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864 printf %s "checking for $ac_word... " >&6; } 2865 if test ${ac_cv_prog_ac_ct_CC+y} 2866 then : 2867 printf %s "(cached) " >&6 2868 else $as_nop 2869 if test -n "$ac_ct_CC"; then 2870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2871 else 2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2873 for as_dir in $PATH 2874 do 2875 IFS=$as_save_IFS 2876 case $as_dir in #((( 2877 '') as_dir=./ ;; 2878 */) ;; 2879 *) as_dir=$as_dir/ ;; 2880 esac 2881 for ac_exec_ext in '' $ac_executable_extensions; do 2882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2883 ac_cv_prog_ac_ct_CC="gcc" 2884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2885 break 2 2886 fi 2887 done 2888 done 2889 IFS=$as_save_IFS 2890 2891 fi 2892 fi 2893 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2894 if test -n "$ac_ct_CC"; then 2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2896 printf "%s\n" "$ac_ct_CC" >&6; } 2897 else 2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2899 printf "%s\n" "no" >&6; } 2900 fi 2901 2902 if test "x$ac_ct_CC" = x; then 2903 CC="" 2904 else 2905 case $cross_compiling:$ac_tool_warned in 2906 yes:) 2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2909 ac_tool_warned=yes ;; 2910 esac 2911 CC=$ac_ct_CC 2912 fi 2913 else 2914 CC="$ac_cv_prog_CC" 2915 fi 2916 2917 if test -z "$CC"; then 2918 if test -n "$ac_tool_prefix"; then 2919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2920 set dummy ${ac_tool_prefix}cc; ac_word=$2 2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922 printf %s "checking for $ac_word... " >&6; } 2923 if test ${ac_cv_prog_CC+y} 2924 then : 2925 printf %s "(cached) " >&6 2926 else $as_nop 2927 if test -n "$CC"; then 2928 ac_cv_prog_CC="$CC" # Let the user override the test. 2929 else 2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931 for as_dir in $PATH 2932 do 2933 IFS=$as_save_IFS 2934 case $as_dir in #((( 2935 '') as_dir=./ ;; 2936 */) ;; 2937 *) as_dir=$as_dir/ ;; 2938 esac 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_CC="${ac_tool_prefix}cc" 2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945 done 2946 done 2947 IFS=$as_save_IFS 2948 2949 fi 2950 fi 2951 CC=$ac_cv_prog_CC 2952 if test -n "$CC"; then 2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2954 printf "%s\n" "$CC" >&6; } 2955 else 2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957 printf "%s\n" "no" >&6; } 2958 fi 2959 2960 2961 fi 2962 fi 2963 if test -z "$CC"; then 2964 # Extract the first word of "cc", so it can be a program name with args. 2965 set dummy cc; ac_word=$2 2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2967 printf %s "checking for $ac_word... " >&6; } 2968 if test ${ac_cv_prog_CC+y} 2969 then : 2970 printf %s "(cached) " >&6 2971 else $as_nop 2972 if test -n "$CC"; then 2973 ac_cv_prog_CC="$CC" # Let the user override the test. 2974 else 2975 ac_prog_rejected=no 2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977 for as_dir in $PATH 2978 do 2979 IFS=$as_save_IFS 2980 case $as_dir in #((( 2981 '') as_dir=./ ;; 2982 */) ;; 2983 *) as_dir=$as_dir/ ;; 2984 esac 2985 for ac_exec_ext in '' $ac_executable_extensions; do 2986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2987 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2988 ac_prog_rejected=yes 2989 continue 2990 fi 2991 ac_cv_prog_CC="cc" 2992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2993 break 2 2994 fi 2995 done 2996 done 2997 IFS=$as_save_IFS 2998 2999 if test $ac_prog_rejected = yes; then 3000 # We found a bogon in the path, so make sure we never use it. 3001 set dummy $ac_cv_prog_CC 3002 shift 3003 if test $# != 0; then 3004 # We chose a different compiler from the bogus one. 3005 # However, it has the same basename, so the bogon will be chosen 3006 # first if we set CC to just the basename; use the full file name. 3007 shift 3008 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3009 fi 3010 fi 3011 fi 3012 fi 3013 CC=$ac_cv_prog_CC 3014 if test -n "$CC"; then 3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3016 printf "%s\n" "$CC" >&6; } 3017 else 3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3019 printf "%s\n" "no" >&6; } 3020 fi 3021 3022 3023 fi 3024 if test -z "$CC"; then 3025 if test -n "$ac_tool_prefix"; then 3026 for ac_prog in cl.exe 3027 do 3028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031 printf %s "checking for $ac_word... " >&6; } 3032 if test ${ac_cv_prog_CC+y} 3033 then : 3034 printf %s "(cached) " >&6 3035 else $as_nop 3036 if test -n "$CC"; then 3037 ac_cv_prog_CC="$CC" # Let the user override the test. 3038 else 3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3040 for as_dir in $PATH 3041 do 3042 IFS=$as_save_IFS 3043 case $as_dir in #((( 3044 '') as_dir=./ ;; 3045 */) ;; 3046 *) as_dir=$as_dir/ ;; 3047 esac 3048 for ac_exec_ext in '' $ac_executable_extensions; do 3049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3052 break 2 3053 fi 3054 done 3055 done 3056 IFS=$as_save_IFS 3057 3058 fi 3059 fi 3060 CC=$ac_cv_prog_CC 3061 if test -n "$CC"; then 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3063 printf "%s\n" "$CC" >&6; } 3064 else 3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3066 printf "%s\n" "no" >&6; } 3067 fi 3068 3069 3070 test -n "$CC" && break 3071 done 3072 fi 3073 if test -z "$CC"; then 3074 ac_ct_CC=$CC 3075 for ac_prog in cl.exe 3076 do 3077 # Extract the first word of "$ac_prog", so it can be a program name with args. 3078 set dummy $ac_prog; ac_word=$2 3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3080 printf %s "checking for $ac_word... " >&6; } 3081 if test ${ac_cv_prog_ac_ct_CC+y} 3082 then : 3083 printf %s "(cached) " >&6 3084 else $as_nop 3085 if test -n "$ac_ct_CC"; then 3086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3087 else 3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3089 for as_dir in $PATH 3090 do 3091 IFS=$as_save_IFS 3092 case $as_dir in #((( 3093 '') as_dir=./ ;; 3094 */) ;; 3095 *) as_dir=$as_dir/ ;; 3096 esac 3097 for ac_exec_ext in '' $ac_executable_extensions; do 3098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3099 ac_cv_prog_ac_ct_CC="$ac_prog" 3100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3101 break 2 3102 fi 3103 done 3104 done 3105 IFS=$as_save_IFS 3106 3107 fi 3108 fi 3109 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3110 if test -n "$ac_ct_CC"; then 3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3112 printf "%s\n" "$ac_ct_CC" >&6; } 3113 else 3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115 printf "%s\n" "no" >&6; } 3116 fi 3117 3118 3119 test -n "$ac_ct_CC" && break 3120 done 3121 3122 if test "x$ac_ct_CC" = x; then 3123 CC="" 3124 else 3125 case $cross_compiling:$ac_tool_warned in 3126 yes:) 3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3128 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3129 ac_tool_warned=yes ;; 3130 esac 3131 CC=$ac_ct_CC 3132 fi 3133 fi 3134 3135 fi 3136 if test -z "$CC"; then 3137 if test -n "$ac_tool_prefix"; then 3138 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3139 set dummy ${ac_tool_prefix}clang; ac_word=$2 3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3141 printf %s "checking for $ac_word... " >&6; } 3142 if test ${ac_cv_prog_CC+y} 3143 then : 3144 printf %s "(cached) " >&6 3145 else $as_nop 3146 if test -n "$CC"; then 3147 ac_cv_prog_CC="$CC" # Let the user override the test. 3148 else 3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3150 for as_dir in $PATH 3151 do 3152 IFS=$as_save_IFS 3153 case $as_dir in #((( 3154 '') as_dir=./ ;; 3155 */) ;; 3156 *) as_dir=$as_dir/ ;; 3157 esac 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3160 ac_cv_prog_CC="${ac_tool_prefix}clang" 3161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3162 break 2 3163 fi 3164 done 3165 done 3166 IFS=$as_save_IFS 3167 3168 fi 3169 fi 3170 CC=$ac_cv_prog_CC 3171 if test -n "$CC"; then 3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3173 printf "%s\n" "$CC" >&6; } 3174 else 3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3176 printf "%s\n" "no" >&6; } 3177 fi 3178 3179 3180 fi 3181 if test -z "$ac_cv_prog_CC"; then 3182 ac_ct_CC=$CC 3183 # Extract the first word of "clang", so it can be a program name with args. 3184 set dummy clang; ac_word=$2 3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3186 printf %s "checking for $ac_word... " >&6; } 3187 if test ${ac_cv_prog_ac_ct_CC+y} 3188 then : 3189 printf %s "(cached) " >&6 3190 else $as_nop 3191 if test -n "$ac_ct_CC"; then 3192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3193 else 3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3195 for as_dir in $PATH 3196 do 3197 IFS=$as_save_IFS 3198 case $as_dir in #((( 3199 '') as_dir=./ ;; 3200 */) ;; 3201 *) as_dir=$as_dir/ ;; 3202 esac 3203 for ac_exec_ext in '' $ac_executable_extensions; do 3204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3205 ac_cv_prog_ac_ct_CC="clang" 3206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3207 break 2 3208 fi 3209 done 3210 done 3211 IFS=$as_save_IFS 3212 3213 fi 3214 fi 3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3216 if test -n "$ac_ct_CC"; then 3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3218 printf "%s\n" "$ac_ct_CC" >&6; } 3219 else 3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3221 printf "%s\n" "no" >&6; } 3222 fi 3223 3224 if test "x$ac_ct_CC" = x; then 3225 CC="" 3226 else 3227 case $cross_compiling:$ac_tool_warned in 3228 yes:) 3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3230 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3231 ac_tool_warned=yes ;; 3232 esac 3233 CC=$ac_ct_CC 3234 fi 3235 else 3236 CC="$ac_cv_prog_CC" 3237 fi 3238 3239 fi 3240 3241 3242 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3244 as_fn_error $? "no acceptable C compiler found in \$PATH 3245 See \`config.log' for more details" "$LINENO" 5; } 3246 3247 # Provide some information about the compiler. 3248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3249 set X $ac_compile 3250 ac_compiler=$2 3251 for ac_option in --version -v -V -qversion -version; do 3252 { { ac_try="$ac_compiler $ac_option >&5" 3253 case "(($ac_try" in 3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3255 *) ac_try_echo=$ac_try;; 3256 esac 3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3258 printf "%s\n" "$ac_try_echo"; } >&5 3259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3260 ac_status=$? 3261 if test -s conftest.err; then 3262 sed '10a\ 3263 ... rest of stderr output deleted ... 3264 10q' conftest.err >conftest.er1 3265 cat conftest.er1 >&5 3266 fi 3267 rm -f conftest.er1 conftest.err 3268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3269 test $ac_status = 0; } 3270 done 3271 3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3273 /* end confdefs.h. */ 3274 3275 int 3276 main (void) 3277 { 3278 3279 ; 3280 return 0; 3281 } 3282 _ACEOF 3283 ac_clean_files_save=$ac_clean_files 3284 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3285 # Try to create an executable without -o first, disregard a.out. 3286 # It will help us diagnose broken compilers, and finding out an intuition 3287 # of exeext. 3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3289 printf %s "checking whether the C compiler works... " >&6; } 3290 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3291 3292 # The possible output files: 3293 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3294 3295 ac_rmfiles= 3296 for ac_file in $ac_files 3297 do 3298 case $ac_file in 3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3300 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3301 esac 3302 done 3303 rm -f $ac_rmfiles 3304 3305 if { { ac_try="$ac_link_default" 3306 case "(($ac_try" in 3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3308 *) ac_try_echo=$ac_try;; 3309 esac 3310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3311 printf "%s\n" "$ac_try_echo"; } >&5 3312 (eval "$ac_link_default") 2>&5 3313 ac_status=$? 3314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3315 test $ac_status = 0; } 3316 then : 3317 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3318 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3319 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3320 # so that the user can short-circuit this test for compilers unknown to 3321 # Autoconf. 3322 for ac_file in $ac_files '' 3323 do 3324 test -f "$ac_file" || continue 3325 case $ac_file in 3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3327 ;; 3328 [ab].out ) 3329 # We found the default executable, but exeext='' is most 3330 # certainly right. 3331 break;; 3332 *.* ) 3333 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3334 then :; else 3335 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3336 fi 3337 # We set ac_cv_exeext here because the later test for it is not 3338 # safe: cross compilers may not add the suffix if given an `-o' 3339 # argument, so we may need to know it at that point already. 3340 # Even if this section looks crufty: it has the advantage of 3341 # actually working. 3342 break;; 3343 * ) 3344 break;; 3345 esac 3346 done 3347 test "$ac_cv_exeext" = no && ac_cv_exeext= 3348 3349 else $as_nop 3350 ac_file='' 3351 fi 3352 if test -z "$ac_file" 3353 then : 3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355 printf "%s\n" "no" >&6; } 3356 printf "%s\n" "$as_me: failed program was:" >&5 3357 sed 's/^/| /' conftest.$ac_ext >&5 3358 3359 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3360 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3361 as_fn_error 77 "C compiler cannot create executables 3362 See \`config.log' for more details" "$LINENO" 5; } 3363 else $as_nop 3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3365 printf "%s\n" "yes" >&6; } 3366 fi 3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3368 printf %s "checking for C compiler default output file name... " >&6; } 3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3370 printf "%s\n" "$ac_file" >&6; } 3371 ac_exeext=$ac_cv_exeext 3372 3373 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3374 ac_clean_files=$ac_clean_files_save 3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3376 printf %s "checking for suffix of executables... " >&6; } 3377 if { { ac_try="$ac_link" 3378 case "(($ac_try" in 3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3380 *) ac_try_echo=$ac_try;; 3381 esac 3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3383 printf "%s\n" "$ac_try_echo"; } >&5 3384 (eval "$ac_link") 2>&5 3385 ac_status=$? 3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3387 test $ac_status = 0; } 3388 then : 3389 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3390 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3391 # work properly (i.e., refer to `conftest.exe'), while it won't with 3392 # `rm'. 3393 for ac_file in conftest.exe conftest conftest.*; do 3394 test -f "$ac_file" || continue 3395 case $ac_file in 3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3397 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3398 break;; 3399 * ) break;; 3400 esac 3401 done 3402 else $as_nop 3403 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3404 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3405 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3406 See \`config.log' for more details" "$LINENO" 5; } 3407 fi 3408 rm -f conftest conftest$ac_cv_exeext 3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3410 printf "%s\n" "$ac_cv_exeext" >&6; } 3411 3412 rm -f conftest.$ac_ext 3413 EXEEXT=$ac_cv_exeext 3414 ac_exeext=$EXEEXT 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416 /* end confdefs.h. */ 3417 #include <stdio.h> 3418 int 3419 main (void) 3420 { 3421 FILE *f = fopen ("conftest.out", "w"); 3422 return ferror (f) || fclose (f) != 0; 3423 3424 ; 3425 return 0; 3426 } 3427 _ACEOF 3428 ac_clean_files="$ac_clean_files conftest.out" 3429 # Check that the compiler produces executables we can run. If not, either 3430 # the compiler is broken, or we cross compile. 3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3432 printf %s "checking whether we are cross compiling... " >&6; } 3433 if test "$cross_compiling" != yes; then 3434 { { ac_try="$ac_link" 3435 case "(($ac_try" in 3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3437 *) ac_try_echo=$ac_try;; 3438 esac 3439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3440 printf "%s\n" "$ac_try_echo"; } >&5 3441 (eval "$ac_link") 2>&5 3442 ac_status=$? 3443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3444 test $ac_status = 0; } 3445 if { ac_try='./conftest$ac_cv_exeext' 3446 { { case "(($ac_try" in 3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3448 *) ac_try_echo=$ac_try;; 3449 esac 3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3451 printf "%s\n" "$ac_try_echo"; } >&5 3452 (eval "$ac_try") 2>&5 3453 ac_status=$? 3454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3455 test $ac_status = 0; }; }; then 3456 cross_compiling=no 3457 else 3458 if test "$cross_compiling" = maybe; then 3459 cross_compiling=yes 3460 else 3461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3462 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3463 as_fn_error 77 "cannot run C compiled programs. 3464 If you meant to cross compile, use \`--host'. 3465 See \`config.log' for more details" "$LINENO" 5; } 3466 fi 3467 fi 3468 fi 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3470 printf "%s\n" "$cross_compiling" >&6; } 3471 3472 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3473 ac_clean_files=$ac_clean_files_save 3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3475 printf %s "checking for suffix of object files... " >&6; } 3476 if test ${ac_cv_objext+y} 3477 then : 3478 printf %s "(cached) " >&6 3479 else $as_nop 3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481 /* end confdefs.h. */ 3482 3483 int 3484 main (void) 3485 { 3486 3487 ; 3488 return 0; 3489 } 3490 _ACEOF 3491 rm -f conftest.o conftest.obj 3492 if { { ac_try="$ac_compile" 3493 case "(($ac_try" in 3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3495 *) ac_try_echo=$ac_try;; 3496 esac 3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3498 printf "%s\n" "$ac_try_echo"; } >&5 3499 (eval "$ac_compile") 2>&5 3500 ac_status=$? 3501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3502 test $ac_status = 0; } 3503 then : 3504 for ac_file in conftest.o conftest.obj conftest.*; do 3505 test -f "$ac_file" || continue; 3506 case $ac_file in 3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3509 break;; 3510 esac 3511 done 3512 else $as_nop 3513 printf "%s\n" "$as_me: failed program was:" >&5 3514 sed 's/^/| /' conftest.$ac_ext >&5 3515 3516 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3517 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3518 as_fn_error $? "cannot compute suffix of object files: cannot compile 3519 See \`config.log' for more details" "$LINENO" 5; } 3520 fi 3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3522 fi 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3524 printf "%s\n" "$ac_cv_objext" >&6; } 3525 OBJEXT=$ac_cv_objext 3526 ac_objext=$OBJEXT 3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3528 printf %s "checking whether the compiler supports GNU C... " >&6; } 3529 if test ${ac_cv_c_compiler_gnu+y} 3530 then : 3531 printf %s "(cached) " >&6 3532 else $as_nop 3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3534 /* end confdefs.h. */ 3535 3536 int 3537 main (void) 3538 { 3539 #ifndef __GNUC__ 3540 choke me 3541 #endif 3542 3543 ; 3544 return 0; 3545 } 3546 _ACEOF 3547 if ac_fn_c_try_compile "$LINENO" 3548 then : 3549 ac_compiler_gnu=yes 3550 else $as_nop 3551 ac_compiler_gnu=no 3552 fi 3553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3554 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3555 3556 fi 3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3558 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3560 3561 if test $ac_compiler_gnu = yes; then 3562 GCC=yes 3563 else 3564 GCC= 3565 fi 3566 ac_test_CFLAGS=${CFLAGS+y} 3567 ac_save_CFLAGS=$CFLAGS 3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3569 printf %s "checking whether $CC accepts -g... " >&6; } 3570 if test ${ac_cv_prog_cc_g+y} 3571 then : 3572 printf %s "(cached) " >&6 3573 else $as_nop 3574 ac_save_c_werror_flag=$ac_c_werror_flag 3575 ac_c_werror_flag=yes 3576 ac_cv_prog_cc_g=no 3577 CFLAGS="-g" 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579 /* end confdefs.h. */ 3580 3581 int 3582 main (void) 3583 { 3584 3585 ; 3586 return 0; 3587 } 3588 _ACEOF 3589 if ac_fn_c_try_compile "$LINENO" 3590 then : 3591 ac_cv_prog_cc_g=yes 3592 else $as_nop 3593 CFLAGS="" 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595 /* end confdefs.h. */ 3596 3597 int 3598 main (void) 3599 { 3600 3601 ; 3602 return 0; 3603 } 3604 _ACEOF 3605 if ac_fn_c_try_compile "$LINENO" 3606 then : 3607 3608 else $as_nop 3609 ac_c_werror_flag=$ac_save_c_werror_flag 3610 CFLAGS="-g" 3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3612 /* end confdefs.h. */ 3613 3614 int 3615 main (void) 3616 { 3617 3618 ; 3619 return 0; 3620 } 3621 _ACEOF 3622 if ac_fn_c_try_compile "$LINENO" 3623 then : 3624 ac_cv_prog_cc_g=yes 3625 fi 3626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3627 fi 3628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3629 fi 3630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3631 ac_c_werror_flag=$ac_save_c_werror_flag 3632 fi 3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3634 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3635 if test $ac_test_CFLAGS; then 3636 CFLAGS=$ac_save_CFLAGS 3637 elif test $ac_cv_prog_cc_g = yes; then 3638 if test "$GCC" = yes; then 3639 CFLAGS="-g -O2" 3640 else 3641 CFLAGS="-g" 3642 fi 3643 else 3644 if test "$GCC" = yes; then 3645 CFLAGS="-O2" 3646 else 3647 CFLAGS= 3648 fi 3649 fi 3650 ac_prog_cc_stdc=no 3651 if test x$ac_prog_cc_stdc = xno 3652 then : 3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3654 printf %s "checking for $CC option to enable C11 features... " >&6; } 3655 if test ${ac_cv_prog_cc_c11+y} 3656 then : 3657 printf %s "(cached) " >&6 3658 else $as_nop 3659 ac_cv_prog_cc_c11=no 3660 ac_save_CC=$CC 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662 /* end confdefs.h. */ 3663 $ac_c_conftest_c11_program 3664 _ACEOF 3665 for ac_arg in '' -std=gnu11 3666 do 3667 CC="$ac_save_CC $ac_arg" 3668 if ac_fn_c_try_compile "$LINENO" 3669 then : 3670 ac_cv_prog_cc_c11=$ac_arg 3671 fi 3672 rm -f core conftest.err conftest.$ac_objext conftest.beam 3673 test "x$ac_cv_prog_cc_c11" != "xno" && break 3674 done 3675 rm -f conftest.$ac_ext 3676 CC=$ac_save_CC 3677 fi 3678 3679 if test "x$ac_cv_prog_cc_c11" = xno 3680 then : 3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3682 printf "%s\n" "unsupported" >&6; } 3683 else $as_nop 3684 if test "x$ac_cv_prog_cc_c11" = x 3685 then : 3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3687 printf "%s\n" "none needed" >&6; } 3688 else $as_nop 3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3690 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3691 CC="$CC $ac_cv_prog_cc_c11" 3692 fi 3693 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3694 ac_prog_cc_stdc=c11 3695 fi 3696 fi 3697 if test x$ac_prog_cc_stdc = xno 3698 then : 3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3700 printf %s "checking for $CC option to enable C99 features... " >&6; } 3701 if test ${ac_cv_prog_cc_c99+y} 3702 then : 3703 printf %s "(cached) " >&6 3704 else $as_nop 3705 ac_cv_prog_cc_c99=no 3706 ac_save_CC=$CC 3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708 /* end confdefs.h. */ 3709 $ac_c_conftest_c99_program 3710 _ACEOF 3711 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3712 do 3713 CC="$ac_save_CC $ac_arg" 3714 if ac_fn_c_try_compile "$LINENO" 3715 then : 3716 ac_cv_prog_cc_c99=$ac_arg 3717 fi 3718 rm -f core conftest.err conftest.$ac_objext conftest.beam 3719 test "x$ac_cv_prog_cc_c99" != "xno" && break 3720 done 3721 rm -f conftest.$ac_ext 3722 CC=$ac_save_CC 3723 fi 3724 3725 if test "x$ac_cv_prog_cc_c99" = xno 3726 then : 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3728 printf "%s\n" "unsupported" >&6; } 3729 else $as_nop 3730 if test "x$ac_cv_prog_cc_c99" = x 3731 then : 3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3733 printf "%s\n" "none needed" >&6; } 3734 else $as_nop 3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3736 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3737 CC="$CC $ac_cv_prog_cc_c99" 3738 fi 3739 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3740 ac_prog_cc_stdc=c99 3741 fi 3742 fi 3743 if test x$ac_prog_cc_stdc = xno 3744 then : 3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3746 printf %s "checking for $CC option to enable C89 features... " >&6; } 3747 if test ${ac_cv_prog_cc_c89+y} 3748 then : 3749 printf %s "(cached) " >&6 3750 else $as_nop 3751 ac_cv_prog_cc_c89=no 3752 ac_save_CC=$CC 3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3754 /* end confdefs.h. */ 3755 $ac_c_conftest_c89_program 3756 _ACEOF 3757 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3758 do 3759 CC="$ac_save_CC $ac_arg" 3760 if ac_fn_c_try_compile "$LINENO" 3761 then : 3762 ac_cv_prog_cc_c89=$ac_arg 3763 fi 3764 rm -f core conftest.err conftest.$ac_objext conftest.beam 3765 test "x$ac_cv_prog_cc_c89" != "xno" && break 3766 done 3767 rm -f conftest.$ac_ext 3768 CC=$ac_save_CC 3769 fi 3770 3771 if test "x$ac_cv_prog_cc_c89" = xno 3772 then : 3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3774 printf "%s\n" "unsupported" >&6; } 3775 else $as_nop 3776 if test "x$ac_cv_prog_cc_c89" = x 3777 then : 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3779 printf "%s\n" "none needed" >&6; } 3780 else $as_nop 3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3782 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3783 CC="$CC $ac_cv_prog_cc_c89" 3784 fi 3785 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3786 ac_prog_cc_stdc=c89 3787 fi 3788 fi 3789 3790 ac_ext=c 3791 ac_cpp='$CPP $CPPFLAGS' 3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3795 3796 3797 ac_ext=c 3798 ac_cpp='$CPP $CPPFLAGS' 3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3803 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3804 if test ${am_cv_prog_cc_c_o+y} 3805 then : 3806 printf %s "(cached) " >&6 3807 else $as_nop 3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3809 /* end confdefs.h. */ 3810 3811 int 3812 main (void) 3813 { 3814 3815 ; 3816 return 0; 3817 } 3818 _ACEOF 3819 # Make sure it works both with $CC and with simple cc. 3820 # Following AC_PROG_CC_C_O, we do the test twice because some 3821 # compilers refuse to overwrite an existing .o file with -o, 3822 # though they will create one. 3823 am_cv_prog_cc_c_o=yes 3824 for am_i in 1 2; do 3825 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3826 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3827 ac_status=$? 3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3829 (exit $ac_status); } \ 3830 && test -f conftest2.$ac_objext; then 3831 : OK 3832 else 3833 am_cv_prog_cc_c_o=no 3834 break 3835 fi 3836 done 3837 rm -f core conftest* 3838 unset am_i 3839 fi 3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3841 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3842 if test "$am_cv_prog_cc_c_o" != yes; then 3843 # Losing compiler, so override with the script. 3844 # FIXME: It is wrong to rewrite CC. 3845 # But if we don't then we get into trouble of one sort or another. 3846 # A longer-term fix would be to have automake use am__CC in this case, 3847 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3848 CC="$am_aux_dir/compile $CC" 3849 fi 3850 ac_ext=c 3851 ac_cpp='$CPP $CPPFLAGS' 3852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3854 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3855 3856 3857 3858 3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 3860 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 3861 if test ${ac_cv_c_undeclared_builtin_options+y} 3862 then : 3863 printf %s "(cached) " >&6 3864 else $as_nop 3865 ac_save_CFLAGS=$CFLAGS 3866 ac_cv_c_undeclared_builtin_options='cannot detect' 3867 for ac_arg in '' -fno-builtin; do 3868 CFLAGS="$ac_save_CFLAGS $ac_arg" 3869 # This test program should *not* compile successfully. 3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871 /* end confdefs.h. */ 3872 3873 int 3874 main (void) 3875 { 3876 (void) strchr; 3877 ; 3878 return 0; 3879 } 3880 _ACEOF 3881 if ac_fn_c_try_compile "$LINENO" 3882 then : 3883 3884 else $as_nop 3885 # This test program should compile successfully. 3886 # No library function is consistently available on 3887 # freestanding implementations, so test against a dummy 3888 # declaration. Include always-available headers on the 3889 # off chance that they somehow elicit warnings. 3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3891 /* end confdefs.h. */ 3892 #include <float.h> 3893 #include <limits.h> 3894 #include <stdarg.h> 3895 #include <stddef.h> 3896 extern void ac_decl (int, char *); 3897 3898 int 3899 main (void) 3900 { 3901 (void) ac_decl (0, (char *) 0); 3902 (void) ac_decl; 3903 3904 ; 3905 return 0; 3906 } 3907 _ACEOF 3908 if ac_fn_c_try_compile "$LINENO" 3909 then : 3910 if test x"$ac_arg" = x 3911 then : 3912 ac_cv_c_undeclared_builtin_options='none needed' 3913 else $as_nop 3914 ac_cv_c_undeclared_builtin_options=$ac_arg 3915 fi 3916 break 3917 fi 3918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3919 fi 3920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3921 done 3922 CFLAGS=$ac_save_CFLAGS 3923 3924 fi 3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 3926 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 3927 case $ac_cv_c_undeclared_builtin_options in #( 3928 'cannot detect') : 3929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3930 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3931 as_fn_error $? "cannot make $CC report undeclared builtins 3932 See \`config.log' for more details" "$LINENO" 5; } ;; #( 3933 'none needed') : 3934 ac_c_undeclared_builtin_options='' ;; #( 3935 *) : 3936 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 3937 esac 3938 3939 ac_header= ac_cache= 3940 for ac_item in $ac_header_c_list 3941 do 3942 if test $ac_cache; then 3943 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3944 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3945 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3946 fi 3947 ac_header= ac_cache= 3948 elif test $ac_header; then 3949 ac_cache=$ac_item 3950 else 3951 ac_header=$ac_item 3952 fi 3953 done 3954 3955 3956 3957 3958 3959 3960 3961 3962 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3963 then : 3964 3965 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3966 3967 fi 3968 3969 3970 3971 3972 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3973 if test "x$ac_cv_have_decl___clang__" = xyes 3974 then : 3975 CLANGCC="yes" 3976 else $as_nop 3977 CLANGCC="no" 3978 fi 3979 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3980 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 3981 then : 3982 INTELCC="yes" 3983 else $as_nop 3984 INTELCC="no" 3985 fi 3986 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3987 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 3988 then : 3989 SUNCC="yes" 3990 else $as_nop 3991 SUNCC="no" 3992 fi 3993 3994 3995 3996 3997 3998 3999 4000 4001 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4002 if test -n "$ac_tool_prefix"; then 4003 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4004 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4006 printf %s "checking for $ac_word... " >&6; } 4007 if test ${ac_cv_path_PKG_CONFIG+y} 4008 then : 4009 printf %s "(cached) " >&6 4010 else $as_nop 4011 case $PKG_CONFIG in 4012 [\\/]* | ?:[\\/]*) 4013 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4014 ;; 4015 *) 4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4017 for as_dir in $PATH 4018 do 4019 IFS=$as_save_IFS 4020 case $as_dir in #((( 4021 '') as_dir=./ ;; 4022 */) ;; 4023 *) as_dir=$as_dir/ ;; 4024 esac 4025 for ac_exec_ext in '' $ac_executable_extensions; do 4026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4027 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4029 break 2 4030 fi 4031 done 4032 done 4033 IFS=$as_save_IFS 4034 4035 ;; 4036 esac 4037 fi 4038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4039 if test -n "$PKG_CONFIG"; then 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4041 printf "%s\n" "$PKG_CONFIG" >&6; } 4042 else 4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4044 printf "%s\n" "no" >&6; } 4045 fi 4046 4047 4048 fi 4049 if test -z "$ac_cv_path_PKG_CONFIG"; then 4050 ac_pt_PKG_CONFIG=$PKG_CONFIG 4051 # Extract the first word of "pkg-config", so it can be a program name with args. 4052 set dummy pkg-config; ac_word=$2 4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4054 printf %s "checking for $ac_word... " >&6; } 4055 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4056 then : 4057 printf %s "(cached) " >&6 4058 else $as_nop 4059 case $ac_pt_PKG_CONFIG in 4060 [\\/]* | ?:[\\/]*) 4061 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4062 ;; 4063 *) 4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4065 for as_dir in $PATH 4066 do 4067 IFS=$as_save_IFS 4068 case $as_dir in #((( 4069 '') as_dir=./ ;; 4070 */) ;; 4071 *) as_dir=$as_dir/ ;; 4072 esac 4073 for ac_exec_ext in '' $ac_executable_extensions; do 4074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4075 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4077 break 2 4078 fi 4079 done 4080 done 4081 IFS=$as_save_IFS 4082 4083 ;; 4084 esac 4085 fi 4086 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4087 if test -n "$ac_pt_PKG_CONFIG"; then 4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4089 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4090 else 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4092 printf "%s\n" "no" >&6; } 4093 fi 4094 4095 if test "x$ac_pt_PKG_CONFIG" = x; then 4096 PKG_CONFIG="" 4097 else 4098 case $cross_compiling:$ac_tool_warned in 4099 yes:) 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4102 ac_tool_warned=yes ;; 4103 esac 4104 PKG_CONFIG=$ac_pt_PKG_CONFIG 4105 fi 4106 else 4107 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4108 fi 4109 4110 fi 4111 if test -n "$PKG_CONFIG"; then 4112 _pkg_min_version=0.9.0 4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4114 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4115 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4117 printf "%s\n" "yes" >&6; } 4118 else 4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4120 printf "%s\n" "no" >&6; } 4121 PKG_CONFIG="" 4122 fi 4123 fi 4124 4125 4126 # Make sure we can run config.sub. 4127 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4128 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4129 4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4131 printf %s "checking build system type... " >&6; } 4132 if test ${ac_cv_build+y} 4133 then : 4134 printf %s "(cached) " >&6 4135 else $as_nop 4136 ac_build_alias=$build_alias 4137 test "x$ac_build_alias" = x && 4138 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4139 test "x$ac_build_alias" = x && 4140 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4141 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4142 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4143 4144 fi 4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4146 printf "%s\n" "$ac_cv_build" >&6; } 4147 case $ac_cv_build in 4148 *-*-*) ;; 4149 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4150 esac 4151 build=$ac_cv_build 4152 ac_save_IFS=$IFS; IFS='-' 4153 set x $ac_cv_build 4154 shift 4155 build_cpu=$1 4156 build_vendor=$2 4157 shift; shift 4158 # Remember, the first character of IFS is used to create $*, 4159 # except with old shells: 4160 build_os=$* 4161 IFS=$ac_save_IFS 4162 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4163 4164 4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4166 printf %s "checking host system type... " >&6; } 4167 if test ${ac_cv_host+y} 4168 then : 4169 printf %s "(cached) " >&6 4170 else $as_nop 4171 if test "x$host_alias" = x; then 4172 ac_cv_host=$ac_cv_build 4173 else 4174 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4175 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4176 fi 4177 4178 fi 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4180 printf "%s\n" "$ac_cv_host" >&6; } 4181 case $ac_cv_host in 4182 *-*-*) ;; 4183 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4184 esac 4185 host=$ac_cv_host 4186 ac_save_IFS=$IFS; IFS='-' 4187 set x $ac_cv_host 4188 shift 4189 host_cpu=$1 4190 host_vendor=$2 4191 shift; shift 4192 # Remember, the first character of IFS is used to create $*, 4193 # except with old shells: 4194 host_os=$* 4195 IFS=$ac_save_IFS 4196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4197 4198 4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4200 printf %s "checking for a sed that does not truncate output... " >&6; } 4201 if test ${ac_cv_path_SED+y} 4202 then : 4203 printf %s "(cached) " >&6 4204 else $as_nop 4205 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4206 for ac_i in 1 2 3 4 5 6 7; do 4207 ac_script="$ac_script$as_nl$ac_script" 4208 done 4209 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4210 { ac_script=; unset ac_script;} 4211 if test -z "$SED"; then 4212 ac_path_SED_found=false 4213 # Loop through the user's path and test for each of PROGNAME-LIST 4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4215 for as_dir in $PATH 4216 do 4217 IFS=$as_save_IFS 4218 case $as_dir in #((( 4219 '') as_dir=./ ;; 4220 */) ;; 4221 *) as_dir=$as_dir/ ;; 4222 esac 4223 for ac_prog in sed gsed 4224 do 4225 for ac_exec_ext in '' $ac_executable_extensions; do 4226 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4227 as_fn_executable_p "$ac_path_SED" || continue 4228 # Check for GNU ac_path_SED and select it if it is found. 4229 # Check for GNU $ac_path_SED 4230 case `"$ac_path_SED" --version 2>&1` in 4231 *GNU*) 4232 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4233 *) 4234 ac_count=0 4235 printf %s 0123456789 >"conftest.in" 4236 while : 4237 do 4238 cat "conftest.in" "conftest.in" >"conftest.tmp" 4239 mv "conftest.tmp" "conftest.in" 4240 cp "conftest.in" "conftest.nl" 4241 printf "%s\n" '' >> "conftest.nl" 4242 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4244 as_fn_arith $ac_count + 1 && ac_count=$as_val 4245 if test $ac_count -gt ${ac_path_SED_max-0}; then 4246 # Best one so far, save it but keep looking for a better one 4247 ac_cv_path_SED="$ac_path_SED" 4248 ac_path_SED_max=$ac_count 4249 fi 4250 # 10*(2^10) chars as input seems more than enough 4251 test $ac_count -gt 10 && break 4252 done 4253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4254 esac 4255 4256 $ac_path_SED_found && break 3 4257 done 4258 done 4259 done 4260 IFS=$as_save_IFS 4261 if test -z "$ac_cv_path_SED"; then 4262 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4263 fi 4264 else 4265 ac_cv_path_SED=$SED 4266 fi 4267 4268 fi 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4270 printf "%s\n" "$ac_cv_path_SED" >&6; } 4271 SED="$ac_cv_path_SED" 4272 rm -f conftest.sed 4273 4274 4275 4276 4277 4278 4279 # Check whether --enable-selective-werror was given. 4280 if test ${enable_selective_werror+y} 4281 then : 4282 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4283 else $as_nop 4284 SELECTIVE_WERROR=yes 4285 fi 4286 4287 4288 4289 4290 4291 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4292 if test "x$SUNCC" = "xyes"; then 4293 BASE_CFLAGS="-v" 4294 else 4295 BASE_CFLAGS="" 4296 fi 4297 4298 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 xorg_testset_save_CFLAGS="$CFLAGS" 4313 4314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4317 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4318 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4319 then : 4320 printf %s "(cached) " >&6 4321 else $as_nop 4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4323 /* end confdefs.h. */ 4324 int i; 4325 _ACEOF 4326 if ac_fn_c_try_compile "$LINENO" 4327 then : 4328 xorg_cv_cc_flag_unknown_warning_option=yes 4329 else $as_nop 4330 xorg_cv_cc_flag_unknown_warning_option=no 4331 fi 4332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4333 fi 4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4335 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4337 CFLAGS="$xorg_testset_save_CFLAGS" 4338 fi 4339 4340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4343 fi 4344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4346 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4347 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4348 then : 4349 printf %s "(cached) " >&6 4350 else $as_nop 4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4352 /* end confdefs.h. */ 4353 int i; 4354 _ACEOF 4355 if ac_fn_c_try_compile "$LINENO" 4356 then : 4357 xorg_cv_cc_flag_unused_command_line_argument=yes 4358 else $as_nop 4359 xorg_cv_cc_flag_unused_command_line_argument=no 4360 fi 4361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4362 fi 4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4364 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4366 CFLAGS="$xorg_testset_save_CFLAGS" 4367 fi 4368 4369 found="no" 4370 4371 if test $found = "no" ; then 4372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4374 fi 4375 4376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4378 fi 4379 4380 CFLAGS="$CFLAGS -Wall" 4381 4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4383 printf %s "checking if $CC supports -Wall... " >&6; } 4384 cacheid=xorg_cv_cc_flag__Wall 4385 if eval test \${$cacheid+y} 4386 then : 4387 printf %s "(cached) " >&6 4388 else $as_nop 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390 /* end confdefs.h. */ 4391 int i; 4392 int 4393 main (void) 4394 { 4395 4396 ; 4397 return 0; 4398 } 4399 _ACEOF 4400 if ac_fn_c_try_link "$LINENO" 4401 then : 4402 eval $cacheid=yes 4403 else $as_nop 4404 eval $cacheid=no 4405 fi 4406 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4407 conftest$ac_exeext conftest.$ac_ext 4408 fi 4409 4410 4411 CFLAGS="$xorg_testset_save_CFLAGS" 4412 4413 eval supported=\$$cacheid 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4415 printf "%s\n" "$supported" >&6; } 4416 if test "$supported" = "yes" ; then 4417 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4418 found="yes" 4419 fi 4420 fi 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 xorg_testset_save_CFLAGS="$CFLAGS" 4437 4438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4441 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4442 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4443 then : 4444 printf %s "(cached) " >&6 4445 else $as_nop 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447 /* end confdefs.h. */ 4448 int i; 4449 _ACEOF 4450 if ac_fn_c_try_compile "$LINENO" 4451 then : 4452 xorg_cv_cc_flag_unknown_warning_option=yes 4453 else $as_nop 4454 xorg_cv_cc_flag_unknown_warning_option=no 4455 fi 4456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4457 fi 4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4459 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4461 CFLAGS="$xorg_testset_save_CFLAGS" 4462 fi 4463 4464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4467 fi 4468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4470 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4471 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4472 then : 4473 printf %s "(cached) " >&6 4474 else $as_nop 4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4476 /* end confdefs.h. */ 4477 int i; 4478 _ACEOF 4479 if ac_fn_c_try_compile "$LINENO" 4480 then : 4481 xorg_cv_cc_flag_unused_command_line_argument=yes 4482 else $as_nop 4483 xorg_cv_cc_flag_unused_command_line_argument=no 4484 fi 4485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4486 fi 4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4488 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4490 CFLAGS="$xorg_testset_save_CFLAGS" 4491 fi 4492 4493 found="no" 4494 4495 if test $found = "no" ; then 4496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4498 fi 4499 4500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4502 fi 4503 4504 CFLAGS="$CFLAGS -Wpointer-arith" 4505 4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4507 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 4508 cacheid=xorg_cv_cc_flag__Wpointer_arith 4509 if eval test \${$cacheid+y} 4510 then : 4511 printf %s "(cached) " >&6 4512 else $as_nop 4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4514 /* end confdefs.h. */ 4515 int i; 4516 int 4517 main (void) 4518 { 4519 4520 ; 4521 return 0; 4522 } 4523 _ACEOF 4524 if ac_fn_c_try_link "$LINENO" 4525 then : 4526 eval $cacheid=yes 4527 else $as_nop 4528 eval $cacheid=no 4529 fi 4530 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4531 conftest$ac_exeext conftest.$ac_ext 4532 fi 4533 4534 4535 CFLAGS="$xorg_testset_save_CFLAGS" 4536 4537 eval supported=\$$cacheid 4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4539 printf "%s\n" "$supported" >&6; } 4540 if test "$supported" = "yes" ; then 4541 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4542 found="yes" 4543 fi 4544 fi 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 xorg_testset_save_CFLAGS="$CFLAGS" 4561 4562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4565 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4566 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4567 then : 4568 printf %s "(cached) " >&6 4569 else $as_nop 4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4571 /* end confdefs.h. */ 4572 int i; 4573 _ACEOF 4574 if ac_fn_c_try_compile "$LINENO" 4575 then : 4576 xorg_cv_cc_flag_unknown_warning_option=yes 4577 else $as_nop 4578 xorg_cv_cc_flag_unknown_warning_option=no 4579 fi 4580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4581 fi 4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4583 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4585 CFLAGS="$xorg_testset_save_CFLAGS" 4586 fi 4587 4588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4591 fi 4592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4594 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4595 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4596 then : 4597 printf %s "(cached) " >&6 4598 else $as_nop 4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4600 /* end confdefs.h. */ 4601 int i; 4602 _ACEOF 4603 if ac_fn_c_try_compile "$LINENO" 4604 then : 4605 xorg_cv_cc_flag_unused_command_line_argument=yes 4606 else $as_nop 4607 xorg_cv_cc_flag_unused_command_line_argument=no 4608 fi 4609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4610 fi 4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4612 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4614 CFLAGS="$xorg_testset_save_CFLAGS" 4615 fi 4616 4617 found="no" 4618 4619 if test $found = "no" ; then 4620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4622 fi 4623 4624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4626 fi 4627 4628 CFLAGS="$CFLAGS -Wmissing-declarations" 4629 4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4631 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 4632 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4633 if eval test \${$cacheid+y} 4634 then : 4635 printf %s "(cached) " >&6 4636 else $as_nop 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4638 /* end confdefs.h. */ 4639 int i; 4640 int 4641 main (void) 4642 { 4643 4644 ; 4645 return 0; 4646 } 4647 _ACEOF 4648 if ac_fn_c_try_link "$LINENO" 4649 then : 4650 eval $cacheid=yes 4651 else $as_nop 4652 eval $cacheid=no 4653 fi 4654 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4655 conftest$ac_exeext conftest.$ac_ext 4656 fi 4657 4658 4659 CFLAGS="$xorg_testset_save_CFLAGS" 4660 4661 eval supported=\$$cacheid 4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4663 printf "%s\n" "$supported" >&6; } 4664 if test "$supported" = "yes" ; then 4665 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4666 found="yes" 4667 fi 4668 fi 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 xorg_testset_save_CFLAGS="$CFLAGS" 4685 4686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4689 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4690 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4691 then : 4692 printf %s "(cached) " >&6 4693 else $as_nop 4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4695 /* end confdefs.h. */ 4696 int i; 4697 _ACEOF 4698 if ac_fn_c_try_compile "$LINENO" 4699 then : 4700 xorg_cv_cc_flag_unknown_warning_option=yes 4701 else $as_nop 4702 xorg_cv_cc_flag_unknown_warning_option=no 4703 fi 4704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4705 fi 4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4707 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4709 CFLAGS="$xorg_testset_save_CFLAGS" 4710 fi 4711 4712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4715 fi 4716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4718 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4719 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4720 then : 4721 printf %s "(cached) " >&6 4722 else $as_nop 4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4724 /* end confdefs.h. */ 4725 int i; 4726 _ACEOF 4727 if ac_fn_c_try_compile "$LINENO" 4728 then : 4729 xorg_cv_cc_flag_unused_command_line_argument=yes 4730 else $as_nop 4731 xorg_cv_cc_flag_unused_command_line_argument=no 4732 fi 4733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4734 fi 4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4736 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4738 CFLAGS="$xorg_testset_save_CFLAGS" 4739 fi 4740 4741 found="no" 4742 4743 if test $found = "no" ; then 4744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4746 fi 4747 4748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4750 fi 4751 4752 CFLAGS="$CFLAGS -Wformat=2" 4753 4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4755 printf %s "checking if $CC supports -Wformat=2... " >&6; } 4756 cacheid=xorg_cv_cc_flag__Wformat_2 4757 if eval test \${$cacheid+y} 4758 then : 4759 printf %s "(cached) " >&6 4760 else $as_nop 4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4762 /* end confdefs.h. */ 4763 int i; 4764 int 4765 main (void) 4766 { 4767 4768 ; 4769 return 0; 4770 } 4771 _ACEOF 4772 if ac_fn_c_try_link "$LINENO" 4773 then : 4774 eval $cacheid=yes 4775 else $as_nop 4776 eval $cacheid=no 4777 fi 4778 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4779 conftest$ac_exeext conftest.$ac_ext 4780 fi 4781 4782 4783 CFLAGS="$xorg_testset_save_CFLAGS" 4784 4785 eval supported=\$$cacheid 4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4787 printf "%s\n" "$supported" >&6; } 4788 if test "$supported" = "yes" ; then 4789 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4790 found="yes" 4791 fi 4792 fi 4793 4794 if test $found = "no" ; then 4795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4797 fi 4798 4799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4801 fi 4802 4803 CFLAGS="$CFLAGS -Wformat" 4804 4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4806 printf %s "checking if $CC supports -Wformat... " >&6; } 4807 cacheid=xorg_cv_cc_flag__Wformat 4808 if eval test \${$cacheid+y} 4809 then : 4810 printf %s "(cached) " >&6 4811 else $as_nop 4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4813 /* end confdefs.h. */ 4814 int i; 4815 int 4816 main (void) 4817 { 4818 4819 ; 4820 return 0; 4821 } 4822 _ACEOF 4823 if ac_fn_c_try_link "$LINENO" 4824 then : 4825 eval $cacheid=yes 4826 else $as_nop 4827 eval $cacheid=no 4828 fi 4829 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4830 conftest$ac_exeext conftest.$ac_ext 4831 fi 4832 4833 4834 CFLAGS="$xorg_testset_save_CFLAGS" 4835 4836 eval supported=\$$cacheid 4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4838 printf "%s\n" "$supported" >&6; } 4839 if test "$supported" = "yes" ; then 4840 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4841 found="yes" 4842 fi 4843 fi 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 xorg_testset_save_CFLAGS="$CFLAGS" 4862 4863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4867 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4868 then : 4869 printf %s "(cached) " >&6 4870 else $as_nop 4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4872 /* end confdefs.h. */ 4873 int i; 4874 _ACEOF 4875 if ac_fn_c_try_compile "$LINENO" 4876 then : 4877 xorg_cv_cc_flag_unknown_warning_option=yes 4878 else $as_nop 4879 xorg_cv_cc_flag_unknown_warning_option=no 4880 fi 4881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4882 fi 4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4884 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4886 CFLAGS="$xorg_testset_save_CFLAGS" 4887 fi 4888 4889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4892 fi 4893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4897 then : 4898 printf %s "(cached) " >&6 4899 else $as_nop 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4901 /* end confdefs.h. */ 4902 int i; 4903 _ACEOF 4904 if ac_fn_c_try_compile "$LINENO" 4905 then : 4906 xorg_cv_cc_flag_unused_command_line_argument=yes 4907 else $as_nop 4908 xorg_cv_cc_flag_unused_command_line_argument=no 4909 fi 4910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4911 fi 4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4913 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4915 CFLAGS="$xorg_testset_save_CFLAGS" 4916 fi 4917 4918 found="no" 4919 4920 if test $found = "no" ; then 4921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4923 fi 4924 4925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4927 fi 4928 4929 CFLAGS="$CFLAGS -Wstrict-prototypes" 4930 4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4932 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 4933 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 4934 if eval test \${$cacheid+y} 4935 then : 4936 printf %s "(cached) " >&6 4937 else $as_nop 4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4939 /* end confdefs.h. */ 4940 int i; 4941 int 4942 main (void) 4943 { 4944 4945 ; 4946 return 0; 4947 } 4948 _ACEOF 4949 if ac_fn_c_try_link "$LINENO" 4950 then : 4951 eval $cacheid=yes 4952 else $as_nop 4953 eval $cacheid=no 4954 fi 4955 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4956 conftest$ac_exeext conftest.$ac_ext 4957 fi 4958 4959 4960 CFLAGS="$xorg_testset_save_CFLAGS" 4961 4962 eval supported=\$$cacheid 4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4964 printf "%s\n" "$supported" >&6; } 4965 if test "$supported" = "yes" ; then 4966 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4967 found="yes" 4968 fi 4969 fi 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 xorg_testset_save_CFLAGS="$CFLAGS" 4986 4987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4991 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4992 then : 4993 printf %s "(cached) " >&6 4994 else $as_nop 4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4996 /* end confdefs.h. */ 4997 int i; 4998 _ACEOF 4999 if ac_fn_c_try_compile "$LINENO" 5000 then : 5001 xorg_cv_cc_flag_unknown_warning_option=yes 5002 else $as_nop 5003 xorg_cv_cc_flag_unknown_warning_option=no 5004 fi 5005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5006 fi 5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5008 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5010 CFLAGS="$xorg_testset_save_CFLAGS" 5011 fi 5012 5013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5016 fi 5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5019 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5020 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5021 then : 5022 printf %s "(cached) " >&6 5023 else $as_nop 5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5025 /* end confdefs.h. */ 5026 int i; 5027 _ACEOF 5028 if ac_fn_c_try_compile "$LINENO" 5029 then : 5030 xorg_cv_cc_flag_unused_command_line_argument=yes 5031 else $as_nop 5032 xorg_cv_cc_flag_unused_command_line_argument=no 5033 fi 5034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5035 fi 5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5037 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5039 CFLAGS="$xorg_testset_save_CFLAGS" 5040 fi 5041 5042 found="no" 5043 5044 if test $found = "no" ; then 5045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5047 fi 5048 5049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5051 fi 5052 5053 CFLAGS="$CFLAGS -Wmissing-prototypes" 5054 5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5056 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5057 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5058 if eval test \${$cacheid+y} 5059 then : 5060 printf %s "(cached) " >&6 5061 else $as_nop 5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5063 /* end confdefs.h. */ 5064 int i; 5065 int 5066 main (void) 5067 { 5068 5069 ; 5070 return 0; 5071 } 5072 _ACEOF 5073 if ac_fn_c_try_link "$LINENO" 5074 then : 5075 eval $cacheid=yes 5076 else $as_nop 5077 eval $cacheid=no 5078 fi 5079 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5080 conftest$ac_exeext conftest.$ac_ext 5081 fi 5082 5083 5084 CFLAGS="$xorg_testset_save_CFLAGS" 5085 5086 eval supported=\$$cacheid 5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5088 printf "%s\n" "$supported" >&6; } 5089 if test "$supported" = "yes" ; then 5090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5091 found="yes" 5092 fi 5093 fi 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 xorg_testset_save_CFLAGS="$CFLAGS" 5110 5111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5115 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5116 then : 5117 printf %s "(cached) " >&6 5118 else $as_nop 5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5120 /* end confdefs.h. */ 5121 int i; 5122 _ACEOF 5123 if ac_fn_c_try_compile "$LINENO" 5124 then : 5125 xorg_cv_cc_flag_unknown_warning_option=yes 5126 else $as_nop 5127 xorg_cv_cc_flag_unknown_warning_option=no 5128 fi 5129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5130 fi 5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5132 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5134 CFLAGS="$xorg_testset_save_CFLAGS" 5135 fi 5136 5137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5140 fi 5141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5143 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5144 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5145 then : 5146 printf %s "(cached) " >&6 5147 else $as_nop 5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5149 /* end confdefs.h. */ 5150 int i; 5151 _ACEOF 5152 if ac_fn_c_try_compile "$LINENO" 5153 then : 5154 xorg_cv_cc_flag_unused_command_line_argument=yes 5155 else $as_nop 5156 xorg_cv_cc_flag_unused_command_line_argument=no 5157 fi 5158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5159 fi 5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5161 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5163 CFLAGS="$xorg_testset_save_CFLAGS" 5164 fi 5165 5166 found="no" 5167 5168 if test $found = "no" ; then 5169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5171 fi 5172 5173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5175 fi 5176 5177 CFLAGS="$CFLAGS -Wnested-externs" 5178 5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5180 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5181 cacheid=xorg_cv_cc_flag__Wnested_externs 5182 if eval test \${$cacheid+y} 5183 then : 5184 printf %s "(cached) " >&6 5185 else $as_nop 5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5187 /* end confdefs.h. */ 5188 int i; 5189 int 5190 main (void) 5191 { 5192 5193 ; 5194 return 0; 5195 } 5196 _ACEOF 5197 if ac_fn_c_try_link "$LINENO" 5198 then : 5199 eval $cacheid=yes 5200 else $as_nop 5201 eval $cacheid=no 5202 fi 5203 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5204 conftest$ac_exeext conftest.$ac_ext 5205 fi 5206 5207 5208 CFLAGS="$xorg_testset_save_CFLAGS" 5209 5210 eval supported=\$$cacheid 5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5212 printf "%s\n" "$supported" >&6; } 5213 if test "$supported" = "yes" ; then 5214 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5215 found="yes" 5216 fi 5217 fi 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 xorg_testset_save_CFLAGS="$CFLAGS" 5234 5235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5239 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5240 then : 5241 printf %s "(cached) " >&6 5242 else $as_nop 5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244 /* end confdefs.h. */ 5245 int i; 5246 _ACEOF 5247 if ac_fn_c_try_compile "$LINENO" 5248 then : 5249 xorg_cv_cc_flag_unknown_warning_option=yes 5250 else $as_nop 5251 xorg_cv_cc_flag_unknown_warning_option=no 5252 fi 5253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5254 fi 5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5258 CFLAGS="$xorg_testset_save_CFLAGS" 5259 fi 5260 5261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5264 fi 5265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5269 then : 5270 printf %s "(cached) " >&6 5271 else $as_nop 5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5273 /* end confdefs.h. */ 5274 int i; 5275 _ACEOF 5276 if ac_fn_c_try_compile "$LINENO" 5277 then : 5278 xorg_cv_cc_flag_unused_command_line_argument=yes 5279 else $as_nop 5280 xorg_cv_cc_flag_unused_command_line_argument=no 5281 fi 5282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5283 fi 5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5287 CFLAGS="$xorg_testset_save_CFLAGS" 5288 fi 5289 5290 found="no" 5291 5292 if test $found = "no" ; then 5293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5295 fi 5296 5297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5299 fi 5300 5301 CFLAGS="$CFLAGS -Wbad-function-cast" 5302 5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5304 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5305 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5306 if eval test \${$cacheid+y} 5307 then : 5308 printf %s "(cached) " >&6 5309 else $as_nop 5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5311 /* end confdefs.h. */ 5312 int i; 5313 int 5314 main (void) 5315 { 5316 5317 ; 5318 return 0; 5319 } 5320 _ACEOF 5321 if ac_fn_c_try_link "$LINENO" 5322 then : 5323 eval $cacheid=yes 5324 else $as_nop 5325 eval $cacheid=no 5326 fi 5327 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5328 conftest$ac_exeext conftest.$ac_ext 5329 fi 5330 5331 5332 CFLAGS="$xorg_testset_save_CFLAGS" 5333 5334 eval supported=\$$cacheid 5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5336 printf "%s\n" "$supported" >&6; } 5337 if test "$supported" = "yes" ; then 5338 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5339 found="yes" 5340 fi 5341 fi 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 xorg_testset_save_CFLAGS="$CFLAGS" 5358 5359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5362 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5363 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5364 then : 5365 printf %s "(cached) " >&6 5366 else $as_nop 5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5368 /* end confdefs.h. */ 5369 int i; 5370 _ACEOF 5371 if ac_fn_c_try_compile "$LINENO" 5372 then : 5373 xorg_cv_cc_flag_unknown_warning_option=yes 5374 else $as_nop 5375 xorg_cv_cc_flag_unknown_warning_option=no 5376 fi 5377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5378 fi 5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5380 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5382 CFLAGS="$xorg_testset_save_CFLAGS" 5383 fi 5384 5385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5388 fi 5389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5391 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5392 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5393 then : 5394 printf %s "(cached) " >&6 5395 else $as_nop 5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5397 /* end confdefs.h. */ 5398 int i; 5399 _ACEOF 5400 if ac_fn_c_try_compile "$LINENO" 5401 then : 5402 xorg_cv_cc_flag_unused_command_line_argument=yes 5403 else $as_nop 5404 xorg_cv_cc_flag_unused_command_line_argument=no 5405 fi 5406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5407 fi 5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5409 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5411 CFLAGS="$xorg_testset_save_CFLAGS" 5412 fi 5413 5414 found="no" 5415 5416 if test $found = "no" ; then 5417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5419 fi 5420 5421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5423 fi 5424 5425 CFLAGS="$CFLAGS -Wold-style-definition" 5426 5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5428 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5429 cacheid=xorg_cv_cc_flag__Wold_style_definition 5430 if eval test \${$cacheid+y} 5431 then : 5432 printf %s "(cached) " >&6 5433 else $as_nop 5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5435 /* end confdefs.h. */ 5436 int i; 5437 int 5438 main (void) 5439 { 5440 5441 ; 5442 return 0; 5443 } 5444 _ACEOF 5445 if ac_fn_c_try_link "$LINENO" 5446 then : 5447 eval $cacheid=yes 5448 else $as_nop 5449 eval $cacheid=no 5450 fi 5451 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5452 conftest$ac_exeext conftest.$ac_ext 5453 fi 5454 5455 5456 CFLAGS="$xorg_testset_save_CFLAGS" 5457 5458 eval supported=\$$cacheid 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5460 printf "%s\n" "$supported" >&6; } 5461 if test "$supported" = "yes" ; then 5462 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5463 found="yes" 5464 fi 5465 fi 5466 5467 if test $found = "no" ; then 5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 fi 5471 5472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5474 fi 5475 5476 CFLAGS="$CFLAGS -fd" 5477 5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5479 printf %s "checking if $CC supports -fd... " >&6; } 5480 cacheid=xorg_cv_cc_flag__fd 5481 if eval test \${$cacheid+y} 5482 then : 5483 printf %s "(cached) " >&6 5484 else $as_nop 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486 /* end confdefs.h. */ 5487 int i; 5488 int 5489 main (void) 5490 { 5491 5492 ; 5493 return 0; 5494 } 5495 _ACEOF 5496 if ac_fn_c_try_link "$LINENO" 5497 then : 5498 eval $cacheid=yes 5499 else $as_nop 5500 eval $cacheid=no 5501 fi 5502 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5503 conftest$ac_exeext conftest.$ac_ext 5504 fi 5505 5506 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508 5509 eval supported=\$$cacheid 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5511 printf "%s\n" "$supported" >&6; } 5512 if test "$supported" = "yes" ; then 5513 BASE_CFLAGS="$BASE_CFLAGS -fd" 5514 found="yes" 5515 fi 5516 fi 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 xorg_testset_save_CFLAGS="$CFLAGS" 5533 5534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5538 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5539 then : 5540 printf %s "(cached) " >&6 5541 else $as_nop 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5543 /* end confdefs.h. */ 5544 int i; 5545 _ACEOF 5546 if ac_fn_c_try_compile "$LINENO" 5547 then : 5548 xorg_cv_cc_flag_unknown_warning_option=yes 5549 else $as_nop 5550 xorg_cv_cc_flag_unknown_warning_option=no 5551 fi 5552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5553 fi 5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5555 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5557 CFLAGS="$xorg_testset_save_CFLAGS" 5558 fi 5559 5560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 fi 5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5568 then : 5569 printf %s "(cached) " >&6 5570 else $as_nop 5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5572 /* end confdefs.h. */ 5573 int i; 5574 _ACEOF 5575 if ac_fn_c_try_compile "$LINENO" 5576 then : 5577 xorg_cv_cc_flag_unused_command_line_argument=yes 5578 else $as_nop 5579 xorg_cv_cc_flag_unused_command_line_argument=no 5580 fi 5581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5582 fi 5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5584 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5586 CFLAGS="$xorg_testset_save_CFLAGS" 5587 fi 5588 5589 found="no" 5590 5591 if test $found = "no" ; then 5592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5594 fi 5595 5596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5598 fi 5599 5600 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5601 5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5603 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5604 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5605 if eval test \${$cacheid+y} 5606 then : 5607 printf %s "(cached) " >&6 5608 else $as_nop 5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5610 /* end confdefs.h. */ 5611 int i; 5612 int 5613 main (void) 5614 { 5615 5616 ; 5617 return 0; 5618 } 5619 _ACEOF 5620 if ac_fn_c_try_link "$LINENO" 5621 then : 5622 eval $cacheid=yes 5623 else $as_nop 5624 eval $cacheid=no 5625 fi 5626 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5627 conftest$ac_exeext conftest.$ac_ext 5628 fi 5629 5630 5631 CFLAGS="$xorg_testset_save_CFLAGS" 5632 5633 eval supported=\$$cacheid 5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5635 printf "%s\n" "$supported" >&6; } 5636 if test "$supported" = "yes" ; then 5637 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5638 found="yes" 5639 fi 5640 fi 5641 5642 5643 5644 5645 5646 # This chunk adds additional warnings that could catch undesired effects. 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 xorg_testset_save_CFLAGS="$CFLAGS" 5661 5662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5665 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5666 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5667 then : 5668 printf %s "(cached) " >&6 5669 else $as_nop 5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5671 /* end confdefs.h. */ 5672 int i; 5673 _ACEOF 5674 if ac_fn_c_try_compile "$LINENO" 5675 then : 5676 xorg_cv_cc_flag_unknown_warning_option=yes 5677 else $as_nop 5678 xorg_cv_cc_flag_unknown_warning_option=no 5679 fi 5680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5681 fi 5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5683 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5685 CFLAGS="$xorg_testset_save_CFLAGS" 5686 fi 5687 5688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5691 fi 5692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5696 then : 5697 printf %s "(cached) " >&6 5698 else $as_nop 5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5700 /* end confdefs.h. */ 5701 int i; 5702 _ACEOF 5703 if ac_fn_c_try_compile "$LINENO" 5704 then : 5705 xorg_cv_cc_flag_unused_command_line_argument=yes 5706 else $as_nop 5707 xorg_cv_cc_flag_unused_command_line_argument=no 5708 fi 5709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5710 fi 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5712 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5714 CFLAGS="$xorg_testset_save_CFLAGS" 5715 fi 5716 5717 found="no" 5718 5719 if test $found = "no" ; then 5720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5722 fi 5723 5724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5726 fi 5727 5728 CFLAGS="$CFLAGS -Wunused" 5729 5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5731 printf %s "checking if $CC supports -Wunused... " >&6; } 5732 cacheid=xorg_cv_cc_flag__Wunused 5733 if eval test \${$cacheid+y} 5734 then : 5735 printf %s "(cached) " >&6 5736 else $as_nop 5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738 /* end confdefs.h. */ 5739 int i; 5740 int 5741 main (void) 5742 { 5743 5744 ; 5745 return 0; 5746 } 5747 _ACEOF 5748 if ac_fn_c_try_link "$LINENO" 5749 then : 5750 eval $cacheid=yes 5751 else $as_nop 5752 eval $cacheid=no 5753 fi 5754 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5755 conftest$ac_exeext conftest.$ac_ext 5756 fi 5757 5758 5759 CFLAGS="$xorg_testset_save_CFLAGS" 5760 5761 eval supported=\$$cacheid 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5763 printf "%s\n" "$supported" >&6; } 5764 if test "$supported" = "yes" ; then 5765 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5766 found="yes" 5767 fi 5768 fi 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 xorg_testset_save_CFLAGS="$CFLAGS" 5785 5786 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5789 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5790 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5791 then : 5792 printf %s "(cached) " >&6 5793 else $as_nop 5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5795 /* end confdefs.h. */ 5796 int i; 5797 _ACEOF 5798 if ac_fn_c_try_compile "$LINENO" 5799 then : 5800 xorg_cv_cc_flag_unknown_warning_option=yes 5801 else $as_nop 5802 xorg_cv_cc_flag_unknown_warning_option=no 5803 fi 5804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5805 fi 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5807 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5809 CFLAGS="$xorg_testset_save_CFLAGS" 5810 fi 5811 5812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5815 fi 5816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5818 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5819 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5820 then : 5821 printf %s "(cached) " >&6 5822 else $as_nop 5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824 /* end confdefs.h. */ 5825 int i; 5826 _ACEOF 5827 if ac_fn_c_try_compile "$LINENO" 5828 then : 5829 xorg_cv_cc_flag_unused_command_line_argument=yes 5830 else $as_nop 5831 xorg_cv_cc_flag_unused_command_line_argument=no 5832 fi 5833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5834 fi 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5836 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5838 CFLAGS="$xorg_testset_save_CFLAGS" 5839 fi 5840 5841 found="no" 5842 5843 if test $found = "no" ; then 5844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5846 fi 5847 5848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5850 fi 5851 5852 CFLAGS="$CFLAGS -Wuninitialized" 5853 5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5855 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 5856 cacheid=xorg_cv_cc_flag__Wuninitialized 5857 if eval test \${$cacheid+y} 5858 then : 5859 printf %s "(cached) " >&6 5860 else $as_nop 5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5862 /* end confdefs.h. */ 5863 int i; 5864 int 5865 main (void) 5866 { 5867 5868 ; 5869 return 0; 5870 } 5871 _ACEOF 5872 if ac_fn_c_try_link "$LINENO" 5873 then : 5874 eval $cacheid=yes 5875 else $as_nop 5876 eval $cacheid=no 5877 fi 5878 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5879 conftest$ac_exeext conftest.$ac_ext 5880 fi 5881 5882 5883 CFLAGS="$xorg_testset_save_CFLAGS" 5884 5885 eval supported=\$$cacheid 5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5887 printf "%s\n" "$supported" >&6; } 5888 if test "$supported" = "yes" ; then 5889 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5890 found="yes" 5891 fi 5892 fi 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 xorg_testset_save_CFLAGS="$CFLAGS" 5909 5910 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5913 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5914 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5915 then : 5916 printf %s "(cached) " >&6 5917 else $as_nop 5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5919 /* end confdefs.h. */ 5920 int i; 5921 _ACEOF 5922 if ac_fn_c_try_compile "$LINENO" 5923 then : 5924 xorg_cv_cc_flag_unknown_warning_option=yes 5925 else $as_nop 5926 xorg_cv_cc_flag_unknown_warning_option=no 5927 fi 5928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5929 fi 5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5931 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5933 CFLAGS="$xorg_testset_save_CFLAGS" 5934 fi 5935 5936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5939 fi 5940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5942 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5943 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5944 then : 5945 printf %s "(cached) " >&6 5946 else $as_nop 5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5948 /* end confdefs.h. */ 5949 int i; 5950 _ACEOF 5951 if ac_fn_c_try_compile "$LINENO" 5952 then : 5953 xorg_cv_cc_flag_unused_command_line_argument=yes 5954 else $as_nop 5955 xorg_cv_cc_flag_unused_command_line_argument=no 5956 fi 5957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5958 fi 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5960 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5962 CFLAGS="$xorg_testset_save_CFLAGS" 5963 fi 5964 5965 found="no" 5966 5967 if test $found = "no" ; then 5968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5970 fi 5971 5972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5974 fi 5975 5976 CFLAGS="$CFLAGS -Wshadow" 5977 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5979 printf %s "checking if $CC supports -Wshadow... " >&6; } 5980 cacheid=xorg_cv_cc_flag__Wshadow 5981 if eval test \${$cacheid+y} 5982 then : 5983 printf %s "(cached) " >&6 5984 else $as_nop 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986 /* end confdefs.h. */ 5987 int i; 5988 int 5989 main (void) 5990 { 5991 5992 ; 5993 return 0; 5994 } 5995 _ACEOF 5996 if ac_fn_c_try_link "$LINENO" 5997 then : 5998 eval $cacheid=yes 5999 else $as_nop 6000 eval $cacheid=no 6001 fi 6002 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6003 conftest$ac_exeext conftest.$ac_ext 6004 fi 6005 6006 6007 CFLAGS="$xorg_testset_save_CFLAGS" 6008 6009 eval supported=\$$cacheid 6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6011 printf "%s\n" "$supported" >&6; } 6012 if test "$supported" = "yes" ; then 6013 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6014 found="yes" 6015 fi 6016 fi 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 xorg_testset_save_CFLAGS="$CFLAGS" 6033 6034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6037 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6038 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6039 then : 6040 printf %s "(cached) " >&6 6041 else $as_nop 6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6043 /* end confdefs.h. */ 6044 int i; 6045 _ACEOF 6046 if ac_fn_c_try_compile "$LINENO" 6047 then : 6048 xorg_cv_cc_flag_unknown_warning_option=yes 6049 else $as_nop 6050 xorg_cv_cc_flag_unknown_warning_option=no 6051 fi 6052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6053 fi 6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6055 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6057 CFLAGS="$xorg_testset_save_CFLAGS" 6058 fi 6059 6060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6063 fi 6064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6066 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6067 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6068 then : 6069 printf %s "(cached) " >&6 6070 else $as_nop 6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6072 /* end confdefs.h. */ 6073 int i; 6074 _ACEOF 6075 if ac_fn_c_try_compile "$LINENO" 6076 then : 6077 xorg_cv_cc_flag_unused_command_line_argument=yes 6078 else $as_nop 6079 xorg_cv_cc_flag_unused_command_line_argument=no 6080 fi 6081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6082 fi 6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6084 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6086 CFLAGS="$xorg_testset_save_CFLAGS" 6087 fi 6088 6089 found="no" 6090 6091 if test $found = "no" ; then 6092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6094 fi 6095 6096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6098 fi 6099 6100 CFLAGS="$CFLAGS -Wmissing-noreturn" 6101 6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6103 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6104 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6105 if eval test \${$cacheid+y} 6106 then : 6107 printf %s "(cached) " >&6 6108 else $as_nop 6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6110 /* end confdefs.h. */ 6111 int i; 6112 int 6113 main (void) 6114 { 6115 6116 ; 6117 return 0; 6118 } 6119 _ACEOF 6120 if ac_fn_c_try_link "$LINENO" 6121 then : 6122 eval $cacheid=yes 6123 else $as_nop 6124 eval $cacheid=no 6125 fi 6126 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6127 conftest$ac_exeext conftest.$ac_ext 6128 fi 6129 6130 6131 CFLAGS="$xorg_testset_save_CFLAGS" 6132 6133 eval supported=\$$cacheid 6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6135 printf "%s\n" "$supported" >&6; } 6136 if test "$supported" = "yes" ; then 6137 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6138 found="yes" 6139 fi 6140 fi 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 xorg_testset_save_CFLAGS="$CFLAGS" 6157 6158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6161 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6162 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6163 then : 6164 printf %s "(cached) " >&6 6165 else $as_nop 6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6167 /* end confdefs.h. */ 6168 int i; 6169 _ACEOF 6170 if ac_fn_c_try_compile "$LINENO" 6171 then : 6172 xorg_cv_cc_flag_unknown_warning_option=yes 6173 else $as_nop 6174 xorg_cv_cc_flag_unknown_warning_option=no 6175 fi 6176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6177 fi 6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6179 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6181 CFLAGS="$xorg_testset_save_CFLAGS" 6182 fi 6183 6184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6187 fi 6188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6190 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6191 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6192 then : 6193 printf %s "(cached) " >&6 6194 else $as_nop 6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6196 /* end confdefs.h. */ 6197 int i; 6198 _ACEOF 6199 if ac_fn_c_try_compile "$LINENO" 6200 then : 6201 xorg_cv_cc_flag_unused_command_line_argument=yes 6202 else $as_nop 6203 xorg_cv_cc_flag_unused_command_line_argument=no 6204 fi 6205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6206 fi 6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6208 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6210 CFLAGS="$xorg_testset_save_CFLAGS" 6211 fi 6212 6213 found="no" 6214 6215 if test $found = "no" ; then 6216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6218 fi 6219 6220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6222 fi 6223 6224 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6225 6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6227 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6228 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6229 if eval test \${$cacheid+y} 6230 then : 6231 printf %s "(cached) " >&6 6232 else $as_nop 6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6234 /* end confdefs.h. */ 6235 int i; 6236 int 6237 main (void) 6238 { 6239 6240 ; 6241 return 0; 6242 } 6243 _ACEOF 6244 if ac_fn_c_try_link "$LINENO" 6245 then : 6246 eval $cacheid=yes 6247 else $as_nop 6248 eval $cacheid=no 6249 fi 6250 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6251 conftest$ac_exeext conftest.$ac_ext 6252 fi 6253 6254 6255 CFLAGS="$xorg_testset_save_CFLAGS" 6256 6257 eval supported=\$$cacheid 6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6259 printf "%s\n" "$supported" >&6; } 6260 if test "$supported" = "yes" ; then 6261 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6262 found="yes" 6263 fi 6264 fi 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 xorg_testset_save_CFLAGS="$CFLAGS" 6281 6282 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6285 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6286 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6287 then : 6288 printf %s "(cached) " >&6 6289 else $as_nop 6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6291 /* end confdefs.h. */ 6292 int i; 6293 _ACEOF 6294 if ac_fn_c_try_compile "$LINENO" 6295 then : 6296 xorg_cv_cc_flag_unknown_warning_option=yes 6297 else $as_nop 6298 xorg_cv_cc_flag_unknown_warning_option=no 6299 fi 6300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6301 fi 6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6303 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6305 CFLAGS="$xorg_testset_save_CFLAGS" 6306 fi 6307 6308 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6311 fi 6312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6314 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6315 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6316 then : 6317 printf %s "(cached) " >&6 6318 else $as_nop 6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6320 /* end confdefs.h. */ 6321 int i; 6322 _ACEOF 6323 if ac_fn_c_try_compile "$LINENO" 6324 then : 6325 xorg_cv_cc_flag_unused_command_line_argument=yes 6326 else $as_nop 6327 xorg_cv_cc_flag_unused_command_line_argument=no 6328 fi 6329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6330 fi 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6332 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6334 CFLAGS="$xorg_testset_save_CFLAGS" 6335 fi 6336 6337 found="no" 6338 6339 if test $found = "no" ; then 6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6342 fi 6343 6344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6346 fi 6347 6348 CFLAGS="$CFLAGS -Wredundant-decls" 6349 6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6351 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6352 cacheid=xorg_cv_cc_flag__Wredundant_decls 6353 if eval test \${$cacheid+y} 6354 then : 6355 printf %s "(cached) " >&6 6356 else $as_nop 6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6358 /* end confdefs.h. */ 6359 int i; 6360 int 6361 main (void) 6362 { 6363 6364 ; 6365 return 0; 6366 } 6367 _ACEOF 6368 if ac_fn_c_try_link "$LINENO" 6369 then : 6370 eval $cacheid=yes 6371 else $as_nop 6372 eval $cacheid=no 6373 fi 6374 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6375 conftest$ac_exeext conftest.$ac_ext 6376 fi 6377 6378 6379 CFLAGS="$xorg_testset_save_CFLAGS" 6380 6381 eval supported=\$$cacheid 6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6383 printf "%s\n" "$supported" >&6; } 6384 if test "$supported" = "yes" ; then 6385 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6386 found="yes" 6387 fi 6388 fi 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 xorg_testset_save_CFLAGS="$CFLAGS" 6405 6406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6409 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6410 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6411 then : 6412 printf %s "(cached) " >&6 6413 else $as_nop 6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6415 /* end confdefs.h. */ 6416 int i; 6417 _ACEOF 6418 if ac_fn_c_try_compile "$LINENO" 6419 then : 6420 xorg_cv_cc_flag_unknown_warning_option=yes 6421 else $as_nop 6422 xorg_cv_cc_flag_unknown_warning_option=no 6423 fi 6424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6425 fi 6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6427 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6429 CFLAGS="$xorg_testset_save_CFLAGS" 6430 fi 6431 6432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435 fi 6436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6438 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6439 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6440 then : 6441 printf %s "(cached) " >&6 6442 else $as_nop 6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6444 /* end confdefs.h. */ 6445 int i; 6446 _ACEOF 6447 if ac_fn_c_try_compile "$LINENO" 6448 then : 6449 xorg_cv_cc_flag_unused_command_line_argument=yes 6450 else $as_nop 6451 xorg_cv_cc_flag_unused_command_line_argument=no 6452 fi 6453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6454 fi 6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6456 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6458 CFLAGS="$xorg_testset_save_CFLAGS" 6459 fi 6460 6461 found="no" 6462 6463 if test $found = "no" ; then 6464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 fi 6467 6468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6470 fi 6471 6472 CFLAGS="$CFLAGS -Wlogical-op" 6473 6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6475 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6476 cacheid=xorg_cv_cc_flag__Wlogical_op 6477 if eval test \${$cacheid+y} 6478 then : 6479 printf %s "(cached) " >&6 6480 else $as_nop 6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482 /* end confdefs.h. */ 6483 int i; 6484 int 6485 main (void) 6486 { 6487 6488 ; 6489 return 0; 6490 } 6491 _ACEOF 6492 if ac_fn_c_try_link "$LINENO" 6493 then : 6494 eval $cacheid=yes 6495 else $as_nop 6496 eval $cacheid=no 6497 fi 6498 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6499 conftest$ac_exeext conftest.$ac_ext 6500 fi 6501 6502 6503 CFLAGS="$xorg_testset_save_CFLAGS" 6504 6505 eval supported=\$$cacheid 6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6507 printf "%s\n" "$supported" >&6; } 6508 if test "$supported" = "yes" ; then 6509 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6510 found="yes" 6511 fi 6512 fi 6513 6514 6515 6516 # These are currently disabled because they are noisy. They will be enabled 6517 # in the future once the codebase is sufficiently modernized to silence 6518 # them. For now, I don't want them to drown out the other warnings. 6519 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6520 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6521 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6522 6523 # Turn some warnings into errors, so we don't accidently get successful builds 6524 # when there are problems that should be fixed. 6525 6526 if test "x$SELECTIVE_WERROR" = "xyes" ; then 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 xorg_testset_save_CFLAGS="$CFLAGS" 6541 6542 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6545 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6546 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6547 then : 6548 printf %s "(cached) " >&6 6549 else $as_nop 6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6551 /* end confdefs.h. */ 6552 int i; 6553 _ACEOF 6554 if ac_fn_c_try_compile "$LINENO" 6555 then : 6556 xorg_cv_cc_flag_unknown_warning_option=yes 6557 else $as_nop 6558 xorg_cv_cc_flag_unknown_warning_option=no 6559 fi 6560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6561 fi 6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6563 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6565 CFLAGS="$xorg_testset_save_CFLAGS" 6566 fi 6567 6568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6571 fi 6572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6574 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6575 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6576 then : 6577 printf %s "(cached) " >&6 6578 else $as_nop 6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6580 /* end confdefs.h. */ 6581 int i; 6582 _ACEOF 6583 if ac_fn_c_try_compile "$LINENO" 6584 then : 6585 xorg_cv_cc_flag_unused_command_line_argument=yes 6586 else $as_nop 6587 xorg_cv_cc_flag_unused_command_line_argument=no 6588 fi 6589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6590 fi 6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6592 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6594 CFLAGS="$xorg_testset_save_CFLAGS" 6595 fi 6596 6597 found="no" 6598 6599 if test $found = "no" ; then 6600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6602 fi 6603 6604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6606 fi 6607 6608 CFLAGS="$CFLAGS -Werror=implicit" 6609 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6611 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 6612 cacheid=xorg_cv_cc_flag__Werror_implicit 6613 if eval test \${$cacheid+y} 6614 then : 6615 printf %s "(cached) " >&6 6616 else $as_nop 6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6618 /* end confdefs.h. */ 6619 int i; 6620 int 6621 main (void) 6622 { 6623 6624 ; 6625 return 0; 6626 } 6627 _ACEOF 6628 if ac_fn_c_try_link "$LINENO" 6629 then : 6630 eval $cacheid=yes 6631 else $as_nop 6632 eval $cacheid=no 6633 fi 6634 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6635 conftest$ac_exeext conftest.$ac_ext 6636 fi 6637 6638 6639 CFLAGS="$xorg_testset_save_CFLAGS" 6640 6641 eval supported=\$$cacheid 6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6643 printf "%s\n" "$supported" >&6; } 6644 if test "$supported" = "yes" ; then 6645 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6646 found="yes" 6647 fi 6648 fi 6649 6650 if test $found = "no" ; then 6651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6653 fi 6654 6655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6657 fi 6658 6659 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6660 6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6662 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6663 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6664 if eval test \${$cacheid+y} 6665 then : 6666 printf %s "(cached) " >&6 6667 else $as_nop 6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669 /* end confdefs.h. */ 6670 int i; 6671 int 6672 main (void) 6673 { 6674 6675 ; 6676 return 0; 6677 } 6678 _ACEOF 6679 if ac_fn_c_try_link "$LINENO" 6680 then : 6681 eval $cacheid=yes 6682 else $as_nop 6683 eval $cacheid=no 6684 fi 6685 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6686 conftest$ac_exeext conftest.$ac_ext 6687 fi 6688 6689 6690 CFLAGS="$xorg_testset_save_CFLAGS" 6691 6692 eval supported=\$$cacheid 6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6694 printf "%s\n" "$supported" >&6; } 6695 if test "$supported" = "yes" ; then 6696 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6697 found="yes" 6698 fi 6699 fi 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 xorg_testset_save_CFLAGS="$CFLAGS" 6716 6717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6720 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6721 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6722 then : 6723 printf %s "(cached) " >&6 6724 else $as_nop 6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6726 /* end confdefs.h. */ 6727 int i; 6728 _ACEOF 6729 if ac_fn_c_try_compile "$LINENO" 6730 then : 6731 xorg_cv_cc_flag_unknown_warning_option=yes 6732 else $as_nop 6733 xorg_cv_cc_flag_unknown_warning_option=no 6734 fi 6735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6736 fi 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6738 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6740 CFLAGS="$xorg_testset_save_CFLAGS" 6741 fi 6742 6743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6746 fi 6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6749 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6750 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6751 then : 6752 printf %s "(cached) " >&6 6753 else $as_nop 6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6755 /* end confdefs.h. */ 6756 int i; 6757 _ACEOF 6758 if ac_fn_c_try_compile "$LINENO" 6759 then : 6760 xorg_cv_cc_flag_unused_command_line_argument=yes 6761 else $as_nop 6762 xorg_cv_cc_flag_unused_command_line_argument=no 6763 fi 6764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6765 fi 6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6767 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6769 CFLAGS="$xorg_testset_save_CFLAGS" 6770 fi 6771 6772 found="no" 6773 6774 if test $found = "no" ; then 6775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6777 fi 6778 6779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6781 fi 6782 6783 CFLAGS="$CFLAGS -Werror=nonnull" 6784 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6786 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 6787 cacheid=xorg_cv_cc_flag__Werror_nonnull 6788 if eval test \${$cacheid+y} 6789 then : 6790 printf %s "(cached) " >&6 6791 else $as_nop 6792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6793 /* end confdefs.h. */ 6794 int i; 6795 int 6796 main (void) 6797 { 6798 6799 ; 6800 return 0; 6801 } 6802 _ACEOF 6803 if ac_fn_c_try_link "$LINENO" 6804 then : 6805 eval $cacheid=yes 6806 else $as_nop 6807 eval $cacheid=no 6808 fi 6809 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6810 conftest$ac_exeext conftest.$ac_ext 6811 fi 6812 6813 6814 CFLAGS="$xorg_testset_save_CFLAGS" 6815 6816 eval supported=\$$cacheid 6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6818 printf "%s\n" "$supported" >&6; } 6819 if test "$supported" = "yes" ; then 6820 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6821 found="yes" 6822 fi 6823 fi 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 xorg_testset_save_CFLAGS="$CFLAGS" 6840 6841 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6844 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6845 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6846 then : 6847 printf %s "(cached) " >&6 6848 else $as_nop 6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6850 /* end confdefs.h. */ 6851 int i; 6852 _ACEOF 6853 if ac_fn_c_try_compile "$LINENO" 6854 then : 6855 xorg_cv_cc_flag_unknown_warning_option=yes 6856 else $as_nop 6857 xorg_cv_cc_flag_unknown_warning_option=no 6858 fi 6859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6860 fi 6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6862 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6864 CFLAGS="$xorg_testset_save_CFLAGS" 6865 fi 6866 6867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6870 fi 6871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6873 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6874 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6875 then : 6876 printf %s "(cached) " >&6 6877 else $as_nop 6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6879 /* end confdefs.h. */ 6880 int i; 6881 _ACEOF 6882 if ac_fn_c_try_compile "$LINENO" 6883 then : 6884 xorg_cv_cc_flag_unused_command_line_argument=yes 6885 else $as_nop 6886 xorg_cv_cc_flag_unused_command_line_argument=no 6887 fi 6888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6889 fi 6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6891 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6893 CFLAGS="$xorg_testset_save_CFLAGS" 6894 fi 6895 6896 found="no" 6897 6898 if test $found = "no" ; then 6899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6901 fi 6902 6903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6905 fi 6906 6907 CFLAGS="$CFLAGS -Werror=init-self" 6908 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6910 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 6911 cacheid=xorg_cv_cc_flag__Werror_init_self 6912 if eval test \${$cacheid+y} 6913 then : 6914 printf %s "(cached) " >&6 6915 else $as_nop 6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6917 /* end confdefs.h. */ 6918 int i; 6919 int 6920 main (void) 6921 { 6922 6923 ; 6924 return 0; 6925 } 6926 _ACEOF 6927 if ac_fn_c_try_link "$LINENO" 6928 then : 6929 eval $cacheid=yes 6930 else $as_nop 6931 eval $cacheid=no 6932 fi 6933 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6934 conftest$ac_exeext conftest.$ac_ext 6935 fi 6936 6937 6938 CFLAGS="$xorg_testset_save_CFLAGS" 6939 6940 eval supported=\$$cacheid 6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6942 printf "%s\n" "$supported" >&6; } 6943 if test "$supported" = "yes" ; then 6944 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6945 found="yes" 6946 fi 6947 fi 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 xorg_testset_save_CFLAGS="$CFLAGS" 6964 6965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6969 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6970 then : 6971 printf %s "(cached) " >&6 6972 else $as_nop 6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974 /* end confdefs.h. */ 6975 int i; 6976 _ACEOF 6977 if ac_fn_c_try_compile "$LINENO" 6978 then : 6979 xorg_cv_cc_flag_unknown_warning_option=yes 6980 else $as_nop 6981 xorg_cv_cc_flag_unknown_warning_option=no 6982 fi 6983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6984 fi 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6986 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6988 CFLAGS="$xorg_testset_save_CFLAGS" 6989 fi 6990 6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6994 fi 6995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6997 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6998 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6999 then : 7000 printf %s "(cached) " >&6 7001 else $as_nop 7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003 /* end confdefs.h. */ 7004 int i; 7005 _ACEOF 7006 if ac_fn_c_try_compile "$LINENO" 7007 then : 7008 xorg_cv_cc_flag_unused_command_line_argument=yes 7009 else $as_nop 7010 xorg_cv_cc_flag_unused_command_line_argument=no 7011 fi 7012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7013 fi 7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7015 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7017 CFLAGS="$xorg_testset_save_CFLAGS" 7018 fi 7019 7020 found="no" 7021 7022 if test $found = "no" ; then 7023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7025 fi 7026 7027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7029 fi 7030 7031 CFLAGS="$CFLAGS -Werror=main" 7032 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7034 printf %s "checking if $CC supports -Werror=main... " >&6; } 7035 cacheid=xorg_cv_cc_flag__Werror_main 7036 if eval test \${$cacheid+y} 7037 then : 7038 printf %s "(cached) " >&6 7039 else $as_nop 7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7041 /* end confdefs.h. */ 7042 int i; 7043 int 7044 main (void) 7045 { 7046 7047 ; 7048 return 0; 7049 } 7050 _ACEOF 7051 if ac_fn_c_try_link "$LINENO" 7052 then : 7053 eval $cacheid=yes 7054 else $as_nop 7055 eval $cacheid=no 7056 fi 7057 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7058 conftest$ac_exeext conftest.$ac_ext 7059 fi 7060 7061 7062 CFLAGS="$xorg_testset_save_CFLAGS" 7063 7064 eval supported=\$$cacheid 7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7066 printf "%s\n" "$supported" >&6; } 7067 if test "$supported" = "yes" ; then 7068 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7069 found="yes" 7070 fi 7071 fi 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 xorg_testset_save_CFLAGS="$CFLAGS" 7088 7089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7092 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7093 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7094 then : 7095 printf %s "(cached) " >&6 7096 else $as_nop 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7098 /* end confdefs.h. */ 7099 int i; 7100 _ACEOF 7101 if ac_fn_c_try_compile "$LINENO" 7102 then : 7103 xorg_cv_cc_flag_unknown_warning_option=yes 7104 else $as_nop 7105 xorg_cv_cc_flag_unknown_warning_option=no 7106 fi 7107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7108 fi 7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7110 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7112 CFLAGS="$xorg_testset_save_CFLAGS" 7113 fi 7114 7115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118 fi 7119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7121 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7122 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7123 then : 7124 printf %s "(cached) " >&6 7125 else $as_nop 7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7127 /* end confdefs.h. */ 7128 int i; 7129 _ACEOF 7130 if ac_fn_c_try_compile "$LINENO" 7131 then : 7132 xorg_cv_cc_flag_unused_command_line_argument=yes 7133 else $as_nop 7134 xorg_cv_cc_flag_unused_command_line_argument=no 7135 fi 7136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7137 fi 7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7139 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7141 CFLAGS="$xorg_testset_save_CFLAGS" 7142 fi 7143 7144 found="no" 7145 7146 if test $found = "no" ; then 7147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7149 fi 7150 7151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7153 fi 7154 7155 CFLAGS="$CFLAGS -Werror=missing-braces" 7156 7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7158 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7159 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7160 if eval test \${$cacheid+y} 7161 then : 7162 printf %s "(cached) " >&6 7163 else $as_nop 7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7165 /* end confdefs.h. */ 7166 int i; 7167 int 7168 main (void) 7169 { 7170 7171 ; 7172 return 0; 7173 } 7174 _ACEOF 7175 if ac_fn_c_try_link "$LINENO" 7176 then : 7177 eval $cacheid=yes 7178 else $as_nop 7179 eval $cacheid=no 7180 fi 7181 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7182 conftest$ac_exeext conftest.$ac_ext 7183 fi 7184 7185 7186 CFLAGS="$xorg_testset_save_CFLAGS" 7187 7188 eval supported=\$$cacheid 7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7190 printf "%s\n" "$supported" >&6; } 7191 if test "$supported" = "yes" ; then 7192 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7193 found="yes" 7194 fi 7195 fi 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 xorg_testset_save_CFLAGS="$CFLAGS" 7212 7213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7217 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7218 then : 7219 printf %s "(cached) " >&6 7220 else $as_nop 7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222 /* end confdefs.h. */ 7223 int i; 7224 _ACEOF 7225 if ac_fn_c_try_compile "$LINENO" 7226 then : 7227 xorg_cv_cc_flag_unknown_warning_option=yes 7228 else $as_nop 7229 xorg_cv_cc_flag_unknown_warning_option=no 7230 fi 7231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7232 fi 7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7234 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7236 CFLAGS="$xorg_testset_save_CFLAGS" 7237 fi 7238 7239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7242 fi 7243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7245 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7246 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7247 then : 7248 printf %s "(cached) " >&6 7249 else $as_nop 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7251 /* end confdefs.h. */ 7252 int i; 7253 _ACEOF 7254 if ac_fn_c_try_compile "$LINENO" 7255 then : 7256 xorg_cv_cc_flag_unused_command_line_argument=yes 7257 else $as_nop 7258 xorg_cv_cc_flag_unused_command_line_argument=no 7259 fi 7260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7261 fi 7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7263 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7265 CFLAGS="$xorg_testset_save_CFLAGS" 7266 fi 7267 7268 found="no" 7269 7270 if test $found = "no" ; then 7271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7273 fi 7274 7275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7277 fi 7278 7279 CFLAGS="$CFLAGS -Werror=sequence-point" 7280 7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7282 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7283 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7284 if eval test \${$cacheid+y} 7285 then : 7286 printf %s "(cached) " >&6 7287 else $as_nop 7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7289 /* end confdefs.h. */ 7290 int i; 7291 int 7292 main (void) 7293 { 7294 7295 ; 7296 return 0; 7297 } 7298 _ACEOF 7299 if ac_fn_c_try_link "$LINENO" 7300 then : 7301 eval $cacheid=yes 7302 else $as_nop 7303 eval $cacheid=no 7304 fi 7305 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7306 conftest$ac_exeext conftest.$ac_ext 7307 fi 7308 7309 7310 CFLAGS="$xorg_testset_save_CFLAGS" 7311 7312 eval supported=\$$cacheid 7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7314 printf "%s\n" "$supported" >&6; } 7315 if test "$supported" = "yes" ; then 7316 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7317 found="yes" 7318 fi 7319 fi 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 xorg_testset_save_CFLAGS="$CFLAGS" 7336 7337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7340 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7341 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7342 then : 7343 printf %s "(cached) " >&6 7344 else $as_nop 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346 /* end confdefs.h. */ 7347 int i; 7348 _ACEOF 7349 if ac_fn_c_try_compile "$LINENO" 7350 then : 7351 xorg_cv_cc_flag_unknown_warning_option=yes 7352 else $as_nop 7353 xorg_cv_cc_flag_unknown_warning_option=no 7354 fi 7355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7356 fi 7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7358 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7360 CFLAGS="$xorg_testset_save_CFLAGS" 7361 fi 7362 7363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7366 fi 7367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7369 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7370 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7371 then : 7372 printf %s "(cached) " >&6 7373 else $as_nop 7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7375 /* end confdefs.h. */ 7376 int i; 7377 _ACEOF 7378 if ac_fn_c_try_compile "$LINENO" 7379 then : 7380 xorg_cv_cc_flag_unused_command_line_argument=yes 7381 else $as_nop 7382 xorg_cv_cc_flag_unused_command_line_argument=no 7383 fi 7384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7385 fi 7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7387 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7389 CFLAGS="$xorg_testset_save_CFLAGS" 7390 fi 7391 7392 found="no" 7393 7394 if test $found = "no" ; then 7395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7397 fi 7398 7399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7401 fi 7402 7403 CFLAGS="$CFLAGS -Werror=return-type" 7404 7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7406 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7407 cacheid=xorg_cv_cc_flag__Werror_return_type 7408 if eval test \${$cacheid+y} 7409 then : 7410 printf %s "(cached) " >&6 7411 else $as_nop 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7413 /* end confdefs.h. */ 7414 int i; 7415 int 7416 main (void) 7417 { 7418 7419 ; 7420 return 0; 7421 } 7422 _ACEOF 7423 if ac_fn_c_try_link "$LINENO" 7424 then : 7425 eval $cacheid=yes 7426 else $as_nop 7427 eval $cacheid=no 7428 fi 7429 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7430 conftest$ac_exeext conftest.$ac_ext 7431 fi 7432 7433 7434 CFLAGS="$xorg_testset_save_CFLAGS" 7435 7436 eval supported=\$$cacheid 7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7438 printf "%s\n" "$supported" >&6; } 7439 if test "$supported" = "yes" ; then 7440 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7441 found="yes" 7442 fi 7443 fi 7444 7445 if test $found = "no" ; then 7446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7448 fi 7449 7450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7452 fi 7453 7454 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7455 7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7457 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7458 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7459 if eval test \${$cacheid+y} 7460 then : 7461 printf %s "(cached) " >&6 7462 else $as_nop 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464 /* end confdefs.h. */ 7465 int i; 7466 int 7467 main (void) 7468 { 7469 7470 ; 7471 return 0; 7472 } 7473 _ACEOF 7474 if ac_fn_c_try_link "$LINENO" 7475 then : 7476 eval $cacheid=yes 7477 else $as_nop 7478 eval $cacheid=no 7479 fi 7480 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7481 conftest$ac_exeext conftest.$ac_ext 7482 fi 7483 7484 7485 CFLAGS="$xorg_testset_save_CFLAGS" 7486 7487 eval supported=\$$cacheid 7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7489 printf "%s\n" "$supported" >&6; } 7490 if test "$supported" = "yes" ; then 7491 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7492 found="yes" 7493 fi 7494 fi 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 xorg_testset_save_CFLAGS="$CFLAGS" 7511 7512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7515 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7516 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7517 then : 7518 printf %s "(cached) " >&6 7519 else $as_nop 7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7521 /* end confdefs.h. */ 7522 int i; 7523 _ACEOF 7524 if ac_fn_c_try_compile "$LINENO" 7525 then : 7526 xorg_cv_cc_flag_unknown_warning_option=yes 7527 else $as_nop 7528 xorg_cv_cc_flag_unknown_warning_option=no 7529 fi 7530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7531 fi 7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7533 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7535 CFLAGS="$xorg_testset_save_CFLAGS" 7536 fi 7537 7538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 fi 7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7544 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7545 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7546 then : 7547 printf %s "(cached) " >&6 7548 else $as_nop 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550 /* end confdefs.h. */ 7551 int i; 7552 _ACEOF 7553 if ac_fn_c_try_compile "$LINENO" 7554 then : 7555 xorg_cv_cc_flag_unused_command_line_argument=yes 7556 else $as_nop 7557 xorg_cv_cc_flag_unused_command_line_argument=no 7558 fi 7559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7560 fi 7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7562 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565 fi 7566 7567 found="no" 7568 7569 if test $found = "no" ; then 7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7572 fi 7573 7574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7576 fi 7577 7578 CFLAGS="$CFLAGS -Werror=trigraphs" 7579 7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7581 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 7582 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7583 if eval test \${$cacheid+y} 7584 then : 7585 printf %s "(cached) " >&6 7586 else $as_nop 7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7588 /* end confdefs.h. */ 7589 int i; 7590 int 7591 main (void) 7592 { 7593 7594 ; 7595 return 0; 7596 } 7597 _ACEOF 7598 if ac_fn_c_try_link "$LINENO" 7599 then : 7600 eval $cacheid=yes 7601 else $as_nop 7602 eval $cacheid=no 7603 fi 7604 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7605 conftest$ac_exeext conftest.$ac_ext 7606 fi 7607 7608 7609 CFLAGS="$xorg_testset_save_CFLAGS" 7610 7611 eval supported=\$$cacheid 7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7613 printf "%s\n" "$supported" >&6; } 7614 if test "$supported" = "yes" ; then 7615 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7616 found="yes" 7617 fi 7618 fi 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 xorg_testset_save_CFLAGS="$CFLAGS" 7635 7636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7639 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7640 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7641 then : 7642 printf %s "(cached) " >&6 7643 else $as_nop 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645 /* end confdefs.h. */ 7646 int i; 7647 _ACEOF 7648 if ac_fn_c_try_compile "$LINENO" 7649 then : 7650 xorg_cv_cc_flag_unknown_warning_option=yes 7651 else $as_nop 7652 xorg_cv_cc_flag_unknown_warning_option=no 7653 fi 7654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7655 fi 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7657 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7659 CFLAGS="$xorg_testset_save_CFLAGS" 7660 fi 7661 7662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 fi 7666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7668 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7669 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7670 then : 7671 printf %s "(cached) " >&6 7672 else $as_nop 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674 /* end confdefs.h. */ 7675 int i; 7676 _ACEOF 7677 if ac_fn_c_try_compile "$LINENO" 7678 then : 7679 xorg_cv_cc_flag_unused_command_line_argument=yes 7680 else $as_nop 7681 xorg_cv_cc_flag_unused_command_line_argument=no 7682 fi 7683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7684 fi 7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7686 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7688 CFLAGS="$xorg_testset_save_CFLAGS" 7689 fi 7690 7691 found="no" 7692 7693 if test $found = "no" ; then 7694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7696 fi 7697 7698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7700 fi 7701 7702 CFLAGS="$CFLAGS -Werror=array-bounds" 7703 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7705 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 7706 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7707 if eval test \${$cacheid+y} 7708 then : 7709 printf %s "(cached) " >&6 7710 else $as_nop 7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7712 /* end confdefs.h. */ 7713 int i; 7714 int 7715 main (void) 7716 { 7717 7718 ; 7719 return 0; 7720 } 7721 _ACEOF 7722 if ac_fn_c_try_link "$LINENO" 7723 then : 7724 eval $cacheid=yes 7725 else $as_nop 7726 eval $cacheid=no 7727 fi 7728 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7729 conftest$ac_exeext conftest.$ac_ext 7730 fi 7731 7732 7733 CFLAGS="$xorg_testset_save_CFLAGS" 7734 7735 eval supported=\$$cacheid 7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7737 printf "%s\n" "$supported" >&6; } 7738 if test "$supported" = "yes" ; then 7739 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7740 found="yes" 7741 fi 7742 fi 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 xorg_testset_save_CFLAGS="$CFLAGS" 7759 7760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7763 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7764 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7765 then : 7766 printf %s "(cached) " >&6 7767 else $as_nop 7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7769 /* end confdefs.h. */ 7770 int i; 7771 _ACEOF 7772 if ac_fn_c_try_compile "$LINENO" 7773 then : 7774 xorg_cv_cc_flag_unknown_warning_option=yes 7775 else $as_nop 7776 xorg_cv_cc_flag_unknown_warning_option=no 7777 fi 7778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7779 fi 7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7781 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7783 CFLAGS="$xorg_testset_save_CFLAGS" 7784 fi 7785 7786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7789 fi 7790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7792 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7793 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7794 then : 7795 printf %s "(cached) " >&6 7796 else $as_nop 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798 /* end confdefs.h. */ 7799 int i; 7800 _ACEOF 7801 if ac_fn_c_try_compile "$LINENO" 7802 then : 7803 xorg_cv_cc_flag_unused_command_line_argument=yes 7804 else $as_nop 7805 xorg_cv_cc_flag_unused_command_line_argument=no 7806 fi 7807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7808 fi 7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7810 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7812 CFLAGS="$xorg_testset_save_CFLAGS" 7813 fi 7814 7815 found="no" 7816 7817 if test $found = "no" ; then 7818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7820 fi 7821 7822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7824 fi 7825 7826 CFLAGS="$CFLAGS -Werror=write-strings" 7827 7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7829 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 7830 cacheid=xorg_cv_cc_flag__Werror_write_strings 7831 if eval test \${$cacheid+y} 7832 then : 7833 printf %s "(cached) " >&6 7834 else $as_nop 7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7836 /* end confdefs.h. */ 7837 int i; 7838 int 7839 main (void) 7840 { 7841 7842 ; 7843 return 0; 7844 } 7845 _ACEOF 7846 if ac_fn_c_try_link "$LINENO" 7847 then : 7848 eval $cacheid=yes 7849 else $as_nop 7850 eval $cacheid=no 7851 fi 7852 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7853 conftest$ac_exeext conftest.$ac_ext 7854 fi 7855 7856 7857 CFLAGS="$xorg_testset_save_CFLAGS" 7858 7859 eval supported=\$$cacheid 7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7861 printf "%s\n" "$supported" >&6; } 7862 if test "$supported" = "yes" ; then 7863 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7864 found="yes" 7865 fi 7866 fi 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 xorg_testset_save_CFLAGS="$CFLAGS" 7883 7884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7888 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7889 then : 7890 printf %s "(cached) " >&6 7891 else $as_nop 7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7893 /* end confdefs.h. */ 7894 int i; 7895 _ACEOF 7896 if ac_fn_c_try_compile "$LINENO" 7897 then : 7898 xorg_cv_cc_flag_unknown_warning_option=yes 7899 else $as_nop 7900 xorg_cv_cc_flag_unknown_warning_option=no 7901 fi 7902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7903 fi 7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7905 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7907 CFLAGS="$xorg_testset_save_CFLAGS" 7908 fi 7909 7910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7913 fi 7914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7916 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7917 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7918 then : 7919 printf %s "(cached) " >&6 7920 else $as_nop 7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7922 /* end confdefs.h. */ 7923 int i; 7924 _ACEOF 7925 if ac_fn_c_try_compile "$LINENO" 7926 then : 7927 xorg_cv_cc_flag_unused_command_line_argument=yes 7928 else $as_nop 7929 xorg_cv_cc_flag_unused_command_line_argument=no 7930 fi 7931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7932 fi 7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7936 CFLAGS="$xorg_testset_save_CFLAGS" 7937 fi 7938 7939 found="no" 7940 7941 if test $found = "no" ; then 7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7944 fi 7945 7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7948 fi 7949 7950 CFLAGS="$CFLAGS -Werror=address" 7951 7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7953 printf %s "checking if $CC supports -Werror=address... " >&6; } 7954 cacheid=xorg_cv_cc_flag__Werror_address 7955 if eval test \${$cacheid+y} 7956 then : 7957 printf %s "(cached) " >&6 7958 else $as_nop 7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960 /* end confdefs.h. */ 7961 int i; 7962 int 7963 main (void) 7964 { 7965 7966 ; 7967 return 0; 7968 } 7969 _ACEOF 7970 if ac_fn_c_try_link "$LINENO" 7971 then : 7972 eval $cacheid=yes 7973 else $as_nop 7974 eval $cacheid=no 7975 fi 7976 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7977 conftest$ac_exeext conftest.$ac_ext 7978 fi 7979 7980 7981 CFLAGS="$xorg_testset_save_CFLAGS" 7982 7983 eval supported=\$$cacheid 7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7985 printf "%s\n" "$supported" >&6; } 7986 if test "$supported" = "yes" ; then 7987 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7988 found="yes" 7989 fi 7990 fi 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 xorg_testset_save_CFLAGS="$CFLAGS" 8007 8008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8011 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8012 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8013 then : 8014 printf %s "(cached) " >&6 8015 else $as_nop 8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8017 /* end confdefs.h. */ 8018 int i; 8019 _ACEOF 8020 if ac_fn_c_try_compile "$LINENO" 8021 then : 8022 xorg_cv_cc_flag_unknown_warning_option=yes 8023 else $as_nop 8024 xorg_cv_cc_flag_unknown_warning_option=no 8025 fi 8026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8027 fi 8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8029 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8031 CFLAGS="$xorg_testset_save_CFLAGS" 8032 fi 8033 8034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8037 fi 8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8040 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8041 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8042 then : 8043 printf %s "(cached) " >&6 8044 else $as_nop 8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8046 /* end confdefs.h. */ 8047 int i; 8048 _ACEOF 8049 if ac_fn_c_try_compile "$LINENO" 8050 then : 8051 xorg_cv_cc_flag_unused_command_line_argument=yes 8052 else $as_nop 8053 xorg_cv_cc_flag_unused_command_line_argument=no 8054 fi 8055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8056 fi 8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8058 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8060 CFLAGS="$xorg_testset_save_CFLAGS" 8061 fi 8062 8063 found="no" 8064 8065 if test $found = "no" ; then 8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8068 fi 8069 8070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8072 fi 8073 8074 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8075 8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8077 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8078 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8079 if eval test \${$cacheid+y} 8080 then : 8081 printf %s "(cached) " >&6 8082 else $as_nop 8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084 /* end confdefs.h. */ 8085 int i; 8086 int 8087 main (void) 8088 { 8089 8090 ; 8091 return 0; 8092 } 8093 _ACEOF 8094 if ac_fn_c_try_link "$LINENO" 8095 then : 8096 eval $cacheid=yes 8097 else $as_nop 8098 eval $cacheid=no 8099 fi 8100 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8101 conftest$ac_exeext conftest.$ac_ext 8102 fi 8103 8104 8105 CFLAGS="$xorg_testset_save_CFLAGS" 8106 8107 eval supported=\$$cacheid 8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8109 printf "%s\n" "$supported" >&6; } 8110 if test "$supported" = "yes" ; then 8111 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8112 found="yes" 8113 fi 8114 fi 8115 8116 if test $found = "no" ; then 8117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8119 fi 8120 8121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8123 fi 8124 8125 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8126 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8128 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8129 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8130 if eval test \${$cacheid+y} 8131 then : 8132 printf %s "(cached) " >&6 8133 else $as_nop 8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8135 /* end confdefs.h. */ 8136 int i; 8137 int 8138 main (void) 8139 { 8140 8141 ; 8142 return 0; 8143 } 8144 _ACEOF 8145 if ac_fn_c_try_link "$LINENO" 8146 then : 8147 eval $cacheid=yes 8148 else $as_nop 8149 eval $cacheid=no 8150 fi 8151 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8152 conftest$ac_exeext conftest.$ac_ext 8153 fi 8154 8155 8156 CFLAGS="$xorg_testset_save_CFLAGS" 8157 8158 eval supported=\$$cacheid 8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8160 printf "%s\n" "$supported" >&6; } 8161 if test "$supported" = "yes" ; then 8162 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8163 found="yes" 8164 fi 8165 fi 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 xorg_testset_save_CFLAGS="$CFLAGS" 8182 8183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8187 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8188 then : 8189 printf %s "(cached) " >&6 8190 else $as_nop 8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8192 /* end confdefs.h. */ 8193 int i; 8194 _ACEOF 8195 if ac_fn_c_try_compile "$LINENO" 8196 then : 8197 xorg_cv_cc_flag_unknown_warning_option=yes 8198 else $as_nop 8199 xorg_cv_cc_flag_unknown_warning_option=no 8200 fi 8201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8202 fi 8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8206 CFLAGS="$xorg_testset_save_CFLAGS" 8207 fi 8208 8209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8212 fi 8213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8217 then : 8218 printf %s "(cached) " >&6 8219 else $as_nop 8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8221 /* end confdefs.h. */ 8222 int i; 8223 _ACEOF 8224 if ac_fn_c_try_compile "$LINENO" 8225 then : 8226 xorg_cv_cc_flag_unused_command_line_argument=yes 8227 else $as_nop 8228 xorg_cv_cc_flag_unused_command_line_argument=no 8229 fi 8230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8231 fi 8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8233 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8235 CFLAGS="$xorg_testset_save_CFLAGS" 8236 fi 8237 8238 found="no" 8239 8240 if test $found = "no" ; then 8241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8243 fi 8244 8245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8247 fi 8248 8249 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8250 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8252 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8253 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8254 if eval test \${$cacheid+y} 8255 then : 8256 printf %s "(cached) " >&6 8257 else $as_nop 8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8259 /* end confdefs.h. */ 8260 int i; 8261 int 8262 main (void) 8263 { 8264 8265 ; 8266 return 0; 8267 } 8268 _ACEOF 8269 if ac_fn_c_try_link "$LINENO" 8270 then : 8271 eval $cacheid=yes 8272 else $as_nop 8273 eval $cacheid=no 8274 fi 8275 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8276 conftest$ac_exeext conftest.$ac_ext 8277 fi 8278 8279 8280 CFLAGS="$xorg_testset_save_CFLAGS" 8281 8282 eval supported=\$$cacheid 8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8284 printf "%s\n" "$supported" >&6; } 8285 if test "$supported" = "yes" ; then 8286 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8287 found="yes" 8288 fi 8289 fi 8290 8291 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8292 else 8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 8294 printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 xorg_testset_save_CFLAGS="$CFLAGS" 8309 8310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8313 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8314 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8315 then : 8316 printf %s "(cached) " >&6 8317 else $as_nop 8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8319 /* end confdefs.h. */ 8320 int i; 8321 _ACEOF 8322 if ac_fn_c_try_compile "$LINENO" 8323 then : 8324 xorg_cv_cc_flag_unknown_warning_option=yes 8325 else $as_nop 8326 xorg_cv_cc_flag_unknown_warning_option=no 8327 fi 8328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8329 fi 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8331 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8333 CFLAGS="$xorg_testset_save_CFLAGS" 8334 fi 8335 8336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8339 fi 8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8342 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8343 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8344 then : 8345 printf %s "(cached) " >&6 8346 else $as_nop 8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348 /* end confdefs.h. */ 8349 int i; 8350 _ACEOF 8351 if ac_fn_c_try_compile "$LINENO" 8352 then : 8353 xorg_cv_cc_flag_unused_command_line_argument=yes 8354 else $as_nop 8355 xorg_cv_cc_flag_unused_command_line_argument=no 8356 fi 8357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8358 fi 8359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8360 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8362 CFLAGS="$xorg_testset_save_CFLAGS" 8363 fi 8364 8365 found="no" 8366 8367 if test $found = "no" ; then 8368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8370 fi 8371 8372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8374 fi 8375 8376 CFLAGS="$CFLAGS -Wimplicit" 8377 8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8379 printf %s "checking if $CC supports -Wimplicit... " >&6; } 8380 cacheid=xorg_cv_cc_flag__Wimplicit 8381 if eval test \${$cacheid+y} 8382 then : 8383 printf %s "(cached) " >&6 8384 else $as_nop 8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8386 /* end confdefs.h. */ 8387 int i; 8388 int 8389 main (void) 8390 { 8391 8392 ; 8393 return 0; 8394 } 8395 _ACEOF 8396 if ac_fn_c_try_link "$LINENO" 8397 then : 8398 eval $cacheid=yes 8399 else $as_nop 8400 eval $cacheid=no 8401 fi 8402 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8403 conftest$ac_exeext conftest.$ac_ext 8404 fi 8405 8406 8407 CFLAGS="$xorg_testset_save_CFLAGS" 8408 8409 eval supported=\$$cacheid 8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8411 printf "%s\n" "$supported" >&6; } 8412 if test "$supported" = "yes" ; then 8413 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8414 found="yes" 8415 fi 8416 fi 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 xorg_testset_save_CFLAGS="$CFLAGS" 8433 8434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8437 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8438 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8439 then : 8440 printf %s "(cached) " >&6 8441 else $as_nop 8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8443 /* end confdefs.h. */ 8444 int i; 8445 _ACEOF 8446 if ac_fn_c_try_compile "$LINENO" 8447 then : 8448 xorg_cv_cc_flag_unknown_warning_option=yes 8449 else $as_nop 8450 xorg_cv_cc_flag_unknown_warning_option=no 8451 fi 8452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8453 fi 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8455 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8457 CFLAGS="$xorg_testset_save_CFLAGS" 8458 fi 8459 8460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8463 fi 8464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8466 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8467 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8468 then : 8469 printf %s "(cached) " >&6 8470 else $as_nop 8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8472 /* end confdefs.h. */ 8473 int i; 8474 _ACEOF 8475 if ac_fn_c_try_compile "$LINENO" 8476 then : 8477 xorg_cv_cc_flag_unused_command_line_argument=yes 8478 else $as_nop 8479 xorg_cv_cc_flag_unused_command_line_argument=no 8480 fi 8481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8482 fi 8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8484 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8487 fi 8488 8489 found="no" 8490 8491 if test $found = "no" ; then 8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8494 fi 8495 8496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8498 fi 8499 8500 CFLAGS="$CFLAGS -Wnonnull" 8501 8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8503 printf %s "checking if $CC supports -Wnonnull... " >&6; } 8504 cacheid=xorg_cv_cc_flag__Wnonnull 8505 if eval test \${$cacheid+y} 8506 then : 8507 printf %s "(cached) " >&6 8508 else $as_nop 8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8510 /* end confdefs.h. */ 8511 int i; 8512 int 8513 main (void) 8514 { 8515 8516 ; 8517 return 0; 8518 } 8519 _ACEOF 8520 if ac_fn_c_try_link "$LINENO" 8521 then : 8522 eval $cacheid=yes 8523 else $as_nop 8524 eval $cacheid=no 8525 fi 8526 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8527 conftest$ac_exeext conftest.$ac_ext 8528 fi 8529 8530 8531 CFLAGS="$xorg_testset_save_CFLAGS" 8532 8533 eval supported=\$$cacheid 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8535 printf "%s\n" "$supported" >&6; } 8536 if test "$supported" = "yes" ; then 8537 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8538 found="yes" 8539 fi 8540 fi 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 xorg_testset_save_CFLAGS="$CFLAGS" 8557 8558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8561 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8562 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8563 then : 8564 printf %s "(cached) " >&6 8565 else $as_nop 8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8567 /* end confdefs.h. */ 8568 int i; 8569 _ACEOF 8570 if ac_fn_c_try_compile "$LINENO" 8571 then : 8572 xorg_cv_cc_flag_unknown_warning_option=yes 8573 else $as_nop 8574 xorg_cv_cc_flag_unknown_warning_option=no 8575 fi 8576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8577 fi 8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8579 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8581 CFLAGS="$xorg_testset_save_CFLAGS" 8582 fi 8583 8584 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8587 fi 8588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8590 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8591 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8592 then : 8593 printf %s "(cached) " >&6 8594 else $as_nop 8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8596 /* end confdefs.h. */ 8597 int i; 8598 _ACEOF 8599 if ac_fn_c_try_compile "$LINENO" 8600 then : 8601 xorg_cv_cc_flag_unused_command_line_argument=yes 8602 else $as_nop 8603 xorg_cv_cc_flag_unused_command_line_argument=no 8604 fi 8605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8606 fi 8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8608 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8610 CFLAGS="$xorg_testset_save_CFLAGS" 8611 fi 8612 8613 found="no" 8614 8615 if test $found = "no" ; then 8616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8618 fi 8619 8620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8622 fi 8623 8624 CFLAGS="$CFLAGS -Winit-self" 8625 8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8627 printf %s "checking if $CC supports -Winit-self... " >&6; } 8628 cacheid=xorg_cv_cc_flag__Winit_self 8629 if eval test \${$cacheid+y} 8630 then : 8631 printf %s "(cached) " >&6 8632 else $as_nop 8633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8634 /* end confdefs.h. */ 8635 int i; 8636 int 8637 main (void) 8638 { 8639 8640 ; 8641 return 0; 8642 } 8643 _ACEOF 8644 if ac_fn_c_try_link "$LINENO" 8645 then : 8646 eval $cacheid=yes 8647 else $as_nop 8648 eval $cacheid=no 8649 fi 8650 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8651 conftest$ac_exeext conftest.$ac_ext 8652 fi 8653 8654 8655 CFLAGS="$xorg_testset_save_CFLAGS" 8656 8657 eval supported=\$$cacheid 8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8659 printf "%s\n" "$supported" >&6; } 8660 if test "$supported" = "yes" ; then 8661 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8662 found="yes" 8663 fi 8664 fi 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 xorg_testset_save_CFLAGS="$CFLAGS" 8681 8682 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8685 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8686 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8687 then : 8688 printf %s "(cached) " >&6 8689 else $as_nop 8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8691 /* end confdefs.h. */ 8692 int i; 8693 _ACEOF 8694 if ac_fn_c_try_compile "$LINENO" 8695 then : 8696 xorg_cv_cc_flag_unknown_warning_option=yes 8697 else $as_nop 8698 xorg_cv_cc_flag_unknown_warning_option=no 8699 fi 8700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8701 fi 8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8703 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8705 CFLAGS="$xorg_testset_save_CFLAGS" 8706 fi 8707 8708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8711 fi 8712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8714 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8715 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8716 then : 8717 printf %s "(cached) " >&6 8718 else $as_nop 8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8720 /* end confdefs.h. */ 8721 int i; 8722 _ACEOF 8723 if ac_fn_c_try_compile "$LINENO" 8724 then : 8725 xorg_cv_cc_flag_unused_command_line_argument=yes 8726 else $as_nop 8727 xorg_cv_cc_flag_unused_command_line_argument=no 8728 fi 8729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8730 fi 8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8732 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8734 CFLAGS="$xorg_testset_save_CFLAGS" 8735 fi 8736 8737 found="no" 8738 8739 if test $found = "no" ; then 8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 fi 8743 8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8746 fi 8747 8748 CFLAGS="$CFLAGS -Wmain" 8749 8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8751 printf %s "checking if $CC supports -Wmain... " >&6; } 8752 cacheid=xorg_cv_cc_flag__Wmain 8753 if eval test \${$cacheid+y} 8754 then : 8755 printf %s "(cached) " >&6 8756 else $as_nop 8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8758 /* end confdefs.h. */ 8759 int i; 8760 int 8761 main (void) 8762 { 8763 8764 ; 8765 return 0; 8766 } 8767 _ACEOF 8768 if ac_fn_c_try_link "$LINENO" 8769 then : 8770 eval $cacheid=yes 8771 else $as_nop 8772 eval $cacheid=no 8773 fi 8774 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8775 conftest$ac_exeext conftest.$ac_ext 8776 fi 8777 8778 8779 CFLAGS="$xorg_testset_save_CFLAGS" 8780 8781 eval supported=\$$cacheid 8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8783 printf "%s\n" "$supported" >&6; } 8784 if test "$supported" = "yes" ; then 8785 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8786 found="yes" 8787 fi 8788 fi 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 xorg_testset_save_CFLAGS="$CFLAGS" 8805 8806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8809 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8810 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8811 then : 8812 printf %s "(cached) " >&6 8813 else $as_nop 8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8815 /* end confdefs.h. */ 8816 int i; 8817 _ACEOF 8818 if ac_fn_c_try_compile "$LINENO" 8819 then : 8820 xorg_cv_cc_flag_unknown_warning_option=yes 8821 else $as_nop 8822 xorg_cv_cc_flag_unknown_warning_option=no 8823 fi 8824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8825 fi 8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8827 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8829 CFLAGS="$xorg_testset_save_CFLAGS" 8830 fi 8831 8832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8835 fi 8836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8838 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8839 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8840 then : 8841 printf %s "(cached) " >&6 8842 else $as_nop 8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8844 /* end confdefs.h. */ 8845 int i; 8846 _ACEOF 8847 if ac_fn_c_try_compile "$LINENO" 8848 then : 8849 xorg_cv_cc_flag_unused_command_line_argument=yes 8850 else $as_nop 8851 xorg_cv_cc_flag_unused_command_line_argument=no 8852 fi 8853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8854 fi 8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8856 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8858 CFLAGS="$xorg_testset_save_CFLAGS" 8859 fi 8860 8861 found="no" 8862 8863 if test $found = "no" ; then 8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8866 fi 8867 8868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8870 fi 8871 8872 CFLAGS="$CFLAGS -Wmissing-braces" 8873 8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8875 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 8876 cacheid=xorg_cv_cc_flag__Wmissing_braces 8877 if eval test \${$cacheid+y} 8878 then : 8879 printf %s "(cached) " >&6 8880 else $as_nop 8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8882 /* end confdefs.h. */ 8883 int i; 8884 int 8885 main (void) 8886 { 8887 8888 ; 8889 return 0; 8890 } 8891 _ACEOF 8892 if ac_fn_c_try_link "$LINENO" 8893 then : 8894 eval $cacheid=yes 8895 else $as_nop 8896 eval $cacheid=no 8897 fi 8898 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8899 conftest$ac_exeext conftest.$ac_ext 8900 fi 8901 8902 8903 CFLAGS="$xorg_testset_save_CFLAGS" 8904 8905 eval supported=\$$cacheid 8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8907 printf "%s\n" "$supported" >&6; } 8908 if test "$supported" = "yes" ; then 8909 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8910 found="yes" 8911 fi 8912 fi 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 xorg_testset_save_CFLAGS="$CFLAGS" 8929 8930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8933 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8934 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8935 then : 8936 printf %s "(cached) " >&6 8937 else $as_nop 8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8939 /* end confdefs.h. */ 8940 int i; 8941 _ACEOF 8942 if ac_fn_c_try_compile "$LINENO" 8943 then : 8944 xorg_cv_cc_flag_unknown_warning_option=yes 8945 else $as_nop 8946 xorg_cv_cc_flag_unknown_warning_option=no 8947 fi 8948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8949 fi 8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8951 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8953 CFLAGS="$xorg_testset_save_CFLAGS" 8954 fi 8955 8956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8959 fi 8960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8962 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8963 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8964 then : 8965 printf %s "(cached) " >&6 8966 else $as_nop 8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8968 /* end confdefs.h. */ 8969 int i; 8970 _ACEOF 8971 if ac_fn_c_try_compile "$LINENO" 8972 then : 8973 xorg_cv_cc_flag_unused_command_line_argument=yes 8974 else $as_nop 8975 xorg_cv_cc_flag_unused_command_line_argument=no 8976 fi 8977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8978 fi 8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8980 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8982 CFLAGS="$xorg_testset_save_CFLAGS" 8983 fi 8984 8985 found="no" 8986 8987 if test $found = "no" ; then 8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8990 fi 8991 8992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8994 fi 8995 8996 CFLAGS="$CFLAGS -Wsequence-point" 8997 8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8999 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9000 cacheid=xorg_cv_cc_flag__Wsequence_point 9001 if eval test \${$cacheid+y} 9002 then : 9003 printf %s "(cached) " >&6 9004 else $as_nop 9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9006 /* end confdefs.h. */ 9007 int i; 9008 int 9009 main (void) 9010 { 9011 9012 ; 9013 return 0; 9014 } 9015 _ACEOF 9016 if ac_fn_c_try_link "$LINENO" 9017 then : 9018 eval $cacheid=yes 9019 else $as_nop 9020 eval $cacheid=no 9021 fi 9022 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9023 conftest$ac_exeext conftest.$ac_ext 9024 fi 9025 9026 9027 CFLAGS="$xorg_testset_save_CFLAGS" 9028 9029 eval supported=\$$cacheid 9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9031 printf "%s\n" "$supported" >&6; } 9032 if test "$supported" = "yes" ; then 9033 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9034 found="yes" 9035 fi 9036 fi 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 xorg_testset_save_CFLAGS="$CFLAGS" 9053 9054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9057 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9058 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9059 then : 9060 printf %s "(cached) " >&6 9061 else $as_nop 9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9063 /* end confdefs.h. */ 9064 int i; 9065 _ACEOF 9066 if ac_fn_c_try_compile "$LINENO" 9067 then : 9068 xorg_cv_cc_flag_unknown_warning_option=yes 9069 else $as_nop 9070 xorg_cv_cc_flag_unknown_warning_option=no 9071 fi 9072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9073 fi 9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9075 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9077 CFLAGS="$xorg_testset_save_CFLAGS" 9078 fi 9079 9080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9083 fi 9084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9086 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9087 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9088 then : 9089 printf %s "(cached) " >&6 9090 else $as_nop 9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9092 /* end confdefs.h. */ 9093 int i; 9094 _ACEOF 9095 if ac_fn_c_try_compile "$LINENO" 9096 then : 9097 xorg_cv_cc_flag_unused_command_line_argument=yes 9098 else $as_nop 9099 xorg_cv_cc_flag_unused_command_line_argument=no 9100 fi 9101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9102 fi 9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9104 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9106 CFLAGS="$xorg_testset_save_CFLAGS" 9107 fi 9108 9109 found="no" 9110 9111 if test $found = "no" ; then 9112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9114 fi 9115 9116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9118 fi 9119 9120 CFLAGS="$CFLAGS -Wreturn-type" 9121 9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9123 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9124 cacheid=xorg_cv_cc_flag__Wreturn_type 9125 if eval test \${$cacheid+y} 9126 then : 9127 printf %s "(cached) " >&6 9128 else $as_nop 9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9130 /* end confdefs.h. */ 9131 int i; 9132 int 9133 main (void) 9134 { 9135 9136 ; 9137 return 0; 9138 } 9139 _ACEOF 9140 if ac_fn_c_try_link "$LINENO" 9141 then : 9142 eval $cacheid=yes 9143 else $as_nop 9144 eval $cacheid=no 9145 fi 9146 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9147 conftest$ac_exeext conftest.$ac_ext 9148 fi 9149 9150 9151 CFLAGS="$xorg_testset_save_CFLAGS" 9152 9153 eval supported=\$$cacheid 9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9155 printf "%s\n" "$supported" >&6; } 9156 if test "$supported" = "yes" ; then 9157 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9158 found="yes" 9159 fi 9160 fi 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 xorg_testset_save_CFLAGS="$CFLAGS" 9177 9178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9181 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9182 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9183 then : 9184 printf %s "(cached) " >&6 9185 else $as_nop 9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187 /* end confdefs.h. */ 9188 int i; 9189 _ACEOF 9190 if ac_fn_c_try_compile "$LINENO" 9191 then : 9192 xorg_cv_cc_flag_unknown_warning_option=yes 9193 else $as_nop 9194 xorg_cv_cc_flag_unknown_warning_option=no 9195 fi 9196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9197 fi 9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9199 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9201 CFLAGS="$xorg_testset_save_CFLAGS" 9202 fi 9203 9204 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9207 fi 9208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9210 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9211 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9212 then : 9213 printf %s "(cached) " >&6 9214 else $as_nop 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216 /* end confdefs.h. */ 9217 int i; 9218 _ACEOF 9219 if ac_fn_c_try_compile "$LINENO" 9220 then : 9221 xorg_cv_cc_flag_unused_command_line_argument=yes 9222 else $as_nop 9223 xorg_cv_cc_flag_unused_command_line_argument=no 9224 fi 9225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9226 fi 9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9228 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9230 CFLAGS="$xorg_testset_save_CFLAGS" 9231 fi 9232 9233 found="no" 9234 9235 if test $found = "no" ; then 9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9238 fi 9239 9240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9242 fi 9243 9244 CFLAGS="$CFLAGS -Wtrigraphs" 9245 9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9247 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9248 cacheid=xorg_cv_cc_flag__Wtrigraphs 9249 if eval test \${$cacheid+y} 9250 then : 9251 printf %s "(cached) " >&6 9252 else $as_nop 9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9254 /* end confdefs.h. */ 9255 int i; 9256 int 9257 main (void) 9258 { 9259 9260 ; 9261 return 0; 9262 } 9263 _ACEOF 9264 if ac_fn_c_try_link "$LINENO" 9265 then : 9266 eval $cacheid=yes 9267 else $as_nop 9268 eval $cacheid=no 9269 fi 9270 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9271 conftest$ac_exeext conftest.$ac_ext 9272 fi 9273 9274 9275 CFLAGS="$xorg_testset_save_CFLAGS" 9276 9277 eval supported=\$$cacheid 9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9279 printf "%s\n" "$supported" >&6; } 9280 if test "$supported" = "yes" ; then 9281 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9282 found="yes" 9283 fi 9284 fi 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 xorg_testset_save_CFLAGS="$CFLAGS" 9301 9302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9305 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9306 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9307 then : 9308 printf %s "(cached) " >&6 9309 else $as_nop 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311 /* end confdefs.h. */ 9312 int i; 9313 _ACEOF 9314 if ac_fn_c_try_compile "$LINENO" 9315 then : 9316 xorg_cv_cc_flag_unknown_warning_option=yes 9317 else $as_nop 9318 xorg_cv_cc_flag_unknown_warning_option=no 9319 fi 9320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9321 fi 9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9323 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9325 CFLAGS="$xorg_testset_save_CFLAGS" 9326 fi 9327 9328 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9331 fi 9332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9334 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9335 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9336 then : 9337 printf %s "(cached) " >&6 9338 else $as_nop 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340 /* end confdefs.h. */ 9341 int i; 9342 _ACEOF 9343 if ac_fn_c_try_compile "$LINENO" 9344 then : 9345 xorg_cv_cc_flag_unused_command_line_argument=yes 9346 else $as_nop 9347 xorg_cv_cc_flag_unused_command_line_argument=no 9348 fi 9349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9350 fi 9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9352 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9354 CFLAGS="$xorg_testset_save_CFLAGS" 9355 fi 9356 9357 found="no" 9358 9359 if test $found = "no" ; then 9360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9362 fi 9363 9364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9366 fi 9367 9368 CFLAGS="$CFLAGS -Warray-bounds" 9369 9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9371 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9372 cacheid=xorg_cv_cc_flag__Warray_bounds 9373 if eval test \${$cacheid+y} 9374 then : 9375 printf %s "(cached) " >&6 9376 else $as_nop 9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9378 /* end confdefs.h. */ 9379 int i; 9380 int 9381 main (void) 9382 { 9383 9384 ; 9385 return 0; 9386 } 9387 _ACEOF 9388 if ac_fn_c_try_link "$LINENO" 9389 then : 9390 eval $cacheid=yes 9391 else $as_nop 9392 eval $cacheid=no 9393 fi 9394 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9395 conftest$ac_exeext conftest.$ac_ext 9396 fi 9397 9398 9399 CFLAGS="$xorg_testset_save_CFLAGS" 9400 9401 eval supported=\$$cacheid 9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9403 printf "%s\n" "$supported" >&6; } 9404 if test "$supported" = "yes" ; then 9405 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9406 found="yes" 9407 fi 9408 fi 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 xorg_testset_save_CFLAGS="$CFLAGS" 9425 9426 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9429 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9430 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9431 then : 9432 printf %s "(cached) " >&6 9433 else $as_nop 9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9435 /* end confdefs.h. */ 9436 int i; 9437 _ACEOF 9438 if ac_fn_c_try_compile "$LINENO" 9439 then : 9440 xorg_cv_cc_flag_unknown_warning_option=yes 9441 else $as_nop 9442 xorg_cv_cc_flag_unknown_warning_option=no 9443 fi 9444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9445 fi 9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9447 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9449 CFLAGS="$xorg_testset_save_CFLAGS" 9450 fi 9451 9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9455 fi 9456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9458 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9459 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9460 then : 9461 printf %s "(cached) " >&6 9462 else $as_nop 9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9464 /* end confdefs.h. */ 9465 int i; 9466 _ACEOF 9467 if ac_fn_c_try_compile "$LINENO" 9468 then : 9469 xorg_cv_cc_flag_unused_command_line_argument=yes 9470 else $as_nop 9471 xorg_cv_cc_flag_unused_command_line_argument=no 9472 fi 9473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9474 fi 9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9476 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9478 CFLAGS="$xorg_testset_save_CFLAGS" 9479 fi 9480 9481 found="no" 9482 9483 if test $found = "no" ; then 9484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9486 fi 9487 9488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9490 fi 9491 9492 CFLAGS="$CFLAGS -Wwrite-strings" 9493 9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9495 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 9496 cacheid=xorg_cv_cc_flag__Wwrite_strings 9497 if eval test \${$cacheid+y} 9498 then : 9499 printf %s "(cached) " >&6 9500 else $as_nop 9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9502 /* end confdefs.h. */ 9503 int i; 9504 int 9505 main (void) 9506 { 9507 9508 ; 9509 return 0; 9510 } 9511 _ACEOF 9512 if ac_fn_c_try_link "$LINENO" 9513 then : 9514 eval $cacheid=yes 9515 else $as_nop 9516 eval $cacheid=no 9517 fi 9518 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9519 conftest$ac_exeext conftest.$ac_ext 9520 fi 9521 9522 9523 CFLAGS="$xorg_testset_save_CFLAGS" 9524 9525 eval supported=\$$cacheid 9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9527 printf "%s\n" "$supported" >&6; } 9528 if test "$supported" = "yes" ; then 9529 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9530 found="yes" 9531 fi 9532 fi 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 xorg_testset_save_CFLAGS="$CFLAGS" 9549 9550 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9553 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9554 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9555 then : 9556 printf %s "(cached) " >&6 9557 else $as_nop 9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9559 /* end confdefs.h. */ 9560 int i; 9561 _ACEOF 9562 if ac_fn_c_try_compile "$LINENO" 9563 then : 9564 xorg_cv_cc_flag_unknown_warning_option=yes 9565 else $as_nop 9566 xorg_cv_cc_flag_unknown_warning_option=no 9567 fi 9568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9569 fi 9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9571 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574 fi 9575 9576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9579 fi 9580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9582 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9583 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9584 then : 9585 printf %s "(cached) " >&6 9586 else $as_nop 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" 9592 then : 9593 xorg_cv_cc_flag_unused_command_line_argument=yes 9594 else $as_nop 9595 xorg_cv_cc_flag_unused_command_line_argument=no 9596 fi 9597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9598 fi 9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9600 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9602 CFLAGS="$xorg_testset_save_CFLAGS" 9603 fi 9604 9605 found="no" 9606 9607 if test $found = "no" ; then 9608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9610 fi 9611 9612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9614 fi 9615 9616 CFLAGS="$CFLAGS -Waddress" 9617 9618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9619 printf %s "checking if $CC supports -Waddress... " >&6; } 9620 cacheid=xorg_cv_cc_flag__Waddress 9621 if eval test \${$cacheid+y} 9622 then : 9623 printf %s "(cached) " >&6 9624 else $as_nop 9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9626 /* end confdefs.h. */ 9627 int i; 9628 int 9629 main (void) 9630 { 9631 9632 ; 9633 return 0; 9634 } 9635 _ACEOF 9636 if ac_fn_c_try_link "$LINENO" 9637 then : 9638 eval $cacheid=yes 9639 else $as_nop 9640 eval $cacheid=no 9641 fi 9642 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9643 conftest$ac_exeext conftest.$ac_ext 9644 fi 9645 9646 9647 CFLAGS="$xorg_testset_save_CFLAGS" 9648 9649 eval supported=\$$cacheid 9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9651 printf "%s\n" "$supported" >&6; } 9652 if test "$supported" = "yes" ; then 9653 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9654 found="yes" 9655 fi 9656 fi 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 xorg_testset_save_CFLAGS="$CFLAGS" 9673 9674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9677 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9678 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9679 then : 9680 printf %s "(cached) " >&6 9681 else $as_nop 9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9683 /* end confdefs.h. */ 9684 int i; 9685 _ACEOF 9686 if ac_fn_c_try_compile "$LINENO" 9687 then : 9688 xorg_cv_cc_flag_unknown_warning_option=yes 9689 else $as_nop 9690 xorg_cv_cc_flag_unknown_warning_option=no 9691 fi 9692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9693 fi 9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9695 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9697 CFLAGS="$xorg_testset_save_CFLAGS" 9698 fi 9699 9700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9703 fi 9704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9706 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9707 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9708 then : 9709 printf %s "(cached) " >&6 9710 else $as_nop 9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9712 /* end confdefs.h. */ 9713 int i; 9714 _ACEOF 9715 if ac_fn_c_try_compile "$LINENO" 9716 then : 9717 xorg_cv_cc_flag_unused_command_line_argument=yes 9718 else $as_nop 9719 xorg_cv_cc_flag_unused_command_line_argument=no 9720 fi 9721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9722 fi 9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9724 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9726 CFLAGS="$xorg_testset_save_CFLAGS" 9727 fi 9728 9729 found="no" 9730 9731 if test $found = "no" ; then 9732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9734 fi 9735 9736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9738 fi 9739 9740 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9741 9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9743 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9744 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9745 if eval test \${$cacheid+y} 9746 then : 9747 printf %s "(cached) " >&6 9748 else $as_nop 9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9750 /* end confdefs.h. */ 9751 int i; 9752 int 9753 main (void) 9754 { 9755 9756 ; 9757 return 0; 9758 } 9759 _ACEOF 9760 if ac_fn_c_try_link "$LINENO" 9761 then : 9762 eval $cacheid=yes 9763 else $as_nop 9764 eval $cacheid=no 9765 fi 9766 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9767 conftest$ac_exeext conftest.$ac_ext 9768 fi 9769 9770 9771 CFLAGS="$xorg_testset_save_CFLAGS" 9772 9773 eval supported=\$$cacheid 9774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9775 printf "%s\n" "$supported" >&6; } 9776 if test "$supported" = "yes" ; then 9777 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9778 found="yes" 9779 fi 9780 fi 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 xorg_testset_save_CFLAGS="$CFLAGS" 9797 9798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9801 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9802 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9803 then : 9804 printf %s "(cached) " >&6 9805 else $as_nop 9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9807 /* end confdefs.h. */ 9808 int i; 9809 _ACEOF 9810 if ac_fn_c_try_compile "$LINENO" 9811 then : 9812 xorg_cv_cc_flag_unknown_warning_option=yes 9813 else $as_nop 9814 xorg_cv_cc_flag_unknown_warning_option=no 9815 fi 9816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9817 fi 9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9819 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9821 CFLAGS="$xorg_testset_save_CFLAGS" 9822 fi 9823 9824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9827 fi 9828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9830 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9831 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9832 then : 9833 printf %s "(cached) " >&6 9834 else $as_nop 9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9836 /* end confdefs.h. */ 9837 int i; 9838 _ACEOF 9839 if ac_fn_c_try_compile "$LINENO" 9840 then : 9841 xorg_cv_cc_flag_unused_command_line_argument=yes 9842 else $as_nop 9843 xorg_cv_cc_flag_unused_command_line_argument=no 9844 fi 9845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9846 fi 9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9848 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9850 CFLAGS="$xorg_testset_save_CFLAGS" 9851 fi 9852 9853 found="no" 9854 9855 if test $found = "no" ; then 9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 fi 9859 9860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9862 fi 9863 9864 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9865 9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9867 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9868 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9869 if eval test \${$cacheid+y} 9870 then : 9871 printf %s "(cached) " >&6 9872 else $as_nop 9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9874 /* end confdefs.h. */ 9875 int i; 9876 int 9877 main (void) 9878 { 9879 9880 ; 9881 return 0; 9882 } 9883 _ACEOF 9884 if ac_fn_c_try_link "$LINENO" 9885 then : 9886 eval $cacheid=yes 9887 else $as_nop 9888 eval $cacheid=no 9889 fi 9890 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9891 conftest$ac_exeext conftest.$ac_ext 9892 fi 9893 9894 9895 CFLAGS="$xorg_testset_save_CFLAGS" 9896 9897 eval supported=\$$cacheid 9898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9899 printf "%s\n" "$supported" >&6; } 9900 if test "$supported" = "yes" ; then 9901 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9902 found="yes" 9903 fi 9904 fi 9905 9906 9907 fi 9908 9909 9910 9911 9912 9913 9914 9915 CWARNFLAGS="$BASE_CFLAGS" 9916 if test "x$GCC" = xyes ; then 9917 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9918 fi 9919 9920 9921 9922 9923 9924 9925 9926 9927 # Check whether --enable-strict-compilation was given. 9928 if test ${enable_strict_compilation+y} 9929 then : 9930 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9931 else $as_nop 9932 STRICT_COMPILE=no 9933 fi 9934 9935 9936 9937 9938 9939 9940 STRICT_CFLAGS="" 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 xorg_testset_save_CFLAGS="$CFLAGS" 9955 9956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9960 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9961 then : 9962 printf %s "(cached) " >&6 9963 else $as_nop 9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9965 /* end confdefs.h. */ 9966 int i; 9967 _ACEOF 9968 if ac_fn_c_try_compile "$LINENO" 9969 then : 9970 xorg_cv_cc_flag_unknown_warning_option=yes 9971 else $as_nop 9972 xorg_cv_cc_flag_unknown_warning_option=no 9973 fi 9974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9975 fi 9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9977 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9979 CFLAGS="$xorg_testset_save_CFLAGS" 9980 fi 9981 9982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9985 fi 9986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9990 then : 9991 printf %s "(cached) " >&6 9992 else $as_nop 9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9994 /* end confdefs.h. */ 9995 int i; 9996 _ACEOF 9997 if ac_fn_c_try_compile "$LINENO" 9998 then : 9999 xorg_cv_cc_flag_unused_command_line_argument=yes 10000 else $as_nop 10001 xorg_cv_cc_flag_unused_command_line_argument=no 10002 fi 10003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10004 fi 10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10006 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10008 CFLAGS="$xorg_testset_save_CFLAGS" 10009 fi 10010 10011 found="no" 10012 10013 if test $found = "no" ; then 10014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10016 fi 10017 10018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10020 fi 10021 10022 CFLAGS="$CFLAGS -pedantic" 10023 10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10025 printf %s "checking if $CC supports -pedantic... " >&6; } 10026 cacheid=xorg_cv_cc_flag__pedantic 10027 if eval test \${$cacheid+y} 10028 then : 10029 printf %s "(cached) " >&6 10030 else $as_nop 10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10032 /* end confdefs.h. */ 10033 int i; 10034 int 10035 main (void) 10036 { 10037 10038 ; 10039 return 0; 10040 } 10041 _ACEOF 10042 if ac_fn_c_try_link "$LINENO" 10043 then : 10044 eval $cacheid=yes 10045 else $as_nop 10046 eval $cacheid=no 10047 fi 10048 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10049 conftest$ac_exeext conftest.$ac_ext 10050 fi 10051 10052 10053 CFLAGS="$xorg_testset_save_CFLAGS" 10054 10055 eval supported=\$$cacheid 10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10057 printf "%s\n" "$supported" >&6; } 10058 if test "$supported" = "yes" ; then 10059 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10060 found="yes" 10061 fi 10062 fi 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 xorg_testset_save_CFLAGS="$CFLAGS" 10079 10080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10083 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10084 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10085 then : 10086 printf %s "(cached) " >&6 10087 else $as_nop 10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10089 /* end confdefs.h. */ 10090 int i; 10091 _ACEOF 10092 if ac_fn_c_try_compile "$LINENO" 10093 then : 10094 xorg_cv_cc_flag_unknown_warning_option=yes 10095 else $as_nop 10096 xorg_cv_cc_flag_unknown_warning_option=no 10097 fi 10098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10099 fi 10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10101 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10103 CFLAGS="$xorg_testset_save_CFLAGS" 10104 fi 10105 10106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10109 fi 10110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10112 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10113 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10114 then : 10115 printf %s "(cached) " >&6 10116 else $as_nop 10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10118 /* end confdefs.h. */ 10119 int i; 10120 _ACEOF 10121 if ac_fn_c_try_compile "$LINENO" 10122 then : 10123 xorg_cv_cc_flag_unused_command_line_argument=yes 10124 else $as_nop 10125 xorg_cv_cc_flag_unused_command_line_argument=no 10126 fi 10127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10128 fi 10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10130 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10132 CFLAGS="$xorg_testset_save_CFLAGS" 10133 fi 10134 10135 found="no" 10136 10137 if test $found = "no" ; then 10138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10140 fi 10141 10142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10144 fi 10145 10146 CFLAGS="$CFLAGS -Werror" 10147 10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10149 printf %s "checking if $CC supports -Werror... " >&6; } 10150 cacheid=xorg_cv_cc_flag__Werror 10151 if eval test \${$cacheid+y} 10152 then : 10153 printf %s "(cached) " >&6 10154 else $as_nop 10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156 /* end confdefs.h. */ 10157 int i; 10158 int 10159 main (void) 10160 { 10161 10162 ; 10163 return 0; 10164 } 10165 _ACEOF 10166 if ac_fn_c_try_link "$LINENO" 10167 then : 10168 eval $cacheid=yes 10169 else $as_nop 10170 eval $cacheid=no 10171 fi 10172 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10173 conftest$ac_exeext conftest.$ac_ext 10174 fi 10175 10176 10177 CFLAGS="$xorg_testset_save_CFLAGS" 10178 10179 eval supported=\$$cacheid 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10181 printf "%s\n" "$supported" >&6; } 10182 if test "$supported" = "yes" ; then 10183 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10184 found="yes" 10185 fi 10186 fi 10187 10188 if test $found = "no" ; then 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 fi 10192 10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10195 fi 10196 10197 CFLAGS="$CFLAGS -errwarn" 10198 10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10200 printf %s "checking if $CC supports -errwarn... " >&6; } 10201 cacheid=xorg_cv_cc_flag__errwarn 10202 if eval test \${$cacheid+y} 10203 then : 10204 printf %s "(cached) " >&6 10205 else $as_nop 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207 /* end confdefs.h. */ 10208 int i; 10209 int 10210 main (void) 10211 { 10212 10213 ; 10214 return 0; 10215 } 10216 _ACEOF 10217 if ac_fn_c_try_link "$LINENO" 10218 then : 10219 eval $cacheid=yes 10220 else $as_nop 10221 eval $cacheid=no 10222 fi 10223 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10224 conftest$ac_exeext conftest.$ac_ext 10225 fi 10226 10227 10228 CFLAGS="$xorg_testset_save_CFLAGS" 10229 10230 eval supported=\$$cacheid 10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10232 printf "%s\n" "$supported" >&6; } 10233 if test "$supported" = "yes" ; then 10234 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10235 found="yes" 10236 fi 10237 fi 10238 10239 10240 10241 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10242 # activate it with -Werror, so we add it here explicitly. 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 xorg_testset_save_CFLAGS="$CFLAGS" 10257 10258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10261 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10262 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10263 then : 10264 printf %s "(cached) " >&6 10265 else $as_nop 10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10267 /* end confdefs.h. */ 10268 int i; 10269 _ACEOF 10270 if ac_fn_c_try_compile "$LINENO" 10271 then : 10272 xorg_cv_cc_flag_unknown_warning_option=yes 10273 else $as_nop 10274 xorg_cv_cc_flag_unknown_warning_option=no 10275 fi 10276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10277 fi 10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10279 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10281 CFLAGS="$xorg_testset_save_CFLAGS" 10282 fi 10283 10284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10287 fi 10288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10290 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10291 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10292 then : 10293 printf %s "(cached) " >&6 10294 else $as_nop 10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10296 /* end confdefs.h. */ 10297 int i; 10298 _ACEOF 10299 if ac_fn_c_try_compile "$LINENO" 10300 then : 10301 xorg_cv_cc_flag_unused_command_line_argument=yes 10302 else $as_nop 10303 xorg_cv_cc_flag_unused_command_line_argument=no 10304 fi 10305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10306 fi 10307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10308 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10310 CFLAGS="$xorg_testset_save_CFLAGS" 10311 fi 10312 10313 found="no" 10314 10315 if test $found = "no" ; then 10316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10318 fi 10319 10320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10322 fi 10323 10324 CFLAGS="$CFLAGS -Werror=attributes" 10325 10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10327 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10328 cacheid=xorg_cv_cc_flag__Werror_attributes 10329 if eval test \${$cacheid+y} 10330 then : 10331 printf %s "(cached) " >&6 10332 else $as_nop 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334 /* end confdefs.h. */ 10335 int i; 10336 int 10337 main (void) 10338 { 10339 10340 ; 10341 return 0; 10342 } 10343 _ACEOF 10344 if ac_fn_c_try_link "$LINENO" 10345 then : 10346 eval $cacheid=yes 10347 else $as_nop 10348 eval $cacheid=no 10349 fi 10350 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10351 conftest$ac_exeext conftest.$ac_ext 10352 fi 10353 10354 10355 CFLAGS="$xorg_testset_save_CFLAGS" 10356 10357 eval supported=\$$cacheid 10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10359 printf "%s\n" "$supported" >&6; } 10360 if test "$supported" = "yes" ; then 10361 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10362 found="yes" 10363 fi 10364 fi 10365 10366 10367 10368 if test "x$STRICT_COMPILE" = "xyes"; then 10369 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10370 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10371 fi 10372 10373 10374 10375 10376 10377 10378 cat >>confdefs.h <<_ACEOF 10379 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10380 _ACEOF 10381 10382 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10383 if test "x$PVM" = "x"; then 10384 PVM="0" 10385 fi 10386 10387 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10388 10389 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10390 if test "x$PVP" = "x"; then 10391 PVP="0" 10392 fi 10393 10394 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10395 10396 10397 10398 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10399 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10400 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10401 touch \$(top_srcdir)/ChangeLog; \ 10402 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10403 10404 10405 10406 10407 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10408 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10409 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10410 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10411 touch \$(top_srcdir)/INSTALL; \ 10412 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10413 10414 10415 10416 10417 10418 10419 case $host_os in 10420 solaris*) 10421 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10422 # check for a man page file found in later versions that use 10423 # traditional section numbers instead 10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10425 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10426 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10427 then : 10428 printf %s "(cached) " >&6 10429 else $as_nop 10430 test "$cross_compiling" = yes && 10431 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10432 if test -r "/usr/share/man/man7/attributes.7"; then 10433 ac_cv_file__usr_share_man_man7_attributes_7=yes 10434 else 10435 ac_cv_file__usr_share_man_man7_attributes_7=no 10436 fi 10437 fi 10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10439 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10440 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10441 then : 10442 SYSV_MAN_SECTIONS=false 10443 else $as_nop 10444 SYSV_MAN_SECTIONS=true 10445 fi 10446 10447 ;; 10448 *) SYSV_MAN_SECTIONS=false ;; 10449 esac 10450 10451 if test x$APP_MAN_SUFFIX = x ; then 10452 APP_MAN_SUFFIX=1 10453 fi 10454 if test x$APP_MAN_DIR = x ; then 10455 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10456 fi 10457 10458 if test x$LIB_MAN_SUFFIX = x ; then 10459 LIB_MAN_SUFFIX=3 10460 fi 10461 if test x$LIB_MAN_DIR = x ; then 10462 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10463 fi 10464 10465 if test x$FILE_MAN_SUFFIX = x ; then 10466 case $SYSV_MAN_SECTIONS in 10467 true) FILE_MAN_SUFFIX=4 ;; 10468 *) FILE_MAN_SUFFIX=5 ;; 10469 esac 10470 fi 10471 if test x$FILE_MAN_DIR = x ; then 10472 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10473 fi 10474 10475 if test x$MISC_MAN_SUFFIX = x ; then 10476 case $SYSV_MAN_SECTIONS in 10477 true) MISC_MAN_SUFFIX=5 ;; 10478 *) MISC_MAN_SUFFIX=7 ;; 10479 esac 10480 fi 10481 if test x$MISC_MAN_DIR = x ; then 10482 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10483 fi 10484 10485 if test x$DRIVER_MAN_SUFFIX = x ; then 10486 case $SYSV_MAN_SECTIONS in 10487 true) DRIVER_MAN_SUFFIX=7 ;; 10488 *) DRIVER_MAN_SUFFIX=4 ;; 10489 esac 10490 fi 10491 if test x$DRIVER_MAN_DIR = x ; then 10492 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10493 fi 10494 10495 if test x$ADMIN_MAN_SUFFIX = x ; then 10496 case $SYSV_MAN_SECTIONS in 10497 true) ADMIN_MAN_SUFFIX=1m ;; 10498 *) ADMIN_MAN_SUFFIX=8 ;; 10499 esac 10500 fi 10501 if test x$ADMIN_MAN_DIR = x ; then 10502 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10503 fi 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 XORG_MAN_PAGE="X Version 11" 10520 10521 MAN_SUBSTS="\ 10522 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10523 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10524 -e 's|__xservername__|Xorg|g' \ 10525 -e 's|__xconfigfile__|xorg.conf|g' \ 10526 -e 's|__projectroot__|\$(prefix)|g' \ 10527 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10528 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10529 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10530 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10531 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10532 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10533 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10534 10535 10536 10537 # Check whether --enable-silent-rules was given. 10538 if test ${enable_silent_rules+y} 10539 then : 10540 enableval=$enable_silent_rules; 10541 fi 10542 10543 case $enable_silent_rules in # ((( 10544 yes) AM_DEFAULT_VERBOSITY=0;; 10545 no) AM_DEFAULT_VERBOSITY=1;; 10546 *) AM_DEFAULT_VERBOSITY=0;; 10547 esac 10548 am_make=${MAKE-make} 10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10550 printf %s "checking whether $am_make supports nested variables... " >&6; } 10551 if test ${am_cv_make_support_nested_variables+y} 10552 then : 10553 printf %s "(cached) " >&6 10554 else $as_nop 10555 if printf "%s\n" 'TRUE=$(BAR$(V)) 10556 BAR0=false 10557 BAR1=true 10558 V=1 10559 am__doit: 10560 @$(TRUE) 10561 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10562 am_cv_make_support_nested_variables=yes 10563 else 10564 am_cv_make_support_nested_variables=no 10565 fi 10566 fi 10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10568 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 10569 if test $am_cv_make_support_nested_variables = yes; then 10570 AM_V='$(V)' 10571 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10572 else 10573 AM_V=$AM_DEFAULT_VERBOSITY 10574 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10575 fi 10576 AM_BACKSLASH='\' 10577 10578 10579 10580 10581 10582 # Initialize Automake 10583 am__api_version='1.16' 10584 10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10586 printf %s "checking whether build environment is sane... " >&6; } 10587 # Reject unsafe characters in $srcdir or the absolute working directory 10588 # name. Accept space and tab only in the latter. 10589 am_lf=' 10590 ' 10591 case `pwd` in 10592 *[\\\"\#\$\&\'\`$am_lf]*) 10593 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10594 esac 10595 case $srcdir in 10596 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10597 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 10598 esac 10599 10600 # Do 'set' in a subshell so we don't clobber the current shell's 10601 # arguments. Must try -L first in case configure is actually a 10602 # symlink; some systems play weird games with the mod time of symlinks 10603 # (eg FreeBSD returns the mod time of the symlink's containing 10604 # directory). 10605 if ( 10606 am_has_slept=no 10607 for am_try in 1 2; do 10608 echo "timestamp, slept: $am_has_slept" > conftest.file 10609 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10610 if test "$*" = "X"; then 10611 # -L didn't work. 10612 set X `ls -t "$srcdir/configure" conftest.file` 10613 fi 10614 if test "$*" != "X $srcdir/configure conftest.file" \ 10615 && test "$*" != "X conftest.file $srcdir/configure"; then 10616 10617 # If neither matched, then we have a broken ls. This can happen 10618 # if, for instance, CONFIG_SHELL is bash and it inherits a 10619 # broken ls alias from the environment. This has actually 10620 # happened. Such a system could not be considered "sane". 10621 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10622 alias in your environment" "$LINENO" 5 10623 fi 10624 if test "$2" = conftest.file || test $am_try -eq 2; then 10625 break 10626 fi 10627 # Just in case. 10628 sleep 1 10629 am_has_slept=yes 10630 done 10631 test "$2" = conftest.file 10632 ) 10633 then 10634 # Ok. 10635 : 10636 else 10637 as_fn_error $? "newly created file is older than distributed files! 10638 Check your system clock" "$LINENO" 5 10639 fi 10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10641 printf "%s\n" "yes" >&6; } 10642 # If we didn't sleep, we still need to ensure time stamps of config.status and 10643 # generated files are strictly newer. 10644 am_sleep_pid= 10645 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10646 ( sleep 1 ) & 10647 am_sleep_pid=$! 10648 fi 10649 10650 rm -f conftest.file 10651 10652 test "$program_prefix" != NONE && 10653 program_transform_name="s&^&$program_prefix&;$program_transform_name" 10654 # Use a double $ so make ignores it. 10655 test "$program_suffix" != NONE && 10656 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 10657 # Double any \ or $. 10658 # By default was `s,x,x', remove it if useless. 10659 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 10660 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 10661 10662 10663 if test x"${MISSING+set}" != xset; then 10664 MISSING="\${SHELL} '$am_aux_dir/missing'" 10665 fi 10666 # Use eval to expand $SHELL 10667 if eval "$MISSING --is-lightweight"; then 10668 am_missing_run="$MISSING " 10669 else 10670 am_missing_run= 10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 10672 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 10673 fi 10674 10675 if test x"${install_sh+set}" != xset; then 10676 case $am_aux_dir in 10677 *\ * | *\ *) 10678 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10679 *) 10680 install_sh="\${SHELL} $am_aux_dir/install-sh" 10681 esac 10682 fi 10683 10684 # Installed binaries are usually stripped using 'strip' when the user 10685 # run "make install-strip". However 'strip' might not be the right 10686 # tool to use in cross-compilation environments, therefore Automake 10687 # will honor the 'STRIP' environment variable to overrule this program. 10688 if test "$cross_compiling" != no; then 10689 if test -n "$ac_tool_prefix"; then 10690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10691 set dummy ${ac_tool_prefix}strip; ac_word=$2 10692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10693 printf %s "checking for $ac_word... " >&6; } 10694 if test ${ac_cv_prog_STRIP+y} 10695 then : 10696 printf %s "(cached) " >&6 10697 else $as_nop 10698 if test -n "$STRIP"; then 10699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10700 else 10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10702 for as_dir in $PATH 10703 do 10704 IFS=$as_save_IFS 10705 case $as_dir in #((( 10706 '') as_dir=./ ;; 10707 */) ;; 10708 *) as_dir=$as_dir/ ;; 10709 esac 10710 for ac_exec_ext in '' $ac_executable_extensions; do 10711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10712 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10714 break 2 10715 fi 10716 done 10717 done 10718 IFS=$as_save_IFS 10719 10720 fi 10721 fi 10722 STRIP=$ac_cv_prog_STRIP 10723 if test -n "$STRIP"; then 10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10725 printf "%s\n" "$STRIP" >&6; } 10726 else 10727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10728 printf "%s\n" "no" >&6; } 10729 fi 10730 10731 10732 fi 10733 if test -z "$ac_cv_prog_STRIP"; then 10734 ac_ct_STRIP=$STRIP 10735 # Extract the first word of "strip", so it can be a program name with args. 10736 set dummy strip; ac_word=$2 10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10738 printf %s "checking for $ac_word... " >&6; } 10739 if test ${ac_cv_prog_ac_ct_STRIP+y} 10740 then : 10741 printf %s "(cached) " >&6 10742 else $as_nop 10743 if test -n "$ac_ct_STRIP"; then 10744 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10745 else 10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10747 for as_dir in $PATH 10748 do 10749 IFS=$as_save_IFS 10750 case $as_dir in #((( 10751 '') as_dir=./ ;; 10752 */) ;; 10753 *) as_dir=$as_dir/ ;; 10754 esac 10755 for ac_exec_ext in '' $ac_executable_extensions; do 10756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10757 ac_cv_prog_ac_ct_STRIP="strip" 10758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10759 break 2 10760 fi 10761 done 10762 done 10763 IFS=$as_save_IFS 10764 10765 fi 10766 fi 10767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10768 if test -n "$ac_ct_STRIP"; then 10769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10770 printf "%s\n" "$ac_ct_STRIP" >&6; } 10771 else 10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10773 printf "%s\n" "no" >&6; } 10774 fi 10775 10776 if test "x$ac_ct_STRIP" = x; then 10777 STRIP=":" 10778 else 10779 case $cross_compiling:$ac_tool_warned in 10780 yes:) 10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10783 ac_tool_warned=yes ;; 10784 esac 10785 STRIP=$ac_ct_STRIP 10786 fi 10787 else 10788 STRIP="$ac_cv_prog_STRIP" 10789 fi 10790 10791 fi 10792 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10793 10794 10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 10796 printf %s "checking for a race-free mkdir -p... " >&6; } 10797 if test -z "$MKDIR_P"; then 10798 if test ${ac_cv_path_mkdir+y} 10799 then : 10800 printf %s "(cached) " >&6 10801 else $as_nop 10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10803 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 10804 do 10805 IFS=$as_save_IFS 10806 case $as_dir in #((( 10807 '') as_dir=./ ;; 10808 */) ;; 10809 *) as_dir=$as_dir/ ;; 10810 esac 10811 for ac_prog in mkdir gmkdir; do 10812 for ac_exec_ext in '' $ac_executable_extensions; do 10813 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 10814 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 10815 'mkdir ('*'coreutils) '* | \ 10816 'BusyBox '* | \ 10817 'mkdir (fileutils) '4.1*) 10818 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 10819 break 3;; 10820 esac 10821 done 10822 done 10823 done 10824 IFS=$as_save_IFS 10825 10826 fi 10827 10828 test -d ./--version && rmdir ./--version 10829 if test ${ac_cv_path_mkdir+y}; then 10830 MKDIR_P="$ac_cv_path_mkdir -p" 10831 else 10832 # As a last resort, use the slow shell script. Don't cache a 10833 # value for MKDIR_P within a source directory, because that will 10834 # break other packages using the cache if that directory is 10835 # removed, or if the value is a relative name. 10836 MKDIR_P="$ac_install_sh -d" 10837 fi 10838 fi 10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 10840 printf "%s\n" "$MKDIR_P" >&6; } 10841 10842 for ac_prog in gawk mawk nawk awk 10843 do 10844 # Extract the first word of "$ac_prog", so it can be a program name with args. 10845 set dummy $ac_prog; ac_word=$2 10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10847 printf %s "checking for $ac_word... " >&6; } 10848 if test ${ac_cv_prog_AWK+y} 10849 then : 10850 printf %s "(cached) " >&6 10851 else $as_nop 10852 if test -n "$AWK"; then 10853 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10854 else 10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10856 for as_dir in $PATH 10857 do 10858 IFS=$as_save_IFS 10859 case $as_dir in #((( 10860 '') as_dir=./ ;; 10861 */) ;; 10862 *) as_dir=$as_dir/ ;; 10863 esac 10864 for ac_exec_ext in '' $ac_executable_extensions; do 10865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10866 ac_cv_prog_AWK="$ac_prog" 10867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10868 break 2 10869 fi 10870 done 10871 done 10872 IFS=$as_save_IFS 10873 10874 fi 10875 fi 10876 AWK=$ac_cv_prog_AWK 10877 if test -n "$AWK"; then 10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10879 printf "%s\n" "$AWK" >&6; } 10880 else 10881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10882 printf "%s\n" "no" >&6; } 10883 fi 10884 10885 10886 test -n "$AWK" && break 10887 done 10888 10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10890 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10891 set x ${MAKE-make} 10892 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10893 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 10894 then : 10895 printf %s "(cached) " >&6 10896 else $as_nop 10897 cat >conftest.make <<\_ACEOF 10898 SHELL = /bin/sh 10899 all: 10900 @echo '@@@%%%=$(MAKE)=@@@%%%' 10901 _ACEOF 10902 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10903 case `${MAKE-make} -f conftest.make 2>/dev/null` in 10904 *@@@%%%=?*=@@@%%%*) 10905 eval ac_cv_prog_make_${ac_make}_set=yes;; 10906 *) 10907 eval ac_cv_prog_make_${ac_make}_set=no;; 10908 esac 10909 rm -f conftest.make 10910 fi 10911 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10913 printf "%s\n" "yes" >&6; } 10914 SET_MAKE= 10915 else 10916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10917 printf "%s\n" "no" >&6; } 10918 SET_MAKE="MAKE=${MAKE-make}" 10919 fi 10920 10921 rm -rf .tst 2>/dev/null 10922 mkdir .tst 2>/dev/null 10923 if test -d .tst; then 10924 am__leading_dot=. 10925 else 10926 am__leading_dot=_ 10927 fi 10928 rmdir .tst 2>/dev/null 10929 10930 DEPDIR="${am__leading_dot}deps" 10931 10932 ac_config_commands="$ac_config_commands depfiles" 10933 10934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 10935 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 10936 cat > confinc.mk << 'END' 10937 am__doit: 10938 @echo this is the am__doit target >confinc.out 10939 .PHONY: am__doit 10940 END 10941 am__include="#" 10942 am__quote= 10943 # BSD make does it like this. 10944 echo '.include "confinc.mk" # ignored' > confmf.BSD 10945 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 10946 echo 'include confinc.mk # ignored' > confmf.GNU 10947 _am_result=no 10948 for s in GNU BSD; do 10949 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 10950 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 10951 ac_status=$? 10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10953 (exit $ac_status); } 10954 case $?:`cat confinc.out 2>/dev/null` in #( 10955 '0:this is the am__doit target') : 10956 case $s in #( 10957 BSD) : 10958 am__include='.include' am__quote='"' ;; #( 10959 *) : 10960 am__include='include' am__quote='' ;; 10961 esac ;; #( 10962 *) : 10963 ;; 10964 esac 10965 if test "$am__include" != "#"; then 10966 _am_result="yes ($s style)" 10967 break 10968 fi 10969 done 10970 rm -f confinc.* confmf.* 10971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 10972 printf "%s\n" "${_am_result}" >&6; } 10973 10974 # Check whether --enable-dependency-tracking was given. 10975 if test ${enable_dependency_tracking+y} 10976 then : 10977 enableval=$enable_dependency_tracking; 10978 fi 10979 10980 if test "x$enable_dependency_tracking" != xno; then 10981 am_depcomp="$ac_aux_dir/depcomp" 10982 AMDEPBACKSLASH='\' 10983 am__nodep='_no' 10984 fi 10985 if test "x$enable_dependency_tracking" != xno; then 10986 AMDEP_TRUE= 10987 AMDEP_FALSE='#' 10988 else 10989 AMDEP_TRUE='#' 10990 AMDEP_FALSE= 10991 fi 10992 10993 10994 if test "`cd $srcdir && pwd`" != "`pwd`"; then 10995 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10996 # is not polluted with repeated "-I." 10997 am__isrc=' -I$(srcdir)' 10998 # test to see if srcdir already configured 10999 if test -f $srcdir/config.status; then 11000 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 11001 fi 11002 fi 11003 11004 # test whether we have cygpath 11005 if test -z "$CYGPATH_W"; then 11006 if (cygpath --version) >/dev/null 2>/dev/null; then 11007 CYGPATH_W='cygpath -w' 11008 else 11009 CYGPATH_W=echo 11010 fi 11011 fi 11012 11013 11014 # Define the identity of the package. 11015 PACKAGE='xf86-video-mga' 11016 VERSION='2.0.1' 11017 11018 11019 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 11020 11021 11022 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 11023 11024 # Some tools Automake needs. 11025 11026 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 11027 11028 11029 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 11030 11031 11032 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 11033 11034 11035 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 11036 11037 11038 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 11039 11040 # For better backward compatibility. To be removed once Automake 1.9.x 11041 # dies out for good. For more background, see: 11042 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 11043 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 11044 mkdir_p='$(MKDIR_P)' 11045 11046 # We need awk for the "check" target (and possibly the TAP driver). The 11047 # system "awk" is bad on some platforms. 11048 # Always define AMTAR for backward compatibility. Yes, it's still used 11049 # in the wild :-( We should find a proper way to deprecate it ... 11050 AMTAR='$${TAR-tar}' 11051 11052 11053 # We'll loop over all known methods to create a tar archive until one works. 11054 _am_tools='gnutar pax cpio none' 11055 11056 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 11057 11058 11059 11060 11061 11062 depcc="$CC" am_compiler_list= 11063 11064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11065 printf %s "checking dependency style of $depcc... " >&6; } 11066 if test ${am_cv_CC_dependencies_compiler_type+y} 11067 then : 11068 printf %s "(cached) " >&6 11069 else $as_nop 11070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11071 # We make a subdir and do the tests there. Otherwise we can end up 11072 # making bogus files that we don't know about and never remove. For 11073 # instance it was reported that on HP-UX the gcc test will end up 11074 # making a dummy file named 'D' -- because '-MD' means "put the output 11075 # in D". 11076 rm -rf conftest.dir 11077 mkdir conftest.dir 11078 # Copy depcomp to subdir because otherwise we won't find it if we're 11079 # using a relative directory. 11080 cp "$am_depcomp" conftest.dir 11081 cd conftest.dir 11082 # We will build objects and dependencies in a subdirectory because 11083 # it helps to detect inapplicable dependency modes. For instance 11084 # both Tru64's cc and ICC support -MD to output dependencies as a 11085 # side effect of compilation, but ICC will put the dependencies in 11086 # the current directory while Tru64 will put them in the object 11087 # directory. 11088 mkdir sub 11089 11090 am_cv_CC_dependencies_compiler_type=none 11091 if test "$am_compiler_list" = ""; then 11092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11093 fi 11094 am__universal=false 11095 case " $depcc " in #( 11096 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11097 esac 11098 11099 for depmode in $am_compiler_list; do 11100 # Setup a source with many dependencies, because some compilers 11101 # like to wrap large dependency lists on column 80 (with \), and 11102 # we should not choose a depcomp mode which is confused by this. 11103 # 11104 # We need to recreate these files for each test, as the compiler may 11105 # overwrite some of them when testing with obscure command lines. 11106 # This happens at least with the AIX C compiler. 11107 : > sub/conftest.c 11108 for i in 1 2 3 4 5 6; do 11109 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11110 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 11111 # Solaris 10 /bin/sh. 11112 echo '/* dummy */' > sub/conftst$i.h 11113 done 11114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11115 11116 # We check with '-c' and '-o' for the sake of the "dashmstdout" 11117 # mode. It turns out that the SunPro C++ compiler does not properly 11118 # handle '-M -o', and we need to detect this. Also, some Intel 11119 # versions had trouble with output in subdirs. 11120 am__obj=sub/conftest.${OBJEXT-o} 11121 am__minus_obj="-o $am__obj" 11122 case $depmode in 11123 gcc) 11124 # This depmode causes a compiler race in universal mode. 11125 test "$am__universal" = false || continue 11126 ;; 11127 nosideeffect) 11128 # After this tag, mechanisms are not by side-effect, so they'll 11129 # only be used when explicitly requested. 11130 if test "x$enable_dependency_tracking" = xyes; then 11131 continue 11132 else 11133 break 11134 fi 11135 ;; 11136 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11137 # This compiler won't grok '-c -o', but also, the minuso test has 11138 # not run yet. These depmodes are late enough in the game, and 11139 # so weak that their functioning should not be impacted. 11140 am__obj=conftest.${OBJEXT-o} 11141 am__minus_obj= 11142 ;; 11143 none) break ;; 11144 esac 11145 if depmode=$depmode \ 11146 source=sub/conftest.c object=$am__obj \ 11147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11149 >/dev/null 2>conftest.err && 11150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11154 # icc doesn't choke on unknown options, it will just issue warnings 11155 # or remarks (even with -Werror). So we grep stderr for any message 11156 # that says an option was ignored or not supported. 11157 # When given -MP, icc 7.0 and 7.1 complain thusly: 11158 # icc: Command line warning: ignoring option '-M'; no argument required 11159 # The diagnosis changed in icc 8.0: 11160 # icc: Command line remark: option '-MP' not supported 11161 if (grep 'ignoring option' conftest.err || 11162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11163 am_cv_CC_dependencies_compiler_type=$depmode 11164 break 11165 fi 11166 fi 11167 done 11168 11169 cd .. 11170 rm -rf conftest.dir 11171 else 11172 am_cv_CC_dependencies_compiler_type=none 11173 fi 11174 11175 fi 11176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11177 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 11178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11179 11180 if 11181 test "x$enable_dependency_tracking" != xno \ 11182 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11183 am__fastdepCC_TRUE= 11184 am__fastdepCC_FALSE='#' 11185 else 11186 am__fastdepCC_TRUE='#' 11187 am__fastdepCC_FALSE= 11188 fi 11189 11190 11191 # Variables for tags utilities; see am/tags.am 11192 if test -z "$CTAGS"; then 11193 CTAGS=ctags 11194 fi 11195 11196 if test -z "$ETAGS"; then 11197 ETAGS=etags 11198 fi 11199 11200 if test -z "$CSCOPE"; then 11201 CSCOPE=cscope 11202 fi 11203 11204 11205 11206 # POSIX will say in a future version that running "rm -f" with no argument 11207 # is OK; and we want to be able to make that assumption in our Makefile 11208 # recipes. So use an aggressive probe to check that the usage we want is 11209 # actually supported "in the wild" to an acceptable degree. 11210 # See automake bug#10828. 11211 # To make any issue more visible, cause the running configure to be aborted 11212 # by default if the 'rm' program in use doesn't match our expectations; the 11213 # user can still override this though. 11214 if rm -f && rm -fr && rm -rf; then : OK; else 11215 cat >&2 <<'END' 11216 Oops! 11217 11218 Your 'rm' program seems unable to run without file operands specified 11219 on the command line, even when the '-f' option is present. This is contrary 11220 to the behaviour of most rm programs out there, and not conforming with 11221 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 11222 11223 Please tell bug-automake@gnu.org about your system, including the value 11224 of your $PATH and any error possibly output before this message. This 11225 can help us improve future automake versions. 11226 11227 END 11228 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 11229 echo 'Configuration will proceed anyway, since you have set the' >&2 11230 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 11231 echo >&2 11232 else 11233 cat >&2 <<'END' 11234 Aborting the configuration process, to ensure you take notice of the issue. 11235 11236 You can download and install GNU coreutils to get an 'rm' implementation 11237 that behaves properly: <https://www.gnu.org/software/coreutils/>. 11238 11239 If you want to complete the configuration process using your problematic 11240 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 11241 to "yes", and re-run configure. 11242 11243 END 11244 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 11245 fi 11246 fi 11247 11248 11249 # Initialize libtool 11250 # Check whether --enable-static was given. 11251 if test ${enable_static+y} 11252 then : 11253 enableval=$enable_static; p=${PACKAGE-default} 11254 case $enableval in 11255 yes) enable_static=yes ;; 11256 no) enable_static=no ;; 11257 *) 11258 enable_static=no 11259 # Look at the argument we got. We use all the common list separators. 11260 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11261 for pkg in $enableval; do 11262 IFS=$lt_save_ifs 11263 if test "X$pkg" = "X$p"; then 11264 enable_static=yes 11265 fi 11266 done 11267 IFS=$lt_save_ifs 11268 ;; 11269 esac 11270 else $as_nop 11271 enable_static=no 11272 fi 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 case `pwd` in 11283 *\ * | *\ *) 11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11285 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11286 esac 11287 11288 11289 11290 macro_version='2.4.7' 11291 macro_revision='2.4.7' 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 ltmain=$ac_aux_dir/ltmain.sh 11307 11308 # Backslashify metacharacters that are still active within 11309 # double-quoted strings. 11310 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11311 11312 # Same as above, but do not quote variable references. 11313 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11314 11315 # Sed substitution to delay expansion of an escaped shell variable in a 11316 # double_quote_subst'ed string. 11317 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11318 11319 # Sed substitution to delay expansion of an escaped single quote. 11320 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11321 11322 # Sed substitution to avoid accidental globbing in evaled expressions 11323 no_glob_subst='s/\*/\\\*/g' 11324 11325 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11326 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11327 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11328 11329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11330 printf %s "checking how to print strings... " >&6; } 11331 # Test print first, because it will be a builtin if present. 11332 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11333 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11334 ECHO='print -r --' 11335 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11336 ECHO='printf %s\n' 11337 else 11338 # Use this function as a fallback that always works. 11339 func_fallback_echo () 11340 { 11341 eval 'cat <<_LTECHO_EOF 11342 $1 11343 _LTECHO_EOF' 11344 } 11345 ECHO='func_fallback_echo' 11346 fi 11347 11348 # func_echo_all arg... 11349 # Invoke $ECHO with all args, space-separated. 11350 func_echo_all () 11351 { 11352 $ECHO "" 11353 } 11354 11355 case $ECHO in 11356 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11357 printf "%s\n" "printf" >&6; } ;; 11358 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11359 printf "%s\n" "print -r" >&6; } ;; 11360 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11361 printf "%s\n" "cat" >&6; } ;; 11362 esac 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11378 printf %s "checking for a sed that does not truncate output... " >&6; } 11379 if test ${ac_cv_path_SED+y} 11380 then : 11381 printf %s "(cached) " >&6 11382 else $as_nop 11383 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11384 for ac_i in 1 2 3 4 5 6 7; do 11385 ac_script="$ac_script$as_nl$ac_script" 11386 done 11387 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11388 { ac_script=; unset ac_script;} 11389 if test -z "$SED"; then 11390 ac_path_SED_found=false 11391 # Loop through the user's path and test for each of PROGNAME-LIST 11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11393 for as_dir in $PATH 11394 do 11395 IFS=$as_save_IFS 11396 case $as_dir in #((( 11397 '') as_dir=./ ;; 11398 */) ;; 11399 *) as_dir=$as_dir/ ;; 11400 esac 11401 for ac_prog in sed gsed 11402 do 11403 for ac_exec_ext in '' $ac_executable_extensions; do 11404 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11405 as_fn_executable_p "$ac_path_SED" || continue 11406 # Check for GNU ac_path_SED and select it if it is found. 11407 # Check for GNU $ac_path_SED 11408 case `"$ac_path_SED" --version 2>&1` in 11409 *GNU*) 11410 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11411 *) 11412 ac_count=0 11413 printf %s 0123456789 >"conftest.in" 11414 while : 11415 do 11416 cat "conftest.in" "conftest.in" >"conftest.tmp" 11417 mv "conftest.tmp" "conftest.in" 11418 cp "conftest.in" "conftest.nl" 11419 printf "%s\n" '' >> "conftest.nl" 11420 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11422 as_fn_arith $ac_count + 1 && ac_count=$as_val 11423 if test $ac_count -gt ${ac_path_SED_max-0}; then 11424 # Best one so far, save it but keep looking for a better one 11425 ac_cv_path_SED="$ac_path_SED" 11426 ac_path_SED_max=$ac_count 11427 fi 11428 # 10*(2^10) chars as input seems more than enough 11429 test $ac_count -gt 10 && break 11430 done 11431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11432 esac 11433 11434 $ac_path_SED_found && break 3 11435 done 11436 done 11437 done 11438 IFS=$as_save_IFS 11439 if test -z "$ac_cv_path_SED"; then 11440 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11441 fi 11442 else 11443 ac_cv_path_SED=$SED 11444 fi 11445 11446 fi 11447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11448 printf "%s\n" "$ac_cv_path_SED" >&6; } 11449 SED="$ac_cv_path_SED" 11450 rm -f conftest.sed 11451 11452 test -z "$SED" && SED=sed 11453 Xsed="$SED -e 1s/^X//" 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11466 printf %s "checking for grep that handles long lines and -e... " >&6; } 11467 if test ${ac_cv_path_GREP+y} 11468 then : 11469 printf %s "(cached) " >&6 11470 else $as_nop 11471 if test -z "$GREP"; then 11472 ac_path_GREP_found=false 11473 # Loop through the user's path and test for each of PROGNAME-LIST 11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11476 do 11477 IFS=$as_save_IFS 11478 case $as_dir in #((( 11479 '') as_dir=./ ;; 11480 */) ;; 11481 *) as_dir=$as_dir/ ;; 11482 esac 11483 for ac_prog in grep ggrep 11484 do 11485 for ac_exec_ext in '' $ac_executable_extensions; do 11486 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11487 as_fn_executable_p "$ac_path_GREP" || continue 11488 # Check for GNU ac_path_GREP and select it if it is found. 11489 # Check for GNU $ac_path_GREP 11490 case `"$ac_path_GREP" --version 2>&1` in 11491 *GNU*) 11492 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11493 *) 11494 ac_count=0 11495 printf %s 0123456789 >"conftest.in" 11496 while : 11497 do 11498 cat "conftest.in" "conftest.in" >"conftest.tmp" 11499 mv "conftest.tmp" "conftest.in" 11500 cp "conftest.in" "conftest.nl" 11501 printf "%s\n" 'GREP' >> "conftest.nl" 11502 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11504 as_fn_arith $ac_count + 1 && ac_count=$as_val 11505 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11506 # Best one so far, save it but keep looking for a better one 11507 ac_cv_path_GREP="$ac_path_GREP" 11508 ac_path_GREP_max=$ac_count 11509 fi 11510 # 10*(2^10) chars as input seems more than enough 11511 test $ac_count -gt 10 && break 11512 done 11513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11514 esac 11515 11516 $ac_path_GREP_found && break 3 11517 done 11518 done 11519 done 11520 IFS=$as_save_IFS 11521 if test -z "$ac_cv_path_GREP"; then 11522 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11523 fi 11524 else 11525 ac_cv_path_GREP=$GREP 11526 fi 11527 11528 fi 11529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11530 printf "%s\n" "$ac_cv_path_GREP" >&6; } 11531 GREP="$ac_cv_path_GREP" 11532 11533 11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11535 printf %s "checking for egrep... " >&6; } 11536 if test ${ac_cv_path_EGREP+y} 11537 then : 11538 printf %s "(cached) " >&6 11539 else $as_nop 11540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11541 then ac_cv_path_EGREP="$GREP -E" 11542 else 11543 if test -z "$EGREP"; then 11544 ac_path_EGREP_found=false 11545 # Loop through the user's path and test for each of PROGNAME-LIST 11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11548 do 11549 IFS=$as_save_IFS 11550 case $as_dir in #((( 11551 '') as_dir=./ ;; 11552 */) ;; 11553 *) as_dir=$as_dir/ ;; 11554 esac 11555 for ac_prog in egrep 11556 do 11557 for ac_exec_ext in '' $ac_executable_extensions; do 11558 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11559 as_fn_executable_p "$ac_path_EGREP" || continue 11560 # Check for GNU ac_path_EGREP and select it if it is found. 11561 # Check for GNU $ac_path_EGREP 11562 case `"$ac_path_EGREP" --version 2>&1` in 11563 *GNU*) 11564 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11565 *) 11566 ac_count=0 11567 printf %s 0123456789 >"conftest.in" 11568 while : 11569 do 11570 cat "conftest.in" "conftest.in" >"conftest.tmp" 11571 mv "conftest.tmp" "conftest.in" 11572 cp "conftest.in" "conftest.nl" 11573 printf "%s\n" 'EGREP' >> "conftest.nl" 11574 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11576 as_fn_arith $ac_count + 1 && ac_count=$as_val 11577 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11578 # Best one so far, save it but keep looking for a better one 11579 ac_cv_path_EGREP="$ac_path_EGREP" 11580 ac_path_EGREP_max=$ac_count 11581 fi 11582 # 10*(2^10) chars as input seems more than enough 11583 test $ac_count -gt 10 && break 11584 done 11585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11586 esac 11587 11588 $ac_path_EGREP_found && break 3 11589 done 11590 done 11591 done 11592 IFS=$as_save_IFS 11593 if test -z "$ac_cv_path_EGREP"; then 11594 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11595 fi 11596 else 11597 ac_cv_path_EGREP=$EGREP 11598 fi 11599 11600 fi 11601 fi 11602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11603 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11604 EGREP="$ac_cv_path_EGREP" 11605 11606 11607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11608 printf %s "checking for fgrep... " >&6; } 11609 if test ${ac_cv_path_FGREP+y} 11610 then : 11611 printf %s "(cached) " >&6 11612 else $as_nop 11613 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11614 then ac_cv_path_FGREP="$GREP -F" 11615 else 11616 if test -z "$FGREP"; then 11617 ac_path_FGREP_found=false 11618 # Loop through the user's path and test for each of PROGNAME-LIST 11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11621 do 11622 IFS=$as_save_IFS 11623 case $as_dir in #((( 11624 '') as_dir=./ ;; 11625 */) ;; 11626 *) as_dir=$as_dir/ ;; 11627 esac 11628 for ac_prog in fgrep 11629 do 11630 for ac_exec_ext in '' $ac_executable_extensions; do 11631 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11632 as_fn_executable_p "$ac_path_FGREP" || continue 11633 # Check for GNU ac_path_FGREP and select it if it is found. 11634 # Check for GNU $ac_path_FGREP 11635 case `"$ac_path_FGREP" --version 2>&1` in 11636 *GNU*) 11637 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11638 *) 11639 ac_count=0 11640 printf %s 0123456789 >"conftest.in" 11641 while : 11642 do 11643 cat "conftest.in" "conftest.in" >"conftest.tmp" 11644 mv "conftest.tmp" "conftest.in" 11645 cp "conftest.in" "conftest.nl" 11646 printf "%s\n" 'FGREP' >> "conftest.nl" 11647 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11649 as_fn_arith $ac_count + 1 && ac_count=$as_val 11650 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11651 # Best one so far, save it but keep looking for a better one 11652 ac_cv_path_FGREP="$ac_path_FGREP" 11653 ac_path_FGREP_max=$ac_count 11654 fi 11655 # 10*(2^10) chars as input seems more than enough 11656 test $ac_count -gt 10 && break 11657 done 11658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11659 esac 11660 11661 $ac_path_FGREP_found && break 3 11662 done 11663 done 11664 done 11665 IFS=$as_save_IFS 11666 if test -z "$ac_cv_path_FGREP"; then 11667 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11668 fi 11669 else 11670 ac_cv_path_FGREP=$FGREP 11671 fi 11672 11673 fi 11674 fi 11675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11676 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11677 FGREP="$ac_cv_path_FGREP" 11678 11679 11680 test -z "$GREP" && GREP=grep 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 # Check whether --with-gnu-ld was given. 11701 if test ${with_gnu_ld+y} 11702 then : 11703 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11704 else $as_nop 11705 with_gnu_ld=no 11706 fi 11707 11708 ac_prog=ld 11709 if test yes = "$GCC"; then 11710 # Check if gcc -print-prog-name=ld gives a path. 11711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11712 printf %s "checking for ld used by $CC... " >&6; } 11713 case $host in 11714 *-*-mingw*) 11715 # gcc leaves a trailing carriage return, which upsets mingw 11716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11717 *) 11718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11719 esac 11720 case $ac_prog in 11721 # Accept absolute paths. 11722 [\\/]* | ?:[\\/]*) 11723 re_direlt='/[^/][^/]*/\.\./' 11724 # Canonicalize the pathname of ld 11725 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11727 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11728 done 11729 test -z "$LD" && LD=$ac_prog 11730 ;; 11731 "") 11732 # If it fails, then pretend we aren't using GCC. 11733 ac_prog=ld 11734 ;; 11735 *) 11736 # If it is relative, then search for the first ld in PATH. 11737 with_gnu_ld=unknown 11738 ;; 11739 esac 11740 elif test yes = "$with_gnu_ld"; then 11741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11742 printf %s "checking for GNU ld... " >&6; } 11743 else 11744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11745 printf %s "checking for non-GNU ld... " >&6; } 11746 fi 11747 if test ${lt_cv_path_LD+y} 11748 then : 11749 printf %s "(cached) " >&6 11750 else $as_nop 11751 if test -z "$LD"; then 11752 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11753 for ac_dir in $PATH; do 11754 IFS=$lt_save_ifs 11755 test -z "$ac_dir" && ac_dir=. 11756 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11757 lt_cv_path_LD=$ac_dir/$ac_prog 11758 # Check to see if the program is GNU ld. I'd rather use --version, 11759 # but apparently some variants of GNU ld only accept -v. 11760 # Break only if it was the GNU/non-GNU ld that we prefer. 11761 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11762 *GNU* | *'with BFD'*) 11763 test no != "$with_gnu_ld" && break 11764 ;; 11765 *) 11766 test yes != "$with_gnu_ld" && break 11767 ;; 11768 esac 11769 fi 11770 done 11771 IFS=$lt_save_ifs 11772 else 11773 lt_cv_path_LD=$LD # Let the user override the test with a path. 11774 fi 11775 fi 11776 11777 LD=$lt_cv_path_LD 11778 if test -n "$LD"; then 11779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11780 printf "%s\n" "$LD" >&6; } 11781 else 11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11783 printf "%s\n" "no" >&6; } 11784 fi 11785 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11787 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11788 if test ${lt_cv_prog_gnu_ld+y} 11789 then : 11790 printf %s "(cached) " >&6 11791 else $as_nop 11792 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11793 case `$LD -v 2>&1 </dev/null` in 11794 *GNU* | *'with BFD'*) 11795 lt_cv_prog_gnu_ld=yes 11796 ;; 11797 *) 11798 lt_cv_prog_gnu_ld=no 11799 ;; 11800 esac 11801 fi 11802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11803 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11804 with_gnu_ld=$lt_cv_prog_gnu_ld 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11815 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11816 if test ${lt_cv_path_NM+y} 11817 then : 11818 printf %s "(cached) " >&6 11819 else $as_nop 11820 if test -n "$NM"; then 11821 # Let the user override the test. 11822 lt_cv_path_NM=$NM 11823 else 11824 lt_nm_to_check=${ac_tool_prefix}nm 11825 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11826 lt_nm_to_check="$lt_nm_to_check nm" 11827 fi 11828 for lt_tmp_nm in $lt_nm_to_check; do 11829 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11830 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11831 IFS=$lt_save_ifs 11832 test -z "$ac_dir" && ac_dir=. 11833 tmp_nm=$ac_dir/$lt_tmp_nm 11834 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11835 # Check to see if the nm accepts a BSD-compat flag. 11836 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11837 # nm: unknown option "B" ignored 11838 # Tru64's nm complains that /dev/null is an invalid object file 11839 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11840 case $build_os in 11841 mingw*) lt_bad_file=conftest.nm/nofile ;; 11842 *) lt_bad_file=/dev/null ;; 11843 esac 11844 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11845 *$lt_bad_file* | *'Invalid file or object type'*) 11846 lt_cv_path_NM="$tmp_nm -B" 11847 break 2 11848 ;; 11849 *) 11850 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11851 */dev/null*) 11852 lt_cv_path_NM="$tmp_nm -p" 11853 break 2 11854 ;; 11855 *) 11856 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11857 continue # so that we can try to find one that supports BSD flags 11858 ;; 11859 esac 11860 ;; 11861 esac 11862 fi 11863 done 11864 IFS=$lt_save_ifs 11865 done 11866 : ${lt_cv_path_NM=no} 11867 fi 11868 fi 11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11870 printf "%s\n" "$lt_cv_path_NM" >&6; } 11871 if test no != "$lt_cv_path_NM"; then 11872 NM=$lt_cv_path_NM 11873 else 11874 # Didn't find any BSD compatible name lister, look for dumpbin. 11875 if test -n "$DUMPBIN"; then : 11876 # Let the user override the test. 11877 else 11878 if test -n "$ac_tool_prefix"; then 11879 for ac_prog in dumpbin "link -dump" 11880 do 11881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11884 printf %s "checking for $ac_word... " >&6; } 11885 if test ${ac_cv_prog_DUMPBIN+y} 11886 then : 11887 printf %s "(cached) " >&6 11888 else $as_nop 11889 if test -n "$DUMPBIN"; then 11890 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11891 else 11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11893 for as_dir in $PATH 11894 do 11895 IFS=$as_save_IFS 11896 case $as_dir in #((( 11897 '') as_dir=./ ;; 11898 */) ;; 11899 *) as_dir=$as_dir/ ;; 11900 esac 11901 for ac_exec_ext in '' $ac_executable_extensions; do 11902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11903 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11905 break 2 11906 fi 11907 done 11908 done 11909 IFS=$as_save_IFS 11910 11911 fi 11912 fi 11913 DUMPBIN=$ac_cv_prog_DUMPBIN 11914 if test -n "$DUMPBIN"; then 11915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11916 printf "%s\n" "$DUMPBIN" >&6; } 11917 else 11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11919 printf "%s\n" "no" >&6; } 11920 fi 11921 11922 11923 test -n "$DUMPBIN" && break 11924 done 11925 fi 11926 if test -z "$DUMPBIN"; then 11927 ac_ct_DUMPBIN=$DUMPBIN 11928 for ac_prog in dumpbin "link -dump" 11929 do 11930 # Extract the first word of "$ac_prog", so it can be a program name with args. 11931 set dummy $ac_prog; ac_word=$2 11932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11933 printf %s "checking for $ac_word... " >&6; } 11934 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11935 then : 11936 printf %s "(cached) " >&6 11937 else $as_nop 11938 if test -n "$ac_ct_DUMPBIN"; then 11939 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11940 else 11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11942 for as_dir in $PATH 11943 do 11944 IFS=$as_save_IFS 11945 case $as_dir in #((( 11946 '') as_dir=./ ;; 11947 */) ;; 11948 *) as_dir=$as_dir/ ;; 11949 esac 11950 for ac_exec_ext in '' $ac_executable_extensions; do 11951 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11952 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11954 break 2 11955 fi 11956 done 11957 done 11958 IFS=$as_save_IFS 11959 11960 fi 11961 fi 11962 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11963 if test -n "$ac_ct_DUMPBIN"; then 11964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11965 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 11966 else 11967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11968 printf "%s\n" "no" >&6; } 11969 fi 11970 11971 11972 test -n "$ac_ct_DUMPBIN" && break 11973 done 11974 11975 if test "x$ac_ct_DUMPBIN" = x; then 11976 DUMPBIN=":" 11977 else 11978 case $cross_compiling:$ac_tool_warned in 11979 yes:) 11980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11981 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11982 ac_tool_warned=yes ;; 11983 esac 11984 DUMPBIN=$ac_ct_DUMPBIN 11985 fi 11986 fi 11987 11988 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 11989 *COFF*) 11990 DUMPBIN="$DUMPBIN -symbols -headers" 11991 ;; 11992 *) 11993 DUMPBIN=: 11994 ;; 11995 esac 11996 fi 11997 11998 if test : != "$DUMPBIN"; then 11999 NM=$DUMPBIN 12000 fi 12001 fi 12002 test -z "$NM" && NM=nm 12003 12004 12005 12006 12007 12008 12009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12010 printf %s "checking the name lister ($NM) interface... " >&6; } 12011 if test ${lt_cv_nm_interface+y} 12012 then : 12013 printf %s "(cached) " >&6 12014 else $as_nop 12015 lt_cv_nm_interface="BSD nm" 12016 echo "int some_variable = 0;" > conftest.$ac_ext 12017 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12018 (eval "$ac_compile" 2>conftest.err) 12019 cat conftest.err >&5 12020 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12021 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12022 cat conftest.err >&5 12023 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12024 cat conftest.out >&5 12025 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12026 lt_cv_nm_interface="MS dumpbin" 12027 fi 12028 rm -f conftest* 12029 fi 12030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12031 printf "%s\n" "$lt_cv_nm_interface" >&6; } 12032 12033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12034 printf %s "checking whether ln -s works... " >&6; } 12035 LN_S=$as_ln_s 12036 if test "$LN_S" = "ln -s"; then 12037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12038 printf "%s\n" "yes" >&6; } 12039 else 12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12041 printf "%s\n" "no, using $LN_S" >&6; } 12042 fi 12043 12044 # find the maximum length of command line arguments 12045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12046 printf %s "checking the maximum length of command line arguments... " >&6; } 12047 if test ${lt_cv_sys_max_cmd_len+y} 12048 then : 12049 printf %s "(cached) " >&6 12050 else $as_nop 12051 i=0 12052 teststring=ABCD 12053 12054 case $build_os in 12055 msdosdjgpp*) 12056 # On DJGPP, this test can blow up pretty badly due to problems in libc 12057 # (any single argument exceeding 2000 bytes causes a buffer overrun 12058 # during glob expansion). Even if it were fixed, the result of this 12059 # check would be larger than it should be. 12060 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12061 ;; 12062 12063 gnu*) 12064 # Under GNU Hurd, this test is not required because there is 12065 # no limit to the length of command line arguments. 12066 # Libtool will interpret -1 as no limit whatsoever 12067 lt_cv_sys_max_cmd_len=-1; 12068 ;; 12069 12070 cygwin* | mingw* | cegcc*) 12071 # On Win9x/ME, this test blows up -- it succeeds, but takes 12072 # about 5 minutes as the teststring grows exponentially. 12073 # Worse, since 9x/ME are not pre-emptively multitasking, 12074 # you end up with a "frozen" computer, even though with patience 12075 # the test eventually succeeds (with a max line length of 256k). 12076 # Instead, let's just punt: use the minimum linelength reported by 12077 # all of the supported platforms: 8192 (on NT/2K/XP). 12078 lt_cv_sys_max_cmd_len=8192; 12079 ;; 12080 12081 mint*) 12082 # On MiNT this can take a long time and run out of memory. 12083 lt_cv_sys_max_cmd_len=8192; 12084 ;; 12085 12086 amigaos*) 12087 # On AmigaOS with pdksh, this test takes hours, literally. 12088 # So we just punt and use a minimum line length of 8192. 12089 lt_cv_sys_max_cmd_len=8192; 12090 ;; 12091 12092 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12093 # This has been around since 386BSD, at least. Likely further. 12094 if test -x /sbin/sysctl; then 12095 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12096 elif test -x /usr/sbin/sysctl; then 12097 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12098 else 12099 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12100 fi 12101 # And add a safety zone 12102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12104 ;; 12105 12106 interix*) 12107 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12108 lt_cv_sys_max_cmd_len=196608 12109 ;; 12110 12111 os2*) 12112 # The test takes a long time on OS/2. 12113 lt_cv_sys_max_cmd_len=8192 12114 ;; 12115 12116 osf*) 12117 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12118 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12119 # nice to cause kernel panics so lets avoid the loop below. 12120 # First set a reasonable default. 12121 lt_cv_sys_max_cmd_len=16384 12122 # 12123 if test -x /sbin/sysconfig; then 12124 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12125 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12126 esac 12127 fi 12128 ;; 12129 sco3.2v5*) 12130 lt_cv_sys_max_cmd_len=102400 12131 ;; 12132 sysv5* | sco5v6* | sysv4.2uw2*) 12133 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12134 if test -n "$kargmax"; then 12135 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12136 else 12137 lt_cv_sys_max_cmd_len=32768 12138 fi 12139 ;; 12140 *) 12141 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12142 if test -n "$lt_cv_sys_max_cmd_len" && \ 12143 test undefined != "$lt_cv_sys_max_cmd_len"; then 12144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12146 else 12147 # Make teststring a little bigger before we do anything with it. 12148 # a 1K string should be a reasonable start. 12149 for i in 1 2 3 4 5 6 7 8; do 12150 teststring=$teststring$teststring 12151 done 12152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12153 # If test is not a shell built-in, we'll probably end up computing a 12154 # maximum length that is only half of the actual maximum length, but 12155 # we can't tell. 12156 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12157 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12158 test 17 != "$i" # 1/2 MB should be enough 12159 do 12160 i=`expr $i + 1` 12161 teststring=$teststring$teststring 12162 done 12163 # Only check the string length outside the loop. 12164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12165 teststring= 12166 # Add a significant safety factor because C++ compilers can tack on 12167 # massive amounts of additional arguments before passing them to the 12168 # linker. It appears as though 1/2 is a usable value. 12169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12170 fi 12171 ;; 12172 esac 12173 12174 fi 12175 12176 if test -n "$lt_cv_sys_max_cmd_len"; then 12177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12178 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12179 else 12180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12181 printf "%s\n" "none" >&6; } 12182 fi 12183 max_cmd_len=$lt_cv_sys_max_cmd_len 12184 12185 12186 12187 12188 12189 12190 : ${CP="cp -f"} 12191 : ${MV="mv -f"} 12192 : ${RM="rm -f"} 12193 12194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12195 lt_unset=unset 12196 else 12197 lt_unset=false 12198 fi 12199 12200 12201 12202 12203 12204 # test EBCDIC or ASCII 12205 case `echo X|tr X '\101'` in 12206 A) # ASCII based system 12207 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12208 lt_SP2NL='tr \040 \012' 12209 lt_NL2SP='tr \015\012 \040\040' 12210 ;; 12211 *) # EBCDIC based system 12212 lt_SP2NL='tr \100 \n' 12213 lt_NL2SP='tr \r\n \100\100' 12214 ;; 12215 esac 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12226 printf %s "checking how to convert $build file names to $host format... " >&6; } 12227 if test ${lt_cv_to_host_file_cmd+y} 12228 then : 12229 printf %s "(cached) " >&6 12230 else $as_nop 12231 case $host in 12232 *-*-mingw* ) 12233 case $build in 12234 *-*-mingw* ) # actually msys 12235 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12236 ;; 12237 *-*-cygwin* ) 12238 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12239 ;; 12240 * ) # otherwise, assume *nix 12241 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12242 ;; 12243 esac 12244 ;; 12245 *-*-cygwin* ) 12246 case $build in 12247 *-*-mingw* ) # actually msys 12248 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12249 ;; 12250 *-*-cygwin* ) 12251 lt_cv_to_host_file_cmd=func_convert_file_noop 12252 ;; 12253 * ) # otherwise, assume *nix 12254 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12255 ;; 12256 esac 12257 ;; 12258 * ) # unhandled hosts (and "normal" native builds) 12259 lt_cv_to_host_file_cmd=func_convert_file_noop 12260 ;; 12261 esac 12262 12263 fi 12264 12265 to_host_file_cmd=$lt_cv_to_host_file_cmd 12266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12267 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12268 12269 12270 12271 12272 12273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12274 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12275 if test ${lt_cv_to_tool_file_cmd+y} 12276 then : 12277 printf %s "(cached) " >&6 12278 else $as_nop 12279 #assume ordinary cross tools, or native build. 12280 lt_cv_to_tool_file_cmd=func_convert_file_noop 12281 case $host in 12282 *-*-mingw* ) 12283 case $build in 12284 *-*-mingw* ) # actually msys 12285 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12286 ;; 12287 esac 12288 ;; 12289 esac 12290 12291 fi 12292 12293 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12295 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12296 12297 12298 12299 12300 12301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12302 printf %s "checking for $LD option to reload object files... " >&6; } 12303 if test ${lt_cv_ld_reload_flag+y} 12304 then : 12305 printf %s "(cached) " >&6 12306 else $as_nop 12307 lt_cv_ld_reload_flag='-r' 12308 fi 12309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12310 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12311 reload_flag=$lt_cv_ld_reload_flag 12312 case $reload_flag in 12313 "" | " "*) ;; 12314 *) reload_flag=" $reload_flag" ;; 12315 esac 12316 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12317 case $host_os in 12318 cygwin* | mingw* | pw32* | cegcc*) 12319 if test yes != "$GCC"; then 12320 reload_cmds=false 12321 fi 12322 ;; 12323 darwin*) 12324 if test yes = "$GCC"; then 12325 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12326 else 12327 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12328 fi 12329 ;; 12330 esac 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 if test -n "$ac_tool_prefix"; then 12341 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12342 set dummy ${ac_tool_prefix}file; ac_word=$2 12343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12344 printf %s "checking for $ac_word... " >&6; } 12345 if test ${ac_cv_prog_FILECMD+y} 12346 then : 12347 printf %s "(cached) " >&6 12348 else $as_nop 12349 if test -n "$FILECMD"; then 12350 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12351 else 12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12353 for as_dir in $PATH 12354 do 12355 IFS=$as_save_IFS 12356 case $as_dir in #((( 12357 '') as_dir=./ ;; 12358 */) ;; 12359 *) as_dir=$as_dir/ ;; 12360 esac 12361 for ac_exec_ext in '' $ac_executable_extensions; do 12362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12363 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12365 break 2 12366 fi 12367 done 12368 done 12369 IFS=$as_save_IFS 12370 12371 fi 12372 fi 12373 FILECMD=$ac_cv_prog_FILECMD 12374 if test -n "$FILECMD"; then 12375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12376 printf "%s\n" "$FILECMD" >&6; } 12377 else 12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12379 printf "%s\n" "no" >&6; } 12380 fi 12381 12382 12383 fi 12384 if test -z "$ac_cv_prog_FILECMD"; then 12385 ac_ct_FILECMD=$FILECMD 12386 # Extract the first word of "file", so it can be a program name with args. 12387 set dummy file; ac_word=$2 12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12389 printf %s "checking for $ac_word... " >&6; } 12390 if test ${ac_cv_prog_ac_ct_FILECMD+y} 12391 then : 12392 printf %s "(cached) " >&6 12393 else $as_nop 12394 if test -n "$ac_ct_FILECMD"; then 12395 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12396 else 12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12398 for as_dir in $PATH 12399 do 12400 IFS=$as_save_IFS 12401 case $as_dir in #((( 12402 '') as_dir=./ ;; 12403 */) ;; 12404 *) as_dir=$as_dir/ ;; 12405 esac 12406 for ac_exec_ext in '' $ac_executable_extensions; do 12407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12408 ac_cv_prog_ac_ct_FILECMD="file" 12409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12410 break 2 12411 fi 12412 done 12413 done 12414 IFS=$as_save_IFS 12415 12416 fi 12417 fi 12418 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12419 if test -n "$ac_ct_FILECMD"; then 12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12421 printf "%s\n" "$ac_ct_FILECMD" >&6; } 12422 else 12423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12424 printf "%s\n" "no" >&6; } 12425 fi 12426 12427 if test "x$ac_ct_FILECMD" = x; then 12428 FILECMD=":" 12429 else 12430 case $cross_compiling:$ac_tool_warned in 12431 yes:) 12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12433 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12434 ac_tool_warned=yes ;; 12435 esac 12436 FILECMD=$ac_ct_FILECMD 12437 fi 12438 else 12439 FILECMD="$ac_cv_prog_FILECMD" 12440 fi 12441 12442 12443 12444 12445 12446 12447 12448 if test -n "$ac_tool_prefix"; then 12449 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12450 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12452 printf %s "checking for $ac_word... " >&6; } 12453 if test ${ac_cv_prog_OBJDUMP+y} 12454 then : 12455 printf %s "(cached) " >&6 12456 else $as_nop 12457 if test -n "$OBJDUMP"; then 12458 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12459 else 12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12461 for as_dir in $PATH 12462 do 12463 IFS=$as_save_IFS 12464 case $as_dir in #((( 12465 '') as_dir=./ ;; 12466 */) ;; 12467 *) as_dir=$as_dir/ ;; 12468 esac 12469 for ac_exec_ext in '' $ac_executable_extensions; do 12470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12471 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12473 break 2 12474 fi 12475 done 12476 done 12477 IFS=$as_save_IFS 12478 12479 fi 12480 fi 12481 OBJDUMP=$ac_cv_prog_OBJDUMP 12482 if test -n "$OBJDUMP"; then 12483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12484 printf "%s\n" "$OBJDUMP" >&6; } 12485 else 12486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12487 printf "%s\n" "no" >&6; } 12488 fi 12489 12490 12491 fi 12492 if test -z "$ac_cv_prog_OBJDUMP"; then 12493 ac_ct_OBJDUMP=$OBJDUMP 12494 # Extract the first word of "objdump", so it can be a program name with args. 12495 set dummy objdump; ac_word=$2 12496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12497 printf %s "checking for $ac_word... " >&6; } 12498 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12499 then : 12500 printf %s "(cached) " >&6 12501 else $as_nop 12502 if test -n "$ac_ct_OBJDUMP"; then 12503 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12504 else 12505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12506 for as_dir in $PATH 12507 do 12508 IFS=$as_save_IFS 12509 case $as_dir in #((( 12510 '') as_dir=./ ;; 12511 */) ;; 12512 *) as_dir=$as_dir/ ;; 12513 esac 12514 for ac_exec_ext in '' $ac_executable_extensions; do 12515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12516 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12518 break 2 12519 fi 12520 done 12521 done 12522 IFS=$as_save_IFS 12523 12524 fi 12525 fi 12526 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12527 if test -n "$ac_ct_OBJDUMP"; then 12528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12529 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12530 else 12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12532 printf "%s\n" "no" >&6; } 12533 fi 12534 12535 if test "x$ac_ct_OBJDUMP" = x; then 12536 OBJDUMP="false" 12537 else 12538 case $cross_compiling:$ac_tool_warned in 12539 yes:) 12540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12541 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12542 ac_tool_warned=yes ;; 12543 esac 12544 OBJDUMP=$ac_ct_OBJDUMP 12545 fi 12546 else 12547 OBJDUMP="$ac_cv_prog_OBJDUMP" 12548 fi 12549 12550 test -z "$OBJDUMP" && OBJDUMP=objdump 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12561 printf %s "checking how to recognize dependent libraries... " >&6; } 12562 if test ${lt_cv_deplibs_check_method+y} 12563 then : 12564 printf %s "(cached) " >&6 12565 else $as_nop 12566 lt_cv_file_magic_cmd='$MAGIC_CMD' 12567 lt_cv_file_magic_test_file= 12568 lt_cv_deplibs_check_method='unknown' 12569 # Need to set the preceding variable on all platforms that support 12570 # interlibrary dependencies. 12571 # 'none' -- dependencies not supported. 12572 # 'unknown' -- same as none, but documents that we really don't know. 12573 # 'pass_all' -- all dependencies passed with no checks. 12574 # 'test_compile' -- check by making test program. 12575 # 'file_magic [[regex]]' -- check by looking for files in library path 12576 # that responds to the $file_magic_cmd with a given extended regex. 12577 # If you have 'file' or equivalent on your system and you're not sure 12578 # whether 'pass_all' will *always* work, you probably want this one. 12579 12580 case $host_os in 12581 aix[4-9]*) 12582 lt_cv_deplibs_check_method=pass_all 12583 ;; 12584 12585 beos*) 12586 lt_cv_deplibs_check_method=pass_all 12587 ;; 12588 12589 bsdi[45]*) 12590 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12591 lt_cv_file_magic_cmd='$FILECMD -L' 12592 lt_cv_file_magic_test_file=/shlib/libc.so 12593 ;; 12594 12595 cygwin*) 12596 # func_win32_libid is a shell function defined in ltmain.sh 12597 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12598 lt_cv_file_magic_cmd='func_win32_libid' 12599 ;; 12600 12601 mingw* | pw32*) 12602 # Base MSYS/MinGW do not provide the 'file' command needed by 12603 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12604 # unless we find 'file', for example because we are cross-compiling. 12605 if ( file / ) >/dev/null 2>&1; then 12606 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12607 lt_cv_file_magic_cmd='func_win32_libid' 12608 else 12609 # Keep this pattern in sync with the one in func_win32_libid. 12610 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12611 lt_cv_file_magic_cmd='$OBJDUMP -f' 12612 fi 12613 ;; 12614 12615 cegcc*) 12616 # use the weaker test based on 'objdump'. See mingw*. 12617 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12618 lt_cv_file_magic_cmd='$OBJDUMP -f' 12619 ;; 12620 12621 darwin* | rhapsody*) 12622 lt_cv_deplibs_check_method=pass_all 12623 ;; 12624 12625 freebsd* | dragonfly* | midnightbsd*) 12626 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12627 case $host_cpu in 12628 i*86 ) 12629 # Not sure whether the presence of OpenBSD here was a mistake. 12630 # Let's accept both of them until this is cleared up. 12631 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12632 lt_cv_file_magic_cmd=$FILECMD 12633 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12634 ;; 12635 esac 12636 else 12637 lt_cv_deplibs_check_method=pass_all 12638 fi 12639 ;; 12640 12641 haiku*) 12642 lt_cv_deplibs_check_method=pass_all 12643 ;; 12644 12645 hpux10.20* | hpux11*) 12646 lt_cv_file_magic_cmd=$FILECMD 12647 case $host_cpu in 12648 ia64*) 12649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12650 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12651 ;; 12652 hppa*64*) 12653 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]' 12654 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12655 ;; 12656 *) 12657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12658 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12659 ;; 12660 esac 12661 ;; 12662 12663 interix[3-9]*) 12664 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12666 ;; 12667 12668 irix5* | irix6* | nonstopux*) 12669 case $LD in 12670 *-32|*"-32 ") libmagic=32-bit;; 12671 *-n32|*"-n32 ") libmagic=N32;; 12672 *-64|*"-64 ") libmagic=64-bit;; 12673 *) libmagic=never-match;; 12674 esac 12675 lt_cv_deplibs_check_method=pass_all 12676 ;; 12677 12678 # This must be glibc/ELF. 12679 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12680 lt_cv_deplibs_check_method=pass_all 12681 ;; 12682 12683 netbsd*) 12684 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12686 else 12687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12688 fi 12689 ;; 12690 12691 newos6*) 12692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12693 lt_cv_file_magic_cmd=$FILECMD 12694 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12695 ;; 12696 12697 *nto* | *qnx*) 12698 lt_cv_deplibs_check_method=pass_all 12699 ;; 12700 12701 openbsd* | bitrig*) 12702 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12704 else 12705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12706 fi 12707 ;; 12708 12709 osf3* | osf4* | osf5*) 12710 lt_cv_deplibs_check_method=pass_all 12711 ;; 12712 12713 rdos*) 12714 lt_cv_deplibs_check_method=pass_all 12715 ;; 12716 12717 solaris*) 12718 lt_cv_deplibs_check_method=pass_all 12719 ;; 12720 12721 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12722 lt_cv_deplibs_check_method=pass_all 12723 ;; 12724 12725 sysv4 | sysv4.3*) 12726 case $host_vendor in 12727 motorola) 12728 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]' 12729 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12730 ;; 12731 ncr) 12732 lt_cv_deplibs_check_method=pass_all 12733 ;; 12734 sequent) 12735 lt_cv_file_magic_cmd='/bin/file' 12736 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12737 ;; 12738 sni) 12739 lt_cv_file_magic_cmd='/bin/file' 12740 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12741 lt_cv_file_magic_test_file=/lib/libc.so 12742 ;; 12743 siemens) 12744 lt_cv_deplibs_check_method=pass_all 12745 ;; 12746 pc) 12747 lt_cv_deplibs_check_method=pass_all 12748 ;; 12749 esac 12750 ;; 12751 12752 tpf*) 12753 lt_cv_deplibs_check_method=pass_all 12754 ;; 12755 os2*) 12756 lt_cv_deplibs_check_method=pass_all 12757 ;; 12758 esac 12759 12760 fi 12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12762 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12763 12764 file_magic_glob= 12765 want_nocaseglob=no 12766 if test "$build" = "$host"; then 12767 case $host_os in 12768 mingw* | pw32*) 12769 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12770 want_nocaseglob=yes 12771 else 12772 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12773 fi 12774 ;; 12775 esac 12776 fi 12777 12778 file_magic_cmd=$lt_cv_file_magic_cmd 12779 deplibs_check_method=$lt_cv_deplibs_check_method 12780 test -z "$deplibs_check_method" && deplibs_check_method=unknown 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 if test -n "$ac_tool_prefix"; then 12804 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12805 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12807 printf %s "checking for $ac_word... " >&6; } 12808 if test ${ac_cv_prog_DLLTOOL+y} 12809 then : 12810 printf %s "(cached) " >&6 12811 else $as_nop 12812 if test -n "$DLLTOOL"; then 12813 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12814 else 12815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12816 for as_dir in $PATH 12817 do 12818 IFS=$as_save_IFS 12819 case $as_dir in #((( 12820 '') as_dir=./ ;; 12821 */) ;; 12822 *) as_dir=$as_dir/ ;; 12823 esac 12824 for ac_exec_ext in '' $ac_executable_extensions; do 12825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12826 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12828 break 2 12829 fi 12830 done 12831 done 12832 IFS=$as_save_IFS 12833 12834 fi 12835 fi 12836 DLLTOOL=$ac_cv_prog_DLLTOOL 12837 if test -n "$DLLTOOL"; then 12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12839 printf "%s\n" "$DLLTOOL" >&6; } 12840 else 12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12842 printf "%s\n" "no" >&6; } 12843 fi 12844 12845 12846 fi 12847 if test -z "$ac_cv_prog_DLLTOOL"; then 12848 ac_ct_DLLTOOL=$DLLTOOL 12849 # Extract the first word of "dlltool", so it can be a program name with args. 12850 set dummy dlltool; ac_word=$2 12851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12852 printf %s "checking for $ac_word... " >&6; } 12853 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12854 then : 12855 printf %s "(cached) " >&6 12856 else $as_nop 12857 if test -n "$ac_ct_DLLTOOL"; then 12858 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12859 else 12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12861 for as_dir in $PATH 12862 do 12863 IFS=$as_save_IFS 12864 case $as_dir in #((( 12865 '') as_dir=./ ;; 12866 */) ;; 12867 *) as_dir=$as_dir/ ;; 12868 esac 12869 for ac_exec_ext in '' $ac_executable_extensions; do 12870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12871 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12873 break 2 12874 fi 12875 done 12876 done 12877 IFS=$as_save_IFS 12878 12879 fi 12880 fi 12881 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12882 if test -n "$ac_ct_DLLTOOL"; then 12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12884 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12885 else 12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12887 printf "%s\n" "no" >&6; } 12888 fi 12889 12890 if test "x$ac_ct_DLLTOOL" = x; then 12891 DLLTOOL="false" 12892 else 12893 case $cross_compiling:$ac_tool_warned in 12894 yes:) 12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12896 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12897 ac_tool_warned=yes ;; 12898 esac 12899 DLLTOOL=$ac_ct_DLLTOOL 12900 fi 12901 else 12902 DLLTOOL="$ac_cv_prog_DLLTOOL" 12903 fi 12904 12905 test -z "$DLLTOOL" && DLLTOOL=dlltool 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12917 printf %s "checking how to associate runtime and link libraries... " >&6; } 12918 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12919 then : 12920 printf %s "(cached) " >&6 12921 else $as_nop 12922 lt_cv_sharedlib_from_linklib_cmd='unknown' 12923 12924 case $host_os in 12925 cygwin* | mingw* | pw32* | cegcc*) 12926 # two different shell functions defined in ltmain.sh; 12927 # decide which one to use based on capabilities of $DLLTOOL 12928 case `$DLLTOOL --help 2>&1` in 12929 *--identify-strict*) 12930 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12931 ;; 12932 *) 12933 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12934 ;; 12935 esac 12936 ;; 12937 *) 12938 # fallback: assume linklib IS sharedlib 12939 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12940 ;; 12941 esac 12942 12943 fi 12944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12945 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12946 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12947 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12948 12949 12950 12951 12952 12953 12954 12955 if test -n "$ac_tool_prefix"; then 12956 for ac_prog in ar 12957 do 12958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12961 printf %s "checking for $ac_word... " >&6; } 12962 if test ${ac_cv_prog_AR+y} 12963 then : 12964 printf %s "(cached) " >&6 12965 else $as_nop 12966 if test -n "$AR"; then 12967 ac_cv_prog_AR="$AR" # Let the user override the test. 12968 else 12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12970 for as_dir in $PATH 12971 do 12972 IFS=$as_save_IFS 12973 case $as_dir in #((( 12974 '') as_dir=./ ;; 12975 */) ;; 12976 *) as_dir=$as_dir/ ;; 12977 esac 12978 for ac_exec_ext in '' $ac_executable_extensions; do 12979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12980 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12982 break 2 12983 fi 12984 done 12985 done 12986 IFS=$as_save_IFS 12987 12988 fi 12989 fi 12990 AR=$ac_cv_prog_AR 12991 if test -n "$AR"; then 12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12993 printf "%s\n" "$AR" >&6; } 12994 else 12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12996 printf "%s\n" "no" >&6; } 12997 fi 12998 12999 13000 test -n "$AR" && break 13001 done 13002 fi 13003 if test -z "$AR"; then 13004 ac_ct_AR=$AR 13005 for ac_prog in ar 13006 do 13007 # Extract the first word of "$ac_prog", so it can be a program name with args. 13008 set dummy $ac_prog; ac_word=$2 13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13010 printf %s "checking for $ac_word... " >&6; } 13011 if test ${ac_cv_prog_ac_ct_AR+y} 13012 then : 13013 printf %s "(cached) " >&6 13014 else $as_nop 13015 if test -n "$ac_ct_AR"; then 13016 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13017 else 13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13019 for as_dir in $PATH 13020 do 13021 IFS=$as_save_IFS 13022 case $as_dir in #((( 13023 '') as_dir=./ ;; 13024 */) ;; 13025 *) as_dir=$as_dir/ ;; 13026 esac 13027 for ac_exec_ext in '' $ac_executable_extensions; do 13028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13029 ac_cv_prog_ac_ct_AR="$ac_prog" 13030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13031 break 2 13032 fi 13033 done 13034 done 13035 IFS=$as_save_IFS 13036 13037 fi 13038 fi 13039 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13040 if test -n "$ac_ct_AR"; then 13041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13042 printf "%s\n" "$ac_ct_AR" >&6; } 13043 else 13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13045 printf "%s\n" "no" >&6; } 13046 fi 13047 13048 13049 test -n "$ac_ct_AR" && break 13050 done 13051 13052 if test "x$ac_ct_AR" = x; then 13053 AR="false" 13054 else 13055 case $cross_compiling:$ac_tool_warned in 13056 yes:) 13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13058 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13059 ac_tool_warned=yes ;; 13060 esac 13061 AR=$ac_ct_AR 13062 fi 13063 fi 13064 13065 : ${AR=ar} 13066 13067 13068 13069 13070 13071 13072 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 13073 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13074 # higher priority because thats what people were doing historically (setting 13075 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13076 # variable obsoleted/removed. 13077 13078 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13079 lt_ar_flags=$AR_FLAGS 13080 13081 13082 13083 13084 13085 13086 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13087 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13088 13089 13090 13091 13092 13093 13094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13095 printf %s "checking for archiver @FILE support... " >&6; } 13096 if test ${lt_cv_ar_at_file+y} 13097 then : 13098 printf %s "(cached) " >&6 13099 else $as_nop 13100 lt_cv_ar_at_file=no 13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13102 /* end confdefs.h. */ 13103 13104 int 13105 main (void) 13106 { 13107 13108 ; 13109 return 0; 13110 } 13111 _ACEOF 13112 if ac_fn_c_try_compile "$LINENO" 13113 then : 13114 echo conftest.$ac_objext > conftest.lst 13115 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13117 (eval $lt_ar_try) 2>&5 13118 ac_status=$? 13119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13120 test $ac_status = 0; } 13121 if test 0 -eq "$ac_status"; then 13122 # Ensure the archiver fails upon bogus file names. 13123 rm -f conftest.$ac_objext libconftest.a 13124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13125 (eval $lt_ar_try) 2>&5 13126 ac_status=$? 13127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13128 test $ac_status = 0; } 13129 if test 0 -ne "$ac_status"; then 13130 lt_cv_ar_at_file=@ 13131 fi 13132 fi 13133 rm -f conftest.* libconftest.a 13134 13135 fi 13136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13137 13138 fi 13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13140 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13141 13142 if test no = "$lt_cv_ar_at_file"; then 13143 archiver_list_spec= 13144 else 13145 archiver_list_spec=$lt_cv_ar_at_file 13146 fi 13147 13148 13149 13150 13151 13152 13153 13154 if test -n "$ac_tool_prefix"; then 13155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13156 set dummy ${ac_tool_prefix}strip; ac_word=$2 13157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13158 printf %s "checking for $ac_word... " >&6; } 13159 if test ${ac_cv_prog_STRIP+y} 13160 then : 13161 printf %s "(cached) " >&6 13162 else $as_nop 13163 if test -n "$STRIP"; then 13164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13165 else 13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13167 for as_dir in $PATH 13168 do 13169 IFS=$as_save_IFS 13170 case $as_dir in #((( 13171 '') as_dir=./ ;; 13172 */) ;; 13173 *) as_dir=$as_dir/ ;; 13174 esac 13175 for ac_exec_ext in '' $ac_executable_extensions; do 13176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13177 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13179 break 2 13180 fi 13181 done 13182 done 13183 IFS=$as_save_IFS 13184 13185 fi 13186 fi 13187 STRIP=$ac_cv_prog_STRIP 13188 if test -n "$STRIP"; then 13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13190 printf "%s\n" "$STRIP" >&6; } 13191 else 13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13193 printf "%s\n" "no" >&6; } 13194 fi 13195 13196 13197 fi 13198 if test -z "$ac_cv_prog_STRIP"; then 13199 ac_ct_STRIP=$STRIP 13200 # Extract the first word of "strip", so it can be a program name with args. 13201 set dummy strip; ac_word=$2 13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13203 printf %s "checking for $ac_word... " >&6; } 13204 if test ${ac_cv_prog_ac_ct_STRIP+y} 13205 then : 13206 printf %s "(cached) " >&6 13207 else $as_nop 13208 if test -n "$ac_ct_STRIP"; then 13209 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13210 else 13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13212 for as_dir in $PATH 13213 do 13214 IFS=$as_save_IFS 13215 case $as_dir in #((( 13216 '') as_dir=./ ;; 13217 */) ;; 13218 *) as_dir=$as_dir/ ;; 13219 esac 13220 for ac_exec_ext in '' $ac_executable_extensions; do 13221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13222 ac_cv_prog_ac_ct_STRIP="strip" 13223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13224 break 2 13225 fi 13226 done 13227 done 13228 IFS=$as_save_IFS 13229 13230 fi 13231 fi 13232 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13233 if test -n "$ac_ct_STRIP"; then 13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13235 printf "%s\n" "$ac_ct_STRIP" >&6; } 13236 else 13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13238 printf "%s\n" "no" >&6; } 13239 fi 13240 13241 if test "x$ac_ct_STRIP" = x; then 13242 STRIP=":" 13243 else 13244 case $cross_compiling:$ac_tool_warned in 13245 yes:) 13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13247 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13248 ac_tool_warned=yes ;; 13249 esac 13250 STRIP=$ac_ct_STRIP 13251 fi 13252 else 13253 STRIP="$ac_cv_prog_STRIP" 13254 fi 13255 13256 test -z "$STRIP" && STRIP=: 13257 13258 13259 13260 13261 13262 13263 if test -n "$ac_tool_prefix"; then 13264 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13267 printf %s "checking for $ac_word... " >&6; } 13268 if test ${ac_cv_prog_RANLIB+y} 13269 then : 13270 printf %s "(cached) " >&6 13271 else $as_nop 13272 if test -n "$RANLIB"; then 13273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13274 else 13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13276 for as_dir in $PATH 13277 do 13278 IFS=$as_save_IFS 13279 case $as_dir in #((( 13280 '') as_dir=./ ;; 13281 */) ;; 13282 *) as_dir=$as_dir/ ;; 13283 esac 13284 for ac_exec_ext in '' $ac_executable_extensions; do 13285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13286 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13288 break 2 13289 fi 13290 done 13291 done 13292 IFS=$as_save_IFS 13293 13294 fi 13295 fi 13296 RANLIB=$ac_cv_prog_RANLIB 13297 if test -n "$RANLIB"; then 13298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13299 printf "%s\n" "$RANLIB" >&6; } 13300 else 13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13302 printf "%s\n" "no" >&6; } 13303 fi 13304 13305 13306 fi 13307 if test -z "$ac_cv_prog_RANLIB"; then 13308 ac_ct_RANLIB=$RANLIB 13309 # Extract the first word of "ranlib", so it can be a program name with args. 13310 set dummy ranlib; ac_word=$2 13311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13312 printf %s "checking for $ac_word... " >&6; } 13313 if test ${ac_cv_prog_ac_ct_RANLIB+y} 13314 then : 13315 printf %s "(cached) " >&6 13316 else $as_nop 13317 if test -n "$ac_ct_RANLIB"; then 13318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13319 else 13320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13321 for as_dir in $PATH 13322 do 13323 IFS=$as_save_IFS 13324 case $as_dir in #((( 13325 '') as_dir=./ ;; 13326 */) ;; 13327 *) as_dir=$as_dir/ ;; 13328 esac 13329 for ac_exec_ext in '' $ac_executable_extensions; do 13330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13331 ac_cv_prog_ac_ct_RANLIB="ranlib" 13332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13333 break 2 13334 fi 13335 done 13336 done 13337 IFS=$as_save_IFS 13338 13339 fi 13340 fi 13341 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13342 if test -n "$ac_ct_RANLIB"; then 13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13344 printf "%s\n" "$ac_ct_RANLIB" >&6; } 13345 else 13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13347 printf "%s\n" "no" >&6; } 13348 fi 13349 13350 if test "x$ac_ct_RANLIB" = x; then 13351 RANLIB=":" 13352 else 13353 case $cross_compiling:$ac_tool_warned in 13354 yes:) 13355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13356 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13357 ac_tool_warned=yes ;; 13358 esac 13359 RANLIB=$ac_ct_RANLIB 13360 fi 13361 else 13362 RANLIB="$ac_cv_prog_RANLIB" 13363 fi 13364 13365 test -z "$RANLIB" && RANLIB=: 13366 13367 13368 13369 13370 13371 13372 # Determine commands to create old-style static archives. 13373 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13374 old_postinstall_cmds='chmod 644 $oldlib' 13375 old_postuninstall_cmds= 13376 13377 if test -n "$RANLIB"; then 13378 case $host_os in 13379 bitrig* | openbsd*) 13380 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13381 ;; 13382 *) 13383 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13384 ;; 13385 esac 13386 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13387 fi 13388 13389 case $host_os in 13390 darwin*) 13391 lock_old_archive_extraction=yes ;; 13392 *) 13393 lock_old_archive_extraction=no ;; 13394 esac 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 # If no C compiler was specified, use CC. 13435 LTCC=${LTCC-"$CC"} 13436 13437 # If no C compiler flags were specified, use CFLAGS. 13438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13439 13440 # Allow CC to be a program name with arguments. 13441 compiler=$CC 13442 13443 13444 # Check for command to grab the raw symbol name followed by C symbol from nm. 13445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13446 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13447 if test ${lt_cv_sys_global_symbol_pipe+y} 13448 then : 13449 printf %s "(cached) " >&6 13450 else $as_nop 13451 13452 # These are sane defaults that work on at least a few old systems. 13453 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13454 13455 # Character class describing NM global symbol codes. 13456 symcode='[BCDEGRST]' 13457 13458 # Regexp to match symbols that can be accessed directly from C. 13459 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13460 13461 # Define system-specific variables. 13462 case $host_os in 13463 aix*) 13464 symcode='[BCDT]' 13465 ;; 13466 cygwin* | mingw* | pw32* | cegcc*) 13467 symcode='[ABCDGISTW]' 13468 ;; 13469 hpux*) 13470 if test ia64 = "$host_cpu"; then 13471 symcode='[ABCDEGRST]' 13472 fi 13473 ;; 13474 irix* | nonstopux*) 13475 symcode='[BCDEGRST]' 13476 ;; 13477 osf*) 13478 symcode='[BCDEGQRST]' 13479 ;; 13480 solaris*) 13481 symcode='[BDRT]' 13482 ;; 13483 sco3.2v5*) 13484 symcode='[DT]' 13485 ;; 13486 sysv4.2uw2*) 13487 symcode='[DT]' 13488 ;; 13489 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13490 symcode='[ABDT]' 13491 ;; 13492 sysv4) 13493 symcode='[DFNSTU]' 13494 ;; 13495 esac 13496 13497 # If we're using GNU nm, then use its standard symbol codes. 13498 case `$NM -V 2>&1` in 13499 *GNU* | *'with BFD'*) 13500 symcode='[ABCDGIRSTW]' ;; 13501 esac 13502 13503 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13504 # Gets list of data symbols to import. 13505 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13506 # Adjust the below global symbol transforms to fixup imported variables. 13507 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13508 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13509 lt_c_name_lib_hook="\ 13510 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13511 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13512 else 13513 # Disable hooks by default. 13514 lt_cv_sys_global_symbol_to_import= 13515 lt_cdecl_hook= 13516 lt_c_name_hook= 13517 lt_c_name_lib_hook= 13518 fi 13519 13520 # Transform an extracted symbol line into a proper C declaration. 13521 # Some systems (esp. on ia64) link data and code symbols differently, 13522 # so use this general approach. 13523 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13524 $lt_cdecl_hook\ 13525 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13526 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13527 13528 # Transform an extracted symbol line into symbol name and symbol address 13529 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13530 $lt_c_name_hook\ 13531 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13532 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13533 13534 # Transform an extracted symbol line into symbol name with lib prefix and 13535 # symbol address. 13536 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13537 $lt_c_name_lib_hook\ 13538 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13539 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13540 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13541 13542 # Handle CRLF in mingw tool chain 13543 opt_cr= 13544 case $build_os in 13545 mingw*) 13546 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13547 ;; 13548 esac 13549 13550 # Try without a prefix underscore, then with it. 13551 for ac_symprfx in "" "_"; do 13552 13553 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13554 symxfrm="\\1 $ac_symprfx\\2 \\2" 13555 13556 # Write the raw and C identifiers. 13557 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13558 # Fake it for dumpbin and say T for any non-static function, 13559 # D for any global variable and I for any imported variable. 13560 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13561 # which start with @ or ?. 13562 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13563 " {last_section=section; section=\$ 3};"\ 13564 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13565 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13566 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13567 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13568 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13569 " \$ 0!~/External *\|/{next};"\ 13570 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13571 " {if(hide[section]) next};"\ 13572 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13573 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13574 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13575 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13576 " ' prfx=^$ac_symprfx" 13577 else 13578 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13579 fi 13580 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13581 13582 # Check to see that the pipe works correctly. 13583 pipe_works=no 13584 13585 rm -f conftest* 13586 cat > conftest.$ac_ext <<_LT_EOF 13587 #ifdef __cplusplus 13588 extern "C" { 13589 #endif 13590 char nm_test_var; 13591 void nm_test_func(void); 13592 void nm_test_func(void){} 13593 #ifdef __cplusplus 13594 } 13595 #endif 13596 int main(){nm_test_var='a';nm_test_func();return(0);} 13597 _LT_EOF 13598 13599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13600 (eval $ac_compile) 2>&5 13601 ac_status=$? 13602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13603 test $ac_status = 0; }; then 13604 # Now try to grab the symbols. 13605 nlist=conftest.nm 13606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13607 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13608 ac_status=$? 13609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13610 test $ac_status = 0; } && test -s "$nlist"; then 13611 # Try sorting and uniquifying the output. 13612 if sort "$nlist" | uniq > "$nlist"T; then 13613 mv -f "$nlist"T "$nlist" 13614 else 13615 rm -f "$nlist"T 13616 fi 13617 13618 # Make sure that we snagged all the symbols we need. 13619 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13620 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13621 cat <<_LT_EOF > conftest.$ac_ext 13622 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13623 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13624 /* DATA imports from DLLs on WIN32 can't be const, because runtime 13625 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13626 # define LT_DLSYM_CONST 13627 #elif defined __osf__ 13628 /* This system does not cope well with relocations in const data. */ 13629 # define LT_DLSYM_CONST 13630 #else 13631 # define LT_DLSYM_CONST const 13632 #endif 13633 13634 #ifdef __cplusplus 13635 extern "C" { 13636 #endif 13637 13638 _LT_EOF 13639 # Now generate the symbol file. 13640 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13641 13642 cat <<_LT_EOF >> conftest.$ac_ext 13643 13644 /* The mapping between symbol names and symbols. */ 13645 LT_DLSYM_CONST struct { 13646 const char *name; 13647 void *address; 13648 } 13649 lt__PROGRAM__LTX_preloaded_symbols[] = 13650 { 13651 { "@PROGRAM@", (void *) 0 }, 13652 _LT_EOF 13653 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13654 cat <<\_LT_EOF >> conftest.$ac_ext 13655 {0, (void *) 0} 13656 }; 13657 13658 /* This works around a problem in FreeBSD linker */ 13659 #ifdef FREEBSD_WORKAROUND 13660 static const void *lt_preloaded_setup() { 13661 return lt__PROGRAM__LTX_preloaded_symbols; 13662 } 13663 #endif 13664 13665 #ifdef __cplusplus 13666 } 13667 #endif 13668 _LT_EOF 13669 # Now try linking the two files. 13670 mv conftest.$ac_objext conftstm.$ac_objext 13671 lt_globsym_save_LIBS=$LIBS 13672 lt_globsym_save_CFLAGS=$CFLAGS 13673 LIBS=conftstm.$ac_objext 13674 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13676 (eval $ac_link) 2>&5 13677 ac_status=$? 13678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13679 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13680 pipe_works=yes 13681 fi 13682 LIBS=$lt_globsym_save_LIBS 13683 CFLAGS=$lt_globsym_save_CFLAGS 13684 else 13685 echo "cannot find nm_test_func in $nlist" >&5 13686 fi 13687 else 13688 echo "cannot find nm_test_var in $nlist" >&5 13689 fi 13690 else 13691 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13692 fi 13693 else 13694 echo "$progname: failed program was:" >&5 13695 cat conftest.$ac_ext >&5 13696 fi 13697 rm -rf conftest* conftst* 13698 13699 # Do not use the global_symbol_pipe unless it works. 13700 if test yes = "$pipe_works"; then 13701 break 13702 else 13703 lt_cv_sys_global_symbol_pipe= 13704 fi 13705 done 13706 13707 fi 13708 13709 if test -z "$lt_cv_sys_global_symbol_pipe"; then 13710 lt_cv_sys_global_symbol_to_cdecl= 13711 fi 13712 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13714 printf "%s\n" "failed" >&6; } 13715 else 13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13717 printf "%s\n" "ok" >&6; } 13718 fi 13719 13720 # Response file support. 13721 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13722 nm_file_list_spec='@' 13723 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13724 nm_file_list_spec='@' 13725 fi 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13764 printf %s "checking for sysroot... " >&6; } 13765 13766 # Check whether --with-sysroot was given. 13767 if test ${with_sysroot+y} 13768 then : 13769 withval=$with_sysroot; 13770 else $as_nop 13771 with_sysroot=no 13772 fi 13773 13774 13775 lt_sysroot= 13776 case $with_sysroot in #( 13777 yes) 13778 if test yes = "$GCC"; then 13779 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13780 fi 13781 ;; #( 13782 /*) 13783 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13784 ;; #( 13785 no|'') 13786 ;; #( 13787 *) 13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13789 printf "%s\n" "$with_sysroot" >&6; } 13790 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13791 ;; 13792 esac 13793 13794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13795 printf "%s\n" "${lt_sysroot:-no}" >&6; } 13796 13797 13798 13799 13800 13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13802 printf %s "checking for a working dd... " >&6; } 13803 if test ${ac_cv_path_lt_DD+y} 13804 then : 13805 printf %s "(cached) " >&6 13806 else $as_nop 13807 printf 0123456789abcdef0123456789abcdef >conftest.i 13808 cat conftest.i conftest.i >conftest2.i 13809 : ${lt_DD:=$DD} 13810 if test -z "$lt_DD"; then 13811 ac_path_lt_DD_found=false 13812 # Loop through the user's path and test for each of PROGNAME-LIST 13813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13814 for as_dir in $PATH 13815 do 13816 IFS=$as_save_IFS 13817 case $as_dir in #((( 13818 '') as_dir=./ ;; 13819 */) ;; 13820 *) as_dir=$as_dir/ ;; 13821 esac 13822 for ac_prog in dd 13823 do 13824 for ac_exec_ext in '' $ac_executable_extensions; do 13825 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13826 as_fn_executable_p "$ac_path_lt_DD" || continue 13827 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13828 cmp -s conftest.i conftest.out \ 13829 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13830 fi 13831 $ac_path_lt_DD_found && break 3 13832 done 13833 done 13834 done 13835 IFS=$as_save_IFS 13836 if test -z "$ac_cv_path_lt_DD"; then 13837 : 13838 fi 13839 else 13840 ac_cv_path_lt_DD=$lt_DD 13841 fi 13842 13843 rm -f conftest.i conftest2.i conftest.out 13844 fi 13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13846 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13847 13848 13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13850 printf %s "checking how to truncate binary pipes... " >&6; } 13851 if test ${lt_cv_truncate_bin+y} 13852 then : 13853 printf %s "(cached) " >&6 13854 else $as_nop 13855 printf 0123456789abcdef0123456789abcdef >conftest.i 13856 cat conftest.i conftest.i >conftest2.i 13857 lt_cv_truncate_bin= 13858 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13859 cmp -s conftest.i conftest.out \ 13860 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13861 fi 13862 rm -f conftest.i conftest2.i conftest.out 13863 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13864 fi 13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13866 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13867 13868 13869 13870 13871 13872 13873 13874 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13875 func_cc_basename () 13876 { 13877 for cc_temp in $*""; do 13878 case $cc_temp in 13879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13881 \-*) ;; 13882 *) break;; 13883 esac 13884 done 13885 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13886 } 13887 13888 # Check whether --enable-libtool-lock was given. 13889 if test ${enable_libtool_lock+y} 13890 then : 13891 enableval=$enable_libtool_lock; 13892 fi 13893 13894 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13895 13896 # Some flags need to be propagated to the compiler or linker for good 13897 # libtool support. 13898 case $host in 13899 ia64-*-hpux*) 13900 # Find out what ABI is being produced by ac_compile, and set mode 13901 # options accordingly. 13902 echo 'int i;' > conftest.$ac_ext 13903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13904 (eval $ac_compile) 2>&5 13905 ac_status=$? 13906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13907 test $ac_status = 0; }; then 13908 case `$FILECMD conftest.$ac_objext` in 13909 *ELF-32*) 13910 HPUX_IA64_MODE=32 13911 ;; 13912 *ELF-64*) 13913 HPUX_IA64_MODE=64 13914 ;; 13915 esac 13916 fi 13917 rm -rf conftest* 13918 ;; 13919 *-*-irix6*) 13920 # Find out what ABI is being produced by ac_compile, and set linker 13921 # options accordingly. 13922 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13924 (eval $ac_compile) 2>&5 13925 ac_status=$? 13926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13927 test $ac_status = 0; }; then 13928 if test yes = "$lt_cv_prog_gnu_ld"; then 13929 case `$FILECMD conftest.$ac_objext` in 13930 *32-bit*) 13931 LD="${LD-ld} -melf32bsmip" 13932 ;; 13933 *N32*) 13934 LD="${LD-ld} -melf32bmipn32" 13935 ;; 13936 *64-bit*) 13937 LD="${LD-ld} -melf64bmip" 13938 ;; 13939 esac 13940 else 13941 case `$FILECMD conftest.$ac_objext` in 13942 *32-bit*) 13943 LD="${LD-ld} -32" 13944 ;; 13945 *N32*) 13946 LD="${LD-ld} -n32" 13947 ;; 13948 *64-bit*) 13949 LD="${LD-ld} -64" 13950 ;; 13951 esac 13952 fi 13953 fi 13954 rm -rf conftest* 13955 ;; 13956 13957 mips64*-*linux*) 13958 # Find out what ABI is being produced by ac_compile, and set linker 13959 # options accordingly. 13960 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13962 (eval $ac_compile) 2>&5 13963 ac_status=$? 13964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13965 test $ac_status = 0; }; then 13966 emul=elf 13967 case `$FILECMD conftest.$ac_objext` in 13968 *32-bit*) 13969 emul="${emul}32" 13970 ;; 13971 *64-bit*) 13972 emul="${emul}64" 13973 ;; 13974 esac 13975 case `$FILECMD conftest.$ac_objext` in 13976 *MSB*) 13977 emul="${emul}btsmip" 13978 ;; 13979 *LSB*) 13980 emul="${emul}ltsmip" 13981 ;; 13982 esac 13983 case `$FILECMD conftest.$ac_objext` in 13984 *N32*) 13985 emul="${emul}n32" 13986 ;; 13987 esac 13988 LD="${LD-ld} -m $emul" 13989 fi 13990 rm -rf conftest* 13991 ;; 13992 13993 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13994 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13995 # Find out what ABI is being produced by ac_compile, and set linker 13996 # options accordingly. Note that the listed cases only cover the 13997 # situations where additional linker options are needed (such as when 13998 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13999 # vice versa); the common cases where no linker options are needed do 14000 # not appear in the list. 14001 echo 'int i;' > conftest.$ac_ext 14002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14003 (eval $ac_compile) 2>&5 14004 ac_status=$? 14005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14006 test $ac_status = 0; }; then 14007 case `$FILECMD conftest.o` in 14008 *32-bit*) 14009 case $host in 14010 x86_64-*kfreebsd*-gnu) 14011 LD="${LD-ld} -m elf_i386_fbsd" 14012 ;; 14013 x86_64-*linux*) 14014 case `$FILECMD conftest.o` in 14015 *x86-64*) 14016 LD="${LD-ld} -m elf32_x86_64" 14017 ;; 14018 *) 14019 LD="${LD-ld} -m elf_i386" 14020 ;; 14021 esac 14022 ;; 14023 powerpc64le-*linux*) 14024 LD="${LD-ld} -m elf32lppclinux" 14025 ;; 14026 powerpc64-*linux*) 14027 LD="${LD-ld} -m elf32ppclinux" 14028 ;; 14029 s390x-*linux*) 14030 LD="${LD-ld} -m elf_s390" 14031 ;; 14032 sparc64-*linux*) 14033 LD="${LD-ld} -m elf32_sparc" 14034 ;; 14035 esac 14036 ;; 14037 *64-bit*) 14038 case $host in 14039 x86_64-*kfreebsd*-gnu) 14040 LD="${LD-ld} -m elf_x86_64_fbsd" 14041 ;; 14042 x86_64-*linux*) 14043 LD="${LD-ld} -m elf_x86_64" 14044 ;; 14045 powerpcle-*linux*) 14046 LD="${LD-ld} -m elf64lppc" 14047 ;; 14048 powerpc-*linux*) 14049 LD="${LD-ld} -m elf64ppc" 14050 ;; 14051 s390*-*linux*|s390*-*tpf*) 14052 LD="${LD-ld} -m elf64_s390" 14053 ;; 14054 sparc*-*linux*) 14055 LD="${LD-ld} -m elf64_sparc" 14056 ;; 14057 esac 14058 ;; 14059 esac 14060 fi 14061 rm -rf conftest* 14062 ;; 14063 14064 *-*-sco3.2v5*) 14065 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14066 SAVE_CFLAGS=$CFLAGS 14067 CFLAGS="$CFLAGS -belf" 14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14069 printf %s "checking whether the C compiler needs -belf... " >&6; } 14070 if test ${lt_cv_cc_needs_belf+y} 14071 then : 14072 printf %s "(cached) " >&6 14073 else $as_nop 14074 ac_ext=c 14075 ac_cpp='$CPP $CPPFLAGS' 14076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14078 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14079 14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14081 /* end confdefs.h. */ 14082 14083 int 14084 main (void) 14085 { 14086 14087 ; 14088 return 0; 14089 } 14090 _ACEOF 14091 if ac_fn_c_try_link "$LINENO" 14092 then : 14093 lt_cv_cc_needs_belf=yes 14094 else $as_nop 14095 lt_cv_cc_needs_belf=no 14096 fi 14097 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14098 conftest$ac_exeext conftest.$ac_ext 14099 ac_ext=c 14100 ac_cpp='$CPP $CPPFLAGS' 14101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14103 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14104 14105 fi 14106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14107 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14108 if test yes != "$lt_cv_cc_needs_belf"; then 14109 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14110 CFLAGS=$SAVE_CFLAGS 14111 fi 14112 ;; 14113 *-*solaris*) 14114 # Find out what ABI is being produced by ac_compile, and set linker 14115 # options accordingly. 14116 echo 'int i;' > conftest.$ac_ext 14117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14118 (eval $ac_compile) 2>&5 14119 ac_status=$? 14120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14121 test $ac_status = 0; }; then 14122 case `$FILECMD conftest.o` in 14123 *64-bit*) 14124 case $lt_cv_prog_gnu_ld in 14125 yes*) 14126 case $host in 14127 i?86-*-solaris*|x86_64-*-solaris*) 14128 LD="${LD-ld} -m elf_x86_64" 14129 ;; 14130 sparc*-*-solaris*) 14131 LD="${LD-ld} -m elf64_sparc" 14132 ;; 14133 esac 14134 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14135 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14136 LD=${LD-ld}_sol2 14137 fi 14138 ;; 14139 *) 14140 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14141 LD="${LD-ld} -64" 14142 fi 14143 ;; 14144 esac 14145 ;; 14146 esac 14147 fi 14148 rm -rf conftest* 14149 ;; 14150 esac 14151 14152 need_locks=$enable_libtool_lock 14153 14154 if test -n "$ac_tool_prefix"; then 14155 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14156 set dummy ${ac_tool_prefix}mt; ac_word=$2 14157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14158 printf %s "checking for $ac_word... " >&6; } 14159 if test ${ac_cv_prog_MANIFEST_TOOL+y} 14160 then : 14161 printf %s "(cached) " >&6 14162 else $as_nop 14163 if test -n "$MANIFEST_TOOL"; then 14164 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14165 else 14166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14167 for as_dir in $PATH 14168 do 14169 IFS=$as_save_IFS 14170 case $as_dir in #((( 14171 '') as_dir=./ ;; 14172 */) ;; 14173 *) as_dir=$as_dir/ ;; 14174 esac 14175 for ac_exec_ext in '' $ac_executable_extensions; do 14176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14177 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14179 break 2 14180 fi 14181 done 14182 done 14183 IFS=$as_save_IFS 14184 14185 fi 14186 fi 14187 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14188 if test -n "$MANIFEST_TOOL"; then 14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14190 printf "%s\n" "$MANIFEST_TOOL" >&6; } 14191 else 14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14193 printf "%s\n" "no" >&6; } 14194 fi 14195 14196 14197 fi 14198 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14199 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14200 # Extract the first word of "mt", so it can be a program name with args. 14201 set dummy mt; ac_word=$2 14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14203 printf %s "checking for $ac_word... " >&6; } 14204 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14205 then : 14206 printf %s "(cached) " >&6 14207 else $as_nop 14208 if test -n "$ac_ct_MANIFEST_TOOL"; then 14209 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14210 else 14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14212 for as_dir in $PATH 14213 do 14214 IFS=$as_save_IFS 14215 case $as_dir in #((( 14216 '') as_dir=./ ;; 14217 */) ;; 14218 *) as_dir=$as_dir/ ;; 14219 esac 14220 for ac_exec_ext in '' $ac_executable_extensions; do 14221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14222 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14224 break 2 14225 fi 14226 done 14227 done 14228 IFS=$as_save_IFS 14229 14230 fi 14231 fi 14232 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14233 if test -n "$ac_ct_MANIFEST_TOOL"; then 14234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14235 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14236 else 14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14238 printf "%s\n" "no" >&6; } 14239 fi 14240 14241 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14242 MANIFEST_TOOL=":" 14243 else 14244 case $cross_compiling:$ac_tool_warned in 14245 yes:) 14246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14247 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14248 ac_tool_warned=yes ;; 14249 esac 14250 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14251 fi 14252 else 14253 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14254 fi 14255 14256 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14258 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14259 if test ${lt_cv_path_mainfest_tool+y} 14260 then : 14261 printf %s "(cached) " >&6 14262 else $as_nop 14263 lt_cv_path_mainfest_tool=no 14264 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14265 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14266 cat conftest.err >&5 14267 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14268 lt_cv_path_mainfest_tool=yes 14269 fi 14270 rm -f conftest* 14271 fi 14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14273 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14274 if test yes != "$lt_cv_path_mainfest_tool"; then 14275 MANIFEST_TOOL=: 14276 fi 14277 14278 14279 14280 14281 14282 14283 case $host_os in 14284 rhapsody* | darwin*) 14285 if test -n "$ac_tool_prefix"; then 14286 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14287 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14289 printf %s "checking for $ac_word... " >&6; } 14290 if test ${ac_cv_prog_DSYMUTIL+y} 14291 then : 14292 printf %s "(cached) " >&6 14293 else $as_nop 14294 if test -n "$DSYMUTIL"; then 14295 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14296 else 14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14298 for as_dir in $PATH 14299 do 14300 IFS=$as_save_IFS 14301 case $as_dir in #((( 14302 '') as_dir=./ ;; 14303 */) ;; 14304 *) as_dir=$as_dir/ ;; 14305 esac 14306 for ac_exec_ext in '' $ac_executable_extensions; do 14307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14308 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14310 break 2 14311 fi 14312 done 14313 done 14314 IFS=$as_save_IFS 14315 14316 fi 14317 fi 14318 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14319 if test -n "$DSYMUTIL"; then 14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14321 printf "%s\n" "$DSYMUTIL" >&6; } 14322 else 14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14324 printf "%s\n" "no" >&6; } 14325 fi 14326 14327 14328 fi 14329 if test -z "$ac_cv_prog_DSYMUTIL"; then 14330 ac_ct_DSYMUTIL=$DSYMUTIL 14331 # Extract the first word of "dsymutil", so it can be a program name with args. 14332 set dummy dsymutil; ac_word=$2 14333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14334 printf %s "checking for $ac_word... " >&6; } 14335 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14336 then : 14337 printf %s "(cached) " >&6 14338 else $as_nop 14339 if test -n "$ac_ct_DSYMUTIL"; then 14340 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14341 else 14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14343 for as_dir in $PATH 14344 do 14345 IFS=$as_save_IFS 14346 case $as_dir in #((( 14347 '') as_dir=./ ;; 14348 */) ;; 14349 *) as_dir=$as_dir/ ;; 14350 esac 14351 for ac_exec_ext in '' $ac_executable_extensions; do 14352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14353 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14355 break 2 14356 fi 14357 done 14358 done 14359 IFS=$as_save_IFS 14360 14361 fi 14362 fi 14363 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14364 if test -n "$ac_ct_DSYMUTIL"; then 14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14366 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14367 else 14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14369 printf "%s\n" "no" >&6; } 14370 fi 14371 14372 if test "x$ac_ct_DSYMUTIL" = x; then 14373 DSYMUTIL=":" 14374 else 14375 case $cross_compiling:$ac_tool_warned in 14376 yes:) 14377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14378 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14379 ac_tool_warned=yes ;; 14380 esac 14381 DSYMUTIL=$ac_ct_DSYMUTIL 14382 fi 14383 else 14384 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14385 fi 14386 14387 if test -n "$ac_tool_prefix"; then 14388 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14389 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14391 printf %s "checking for $ac_word... " >&6; } 14392 if test ${ac_cv_prog_NMEDIT+y} 14393 then : 14394 printf %s "(cached) " >&6 14395 else $as_nop 14396 if test -n "$NMEDIT"; then 14397 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14398 else 14399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14400 for as_dir in $PATH 14401 do 14402 IFS=$as_save_IFS 14403 case $as_dir in #((( 14404 '') as_dir=./ ;; 14405 */) ;; 14406 *) as_dir=$as_dir/ ;; 14407 esac 14408 for ac_exec_ext in '' $ac_executable_extensions; do 14409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14410 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14412 break 2 14413 fi 14414 done 14415 done 14416 IFS=$as_save_IFS 14417 14418 fi 14419 fi 14420 NMEDIT=$ac_cv_prog_NMEDIT 14421 if test -n "$NMEDIT"; then 14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14423 printf "%s\n" "$NMEDIT" >&6; } 14424 else 14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14426 printf "%s\n" "no" >&6; } 14427 fi 14428 14429 14430 fi 14431 if test -z "$ac_cv_prog_NMEDIT"; then 14432 ac_ct_NMEDIT=$NMEDIT 14433 # Extract the first word of "nmedit", so it can be a program name with args. 14434 set dummy nmedit; ac_word=$2 14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14436 printf %s "checking for $ac_word... " >&6; } 14437 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14438 then : 14439 printf %s "(cached) " >&6 14440 else $as_nop 14441 if test -n "$ac_ct_NMEDIT"; then 14442 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14443 else 14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14445 for as_dir in $PATH 14446 do 14447 IFS=$as_save_IFS 14448 case $as_dir in #((( 14449 '') as_dir=./ ;; 14450 */) ;; 14451 *) as_dir=$as_dir/ ;; 14452 esac 14453 for ac_exec_ext in '' $ac_executable_extensions; do 14454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14455 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14457 break 2 14458 fi 14459 done 14460 done 14461 IFS=$as_save_IFS 14462 14463 fi 14464 fi 14465 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14466 if test -n "$ac_ct_NMEDIT"; then 14467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14468 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14469 else 14470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14471 printf "%s\n" "no" >&6; } 14472 fi 14473 14474 if test "x$ac_ct_NMEDIT" = x; then 14475 NMEDIT=":" 14476 else 14477 case $cross_compiling:$ac_tool_warned in 14478 yes:) 14479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14480 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14481 ac_tool_warned=yes ;; 14482 esac 14483 NMEDIT=$ac_ct_NMEDIT 14484 fi 14485 else 14486 NMEDIT="$ac_cv_prog_NMEDIT" 14487 fi 14488 14489 if test -n "$ac_tool_prefix"; then 14490 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14491 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14493 printf %s "checking for $ac_word... " >&6; } 14494 if test ${ac_cv_prog_LIPO+y} 14495 then : 14496 printf %s "(cached) " >&6 14497 else $as_nop 14498 if test -n "$LIPO"; then 14499 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14500 else 14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14502 for as_dir in $PATH 14503 do 14504 IFS=$as_save_IFS 14505 case $as_dir in #((( 14506 '') as_dir=./ ;; 14507 */) ;; 14508 *) as_dir=$as_dir/ ;; 14509 esac 14510 for ac_exec_ext in '' $ac_executable_extensions; do 14511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14512 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14514 break 2 14515 fi 14516 done 14517 done 14518 IFS=$as_save_IFS 14519 14520 fi 14521 fi 14522 LIPO=$ac_cv_prog_LIPO 14523 if test -n "$LIPO"; then 14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14525 printf "%s\n" "$LIPO" >&6; } 14526 else 14527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14528 printf "%s\n" "no" >&6; } 14529 fi 14530 14531 14532 fi 14533 if test -z "$ac_cv_prog_LIPO"; then 14534 ac_ct_LIPO=$LIPO 14535 # Extract the first word of "lipo", so it can be a program name with args. 14536 set dummy lipo; ac_word=$2 14537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14538 printf %s "checking for $ac_word... " >&6; } 14539 if test ${ac_cv_prog_ac_ct_LIPO+y} 14540 then : 14541 printf %s "(cached) " >&6 14542 else $as_nop 14543 if test -n "$ac_ct_LIPO"; then 14544 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14545 else 14546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14547 for as_dir in $PATH 14548 do 14549 IFS=$as_save_IFS 14550 case $as_dir in #((( 14551 '') as_dir=./ ;; 14552 */) ;; 14553 *) as_dir=$as_dir/ ;; 14554 esac 14555 for ac_exec_ext in '' $ac_executable_extensions; do 14556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14557 ac_cv_prog_ac_ct_LIPO="lipo" 14558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14559 break 2 14560 fi 14561 done 14562 done 14563 IFS=$as_save_IFS 14564 14565 fi 14566 fi 14567 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14568 if test -n "$ac_ct_LIPO"; then 14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14570 printf "%s\n" "$ac_ct_LIPO" >&6; } 14571 else 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14573 printf "%s\n" "no" >&6; } 14574 fi 14575 14576 if test "x$ac_ct_LIPO" = x; then 14577 LIPO=":" 14578 else 14579 case $cross_compiling:$ac_tool_warned in 14580 yes:) 14581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14582 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14583 ac_tool_warned=yes ;; 14584 esac 14585 LIPO=$ac_ct_LIPO 14586 fi 14587 else 14588 LIPO="$ac_cv_prog_LIPO" 14589 fi 14590 14591 if test -n "$ac_tool_prefix"; then 14592 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14593 set dummy ${ac_tool_prefix}otool; ac_word=$2 14594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14595 printf %s "checking for $ac_word... " >&6; } 14596 if test ${ac_cv_prog_OTOOL+y} 14597 then : 14598 printf %s "(cached) " >&6 14599 else $as_nop 14600 if test -n "$OTOOL"; then 14601 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14602 else 14603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14604 for as_dir in $PATH 14605 do 14606 IFS=$as_save_IFS 14607 case $as_dir in #((( 14608 '') as_dir=./ ;; 14609 */) ;; 14610 *) as_dir=$as_dir/ ;; 14611 esac 14612 for ac_exec_ext in '' $ac_executable_extensions; do 14613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14614 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14616 break 2 14617 fi 14618 done 14619 done 14620 IFS=$as_save_IFS 14621 14622 fi 14623 fi 14624 OTOOL=$ac_cv_prog_OTOOL 14625 if test -n "$OTOOL"; then 14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14627 printf "%s\n" "$OTOOL" >&6; } 14628 else 14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14630 printf "%s\n" "no" >&6; } 14631 fi 14632 14633 14634 fi 14635 if test -z "$ac_cv_prog_OTOOL"; then 14636 ac_ct_OTOOL=$OTOOL 14637 # Extract the first word of "otool", so it can be a program name with args. 14638 set dummy otool; ac_word=$2 14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14640 printf %s "checking for $ac_word... " >&6; } 14641 if test ${ac_cv_prog_ac_ct_OTOOL+y} 14642 then : 14643 printf %s "(cached) " >&6 14644 else $as_nop 14645 if test -n "$ac_ct_OTOOL"; then 14646 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14647 else 14648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14649 for as_dir in $PATH 14650 do 14651 IFS=$as_save_IFS 14652 case $as_dir in #((( 14653 '') as_dir=./ ;; 14654 */) ;; 14655 *) as_dir=$as_dir/ ;; 14656 esac 14657 for ac_exec_ext in '' $ac_executable_extensions; do 14658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14659 ac_cv_prog_ac_ct_OTOOL="otool" 14660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14661 break 2 14662 fi 14663 done 14664 done 14665 IFS=$as_save_IFS 14666 14667 fi 14668 fi 14669 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14670 if test -n "$ac_ct_OTOOL"; then 14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14672 printf "%s\n" "$ac_ct_OTOOL" >&6; } 14673 else 14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14675 printf "%s\n" "no" >&6; } 14676 fi 14677 14678 if test "x$ac_ct_OTOOL" = x; then 14679 OTOOL=":" 14680 else 14681 case $cross_compiling:$ac_tool_warned in 14682 yes:) 14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14684 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14685 ac_tool_warned=yes ;; 14686 esac 14687 OTOOL=$ac_ct_OTOOL 14688 fi 14689 else 14690 OTOOL="$ac_cv_prog_OTOOL" 14691 fi 14692 14693 if test -n "$ac_tool_prefix"; then 14694 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14695 set dummy ${ac_tool_prefix}otool64; ac_word=$2 14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14697 printf %s "checking for $ac_word... " >&6; } 14698 if test ${ac_cv_prog_OTOOL64+y} 14699 then : 14700 printf %s "(cached) " >&6 14701 else $as_nop 14702 if test -n "$OTOOL64"; then 14703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14704 else 14705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14706 for as_dir in $PATH 14707 do 14708 IFS=$as_save_IFS 14709 case $as_dir in #((( 14710 '') as_dir=./ ;; 14711 */) ;; 14712 *) as_dir=$as_dir/ ;; 14713 esac 14714 for ac_exec_ext in '' $ac_executable_extensions; do 14715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14716 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14718 break 2 14719 fi 14720 done 14721 done 14722 IFS=$as_save_IFS 14723 14724 fi 14725 fi 14726 OTOOL64=$ac_cv_prog_OTOOL64 14727 if test -n "$OTOOL64"; then 14728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14729 printf "%s\n" "$OTOOL64" >&6; } 14730 else 14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14732 printf "%s\n" "no" >&6; } 14733 fi 14734 14735 14736 fi 14737 if test -z "$ac_cv_prog_OTOOL64"; then 14738 ac_ct_OTOOL64=$OTOOL64 14739 # Extract the first word of "otool64", so it can be a program name with args. 14740 set dummy otool64; ac_word=$2 14741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14742 printf %s "checking for $ac_word... " >&6; } 14743 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14744 then : 14745 printf %s "(cached) " >&6 14746 else $as_nop 14747 if test -n "$ac_ct_OTOOL64"; then 14748 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14749 else 14750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14751 for as_dir in $PATH 14752 do 14753 IFS=$as_save_IFS 14754 case $as_dir in #((( 14755 '') as_dir=./ ;; 14756 */) ;; 14757 *) as_dir=$as_dir/ ;; 14758 esac 14759 for ac_exec_ext in '' $ac_executable_extensions; do 14760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14761 ac_cv_prog_ac_ct_OTOOL64="otool64" 14762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14763 break 2 14764 fi 14765 done 14766 done 14767 IFS=$as_save_IFS 14768 14769 fi 14770 fi 14771 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14772 if test -n "$ac_ct_OTOOL64"; then 14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14774 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14775 else 14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14777 printf "%s\n" "no" >&6; } 14778 fi 14779 14780 if test "x$ac_ct_OTOOL64" = x; then 14781 OTOOL64=":" 14782 else 14783 case $cross_compiling:$ac_tool_warned in 14784 yes:) 14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14786 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14787 ac_tool_warned=yes ;; 14788 esac 14789 OTOOL64=$ac_ct_OTOOL64 14790 fi 14791 else 14792 OTOOL64="$ac_cv_prog_OTOOL64" 14793 fi 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14822 printf %s "checking for -single_module linker flag... " >&6; } 14823 if test ${lt_cv_apple_cc_single_mod+y} 14824 then : 14825 printf %s "(cached) " >&6 14826 else $as_nop 14827 lt_cv_apple_cc_single_mod=no 14828 if test -z "$LT_MULTI_MODULE"; then 14829 # By default we will add the -single_module flag. You can override 14830 # by either setting the environment variable LT_MULTI_MODULE 14831 # non-empty at configure time, or by adding -multi_module to the 14832 # link flags. 14833 rm -rf libconftest.dylib* 14834 echo "int foo(void){return 1;}" > conftest.c 14835 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14836 -dynamiclib -Wl,-single_module conftest.c" >&5 14837 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14838 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14839 _lt_result=$? 14840 # If there is a non-empty error log, and "single_module" 14841 # appears in it, assume the flag caused a linker warning 14842 if test -s conftest.err && $GREP single_module conftest.err; then 14843 cat conftest.err >&5 14844 # Otherwise, if the output was created with a 0 exit code from 14845 # the compiler, it worked. 14846 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14847 lt_cv_apple_cc_single_mod=yes 14848 else 14849 cat conftest.err >&5 14850 fi 14851 rm -rf libconftest.dylib* 14852 rm -f conftest.* 14853 fi 14854 fi 14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14856 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14857 14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14859 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14860 if test ${lt_cv_ld_exported_symbols_list+y} 14861 then : 14862 printf %s "(cached) " >&6 14863 else $as_nop 14864 lt_cv_ld_exported_symbols_list=no 14865 save_LDFLAGS=$LDFLAGS 14866 echo "_main" > conftest.sym 14867 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14869 /* end confdefs.h. */ 14870 14871 int 14872 main (void) 14873 { 14874 14875 ; 14876 return 0; 14877 } 14878 _ACEOF 14879 if ac_fn_c_try_link "$LINENO" 14880 then : 14881 lt_cv_ld_exported_symbols_list=yes 14882 else $as_nop 14883 lt_cv_ld_exported_symbols_list=no 14884 fi 14885 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14886 conftest$ac_exeext conftest.$ac_ext 14887 LDFLAGS=$save_LDFLAGS 14888 14889 fi 14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14891 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14892 14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14894 printf %s "checking for -force_load linker flag... " >&6; } 14895 if test ${lt_cv_ld_force_load+y} 14896 then : 14897 printf %s "(cached) " >&6 14898 else $as_nop 14899 lt_cv_ld_force_load=no 14900 cat > conftest.c << _LT_EOF 14901 int forced_loaded() { return 2;} 14902 _LT_EOF 14903 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14904 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14905 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14906 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14907 echo "$RANLIB libconftest.a" >&5 14908 $RANLIB libconftest.a 2>&5 14909 cat > conftest.c << _LT_EOF 14910 int main() { return 0;} 14911 _LT_EOF 14912 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14913 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14914 _lt_result=$? 14915 if test -s conftest.err && $GREP force_load conftest.err; then 14916 cat conftest.err >&5 14917 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14918 lt_cv_ld_force_load=yes 14919 else 14920 cat conftest.err >&5 14921 fi 14922 rm -f conftest.err libconftest.a conftest conftest.c 14923 rm -rf conftest.dSYM 14924 14925 fi 14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14927 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14928 case $host_os in 14929 rhapsody* | darwin1.[012]) 14930 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14931 darwin1.*) 14932 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14933 darwin*) 14934 case $MACOSX_DEPLOYMENT_TARGET,$host in 14935 10.[012],*|,*powerpc*-darwin[5-8]*) 14936 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14937 *) 14938 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14939 esac 14940 ;; 14941 esac 14942 if test yes = "$lt_cv_apple_cc_single_mod"; then 14943 _lt_dar_single_mod='$single_module' 14944 fi 14945 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14946 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14947 else 14948 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14949 fi 14950 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14951 _lt_dsymutil='~$DSYMUTIL $lib || :' 14952 else 14953 _lt_dsymutil= 14954 fi 14955 ;; 14956 esac 14957 14958 # func_munge_path_list VARIABLE PATH 14959 # ----------------------------------- 14960 # VARIABLE is name of variable containing _space_ separated list of 14961 # directories to be munged by the contents of PATH, which is string 14962 # having a format: 14963 # "DIR[:DIR]:" 14964 # string "DIR[ DIR]" will be prepended to VARIABLE 14965 # ":DIR[:DIR]" 14966 # string "DIR[ DIR]" will be appended to VARIABLE 14967 # "DIRP[:DIRP]::[DIRA:]DIRA" 14968 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14969 # "DIRA[ DIRA]" will be appended to VARIABLE 14970 # "DIR[:DIR]" 14971 # VARIABLE will be replaced by "DIR[ DIR]" 14972 func_munge_path_list () 14973 { 14974 case x$2 in 14975 x) 14976 ;; 14977 *:) 14978 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14979 ;; 14980 x:*) 14981 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14982 ;; 14983 *::*) 14984 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14985 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14986 ;; 14987 *) 14988 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14989 ;; 14990 esac 14991 } 14992 14993 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14994 " 14995 if test "x$ac_cv_header_dlfcn_h" = xyes 14996 then : 14997 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 14998 14999 fi 15000 15001 15002 15003 15004 15005 # Set options 15006 15007 15008 15009 enable_dlopen=no 15010 15011 15012 enable_win32_dll=no 15013 15014 15015 # Check whether --enable-shared was given. 15016 if test ${enable_shared+y} 15017 then : 15018 enableval=$enable_shared; p=${PACKAGE-default} 15019 case $enableval in 15020 yes) enable_shared=yes ;; 15021 no) enable_shared=no ;; 15022 *) 15023 enable_shared=no 15024 # Look at the argument we got. We use all the common list separators. 15025 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15026 for pkg in $enableval; do 15027 IFS=$lt_save_ifs 15028 if test "X$pkg" = "X$p"; then 15029 enable_shared=yes 15030 fi 15031 done 15032 IFS=$lt_save_ifs 15033 ;; 15034 esac 15035 else $as_nop 15036 enable_shared=yes 15037 fi 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 # Check whether --with-pic was given. 15050 if test ${with_pic+y} 15051 then : 15052 withval=$with_pic; lt_p=${PACKAGE-default} 15053 case $withval in 15054 yes|no) pic_mode=$withval ;; 15055 *) 15056 pic_mode=default 15057 # Look at the argument we got. We use all the common list separators. 15058 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15059 for lt_pkg in $withval; do 15060 IFS=$lt_save_ifs 15061 if test "X$lt_pkg" = "X$lt_p"; then 15062 pic_mode=yes 15063 fi 15064 done 15065 IFS=$lt_save_ifs 15066 ;; 15067 esac 15068 else $as_nop 15069 pic_mode=default 15070 fi 15071 15072 15073 15074 15075 15076 15077 15078 15079 # Check whether --enable-fast-install was given. 15080 if test ${enable_fast_install+y} 15081 then : 15082 enableval=$enable_fast_install; p=${PACKAGE-default} 15083 case $enableval in 15084 yes) enable_fast_install=yes ;; 15085 no) enable_fast_install=no ;; 15086 *) 15087 enable_fast_install=no 15088 # Look at the argument we got. We use all the common list separators. 15089 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15090 for pkg in $enableval; do 15091 IFS=$lt_save_ifs 15092 if test "X$pkg" = "X$p"; then 15093 enable_fast_install=yes 15094 fi 15095 done 15096 IFS=$lt_save_ifs 15097 ;; 15098 esac 15099 else $as_nop 15100 enable_fast_install=yes 15101 fi 15102 15103 15104 15105 15106 15107 15108 15109 15110 shared_archive_member_spec= 15111 case $host,$enable_shared in 15112 power*-*-aix[5-9]*,yes) 15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15114 printf %s "checking which variant of shared library versioning to provide... " >&6; } 15115 15116 # Check whether --with-aix-soname was given. 15117 if test ${with_aix_soname+y} 15118 then : 15119 withval=$with_aix_soname; case $withval in 15120 aix|svr4|both) 15121 ;; 15122 *) 15123 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15124 ;; 15125 esac 15126 lt_cv_with_aix_soname=$with_aix_soname 15127 else $as_nop 15128 if test ${lt_cv_with_aix_soname+y} 15129 then : 15130 printf %s "(cached) " >&6 15131 else $as_nop 15132 lt_cv_with_aix_soname=aix 15133 fi 15134 15135 with_aix_soname=$lt_cv_with_aix_soname 15136 fi 15137 15138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15139 printf "%s\n" "$with_aix_soname" >&6; } 15140 if test aix != "$with_aix_soname"; then 15141 # For the AIX way of multilib, we name the shared archive member 15142 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15143 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15144 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15145 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15146 if test 64 = "${OBJECT_MODE-32}"; then 15147 shared_archive_member_spec=shr_64 15148 else 15149 shared_archive_member_spec=shr 15150 fi 15151 fi 15152 ;; 15153 *) 15154 with_aix_soname=aix 15155 ;; 15156 esac 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 # This can be used to rebuild libtool when needed 15168 LIBTOOL_DEPS=$ltmain 15169 15170 # Always use our own libtool. 15171 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 test -z "$LN_S" && LN_S="ln -s" 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 if test -n "${ZSH_VERSION+set}"; then 15218 setopt NO_GLOB_SUBST 15219 fi 15220 15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15222 printf %s "checking for objdir... " >&6; } 15223 if test ${lt_cv_objdir+y} 15224 then : 15225 printf %s "(cached) " >&6 15226 else $as_nop 15227 rm -f .libs 2>/dev/null 15228 mkdir .libs 2>/dev/null 15229 if test -d .libs; then 15230 lt_cv_objdir=.libs 15231 else 15232 # MS-DOS does not allow filenames that begin with a dot. 15233 lt_cv_objdir=_libs 15234 fi 15235 rmdir .libs 2>/dev/null 15236 fi 15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15238 printf "%s\n" "$lt_cv_objdir" >&6; } 15239 objdir=$lt_cv_objdir 15240 15241 15242 15243 15244 15245 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15246 15247 15248 15249 15250 case $host_os in 15251 aix3*) 15252 # AIX sometimes has problems with the GCC collect2 program. For some 15253 # reason, if we set the COLLECT_NAMES environment variable, the problems 15254 # vanish in a puff of smoke. 15255 if test set != "${COLLECT_NAMES+set}"; then 15256 COLLECT_NAMES= 15257 export COLLECT_NAMES 15258 fi 15259 ;; 15260 esac 15261 15262 # Global variables: 15263 ofile=libtool 15264 can_build_shared=yes 15265 15266 # All known linkers require a '.a' archive for static linking (except MSVC and 15267 # ICC, which need '.lib'). 15268 libext=a 15269 15270 with_gnu_ld=$lt_cv_prog_gnu_ld 15271 15272 old_CC=$CC 15273 old_CFLAGS=$CFLAGS 15274 15275 # Set sane defaults for various variables 15276 test -z "$CC" && CC=cc 15277 test -z "$LTCC" && LTCC=$CC 15278 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15279 test -z "$LD" && LD=ld 15280 test -z "$ac_objext" && ac_objext=o 15281 15282 func_cc_basename $compiler 15283 cc_basename=$func_cc_basename_result 15284 15285 15286 # Only perform the check for file, if the check method requires it 15287 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15288 case $deplibs_check_method in 15289 file_magic*) 15290 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15292 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15293 if test ${lt_cv_path_MAGIC_CMD+y} 15294 then : 15295 printf %s "(cached) " >&6 15296 else $as_nop 15297 case $MAGIC_CMD in 15298 [\\/*] | ?:[\\/]*) 15299 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15300 ;; 15301 *) 15302 lt_save_MAGIC_CMD=$MAGIC_CMD 15303 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15304 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15305 for ac_dir in $ac_dummy; do 15306 IFS=$lt_save_ifs 15307 test -z "$ac_dir" && ac_dir=. 15308 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15309 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15310 if test -n "$file_magic_test_file"; then 15311 case $deplibs_check_method in 15312 "file_magic "*) 15313 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15314 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15315 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15316 $EGREP "$file_magic_regex" > /dev/null; then 15317 : 15318 else 15319 cat <<_LT_EOF 1>&2 15320 15321 *** Warning: the command libtool uses to detect shared libraries, 15322 *** $file_magic_cmd, produces output that libtool cannot recognize. 15323 *** The result is that libtool may fail to recognize shared libraries 15324 *** as such. This will affect the creation of libtool libraries that 15325 *** depend on shared libraries, but programs linked with such libtool 15326 *** libraries will work regardless of this problem. Nevertheless, you 15327 *** may want to report the problem to your system manager and/or to 15328 *** bug-libtool@gnu.org 15329 15330 _LT_EOF 15331 fi ;; 15332 esac 15333 fi 15334 break 15335 fi 15336 done 15337 IFS=$lt_save_ifs 15338 MAGIC_CMD=$lt_save_MAGIC_CMD 15339 ;; 15340 esac 15341 fi 15342 15343 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15344 if test -n "$MAGIC_CMD"; then 15345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15346 printf "%s\n" "$MAGIC_CMD" >&6; } 15347 else 15348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15349 printf "%s\n" "no" >&6; } 15350 fi 15351 15352 15353 15354 15355 15356 if test -z "$lt_cv_path_MAGIC_CMD"; then 15357 if test -n "$ac_tool_prefix"; then 15358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15359 printf %s "checking for file... " >&6; } 15360 if test ${lt_cv_path_MAGIC_CMD+y} 15361 then : 15362 printf %s "(cached) " >&6 15363 else $as_nop 15364 case $MAGIC_CMD in 15365 [\\/*] | ?:[\\/]*) 15366 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15367 ;; 15368 *) 15369 lt_save_MAGIC_CMD=$MAGIC_CMD 15370 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15371 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15372 for ac_dir in $ac_dummy; do 15373 IFS=$lt_save_ifs 15374 test -z "$ac_dir" && ac_dir=. 15375 if test -f "$ac_dir/file"; then 15376 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15377 if test -n "$file_magic_test_file"; then 15378 case $deplibs_check_method in 15379 "file_magic "*) 15380 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15381 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15382 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15383 $EGREP "$file_magic_regex" > /dev/null; then 15384 : 15385 else 15386 cat <<_LT_EOF 1>&2 15387 15388 *** Warning: the command libtool uses to detect shared libraries, 15389 *** $file_magic_cmd, produces output that libtool cannot recognize. 15390 *** The result is that libtool may fail to recognize shared libraries 15391 *** as such. This will affect the creation of libtool libraries that 15392 *** depend on shared libraries, but programs linked with such libtool 15393 *** libraries will work regardless of this problem. Nevertheless, you 15394 *** may want to report the problem to your system manager and/or to 15395 *** bug-libtool@gnu.org 15396 15397 _LT_EOF 15398 fi ;; 15399 esac 15400 fi 15401 break 15402 fi 15403 done 15404 IFS=$lt_save_ifs 15405 MAGIC_CMD=$lt_save_MAGIC_CMD 15406 ;; 15407 esac 15408 fi 15409 15410 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15411 if test -n "$MAGIC_CMD"; then 15412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15413 printf "%s\n" "$MAGIC_CMD" >&6; } 15414 else 15415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15416 printf "%s\n" "no" >&6; } 15417 fi 15418 15419 15420 else 15421 MAGIC_CMD=: 15422 fi 15423 fi 15424 15425 fi 15426 ;; 15427 esac 15428 15429 # Use C for the default configuration in the libtool script 15430 15431 lt_save_CC=$CC 15432 ac_ext=c 15433 ac_cpp='$CPP $CPPFLAGS' 15434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15436 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15437 15438 15439 # Source file extension for C test sources. 15440 ac_ext=c 15441 15442 # Object file extension for compiled C test sources. 15443 objext=o 15444 objext=$objext 15445 15446 # Code to be used in simple compile tests 15447 lt_simple_compile_test_code="int some_variable = 0;" 15448 15449 # Code to be used in simple link tests 15450 lt_simple_link_test_code='int main(){return(0);}' 15451 15452 15453 15454 15455 15456 15457 15458 # If no C compiler was specified, use CC. 15459 LTCC=${LTCC-"$CC"} 15460 15461 # If no C compiler flags were specified, use CFLAGS. 15462 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15463 15464 # Allow CC to be a program name with arguments. 15465 compiler=$CC 15466 15467 # Save the default compiler, since it gets overwritten when the other 15468 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15469 compiler_DEFAULT=$CC 15470 15471 # save warnings/boilerplate of simple test code 15472 ac_outfile=conftest.$ac_objext 15473 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15474 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15475 _lt_compiler_boilerplate=`cat conftest.err` 15476 $RM conftest* 15477 15478 ac_outfile=conftest.$ac_objext 15479 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15480 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15481 _lt_linker_boilerplate=`cat conftest.err` 15482 $RM -r conftest* 15483 15484 15485 if test -n "$compiler"; then 15486 15487 lt_prog_compiler_no_builtin_flag= 15488 15489 if test yes = "$GCC"; then 15490 case $cc_basename in 15491 nvcc*) 15492 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15493 *) 15494 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15495 esac 15496 15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15498 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15499 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15500 then : 15501 printf %s "(cached) " >&6 15502 else $as_nop 15503 lt_cv_prog_compiler_rtti_exceptions=no 15504 ac_outfile=conftest.$ac_objext 15505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15506 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15507 # Insert the option either (1) after the last *FLAGS variable, or 15508 # (2) before a word containing "conftest.", or (3) at the end. 15509 # Note that $ac_compile itself does not contain backslashes and begins 15510 # with a dollar sign (not a hyphen), so the echo should work correctly. 15511 # The option is referenced via a variable to avoid confusing sed. 15512 lt_compile=`echo "$ac_compile" | $SED \ 15513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15515 -e 's:$: $lt_compiler_flag:'` 15516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15517 (eval "$lt_compile" 2>conftest.err) 15518 ac_status=$? 15519 cat conftest.err >&5 15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15521 if (exit $ac_status) && test -s "$ac_outfile"; then 15522 # The compiler can only warn and ignore the option if not recognized 15523 # So say no if there are warnings other than the usual output. 15524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15527 lt_cv_prog_compiler_rtti_exceptions=yes 15528 fi 15529 fi 15530 $RM conftest* 15531 15532 fi 15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15534 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15535 15536 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15537 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15538 else 15539 : 15540 fi 15541 15542 fi 15543 15544 15545 15546 15547 15548 15549 lt_prog_compiler_wl= 15550 lt_prog_compiler_pic= 15551 lt_prog_compiler_static= 15552 15553 15554 if test yes = "$GCC"; then 15555 lt_prog_compiler_wl='-Wl,' 15556 lt_prog_compiler_static='-static' 15557 15558 case $host_os in 15559 aix*) 15560 # All AIX code is PIC. 15561 if test ia64 = "$host_cpu"; then 15562 # AIX 5 now supports IA64 processor 15563 lt_prog_compiler_static='-Bstatic' 15564 fi 15565 lt_prog_compiler_pic='-fPIC' 15566 ;; 15567 15568 amigaos*) 15569 case $host_cpu in 15570 powerpc) 15571 # see comment about AmigaOS4 .so support 15572 lt_prog_compiler_pic='-fPIC' 15573 ;; 15574 m68k) 15575 # FIXME: we need at least 68020 code to build shared libraries, but 15576 # adding the '-m68020' flag to GCC prevents building anything better, 15577 # like '-m68040'. 15578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15579 ;; 15580 esac 15581 ;; 15582 15583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15584 # PIC is the default for these OSes. 15585 ;; 15586 15587 mingw* | cygwin* | pw32* | os2* | cegcc*) 15588 # This hack is so that the source file can tell whether it is being 15589 # built for inclusion in a dll (and should export symbols for example). 15590 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15591 # (--disable-auto-import) libraries 15592 lt_prog_compiler_pic='-DDLL_EXPORT' 15593 case $host_os in 15594 os2*) 15595 lt_prog_compiler_static='$wl-static' 15596 ;; 15597 esac 15598 ;; 15599 15600 darwin* | rhapsody*) 15601 # PIC is the default on this platform 15602 # Common symbols not allowed in MH_DYLIB files 15603 lt_prog_compiler_pic='-fno-common' 15604 ;; 15605 15606 haiku*) 15607 # PIC is the default for Haiku. 15608 # The "-static" flag exists, but is broken. 15609 lt_prog_compiler_static= 15610 ;; 15611 15612 hpux*) 15613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15615 # sets the default TLS model and affects inlining. 15616 case $host_cpu in 15617 hppa*64*) 15618 # +Z the default 15619 ;; 15620 *) 15621 lt_prog_compiler_pic='-fPIC' 15622 ;; 15623 esac 15624 ;; 15625 15626 interix[3-9]*) 15627 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15628 # Instead, we relocate shared libraries at runtime. 15629 ;; 15630 15631 msdosdjgpp*) 15632 # Just because we use GCC doesn't mean we suddenly get shared libraries 15633 # on systems that don't support them. 15634 lt_prog_compiler_can_build_shared=no 15635 enable_shared=no 15636 ;; 15637 15638 *nto* | *qnx*) 15639 # QNX uses GNU C++, but need to define -shared option too, otherwise 15640 # it will coredump. 15641 lt_prog_compiler_pic='-fPIC -shared' 15642 ;; 15643 15644 sysv4*MP*) 15645 if test -d /usr/nec; then 15646 lt_prog_compiler_pic=-Kconform_pic 15647 fi 15648 ;; 15649 15650 *) 15651 lt_prog_compiler_pic='-fPIC' 15652 ;; 15653 esac 15654 15655 case $cc_basename in 15656 nvcc*) # Cuda Compiler Driver 2.2 15657 lt_prog_compiler_wl='-Xlinker ' 15658 if test -n "$lt_prog_compiler_pic"; then 15659 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15660 fi 15661 ;; 15662 esac 15663 else 15664 # PORTME Check for flag to pass linker flags through the system compiler. 15665 case $host_os in 15666 aix*) 15667 lt_prog_compiler_wl='-Wl,' 15668 if test ia64 = "$host_cpu"; then 15669 # AIX 5 now supports IA64 processor 15670 lt_prog_compiler_static='-Bstatic' 15671 else 15672 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15673 fi 15674 ;; 15675 15676 darwin* | rhapsody*) 15677 # PIC is the default on this platform 15678 # Common symbols not allowed in MH_DYLIB files 15679 lt_prog_compiler_pic='-fno-common' 15680 case $cc_basename in 15681 nagfor*) 15682 # NAG Fortran compiler 15683 lt_prog_compiler_wl='-Wl,-Wl,,' 15684 lt_prog_compiler_pic='-PIC' 15685 lt_prog_compiler_static='-Bstatic' 15686 ;; 15687 esac 15688 ;; 15689 15690 mingw* | cygwin* | pw32* | os2* | cegcc*) 15691 # This hack is so that the source file can tell whether it is being 15692 # built for inclusion in a dll (and should export symbols for example). 15693 lt_prog_compiler_pic='-DDLL_EXPORT' 15694 case $host_os in 15695 os2*) 15696 lt_prog_compiler_static='$wl-static' 15697 ;; 15698 esac 15699 ;; 15700 15701 hpux9* | hpux10* | hpux11*) 15702 lt_prog_compiler_wl='-Wl,' 15703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15704 # not for PA HP-UX. 15705 case $host_cpu in 15706 hppa*64*|ia64*) 15707 # +Z the default 15708 ;; 15709 *) 15710 lt_prog_compiler_pic='+Z' 15711 ;; 15712 esac 15713 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15714 lt_prog_compiler_static='$wl-a ${wl}archive' 15715 ;; 15716 15717 irix5* | irix6* | nonstopux*) 15718 lt_prog_compiler_wl='-Wl,' 15719 # PIC (with -KPIC) is the default. 15720 lt_prog_compiler_static='-non_shared' 15721 ;; 15722 15723 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15724 case $cc_basename in 15725 # old Intel for x86_64, which still supported -KPIC. 15726 ecc*) 15727 lt_prog_compiler_wl='-Wl,' 15728 lt_prog_compiler_pic='-KPIC' 15729 lt_prog_compiler_static='-static' 15730 ;; 15731 # icc used to be incompatible with GCC. 15732 # ICC 10 doesn't accept -KPIC any more. 15733 icc* | ifort*) 15734 lt_prog_compiler_wl='-Wl,' 15735 lt_prog_compiler_pic='-fPIC' 15736 lt_prog_compiler_static='-static' 15737 ;; 15738 # Lahey Fortran 8.1. 15739 lf95*) 15740 lt_prog_compiler_wl='-Wl,' 15741 lt_prog_compiler_pic='--shared' 15742 lt_prog_compiler_static='--static' 15743 ;; 15744 nagfor*) 15745 # NAG Fortran compiler 15746 lt_prog_compiler_wl='-Wl,-Wl,,' 15747 lt_prog_compiler_pic='-PIC' 15748 lt_prog_compiler_static='-Bstatic' 15749 ;; 15750 tcc*) 15751 # Fabrice Bellard et al's Tiny C Compiler 15752 lt_prog_compiler_wl='-Wl,' 15753 lt_prog_compiler_pic='-fPIC' 15754 lt_prog_compiler_static='-static' 15755 ;; 15756 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15757 # Portland Group compilers (*not* the Pentium gcc compiler, 15758 # which looks to be a dead project) 15759 lt_prog_compiler_wl='-Wl,' 15760 lt_prog_compiler_pic='-fpic' 15761 lt_prog_compiler_static='-Bstatic' 15762 ;; 15763 ccc*) 15764 lt_prog_compiler_wl='-Wl,' 15765 # All Alpha code is PIC. 15766 lt_prog_compiler_static='-non_shared' 15767 ;; 15768 xl* | bgxl* | bgf* | mpixl*) 15769 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15770 lt_prog_compiler_wl='-Wl,' 15771 lt_prog_compiler_pic='-qpic' 15772 lt_prog_compiler_static='-qstaticlink' 15773 ;; 15774 *) 15775 case `$CC -V 2>&1 | $SED 5q` in 15776 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15777 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15778 lt_prog_compiler_pic='-KPIC' 15779 lt_prog_compiler_static='-Bstatic' 15780 lt_prog_compiler_wl='' 15781 ;; 15782 *Sun\ F* | *Sun*Fortran*) 15783 lt_prog_compiler_pic='-KPIC' 15784 lt_prog_compiler_static='-Bstatic' 15785 lt_prog_compiler_wl='-Qoption ld ' 15786 ;; 15787 *Sun\ C*) 15788 # Sun C 5.9 15789 lt_prog_compiler_pic='-KPIC' 15790 lt_prog_compiler_static='-Bstatic' 15791 lt_prog_compiler_wl='-Wl,' 15792 ;; 15793 *Intel*\ [CF]*Compiler*) 15794 lt_prog_compiler_wl='-Wl,' 15795 lt_prog_compiler_pic='-fPIC' 15796 lt_prog_compiler_static='-static' 15797 ;; 15798 *Portland\ Group*) 15799 lt_prog_compiler_wl='-Wl,' 15800 lt_prog_compiler_pic='-fpic' 15801 lt_prog_compiler_static='-Bstatic' 15802 ;; 15803 esac 15804 ;; 15805 esac 15806 ;; 15807 15808 newsos6) 15809 lt_prog_compiler_pic='-KPIC' 15810 lt_prog_compiler_static='-Bstatic' 15811 ;; 15812 15813 *nto* | *qnx*) 15814 # QNX uses GNU C++, but need to define -shared option too, otherwise 15815 # it will coredump. 15816 lt_prog_compiler_pic='-fPIC -shared' 15817 ;; 15818 15819 osf3* | osf4* | osf5*) 15820 lt_prog_compiler_wl='-Wl,' 15821 # All OSF/1 code is PIC. 15822 lt_prog_compiler_static='-non_shared' 15823 ;; 15824 15825 rdos*) 15826 lt_prog_compiler_static='-non_shared' 15827 ;; 15828 15829 solaris*) 15830 lt_prog_compiler_pic='-KPIC' 15831 lt_prog_compiler_static='-Bstatic' 15832 case $cc_basename in 15833 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15834 lt_prog_compiler_wl='-Qoption ld ';; 15835 *) 15836 lt_prog_compiler_wl='-Wl,';; 15837 esac 15838 ;; 15839 15840 sunos4*) 15841 lt_prog_compiler_wl='-Qoption ld ' 15842 lt_prog_compiler_pic='-PIC' 15843 lt_prog_compiler_static='-Bstatic' 15844 ;; 15845 15846 sysv4 | sysv4.2uw2* | sysv4.3*) 15847 lt_prog_compiler_wl='-Wl,' 15848 lt_prog_compiler_pic='-KPIC' 15849 lt_prog_compiler_static='-Bstatic' 15850 ;; 15851 15852 sysv4*MP*) 15853 if test -d /usr/nec; then 15854 lt_prog_compiler_pic='-Kconform_pic' 15855 lt_prog_compiler_static='-Bstatic' 15856 fi 15857 ;; 15858 15859 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15860 lt_prog_compiler_wl='-Wl,' 15861 lt_prog_compiler_pic='-KPIC' 15862 lt_prog_compiler_static='-Bstatic' 15863 ;; 15864 15865 unicos*) 15866 lt_prog_compiler_wl='-Wl,' 15867 lt_prog_compiler_can_build_shared=no 15868 ;; 15869 15870 uts4*) 15871 lt_prog_compiler_pic='-pic' 15872 lt_prog_compiler_static='-Bstatic' 15873 ;; 15874 15875 *) 15876 lt_prog_compiler_can_build_shared=no 15877 ;; 15878 esac 15879 fi 15880 15881 case $host_os in 15882 # For platforms that do not support PIC, -DPIC is meaningless: 15883 *djgpp*) 15884 lt_prog_compiler_pic= 15885 ;; 15886 *) 15887 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15888 ;; 15889 esac 15890 15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15892 printf %s "checking for $compiler option to produce PIC... " >&6; } 15893 if test ${lt_cv_prog_compiler_pic+y} 15894 then : 15895 printf %s "(cached) " >&6 15896 else $as_nop 15897 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15898 fi 15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15900 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15901 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15902 15903 # 15904 # Check to make sure the PIC flag actually works. 15905 # 15906 if test -n "$lt_prog_compiler_pic"; then 15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15908 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15909 if test ${lt_cv_prog_compiler_pic_works+y} 15910 then : 15911 printf %s "(cached) " >&6 15912 else $as_nop 15913 lt_cv_prog_compiler_pic_works=no 15914 ac_outfile=conftest.$ac_objext 15915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15916 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15917 # Insert the option either (1) after the last *FLAGS variable, or 15918 # (2) before a word containing "conftest.", or (3) at the end. 15919 # Note that $ac_compile itself does not contain backslashes and begins 15920 # with a dollar sign (not a hyphen), so the echo should work correctly. 15921 # The option is referenced via a variable to avoid confusing sed. 15922 lt_compile=`echo "$ac_compile" | $SED \ 15923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15925 -e 's:$: $lt_compiler_flag:'` 15926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15927 (eval "$lt_compile" 2>conftest.err) 15928 ac_status=$? 15929 cat conftest.err >&5 15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15931 if (exit $ac_status) && test -s "$ac_outfile"; then 15932 # The compiler can only warn and ignore the option if not recognized 15933 # So say no if there are warnings other than the usual output. 15934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15937 lt_cv_prog_compiler_pic_works=yes 15938 fi 15939 fi 15940 $RM conftest* 15941 15942 fi 15943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15944 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15945 15946 if test yes = "$lt_cv_prog_compiler_pic_works"; then 15947 case $lt_prog_compiler_pic in 15948 "" | " "*) ;; 15949 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15950 esac 15951 else 15952 lt_prog_compiler_pic= 15953 lt_prog_compiler_can_build_shared=no 15954 fi 15955 15956 fi 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 # 15969 # Check to make sure the static flag actually works. 15970 # 15971 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15973 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15974 if test ${lt_cv_prog_compiler_static_works+y} 15975 then : 15976 printf %s "(cached) " >&6 15977 else $as_nop 15978 lt_cv_prog_compiler_static_works=no 15979 save_LDFLAGS=$LDFLAGS 15980 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15981 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15982 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15983 # The linker can only warn and ignore the option if not recognized 15984 # So say no if there are warnings 15985 if test -s conftest.err; then 15986 # Append any errors to the config.log. 15987 cat conftest.err 1>&5 15988 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15990 if diff conftest.exp conftest.er2 >/dev/null; then 15991 lt_cv_prog_compiler_static_works=yes 15992 fi 15993 else 15994 lt_cv_prog_compiler_static_works=yes 15995 fi 15996 fi 15997 $RM -r conftest* 15998 LDFLAGS=$save_LDFLAGS 15999 16000 fi 16001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16002 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16003 16004 if test yes = "$lt_cv_prog_compiler_static_works"; then 16005 : 16006 else 16007 lt_prog_compiler_static= 16008 fi 16009 16010 16011 16012 16013 16014 16015 16016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16017 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16018 if test ${lt_cv_prog_compiler_c_o+y} 16019 then : 16020 printf %s "(cached) " >&6 16021 else $as_nop 16022 lt_cv_prog_compiler_c_o=no 16023 $RM -r conftest 2>/dev/null 16024 mkdir conftest 16025 cd conftest 16026 mkdir out 16027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16028 16029 lt_compiler_flag="-o out/conftest2.$ac_objext" 16030 # Insert the option either (1) after the last *FLAGS variable, or 16031 # (2) before a word containing "conftest.", or (3) at the end. 16032 # Note that $ac_compile itself does not contain backslashes and begins 16033 # with a dollar sign (not a hyphen), so the echo should work correctly. 16034 lt_compile=`echo "$ac_compile" | $SED \ 16035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16037 -e 's:$: $lt_compiler_flag:'` 16038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16039 (eval "$lt_compile" 2>out/conftest.err) 16040 ac_status=$? 16041 cat out/conftest.err >&5 16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16043 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16044 then 16045 # The compiler can only warn and ignore the option if not recognized 16046 # So say no if there are warnings 16047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16050 lt_cv_prog_compiler_c_o=yes 16051 fi 16052 fi 16053 chmod u+w . 2>&5 16054 $RM conftest* 16055 # SGI C++ compiler will create directory out/ii_files/ for 16056 # template instantiation 16057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16058 $RM out/* && rmdir out 16059 cd .. 16060 $RM -r conftest 16061 $RM conftest* 16062 16063 fi 16064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16065 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16066 16067 16068 16069 16070 16071 16072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16073 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16074 if test ${lt_cv_prog_compiler_c_o+y} 16075 then : 16076 printf %s "(cached) " >&6 16077 else $as_nop 16078 lt_cv_prog_compiler_c_o=no 16079 $RM -r conftest 2>/dev/null 16080 mkdir conftest 16081 cd conftest 16082 mkdir out 16083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16084 16085 lt_compiler_flag="-o out/conftest2.$ac_objext" 16086 # Insert the option either (1) after the last *FLAGS variable, or 16087 # (2) before a word containing "conftest.", or (3) at the end. 16088 # Note that $ac_compile itself does not contain backslashes and begins 16089 # with a dollar sign (not a hyphen), so the echo should work correctly. 16090 lt_compile=`echo "$ac_compile" | $SED \ 16091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16093 -e 's:$: $lt_compiler_flag:'` 16094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16095 (eval "$lt_compile" 2>out/conftest.err) 16096 ac_status=$? 16097 cat out/conftest.err >&5 16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16099 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16100 then 16101 # The compiler can only warn and ignore the option if not recognized 16102 # So say no if there are warnings 16103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16106 lt_cv_prog_compiler_c_o=yes 16107 fi 16108 fi 16109 chmod u+w . 2>&5 16110 $RM conftest* 16111 # SGI C++ compiler will create directory out/ii_files/ for 16112 # template instantiation 16113 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16114 $RM out/* && rmdir out 16115 cd .. 16116 $RM -r conftest 16117 $RM conftest* 16118 16119 fi 16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16121 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16122 16123 16124 16125 16126 hard_links=nottested 16127 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16128 # do not overwrite the value of need_locks provided by the user 16129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16130 printf %s "checking if we can lock with hard links... " >&6; } 16131 hard_links=yes 16132 $RM conftest* 16133 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16134 touch conftest.a 16135 ln conftest.a conftest.b 2>&5 || hard_links=no 16136 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16138 printf "%s\n" "$hard_links" >&6; } 16139 if test no = "$hard_links"; then 16140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16141 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16142 need_locks=warn 16143 fi 16144 else 16145 need_locks=no 16146 fi 16147 16148 16149 16150 16151 16152 16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16154 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16155 16156 runpath_var= 16157 allow_undefined_flag= 16158 always_export_symbols=no 16159 archive_cmds= 16160 archive_expsym_cmds= 16161 compiler_needs_object=no 16162 enable_shared_with_static_runtimes=no 16163 export_dynamic_flag_spec= 16164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16165 hardcode_automatic=no 16166 hardcode_direct=no 16167 hardcode_direct_absolute=no 16168 hardcode_libdir_flag_spec= 16169 hardcode_libdir_separator= 16170 hardcode_minus_L=no 16171 hardcode_shlibpath_var=unsupported 16172 inherit_rpath=no 16173 link_all_deplibs=unknown 16174 module_cmds= 16175 module_expsym_cmds= 16176 old_archive_from_new_cmds= 16177 old_archive_from_expsyms_cmds= 16178 thread_safe_flag_spec= 16179 whole_archive_flag_spec= 16180 # include_expsyms should be a list of space-separated symbols to be *always* 16181 # included in the symbol list 16182 include_expsyms= 16183 # exclude_expsyms can be an extended regexp of symbols to exclude 16184 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16185 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16186 # as well as any symbol that contains 'd'. 16187 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16188 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16189 # platforms (ab)use it in PIC code, but their linkers get confused if 16190 # the symbol is explicitly referenced. Since portable code cannot 16191 # rely on this symbol name, it's probably fine to never include it in 16192 # preloaded symbol tables. 16193 # Exclude shared library initialization/finalization symbols. 16194 extract_expsyms_cmds= 16195 16196 case $host_os in 16197 cygwin* | mingw* | pw32* | cegcc*) 16198 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16199 # When not using gcc, we currently assume that we are using 16200 # Microsoft Visual C++ or Intel C++ Compiler. 16201 if test yes != "$GCC"; then 16202 with_gnu_ld=no 16203 fi 16204 ;; 16205 interix*) 16206 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16207 with_gnu_ld=yes 16208 ;; 16209 openbsd* | bitrig*) 16210 with_gnu_ld=no 16211 ;; 16212 esac 16213 16214 ld_shlibs=yes 16215 16216 # On some targets, GNU ld is compatible enough with the native linker 16217 # that we're better off using the native interface for both. 16218 lt_use_gnu_ld_interface=no 16219 if test yes = "$with_gnu_ld"; then 16220 case $host_os in 16221 aix*) 16222 # The AIX port of GNU ld has always aspired to compatibility 16223 # with the native linker. However, as the warning in the GNU ld 16224 # block says, versions before 2.19.5* couldn't really create working 16225 # shared libraries, regardless of the interface used. 16226 case `$LD -v 2>&1` in 16227 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16228 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16229 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16230 *) 16231 lt_use_gnu_ld_interface=yes 16232 ;; 16233 esac 16234 ;; 16235 *) 16236 lt_use_gnu_ld_interface=yes 16237 ;; 16238 esac 16239 fi 16240 16241 if test yes = "$lt_use_gnu_ld_interface"; then 16242 # If archive_cmds runs LD, not CC, wlarc should be empty 16243 wlarc='$wl' 16244 16245 # Set some defaults for GNU ld with shared library support. These 16246 # are reset later if shared libraries are not supported. Putting them 16247 # here allows them to be overridden if necessary. 16248 runpath_var=LD_RUN_PATH 16249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16250 export_dynamic_flag_spec='$wl--export-dynamic' 16251 # ancient GNU ld didn't support --whole-archive et. al. 16252 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16253 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16254 else 16255 whole_archive_flag_spec= 16256 fi 16257 supports_anon_versioning=no 16258 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16259 *GNU\ gold*) supports_anon_versioning=yes ;; 16260 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16261 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16262 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16263 *\ 2.11.*) ;; # other 2.11 versions 16264 *) supports_anon_versioning=yes ;; 16265 esac 16266 16267 # See if GNU ld supports shared libraries. 16268 case $host_os in 16269 aix[3-9]*) 16270 # On AIX/PPC, the GNU linker is very broken 16271 if test ia64 != "$host_cpu"; then 16272 ld_shlibs=no 16273 cat <<_LT_EOF 1>&2 16274 16275 *** Warning: the GNU linker, at least up to release 2.19, is reported 16276 *** to be unable to reliably create shared libraries on AIX. 16277 *** Therefore, libtool is disabling shared libraries support. If you 16278 *** really care for shared libraries, you may want to install binutils 16279 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16280 *** You will then need to restart the configuration process. 16281 16282 _LT_EOF 16283 fi 16284 ;; 16285 16286 amigaos*) 16287 case $host_cpu in 16288 powerpc) 16289 # see comment about AmigaOS4 .so support 16290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16291 archive_expsym_cmds='' 16292 ;; 16293 m68k) 16294 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)' 16295 hardcode_libdir_flag_spec='-L$libdir' 16296 hardcode_minus_L=yes 16297 ;; 16298 esac 16299 ;; 16300 16301 beos*) 16302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16303 allow_undefined_flag=unsupported 16304 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16305 # support --undefined. This deserves some investigation. FIXME 16306 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16307 else 16308 ld_shlibs=no 16309 fi 16310 ;; 16311 16312 cygwin* | mingw* | pw32* | cegcc*) 16313 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16314 # as there is no search path for DLLs. 16315 hardcode_libdir_flag_spec='-L$libdir' 16316 export_dynamic_flag_spec='$wl--export-all-symbols' 16317 allow_undefined_flag=unsupported 16318 always_export_symbols=no 16319 enable_shared_with_static_runtimes=yes 16320 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' 16321 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16322 16323 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16325 # If the export-symbols file already is a .def file, use it as 16326 # is; otherwise, prepend EXPORTS... 16327 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16328 cp $export_symbols $output_objdir/$soname.def; 16329 else 16330 echo EXPORTS > $output_objdir/$soname.def; 16331 cat $export_symbols >> $output_objdir/$soname.def; 16332 fi~ 16333 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16334 else 16335 ld_shlibs=no 16336 fi 16337 ;; 16338 16339 haiku*) 16340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16341 link_all_deplibs=yes 16342 ;; 16343 16344 os2*) 16345 hardcode_libdir_flag_spec='-L$libdir' 16346 hardcode_minus_L=yes 16347 allow_undefined_flag=unsupported 16348 shrext_cmds=.dll 16349 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16350 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16351 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16352 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16353 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16354 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16355 emximp -o $lib $output_objdir/$libname.def' 16356 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16357 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16358 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16359 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16360 prefix_cmds="$SED"~ 16361 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16362 prefix_cmds="$prefix_cmds -e 1d"; 16363 fi~ 16364 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16365 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16366 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16367 emximp -o $lib $output_objdir/$libname.def' 16368 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16369 enable_shared_with_static_runtimes=yes 16370 file_list_spec='@' 16371 ;; 16372 16373 interix[3-9]*) 16374 hardcode_direct=no 16375 hardcode_shlibpath_var=no 16376 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16377 export_dynamic_flag_spec='$wl-E' 16378 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16379 # Instead, shared libraries are loaded at an image base (0x10000000 by 16380 # default) and relocated if they conflict, which is a slow very memory 16381 # consuming and fragmenting process. To avoid this, we pick a random, 16382 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16383 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16385 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' 16386 ;; 16387 16388 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16389 tmp_diet=no 16390 if test linux-dietlibc = "$host_os"; then 16391 case $cc_basename in 16392 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16393 esac 16394 fi 16395 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16396 && test no = "$tmp_diet" 16397 then 16398 tmp_addflag=' $pic_flag' 16399 tmp_sharedflag='-shared' 16400 case $cc_basename,$host_cpu in 16401 pgcc*) # Portland Group C compiler 16402 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' 16403 tmp_addflag=' $pic_flag' 16404 ;; 16405 pgf77* | pgf90* | pgf95* | pgfortran*) 16406 # Portland Group f77 and f90 compilers 16407 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' 16408 tmp_addflag=' $pic_flag -Mnomain' ;; 16409 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16410 tmp_addflag=' -i_dynamic' ;; 16411 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16412 tmp_addflag=' -i_dynamic -nofor_main' ;; 16413 ifc* | ifort*) # Intel Fortran compiler 16414 tmp_addflag=' -nofor_main' ;; 16415 lf95*) # Lahey Fortran 8.1 16416 whole_archive_flag_spec= 16417 tmp_sharedflag='--shared' ;; 16418 nagfor*) # NAGFOR 5.3 16419 tmp_sharedflag='-Wl,-shared' ;; 16420 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16421 tmp_sharedflag='-qmkshrobj' 16422 tmp_addflag= ;; 16423 nvcc*) # Cuda Compiler Driver 2.2 16424 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' 16425 compiler_needs_object=yes 16426 ;; 16427 esac 16428 case `$CC -V 2>&1 | $SED 5q` in 16429 *Sun\ C*) # Sun C 5.9 16430 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' 16431 compiler_needs_object=yes 16432 tmp_sharedflag='-G' ;; 16433 *Sun\ F*) # Sun Fortran 8.3 16434 tmp_sharedflag='-G' ;; 16435 esac 16436 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16437 16438 if test yes = "$supports_anon_versioning"; then 16439 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16440 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16441 echo "local: *; };" >> $output_objdir/$libname.ver~ 16442 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16443 fi 16444 16445 case $cc_basename in 16446 tcc*) 16447 export_dynamic_flag_spec='-rdynamic' 16448 ;; 16449 xlf* | bgf* | bgxlf* | mpixlf*) 16450 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16451 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16452 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16453 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16454 if test yes = "$supports_anon_versioning"; then 16455 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16456 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16457 echo "local: *; };" >> $output_objdir/$libname.ver~ 16458 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16459 fi 16460 ;; 16461 esac 16462 else 16463 ld_shlibs=no 16464 fi 16465 ;; 16466 16467 netbsd*) 16468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16469 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16470 wlarc= 16471 else 16472 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16473 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16474 fi 16475 ;; 16476 16477 solaris*) 16478 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16479 ld_shlibs=no 16480 cat <<_LT_EOF 1>&2 16481 16482 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16483 *** create shared libraries on Solaris systems. Therefore, libtool 16484 *** is disabling shared libraries support. We urge you to upgrade GNU 16485 *** binutils to release 2.9.1 or newer. Another option is to modify 16486 *** your PATH or compiler configuration so that the native linker is 16487 *** used, and then restart. 16488 16489 _LT_EOF 16490 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16491 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16492 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16493 else 16494 ld_shlibs=no 16495 fi 16496 ;; 16497 16498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16499 case `$LD -v 2>&1` in 16500 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16501 ld_shlibs=no 16502 cat <<_LT_EOF 1>&2 16503 16504 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16505 *** reliably create shared libraries on SCO systems. Therefore, libtool 16506 *** is disabling shared libraries support. We urge you to upgrade GNU 16507 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16508 *** your PATH or compiler configuration so that the native linker is 16509 *** used, and then restart. 16510 16511 _LT_EOF 16512 ;; 16513 *) 16514 # For security reasons, it is highly recommended that you always 16515 # use absolute paths for naming shared libraries, and exclude the 16516 # DT_RUNPATH tag from executables and libraries. But doing so 16517 # requires that you compile everything twice, which is a pain. 16518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16519 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16521 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16522 else 16523 ld_shlibs=no 16524 fi 16525 ;; 16526 esac 16527 ;; 16528 16529 sunos4*) 16530 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16531 wlarc= 16532 hardcode_direct=yes 16533 hardcode_shlibpath_var=no 16534 ;; 16535 16536 *) 16537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16538 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16539 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16540 else 16541 ld_shlibs=no 16542 fi 16543 ;; 16544 esac 16545 16546 if test no = "$ld_shlibs"; then 16547 runpath_var= 16548 hardcode_libdir_flag_spec= 16549 export_dynamic_flag_spec= 16550 whole_archive_flag_spec= 16551 fi 16552 else 16553 # PORTME fill in a description of your system's linker (not GNU ld) 16554 case $host_os in 16555 aix3*) 16556 allow_undefined_flag=unsupported 16557 always_export_symbols=yes 16558 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' 16559 # Note: this linker hardcodes the directories in LIBPATH if there 16560 # are no directories specified by -L. 16561 hardcode_minus_L=yes 16562 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16563 # Neither direct hardcoding nor static linking is supported with a 16564 # broken collect2. 16565 hardcode_direct=unsupported 16566 fi 16567 ;; 16568 16569 aix[4-9]*) 16570 if test ia64 = "$host_cpu"; then 16571 # On IA64, the linker does run time linking by default, so we don't 16572 # have to do anything special. 16573 aix_use_runtimelinking=no 16574 exp_sym_flag='-Bexport' 16575 no_entry_flag= 16576 else 16577 # If we're using GNU nm, then we don't want the "-C" option. 16578 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16579 # Without the "-l" option, or with the "-B" option, AIX nm treats 16580 # weak defined symbols like other global defined symbols, whereas 16581 # GNU nm marks them as "W". 16582 # While the 'weak' keyword is ignored in the Export File, we need 16583 # it in the Import File for the 'aix-soname' feature, so we have 16584 # to replace the "-B" option with "-P" for AIX nm. 16585 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16586 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' 16587 else 16588 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16589 fi 16590 aix_use_runtimelinking=no 16591 16592 # Test if we are trying to use run time linking or normal 16593 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16594 # have runtime linking enabled, and use it for executables. 16595 # For shared libraries, we enable/disable runtime linking 16596 # depending on the kind of the shared library created - 16597 # when "with_aix_soname,aix_use_runtimelinking" is: 16598 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16599 # "aix,yes" lib.so shared, rtl:yes, for executables 16600 # lib.a static archive 16601 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16602 # lib.a(lib.so.V) shared, rtl:no, for executables 16603 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16604 # lib.a(lib.so.V) shared, rtl:no 16605 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16606 # lib.a static archive 16607 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16608 for ld_flag in $LDFLAGS; do 16609 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16610 aix_use_runtimelinking=yes 16611 break 16612 fi 16613 done 16614 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16615 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16616 # so we don't have lib.a shared libs to link our executables. 16617 # We have to force runtime linking in this case. 16618 aix_use_runtimelinking=yes 16619 LDFLAGS="$LDFLAGS -Wl,-brtl" 16620 fi 16621 ;; 16622 esac 16623 16624 exp_sym_flag='-bexport' 16625 no_entry_flag='-bnoentry' 16626 fi 16627 16628 # When large executables or shared objects are built, AIX ld can 16629 # have problems creating the table of contents. If linking a library 16630 # or program results in "error TOC overflow" add -mminimal-toc to 16631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16633 16634 archive_cmds='' 16635 hardcode_direct=yes 16636 hardcode_direct_absolute=yes 16637 hardcode_libdir_separator=':' 16638 link_all_deplibs=yes 16639 file_list_spec='$wl-f,' 16640 case $with_aix_soname,$aix_use_runtimelinking in 16641 aix,*) ;; # traditional, no import file 16642 svr4,* | *,yes) # use import file 16643 # The Import File defines what to hardcode. 16644 hardcode_direct=no 16645 hardcode_direct_absolute=no 16646 ;; 16647 esac 16648 16649 if test yes = "$GCC"; then 16650 case $host_os in aix4.[012]|aix4.[012].*) 16651 # We only want to do this on AIX 4.2 and lower, the check 16652 # below for broken collect2 doesn't work under 4.3+ 16653 collect2name=`$CC -print-prog-name=collect2` 16654 if test -f "$collect2name" && 16655 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16656 then 16657 # We have reworked collect2 16658 : 16659 else 16660 # We have old collect2 16661 hardcode_direct=unsupported 16662 # It fails to find uninstalled libraries when the uninstalled 16663 # path is not listed in the libpath. Setting hardcode_minus_L 16664 # to unsupported forces relinking 16665 hardcode_minus_L=yes 16666 hardcode_libdir_flag_spec='-L$libdir' 16667 hardcode_libdir_separator= 16668 fi 16669 ;; 16670 esac 16671 shared_flag='-shared' 16672 if test yes = "$aix_use_runtimelinking"; then 16673 shared_flag="$shared_flag "'$wl-G' 16674 fi 16675 # Need to ensure runtime linking is disabled for the traditional 16676 # shared library, or the linker may eventually find shared libraries 16677 # /with/ Import File - we do not want to mix them. 16678 shared_flag_aix='-shared' 16679 shared_flag_svr4='-shared $wl-G' 16680 else 16681 # not using gcc 16682 if test ia64 = "$host_cpu"; then 16683 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16684 # chokes on -Wl,-G. The following line is correct: 16685 shared_flag='-G' 16686 else 16687 if test yes = "$aix_use_runtimelinking"; then 16688 shared_flag='$wl-G' 16689 else 16690 shared_flag='$wl-bM:SRE' 16691 fi 16692 shared_flag_aix='$wl-bM:SRE' 16693 shared_flag_svr4='$wl-G' 16694 fi 16695 fi 16696 16697 export_dynamic_flag_spec='$wl-bexpall' 16698 # It seems that -bexpall does not export symbols beginning with 16699 # underscore (_), so it is better to generate a list of symbols to export. 16700 always_export_symbols=yes 16701 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16702 # Warning - without using the other runtime loading flags (-brtl), 16703 # -berok will link without error, but may produce a broken library. 16704 allow_undefined_flag='-berok' 16705 # Determine the default libpath from the value encoded in an 16706 # empty executable. 16707 if test set = "${lt_cv_aix_libpath+set}"; then 16708 aix_libpath=$lt_cv_aix_libpath 16709 else 16710 if test ${lt_cv_aix_libpath_+y} 16711 then : 16712 printf %s "(cached) " >&6 16713 else $as_nop 16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16715 /* end confdefs.h. */ 16716 16717 int 16718 main (void) 16719 { 16720 16721 ; 16722 return 0; 16723 } 16724 _ACEOF 16725 if ac_fn_c_try_link "$LINENO" 16726 then : 16727 16728 lt_aix_libpath_sed=' 16729 /Import File Strings/,/^$/ { 16730 /^0/ { 16731 s/^0 *\([^ ]*\) *$/\1/ 16732 p 16733 } 16734 }' 16735 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16736 # Check for a 64-bit object if we didn't find anything. 16737 if test -z "$lt_cv_aix_libpath_"; then 16738 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16739 fi 16740 fi 16741 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16742 conftest$ac_exeext conftest.$ac_ext 16743 if test -z "$lt_cv_aix_libpath_"; then 16744 lt_cv_aix_libpath_=/usr/lib:/lib 16745 fi 16746 16747 fi 16748 16749 aix_libpath=$lt_cv_aix_libpath_ 16750 fi 16751 16752 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16753 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 16754 else 16755 if test ia64 = "$host_cpu"; then 16756 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16757 allow_undefined_flag="-z nodefs" 16758 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" 16759 else 16760 # Determine the default libpath from the value encoded in an 16761 # empty executable. 16762 if test set = "${lt_cv_aix_libpath+set}"; then 16763 aix_libpath=$lt_cv_aix_libpath 16764 else 16765 if test ${lt_cv_aix_libpath_+y} 16766 then : 16767 printf %s "(cached) " >&6 16768 else $as_nop 16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16770 /* end confdefs.h. */ 16771 16772 int 16773 main (void) 16774 { 16775 16776 ; 16777 return 0; 16778 } 16779 _ACEOF 16780 if ac_fn_c_try_link "$LINENO" 16781 then : 16782 16783 lt_aix_libpath_sed=' 16784 /Import File Strings/,/^$/ { 16785 /^0/ { 16786 s/^0 *\([^ ]*\) *$/\1/ 16787 p 16788 } 16789 }' 16790 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16791 # Check for a 64-bit object if we didn't find anything. 16792 if test -z "$lt_cv_aix_libpath_"; then 16793 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16794 fi 16795 fi 16796 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16797 conftest$ac_exeext conftest.$ac_ext 16798 if test -z "$lt_cv_aix_libpath_"; then 16799 lt_cv_aix_libpath_=/usr/lib:/lib 16800 fi 16801 16802 fi 16803 16804 aix_libpath=$lt_cv_aix_libpath_ 16805 fi 16806 16807 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16808 # Warning - without using the other run time loading flags, 16809 # -berok will link without error, but may produce a broken library. 16810 no_undefined_flag=' $wl-bernotok' 16811 allow_undefined_flag=' $wl-berok' 16812 if test yes = "$with_gnu_ld"; then 16813 # We only use this code for GNU lds that support --whole-archive. 16814 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16815 else 16816 # Exported symbols can be pulled into shared objects from archives 16817 whole_archive_flag_spec='$convenience' 16818 fi 16819 archive_cmds_need_lc=yes 16820 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16821 # -brtl affects multiple linker settings, -berok does not and is overridden later 16822 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16823 if test svr4 != "$with_aix_soname"; then 16824 # This is similar to how AIX traditionally builds its shared libraries. 16825 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' 16826 fi 16827 if test aix != "$with_aix_soname"; then 16828 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' 16829 else 16830 # used by -dlpreopen to get the symbols 16831 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16832 fi 16833 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16834 fi 16835 fi 16836 ;; 16837 16838 amigaos*) 16839 case $host_cpu in 16840 powerpc) 16841 # see comment about AmigaOS4 .so support 16842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16843 archive_expsym_cmds='' 16844 ;; 16845 m68k) 16846 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)' 16847 hardcode_libdir_flag_spec='-L$libdir' 16848 hardcode_minus_L=yes 16849 ;; 16850 esac 16851 ;; 16852 16853 bsdi[45]*) 16854 export_dynamic_flag_spec=-rdynamic 16855 ;; 16856 16857 cygwin* | mingw* | pw32* | cegcc*) 16858 # When not using gcc, we currently assume that we are using 16859 # Microsoft Visual C++ or Intel C++ Compiler. 16860 # hardcode_libdir_flag_spec is actually meaningless, as there is 16861 # no search path for DLLs. 16862 case $cc_basename in 16863 cl* | icl*) 16864 # Native MSVC or ICC 16865 hardcode_libdir_flag_spec=' ' 16866 allow_undefined_flag=unsupported 16867 always_export_symbols=yes 16868 file_list_spec='@' 16869 # Tell ltmain to make .lib files, not .a files. 16870 libext=lib 16871 # Tell ltmain to make .dll files, not .so files. 16872 shrext_cmds=.dll 16873 # FIXME: Setting linknames here is a bad hack. 16874 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16875 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16876 cp "$export_symbols" "$output_objdir/$soname.def"; 16877 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16878 else 16879 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16880 fi~ 16881 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16882 linknames=' 16883 # The linker will not automatically build a static lib if we build a DLL. 16884 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16885 enable_shared_with_static_runtimes=yes 16886 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16888 # Don't use ranlib 16889 old_postinstall_cmds='chmod 644 $oldlib' 16890 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16891 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16892 case $lt_outputfile in 16893 *.exe|*.EXE) ;; 16894 *) 16895 lt_outputfile=$lt_outputfile.exe 16896 lt_tool_outputfile=$lt_tool_outputfile.exe 16897 ;; 16898 esac~ 16899 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16900 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16901 $RM "$lt_outputfile.manifest"; 16902 fi' 16903 ;; 16904 *) 16905 # Assume MSVC and ICC wrapper 16906 hardcode_libdir_flag_spec=' ' 16907 allow_undefined_flag=unsupported 16908 # Tell ltmain to make .lib files, not .a files. 16909 libext=lib 16910 # Tell ltmain to make .dll files, not .so files. 16911 shrext_cmds=.dll 16912 # FIXME: Setting linknames here is a bad hack. 16913 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16914 # The linker will automatically build a .lib file if we build a DLL. 16915 old_archive_from_new_cmds='true' 16916 # FIXME: Should let the user specify the lib program. 16917 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16918 enable_shared_with_static_runtimes=yes 16919 ;; 16920 esac 16921 ;; 16922 16923 darwin* | rhapsody*) 16924 16925 16926 archive_cmds_need_lc=no 16927 hardcode_direct=no 16928 hardcode_automatic=yes 16929 hardcode_shlibpath_var=unsupported 16930 if test yes = "$lt_cv_ld_force_load"; then 16931 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\"`' 16932 16933 else 16934 whole_archive_flag_spec='' 16935 fi 16936 link_all_deplibs=yes 16937 allow_undefined_flag=$_lt_dar_allow_undefined 16938 case $cc_basename in 16939 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16940 *) _lt_dar_can_shared=$GCC ;; 16941 esac 16942 if test yes = "$_lt_dar_can_shared"; then 16943 output_verbose_link_cmd=func_echo_all 16944 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16945 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16946 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" 16947 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" 16948 16949 else 16950 ld_shlibs=no 16951 fi 16952 16953 ;; 16954 16955 dgux*) 16956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16957 hardcode_libdir_flag_spec='-L$libdir' 16958 hardcode_shlibpath_var=no 16959 ;; 16960 16961 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16962 # support. Future versions do this automatically, but an explicit c++rt0.o 16963 # does not break anything, and helps significantly (at the cost of a little 16964 # extra space). 16965 freebsd2.2*) 16966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16967 hardcode_libdir_flag_spec='-R$libdir' 16968 hardcode_direct=yes 16969 hardcode_shlibpath_var=no 16970 ;; 16971 16972 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16973 freebsd2.*) 16974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16975 hardcode_direct=yes 16976 hardcode_minus_L=yes 16977 hardcode_shlibpath_var=no 16978 ;; 16979 16980 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16981 freebsd* | dragonfly* | midnightbsd*) 16982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16983 hardcode_libdir_flag_spec='-R$libdir' 16984 hardcode_direct=yes 16985 hardcode_shlibpath_var=no 16986 ;; 16987 16988 hpux9*) 16989 if test yes = "$GCC"; then 16990 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' 16991 else 16992 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' 16993 fi 16994 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16995 hardcode_libdir_separator=: 16996 hardcode_direct=yes 16997 16998 # hardcode_minus_L: Not really in the search PATH, 16999 # but as the default location of the library. 17000 hardcode_minus_L=yes 17001 export_dynamic_flag_spec='$wl-E' 17002 ;; 17003 17004 hpux10*) 17005 if test yes,no = "$GCC,$with_gnu_ld"; then 17006 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17007 else 17008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17009 fi 17010 if test no = "$with_gnu_ld"; then 17011 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17012 hardcode_libdir_separator=: 17013 hardcode_direct=yes 17014 hardcode_direct_absolute=yes 17015 export_dynamic_flag_spec='$wl-E' 17016 # hardcode_minus_L: Not really in the search PATH, 17017 # but as the default location of the library. 17018 hardcode_minus_L=yes 17019 fi 17020 ;; 17021 17022 hpux11*) 17023 if test yes,no = "$GCC,$with_gnu_ld"; then 17024 case $host_cpu in 17025 hppa*64*) 17026 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17027 ;; 17028 ia64*) 17029 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17030 ;; 17031 *) 17032 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17033 ;; 17034 esac 17035 else 17036 case $host_cpu in 17037 hppa*64*) 17038 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17039 ;; 17040 ia64*) 17041 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17042 ;; 17043 *) 17044 17045 # Older versions of the 11.00 compiler do not understand -b yet 17046 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17048 printf %s "checking if $CC understands -b... " >&6; } 17049 if test ${lt_cv_prog_compiler__b+y} 17050 then : 17051 printf %s "(cached) " >&6 17052 else $as_nop 17053 lt_cv_prog_compiler__b=no 17054 save_LDFLAGS=$LDFLAGS 17055 LDFLAGS="$LDFLAGS -b" 17056 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17058 # The linker can only warn and ignore the option if not recognized 17059 # So say no if there are warnings 17060 if test -s conftest.err; then 17061 # Append any errors to the config.log. 17062 cat conftest.err 1>&5 17063 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17065 if diff conftest.exp conftest.er2 >/dev/null; then 17066 lt_cv_prog_compiler__b=yes 17067 fi 17068 else 17069 lt_cv_prog_compiler__b=yes 17070 fi 17071 fi 17072 $RM -r conftest* 17073 LDFLAGS=$save_LDFLAGS 17074 17075 fi 17076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17077 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17078 17079 if test yes = "$lt_cv_prog_compiler__b"; then 17080 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17081 else 17082 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17083 fi 17084 17085 ;; 17086 esac 17087 fi 17088 if test no = "$with_gnu_ld"; then 17089 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17090 hardcode_libdir_separator=: 17091 17092 case $host_cpu in 17093 hppa*64*|ia64*) 17094 hardcode_direct=no 17095 hardcode_shlibpath_var=no 17096 ;; 17097 *) 17098 hardcode_direct=yes 17099 hardcode_direct_absolute=yes 17100 export_dynamic_flag_spec='$wl-E' 17101 17102 # hardcode_minus_L: Not really in the search PATH, 17103 # but as the default location of the library. 17104 hardcode_minus_L=yes 17105 ;; 17106 esac 17107 fi 17108 ;; 17109 17110 irix5* | irix6* | nonstopux*) 17111 if test yes = "$GCC"; then 17112 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' 17113 # Try to use the -exported_symbol ld option, if it does not 17114 # work, assume that -exports_file does not work either and 17115 # implicitly export all symbols. 17116 # This should be the same for all languages, so no per-tag cache variable. 17117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17118 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17119 if test ${lt_cv_irix_exported_symbol+y} 17120 then : 17121 printf %s "(cached) " >&6 17122 else $as_nop 17123 save_LDFLAGS=$LDFLAGS 17124 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17126 /* end confdefs.h. */ 17127 int foo (void) { return 0; } 17128 _ACEOF 17129 if ac_fn_c_try_link "$LINENO" 17130 then : 17131 lt_cv_irix_exported_symbol=yes 17132 else $as_nop 17133 lt_cv_irix_exported_symbol=no 17134 fi 17135 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17136 conftest$ac_exeext conftest.$ac_ext 17137 LDFLAGS=$save_LDFLAGS 17138 fi 17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17140 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17141 if test yes = "$lt_cv_irix_exported_symbol"; then 17142 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' 17143 fi 17144 else 17145 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' 17146 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' 17147 fi 17148 archive_cmds_need_lc='no' 17149 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17150 hardcode_libdir_separator=: 17151 inherit_rpath=yes 17152 link_all_deplibs=yes 17153 ;; 17154 17155 linux*) 17156 case $cc_basename in 17157 tcc*) 17158 # Fabrice Bellard et al's Tiny C Compiler 17159 ld_shlibs=yes 17160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17161 ;; 17162 esac 17163 ;; 17164 17165 netbsd*) 17166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17168 else 17169 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17170 fi 17171 hardcode_libdir_flag_spec='-R$libdir' 17172 hardcode_direct=yes 17173 hardcode_shlibpath_var=no 17174 ;; 17175 17176 newsos6) 17177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17178 hardcode_direct=yes 17179 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17180 hardcode_libdir_separator=: 17181 hardcode_shlibpath_var=no 17182 ;; 17183 17184 *nto* | *qnx*) 17185 ;; 17186 17187 openbsd* | bitrig*) 17188 if test -f /usr/libexec/ld.so; then 17189 hardcode_direct=yes 17190 hardcode_shlibpath_var=no 17191 hardcode_direct_absolute=yes 17192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17193 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17194 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17195 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17196 export_dynamic_flag_spec='$wl-E' 17197 else 17198 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17199 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17200 fi 17201 else 17202 ld_shlibs=no 17203 fi 17204 ;; 17205 17206 os2*) 17207 hardcode_libdir_flag_spec='-L$libdir' 17208 hardcode_minus_L=yes 17209 allow_undefined_flag=unsupported 17210 shrext_cmds=.dll 17211 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17212 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17213 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17214 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17215 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17216 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17217 emximp -o $lib $output_objdir/$libname.def' 17218 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17219 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17220 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17221 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17222 prefix_cmds="$SED"~ 17223 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17224 prefix_cmds="$prefix_cmds -e 1d"; 17225 fi~ 17226 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17227 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17228 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17229 emximp -o $lib $output_objdir/$libname.def' 17230 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17231 enable_shared_with_static_runtimes=yes 17232 file_list_spec='@' 17233 ;; 17234 17235 osf3*) 17236 if test yes = "$GCC"; then 17237 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17238 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' 17239 else 17240 allow_undefined_flag=' -expect_unresolved \*' 17241 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' 17242 fi 17243 archive_cmds_need_lc='no' 17244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17245 hardcode_libdir_separator=: 17246 ;; 17247 17248 osf4* | osf5*) # as osf3* with the addition of -msym flag 17249 if test yes = "$GCC"; then 17250 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17251 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' 17252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17253 else 17254 allow_undefined_flag=' -expect_unresolved \*' 17255 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' 17256 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~ 17257 $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' 17258 17259 # Both c and cxx compiler support -rpath directly 17260 hardcode_libdir_flag_spec='-rpath $libdir' 17261 fi 17262 archive_cmds_need_lc='no' 17263 hardcode_libdir_separator=: 17264 ;; 17265 17266 solaris*) 17267 no_undefined_flag=' -z defs' 17268 if test yes = "$GCC"; then 17269 wlarc='$wl' 17270 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17272 $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' 17273 else 17274 case `$CC -V 2>&1` in 17275 *"Compilers 5.0"*) 17276 wlarc='' 17277 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17279 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17280 ;; 17281 *) 17282 wlarc='$wl' 17283 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17285 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17286 ;; 17287 esac 17288 fi 17289 hardcode_libdir_flag_spec='-R$libdir' 17290 hardcode_shlibpath_var=no 17291 case $host_os in 17292 solaris2.[0-5] | solaris2.[0-5].*) ;; 17293 *) 17294 # The compiler driver will combine and reorder linker options, 17295 # but understands '-z linker_flag'. GCC discards it without '$wl', 17296 # but is careful enough not to reorder. 17297 # Supported since Solaris 2.6 (maybe 2.5.1?) 17298 if test yes = "$GCC"; then 17299 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17300 else 17301 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17302 fi 17303 ;; 17304 esac 17305 link_all_deplibs=yes 17306 ;; 17307 17308 sunos4*) 17309 if test sequent = "$host_vendor"; then 17310 # Use $CC to link under sequent, because it throws in some extra .o 17311 # files that make .init and .fini sections work. 17312 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17313 else 17314 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17315 fi 17316 hardcode_libdir_flag_spec='-L$libdir' 17317 hardcode_direct=yes 17318 hardcode_minus_L=yes 17319 hardcode_shlibpath_var=no 17320 ;; 17321 17322 sysv4) 17323 case $host_vendor in 17324 sni) 17325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17326 hardcode_direct=yes # is this really true??? 17327 ;; 17328 siemens) 17329 ## LD is ld it makes a PLAMLIB 17330 ## CC just makes a GrossModule. 17331 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17332 reload_cmds='$CC -r -o $output$reload_objs' 17333 hardcode_direct=no 17334 ;; 17335 motorola) 17336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17337 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17338 ;; 17339 esac 17340 runpath_var='LD_RUN_PATH' 17341 hardcode_shlibpath_var=no 17342 ;; 17343 17344 sysv4.3*) 17345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17346 hardcode_shlibpath_var=no 17347 export_dynamic_flag_spec='-Bexport' 17348 ;; 17349 17350 sysv4*MP*) 17351 if test -d /usr/nec; then 17352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17353 hardcode_shlibpath_var=no 17354 runpath_var=LD_RUN_PATH 17355 hardcode_runpath_var=yes 17356 ld_shlibs=yes 17357 fi 17358 ;; 17359 17360 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17361 no_undefined_flag='$wl-z,text' 17362 archive_cmds_need_lc=no 17363 hardcode_shlibpath_var=no 17364 runpath_var='LD_RUN_PATH' 17365 17366 if test yes = "$GCC"; then 17367 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17368 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17369 else 17370 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17371 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17372 fi 17373 ;; 17374 17375 sysv5* | sco3.2v5* | sco5v6*) 17376 # Note: We CANNOT use -z defs as we might desire, because we do not 17377 # link with -lc, and that would cause any symbols used from libc to 17378 # always be unresolved, which means just about no library would 17379 # ever link correctly. If we're not using GNU ld we use -z text 17380 # though, which does catch some bad symbols but isn't as heavy-handed 17381 # as -z defs. 17382 no_undefined_flag='$wl-z,text' 17383 allow_undefined_flag='$wl-z,nodefs' 17384 archive_cmds_need_lc=no 17385 hardcode_shlibpath_var=no 17386 hardcode_libdir_flag_spec='$wl-R,$libdir' 17387 hardcode_libdir_separator=':' 17388 link_all_deplibs=yes 17389 export_dynamic_flag_spec='$wl-Bexport' 17390 runpath_var='LD_RUN_PATH' 17391 17392 if test yes = "$GCC"; then 17393 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17394 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17395 else 17396 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17397 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17398 fi 17399 ;; 17400 17401 uts4*) 17402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17403 hardcode_libdir_flag_spec='-L$libdir' 17404 hardcode_shlibpath_var=no 17405 ;; 17406 17407 *) 17408 ld_shlibs=no 17409 ;; 17410 esac 17411 17412 if test sni = "$host_vendor"; then 17413 case $host in 17414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17415 export_dynamic_flag_spec='$wl-Blargedynsym' 17416 ;; 17417 esac 17418 fi 17419 fi 17420 17421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17422 printf "%s\n" "$ld_shlibs" >&6; } 17423 test no = "$ld_shlibs" && can_build_shared=no 17424 17425 with_gnu_ld=$with_gnu_ld 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 # 17442 # Do we need to explicitly link libc? 17443 # 17444 case "x$archive_cmds_need_lc" in 17445 x|xyes) 17446 # Assume -lc should be added 17447 archive_cmds_need_lc=yes 17448 17449 if test yes,yes = "$GCC,$enable_shared"; then 17450 case $archive_cmds in 17451 *'~'*) 17452 # FIXME: we may have to deal with multi-command sequences. 17453 ;; 17454 '$CC '*) 17455 # Test whether the compiler implicitly links with -lc since on some 17456 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17457 # to ld, don't add -lc before -lgcc. 17458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17459 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17460 if test ${lt_cv_archive_cmds_need_lc+y} 17461 then : 17462 printf %s "(cached) " >&6 17463 else $as_nop 17464 $RM conftest* 17465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17466 17467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17468 (eval $ac_compile) 2>&5 17469 ac_status=$? 17470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17471 test $ac_status = 0; } 2>conftest.err; then 17472 soname=conftest 17473 lib=conftest 17474 libobjs=conftest.$ac_objext 17475 deplibs= 17476 wl=$lt_prog_compiler_wl 17477 pic_flag=$lt_prog_compiler_pic 17478 compiler_flags=-v 17479 linker_flags=-v 17480 verstring= 17481 output_objdir=. 17482 libname=conftest 17483 lt_save_allow_undefined_flag=$allow_undefined_flag 17484 allow_undefined_flag= 17485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17486 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17487 ac_status=$? 17488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17489 test $ac_status = 0; } 17490 then 17491 lt_cv_archive_cmds_need_lc=no 17492 else 17493 lt_cv_archive_cmds_need_lc=yes 17494 fi 17495 allow_undefined_flag=$lt_save_allow_undefined_flag 17496 else 17497 cat conftest.err 1>&5 17498 fi 17499 $RM conftest* 17500 17501 fi 17502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17503 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17504 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17505 ;; 17506 esac 17507 fi 17508 ;; 17509 esac 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17663 printf %s "checking dynamic linker characteristics... " >&6; } 17664 17665 if test yes = "$GCC"; then 17666 case $host_os in 17667 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17668 *) lt_awk_arg='/^libraries:/' ;; 17669 esac 17670 case $host_os in 17671 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17672 *) lt_sed_strip_eq='s|=/|/|g' ;; 17673 esac 17674 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17675 case $lt_search_path_spec in 17676 *\;*) 17677 # if the path contains ";" then we assume it to be the separator 17678 # otherwise default to the standard path separator (i.e. ":") - it is 17679 # assumed that no part of a normal pathname contains ";" but that should 17680 # okay in the real world where ";" in dirpaths is itself problematic. 17681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17682 ;; 17683 *) 17684 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17685 ;; 17686 esac 17687 # Ok, now we have the path, separated by spaces, we can step through it 17688 # and add multilib dir if necessary... 17689 lt_tmp_lt_search_path_spec= 17690 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17691 # ...but if some path component already ends with the multilib dir we assume 17692 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17693 case "$lt_multi_os_dir; $lt_search_path_spec " in 17694 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17695 lt_multi_os_dir= 17696 ;; 17697 esac 17698 for lt_sys_path in $lt_search_path_spec; do 17699 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17700 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17701 elif test -n "$lt_multi_os_dir"; then 17702 test -d "$lt_sys_path" && \ 17703 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17704 fi 17705 done 17706 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17707 BEGIN {RS = " "; FS = "/|\n";} { 17708 lt_foo = ""; 17709 lt_count = 0; 17710 for (lt_i = NF; lt_i > 0; lt_i--) { 17711 if ($lt_i != "" && $lt_i != ".") { 17712 if ($lt_i == "..") { 17713 lt_count++; 17714 } else { 17715 if (lt_count == 0) { 17716 lt_foo = "/" $lt_i lt_foo; 17717 } else { 17718 lt_count--; 17719 } 17720 } 17721 } 17722 } 17723 if (lt_foo != "") { lt_freq[lt_foo]++; } 17724 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17725 }'` 17726 # AWK program above erroneously prepends '/' to C:/dos/paths 17727 # for these hosts. 17728 case $host_os in 17729 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17730 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17731 esac 17732 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17733 else 17734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17735 fi 17736 library_names_spec= 17737 libname_spec='lib$name' 17738 soname_spec= 17739 shrext_cmds=.so 17740 postinstall_cmds= 17741 postuninstall_cmds= 17742 finish_cmds= 17743 finish_eval= 17744 shlibpath_var= 17745 shlibpath_overrides_runpath=unknown 17746 version_type=none 17747 dynamic_linker="$host_os ld.so" 17748 sys_lib_dlsearch_path_spec="/lib /usr/lib" 17749 need_lib_prefix=unknown 17750 hardcode_into_libs=no 17751 17752 # when you set need_version to no, make sure it does not cause -set_version 17753 # flags to be left without arguments 17754 need_version=unknown 17755 17756 17757 17758 case $host_os in 17759 aix3*) 17760 version_type=linux # correct to gnu/linux during the next big refactor 17761 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17762 shlibpath_var=LIBPATH 17763 17764 # AIX 3 has no versioning support, so we append a major version to the name. 17765 soname_spec='$libname$release$shared_ext$major' 17766 ;; 17767 17768 aix[4-9]*) 17769 version_type=linux # correct to gnu/linux during the next big refactor 17770 need_lib_prefix=no 17771 need_version=no 17772 hardcode_into_libs=yes 17773 if test ia64 = "$host_cpu"; then 17774 # AIX 5 supports IA64 17775 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17776 shlibpath_var=LD_LIBRARY_PATH 17777 else 17778 # With GCC up to 2.95.x, collect2 would create an import file 17779 # for dependence libraries. The import file would start with 17780 # the line '#! .'. This would cause the generated library to 17781 # depend on '.', always an invalid library. This was fixed in 17782 # development snapshots of GCC prior to 3.0. 17783 case $host_os in 17784 aix4 | aix4.[01] | aix4.[01].*) 17785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17786 echo ' yes ' 17787 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17788 : 17789 else 17790 can_build_shared=no 17791 fi 17792 ;; 17793 esac 17794 # Using Import Files as archive members, it is possible to support 17795 # filename-based versioning of shared library archives on AIX. While 17796 # this would work for both with and without runtime linking, it will 17797 # prevent static linking of such archives. So we do filename-based 17798 # shared library versioning with .so extension only, which is used 17799 # when both runtime linking and shared linking is enabled. 17800 # Unfortunately, runtime linking may impact performance, so we do 17801 # not want this to be the default eventually. Also, we use the 17802 # versioned .so libs for executables only if there is the -brtl 17803 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17804 # To allow for filename-based versioning support, we need to create 17805 # libNAME.so.V as an archive file, containing: 17806 # *) an Import File, referring to the versioned filename of the 17807 # archive as well as the shared archive member, telling the 17808 # bitwidth (32 or 64) of that shared object, and providing the 17809 # list of exported symbols of that shared object, eventually 17810 # decorated with the 'weak' keyword 17811 # *) the shared object with the F_LOADONLY flag set, to really avoid 17812 # it being seen by the linker. 17813 # At run time we better use the real file rather than another symlink, 17814 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17815 17816 case $with_aix_soname,$aix_use_runtimelinking in 17817 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17818 # soname into executable. Probably we can add versioning support to 17819 # collect2, so additional links can be useful in future. 17820 aix,yes) # traditional libtool 17821 dynamic_linker='AIX unversionable lib.so' 17822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17823 # instead of lib<name>.a to let people know that these are not 17824 # typical AIX shared libraries. 17825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17826 ;; 17827 aix,no) # traditional AIX only 17828 dynamic_linker='AIX lib.a(lib.so.V)' 17829 # We preserve .a as extension for shared libraries through AIX4.2 17830 # and later when we are not doing run time linking. 17831 library_names_spec='$libname$release.a $libname.a' 17832 soname_spec='$libname$release$shared_ext$major' 17833 ;; 17834 svr4,*) # full svr4 only 17835 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17836 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17837 # We do not specify a path in Import Files, so LIBPATH fires. 17838 shlibpath_overrides_runpath=yes 17839 ;; 17840 *,yes) # both, prefer svr4 17841 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17842 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17843 # unpreferred sharedlib libNAME.a needs extra handling 17844 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"' 17845 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"' 17846 # We do not specify a path in Import Files, so LIBPATH fires. 17847 shlibpath_overrides_runpath=yes 17848 ;; 17849 *,no) # both, prefer aix 17850 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17851 library_names_spec='$libname$release.a $libname.a' 17852 soname_spec='$libname$release$shared_ext$major' 17853 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17854 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)' 17855 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"' 17856 ;; 17857 esac 17858 shlibpath_var=LIBPATH 17859 fi 17860 ;; 17861 17862 amigaos*) 17863 case $host_cpu in 17864 powerpc) 17865 # Since July 2007 AmigaOS4 officially supports .so libraries. 17866 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17868 ;; 17869 m68k) 17870 library_names_spec='$libname.ixlibrary $libname.a' 17871 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17872 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' 17873 ;; 17874 esac 17875 ;; 17876 17877 beos*) 17878 library_names_spec='$libname$shared_ext' 17879 dynamic_linker="$host_os ld.so" 17880 shlibpath_var=LIBRARY_PATH 17881 ;; 17882 17883 bsdi[45]*) 17884 version_type=linux # correct to gnu/linux during the next big refactor 17885 need_version=no 17886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17887 soname_spec='$libname$release$shared_ext$major' 17888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17889 shlibpath_var=LD_LIBRARY_PATH 17890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17892 # the default ld.so.conf also contains /usr/contrib/lib and 17893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17894 # libtool to hard-code these into programs 17895 ;; 17896 17897 cygwin* | mingw* | pw32* | cegcc*) 17898 version_type=windows 17899 shrext_cmds=.dll 17900 need_version=no 17901 need_lib_prefix=no 17902 17903 case $GCC,$cc_basename in 17904 yes,*) 17905 # gcc 17906 library_names_spec='$libname.dll.a' 17907 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17908 postinstall_cmds='base_file=`basename \$file`~ 17909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17910 dldir=$destdir/`dirname \$dlpath`~ 17911 test -d \$dldir || mkdir -p \$dldir~ 17912 $install_prog $dir/$dlname \$dldir/$dlname~ 17913 chmod a+x \$dldir/$dlname~ 17914 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17915 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17916 fi' 17917 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17918 dlpath=$dir/\$dldll~ 17919 $RM \$dlpath' 17920 shlibpath_overrides_runpath=yes 17921 17922 case $host_os in 17923 cygwin*) 17924 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17925 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17926 17927 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17928 ;; 17929 mingw* | cegcc*) 17930 # MinGW DLLs use traditional 'lib' prefix 17931 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17932 ;; 17933 pw32*) 17934 # pw32 DLLs use 'pw' prefix rather than 'lib' 17935 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17936 ;; 17937 esac 17938 dynamic_linker='Win32 ld.exe' 17939 ;; 17940 17941 *,cl* | *,icl*) 17942 # Native MSVC or ICC 17943 libname_spec='$name' 17944 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17945 library_names_spec='$libname.dll.lib' 17946 17947 case $build_os in 17948 mingw*) 17949 sys_lib_search_path_spec= 17950 lt_save_ifs=$IFS 17951 IFS=';' 17952 for lt_path in $LIB 17953 do 17954 IFS=$lt_save_ifs 17955 # Let DOS variable expansion print the short 8.3 style file name. 17956 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17957 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17958 done 17959 IFS=$lt_save_ifs 17960 # Convert to MSYS style. 17961 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17962 ;; 17963 cygwin*) 17964 # Convert to unix form, then to dos form, then back to unix form 17965 # but this time dos style (no spaces!) so that the unix form looks 17966 # like /cygdrive/c/PROGRA~1:/cygdr... 17967 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17968 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17969 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17970 ;; 17971 *) 17972 sys_lib_search_path_spec=$LIB 17973 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17974 # It is most probably a Windows format PATH. 17975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17976 else 17977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17978 fi 17979 # FIXME: find the short name or the path components, as spaces are 17980 # common. (e.g. "Program Files" -> "PROGRA~1") 17981 ;; 17982 esac 17983 17984 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17985 postinstall_cmds='base_file=`basename \$file`~ 17986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17987 dldir=$destdir/`dirname \$dlpath`~ 17988 test -d \$dldir || mkdir -p \$dldir~ 17989 $install_prog $dir/$dlname \$dldir/$dlname' 17990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17991 dlpath=$dir/\$dldll~ 17992 $RM \$dlpath' 17993 shlibpath_overrides_runpath=yes 17994 dynamic_linker='Win32 link.exe' 17995 ;; 17996 17997 *) 17998 # Assume MSVC and ICC wrapper 17999 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18000 dynamic_linker='Win32 ld.exe' 18001 ;; 18002 esac 18003 # FIXME: first we should search . and the directory the executable is in 18004 shlibpath_var=PATH 18005 ;; 18006 18007 darwin* | rhapsody*) 18008 dynamic_linker="$host_os dyld" 18009 version_type=darwin 18010 need_lib_prefix=no 18011 need_version=no 18012 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18013 soname_spec='$libname$release$major$shared_ext' 18014 shlibpath_overrides_runpath=yes 18015 shlibpath_var=DYLD_LIBRARY_PATH 18016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18017 18018 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18019 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18020 ;; 18021 18022 dgux*) 18023 version_type=linux # correct to gnu/linux during the next big refactor 18024 need_lib_prefix=no 18025 need_version=no 18026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18027 soname_spec='$libname$release$shared_ext$major' 18028 shlibpath_var=LD_LIBRARY_PATH 18029 ;; 18030 18031 freebsd* | dragonfly* | midnightbsd*) 18032 # DragonFly does not have aout. When/if they implement a new 18033 # versioning mechanism, adjust this. 18034 if test -x /usr/bin/objformat; then 18035 objformat=`/usr/bin/objformat` 18036 else 18037 case $host_os in 18038 freebsd[23].*) objformat=aout ;; 18039 *) objformat=elf ;; 18040 esac 18041 fi 18042 version_type=freebsd-$objformat 18043 case $version_type in 18044 freebsd-elf*) 18045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18046 soname_spec='$libname$release$shared_ext$major' 18047 need_version=no 18048 need_lib_prefix=no 18049 ;; 18050 freebsd-*) 18051 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18052 need_version=yes 18053 ;; 18054 esac 18055 shlibpath_var=LD_LIBRARY_PATH 18056 case $host_os in 18057 freebsd2.*) 18058 shlibpath_overrides_runpath=yes 18059 ;; 18060 freebsd3.[01]* | freebsdelf3.[01]*) 18061 shlibpath_overrides_runpath=yes 18062 hardcode_into_libs=yes 18063 ;; 18064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18066 shlibpath_overrides_runpath=no 18067 hardcode_into_libs=yes 18068 ;; 18069 *) # from 4.6 on, and DragonFly 18070 shlibpath_overrides_runpath=yes 18071 hardcode_into_libs=yes 18072 ;; 18073 esac 18074 ;; 18075 18076 haiku*) 18077 version_type=linux # correct to gnu/linux during the next big refactor 18078 need_lib_prefix=no 18079 need_version=no 18080 dynamic_linker="$host_os runtime_loader" 18081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18082 soname_spec='$libname$release$shared_ext$major' 18083 shlibpath_var=LIBRARY_PATH 18084 shlibpath_overrides_runpath=no 18085 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18086 hardcode_into_libs=yes 18087 ;; 18088 18089 hpux9* | hpux10* | hpux11*) 18090 # Give a soname corresponding to the major version so that dld.sl refuses to 18091 # link against other versions. 18092 version_type=sunos 18093 need_lib_prefix=no 18094 need_version=no 18095 case $host_cpu in 18096 ia64*) 18097 shrext_cmds='.so' 18098 hardcode_into_libs=yes 18099 dynamic_linker="$host_os dld.so" 18100 shlibpath_var=LD_LIBRARY_PATH 18101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18103 soname_spec='$libname$release$shared_ext$major' 18104 if test 32 = "$HPUX_IA64_MODE"; then 18105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18106 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18107 else 18108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18109 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18110 fi 18111 ;; 18112 hppa*64*) 18113 shrext_cmds='.sl' 18114 hardcode_into_libs=yes 18115 dynamic_linker="$host_os dld.sl" 18116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18119 soname_spec='$libname$release$shared_ext$major' 18120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18122 ;; 18123 *) 18124 shrext_cmds='.sl' 18125 dynamic_linker="$host_os dld.sl" 18126 shlibpath_var=SHLIB_PATH 18127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18129 soname_spec='$libname$release$shared_ext$major' 18130 ;; 18131 esac 18132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18133 postinstall_cmds='chmod 555 $lib' 18134 # or fails outright, so override atomically: 18135 install_override_mode=555 18136 ;; 18137 18138 interix[3-9]*) 18139 version_type=linux # correct to gnu/linux during the next big refactor 18140 need_lib_prefix=no 18141 need_version=no 18142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18143 soname_spec='$libname$release$shared_ext$major' 18144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18145 shlibpath_var=LD_LIBRARY_PATH 18146 shlibpath_overrides_runpath=no 18147 hardcode_into_libs=yes 18148 ;; 18149 18150 irix5* | irix6* | nonstopux*) 18151 case $host_os in 18152 nonstopux*) version_type=nonstopux ;; 18153 *) 18154 if test yes = "$lt_cv_prog_gnu_ld"; then 18155 version_type=linux # correct to gnu/linux during the next big refactor 18156 else 18157 version_type=irix 18158 fi ;; 18159 esac 18160 need_lib_prefix=no 18161 need_version=no 18162 soname_spec='$libname$release$shared_ext$major' 18163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18164 case $host_os in 18165 irix5* | nonstopux*) 18166 libsuff= shlibsuff= 18167 ;; 18168 *) 18169 case $LD in # libtool.m4 will add one of these switches to LD 18170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18171 libsuff= shlibsuff= libmagic=32-bit;; 18172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18173 libsuff=32 shlibsuff=N32 libmagic=N32;; 18174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18175 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18176 *) libsuff= shlibsuff= libmagic=never-match;; 18177 esac 18178 ;; 18179 esac 18180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18181 shlibpath_overrides_runpath=no 18182 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18183 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18184 hardcode_into_libs=yes 18185 ;; 18186 18187 # No shared lib support for Linux oldld, aout, or coff. 18188 linux*oldld* | linux*aout* | linux*coff*) 18189 dynamic_linker=no 18190 ;; 18191 18192 linux*android*) 18193 version_type=none # Android doesn't support versioned libraries. 18194 need_lib_prefix=no 18195 need_version=no 18196 library_names_spec='$libname$release$shared_ext' 18197 soname_spec='$libname$release$shared_ext' 18198 finish_cmds= 18199 shlibpath_var=LD_LIBRARY_PATH 18200 shlibpath_overrides_runpath=yes 18201 18202 # This implies no fast_install, which is unacceptable. 18203 # Some rework will be needed to allow for fast_install 18204 # before this can be enabled. 18205 hardcode_into_libs=yes 18206 18207 dynamic_linker='Android linker' 18208 # Don't embed -rpath directories since the linker doesn't support them. 18209 hardcode_libdir_flag_spec='-L$libdir' 18210 ;; 18211 18212 # This must be glibc/ELF. 18213 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18214 version_type=linux # correct to gnu/linux during the next big refactor 18215 need_lib_prefix=no 18216 need_version=no 18217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18218 soname_spec='$libname$release$shared_ext$major' 18219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18220 shlibpath_var=LD_LIBRARY_PATH 18221 shlibpath_overrides_runpath=no 18222 18223 # Some binutils ld are patched to set DT_RUNPATH 18224 if test ${lt_cv_shlibpath_overrides_runpath+y} 18225 then : 18226 printf %s "(cached) " >&6 18227 else $as_nop 18228 lt_cv_shlibpath_overrides_runpath=no 18229 save_LDFLAGS=$LDFLAGS 18230 save_libdir=$libdir 18231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18234 /* end confdefs.h. */ 18235 18236 int 18237 main (void) 18238 { 18239 18240 ; 18241 return 0; 18242 } 18243 _ACEOF 18244 if ac_fn_c_try_link "$LINENO" 18245 then : 18246 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18247 then : 18248 lt_cv_shlibpath_overrides_runpath=yes 18249 fi 18250 fi 18251 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18252 conftest$ac_exeext conftest.$ac_ext 18253 LDFLAGS=$save_LDFLAGS 18254 libdir=$save_libdir 18255 18256 fi 18257 18258 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18259 18260 # This implies no fast_install, which is unacceptable. 18261 # Some rework will be needed to allow for fast_install 18262 # before this can be enabled. 18263 hardcode_into_libs=yes 18264 18265 # Ideally, we could use ldconfig to report *all* directores which are 18266 # searched for libraries, however this is still not possible. Aside from not 18267 # being certain /sbin/ldconfig is available, command 18268 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18269 # even though it is searched at run-time. Try to do the best guess by 18270 # appending ld.so.conf contents (and includes) to the search path. 18271 if test -f /etc/ld.so.conf; then 18272 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' ' '` 18273 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18274 fi 18275 18276 # We used to test for /lib/ld.so.1 and disable shared libraries on 18277 # powerpc, because MkLinux only supported shared libraries with the 18278 # GNU dynamic linker. Since this was broken with cross compilers, 18279 # most powerpc-linux boxes support dynamic linking these days and 18280 # people can always --disable-shared, the test was removed, and we 18281 # assume the GNU/Linux dynamic linker is in use. 18282 dynamic_linker='GNU/Linux ld.so' 18283 ;; 18284 18285 netbsd*) 18286 version_type=sunos 18287 need_lib_prefix=no 18288 need_version=no 18289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18292 dynamic_linker='NetBSD (a.out) ld.so' 18293 else 18294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18295 soname_spec='$libname$release$shared_ext$major' 18296 dynamic_linker='NetBSD ld.elf_so' 18297 fi 18298 shlibpath_var=LD_LIBRARY_PATH 18299 shlibpath_overrides_runpath=yes 18300 hardcode_into_libs=yes 18301 ;; 18302 18303 newsos6) 18304 version_type=linux # correct to gnu/linux during the next big refactor 18305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18306 shlibpath_var=LD_LIBRARY_PATH 18307 shlibpath_overrides_runpath=yes 18308 ;; 18309 18310 *nto* | *qnx*) 18311 version_type=qnx 18312 need_lib_prefix=no 18313 need_version=no 18314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18315 soname_spec='$libname$release$shared_ext$major' 18316 shlibpath_var=LD_LIBRARY_PATH 18317 shlibpath_overrides_runpath=no 18318 hardcode_into_libs=yes 18319 dynamic_linker='ldqnx.so' 18320 ;; 18321 18322 openbsd* | bitrig*) 18323 version_type=sunos 18324 sys_lib_dlsearch_path_spec=/usr/lib 18325 need_lib_prefix=no 18326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18327 need_version=no 18328 else 18329 need_version=yes 18330 fi 18331 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18333 shlibpath_var=LD_LIBRARY_PATH 18334 shlibpath_overrides_runpath=yes 18335 ;; 18336 18337 os2*) 18338 libname_spec='$name' 18339 version_type=windows 18340 shrext_cmds=.dll 18341 need_version=no 18342 need_lib_prefix=no 18343 # OS/2 can only load a DLL with a base name of 8 characters or less. 18344 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18345 v=$($ECHO $release$versuffix | tr -d .-); 18346 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18347 $ECHO $n$v`$shared_ext' 18348 library_names_spec='${libname}_dll.$libext' 18349 dynamic_linker='OS/2 ld.exe' 18350 shlibpath_var=BEGINLIBPATH 18351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18353 postinstall_cmds='base_file=`basename \$file`~ 18354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18355 dldir=$destdir/`dirname \$dlpath`~ 18356 test -d \$dldir || mkdir -p \$dldir~ 18357 $install_prog $dir/$dlname \$dldir/$dlname~ 18358 chmod a+x \$dldir/$dlname~ 18359 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18360 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18361 fi' 18362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18363 dlpath=$dir/\$dldll~ 18364 $RM \$dlpath' 18365 ;; 18366 18367 osf3* | osf4* | osf5*) 18368 version_type=osf 18369 need_lib_prefix=no 18370 need_version=no 18371 soname_spec='$libname$release$shared_ext$major' 18372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18373 shlibpath_var=LD_LIBRARY_PATH 18374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18376 ;; 18377 18378 rdos*) 18379 dynamic_linker=no 18380 ;; 18381 18382 solaris*) 18383 version_type=linux # correct to gnu/linux during the next big refactor 18384 need_lib_prefix=no 18385 need_version=no 18386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18387 soname_spec='$libname$release$shared_ext$major' 18388 shlibpath_var=LD_LIBRARY_PATH 18389 shlibpath_overrides_runpath=yes 18390 hardcode_into_libs=yes 18391 # ldd complains unless libraries are executable 18392 postinstall_cmds='chmod +x $lib' 18393 ;; 18394 18395 sunos4*) 18396 version_type=sunos 18397 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18399 shlibpath_var=LD_LIBRARY_PATH 18400 shlibpath_overrides_runpath=yes 18401 if test yes = "$with_gnu_ld"; then 18402 need_lib_prefix=no 18403 fi 18404 need_version=yes 18405 ;; 18406 18407 sysv4 | sysv4.3*) 18408 version_type=linux # correct to gnu/linux during the next big refactor 18409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18410 soname_spec='$libname$release$shared_ext$major' 18411 shlibpath_var=LD_LIBRARY_PATH 18412 case $host_vendor in 18413 sni) 18414 shlibpath_overrides_runpath=no 18415 need_lib_prefix=no 18416 runpath_var=LD_RUN_PATH 18417 ;; 18418 siemens) 18419 need_lib_prefix=no 18420 ;; 18421 motorola) 18422 need_lib_prefix=no 18423 need_version=no 18424 shlibpath_overrides_runpath=no 18425 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18426 ;; 18427 esac 18428 ;; 18429 18430 sysv4*MP*) 18431 if test -d /usr/nec; then 18432 version_type=linux # correct to gnu/linux during the next big refactor 18433 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18434 soname_spec='$libname$shared_ext.$major' 18435 shlibpath_var=LD_LIBRARY_PATH 18436 fi 18437 ;; 18438 18439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18440 version_type=sco 18441 need_lib_prefix=no 18442 need_version=no 18443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18444 soname_spec='$libname$release$shared_ext$major' 18445 shlibpath_var=LD_LIBRARY_PATH 18446 shlibpath_overrides_runpath=yes 18447 hardcode_into_libs=yes 18448 if test yes = "$with_gnu_ld"; then 18449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18450 else 18451 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18452 case $host_os in 18453 sco3.2v5*) 18454 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18455 ;; 18456 esac 18457 fi 18458 sys_lib_dlsearch_path_spec='/usr/lib' 18459 ;; 18460 18461 tpf*) 18462 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18463 version_type=linux # correct to gnu/linux during the next big refactor 18464 need_lib_prefix=no 18465 need_version=no 18466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18467 shlibpath_var=LD_LIBRARY_PATH 18468 shlibpath_overrides_runpath=no 18469 hardcode_into_libs=yes 18470 ;; 18471 18472 uts4*) 18473 version_type=linux # correct to gnu/linux during the next big refactor 18474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18475 soname_spec='$libname$release$shared_ext$major' 18476 shlibpath_var=LD_LIBRARY_PATH 18477 ;; 18478 18479 *) 18480 dynamic_linker=no 18481 ;; 18482 esac 18483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18484 printf "%s\n" "$dynamic_linker" >&6; } 18485 test no = "$dynamic_linker" && can_build_shared=no 18486 18487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18488 if test yes = "$GCC"; then 18489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18490 fi 18491 18492 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18493 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18494 fi 18495 18496 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18497 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18498 fi 18499 18500 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18501 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18502 18503 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18504 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18505 18506 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18507 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18606 printf %s "checking how to hardcode library paths into programs... " >&6; } 18607 hardcode_action= 18608 if test -n "$hardcode_libdir_flag_spec" || 18609 test -n "$runpath_var" || 18610 test yes = "$hardcode_automatic"; then 18611 18612 # We can hardcode non-existent directories. 18613 if test no != "$hardcode_direct" && 18614 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18615 # have to relink, otherwise we might link with an installed library 18616 # when we should be linking with a yet-to-be-installed one 18617 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18618 test no != "$hardcode_minus_L"; then 18619 # Linking always hardcodes the temporary library directory. 18620 hardcode_action=relink 18621 else 18622 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18623 hardcode_action=immediate 18624 fi 18625 else 18626 # We cannot hardcode anything, or else we can only hardcode existing 18627 # directories. 18628 hardcode_action=unsupported 18629 fi 18630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18631 printf "%s\n" "$hardcode_action" >&6; } 18632 18633 if test relink = "$hardcode_action" || 18634 test yes = "$inherit_rpath"; then 18635 # Fast installation is not supported 18636 enable_fast_install=no 18637 elif test yes = "$shlibpath_overrides_runpath" || 18638 test no = "$enable_shared"; then 18639 # Fast installation is not necessary 18640 enable_fast_install=needless 18641 fi 18642 18643 18644 18645 18646 18647 18648 if test yes != "$enable_dlopen"; then 18649 enable_dlopen=unknown 18650 enable_dlopen_self=unknown 18651 enable_dlopen_self_static=unknown 18652 else 18653 lt_cv_dlopen=no 18654 lt_cv_dlopen_libs= 18655 18656 case $host_os in 18657 beos*) 18658 lt_cv_dlopen=load_add_on 18659 lt_cv_dlopen_libs= 18660 lt_cv_dlopen_self=yes 18661 ;; 18662 18663 mingw* | pw32* | cegcc*) 18664 lt_cv_dlopen=LoadLibrary 18665 lt_cv_dlopen_libs= 18666 ;; 18667 18668 cygwin*) 18669 lt_cv_dlopen=dlopen 18670 lt_cv_dlopen_libs= 18671 ;; 18672 18673 darwin*) 18674 # if libdl is installed we need to link against it 18675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18676 printf %s "checking for dlopen in -ldl... " >&6; } 18677 if test ${ac_cv_lib_dl_dlopen+y} 18678 then : 18679 printf %s "(cached) " >&6 18680 else $as_nop 18681 ac_check_lib_save_LIBS=$LIBS 18682 LIBS="-ldl $LIBS" 18683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18684 /* end confdefs.h. */ 18685 18686 /* Override any GCC internal prototype to avoid an error. 18687 Use char because int might match the return type of a GCC 18688 builtin and then its argument prototype would still apply. */ 18689 char dlopen (); 18690 int 18691 main (void) 18692 { 18693 return dlopen (); 18694 ; 18695 return 0; 18696 } 18697 _ACEOF 18698 if ac_fn_c_try_link "$LINENO" 18699 then : 18700 ac_cv_lib_dl_dlopen=yes 18701 else $as_nop 18702 ac_cv_lib_dl_dlopen=no 18703 fi 18704 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18705 conftest$ac_exeext conftest.$ac_ext 18706 LIBS=$ac_check_lib_save_LIBS 18707 fi 18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18709 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18710 if test "x$ac_cv_lib_dl_dlopen" = xyes 18711 then : 18712 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18713 else $as_nop 18714 18715 lt_cv_dlopen=dyld 18716 lt_cv_dlopen_libs= 18717 lt_cv_dlopen_self=yes 18718 18719 fi 18720 18721 ;; 18722 18723 tpf*) 18724 # Don't try to run any link tests for TPF. We know it's impossible 18725 # because TPF is a cross-compiler, and we know how we open DSOs. 18726 lt_cv_dlopen=dlopen 18727 lt_cv_dlopen_libs= 18728 lt_cv_dlopen_self=no 18729 ;; 18730 18731 *) 18732 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18733 if test "x$ac_cv_func_shl_load" = xyes 18734 then : 18735 lt_cv_dlopen=shl_load 18736 else $as_nop 18737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18738 printf %s "checking for shl_load in -ldld... " >&6; } 18739 if test ${ac_cv_lib_dld_shl_load+y} 18740 then : 18741 printf %s "(cached) " >&6 18742 else $as_nop 18743 ac_check_lib_save_LIBS=$LIBS 18744 LIBS="-ldld $LIBS" 18745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18746 /* end confdefs.h. */ 18747 18748 /* Override any GCC internal prototype to avoid an error. 18749 Use char because int might match the return type of a GCC 18750 builtin and then its argument prototype would still apply. */ 18751 char shl_load (); 18752 int 18753 main (void) 18754 { 18755 return shl_load (); 18756 ; 18757 return 0; 18758 } 18759 _ACEOF 18760 if ac_fn_c_try_link "$LINENO" 18761 then : 18762 ac_cv_lib_dld_shl_load=yes 18763 else $as_nop 18764 ac_cv_lib_dld_shl_load=no 18765 fi 18766 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18767 conftest$ac_exeext conftest.$ac_ext 18768 LIBS=$ac_check_lib_save_LIBS 18769 fi 18770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18771 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18772 if test "x$ac_cv_lib_dld_shl_load" = xyes 18773 then : 18774 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18775 else $as_nop 18776 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18777 if test "x$ac_cv_func_dlopen" = xyes 18778 then : 18779 lt_cv_dlopen=dlopen 18780 else $as_nop 18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18782 printf %s "checking for dlopen in -ldl... " >&6; } 18783 if test ${ac_cv_lib_dl_dlopen+y} 18784 then : 18785 printf %s "(cached) " >&6 18786 else $as_nop 18787 ac_check_lib_save_LIBS=$LIBS 18788 LIBS="-ldl $LIBS" 18789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18790 /* end confdefs.h. */ 18791 18792 /* Override any GCC internal prototype to avoid an error. 18793 Use char because int might match the return type of a GCC 18794 builtin and then its argument prototype would still apply. */ 18795 char dlopen (); 18796 int 18797 main (void) 18798 { 18799 return dlopen (); 18800 ; 18801 return 0; 18802 } 18803 _ACEOF 18804 if ac_fn_c_try_link "$LINENO" 18805 then : 18806 ac_cv_lib_dl_dlopen=yes 18807 else $as_nop 18808 ac_cv_lib_dl_dlopen=no 18809 fi 18810 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18811 conftest$ac_exeext conftest.$ac_ext 18812 LIBS=$ac_check_lib_save_LIBS 18813 fi 18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18815 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18816 if test "x$ac_cv_lib_dl_dlopen" = xyes 18817 then : 18818 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18819 else $as_nop 18820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18821 printf %s "checking for dlopen in -lsvld... " >&6; } 18822 if test ${ac_cv_lib_svld_dlopen+y} 18823 then : 18824 printf %s "(cached) " >&6 18825 else $as_nop 18826 ac_check_lib_save_LIBS=$LIBS 18827 LIBS="-lsvld $LIBS" 18828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18829 /* end confdefs.h. */ 18830 18831 /* Override any GCC internal prototype to avoid an error. 18832 Use char because int might match the return type of a GCC 18833 builtin and then its argument prototype would still apply. */ 18834 char dlopen (); 18835 int 18836 main (void) 18837 { 18838 return dlopen (); 18839 ; 18840 return 0; 18841 } 18842 _ACEOF 18843 if ac_fn_c_try_link "$LINENO" 18844 then : 18845 ac_cv_lib_svld_dlopen=yes 18846 else $as_nop 18847 ac_cv_lib_svld_dlopen=no 18848 fi 18849 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18850 conftest$ac_exeext conftest.$ac_ext 18851 LIBS=$ac_check_lib_save_LIBS 18852 fi 18853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18854 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18855 if test "x$ac_cv_lib_svld_dlopen" = xyes 18856 then : 18857 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18858 else $as_nop 18859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18860 printf %s "checking for dld_link in -ldld... " >&6; } 18861 if test ${ac_cv_lib_dld_dld_link+y} 18862 then : 18863 printf %s "(cached) " >&6 18864 else $as_nop 18865 ac_check_lib_save_LIBS=$LIBS 18866 LIBS="-ldld $LIBS" 18867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18868 /* end confdefs.h. */ 18869 18870 /* Override any GCC internal prototype to avoid an error. 18871 Use char because int might match the return type of a GCC 18872 builtin and then its argument prototype would still apply. */ 18873 char dld_link (); 18874 int 18875 main (void) 18876 { 18877 return dld_link (); 18878 ; 18879 return 0; 18880 } 18881 _ACEOF 18882 if ac_fn_c_try_link "$LINENO" 18883 then : 18884 ac_cv_lib_dld_dld_link=yes 18885 else $as_nop 18886 ac_cv_lib_dld_dld_link=no 18887 fi 18888 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18889 conftest$ac_exeext conftest.$ac_ext 18890 LIBS=$ac_check_lib_save_LIBS 18891 fi 18892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18893 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18894 if test "x$ac_cv_lib_dld_dld_link" = xyes 18895 then : 18896 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18897 fi 18898 18899 18900 fi 18901 18902 18903 fi 18904 18905 18906 fi 18907 18908 18909 fi 18910 18911 18912 fi 18913 18914 ;; 18915 esac 18916 18917 if test no = "$lt_cv_dlopen"; then 18918 enable_dlopen=no 18919 else 18920 enable_dlopen=yes 18921 fi 18922 18923 case $lt_cv_dlopen in 18924 dlopen) 18925 save_CPPFLAGS=$CPPFLAGS 18926 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18927 18928 save_LDFLAGS=$LDFLAGS 18929 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18930 18931 save_LIBS=$LIBS 18932 LIBS="$lt_cv_dlopen_libs $LIBS" 18933 18934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18935 printf %s "checking whether a program can dlopen itself... " >&6; } 18936 if test ${lt_cv_dlopen_self+y} 18937 then : 18938 printf %s "(cached) " >&6 18939 else $as_nop 18940 if test yes = "$cross_compiling"; then : 18941 lt_cv_dlopen_self=cross 18942 else 18943 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18944 lt_status=$lt_dlunknown 18945 cat > conftest.$ac_ext <<_LT_EOF 18946 #line $LINENO "configure" 18947 #include "confdefs.h" 18948 18949 #if HAVE_DLFCN_H 18950 #include <dlfcn.h> 18951 #endif 18952 18953 #include <stdio.h> 18954 18955 #ifdef RTLD_GLOBAL 18956 # define LT_DLGLOBAL RTLD_GLOBAL 18957 #else 18958 # ifdef DL_GLOBAL 18959 # define LT_DLGLOBAL DL_GLOBAL 18960 # else 18961 # define LT_DLGLOBAL 0 18962 # endif 18963 #endif 18964 18965 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18966 find out it does not work in some platform. */ 18967 #ifndef LT_DLLAZY_OR_NOW 18968 # ifdef RTLD_LAZY 18969 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18970 # else 18971 # ifdef DL_LAZY 18972 # define LT_DLLAZY_OR_NOW DL_LAZY 18973 # else 18974 # ifdef RTLD_NOW 18975 # define LT_DLLAZY_OR_NOW RTLD_NOW 18976 # else 18977 # ifdef DL_NOW 18978 # define LT_DLLAZY_OR_NOW DL_NOW 18979 # else 18980 # define LT_DLLAZY_OR_NOW 0 18981 # endif 18982 # endif 18983 # endif 18984 # endif 18985 #endif 18986 18987 /* When -fvisibility=hidden is used, assume the code has been annotated 18988 correspondingly for the symbols needed. */ 18989 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18990 int fnord () __attribute__((visibility("default"))); 18991 #endif 18992 18993 int fnord () { return 42; } 18994 int main () 18995 { 18996 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18997 int status = $lt_dlunknown; 18998 18999 if (self) 19000 { 19001 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19002 else 19003 { 19004 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19005 else puts (dlerror ()); 19006 } 19007 /* dlclose (self); */ 19008 } 19009 else 19010 puts (dlerror ()); 19011 19012 return status; 19013 } 19014 _LT_EOF 19015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19016 (eval $ac_link) 2>&5 19017 ac_status=$? 19018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19019 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19020 (./conftest; exit; ) >&5 2>/dev/null 19021 lt_status=$? 19022 case x$lt_status in 19023 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19024 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19025 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19026 esac 19027 else : 19028 # compilation failed 19029 lt_cv_dlopen_self=no 19030 fi 19031 fi 19032 rm -fr conftest* 19033 19034 19035 fi 19036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19037 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19038 19039 if test yes = "$lt_cv_dlopen_self"; then 19040 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19042 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19043 if test ${lt_cv_dlopen_self_static+y} 19044 then : 19045 printf %s "(cached) " >&6 19046 else $as_nop 19047 if test yes = "$cross_compiling"; then : 19048 lt_cv_dlopen_self_static=cross 19049 else 19050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19051 lt_status=$lt_dlunknown 19052 cat > conftest.$ac_ext <<_LT_EOF 19053 #line $LINENO "configure" 19054 #include "confdefs.h" 19055 19056 #if HAVE_DLFCN_H 19057 #include <dlfcn.h> 19058 #endif 19059 19060 #include <stdio.h> 19061 19062 #ifdef RTLD_GLOBAL 19063 # define LT_DLGLOBAL RTLD_GLOBAL 19064 #else 19065 # ifdef DL_GLOBAL 19066 # define LT_DLGLOBAL DL_GLOBAL 19067 # else 19068 # define LT_DLGLOBAL 0 19069 # endif 19070 #endif 19071 19072 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19073 find out it does not work in some platform. */ 19074 #ifndef LT_DLLAZY_OR_NOW 19075 # ifdef RTLD_LAZY 19076 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19077 # else 19078 # ifdef DL_LAZY 19079 # define LT_DLLAZY_OR_NOW DL_LAZY 19080 # else 19081 # ifdef RTLD_NOW 19082 # define LT_DLLAZY_OR_NOW RTLD_NOW 19083 # else 19084 # ifdef DL_NOW 19085 # define LT_DLLAZY_OR_NOW DL_NOW 19086 # else 19087 # define LT_DLLAZY_OR_NOW 0 19088 # endif 19089 # endif 19090 # endif 19091 # endif 19092 #endif 19093 19094 /* When -fvisibility=hidden is used, assume the code has been annotated 19095 correspondingly for the symbols needed. */ 19096 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19097 int fnord () __attribute__((visibility("default"))); 19098 #endif 19099 19100 int fnord () { return 42; } 19101 int main () 19102 { 19103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19104 int status = $lt_dlunknown; 19105 19106 if (self) 19107 { 19108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19109 else 19110 { 19111 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19112 else puts (dlerror ()); 19113 } 19114 /* dlclose (self); */ 19115 } 19116 else 19117 puts (dlerror ()); 19118 19119 return status; 19120 } 19121 _LT_EOF 19122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19123 (eval $ac_link) 2>&5 19124 ac_status=$? 19125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19126 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19127 (./conftest; exit; ) >&5 2>/dev/null 19128 lt_status=$? 19129 case x$lt_status in 19130 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19131 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19132 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19133 esac 19134 else : 19135 # compilation failed 19136 lt_cv_dlopen_self_static=no 19137 fi 19138 fi 19139 rm -fr conftest* 19140 19141 19142 fi 19143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19144 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19145 fi 19146 19147 CPPFLAGS=$save_CPPFLAGS 19148 LDFLAGS=$save_LDFLAGS 19149 LIBS=$save_LIBS 19150 ;; 19151 esac 19152 19153 case $lt_cv_dlopen_self in 19154 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19155 *) enable_dlopen_self=unknown ;; 19156 esac 19157 19158 case $lt_cv_dlopen_self_static in 19159 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19160 *) enable_dlopen_self_static=unknown ;; 19161 esac 19162 fi 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 striplib= 19181 old_striplib= 19182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19183 printf %s "checking whether stripping libraries is possible... " >&6; } 19184 if test -z "$STRIP"; then 19185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19186 printf "%s\n" "no" >&6; } 19187 else 19188 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19189 old_striplib="$STRIP --strip-debug" 19190 striplib="$STRIP --strip-unneeded" 19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19192 printf "%s\n" "yes" >&6; } 19193 else 19194 case $host_os in 19195 darwin*) 19196 # FIXME - insert some real tests, host_os isn't really good enough 19197 striplib="$STRIP -x" 19198 old_striplib="$STRIP -S" 19199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19200 printf "%s\n" "yes" >&6; } 19201 ;; 19202 freebsd*) 19203 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19204 old_striplib="$STRIP --strip-debug" 19205 striplib="$STRIP --strip-unneeded" 19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19207 printf "%s\n" "yes" >&6; } 19208 else 19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19210 printf "%s\n" "no" >&6; } 19211 fi 19212 ;; 19213 *) 19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19215 printf "%s\n" "no" >&6; } 19216 ;; 19217 esac 19218 fi 19219 fi 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 # Report what library types will actually be built 19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19234 printf %s "checking if libtool supports shared libraries... " >&6; } 19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19236 printf "%s\n" "$can_build_shared" >&6; } 19237 19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19239 printf %s "checking whether to build shared libraries... " >&6; } 19240 test no = "$can_build_shared" && enable_shared=no 19241 19242 # On AIX, shared libraries and static libraries use the same namespace, and 19243 # are all built from PIC. 19244 case $host_os in 19245 aix3*) 19246 test yes = "$enable_shared" && enable_static=no 19247 if test -n "$RANLIB"; then 19248 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19249 postinstall_cmds='$RANLIB $lib' 19250 fi 19251 ;; 19252 19253 aix[4-9]*) 19254 if test ia64 != "$host_cpu"; then 19255 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19256 yes,aix,yes) ;; # shared object as lib.so file only 19257 yes,svr4,*) ;; # shared object as lib.so archive member only 19258 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19259 esac 19260 fi 19261 ;; 19262 esac 19263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19264 printf "%s\n" "$enable_shared" >&6; } 19265 19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19267 printf %s "checking whether to build static libraries... " >&6; } 19268 # Make sure either enable_shared or enable_static is yes. 19269 test yes = "$enable_shared" || enable_static=yes 19270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19271 printf "%s\n" "$enable_static" >&6; } 19272 19273 19274 19275 19276 fi 19277 ac_ext=c 19278 ac_cpp='$CPP $CPPFLAGS' 19279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19281 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19282 19283 CC=$lt_save_CC 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 ac_config_commands="$ac_config_commands libtool" 19300 19301 19302 19303 19304 # Only expand once: 19305 19306 19307 19308 19309 19310 # Define a configure option for an alternate module directory 19311 19312 # Check whether --with-xorg-module-dir was given. 19313 if test ${with_xorg_module_dir+y} 19314 then : 19315 withval=$with_xorg_module_dir; moduledir="$withval" 19316 else $as_nop 19317 moduledir="$libdir/xorg/modules" 19318 fi 19319 19320 19321 # Check whether --enable-dri was given. 19322 if test ${enable_dri+y} 19323 then : 19324 enableval=$enable_dri; DRI="$enableval" 19325 else $as_nop 19326 DRI=auto 19327 fi 19328 19329 # Check whether --enable-exa was given. 19330 if test ${enable_exa+y} 19331 then : 19332 enableval=$enable_exa; EXA="$enableval" 19333 else $as_nop 19334 EXA=yes 19335 fi 19336 19337 19338 # Store the list of server defined optional extensions in REQUIRED_MODULES 19339 19340 19341 SAVE_CFLAGS="$CFLAGS" 19342 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19344 /* end confdefs.h. */ 19345 19346 #include "xorg-server.h" 19347 #if !defined RANDR 19348 #error RANDR not defined 19349 #endif 19350 19351 int 19352 main (void) 19353 { 19354 19355 ; 19356 return 0; 19357 } 19358 _ACEOF 19359 if ac_fn_c_try_compile "$LINENO" 19360 then : 19361 _EXT_CHECK=yes 19362 else $as_nop 19363 _EXT_CHECK=no 19364 fi 19365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19366 CFLAGS="$SAVE_CFLAGS" 19367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19368 printf %s "checking if RANDR is defined... " >&6; } 19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19370 printf "%s\n" "$_EXT_CHECK" >&6; } 19371 if test "$_EXT_CHECK" != no; then 19372 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19373 fi 19374 19375 19376 19377 SAVE_CFLAGS="$CFLAGS" 19378 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19380 /* end confdefs.h. */ 19381 19382 #include "xorg-server.h" 19383 #if !defined RENDER 19384 #error RENDER not defined 19385 #endif 19386 19387 int 19388 main (void) 19389 { 19390 19391 ; 19392 return 0; 19393 } 19394 _ACEOF 19395 if ac_fn_c_try_compile "$LINENO" 19396 then : 19397 _EXT_CHECK=yes 19398 else $as_nop 19399 _EXT_CHECK=no 19400 fi 19401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19402 CFLAGS="$SAVE_CFLAGS" 19403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19404 printf %s "checking if RENDER is defined... " >&6; } 19405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19406 printf "%s\n" "$_EXT_CHECK" >&6; } 19407 if test "$_EXT_CHECK" != no; then 19408 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19409 fi 19410 19411 19412 19413 SAVE_CFLAGS="$CFLAGS" 19414 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19416 /* end confdefs.h. */ 19417 19418 #include "xorg-server.h" 19419 #if !defined XV 19420 #error XV not defined 19421 #endif 19422 19423 int 19424 main (void) 19425 { 19426 19427 ; 19428 return 0; 19429 } 19430 _ACEOF 19431 if ac_fn_c_try_compile "$LINENO" 19432 then : 19433 _EXT_CHECK=yes 19434 else $as_nop 19435 _EXT_CHECK=no 19436 fi 19437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19438 CFLAGS="$SAVE_CFLAGS" 19439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19440 printf %s "checking if XV is defined... " >&6; } 19441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19442 printf "%s\n" "$_EXT_CHECK" >&6; } 19443 if test "$_EXT_CHECK" != no; then 19444 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19445 fi 19446 19447 19448 19449 SAVE_CFLAGS="$CFLAGS" 19450 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19452 /* end confdefs.h. */ 19453 19454 #include "xorg-server.h" 19455 #if !defined DPMSExtension 19456 #error DPMSExtension not defined 19457 #endif 19458 19459 int 19460 main (void) 19461 { 19462 19463 ; 19464 return 0; 19465 } 19466 _ACEOF 19467 if ac_fn_c_try_compile "$LINENO" 19468 then : 19469 _EXT_CHECK=yes 19470 else $as_nop 19471 _EXT_CHECK=no 19472 fi 19473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19474 CFLAGS="$SAVE_CFLAGS" 19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19476 printf %s "checking if DPMSExtension is defined... " >&6; } 19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19478 printf "%s\n" "$_EXT_CHECK" >&6; } 19479 if test "$_EXT_CHECK" != no; then 19480 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19481 fi 19482 19483 19484 # Obtain compiler/linker options for the driver dependencies 19485 19486 pkg_failed=no 19487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19488 printf %s "checking for XORG... " >&6; } 19489 19490 if test -n "$XORG_CFLAGS"; then 19491 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19492 elif test -n "$PKG_CONFIG"; then 19493 if test -n "$PKG_CONFIG" && \ 19494 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19495 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 19496 ac_status=$? 19497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19498 test $ac_status = 0; }; then 19499 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19500 test "x$?" != "x0" && pkg_failed=yes 19501 else 19502 pkg_failed=yes 19503 fi 19504 else 19505 pkg_failed=untried 19506 fi 19507 if test -n "$XORG_LIBS"; then 19508 pkg_cv_XORG_LIBS="$XORG_LIBS" 19509 elif test -n "$PKG_CONFIG"; then 19510 if test -n "$PKG_CONFIG" && \ 19511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19512 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5 19513 ac_status=$? 19514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19515 test $ac_status = 0; }; then 19516 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19517 test "x$?" != "x0" && pkg_failed=yes 19518 else 19519 pkg_failed=yes 19520 fi 19521 else 19522 pkg_failed=untried 19523 fi 19524 19525 19526 19527 if test $pkg_failed = yes; then 19528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19529 printf "%s\n" "no" >&6; } 19530 19531 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19532 _pkg_short_errors_supported=yes 19533 else 19534 _pkg_short_errors_supported=no 19535 fi 19536 if test $_pkg_short_errors_supported = yes; then 19537 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19538 else 19539 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19540 fi 19541 # Put the nasty error message in config.log where it belongs 19542 echo "$XORG_PKG_ERRORS" >&5 19543 19544 as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met: 19545 19546 $XORG_PKG_ERRORS 19547 19548 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19549 installed software in a non-standard prefix. 19550 19551 Alternatively, you may set the environment variables XORG_CFLAGS 19552 and XORG_LIBS to avoid the need to call pkg-config. 19553 See the pkg-config man page for more details." "$LINENO" 5 19554 elif test $pkg_failed = untried; then 19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19556 printf "%s\n" "no" >&6; } 19557 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19558 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19559 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19560 is in your PATH or set the PKG_CONFIG environment variable to the full 19561 path to pkg-config. 19562 19563 Alternatively, you may set the environment variables XORG_CFLAGS 19564 and XORG_LIBS to avoid the need to call pkg-config. 19565 See the pkg-config man page for more details. 19566 19567 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19568 See \`config.log' for more details" "$LINENO" 5; } 19569 else 19570 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19571 XORG_LIBS=$pkg_cv_XORG_LIBS 19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19573 printf "%s\n" "yes" >&6; } 19574 19575 fi 19576 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 19577 19578 # Checks for libraries. 19579 19580 if test "x$DRI" != xno; then 19581 if test "$cross_compiling" = no; then 19582 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 19583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 19584 printf %s "checking for ${sdkdir}/dri.h... " >&6; } 19585 if eval test \${$as_ac_File+y} 19586 then : 19587 printf %s "(cached) " >&6 19588 else $as_nop 19589 test "$cross_compiling" = yes && 19590 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19591 if test -r "${sdkdir}/dri.h"; then 19592 eval "$as_ac_File=yes" 19593 else 19594 eval "$as_ac_File=no" 19595 fi 19596 fi 19597 eval ac_res=\$$as_ac_File 19598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19599 printf "%s\n" "$ac_res" >&6; } 19600 if eval test \"x\$"$as_ac_File"\" = x"yes" 19601 then : 19602 have_dri_h="yes" 19603 else $as_nop 19604 have_dri_h="no" 19605 fi 19606 19607 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 19608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 19609 printf %s "checking for ${sdkdir}/sarea.h... " >&6; } 19610 if eval test \${$as_ac_File+y} 19611 then : 19612 printf %s "(cached) " >&6 19613 else $as_nop 19614 test "$cross_compiling" = yes && 19615 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19616 if test -r "${sdkdir}/sarea.h"; then 19617 eval "$as_ac_File=yes" 19618 else 19619 eval "$as_ac_File=no" 19620 fi 19621 fi 19622 eval ac_res=\$$as_ac_File 19623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19624 printf "%s\n" "$ac_res" >&6; } 19625 if eval test \"x\$"$as_ac_File"\" = x"yes" 19626 then : 19627 have_sarea_h="yes" 19628 else $as_nop 19629 have_sarea_h="no" 19630 fi 19631 19632 as_ac_File=`printf "%s\n" "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 19633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 19634 printf %s "checking for ${sdkdir}/dristruct.h... " >&6; } 19635 if eval test \${$as_ac_File+y} 19636 then : 19637 printf %s "(cached) " >&6 19638 else $as_nop 19639 test "$cross_compiling" = yes && 19640 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19641 if test -r "${sdkdir}/dristruct.h"; then 19642 eval "$as_ac_File=yes" 19643 else 19644 eval "$as_ac_File=no" 19645 fi 19646 fi 19647 eval ac_res=\$$as_ac_File 19648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19649 printf "%s\n" "$ac_res" >&6; } 19650 if eval test \"x\$"$as_ac_File"\" = x"yes" 19651 then : 19652 have_dristruct_h="yes" 19653 else $as_nop 19654 have_dristruct_h="no" 19655 fi 19656 19657 else 19658 have_dri_h="yes" 19659 have_sarea_h="yes" 19660 have_dristruct_h="yes" 19661 fi 19662 fi 19663 19664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 19665 printf %s "checking whether to include DRI support... " >&6; } 19666 if test "x$DRI" = xauto; then 19667 if test "x$have_dri_h" = xyes && \ 19668 test "x$have_sarea_h" = xyes && \ 19669 test "x$have_dristruct_h" = xyes; then 19670 DRI="yes" 19671 else 19672 DRI="no" 19673 fi 19674 fi 19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 19676 printf "%s\n" "$DRI" >&6; } 19677 19678 if test "x$DRI" = xyes; then 19679 DRI_TRUE= 19680 DRI_FALSE='#' 19681 else 19682 DRI_TRUE='#' 19683 DRI_FALSE= 19684 fi 19685 19686 if test "x$DRI" = xyes; then 19687 19688 pkg_failed=no 19689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 19690 printf %s "checking for DRI... " >&6; } 19691 19692 if test -n "$DRI_CFLAGS"; then 19693 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 19694 elif test -n "$PKG_CONFIG"; then 19695 if test -n "$PKG_CONFIG" && \ 19696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 19697 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 19698 ac_status=$? 19699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19700 test $ac_status = 0; }; then 19701 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 19702 test "x$?" != "x0" && pkg_failed=yes 19703 else 19704 pkg_failed=yes 19705 fi 19706 else 19707 pkg_failed=untried 19708 fi 19709 if test -n "$DRI_LIBS"; then 19710 pkg_cv_DRI_LIBS="$DRI_LIBS" 19711 elif test -n "$PKG_CONFIG"; then 19712 if test -n "$PKG_CONFIG" && \ 19713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 19714 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 19715 ac_status=$? 19716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19717 test $ac_status = 0; }; then 19718 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 19719 test "x$?" != "x0" && pkg_failed=yes 19720 else 19721 pkg_failed=yes 19722 fi 19723 else 19724 pkg_failed=untried 19725 fi 19726 19727 19728 19729 if test $pkg_failed = yes; then 19730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19731 printf "%s\n" "no" >&6; } 19732 19733 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19734 _pkg_short_errors_supported=yes 19735 else 19736 _pkg_short_errors_supported=no 19737 fi 19738 if test $_pkg_short_errors_supported = yes; then 19739 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 19740 else 19741 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 19742 fi 19743 # Put the nasty error message in config.log where it belongs 19744 echo "$DRI_PKG_ERRORS" >&5 19745 19746 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met: 19747 19748 $DRI_PKG_ERRORS 19749 19750 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19751 installed software in a non-standard prefix. 19752 19753 Alternatively, you may set the environment variables DRI_CFLAGS 19754 and DRI_LIBS to avoid the need to call pkg-config. 19755 See the pkg-config man page for more details." "$LINENO" 5 19756 elif test $pkg_failed = untried; then 19757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19758 printf "%s\n" "no" >&6; } 19759 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19760 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19761 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19762 is in your PATH or set the PKG_CONFIG environment variable to the full 19763 path to pkg-config. 19764 19765 Alternatively, you may set the environment variables DRI_CFLAGS 19766 and DRI_LIBS to avoid the need to call pkg-config. 19767 See the pkg-config man page for more details. 19768 19769 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19770 See \`config.log' for more details" "$LINENO" 5; } 19771 else 19772 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 19773 DRI_LIBS=$pkg_cv_DRI_LIBS 19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19775 printf "%s\n" "yes" >&6; } 19776 19777 fi 19778 19779 printf "%s\n" "#define MGADRI 1" >>confdefs.h 19780 19781 19782 printf "%s\n" "#define MGADRI_DEVEL 1" >>confdefs.h 19783 19784 fi 19785 19786 save_CFLAGS="$CFLAGS" 19787 CFLAGS="$XORG_CFLAGS" 19788 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19789 " "$ac_c_undeclared_builtin_options" "CFLAGS" 19790 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19791 then : 19792 XSERVER_LIBPCIACCESS=yes 19793 else $as_nop 19794 XSERVER_LIBPCIACCESS=no 19795 fi 19796 CFLAGS="$save_CFLAGS" 19797 19798 save_CFLAGS="$CFLAGS" 19799 CFLAGS="$XORG_CFLAGS" 19800 ac_fn_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include <X11/extensions/randr.h> 19801 #include \"xorg-server.h\" 19802 #include \"xf86Modes.h\" 19803 " "$ac_c_undeclared_builtin_options" "CFLAGS" 19804 if test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes 19805 then : 19806 19807 printf "%s\n" "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h 19808 19809 fi 19810 CFLAGS="$save_CFLAGS" 19811 19812 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19813 19814 pkg_failed=no 19815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19816 printf %s "checking for PCIACCESS... " >&6; } 19817 19818 if test -n "$PCIACCESS_CFLAGS"; then 19819 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19820 elif test -n "$PKG_CONFIG"; then 19821 if test -n "$PKG_CONFIG" && \ 19822 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19823 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19824 ac_status=$? 19825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19826 test $ac_status = 0; }; then 19827 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 19828 test "x$?" != "x0" && pkg_failed=yes 19829 else 19830 pkg_failed=yes 19831 fi 19832 else 19833 pkg_failed=untried 19834 fi 19835 if test -n "$PCIACCESS_LIBS"; then 19836 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19837 elif test -n "$PKG_CONFIG"; then 19838 if test -n "$PKG_CONFIG" && \ 19839 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19840 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19841 ac_status=$? 19842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19843 test $ac_status = 0; }; then 19844 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 19845 test "x$?" != "x0" && pkg_failed=yes 19846 else 19847 pkg_failed=yes 19848 fi 19849 else 19850 pkg_failed=untried 19851 fi 19852 19853 19854 19855 if test $pkg_failed = yes; then 19856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19857 printf "%s\n" "no" >&6; } 19858 19859 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19860 _pkg_short_errors_supported=yes 19861 else 19862 _pkg_short_errors_supported=no 19863 fi 19864 if test $_pkg_short_errors_supported = yes; then 19865 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19866 else 19867 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19868 fi 19869 # Put the nasty error message in config.log where it belongs 19870 echo "$PCIACCESS_PKG_ERRORS" >&5 19871 19872 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 19873 19874 $PCIACCESS_PKG_ERRORS 19875 19876 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19877 installed software in a non-standard prefix. 19878 19879 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19880 and PCIACCESS_LIBS to avoid the need to call pkg-config. 19881 See the pkg-config man page for more details." "$LINENO" 5 19882 elif test $pkg_failed = untried; then 19883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19884 printf "%s\n" "no" >&6; } 19885 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19886 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19887 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19888 is in your PATH or set the PKG_CONFIG environment variable to the full 19889 path to pkg-config. 19890 19891 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19892 and PCIACCESS_LIBS to avoid the need to call pkg-config. 19893 See the pkg-config man page for more details. 19894 19895 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19896 See \`config.log' for more details" "$LINENO" 5; } 19897 else 19898 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19899 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19901 printf "%s\n" "yes" >&6; } 19902 19903 fi 19904 fi 19905 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19906 XSERVER_LIBPCIACCESS_TRUE= 19907 XSERVER_LIBPCIACCESS_FALSE='#' 19908 else 19909 XSERVER_LIBPCIACCESS_TRUE='#' 19910 XSERVER_LIBPCIACCESS_FALSE= 19911 fi 19912 19913 19914 19915 # Check whether --enable-xaa was given. 19916 if test ${enable_xaa+y} 19917 then : 19918 enableval=$enable_xaa; XAA="$enableval" 19919 else $as_nop 19920 XAA=auto 19921 fi 19922 19923 if test "x$XAA" != xno; then 19924 save_CFLAGS=$CFLAGS 19925 save_CPPFLAGS=$CPPFLAGS 19926 CFLAGS=$XORG_CFLAGS 19927 CPPFLAGS="$XORG_CFLAGS" 19928 for ac_header in xaa.h 19929 do : 19930 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19931 if test "x$ac_cv_header_xaa_h" = xyes 19932 then : 19933 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 19934 XAA=yes 19935 else $as_nop 19936 XAA=no 19937 fi 19938 19939 done 19940 CFLAGS=$save_CFLAGS 19941 CPPFLAGS=$save_CPPFLAGS 19942 fi 19943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19944 printf %s "checking whether to include XAA support... " >&6; } 19945 if test "x$XAA" = xyes; then 19946 XAA_TRUE= 19947 XAA_FALSE='#' 19948 else 19949 XAA_TRUE='#' 19950 XAA_FALSE= 19951 fi 19952 19953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19954 printf "%s\n" "$XAA" >&6; } 19955 if test "x$XAA" = xyes; then 19956 19957 printf "%s\n" "#define USE_XAA 1" >>confdefs.h 19958 19959 fi 19960 19961 # Properly handle EXA. 19962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5 19963 printf %s "checking whether to enable EXA support... " >&6; } 19964 if test "x$EXA" = xyes; then 19965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19966 printf "%s\n" "yes" >&6; } 19967 19968 SAVE_CPPFLAGS="$CPPFLAGS" 19969 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19970 for ac_header in exa.h 19971 do : 19972 ac_fn_c_check_header_compile "$LINENO" "exa.h" "ac_cv_header_exa_h" "#include \"xorg-server.h\" 19973 " 19974 if test "x$ac_cv_header_exa_h" = xyes 19975 then : 19976 printf "%s\n" "#define HAVE_EXA_H 1" >>confdefs.h 19977 have_exa_h="yes" 19978 else $as_nop 19979 have_exa_h="no" 19980 fi 19981 19982 done 19983 CPPFLAGS="$SAVE_CPPFLAGS" 19984 else 19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19986 printf "%s\n" "no" >&6; } 19987 fi 19988 19989 SAVE_CPPFLAGS="$CPPFLAGS" 19990 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19991 if test "x$have_exa_h" = xyes; then 19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5 19993 printf %s "checking whether EXA version is at least 2.0.0... " >&6; } 19994 ac_ext=c 19995 ac_cpp='$CPP $CPPFLAGS' 19996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19998 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 20000 printf %s "checking how to run the C preprocessor... " >&6; } 20001 # On Suns, sometimes $CPP names a directory. 20002 if test -n "$CPP" && test -d "$CPP"; then 20003 CPP= 20004 fi 20005 if test -z "$CPP"; then 20006 if test ${ac_cv_prog_CPP+y} 20007 then : 20008 printf %s "(cached) " >&6 20009 else $as_nop 20010 # Double quotes because $CC needs to be expanded 20011 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 20012 do 20013 ac_preproc_ok=false 20014 for ac_c_preproc_warn_flag in '' yes 20015 do 20016 # Use a header file that comes with gcc, so configuring glibc 20017 # with a fresh cross-compiler works. 20018 # On the NeXT, cc -E runs the code through the compiler's parser, 20019 # not just through cpp. "Syntax error" is here to catch this case. 20020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20021 /* end confdefs.h. */ 20022 #include <limits.h> 20023 Syntax error 20024 _ACEOF 20025 if ac_fn_c_try_cpp "$LINENO" 20026 then : 20027 20028 else $as_nop 20029 # Broken: fails on valid input. 20030 continue 20031 fi 20032 rm -f conftest.err conftest.i conftest.$ac_ext 20033 20034 # OK, works on sane cases. Now check whether nonexistent headers 20035 # can be detected and how. 20036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20037 /* end confdefs.h. */ 20038 #include <ac_nonexistent.h> 20039 _ACEOF 20040 if ac_fn_c_try_cpp "$LINENO" 20041 then : 20042 # Broken: success on invalid input. 20043 continue 20044 else $as_nop 20045 # Passes both tests. 20046 ac_preproc_ok=: 20047 break 20048 fi 20049 rm -f conftest.err conftest.i conftest.$ac_ext 20050 20051 done 20052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20053 rm -f conftest.i conftest.err conftest.$ac_ext 20054 if $ac_preproc_ok 20055 then : 20056 break 20057 fi 20058 20059 done 20060 ac_cv_prog_CPP=$CPP 20061 20062 fi 20063 CPP=$ac_cv_prog_CPP 20064 else 20065 ac_cv_prog_CPP=$CPP 20066 fi 20067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 20068 printf "%s\n" "$CPP" >&6; } 20069 ac_preproc_ok=false 20070 for ac_c_preproc_warn_flag in '' yes 20071 do 20072 # Use a header file that comes with gcc, so configuring glibc 20073 # with a fresh cross-compiler works. 20074 # On the NeXT, cc -E runs the code through the compiler's parser, 20075 # not just through cpp. "Syntax error" is here to catch this case. 20076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20077 /* end confdefs.h. */ 20078 #include <limits.h> 20079 Syntax error 20080 _ACEOF 20081 if ac_fn_c_try_cpp "$LINENO" 20082 then : 20083 20084 else $as_nop 20085 # Broken: fails on valid input. 20086 continue 20087 fi 20088 rm -f conftest.err conftest.i conftest.$ac_ext 20089 20090 # OK, works on sane cases. Now check whether nonexistent headers 20091 # can be detected and how. 20092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20093 /* end confdefs.h. */ 20094 #include <ac_nonexistent.h> 20095 _ACEOF 20096 if ac_fn_c_try_cpp "$LINENO" 20097 then : 20098 # Broken: success on invalid input. 20099 continue 20100 else $as_nop 20101 # Passes both tests. 20102 ac_preproc_ok=: 20103 break 20104 fi 20105 rm -f conftest.err conftest.i conftest.$ac_ext 20106 20107 done 20108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 20109 rm -f conftest.i conftest.err conftest.$ac_ext 20110 if $ac_preproc_ok 20111 then : 20112 20113 else $as_nop 20114 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20115 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20116 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 20117 See \`config.log' for more details" "$LINENO" 5; } 20118 fi 20119 20120 ac_ext=c 20121 ac_cpp='$CPP $CPPFLAGS' 20122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20124 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20125 20126 20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20128 /* end confdefs.h. */ 20129 20130 #include "xorg-server.h" 20131 #include "exa.h" 20132 #if EXA_VERSION_MAJOR < 2 20133 #error OLD EXA! 20134 #endif 20135 20136 int 20137 main (void) 20138 { 20139 20140 ; 20141 return 0; 20142 } 20143 _ACEOF 20144 if ac_fn_c_try_cpp "$LINENO" 20145 then : 20146 USE_EXA=yes 20147 else $as_nop 20148 USE_EXA=no 20149 fi 20150 rm -f conftest.err conftest.i conftest.$ac_ext 20151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5 20152 printf "%s\n" "$USE_EXA" >&6; } 20153 20154 if test "x$USE_EXA" = xyes; then 20155 20156 printf "%s\n" "#define USE_EXA 1" >>confdefs.h 20157 20158 fi 20159 fi 20160 CPPFLAGS="$SAVE_CPPFLAGS" 20161 20162 if test "x$USE_EXA" = xyes; then 20163 USE_EXA_TRUE= 20164 USE_EXA_FALSE='#' 20165 else 20166 USE_EXA_TRUE='#' 20167 USE_EXA_FALSE= 20168 fi 20169 20170 20171 20172 20173 DRIVER_NAME=mga 20174 20175 20176 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile" 20177 20178 cat >confcache <<\_ACEOF 20179 # This file is a shell script that caches the results of configure 20180 # tests run on this system so they can be shared between configure 20181 # scripts and configure runs, see configure's option --config-cache. 20182 # It is not useful on other systems. If it contains results you don't 20183 # want to keep, you may remove or edit it. 20184 # 20185 # config.status only pays attention to the cache file if you give it 20186 # the --recheck option to rerun configure. 20187 # 20188 # `ac_cv_env_foo' variables (set or unset) will be overridden when 20189 # loading this file, other *unset* `ac_cv_foo' will be assigned the 20190 # following values. 20191 20192 _ACEOF 20193 20194 # The following way of writing the cache mishandles newlines in values, 20195 # but we know of no workaround that is simple, portable, and efficient. 20196 # So, we kill variables containing newlines. 20197 # Ultrix sh set writes to stderr and can't be redirected directly, 20198 # and sets the high bit in the cache file unless we assign to the vars. 20199 ( 20200 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20201 eval ac_val=\$$ac_var 20202 case $ac_val in #( 20203 *${as_nl}*) 20204 case $ac_var in #( 20205 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20206 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20207 esac 20208 case $ac_var in #( 20209 _ | IFS | as_nl) ;; #( 20210 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20211 *) { eval $ac_var=; unset $ac_var;} ;; 20212 esac ;; 20213 esac 20214 done 20215 20216 (set) 2>&1 | 20217 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20218 *${as_nl}ac_space=\ *) 20219 # `set' does not quote correctly, so add quotes: double-quote 20220 # substitution turns \\\\ into \\, and sed turns \\ into \. 20221 sed -n \ 20222 "s/'/'\\\\''/g; 20223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20224 ;; #( 20225 *) 20226 # `set' quotes correctly as required by POSIX, so do not add quotes. 20227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20228 ;; 20229 esac | 20230 sort 20231 ) | 20232 sed ' 20233 /^ac_cv_env_/b end 20234 t clear 20235 :clear 20236 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20237 t end 20238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20239 :end' >>confcache 20240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20241 if test -w "$cache_file"; then 20242 if test "x$cache_file" != "x/dev/null"; then 20243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20244 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20245 if test ! -f "$cache_file" || test -h "$cache_file"; then 20246 cat confcache >"$cache_file" 20247 else 20248 case $cache_file in #( 20249 */* | ?:*) 20250 mv -f confcache "$cache_file"$$ && 20251 mv -f "$cache_file"$$ "$cache_file" ;; #( 20252 *) 20253 mv -f confcache "$cache_file" ;; 20254 esac 20255 fi 20256 fi 20257 else 20258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20259 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20260 fi 20261 fi 20262 rm -f confcache 20263 20264 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20265 # Let make expand exec_prefix. 20266 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20267 20268 DEFS=-DHAVE_CONFIG_H 20269 20270 ac_libobjs= 20271 ac_ltlibobjs= 20272 U= 20273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20274 # 1. Remove the extension, and $U if already installed. 20275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20276 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20278 # will be set to the directory where LIBOBJS objects are built. 20279 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20280 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20281 done 20282 LIBOBJS=$ac_libobjs 20283 20284 LTLIBOBJS=$ac_ltlibobjs 20285 20286 20287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20288 printf %s "checking that generated files are newer than configure... " >&6; } 20289 if test -n "$am_sleep_pid"; then 20290 # Hide warnings about reused PIDs. 20291 wait $am_sleep_pid 2>/dev/null 20292 fi 20293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20294 printf "%s\n" "done" >&6; } 20295 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20296 as_fn_error $? "conditional \"AMDEP\" was never defined. 20297 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20298 fi 20299 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20300 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20301 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20302 fi 20303 if test -n "$EXEEXT"; then 20304 am__EXEEXT_TRUE= 20305 am__EXEEXT_FALSE='#' 20306 else 20307 am__EXEEXT_TRUE='#' 20308 am__EXEEXT_FALSE= 20309 fi 20310 20311 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 20312 as_fn_error $? "conditional \"DRI\" was never defined. 20313 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20314 fi 20315 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 20316 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 20317 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20318 fi 20319 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 20320 as_fn_error $? "conditional \"XAA\" was never defined. 20321 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20322 fi 20323 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then 20324 as_fn_error $? "conditional \"USE_EXA\" was never defined. 20325 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20326 fi 20327 20328 : "${CONFIG_STATUS=./config.status}" 20329 ac_write_fail=0 20330 ac_clean_files_save=$ac_clean_files 20331 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20333 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20334 as_write_fail=0 20335 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20336 #! $SHELL 20337 # Generated by $as_me. 20338 # Run this file to recreate the current configuration. 20339 # Compiler output produced by configure, useful for debugging 20340 # configure, is in config.log if it exists. 20341 20342 debug=false 20343 ac_cs_recheck=false 20344 ac_cs_silent=false 20345 20346 SHELL=\${CONFIG_SHELL-$SHELL} 20347 export SHELL 20348 _ASEOF 20349 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20350 ## -------------------- ## 20351 ## M4sh Initialization. ## 20352 ## -------------------- ## 20353 20354 # Be more Bourne compatible 20355 DUALCASE=1; export DUALCASE # for MKS sh 20356 as_nop=: 20357 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20358 then : 20359 emulate sh 20360 NULLCMD=: 20361 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20362 # is contrary to our usage. Disable this feature. 20363 alias -g '${1+"$@"}'='"$@"' 20364 setopt NO_GLOB_SUBST 20365 else $as_nop 20366 case `(set -o) 2>/dev/null` in #( 20367 *posix*) : 20368 set -o posix ;; #( 20369 *) : 20370 ;; 20371 esac 20372 fi 20373 20374 20375 20376 # Reset variables that may have inherited troublesome values from 20377 # the environment. 20378 20379 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20380 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20381 # side effect of setting IFS to empty, thus disabling word splitting.) 20382 # Quoting is to prevent editors from complaining about space-tab. 20383 as_nl=' 20384 ' 20385 export as_nl 20386 IFS=" "" $as_nl" 20387 20388 PS1='$ ' 20389 PS2='> ' 20390 PS4='+ ' 20391 20392 # Ensure predictable behavior from utilities with locale-dependent output. 20393 LC_ALL=C 20394 export LC_ALL 20395 LANGUAGE=C 20396 export LANGUAGE 20397 20398 # We cannot yet rely on "unset" to work, but we need these variables 20399 # to be unset--not just set to an empty or harmless value--now, to 20400 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20401 # also avoids known problems related to "unset" and subshell syntax 20402 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20403 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20404 do eval test \${$as_var+y} \ 20405 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20406 done 20407 20408 # Ensure that fds 0, 1, and 2 are open. 20409 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20410 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20411 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20412 20413 # The user is always right. 20414 if ${PATH_SEPARATOR+false} :; then 20415 PATH_SEPARATOR=: 20416 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20417 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20418 PATH_SEPARATOR=';' 20419 } 20420 fi 20421 20422 20423 # Find who we are. Look in the path if we contain no directory separator. 20424 as_myself= 20425 case $0 in #(( 20426 *[\\/]* ) as_myself=$0 ;; 20427 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20428 for as_dir in $PATH 20429 do 20430 IFS=$as_save_IFS 20431 case $as_dir in #((( 20432 '') as_dir=./ ;; 20433 */) ;; 20434 *) as_dir=$as_dir/ ;; 20435 esac 20436 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20437 done 20438 IFS=$as_save_IFS 20439 20440 ;; 20441 esac 20442 # We did not find ourselves, most probably we were run as `sh COMMAND' 20443 # in which case we are not to be found in the path. 20444 if test "x$as_myself" = x; then 20445 as_myself=$0 20446 fi 20447 if test ! -f "$as_myself"; then 20448 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20449 exit 1 20450 fi 20451 20452 20453 20454 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20455 # ---------------------------------------- 20456 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20457 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20458 # script with STATUS, using 1 if that was 0. 20459 as_fn_error () 20460 { 20461 as_status=$1; test $as_status -eq 0 && as_status=1 20462 if test "$4"; then 20463 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20465 fi 20466 printf "%s\n" "$as_me: error: $2" >&2 20467 as_fn_exit $as_status 20468 } # as_fn_error 20469 20470 20471 20472 # as_fn_set_status STATUS 20473 # ----------------------- 20474 # Set $? to STATUS, without forking. 20475 as_fn_set_status () 20476 { 20477 return $1 20478 } # as_fn_set_status 20479 20480 # as_fn_exit STATUS 20481 # ----------------- 20482 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20483 as_fn_exit () 20484 { 20485 set +e 20486 as_fn_set_status $1 20487 exit $1 20488 } # as_fn_exit 20489 20490 # as_fn_unset VAR 20491 # --------------- 20492 # Portably unset VAR. 20493 as_fn_unset () 20494 { 20495 { eval $1=; unset $1;} 20496 } 20497 as_unset=as_fn_unset 20498 20499 # as_fn_append VAR VALUE 20500 # ---------------------- 20501 # Append the text in VALUE to the end of the definition contained in VAR. Take 20502 # advantage of any shell optimizations that allow amortized linear growth over 20503 # repeated appends, instead of the typical quadratic growth present in naive 20504 # implementations. 20505 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20506 then : 20507 eval 'as_fn_append () 20508 { 20509 eval $1+=\$2 20510 }' 20511 else $as_nop 20512 as_fn_append () 20513 { 20514 eval $1=\$$1\$2 20515 } 20516 fi # as_fn_append 20517 20518 # as_fn_arith ARG... 20519 # ------------------ 20520 # Perform arithmetic evaluation on the ARGs, and store the result in the 20521 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20522 # must be portable across $(()) and expr. 20523 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20524 then : 20525 eval 'as_fn_arith () 20526 { 20527 as_val=$(( $* )) 20528 }' 20529 else $as_nop 20530 as_fn_arith () 20531 { 20532 as_val=`expr "$@" || test $? -eq 1` 20533 } 20534 fi # as_fn_arith 20535 20536 20537 if expr a : '\(a\)' >/dev/null 2>&1 && 20538 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20539 as_expr=expr 20540 else 20541 as_expr=false 20542 fi 20543 20544 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20545 as_basename=basename 20546 else 20547 as_basename=false 20548 fi 20549 20550 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20551 as_dirname=dirname 20552 else 20553 as_dirname=false 20554 fi 20555 20556 as_me=`$as_basename -- "$0" || 20557 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20558 X"$0" : 'X\(//\)$' \| \ 20559 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20560 printf "%s\n" X/"$0" | 20561 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20562 s//\1/ 20563 q 20564 } 20565 /^X\/\(\/\/\)$/{ 20566 s//\1/ 20567 q 20568 } 20569 /^X\/\(\/\).*/{ 20570 s//\1/ 20571 q 20572 } 20573 s/.*/./; q'` 20574 20575 # Avoid depending upon Character Ranges. 20576 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20577 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20578 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20579 as_cr_digits='0123456789' 20580 as_cr_alnum=$as_cr_Letters$as_cr_digits 20581 20582 20583 # Determine whether it's possible to make 'echo' print without a newline. 20584 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20585 # for compatibility with existing Makefiles. 20586 ECHO_C= ECHO_N= ECHO_T= 20587 case `echo -n x` in #((((( 20588 -n*) 20589 case `echo 'xy\c'` in 20590 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20591 xy) ECHO_C='\c';; 20592 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20593 ECHO_T=' ';; 20594 esac;; 20595 *) 20596 ECHO_N='-n';; 20597 esac 20598 20599 # For backward compatibility with old third-party macros, we provide 20600 # the shell variables $as_echo and $as_echo_n. New code should use 20601 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20602 as_echo='printf %s\n' 20603 as_echo_n='printf %s' 20604 20605 rm -f conf$$ conf$$.exe conf$$.file 20606 if test -d conf$$.dir; then 20607 rm -f conf$$.dir/conf$$.file 20608 else 20609 rm -f conf$$.dir 20610 mkdir conf$$.dir 2>/dev/null 20611 fi 20612 if (echo >conf$$.file) 2>/dev/null; then 20613 if ln -s conf$$.file conf$$ 2>/dev/null; then 20614 as_ln_s='ln -s' 20615 # ... but there are two gotchas: 20616 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20617 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20618 # In both cases, we have to default to `cp -pR'. 20619 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20620 as_ln_s='cp -pR' 20621 elif ln conf$$.file conf$$ 2>/dev/null; then 20622 as_ln_s=ln 20623 else 20624 as_ln_s='cp -pR' 20625 fi 20626 else 20627 as_ln_s='cp -pR' 20628 fi 20629 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20630 rmdir conf$$.dir 2>/dev/null 20631 20632 20633 # as_fn_mkdir_p 20634 # ------------- 20635 # Create "$as_dir" as a directory, including parents if necessary. 20636 as_fn_mkdir_p () 20637 { 20638 20639 case $as_dir in #( 20640 -*) as_dir=./$as_dir;; 20641 esac 20642 test -d "$as_dir" || eval $as_mkdir_p || { 20643 as_dirs= 20644 while :; do 20645 case $as_dir in #( 20646 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20647 *) as_qdir=$as_dir;; 20648 esac 20649 as_dirs="'$as_qdir' $as_dirs" 20650 as_dir=`$as_dirname -- "$as_dir" || 20651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20652 X"$as_dir" : 'X\(//\)[^/]' \| \ 20653 X"$as_dir" : 'X\(//\)$' \| \ 20654 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20655 printf "%s\n" X"$as_dir" | 20656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20657 s//\1/ 20658 q 20659 } 20660 /^X\(\/\/\)[^/].*/{ 20661 s//\1/ 20662 q 20663 } 20664 /^X\(\/\/\)$/{ 20665 s//\1/ 20666 q 20667 } 20668 /^X\(\/\).*/{ 20669 s//\1/ 20670 q 20671 } 20672 s/.*/./; q'` 20673 test -d "$as_dir" && break 20674 done 20675 test -z "$as_dirs" || eval "mkdir $as_dirs" 20676 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20677 20678 20679 } # as_fn_mkdir_p 20680 if mkdir -p . 2>/dev/null; then 20681 as_mkdir_p='mkdir -p "$as_dir"' 20682 else 20683 test -d ./-p && rmdir ./-p 20684 as_mkdir_p=false 20685 fi 20686 20687 20688 # as_fn_executable_p FILE 20689 # ----------------------- 20690 # Test if FILE is an executable regular file. 20691 as_fn_executable_p () 20692 { 20693 test -f "$1" && test -x "$1" 20694 } # as_fn_executable_p 20695 as_test_x='test -x' 20696 as_executable_p=as_fn_executable_p 20697 20698 # Sed expression to map a string onto a valid CPP name. 20699 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20700 20701 # Sed expression to map a string onto a valid variable name. 20702 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20703 20704 20705 exec 6>&1 20706 ## ----------------------------------- ## 20707 ## Main body of $CONFIG_STATUS script. ## 20708 ## ----------------------------------- ## 20709 _ASEOF 20710 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20711 20712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20713 # Save the log message, to keep $0 and so on meaningful, and to 20714 # report actual input values of CONFIG_FILES etc. instead of their 20715 # values after options handling. 20716 ac_log=" 20717 This file was extended by xf86-video-mga $as_me 2.0.1, which was 20718 generated by GNU Autoconf 2.71. Invocation command line was 20719 20720 CONFIG_FILES = $CONFIG_FILES 20721 CONFIG_HEADERS = $CONFIG_HEADERS 20722 CONFIG_LINKS = $CONFIG_LINKS 20723 CONFIG_COMMANDS = $CONFIG_COMMANDS 20724 $ $0 $@ 20725 20726 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20727 " 20728 20729 _ACEOF 20730 20731 case $ac_config_files in *" 20732 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20733 esac 20734 20735 case $ac_config_headers in *" 20736 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20737 esac 20738 20739 20740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20741 # Files that config.status was made for. 20742 config_files="$ac_config_files" 20743 config_headers="$ac_config_headers" 20744 config_commands="$ac_config_commands" 20745 20746 _ACEOF 20747 20748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20749 ac_cs_usage="\ 20750 \`$as_me' instantiates files and other configuration actions 20751 from templates according to the current configuration. Unless the files 20752 and actions are specified as TAGs, all are instantiated by default. 20753 20754 Usage: $0 [OPTION]... [TAG]... 20755 20756 -h, --help print this help, then exit 20757 -V, --version print version number and configuration settings, then exit 20758 --config print configuration, then exit 20759 -q, --quiet, --silent 20760 do not print progress messages 20761 -d, --debug don't remove temporary files 20762 --recheck update $as_me by reconfiguring in the same conditions 20763 --file=FILE[:TEMPLATE] 20764 instantiate the configuration file FILE 20765 --header=FILE[:TEMPLATE] 20766 instantiate the configuration header FILE 20767 20768 Configuration files: 20769 $config_files 20770 20771 Configuration headers: 20772 $config_headers 20773 20774 Configuration commands: 20775 $config_commands 20776 20777 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga/issues>." 20778 20779 _ACEOF 20780 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20781 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20783 ac_cs_config='$ac_cs_config_escaped' 20784 ac_cs_version="\\ 20785 xf86-video-mga config.status 2.0.1 20786 configured by $0, generated by GNU Autoconf 2.71, 20787 with options \\"\$ac_cs_config\\" 20788 20789 Copyright (C) 2021 Free Software Foundation, Inc. 20790 This config.status script is free software; the Free Software Foundation 20791 gives unlimited permission to copy, distribute and modify it." 20792 20793 ac_pwd='$ac_pwd' 20794 srcdir='$srcdir' 20795 INSTALL='$INSTALL' 20796 MKDIR_P='$MKDIR_P' 20797 AWK='$AWK' 20798 test -n "\$AWK" || AWK=awk 20799 _ACEOF 20800 20801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20802 # The default lists apply if the user does not specify any file. 20803 ac_need_defaults=: 20804 while test $# != 0 20805 do 20806 case $1 in 20807 --*=?*) 20808 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20809 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20810 ac_shift=: 20811 ;; 20812 --*=) 20813 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20814 ac_optarg= 20815 ac_shift=: 20816 ;; 20817 *) 20818 ac_option=$1 20819 ac_optarg=$2 20820 ac_shift=shift 20821 ;; 20822 esac 20823 20824 case $ac_option in 20825 # Handling of the options. 20826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20827 ac_cs_recheck=: ;; 20828 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20829 printf "%s\n" "$ac_cs_version"; exit ;; 20830 --config | --confi | --conf | --con | --co | --c ) 20831 printf "%s\n" "$ac_cs_config"; exit ;; 20832 --debug | --debu | --deb | --de | --d | -d ) 20833 debug=: ;; 20834 --file | --fil | --fi | --f ) 20835 $ac_shift 20836 case $ac_optarg in 20837 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20838 '') as_fn_error $? "missing file argument" ;; 20839 esac 20840 as_fn_append CONFIG_FILES " '$ac_optarg'" 20841 ac_need_defaults=false;; 20842 --header | --heade | --head | --hea ) 20843 $ac_shift 20844 case $ac_optarg in 20845 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20846 esac 20847 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20848 ac_need_defaults=false;; 20849 --he | --h) 20850 # Conflict between --help and --header 20851 as_fn_error $? "ambiguous option: \`$1' 20852 Try \`$0 --help' for more information.";; 20853 --help | --hel | -h ) 20854 printf "%s\n" "$ac_cs_usage"; exit ;; 20855 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20856 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20857 ac_cs_silent=: ;; 20858 20859 # This is an error. 20860 -*) as_fn_error $? "unrecognized option: \`$1' 20861 Try \`$0 --help' for more information." ;; 20862 20863 *) as_fn_append ac_config_targets " $1" 20864 ac_need_defaults=false ;; 20865 20866 esac 20867 shift 20868 done 20869 20870 ac_configure_extra_args= 20871 20872 if $ac_cs_silent; then 20873 exec 6>/dev/null 20874 ac_configure_extra_args="$ac_configure_extra_args --silent" 20875 fi 20876 20877 _ACEOF 20878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20879 if \$ac_cs_recheck; then 20880 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20881 shift 20882 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20883 CONFIG_SHELL='$SHELL' 20884 export CONFIG_SHELL 20885 exec "\$@" 20886 fi 20887 20888 _ACEOF 20889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20890 exec 5>>config.log 20891 { 20892 echo 20893 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20894 ## Running $as_me. ## 20895 _ASBOX 20896 printf "%s\n" "$ac_log" 20897 } >&5 20898 20899 _ACEOF 20900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20901 # 20902 # INIT-COMMANDS 20903 # 20904 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20905 20906 20907 # The HP-UX ksh and POSIX shell print the target directory to stdout 20908 # if CDPATH is set. 20909 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20910 20911 sed_quote_subst='$sed_quote_subst' 20912 double_quote_subst='$double_quote_subst' 20913 delay_variable_subst='$delay_variable_subst' 20914 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20915 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20916 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20917 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20918 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20919 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20920 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20921 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20922 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20923 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20924 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20925 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20926 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20927 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20928 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20929 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20930 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20931 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20932 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20933 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20934 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20935 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20936 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20937 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20938 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20939 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20940 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20941 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20942 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20943 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20944 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20945 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20946 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20947 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20948 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20949 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20950 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20951 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20952 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20953 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20954 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20955 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20956 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20957 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20958 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20959 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20960 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20961 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20962 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20963 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20964 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20965 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20966 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20967 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20968 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20969 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20970 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20971 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20972 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20973 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20974 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"`' 20975 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20976 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20977 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20978 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20979 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20980 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20981 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20982 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20983 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20984 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20985 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20986 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20987 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20988 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20989 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20990 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20991 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20992 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20993 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20994 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20995 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20996 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20997 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20998 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20999 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21000 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21001 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21002 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21003 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21004 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21005 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21006 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21007 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21008 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21009 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21010 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21011 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21012 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21013 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21014 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21015 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21016 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21017 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21018 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21019 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21020 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21021 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21022 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21023 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21024 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21025 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21026 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21027 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21028 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21029 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21030 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21031 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21032 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21033 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21034 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21035 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21036 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21037 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21038 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21039 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21040 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21041 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21042 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21043 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21044 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21045 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21046 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21047 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21048 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21049 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21050 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21051 21052 LTCC='$LTCC' 21053 LTCFLAGS='$LTCFLAGS' 21054 compiler='$compiler_DEFAULT' 21055 21056 # A function that is used when there is no print builtin or printf. 21057 func_fallback_echo () 21058 { 21059 eval 'cat <<_LTECHO_EOF 21060 \$1 21061 _LTECHO_EOF' 21062 } 21063 21064 # Quote evaled strings. 21065 for var in SHELL \ 21066 ECHO \ 21067 PATH_SEPARATOR \ 21068 SED \ 21069 GREP \ 21070 EGREP \ 21071 FGREP \ 21072 LD \ 21073 NM \ 21074 LN_S \ 21075 lt_SP2NL \ 21076 lt_NL2SP \ 21077 reload_flag \ 21078 FILECMD \ 21079 OBJDUMP \ 21080 deplibs_check_method \ 21081 file_magic_cmd \ 21082 file_magic_glob \ 21083 want_nocaseglob \ 21084 DLLTOOL \ 21085 sharedlib_from_linklib_cmd \ 21086 AR \ 21087 archiver_list_spec \ 21088 STRIP \ 21089 RANLIB \ 21090 CC \ 21091 CFLAGS \ 21092 compiler \ 21093 lt_cv_sys_global_symbol_pipe \ 21094 lt_cv_sys_global_symbol_to_cdecl \ 21095 lt_cv_sys_global_symbol_to_import \ 21096 lt_cv_sys_global_symbol_to_c_name_address \ 21097 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21098 lt_cv_nm_interface \ 21099 nm_file_list_spec \ 21100 lt_cv_truncate_bin \ 21101 lt_prog_compiler_no_builtin_flag \ 21102 lt_prog_compiler_pic \ 21103 lt_prog_compiler_wl \ 21104 lt_prog_compiler_static \ 21105 lt_cv_prog_compiler_c_o \ 21106 need_locks \ 21107 MANIFEST_TOOL \ 21108 DSYMUTIL \ 21109 NMEDIT \ 21110 LIPO \ 21111 OTOOL \ 21112 OTOOL64 \ 21113 shrext_cmds \ 21114 export_dynamic_flag_spec \ 21115 whole_archive_flag_spec \ 21116 compiler_needs_object \ 21117 with_gnu_ld \ 21118 allow_undefined_flag \ 21119 no_undefined_flag \ 21120 hardcode_libdir_flag_spec \ 21121 hardcode_libdir_separator \ 21122 exclude_expsyms \ 21123 include_expsyms \ 21124 file_list_spec \ 21125 variables_saved_for_relink \ 21126 libname_spec \ 21127 library_names_spec \ 21128 soname_spec \ 21129 install_override_mode \ 21130 finish_eval \ 21131 old_striplib \ 21132 striplib; do 21133 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21134 *[\\\\\\\`\\"\\\$]*) 21135 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21136 ;; 21137 *) 21138 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21139 ;; 21140 esac 21141 done 21142 21143 # Double-quote double-evaled strings. 21144 for var in reload_cmds \ 21145 old_postinstall_cmds \ 21146 old_postuninstall_cmds \ 21147 old_archive_cmds \ 21148 extract_expsyms_cmds \ 21149 old_archive_from_new_cmds \ 21150 old_archive_from_expsyms_cmds \ 21151 archive_cmds \ 21152 archive_expsym_cmds \ 21153 module_cmds \ 21154 module_expsym_cmds \ 21155 export_symbols_cmds \ 21156 prelink_cmds \ 21157 postlink_cmds \ 21158 postinstall_cmds \ 21159 postuninstall_cmds \ 21160 finish_cmds \ 21161 sys_lib_search_path_spec \ 21162 configure_time_dlsearch_path \ 21163 configure_time_lt_sys_library_path; do 21164 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21165 *[\\\\\\\`\\"\\\$]*) 21166 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21167 ;; 21168 *) 21169 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21170 ;; 21171 esac 21172 done 21173 21174 ac_aux_dir='$ac_aux_dir' 21175 21176 # See if we are running on zsh, and set the options that allow our 21177 # commands through without removal of \ escapes INIT. 21178 if test -n "\${ZSH_VERSION+set}"; then 21179 setopt NO_GLOB_SUBST 21180 fi 21181 21182 21183 PACKAGE='$PACKAGE' 21184 VERSION='$VERSION' 21185 RM='$RM' 21186 ofile='$ofile' 21187 21188 21189 21190 21191 _ACEOF 21192 21193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21194 21195 # Handling of arguments. 21196 for ac_config_target in $ac_config_targets 21197 do 21198 case $ac_config_target in 21199 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21200 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21201 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21203 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21204 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21205 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 21206 21207 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21208 esac 21209 done 21210 21211 21212 # If the user did not use the arguments to specify the items to instantiate, 21213 # then the envvar interface is used. Set only those that are not. 21214 # We use the long form for the default assignment because of an extremely 21215 # bizarre bug on SunOS 4.1.3. 21216 if $ac_need_defaults; then 21217 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21218 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21219 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21220 fi 21221 21222 # Have a temporary directory for convenience. Make it in the build tree 21223 # simply because there is no reason against having it here, and in addition, 21224 # creating and moving files from /tmp can sometimes cause problems. 21225 # Hook for its removal unless debugging. 21226 # Note that there is a small window in which the directory will not be cleaned: 21227 # after its creation but before its name has been assigned to `$tmp'. 21228 $debug || 21229 { 21230 tmp= ac_tmp= 21231 trap 'exit_status=$? 21232 : "${ac_tmp:=$tmp}" 21233 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21234 ' 0 21235 trap 'as_fn_exit 1' 1 2 13 15 21236 } 21237 # Create a (secure) tmp directory for tmp files. 21238 21239 { 21240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21241 test -d "$tmp" 21242 } || 21243 { 21244 tmp=./conf$$-$RANDOM 21245 (umask 077 && mkdir "$tmp") 21246 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21247 ac_tmp=$tmp 21248 21249 # Set up the scripts for CONFIG_FILES section. 21250 # No need to generate them if there are no CONFIG_FILES. 21251 # This happens for instance with `./config.status config.h'. 21252 if test -n "$CONFIG_FILES"; then 21253 21254 21255 ac_cr=`echo X | tr X '\015'` 21256 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21257 # But we know of no other shell where ac_cr would be empty at this 21258 # point, so we can use a bashism as a fallback. 21259 if test "x$ac_cr" = x; then 21260 eval ac_cr=\$\'\\r\' 21261 fi 21262 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21263 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21264 ac_cs_awk_cr='\\r' 21265 else 21266 ac_cs_awk_cr=$ac_cr 21267 fi 21268 21269 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21270 _ACEOF 21271 21272 21273 { 21274 echo "cat >conf$$subs.awk <<_ACEOF" && 21275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21276 echo "_ACEOF" 21277 } >conf$$subs.sh || 21278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21279 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21280 ac_delim='%!_!# ' 21281 for ac_last_try in false false false false false :; do 21282 . ./conf$$subs.sh || 21283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21284 21285 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21286 if test $ac_delim_n = $ac_delim_num; then 21287 break 21288 elif $ac_last_try; then 21289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21290 else 21291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21292 fi 21293 done 21294 rm -f conf$$subs.sh 21295 21296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21297 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21298 _ACEOF 21299 sed -n ' 21300 h 21301 s/^/S["/; s/!.*/"]=/ 21302 p 21303 g 21304 s/^[^!]*!// 21305 :repl 21306 t repl 21307 s/'"$ac_delim"'$// 21308 t delim 21309 :nl 21310 h 21311 s/\(.\{148\}\)..*/\1/ 21312 t more1 21313 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21314 p 21315 n 21316 b repl 21317 :more1 21318 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21319 p 21320 g 21321 s/.\{148\}// 21322 t nl 21323 :delim 21324 h 21325 s/\(.\{148\}\)..*/\1/ 21326 t more2 21327 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21328 p 21329 b 21330 :more2 21331 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21332 p 21333 g 21334 s/.\{148\}// 21335 t delim 21336 ' <conf$$subs.awk | sed ' 21337 /^[^""]/{ 21338 N 21339 s/\n// 21340 } 21341 ' >>$CONFIG_STATUS || ac_write_fail=1 21342 rm -f conf$$subs.awk 21343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21344 _ACAWK 21345 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21346 for (key in S) S_is_set[key] = 1 21347 FS = "" 21348 21349 } 21350 { 21351 line = $ 0 21352 nfields = split(line, field, "@") 21353 substed = 0 21354 len = length(field[1]) 21355 for (i = 2; i < nfields; i++) { 21356 key = field[i] 21357 keylen = length(key) 21358 if (S_is_set[key]) { 21359 value = S[key] 21360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21361 len += length(value) + length(field[++i]) 21362 substed = 1 21363 } else 21364 len += 1 + keylen 21365 } 21366 21367 print line 21368 } 21369 21370 _ACAWK 21371 _ACEOF 21372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21373 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21374 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21375 else 21376 cat 21377 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21378 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21379 _ACEOF 21380 21381 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21382 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21383 # trailing colons and then remove the whole line if VPATH becomes empty 21384 # (actually we leave an empty line to preserve line numbers). 21385 if test "x$srcdir" = x.; then 21386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21387 h 21388 s/// 21389 s/^/:/ 21390 s/[ ]*$/:/ 21391 s/:\$(srcdir):/:/g 21392 s/:\${srcdir}:/:/g 21393 s/:@srcdir@:/:/g 21394 s/^:*// 21395 s/:*$// 21396 x 21397 s/\(=[ ]*\).*/\1/ 21398 G 21399 s/\n// 21400 s/^[^=]*=[ ]*$// 21401 }' 21402 fi 21403 21404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21405 fi # test -n "$CONFIG_FILES" 21406 21407 # Set up the scripts for CONFIG_HEADERS section. 21408 # No need to generate them if there are no CONFIG_HEADERS. 21409 # This happens for instance with `./config.status Makefile'. 21410 if test -n "$CONFIG_HEADERS"; then 21411 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21412 BEGIN { 21413 _ACEOF 21414 21415 # Transform confdefs.h into an awk script `defines.awk', embedded as 21416 # here-document in config.status, that substitutes the proper values into 21417 # config.h.in to produce config.h. 21418 21419 # Create a delimiter string that does not exist in confdefs.h, to ease 21420 # handling of long lines. 21421 ac_delim='%!_!# ' 21422 for ac_last_try in false false :; do 21423 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21424 if test -z "$ac_tt"; then 21425 break 21426 elif $ac_last_try; then 21427 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21428 else 21429 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21430 fi 21431 done 21432 21433 # For the awk script, D is an array of macro values keyed by name, 21434 # likewise P contains macro parameters if any. Preserve backslash 21435 # newline sequences. 21436 21437 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21438 sed -n ' 21439 s/.\{148\}/&'"$ac_delim"'/g 21440 t rset 21441 :rset 21442 s/^[ ]*#[ ]*define[ ][ ]*/ / 21443 t def 21444 d 21445 :def 21446 s/\\$// 21447 t bsnl 21448 s/["\\]/\\&/g 21449 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21450 D["\1"]=" \3"/p 21451 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21452 d 21453 :bsnl 21454 s/["\\]/\\&/g 21455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21456 D["\1"]=" \3\\\\\\n"\\/p 21457 t cont 21458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21459 t cont 21460 d 21461 :cont 21462 n 21463 s/.\{148\}/&'"$ac_delim"'/g 21464 t clear 21465 :clear 21466 s/\\$// 21467 t bsnlc 21468 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21469 d 21470 :bsnlc 21471 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21472 b cont 21473 ' <confdefs.h | sed ' 21474 s/'"$ac_delim"'/"\\\ 21475 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21476 21477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21478 for (key in D) D_is_set[key] = 1 21479 FS = "" 21480 } 21481 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21482 line = \$ 0 21483 split(line, arg, " ") 21484 if (arg[1] == "#") { 21485 defundef = arg[2] 21486 mac1 = arg[3] 21487 } else { 21488 defundef = substr(arg[1], 2) 21489 mac1 = arg[2] 21490 } 21491 split(mac1, mac2, "(") #) 21492 macro = mac2[1] 21493 prefix = substr(line, 1, index(line, defundef) - 1) 21494 if (D_is_set[macro]) { 21495 # Preserve the white space surrounding the "#". 21496 print prefix "define", macro P[macro] D[macro] 21497 next 21498 } else { 21499 # Replace #undef with comments. This is necessary, for example, 21500 # in the case of _POSIX_SOURCE, which is predefined and required 21501 # on some systems where configure will not decide to define it. 21502 if (defundef == "undef") { 21503 print "/*", prefix defundef, macro, "*/" 21504 next 21505 } 21506 } 21507 } 21508 { print } 21509 _ACAWK 21510 _ACEOF 21511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21512 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21513 fi # test -n "$CONFIG_HEADERS" 21514 21515 21516 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21517 shift 21518 for ac_tag 21519 do 21520 case $ac_tag in 21521 :[FHLC]) ac_mode=$ac_tag; continue;; 21522 esac 21523 case $ac_mode$ac_tag in 21524 :[FHL]*:*);; 21525 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21526 :[FH]-) ac_tag=-:-;; 21527 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21528 esac 21529 ac_save_IFS=$IFS 21530 IFS=: 21531 set x $ac_tag 21532 IFS=$ac_save_IFS 21533 shift 21534 ac_file=$1 21535 shift 21536 21537 case $ac_mode in 21538 :L) ac_source=$1;; 21539 :[FH]) 21540 ac_file_inputs= 21541 for ac_f 21542 do 21543 case $ac_f in 21544 -) ac_f="$ac_tmp/stdin";; 21545 *) # Look for the file first in the build tree, then in the source tree 21546 # (if the path is not absolute). The absolute path cannot be DOS-style, 21547 # because $ac_f cannot contain `:'. 21548 test -f "$ac_f" || 21549 case $ac_f in 21550 [\\/$]*) false;; 21551 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21552 esac || 21553 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21554 esac 21555 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21556 as_fn_append ac_file_inputs " '$ac_f'" 21557 done 21558 21559 # Let's still pretend it is `configure' which instantiates (i.e., don't 21560 # use $as_me), people would be surprised to read: 21561 # /* config.h. Generated by config.status. */ 21562 configure_input='Generated from '` 21563 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21564 `' by configure.' 21565 if test x"$ac_file" != x-; then 21566 configure_input="$ac_file. $configure_input" 21567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21568 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21569 fi 21570 # Neutralize special characters interpreted by sed in replacement strings. 21571 case $configure_input in #( 21572 *\&* | *\|* | *\\* ) 21573 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21574 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21575 *) ac_sed_conf_input=$configure_input;; 21576 esac 21577 21578 case $ac_tag in 21579 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21581 esac 21582 ;; 21583 esac 21584 21585 ac_dir=`$as_dirname -- "$ac_file" || 21586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21587 X"$ac_file" : 'X\(//\)[^/]' \| \ 21588 X"$ac_file" : 'X\(//\)$' \| \ 21589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21590 printf "%s\n" X"$ac_file" | 21591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21592 s//\1/ 21593 q 21594 } 21595 /^X\(\/\/\)[^/].*/{ 21596 s//\1/ 21597 q 21598 } 21599 /^X\(\/\/\)$/{ 21600 s//\1/ 21601 q 21602 } 21603 /^X\(\/\).*/{ 21604 s//\1/ 21605 q 21606 } 21607 s/.*/./; q'` 21608 as_dir="$ac_dir"; as_fn_mkdir_p 21609 ac_builddir=. 21610 21611 case "$ac_dir" in 21612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21613 *) 21614 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21615 # A ".." for each directory in $ac_dir_suffix. 21616 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21617 case $ac_top_builddir_sub in 21618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21620 esac ;; 21621 esac 21622 ac_abs_top_builddir=$ac_pwd 21623 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21624 # for backward compatibility: 21625 ac_top_builddir=$ac_top_build_prefix 21626 21627 case $srcdir in 21628 .) # We are building in place. 21629 ac_srcdir=. 21630 ac_top_srcdir=$ac_top_builddir_sub 21631 ac_abs_top_srcdir=$ac_pwd ;; 21632 [\\/]* | ?:[\\/]* ) # Absolute name. 21633 ac_srcdir=$srcdir$ac_dir_suffix; 21634 ac_top_srcdir=$srcdir 21635 ac_abs_top_srcdir=$srcdir ;; 21636 *) # Relative name. 21637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21638 ac_top_srcdir=$ac_top_build_prefix$srcdir 21639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21640 esac 21641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21642 21643 21644 case $ac_mode in 21645 :F) 21646 # 21647 # CONFIG_FILE 21648 # 21649 21650 case $INSTALL in 21651 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21652 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21653 esac 21654 ac_MKDIR_P=$MKDIR_P 21655 case $MKDIR_P in 21656 [\\/$]* | ?:[\\/]* ) ;; 21657 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21658 esac 21659 _ACEOF 21660 21661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21662 # If the template does not know about datarootdir, expand it. 21663 # FIXME: This hack should be removed a few years after 2.60. 21664 ac_datarootdir_hack=; ac_datarootdir_seen= 21665 ac_sed_dataroot=' 21666 /datarootdir/ { 21667 p 21668 q 21669 } 21670 /@datadir@/p 21671 /@docdir@/p 21672 /@infodir@/p 21673 /@localedir@/p 21674 /@mandir@/p' 21675 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21676 *datarootdir*) ac_datarootdir_seen=yes;; 21677 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21679 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21680 _ACEOF 21681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21682 ac_datarootdir_hack=' 21683 s&@datadir@&$datadir&g 21684 s&@docdir@&$docdir&g 21685 s&@infodir@&$infodir&g 21686 s&@localedir@&$localedir&g 21687 s&@mandir@&$mandir&g 21688 s&\\\${datarootdir}&$datarootdir&g' ;; 21689 esac 21690 _ACEOF 21691 21692 # Neutralize VPATH when `$srcdir' = `.'. 21693 # Shell code in configure.ac might set extrasub. 21694 # FIXME: do we really want to maintain this feature? 21695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21696 ac_sed_extra="$ac_vpsub 21697 $extrasub 21698 _ACEOF 21699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21700 :t 21701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21702 s|@configure_input@|$ac_sed_conf_input|;t t 21703 s&@top_builddir@&$ac_top_builddir_sub&;t t 21704 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21705 s&@srcdir@&$ac_srcdir&;t t 21706 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21707 s&@top_srcdir@&$ac_top_srcdir&;t t 21708 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21709 s&@builddir@&$ac_builddir&;t t 21710 s&@abs_builddir@&$ac_abs_builddir&;t t 21711 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21712 s&@INSTALL@&$ac_INSTALL&;t t 21713 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21714 $ac_datarootdir_hack 21715 " 21716 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21717 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21718 21719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21720 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21722 "$ac_tmp/out"`; test -z "$ac_out"; } && 21723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21724 which seems to be undefined. Please make sure it is defined" >&5 21725 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21726 which seems to be undefined. Please make sure it is defined" >&2;} 21727 21728 rm -f "$ac_tmp/stdin" 21729 case $ac_file in 21730 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21731 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21732 esac \ 21733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21734 ;; 21735 :H) 21736 # 21737 # CONFIG_HEADER 21738 # 21739 if test x"$ac_file" != x-; then 21740 { 21741 printf "%s\n" "/* $configure_input */" >&1 \ 21742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21743 } >"$ac_tmp/config.h" \ 21744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21745 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21747 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21748 else 21749 rm -f "$ac_file" 21750 mv "$ac_tmp/config.h" "$ac_file" \ 21751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21752 fi 21753 else 21754 printf "%s\n" "/* $configure_input */" >&1 \ 21755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21756 || as_fn_error $? "could not create -" "$LINENO" 5 21757 fi 21758 # Compute "$ac_file"'s index in $config_headers. 21759 _am_arg="$ac_file" 21760 _am_stamp_count=1 21761 for _am_header in $config_headers :; do 21762 case $_am_header in 21763 $_am_arg | $_am_arg:* ) 21764 break ;; 21765 * ) 21766 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21767 esac 21768 done 21769 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21770 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21771 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21772 X"$_am_arg" : 'X\(//\)$' \| \ 21773 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21774 printf "%s\n" X"$_am_arg" | 21775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21776 s//\1/ 21777 q 21778 } 21779 /^X\(\/\/\)[^/].*/{ 21780 s//\1/ 21781 q 21782 } 21783 /^X\(\/\/\)$/{ 21784 s//\1/ 21785 q 21786 } 21787 /^X\(\/\).*/{ 21788 s//\1/ 21789 q 21790 } 21791 s/.*/./; q'`/stamp-h$_am_stamp_count 21792 ;; 21793 21794 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21795 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21796 ;; 21797 esac 21798 21799 21800 case $ac_file$ac_mode in 21801 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21802 # Older Autoconf quotes --file arguments for eval, but not when files 21803 # are listed without --file. Let's play safe and only enable the eval 21804 # if we detect the quoting. 21805 # TODO: see whether this extra hack can be removed once we start 21806 # requiring Autoconf 2.70 or later. 21807 case $CONFIG_FILES in #( 21808 *\'*) : 21809 eval set x "$CONFIG_FILES" ;; #( 21810 *) : 21811 set x $CONFIG_FILES ;; #( 21812 *) : 21813 ;; 21814 esac 21815 shift 21816 # Used to flag and report bootstrapping failures. 21817 am_rc=0 21818 for am_mf 21819 do 21820 # Strip MF so we end up with the name of the file. 21821 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21822 # Check whether this is an Automake generated Makefile which includes 21823 # dependency-tracking related rules and includes. 21824 # Grep'ing the whole file directly is not great: AIX grep has a line 21825 # limit of 2048, but all sed's we know have understand at least 4000. 21826 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21827 || continue 21828 am_dirpart=`$as_dirname -- "$am_mf" || 21829 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21830 X"$am_mf" : 'X\(//\)[^/]' \| \ 21831 X"$am_mf" : 'X\(//\)$' \| \ 21832 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21833 printf "%s\n" X"$am_mf" | 21834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21835 s//\1/ 21836 q 21837 } 21838 /^X\(\/\/\)[^/].*/{ 21839 s//\1/ 21840 q 21841 } 21842 /^X\(\/\/\)$/{ 21843 s//\1/ 21844 q 21845 } 21846 /^X\(\/\).*/{ 21847 s//\1/ 21848 q 21849 } 21850 s/.*/./; q'` 21851 am_filepart=`$as_basename -- "$am_mf" || 21852 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21853 X"$am_mf" : 'X\(//\)$' \| \ 21854 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21855 printf "%s\n" X/"$am_mf" | 21856 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21857 s//\1/ 21858 q 21859 } 21860 /^X\/\(\/\/\)$/{ 21861 s//\1/ 21862 q 21863 } 21864 /^X\/\(\/\).*/{ 21865 s//\1/ 21866 q 21867 } 21868 s/.*/./; q'` 21869 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21870 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21871 | $MAKE -f - am--depfiles" >&5 21872 (cd "$am_dirpart" \ 21873 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21874 | $MAKE -f - am--depfiles) >&5 2>&5 21875 ac_status=$? 21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21877 (exit $ac_status); } || am_rc=$? 21878 done 21879 if test $am_rc -ne 0; then 21880 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21881 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21882 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21883 for automatic dependency tracking. If GNU make was not used, consider 21884 re-running the configure script with MAKE=\"gmake\" (or whatever is 21885 necessary). You can also try re-running configure with the 21886 '--disable-dependency-tracking' option to at least be able to build 21887 the package (albeit without support for automatic dependency tracking). 21888 See \`config.log' for more details" "$LINENO" 5; } 21889 fi 21890 { am_dirpart=; unset am_dirpart;} 21891 { am_filepart=; unset am_filepart;} 21892 { am_mf=; unset am_mf;} 21893 { am_rc=; unset am_rc;} 21894 rm -f conftest-deps.mk 21895 } 21896 ;; 21897 "libtool":C) 21898 21899 # See if we are running on zsh, and set the options that allow our 21900 # commands through without removal of \ escapes. 21901 if test -n "${ZSH_VERSION+set}"; then 21902 setopt NO_GLOB_SUBST 21903 fi 21904 21905 cfgfile=${ofile}T 21906 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21907 $RM "$cfgfile" 21908 21909 cat <<_LT_EOF >> "$cfgfile" 21910 #! $SHELL 21911 # Generated automatically by $as_me ($PACKAGE) $VERSION 21912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21913 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21914 21915 # Provide generalized library-building support services. 21916 # Written by Gordon Matzigkeit, 1996 21917 21918 # Copyright (C) 2014 Free Software Foundation, Inc. 21919 # This is free software; see the source for copying conditions. There is NO 21920 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21921 21922 # GNU Libtool is free software; you can redistribute it and/or modify 21923 # it under the terms of the GNU General Public License as published by 21924 # the Free Software Foundation; either version 2 of of the License, or 21925 # (at your option) any later version. 21926 # 21927 # As a special exception to the GNU General Public License, if you 21928 # distribute this file as part of a program or library that is built 21929 # using GNU Libtool, you may include this file under the same 21930 # distribution terms that you use for the rest of that program. 21931 # 21932 # GNU Libtool is distributed in the hope that it will be useful, but 21933 # WITHOUT ANY WARRANTY; without even the implied warranty of 21934 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21935 # GNU General Public License for more details. 21936 # 21937 # You should have received a copy of the GNU General Public License 21938 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21939 21940 21941 # The names of the tagged configurations supported by this script. 21942 available_tags='' 21943 21944 # Configured defaults for sys_lib_dlsearch_path munging. 21945 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21946 21947 # ### BEGIN LIBTOOL CONFIG 21948 21949 # Whether or not to build static libraries. 21950 build_old_libs=$enable_static 21951 21952 # Which release of libtool.m4 was used? 21953 macro_version=$macro_version 21954 macro_revision=$macro_revision 21955 21956 # Whether or not to build shared libraries. 21957 build_libtool_libs=$enable_shared 21958 21959 # What type of objects to build. 21960 pic_mode=$pic_mode 21961 21962 # Whether or not to optimize for fast installation. 21963 fast_install=$enable_fast_install 21964 21965 # Shared archive member basename,for filename based shared library versioning on AIX. 21966 shared_archive_member_spec=$shared_archive_member_spec 21967 21968 # Shell to use when invoking shell scripts. 21969 SHELL=$lt_SHELL 21970 21971 # An echo program that protects backslashes. 21972 ECHO=$lt_ECHO 21973 21974 # The PATH separator for the build system. 21975 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21976 21977 # The host system. 21978 host_alias=$host_alias 21979 host=$host 21980 host_os=$host_os 21981 21982 # The build system. 21983 build_alias=$build_alias 21984 build=$build 21985 build_os=$build_os 21986 21987 # A sed program that does not truncate output. 21988 SED=$lt_SED 21989 21990 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21991 Xsed="\$SED -e 1s/^X//" 21992 21993 # A grep program that handles long lines. 21994 GREP=$lt_GREP 21995 21996 # An ERE matcher. 21997 EGREP=$lt_EGREP 21998 21999 # A literal string matcher. 22000 FGREP=$lt_FGREP 22001 22002 # A BSD- or MS-compatible name lister. 22003 NM=$lt_NM 22004 22005 # Whether we need soft or hard links. 22006 LN_S=$lt_LN_S 22007 22008 # What is the maximum length of a command? 22009 max_cmd_len=$max_cmd_len 22010 22011 # Object file suffix (normally "o"). 22012 objext=$ac_objext 22013 22014 # Executable file suffix (normally ""). 22015 exeext=$exeext 22016 22017 # whether the shell understands "unset". 22018 lt_unset=$lt_unset 22019 22020 # turn spaces into newlines. 22021 SP2NL=$lt_lt_SP2NL 22022 22023 # turn newlines into spaces. 22024 NL2SP=$lt_lt_NL2SP 22025 22026 # convert \$build file names to \$host format. 22027 to_host_file_cmd=$lt_cv_to_host_file_cmd 22028 22029 # convert \$build files to toolchain format. 22030 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22031 22032 # A file(cmd) program that detects file types. 22033 FILECMD=$lt_FILECMD 22034 22035 # An object symbol dumper. 22036 OBJDUMP=$lt_OBJDUMP 22037 22038 # Method to check whether dependent libraries are shared objects. 22039 deplibs_check_method=$lt_deplibs_check_method 22040 22041 # Command to use when deplibs_check_method = "file_magic". 22042 file_magic_cmd=$lt_file_magic_cmd 22043 22044 # How to find potential files when deplibs_check_method = "file_magic". 22045 file_magic_glob=$lt_file_magic_glob 22046 22047 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22048 want_nocaseglob=$lt_want_nocaseglob 22049 22050 # DLL creation program. 22051 DLLTOOL=$lt_DLLTOOL 22052 22053 # Command to associate shared and link libraries. 22054 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22055 22056 # The archiver. 22057 AR=$lt_AR 22058 22059 # Flags to create an archive (by configure). 22060 lt_ar_flags=$lt_ar_flags 22061 22062 # Flags to create an archive. 22063 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22064 22065 # How to feed a file listing to the archiver. 22066 archiver_list_spec=$lt_archiver_list_spec 22067 22068 # A symbol stripping program. 22069 STRIP=$lt_STRIP 22070 22071 # Commands used to install an old-style archive. 22072 RANLIB=$lt_RANLIB 22073 old_postinstall_cmds=$lt_old_postinstall_cmds 22074 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22075 22076 # Whether to use a lock for old archive extraction. 22077 lock_old_archive_extraction=$lock_old_archive_extraction 22078 22079 # A C compiler. 22080 LTCC=$lt_CC 22081 22082 # LTCC compiler flags. 22083 LTCFLAGS=$lt_CFLAGS 22084 22085 # Take the output of nm and produce a listing of raw symbols and C names. 22086 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22087 22088 # Transform the output of nm in a proper C declaration. 22089 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22090 22091 # Transform the output of nm into a list of symbols to manually relocate. 22092 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22093 22094 # Transform the output of nm in a C name address pair. 22095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22096 22097 # Transform the output of nm in a C name address pair when lib prefix is needed. 22098 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22099 22100 # The name lister interface. 22101 nm_interface=$lt_lt_cv_nm_interface 22102 22103 # Specify filename containing input files for \$NM. 22104 nm_file_list_spec=$lt_nm_file_list_spec 22105 22106 # The root where to search for dependent libraries,and where our libraries should be installed. 22107 lt_sysroot=$lt_sysroot 22108 22109 # Command to truncate a binary pipe. 22110 lt_truncate_bin=$lt_lt_cv_truncate_bin 22111 22112 # The name of the directory that contains temporary libtool files. 22113 objdir=$objdir 22114 22115 # Used to examine libraries when file_magic_cmd begins with "file". 22116 MAGIC_CMD=$MAGIC_CMD 22117 22118 # Must we lock files when doing compilation? 22119 need_locks=$lt_need_locks 22120 22121 # Manifest tool. 22122 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22123 22124 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22125 DSYMUTIL=$lt_DSYMUTIL 22126 22127 # Tool to change global to local symbols on Mac OS X. 22128 NMEDIT=$lt_NMEDIT 22129 22130 # Tool to manipulate fat objects and archives on Mac OS X. 22131 LIPO=$lt_LIPO 22132 22133 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22134 OTOOL=$lt_OTOOL 22135 22136 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22137 OTOOL64=$lt_OTOOL64 22138 22139 # Old archive suffix (normally "a"). 22140 libext=$libext 22141 22142 # Shared library suffix (normally ".so"). 22143 shrext_cmds=$lt_shrext_cmds 22144 22145 # The commands to extract the exported symbol list from a shared archive. 22146 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22147 22148 # Variables whose values should be saved in libtool wrapper scripts and 22149 # restored at link time. 22150 variables_saved_for_relink=$lt_variables_saved_for_relink 22151 22152 # Do we need the "lib" prefix for modules? 22153 need_lib_prefix=$need_lib_prefix 22154 22155 # Do we need a version for libraries? 22156 need_version=$need_version 22157 22158 # Library versioning type. 22159 version_type=$version_type 22160 22161 # Shared library runtime path variable. 22162 runpath_var=$runpath_var 22163 22164 # Shared library path variable. 22165 shlibpath_var=$shlibpath_var 22166 22167 # Is shlibpath searched before the hard-coded library search path? 22168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22169 22170 # Format of library name prefix. 22171 libname_spec=$lt_libname_spec 22172 22173 # List of archive names. First name is the real one, the rest are links. 22174 # The last name is the one that the linker finds with -lNAME 22175 library_names_spec=$lt_library_names_spec 22176 22177 # The coded name of the library, if different from the real name. 22178 soname_spec=$lt_soname_spec 22179 22180 # Permission mode override for installation of shared libraries. 22181 install_override_mode=$lt_install_override_mode 22182 22183 # Command to use after installation of a shared archive. 22184 postinstall_cmds=$lt_postinstall_cmds 22185 22186 # Command to use after uninstallation of a shared archive. 22187 postuninstall_cmds=$lt_postuninstall_cmds 22188 22189 # Commands used to finish a libtool library installation in a directory. 22190 finish_cmds=$lt_finish_cmds 22191 22192 # As "finish_cmds", except a single script fragment to be evaled but 22193 # not shown. 22194 finish_eval=$lt_finish_eval 22195 22196 # Whether we should hardcode library paths into libraries. 22197 hardcode_into_libs=$hardcode_into_libs 22198 22199 # Compile-time system search path for libraries. 22200 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22201 22202 # Detected run-time system search path for libraries. 22203 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22204 22205 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22206 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22207 22208 # Whether dlopen is supported. 22209 dlopen_support=$enable_dlopen 22210 22211 # Whether dlopen of programs is supported. 22212 dlopen_self=$enable_dlopen_self 22213 22214 # Whether dlopen of statically linked programs is supported. 22215 dlopen_self_static=$enable_dlopen_self_static 22216 22217 # Commands to strip libraries. 22218 old_striplib=$lt_old_striplib 22219 striplib=$lt_striplib 22220 22221 22222 # The linker used to build libraries. 22223 LD=$lt_LD 22224 22225 # How to create reloadable object files. 22226 reload_flag=$lt_reload_flag 22227 reload_cmds=$lt_reload_cmds 22228 22229 # Commands used to build an old-style archive. 22230 old_archive_cmds=$lt_old_archive_cmds 22231 22232 # A language specific compiler. 22233 CC=$lt_compiler 22234 22235 # Is the compiler the GNU compiler? 22236 with_gcc=$GCC 22237 22238 # Compiler flag to turn off builtin functions. 22239 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22240 22241 # Additional compiler flags for building library objects. 22242 pic_flag=$lt_lt_prog_compiler_pic 22243 22244 # How to pass a linker flag through the compiler. 22245 wl=$lt_lt_prog_compiler_wl 22246 22247 # Compiler flag to prevent dynamic linking. 22248 link_static_flag=$lt_lt_prog_compiler_static 22249 22250 # Does compiler simultaneously support -c and -o options? 22251 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22252 22253 # Whether or not to add -lc for building shared libraries. 22254 build_libtool_need_lc=$archive_cmds_need_lc 22255 22256 # Whether or not to disallow shared libs when runtime libs are static. 22257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22258 22259 # Compiler flag to allow reflexive dlopens. 22260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22261 22262 # Compiler flag to generate shared objects directly from archives. 22263 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22264 22265 # Whether the compiler copes with passing no objects directly. 22266 compiler_needs_object=$lt_compiler_needs_object 22267 22268 # Create an old-style archive from a shared archive. 22269 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22270 22271 # Create a temporary old-style archive to link instead of a shared archive. 22272 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22273 22274 # Commands used to build a shared archive. 22275 archive_cmds=$lt_archive_cmds 22276 archive_expsym_cmds=$lt_archive_expsym_cmds 22277 22278 # Commands used to build a loadable module if different from building 22279 # a shared archive. 22280 module_cmds=$lt_module_cmds 22281 module_expsym_cmds=$lt_module_expsym_cmds 22282 22283 # Whether we are building with GNU ld or not. 22284 with_gnu_ld=$lt_with_gnu_ld 22285 22286 # Flag that allows shared libraries with undefined symbols to be built. 22287 allow_undefined_flag=$lt_allow_undefined_flag 22288 22289 # Flag that enforces no undefined symbols. 22290 no_undefined_flag=$lt_no_undefined_flag 22291 22292 # Flag to hardcode \$libdir into a binary during linking. 22293 # This must work even if \$libdir does not exist 22294 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22295 22296 # Whether we need a single "-rpath" flag with a separated argument. 22297 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22298 22299 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22300 # DIR into the resulting binary. 22301 hardcode_direct=$hardcode_direct 22302 22303 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22304 # DIR into the resulting binary and the resulting library dependency is 22305 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 22306 # library is relocated. 22307 hardcode_direct_absolute=$hardcode_direct_absolute 22308 22309 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22310 # into the resulting binary. 22311 hardcode_minus_L=$hardcode_minus_L 22312 22313 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22314 # into the resulting binary. 22315 hardcode_shlibpath_var=$hardcode_shlibpath_var 22316 22317 # Set to "yes" if building a shared library automatically hardcodes DIR 22318 # into the library and all subsequent libraries and executables linked 22319 # against it. 22320 hardcode_automatic=$hardcode_automatic 22321 22322 # Set to yes if linker adds runtime paths of dependent libraries 22323 # to runtime path list. 22324 inherit_rpath=$inherit_rpath 22325 22326 # Whether libtool must link a program against all its dependency libraries. 22327 link_all_deplibs=$link_all_deplibs 22328 22329 # Set to "yes" if exported symbols are required. 22330 always_export_symbols=$always_export_symbols 22331 22332 # The commands to list exported symbols. 22333 export_symbols_cmds=$lt_export_symbols_cmds 22334 22335 # Symbols that should not be listed in the preloaded symbols. 22336 exclude_expsyms=$lt_exclude_expsyms 22337 22338 # Symbols that must always be exported. 22339 include_expsyms=$lt_include_expsyms 22340 22341 # Commands necessary for linking programs (against libraries) with templates. 22342 prelink_cmds=$lt_prelink_cmds 22343 22344 # Commands necessary for finishing linking programs. 22345 postlink_cmds=$lt_postlink_cmds 22346 22347 # Specify filename containing input files. 22348 file_list_spec=$lt_file_list_spec 22349 22350 # How to hardcode a shared library path into an executable. 22351 hardcode_action=$hardcode_action 22352 22353 # ### END LIBTOOL CONFIG 22354 22355 _LT_EOF 22356 22357 cat <<'_LT_EOF' >> "$cfgfile" 22358 22359 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22360 22361 # func_munge_path_list VARIABLE PATH 22362 # ----------------------------------- 22363 # VARIABLE is name of variable containing _space_ separated list of 22364 # directories to be munged by the contents of PATH, which is string 22365 # having a format: 22366 # "DIR[:DIR]:" 22367 # string "DIR[ DIR]" will be prepended to VARIABLE 22368 # ":DIR[:DIR]" 22369 # string "DIR[ DIR]" will be appended to VARIABLE 22370 # "DIRP[:DIRP]::[DIRA:]DIRA" 22371 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22372 # "DIRA[ DIRA]" will be appended to VARIABLE 22373 # "DIR[:DIR]" 22374 # VARIABLE will be replaced by "DIR[ DIR]" 22375 func_munge_path_list () 22376 { 22377 case x$2 in 22378 x) 22379 ;; 22380 *:) 22381 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22382 ;; 22383 x:*) 22384 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22385 ;; 22386 *::*) 22387 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22388 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22389 ;; 22390 *) 22391 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22392 ;; 22393 esac 22394 } 22395 22396 22397 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22398 func_cc_basename () 22399 { 22400 for cc_temp in $*""; do 22401 case $cc_temp in 22402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22404 \-*) ;; 22405 *) break;; 22406 esac 22407 done 22408 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22409 } 22410 22411 22412 # ### END FUNCTIONS SHARED WITH CONFIGURE 22413 22414 _LT_EOF 22415 22416 case $host_os in 22417 aix3*) 22418 cat <<\_LT_EOF >> "$cfgfile" 22419 # AIX sometimes has problems with the GCC collect2 program. For some 22420 # reason, if we set the COLLECT_NAMES environment variable, the problems 22421 # vanish in a puff of smoke. 22422 if test set != "${COLLECT_NAMES+set}"; then 22423 COLLECT_NAMES= 22424 export COLLECT_NAMES 22425 fi 22426 _LT_EOF 22427 ;; 22428 esac 22429 22430 22431 22432 ltmain=$ac_aux_dir/ltmain.sh 22433 22434 22435 # We use sed instead of cat because bash on DJGPP gets confused if 22436 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22437 # text mode, it properly converts lines to CR/LF. This bash problem 22438 # is reportedly fixed, but why not run on old versions too? 22439 $SED '$q' "$ltmain" >> "$cfgfile" \ 22440 || (rm -f "$cfgfile"; exit 1) 22441 22442 mv -f "$cfgfile" "$ofile" || 22443 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22444 chmod +x "$ofile" 22445 22446 ;; 22447 22448 esac 22449 done # for ac_tag 22450 22451 22452 as_fn_exit 0 22453 _ACEOF 22454 ac_clean_files=$ac_clean_files_save 22455 22456 test $ac_write_fail = 0 || 22457 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22458 22459 22460 # configure is writing to config.log, and then calls config.status. 22461 # config.status does its own redirection, appending to config.log. 22462 # Unfortunately, on DOS this fails, as config.log is still kept open 22463 # by configure, so config.status won't be able to write to it; its 22464 # output is simply discarded. So we exec the FD to /dev/null, 22465 # effectively closing config.log, so it can be properly (re)opened and 22466 # appended to by config.status. When coming back to configure, we 22467 # need to make the FD available again. 22468 if test "$no_create" != yes; then 22469 ac_cs_success=: 22470 ac_config_status_args= 22471 test "$silent" = yes && 22472 ac_config_status_args="$ac_config_status_args --quiet" 22473 exec 5>/dev/null 22474 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22475 exec 5>>config.log 22476 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22477 # would make configure fail if this is the last instruction. 22478 $ac_cs_success || as_fn_exit 1 22479 fi 22480 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22482 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22483 fi 22484 22485 22486