1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for xf86-video-siliconmotion 1.7.10. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/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-siliconmotion/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-siliconmotion' 624 PACKAGE_TARNAME='xf86-video-siliconmotion' 625 PACKAGE_VERSION='1.7.10' 626 PACKAGE_STRING='xf86-video-siliconmotion 1.7.10' 627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/issues' 628 PACKAGE_URL='' 629 630 # Factoring default headers for most tests. 631 ac_includes_default="\ 632 #include <stddef.h> 633 #ifdef HAVE_STDIO_H 634 # include <stdio.h> 635 #endif 636 #ifdef HAVE_STDLIB_H 637 # include <stdlib.h> 638 #endif 639 #ifdef HAVE_STRING_H 640 # include <string.h> 641 #endif 642 #ifdef HAVE_INTTYPES_H 643 # include <inttypes.h> 644 #endif 645 #ifdef HAVE_STDINT_H 646 # include <stdint.h> 647 #endif 648 #ifdef HAVE_STRINGS_H 649 # include <strings.h> 650 #endif 651 #ifdef HAVE_SYS_TYPES_H 652 # include <sys/types.h> 653 #endif 654 #ifdef HAVE_SYS_STAT_H 655 # include <sys/stat.h> 656 #endif 657 #ifdef HAVE_UNISTD_H 658 # include <unistd.h> 659 #endif" 660 661 ac_header_c_list= 662 ac_unique_file="Makefile.am" 663 ac_subst_vars='am__EXEEXT_FALSE 664 am__EXEEXT_TRUE 665 LTLIBOBJS 666 LIBOBJS 667 DRIVER_NAME 668 moduledir 669 XAA_FALSE 670 XAA_TRUE 671 XMODES_FALSE 672 XMODES_TRUE 673 XSERVER_LIBPCIACCESS_FALSE 674 XSERVER_LIBPCIACCESS_TRUE 675 PCIACCESS_LIBS 676 PCIACCESS_CFLAGS 677 HAVE_XEXTPROTO_71_FALSE 678 HAVE_XEXTPROTO_71_TRUE 679 XEXT_LIBS 680 XEXT_CFLAGS 681 XORG_LIBS 682 XORG_CFLAGS 683 LT_SYS_LIBRARY_PATH 684 OTOOL64 685 OTOOL 686 LIPO 687 NMEDIT 688 DSYMUTIL 689 MANIFEST_TOOL 690 RANLIB 691 ac_ct_AR 692 AR 693 DLLTOOL 694 OBJDUMP 695 FILECMD 696 LN_S 697 NM 698 ac_ct_DUMPBIN 699 DUMPBIN 700 LD 701 FGREP 702 EGREP 703 GREP 704 LIBTOOL 705 CSCOPE 706 ETAGS 707 CTAGS 708 am__fastdepCC_FALSE 709 am__fastdepCC_TRUE 710 CCDEPMODE 711 am__nodep 712 AMDEPBACKSLASH 713 AMDEP_FALSE 714 AMDEP_TRUE 715 am__include 716 DEPDIR 717 am__untar 718 am__tar 719 AMTAR 720 am__leading_dot 721 SET_MAKE 722 AWK 723 mkdir_p 724 MKDIR_P 725 INSTALL_STRIP_PROGRAM 726 STRIP 727 install_sh 728 MAKEINFO 729 AUTOHEADER 730 AUTOMAKE 731 AUTOCONF 732 ACLOCAL 733 VERSION 734 PACKAGE 735 CYGPATH_W 736 am__isrc 737 AM_BACKSLASH 738 AM_DEFAULT_VERBOSITY 739 AM_DEFAULT_V 740 AM_V 741 MAN_SUBSTS 742 XORG_MAN_PAGE 743 ADMIN_MAN_DIR 744 DRIVER_MAN_DIR 745 MISC_MAN_DIR 746 FILE_MAN_DIR 747 LIB_MAN_DIR 748 APP_MAN_DIR 749 ADMIN_MAN_SUFFIX 750 DRIVER_MAN_SUFFIX 751 MISC_MAN_SUFFIX 752 FILE_MAN_SUFFIX 753 LIB_MAN_SUFFIX 754 APP_MAN_SUFFIX 755 SED 756 host_os 757 host_vendor 758 host_cpu 759 host 760 build_os 761 build_vendor 762 build_cpu 763 build 764 INSTALL_CMD 765 PKG_CONFIG_LIBDIR 766 PKG_CONFIG_PATH 767 PKG_CONFIG 768 CHANGELOG_CMD 769 STRICT_CFLAGS 770 CWARNFLAGS 771 BASE_CFLAGS 772 OBJEXT 773 EXEEXT 774 ac_ct_CC 775 CPPFLAGS 776 LDFLAGS 777 CFLAGS 778 CC 779 INSTALL_DATA 780 INSTALL_SCRIPT 781 INSTALL_PROGRAM 782 target_alias 783 host_alias 784 build_alias 785 LIBS 786 ECHO_T 787 ECHO_N 788 ECHO_C 789 DEFS 790 mandir 791 localedir 792 libdir 793 psdir 794 pdfdir 795 dvidir 796 htmldir 797 infodir 798 docdir 799 oldincludedir 800 includedir 801 runstatedir 802 localstatedir 803 sharedstatedir 804 sysconfdir 805 datadir 806 datarootdir 807 libexecdir 808 sbindir 809 bindir 810 program_transform_name 811 prefix 812 exec_prefix 813 PACKAGE_URL 814 PACKAGE_BUGREPORT 815 PACKAGE_STRING 816 PACKAGE_VERSION 817 PACKAGE_TARNAME 818 PACKAGE_NAME 819 PATH_SEPARATOR 820 SHELL 821 am__quote' 822 ac_subst_files='' 823 ac_user_opts=' 824 enable_option_checking 825 enable_selective_werror 826 enable_strict_compilation 827 enable_silent_rules 828 enable_dependency_tracking 829 enable_static 830 enable_shared 831 with_pic 832 enable_fast_install 833 with_aix_soname 834 with_gnu_ld 835 with_sysroot 836 enable_libtool_lock 837 with_xorg_module_dir 838 enable_xaa 839 ' 840 ac_precious_vars='build_alias 841 host_alias 842 target_alias 843 CC 844 CFLAGS 845 LDFLAGS 846 LIBS 847 CPPFLAGS 848 PKG_CONFIG 849 PKG_CONFIG_PATH 850 PKG_CONFIG_LIBDIR 851 LT_SYS_LIBRARY_PATH 852 XORG_CFLAGS 853 XORG_LIBS 854 XEXT_CFLAGS 855 XEXT_LIBS 856 PCIACCESS_CFLAGS 857 PCIACCESS_LIBS' 858 859 860 # Initialize some variables set by options. 861 ac_init_help= 862 ac_init_version=false 863 ac_unrecognized_opts= 864 ac_unrecognized_sep= 865 # The variables have the same names as the options, with 866 # dashes changed to underlines. 867 cache_file=/dev/null 868 exec_prefix=NONE 869 no_create= 870 no_recursion= 871 prefix=NONE 872 program_prefix=NONE 873 program_suffix=NONE 874 program_transform_name=s,x,x, 875 silent= 876 site= 877 srcdir= 878 verbose= 879 x_includes=NONE 880 x_libraries=NONE 881 882 # Installation directory options. 883 # These are left unexpanded so users can "make install exec_prefix=/foo" 884 # and all the variables that are supposed to be based on exec_prefix 885 # by default will actually change. 886 # Use braces instead of parens because sh, perl, etc. also accept them. 887 # (The list follows the same order as the GNU Coding Standards.) 888 bindir='${exec_prefix}/bin' 889 sbindir='${exec_prefix}/sbin' 890 libexecdir='${exec_prefix}/libexec' 891 datarootdir='${prefix}/share' 892 datadir='${datarootdir}' 893 sysconfdir='${prefix}/etc' 894 sharedstatedir='${prefix}/com' 895 localstatedir='${prefix}/var' 896 runstatedir='${localstatedir}/run' 897 includedir='${prefix}/include' 898 oldincludedir='/usr/include' 899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 900 infodir='${datarootdir}/info' 901 htmldir='${docdir}' 902 dvidir='${docdir}' 903 pdfdir='${docdir}' 904 psdir='${docdir}' 905 libdir='${exec_prefix}/lib' 906 localedir='${datarootdir}/locale' 907 mandir='${datarootdir}/man' 908 909 ac_prev= 910 ac_dashdash= 911 for ac_option 912 do 913 # If the previous option needs an argument, assign it. 914 if test -n "$ac_prev"; then 915 eval $ac_prev=\$ac_option 916 ac_prev= 917 continue 918 fi 919 920 case $ac_option in 921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 922 *=) ac_optarg= ;; 923 *) ac_optarg=yes ;; 924 esac 925 926 case $ac_dashdash$ac_option in 927 --) 928 ac_dashdash=yes ;; 929 930 -bindir | --bindir | --bindi | --bind | --bin | --bi) 931 ac_prev=bindir ;; 932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 933 bindir=$ac_optarg ;; 934 935 -build | --build | --buil | --bui | --bu) 936 ac_prev=build_alias ;; 937 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 938 build_alias=$ac_optarg ;; 939 940 -cache-file | --cache-file | --cache-fil | --cache-fi \ 941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 942 ac_prev=cache_file ;; 943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 945 cache_file=$ac_optarg ;; 946 947 --config-cache | -C) 948 cache_file=config.cache ;; 949 950 -datadir | --datadir | --datadi | --datad) 951 ac_prev=datadir ;; 952 -datadir=* | --datadir=* | --datadi=* | --datad=*) 953 datadir=$ac_optarg ;; 954 955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 956 | --dataroo | --dataro | --datar) 957 ac_prev=datarootdir ;; 958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 960 datarootdir=$ac_optarg ;; 961 962 -disable-* | --disable-*) 963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 964 # Reject names that are not valid shell variable names. 965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 966 as_fn_error $? "invalid feature name: \`$ac_useropt'" 967 ac_useropt_orig=$ac_useropt 968 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 969 case $ac_user_opts in 970 *" 971 "enable_$ac_useropt" 972 "*) ;; 973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 974 ac_unrecognized_sep=', ';; 975 esac 976 eval enable_$ac_useropt=no ;; 977 978 -docdir | --docdir | --docdi | --doc | --do) 979 ac_prev=docdir ;; 980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 981 docdir=$ac_optarg ;; 982 983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 984 ac_prev=dvidir ;; 985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 986 dvidir=$ac_optarg ;; 987 988 -enable-* | --enable-*) 989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 990 # Reject names that are not valid shell variable names. 991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 992 as_fn_error $? "invalid feature name: \`$ac_useropt'" 993 ac_useropt_orig=$ac_useropt 994 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 995 case $ac_user_opts in 996 *" 997 "enable_$ac_useropt" 998 "*) ;; 999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1000 ac_unrecognized_sep=', ';; 1001 esac 1002 eval enable_$ac_useropt=\$ac_optarg ;; 1003 1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1006 | --exec | --exe | --ex) 1007 ac_prev=exec_prefix ;; 1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1010 | --exec=* | --exe=* | --ex=*) 1011 exec_prefix=$ac_optarg ;; 1012 1013 -gas | --gas | --ga | --g) 1014 # Obsolete; use --with-gas. 1015 with_gas=yes ;; 1016 1017 -help | --help | --hel | --he | -h) 1018 ac_init_help=long ;; 1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1020 ac_init_help=recursive ;; 1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1022 ac_init_help=short ;; 1023 1024 -host | --host | --hos | --ho) 1025 ac_prev=host_alias ;; 1026 -host=* | --host=* | --hos=* | --ho=*) 1027 host_alias=$ac_optarg ;; 1028 1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1030 ac_prev=htmldir ;; 1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1032 | --ht=*) 1033 htmldir=$ac_optarg ;; 1034 1035 -includedir | --includedir | --includedi | --included | --include \ 1036 | --includ | --inclu | --incl | --inc) 1037 ac_prev=includedir ;; 1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1039 | --includ=* | --inclu=* | --incl=* | --inc=*) 1040 includedir=$ac_optarg ;; 1041 1042 -infodir | --infodir | --infodi | --infod | --info | --inf) 1043 ac_prev=infodir ;; 1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1045 infodir=$ac_optarg ;; 1046 1047 -libdir | --libdir | --libdi | --libd) 1048 ac_prev=libdir ;; 1049 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1050 libdir=$ac_optarg ;; 1051 1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1053 | --libexe | --libex | --libe) 1054 ac_prev=libexecdir ;; 1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1056 | --libexe=* | --libex=* | --libe=*) 1057 libexecdir=$ac_optarg ;; 1058 1059 -localedir | --localedir | --localedi | --localed | --locale) 1060 ac_prev=localedir ;; 1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1062 localedir=$ac_optarg ;; 1063 1064 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1065 | --localstate | --localstat | --localsta | --localst | --locals) 1066 ac_prev=localstatedir ;; 1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1069 localstatedir=$ac_optarg ;; 1070 1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1072 ac_prev=mandir ;; 1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1074 mandir=$ac_optarg ;; 1075 1076 -nfp | --nfp | --nf) 1077 # Obsolete; use --without-fp. 1078 with_fp=no ;; 1079 1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1081 | --no-cr | --no-c | -n) 1082 no_create=yes ;; 1083 1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1086 no_recursion=yes ;; 1087 1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1090 | --oldin | --oldi | --old | --ol | --o) 1091 ac_prev=oldincludedir ;; 1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1095 oldincludedir=$ac_optarg ;; 1096 1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1098 ac_prev=prefix ;; 1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1100 prefix=$ac_optarg ;; 1101 1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1103 | --program-pre | --program-pr | --program-p) 1104 ac_prev=program_prefix ;; 1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1107 program_prefix=$ac_optarg ;; 1108 1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1110 | --program-suf | --program-su | --program-s) 1111 ac_prev=program_suffix ;; 1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1114 program_suffix=$ac_optarg ;; 1115 1116 -program-transform-name | --program-transform-name \ 1117 | --program-transform-nam | --program-transform-na \ 1118 | --program-transform-n | --program-transform- \ 1119 | --program-transform | --program-transfor \ 1120 | --program-transfo | --program-transf \ 1121 | --program-trans | --program-tran \ 1122 | --progr-tra | --program-tr | --program-t) 1123 ac_prev=program_transform_name ;; 1124 -program-transform-name=* | --program-transform-name=* \ 1125 | --program-transform-nam=* | --program-transform-na=* \ 1126 | --program-transform-n=* | --program-transform-=* \ 1127 | --program-transform=* | --program-transfor=* \ 1128 | --program-transfo=* | --program-transf=* \ 1129 | --program-trans=* | --program-tran=* \ 1130 | --progr-tra=* | --program-tr=* | --program-t=*) 1131 program_transform_name=$ac_optarg ;; 1132 1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1134 ac_prev=pdfdir ;; 1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1136 pdfdir=$ac_optarg ;; 1137 1138 -psdir | --psdir | --psdi | --psd | --ps) 1139 ac_prev=psdir ;; 1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1141 psdir=$ac_optarg ;; 1142 1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1144 | -silent | --silent | --silen | --sile | --sil) 1145 silent=yes ;; 1146 1147 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1148 | --runstate | --runstat | --runsta | --runst | --runs \ 1149 | --run | --ru | --r) 1150 ac_prev=runstatedir ;; 1151 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1152 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1153 | --run=* | --ru=* | --r=*) 1154 runstatedir=$ac_optarg ;; 1155 1156 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1157 ac_prev=sbindir ;; 1158 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1159 | --sbi=* | --sb=*) 1160 sbindir=$ac_optarg ;; 1161 1162 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1163 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1164 | --sharedst | --shareds | --shared | --share | --shar \ 1165 | --sha | --sh) 1166 ac_prev=sharedstatedir ;; 1167 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1168 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1169 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1170 | --sha=* | --sh=*) 1171 sharedstatedir=$ac_optarg ;; 1172 1173 -site | --site | --sit) 1174 ac_prev=site ;; 1175 -site=* | --site=* | --sit=*) 1176 site=$ac_optarg ;; 1177 1178 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1179 ac_prev=srcdir ;; 1180 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1181 srcdir=$ac_optarg ;; 1182 1183 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1184 | --syscon | --sysco | --sysc | --sys | --sy) 1185 ac_prev=sysconfdir ;; 1186 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1187 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1188 sysconfdir=$ac_optarg ;; 1189 1190 -target | --target | --targe | --targ | --tar | --ta | --t) 1191 ac_prev=target_alias ;; 1192 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1193 target_alias=$ac_optarg ;; 1194 1195 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1196 verbose=yes ;; 1197 1198 -version | --version | --versio | --versi | --vers | -V) 1199 ac_init_version=: ;; 1200 1201 -with-* | --with-*) 1202 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1203 # Reject names that are not valid shell variable names. 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1205 as_fn_error $? "invalid package name: \`$ac_useropt'" 1206 ac_useropt_orig=$ac_useropt 1207 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1208 case $ac_user_opts in 1209 *" 1210 "with_$ac_useropt" 1211 "*) ;; 1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1213 ac_unrecognized_sep=', ';; 1214 esac 1215 eval with_$ac_useropt=\$ac_optarg ;; 1216 1217 -without-* | --without-*) 1218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1221 as_fn_error $? "invalid package name: \`$ac_useropt'" 1222 ac_useropt_orig=$ac_useropt 1223 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1224 case $ac_user_opts in 1225 *" 1226 "with_$ac_useropt" 1227 "*) ;; 1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1229 ac_unrecognized_sep=', ';; 1230 esac 1231 eval with_$ac_useropt=no ;; 1232 1233 --x) 1234 # Obsolete; use --with-x. 1235 with_x=yes ;; 1236 1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1238 | --x-incl | --x-inc | --x-in | --x-i) 1239 ac_prev=x_includes ;; 1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1242 x_includes=$ac_optarg ;; 1243 1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1246 ac_prev=x_libraries ;; 1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1249 x_libraries=$ac_optarg ;; 1250 1251 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1252 Try \`$0 --help' for more information" 1253 ;; 1254 1255 *=*) 1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1257 # Reject names that are not valid shell variable names. 1258 case $ac_envvar in #( 1259 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1260 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1261 esac 1262 eval $ac_envvar=\$ac_optarg 1263 export $ac_envvar ;; 1264 1265 *) 1266 # FIXME: should be removed in autoconf 3.0. 1267 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1269 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1270 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1271 ;; 1272 1273 esac 1274 done 1275 1276 if test -n "$ac_prev"; then 1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1278 as_fn_error $? "missing argument to $ac_option" 1279 fi 1280 1281 if test -n "$ac_unrecognized_opts"; then 1282 case $enable_option_checking in 1283 no) ;; 1284 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1285 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1286 esac 1287 fi 1288 1289 # Check all directory arguments for consistency. 1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1291 datadir sysconfdir sharedstatedir localstatedir includedir \ 1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1293 libdir localedir mandir runstatedir 1294 do 1295 eval ac_val=\$$ac_var 1296 # Remove trailing slashes. 1297 case $ac_val in 1298 */ ) 1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1300 eval $ac_var=\$ac_val;; 1301 esac 1302 # Be sure to have absolute directory names. 1303 case $ac_val in 1304 [\\/$]* | ?:[\\/]* ) continue;; 1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1306 esac 1307 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1308 done 1309 1310 # There might be people who depend on the old broken behavior: `$host' 1311 # used to hold the argument of --host etc. 1312 # FIXME: To remove some day. 1313 build=$build_alias 1314 host=$host_alias 1315 target=$target_alias 1316 1317 # FIXME: To remove some day. 1318 if test "x$host_alias" != x; then 1319 if test "x$build_alias" = x; then 1320 cross_compiling=maybe 1321 elif test "x$build_alias" != "x$host_alias"; then 1322 cross_compiling=yes 1323 fi 1324 fi 1325 1326 ac_tool_prefix= 1327 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1328 1329 test "$silent" = yes && exec 6>/dev/null 1330 1331 1332 ac_pwd=`pwd` && test -n "$ac_pwd" && 1333 ac_ls_di=`ls -di .` && 1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1335 as_fn_error $? "working directory cannot be determined" 1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1337 as_fn_error $? "pwd does not report name of working directory" 1338 1339 1340 # Find the source files, if location was not specified. 1341 if test -z "$srcdir"; then 1342 ac_srcdir_defaulted=yes 1343 # Try the directory containing this script, then the parent directory. 1344 ac_confdir=`$as_dirname -- "$as_myself" || 1345 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1346 X"$as_myself" : 'X\(//\)[^/]' \| \ 1347 X"$as_myself" : 'X\(//\)$' \| \ 1348 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1349 printf "%s\n" X"$as_myself" | 1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)[^/].*/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\/\)$/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\).*/{ 1363 s//\1/ 1364 q 1365 } 1366 s/.*/./; q'` 1367 srcdir=$ac_confdir 1368 if test ! -r "$srcdir/$ac_unique_file"; then 1369 srcdir=.. 1370 fi 1371 else 1372 ac_srcdir_defaulted=no 1373 fi 1374 if test ! -r "$srcdir/$ac_unique_file"; then 1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1376 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1377 fi 1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1379 ac_abs_confdir=`( 1380 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1381 pwd)` 1382 # When building in place, set srcdir=. 1383 if test "$ac_abs_confdir" = "$ac_pwd"; then 1384 srcdir=. 1385 fi 1386 # Remove unnecessary trailing slashes from srcdir. 1387 # Double slashes in file names in object file debugging info 1388 # mess up M-x gdb in Emacs. 1389 case $srcdir in 1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1391 esac 1392 for ac_var in $ac_precious_vars; do 1393 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_env_${ac_var}_value=\$${ac_var} 1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1396 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1397 done 1398 1399 # 1400 # Report the --help message. 1401 # 1402 if test "$ac_init_help" = "long"; then 1403 # Omit some internal or obsolete options to make the list less imposing. 1404 # This message is too long to be a string in the A/UX 3.1 sh. 1405 cat <<_ACEOF 1406 \`configure' configures xf86-video-siliconmotion 1.7.10 to adapt to many kinds of systems. 1407 1408 Usage: $0 [OPTION]... [VAR=VALUE]... 1409 1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1411 VAR=VALUE. See below for descriptions of some of the useful variables. 1412 1413 Defaults for the options are specified in brackets. 1414 1415 Configuration: 1416 -h, --help display this help and exit 1417 --help=short display options specific to this package 1418 --help=recursive display the short help of all the included packages 1419 -V, --version display version information and exit 1420 -q, --quiet, --silent do not print \`checking ...' messages 1421 --cache-file=FILE cache test results in FILE [disabled] 1422 -C, --config-cache alias for \`--cache-file=config.cache' 1423 -n, --no-create do not create output files 1424 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1425 1426 Installation directories: 1427 --prefix=PREFIX install architecture-independent files in PREFIX 1428 [$ac_default_prefix] 1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1430 [PREFIX] 1431 1432 By default, \`make install' will install all the files in 1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1435 for instance \`--prefix=\$HOME'. 1436 1437 For better control, use the options below. 1438 1439 Fine tuning of the installation directories: 1440 --bindir=DIR user executables [EPREFIX/bin] 1441 --sbindir=DIR system admin executables [EPREFIX/sbin] 1442 --libexecdir=DIR program executables [EPREFIX/libexec] 1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1446 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1447 --libdir=DIR object code libraries [EPREFIX/lib] 1448 --includedir=DIR C header files [PREFIX/include] 1449 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1452 --infodir=DIR info documentation [DATAROOTDIR/info] 1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1454 --mandir=DIR man documentation [DATAROOTDIR/man] 1455 --docdir=DIR documentation root 1456 [DATAROOTDIR/doc/xf86-video-siliconmotion] 1457 --htmldir=DIR html documentation [DOCDIR] 1458 --dvidir=DIR dvi documentation [DOCDIR] 1459 --pdfdir=DIR pdf documentation [DOCDIR] 1460 --psdir=DIR ps documentation [DOCDIR] 1461 _ACEOF 1462 1463 cat <<\_ACEOF 1464 1465 Program names: 1466 --program-prefix=C prepend C to installed program names 1467 --program-suffix=SUFFIX append SUFFIX to installed program names 1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1469 1470 System types: 1471 --build=BUILD configure for building on BUILD [guessed] 1472 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1473 _ACEOF 1474 fi 1475 1476 if test -n "$ac_init_help"; then 1477 case $ac_init_help in 1478 short | recursive ) echo "Configuration of xf86-video-siliconmotion 1.7.10:";; 1479 esac 1480 cat <<\_ACEOF 1481 1482 Optional Features: 1483 --disable-option-checking ignore unrecognized --enable/--with options 1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1486 --disable-selective-werror 1487 Turn off selective compiler errors. (default: 1488 enabled) 1489 --enable-strict-compilation 1490 Enable all warnings from compiler and make them 1491 errors (default: disabled) 1492 --enable-silent-rules less verbose build output (undo: "make V=1") 1493 --disable-silent-rules verbose build output (undo: "make V=0") 1494 --enable-dependency-tracking 1495 do not reject slow dependency extractors 1496 --disable-dependency-tracking 1497 speeds up one-time build 1498 --enable-static[=PKGS] build static libraries [default=no] 1499 --enable-shared[=PKGS] build shared libraries [default=yes] 1500 --enable-fast-install[=PKGS] 1501 optimize for fast installation [default=yes] 1502 --disable-libtool-lock avoid locking (might break parallel builds) 1503 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1504 [default=auto] 1505 1506 Optional Packages: 1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1509 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1510 both] 1511 --with-aix-soname=aix|svr4|both 1512 shared library versioning (aka "SONAME") variant to 1513 provide on AIX, [default=aix]. 1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1515 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1516 compiler's sysroot if not specified). 1517 --with-xorg-module-dir=DIR 1518 Default xorg module directory 1519 [[default=$libdir/xorg/modules]] 1520 1521 Some influential environment variables: 1522 CC C compiler command 1523 CFLAGS C compiler flags 1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1525 nonstandard directory <lib dir> 1526 LIBS libraries to pass to the linker, e.g. -l<library> 1527 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1528 you have headers in a nonstandard directory <include dir> 1529 PKG_CONFIG path to pkg-config utility 1530 PKG_CONFIG_PATH 1531 directories to add to pkg-config's search path 1532 PKG_CONFIG_LIBDIR 1533 path overriding pkg-config's built-in search path 1534 LT_SYS_LIBRARY_PATH 1535 User-defined run-time library search path. 1536 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1537 XORG_LIBS linker flags for XORG, overriding pkg-config 1538 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1539 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1540 PCIACCESS_CFLAGS 1541 C compiler flags for PCIACCESS, overriding pkg-config 1542 PCIACCESS_LIBS 1543 linker flags for PCIACCESS, overriding pkg-config 1544 1545 Use these variables to override the choices made by `configure' or to help 1546 it to find libraries and programs with nonstandard names/locations. 1547 1548 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/issues>. 1549 _ACEOF 1550 ac_status=$? 1551 fi 1552 1553 if test "$ac_init_help" = "recursive"; then 1554 # If there are subdirs, report their specific --help. 1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1556 test -d "$ac_dir" || 1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1558 continue 1559 ac_builddir=. 1560 1561 case "$ac_dir" in 1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1563 *) 1564 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1565 # A ".." for each directory in $ac_dir_suffix. 1566 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1567 case $ac_top_builddir_sub in 1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1570 esac ;; 1571 esac 1572 ac_abs_top_builddir=$ac_pwd 1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1574 # for backward compatibility: 1575 ac_top_builddir=$ac_top_build_prefix 1576 1577 case $srcdir in 1578 .) # We are building in place. 1579 ac_srcdir=. 1580 ac_top_srcdir=$ac_top_builddir_sub 1581 ac_abs_top_srcdir=$ac_pwd ;; 1582 [\\/]* | ?:[\\/]* ) # Absolute name. 1583 ac_srcdir=$srcdir$ac_dir_suffix; 1584 ac_top_srcdir=$srcdir 1585 ac_abs_top_srcdir=$srcdir ;; 1586 *) # Relative name. 1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1588 ac_top_srcdir=$ac_top_build_prefix$srcdir 1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1590 esac 1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1592 1593 cd "$ac_dir" || { ac_status=$?; continue; } 1594 # Check for configure.gnu first; this name is used for a wrapper for 1595 # Metaconfig's "Configure" on case-insensitive file systems. 1596 if test -f "$ac_srcdir/configure.gnu"; then 1597 echo && 1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1599 elif test -f "$ac_srcdir/configure"; then 1600 echo && 1601 $SHELL "$ac_srcdir/configure" --help=recursive 1602 else 1603 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1604 fi || ac_status=$? 1605 cd "$ac_pwd" || { ac_status=$?; break; } 1606 done 1607 fi 1608 1609 test -n "$ac_init_help" && exit $ac_status 1610 if $ac_init_version; then 1611 cat <<\_ACEOF 1612 xf86-video-siliconmotion configure 1.7.10 1613 generated by GNU Autoconf 2.71 1614 1615 Copyright (C) 2021 Free Software Foundation, Inc. 1616 This configure script is free software; the Free Software Foundation 1617 gives unlimited permission to copy, distribute and modify it. 1618 _ACEOF 1619 exit 1620 fi 1621 1622 ## ------------------------ ## 1623 ## Autoconf initialization. ## 1624 ## ------------------------ ## 1625 1626 # ac_fn_c_try_compile LINENO 1627 # -------------------------- 1628 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1629 ac_fn_c_try_compile () 1630 { 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 rm -f conftest.$ac_objext conftest.beam 1633 if { { ac_try="$ac_compile" 1634 case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637 esac 1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639 printf "%s\n" "$ac_try_echo"; } >&5 1640 (eval "$ac_compile") 2>conftest.err 1641 ac_status=$? 1642 if test -s conftest.err; then 1643 grep -v '^ *+' conftest.err >conftest.er1 1644 cat conftest.er1 >&5 1645 mv -f conftest.er1 conftest.err 1646 fi 1647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } && { 1649 test -z "$ac_c_werror_flag" || 1650 test ! -s conftest.err 1651 } && test -s conftest.$ac_objext 1652 then : 1653 ac_retval=0 1654 else $as_nop 1655 printf "%s\n" "$as_me: failed program was:" >&5 1656 sed 's/^/| /' conftest.$ac_ext >&5 1657 1658 ac_retval=1 1659 fi 1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1661 as_fn_set_status $ac_retval 1662 1663 } # ac_fn_c_try_compile 1664 1665 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1666 # ------------------------------------------------------------------ 1667 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1668 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1669 ac_fn_check_decl () 1670 { 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 as_decl_name=`echo $2|sed 's/ *(.*//'` 1673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1674 printf %s "checking whether $as_decl_name is declared... " >&6; } 1675 if eval test \${$3+y} 1676 then : 1677 printf %s "(cached) " >&6 1678 else $as_nop 1679 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1680 eval ac_save_FLAGS=\$$6 1681 as_fn_append $6 " $5" 1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1683 /* end confdefs.h. */ 1684 $4 1685 int 1686 main (void) 1687 { 1688 #ifndef $as_decl_name 1689 #ifdef __cplusplus 1690 (void) $as_decl_use; 1691 #else 1692 (void) $as_decl_name; 1693 #endif 1694 #endif 1695 1696 ; 1697 return 0; 1698 } 1699 _ACEOF 1700 if ac_fn_c_try_compile "$LINENO" 1701 then : 1702 eval "$3=yes" 1703 else $as_nop 1704 eval "$3=no" 1705 fi 1706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1707 eval $6=\$ac_save_FLAGS 1708 1709 fi 1710 eval ac_res=\$$3 1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1712 printf "%s\n" "$ac_res" >&6; } 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 1715 } # ac_fn_check_decl 1716 1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1718 # ------------------------------------------------------- 1719 # Tests whether HEADER exists and can be compiled using the include files in 1720 # INCLUDES, setting the cache variable VAR accordingly. 1721 ac_fn_c_check_header_compile () 1722 { 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725 printf %s "checking for $2... " >&6; } 1726 if eval test \${$3+y} 1727 then : 1728 printf %s "(cached) " >&6 1729 else $as_nop 1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731 /* end confdefs.h. */ 1732 $4 1733 #include <$2> 1734 _ACEOF 1735 if ac_fn_c_try_compile "$LINENO" 1736 then : 1737 eval "$3=yes" 1738 else $as_nop 1739 eval "$3=no" 1740 fi 1741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1742 fi 1743 eval ac_res=\$$3 1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1745 printf "%s\n" "$ac_res" >&6; } 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 1748 } # ac_fn_c_check_header_compile 1749 1750 # ac_fn_c_try_link LINENO 1751 # ----------------------- 1752 # Try to link conftest.$ac_ext, and return whether this succeeded. 1753 ac_fn_c_try_link () 1754 { 1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1756 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1757 if { { ac_try="$ac_link" 1758 case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761 esac 1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763 printf "%s\n" "$ac_try_echo"; } >&5 1764 (eval "$ac_link") 2>conftest.err 1765 ac_status=$? 1766 if test -s conftest.err; then 1767 grep -v '^ *+' conftest.err >conftest.er1 1768 cat conftest.er1 >&5 1769 mv -f conftest.er1 conftest.err 1770 fi 1771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } && { 1773 test -z "$ac_c_werror_flag" || 1774 test ! -s conftest.err 1775 } && test -s conftest$ac_exeext && { 1776 test "$cross_compiling" = yes || 1777 test -x conftest$ac_exeext 1778 } 1779 then : 1780 ac_retval=0 1781 else $as_nop 1782 printf "%s\n" "$as_me: failed program was:" >&5 1783 sed 's/^/| /' conftest.$ac_ext >&5 1784 1785 ac_retval=1 1786 fi 1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1789 # interfere with the next link command; also delete a directory that is 1790 # left behind by Apple's compiler. We do this before executing the actions. 1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 as_fn_set_status $ac_retval 1794 1795 } # ac_fn_c_try_link 1796 1797 # ac_fn_c_check_func LINENO FUNC VAR 1798 # ---------------------------------- 1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1800 ac_fn_c_check_func () 1801 { 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804 printf %s "checking for $2... " >&6; } 1805 if eval test \${$3+y} 1806 then : 1807 printf %s "(cached) " >&6 1808 else $as_nop 1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1810 /* end confdefs.h. */ 1811 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1812 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1813 #define $2 innocuous_$2 1814 1815 /* System header to define __stub macros and hopefully few prototypes, 1816 which can conflict with char $2 (); below. */ 1817 1818 #include <limits.h> 1819 #undef $2 1820 1821 /* Override any GCC internal prototype to avoid an error. 1822 Use char because int might match the return type of a GCC 1823 builtin and then its argument prototype would still apply. */ 1824 #ifdef __cplusplus 1825 extern "C" 1826 #endif 1827 char $2 (); 1828 /* The GNU C library defines this for functions which it implements 1829 to always fail with ENOSYS. Some functions are actually named 1830 something starting with __ and the normal name is an alias. */ 1831 #if defined __stub_$2 || defined __stub___$2 1832 choke me 1833 #endif 1834 1835 int 1836 main (void) 1837 { 1838 return $2 (); 1839 ; 1840 return 0; 1841 } 1842 _ACEOF 1843 if ac_fn_c_try_link "$LINENO" 1844 then : 1845 eval "$3=yes" 1846 else $as_nop 1847 eval "$3=no" 1848 fi 1849 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1850 conftest$ac_exeext conftest.$ac_ext 1851 fi 1852 eval ac_res=\$$3 1853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1854 printf "%s\n" "$ac_res" >&6; } 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1856 1857 } # ac_fn_c_check_func 1858 ac_configure_args_raw= 1859 for ac_arg 1860 do 1861 case $ac_arg in 1862 *\'*) 1863 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1864 esac 1865 as_fn_append ac_configure_args_raw " '$ac_arg'" 1866 done 1867 1868 case $ac_configure_args_raw in 1869 *$as_nl*) 1870 ac_safe_unquote= ;; 1871 *) 1872 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1873 ac_unsafe_a="$ac_unsafe_z#~" 1874 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1875 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1876 esac 1877 1878 cat >config.log <<_ACEOF 1879 This file contains any messages produced by compilers while 1880 running configure, to aid debugging if configure makes a mistake. 1881 1882 It was created by xf86-video-siliconmotion $as_me 1.7.10, which was 1883 generated by GNU Autoconf 2.71. Invocation command line was 1884 1885 $ $0$ac_configure_args_raw 1886 1887 _ACEOF 1888 exec 5>>config.log 1889 { 1890 cat <<_ASUNAME 1891 ## --------- ## 1892 ## Platform. ## 1893 ## --------- ## 1894 1895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1896 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1897 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1898 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1899 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1900 1901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1903 1904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1907 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1911 1912 _ASUNAME 1913 1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1915 for as_dir in $PATH 1916 do 1917 IFS=$as_save_IFS 1918 case $as_dir in #((( 1919 '') as_dir=./ ;; 1920 */) ;; 1921 *) as_dir=$as_dir/ ;; 1922 esac 1923 printf "%s\n" "PATH: $as_dir" 1924 done 1925 IFS=$as_save_IFS 1926 1927 } >&5 1928 1929 cat >&5 <<_ACEOF 1930 1931 1932 ## ----------- ## 1933 ## Core tests. ## 1934 ## ----------- ## 1935 1936 _ACEOF 1937 1938 1939 # Keep a trace of the command line. 1940 # Strip out --no-create and --no-recursion so they do not pile up. 1941 # Strip out --silent because we don't want to record it for future runs. 1942 # Also quote any args containing shell meta-characters. 1943 # Make two passes to allow for proper duplicate-argument suppression. 1944 ac_configure_args= 1945 ac_configure_args0= 1946 ac_configure_args1= 1947 ac_must_keep_next=false 1948 for ac_pass in 1 2 1949 do 1950 for ac_arg 1951 do 1952 case $ac_arg in 1953 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1955 | -silent | --silent | --silen | --sile | --sil) 1956 continue ;; 1957 *\'*) 1958 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1959 esac 1960 case $ac_pass in 1961 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1962 2) 1963 as_fn_append ac_configure_args1 " '$ac_arg'" 1964 if test $ac_must_keep_next = true; then 1965 ac_must_keep_next=false # Got value, back to normal. 1966 else 1967 case $ac_arg in 1968 *=* | --config-cache | -C | -disable-* | --disable-* \ 1969 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1970 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1971 | -with-* | --with-* | -without-* | --without-* | --x) 1972 case "$ac_configure_args0 " in 1973 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1974 esac 1975 ;; 1976 -* ) ac_must_keep_next=true ;; 1977 esac 1978 fi 1979 as_fn_append ac_configure_args " '$ac_arg'" 1980 ;; 1981 esac 1982 done 1983 done 1984 { ac_configure_args0=; unset ac_configure_args0;} 1985 { ac_configure_args1=; unset ac_configure_args1;} 1986 1987 # When interrupted or exit'd, cleanup temporary files, and complete 1988 # config.log. We remove comments because anyway the quotes in there 1989 # would cause problems or look ugly. 1990 # WARNING: Use '\'' to represent an apostrophe within the trap. 1991 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1992 trap 'exit_status=$? 1993 # Sanitize IFS. 1994 IFS=" "" $as_nl" 1995 # Save into config.log some information that might help in debugging. 1996 { 1997 echo 1998 1999 printf "%s\n" "## ---------------- ## 2000 ## Cache variables. ## 2001 ## ---------------- ##" 2002 echo 2003 # The following way of writing the cache mishandles newlines in values, 2004 ( 2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2006 eval ac_val=\$$ac_var 2007 case $ac_val in #( 2008 *${as_nl}*) 2009 case $ac_var in #( 2010 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2011 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2012 esac 2013 case $ac_var in #( 2014 _ | IFS | as_nl) ;; #( 2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2016 *) { eval $ac_var=; unset $ac_var;} ;; 2017 esac ;; 2018 esac 2019 done 2020 (set) 2>&1 | 2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2022 *${as_nl}ac_space=\ *) 2023 sed -n \ 2024 "s/'\''/'\''\\\\'\'''\''/g; 2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2026 ;; #( 2027 *) 2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2029 ;; 2030 esac | 2031 sort 2032 ) 2033 echo 2034 2035 printf "%s\n" "## ----------------- ## 2036 ## Output variables. ## 2037 ## ----------------- ##" 2038 echo 2039 for ac_var in $ac_subst_vars 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 printf "%s\n" "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 2049 if test -n "$ac_subst_files"; then 2050 printf "%s\n" "## ------------------- ## 2051 ## File substitutions. ## 2052 ## ------------------- ##" 2053 echo 2054 for ac_var in $ac_subst_files 2055 do 2056 eval ac_val=\$$ac_var 2057 case $ac_val in 2058 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2059 esac 2060 printf "%s\n" "$ac_var='\''$ac_val'\''" 2061 done | sort 2062 echo 2063 fi 2064 2065 if test -s confdefs.h; then 2066 printf "%s\n" "## ----------- ## 2067 ## confdefs.h. ## 2068 ## ----------- ##" 2069 echo 2070 cat confdefs.h 2071 echo 2072 fi 2073 test "$ac_signal" != 0 && 2074 printf "%s\n" "$as_me: caught signal $ac_signal" 2075 printf "%s\n" "$as_me: exit $exit_status" 2076 } >&5 2077 rm -f core *.core core.conftest.* && 2078 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2079 exit $exit_status 2080 ' 0 2081 for ac_signal in 1 2 13 15; do 2082 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2083 done 2084 ac_signal=0 2085 2086 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2087 rm -f -r conftest* confdefs.h 2088 2089 printf "%s\n" "/* confdefs.h */" > confdefs.h 2090 2091 # Predefined preprocessor variables. 2092 2093 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2094 2095 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2096 2097 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2098 2099 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2100 2101 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2102 2103 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2104 2105 2106 # Let the site file select an alternate cache file if it wants to. 2107 # Prefer an explicitly selected file to automatically selected ones. 2108 if test -n "$CONFIG_SITE"; then 2109 ac_site_files="$CONFIG_SITE" 2110 elif test "x$prefix" != xNONE; then 2111 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2112 else 2113 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2114 fi 2115 2116 for ac_site_file in $ac_site_files 2117 do 2118 case $ac_site_file in #( 2119 */*) : 2120 ;; #( 2121 *) : 2122 ac_site_file=./$ac_site_file ;; 2123 esac 2124 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2126 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2127 sed 's/^/| /' "$ac_site_file" >&5 2128 . "$ac_site_file" \ 2129 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2130 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2131 as_fn_error $? "failed to load site script $ac_site_file 2132 See \`config.log' for more details" "$LINENO" 5; } 2133 fi 2134 done 2135 2136 if test -r "$cache_file"; then 2137 # Some versions of bash will fail to source /dev/null (special files 2138 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2139 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2141 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2142 case $cache_file in 2143 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2144 *) . "./$cache_file";; 2145 esac 2146 fi 2147 else 2148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2149 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2150 >$cache_file 2151 fi 2152 2153 # Test code for whether the C compiler supports C89 (global declarations) 2154 ac_c_conftest_c89_globals=' 2155 /* Does the compiler advertise C89 conformance? 2156 Do not test the value of __STDC__, because some compilers set it to 0 2157 while being otherwise adequately conformant. */ 2158 #if !defined __STDC__ 2159 # error "Compiler does not advertise C89 conformance" 2160 #endif 2161 2162 #include <stddef.h> 2163 #include <stdarg.h> 2164 struct stat; 2165 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2166 struct buf { int x; }; 2167 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2168 static char *e (p, i) 2169 char **p; 2170 int i; 2171 { 2172 return p[i]; 2173 } 2174 static char *f (char * (*g) (char **, int), char **p, ...) 2175 { 2176 char *s; 2177 va_list v; 2178 va_start (v,p); 2179 s = g (p, va_arg (v,int)); 2180 va_end (v); 2181 return s; 2182 } 2183 2184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2185 function prototypes and stuff, but not \xHH hex character constants. 2186 These do not provoke an error unfortunately, instead are silently treated 2187 as an "x". The following induces an error, until -std is added to get 2188 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2189 array size at least. It is necessary to write \x00 == 0 to get something 2190 that is true only with -std. */ 2191 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2192 2193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2194 inside strings and character constants. */ 2195 #define FOO(x) '\''x'\'' 2196 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2197 2198 int test (int i, double x); 2199 struct s1 {int (*f) (int a);}; 2200 struct s2 {int (*f) (double a);}; 2201 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2202 int, int);' 2203 2204 # Test code for whether the C compiler supports C89 (body of main). 2205 ac_c_conftest_c89_main=' 2206 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2207 ' 2208 2209 # Test code for whether the C compiler supports C99 (global declarations) 2210 ac_c_conftest_c99_globals=' 2211 // Does the compiler advertise C99 conformance? 2212 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2213 # error "Compiler does not advertise C99 conformance" 2214 #endif 2215 2216 #include <stdbool.h> 2217 extern int puts (const char *); 2218 extern int printf (const char *, ...); 2219 extern int dprintf (int, const char *, ...); 2220 extern void *malloc (size_t); 2221 2222 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2223 // dprintf is used instead of fprintf to avoid needing to declare 2224 // FILE and stderr. 2225 #define debug(...) dprintf (2, __VA_ARGS__) 2226 #define showlist(...) puts (#__VA_ARGS__) 2227 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2228 static void 2229 test_varargs_macros (void) 2230 { 2231 int x = 1234; 2232 int y = 5678; 2233 debug ("Flag"); 2234 debug ("X = %d\n", x); 2235 showlist (The first, second, and third items.); 2236 report (x>y, "x is %d but y is %d", x, y); 2237 } 2238 2239 // Check long long types. 2240 #define BIG64 18446744073709551615ull 2241 #define BIG32 4294967295ul 2242 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2243 #if !BIG_OK 2244 #error "your preprocessor is broken" 2245 #endif 2246 #if BIG_OK 2247 #else 2248 #error "your preprocessor is broken" 2249 #endif 2250 static long long int bignum = -9223372036854775807LL; 2251 static unsigned long long int ubignum = BIG64; 2252 2253 struct incomplete_array 2254 { 2255 int datasize; 2256 double data[]; 2257 }; 2258 2259 struct named_init { 2260 int number; 2261 const wchar_t *name; 2262 double average; 2263 }; 2264 2265 typedef const char *ccp; 2266 2267 static inline int 2268 test_restrict (ccp restrict text) 2269 { 2270 // See if C++-style comments work. 2271 // Iterate through items via the restricted pointer. 2272 // Also check for declarations in for loops. 2273 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2274 continue; 2275 return 0; 2276 } 2277 2278 // Check varargs and va_copy. 2279 static bool 2280 test_varargs (const char *format, ...) 2281 { 2282 va_list args; 2283 va_start (args, format); 2284 va_list args_copy; 2285 va_copy (args_copy, args); 2286 2287 const char *str = ""; 2288 int number = 0; 2289 float fnumber = 0; 2290 2291 while (*format) 2292 { 2293 switch (*format++) 2294 { 2295 case '\''s'\'': // string 2296 str = va_arg (args_copy, const char *); 2297 break; 2298 case '\''d'\'': // int 2299 number = va_arg (args_copy, int); 2300 break; 2301 case '\''f'\'': // float 2302 fnumber = va_arg (args_copy, double); 2303 break; 2304 default: 2305 break; 2306 } 2307 } 2308 va_end (args_copy); 2309 va_end (args); 2310 2311 return *str && number && fnumber; 2312 } 2313 ' 2314 2315 # Test code for whether the C compiler supports C99 (body of main). 2316 ac_c_conftest_c99_main=' 2317 // Check bool. 2318 _Bool success = false; 2319 success |= (argc != 0); 2320 2321 // Check restrict. 2322 if (test_restrict ("String literal") == 0) 2323 success = true; 2324 char *restrict newvar = "Another string"; 2325 2326 // Check varargs. 2327 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2328 test_varargs_macros (); 2329 2330 // Check flexible array members. 2331 struct incomplete_array *ia = 2332 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2333 ia->datasize = 10; 2334 for (int i = 0; i < ia->datasize; ++i) 2335 ia->data[i] = i * 1.234; 2336 2337 // Check named initializers. 2338 struct named_init ni = { 2339 .number = 34, 2340 .name = L"Test wide string", 2341 .average = 543.34343, 2342 }; 2343 2344 ni.number = 58; 2345 2346 int dynamic_array[ni.number]; 2347 dynamic_array[0] = argv[0][0]; 2348 dynamic_array[ni.number - 1] = 543; 2349 2350 // work around unused variable warnings 2351 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2352 || dynamic_array[ni.number - 1] != 543); 2353 ' 2354 2355 # Test code for whether the C compiler supports C11 (global declarations) 2356 ac_c_conftest_c11_globals=' 2357 // Does the compiler advertise C11 conformance? 2358 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2359 # error "Compiler does not advertise C11 conformance" 2360 #endif 2361 2362 // Check _Alignas. 2363 char _Alignas (double) aligned_as_double; 2364 char _Alignas (0) no_special_alignment; 2365 extern char aligned_as_int; 2366 char _Alignas (0) _Alignas (int) aligned_as_int; 2367 2368 // Check _Alignof. 2369 enum 2370 { 2371 int_alignment = _Alignof (int), 2372 int_array_alignment = _Alignof (int[100]), 2373 char_alignment = _Alignof (char) 2374 }; 2375 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2376 2377 // Check _Noreturn. 2378 int _Noreturn does_not_return (void) { for (;;) continue; } 2379 2380 // Check _Static_assert. 2381 struct test_static_assert 2382 { 2383 int x; 2384 _Static_assert (sizeof (int) <= sizeof (long int), 2385 "_Static_assert does not work in struct"); 2386 long int y; 2387 }; 2388 2389 // Check UTF-8 literals. 2390 #define u8 syntax error! 2391 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2392 2393 // Check duplicate typedefs. 2394 typedef long *long_ptr; 2395 typedef long int *long_ptr; 2396 typedef long_ptr long_ptr; 2397 2398 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2399 struct anonymous 2400 { 2401 union { 2402 struct { int i; int j; }; 2403 struct { int k; long int l; } w; 2404 }; 2405 int m; 2406 } v1; 2407 ' 2408 2409 # Test code for whether the C compiler supports C11 (body of main). 2410 ac_c_conftest_c11_main=' 2411 _Static_assert ((offsetof (struct anonymous, i) 2412 == offsetof (struct anonymous, w.k)), 2413 "Anonymous union alignment botch"); 2414 v1.i = 2; 2415 v1.w.k = 5; 2416 ok |= v1.i != 5; 2417 ' 2418 2419 # Test code for whether the C compiler supports C11 (complete). 2420 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2421 ${ac_c_conftest_c99_globals} 2422 ${ac_c_conftest_c11_globals} 2423 2424 int 2425 main (int argc, char **argv) 2426 { 2427 int ok = 0; 2428 ${ac_c_conftest_c89_main} 2429 ${ac_c_conftest_c99_main} 2430 ${ac_c_conftest_c11_main} 2431 return ok; 2432 } 2433 " 2434 2435 # Test code for whether the C compiler supports C99 (complete). 2436 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2437 ${ac_c_conftest_c99_globals} 2438 2439 int 2440 main (int argc, char **argv) 2441 { 2442 int ok = 0; 2443 ${ac_c_conftest_c89_main} 2444 ${ac_c_conftest_c99_main} 2445 return ok; 2446 } 2447 " 2448 2449 # Test code for whether the C compiler supports C89 (complete). 2450 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2451 2452 int 2453 main (int argc, char **argv) 2454 { 2455 int ok = 0; 2456 ${ac_c_conftest_c89_main} 2457 return ok; 2458 } 2459 " 2460 2461 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2462 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2463 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2464 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2465 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2466 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2467 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2468 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2469 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2470 2471 # Auxiliary files required by this configure script. 2472 ac_aux_files="ltmain.sh missing config.guess config.sub compile install-sh" 2473 2474 # Locations in which to look for auxiliary files. 2475 ac_aux_dir_candidates="${srcdir}/." 2476 2477 # Search for a directory containing all of the required auxiliary files, 2478 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2479 # If we don't find one directory that contains all the files we need, 2480 # we report the set of missing files from the *first* directory in 2481 # $ac_aux_dir_candidates and give up. 2482 ac_missing_aux_files="" 2483 ac_first_candidate=: 2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2486 as_found=false 2487 for as_dir in $ac_aux_dir_candidates 2488 do 2489 IFS=$as_save_IFS 2490 case $as_dir in #((( 2491 '') as_dir=./ ;; 2492 */) ;; 2493 *) as_dir=$as_dir/ ;; 2494 esac 2495 as_found=: 2496 2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2498 ac_aux_dir_found=yes 2499 ac_install_sh= 2500 for ac_aux in $ac_aux_files 2501 do 2502 # As a special case, if "install-sh" is required, that requirement 2503 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2504 # and $ac_install_sh is set appropriately for whichever one is found. 2505 if test x"$ac_aux" = x"install-sh" 2506 then 2507 if test -f "${as_dir}install-sh"; then 2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2509 ac_install_sh="${as_dir}install-sh -c" 2510 elif test -f "${as_dir}install.sh"; then 2511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2512 ac_install_sh="${as_dir}install.sh -c" 2513 elif test -f "${as_dir}shtool"; then 2514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2515 ac_install_sh="${as_dir}shtool install -c" 2516 else 2517 ac_aux_dir_found=no 2518 if $ac_first_candidate; then 2519 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2520 else 2521 break 2522 fi 2523 fi 2524 else 2525 if test -f "${as_dir}${ac_aux}"; then 2526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2527 else 2528 ac_aux_dir_found=no 2529 if $ac_first_candidate; then 2530 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2531 else 2532 break 2533 fi 2534 fi 2535 fi 2536 done 2537 if test "$ac_aux_dir_found" = yes; then 2538 ac_aux_dir="$as_dir" 2539 break 2540 fi 2541 ac_first_candidate=false 2542 2543 as_found=false 2544 done 2545 IFS=$as_save_IFS 2546 if $as_found 2547 then : 2548 2549 else $as_nop 2550 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2551 fi 2552 2553 2554 # These three variables are undocumented and unsupported, 2555 # and are intended to be withdrawn in a future Autoconf release. 2556 # They can cause serious problems if a builder's source tree is in a directory 2557 # whose full name contains unusual characters. 2558 if test -f "${ac_aux_dir}config.guess"; then 2559 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2560 fi 2561 if test -f "${ac_aux_dir}config.sub"; then 2562 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2563 fi 2564 if test -f "$ac_aux_dir/configure"; then 2565 ac_configure="$SHELL ${ac_aux_dir}configure" 2566 fi 2567 2568 # Check that the precious variables saved in the cache have kept the same 2569 # value. 2570 ac_cache_corrupted=false 2571 for ac_var in $ac_precious_vars; do 2572 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2573 eval ac_new_set=\$ac_env_${ac_var}_set 2574 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2575 eval ac_new_val=\$ac_env_${ac_var}_value 2576 case $ac_old_set,$ac_new_set in 2577 set,) 2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2579 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2580 ac_cache_corrupted=: ;; 2581 ,set) 2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2583 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2584 ac_cache_corrupted=: ;; 2585 ,);; 2586 *) 2587 if test "x$ac_old_val" != "x$ac_new_val"; then 2588 # differences in whitespace do not lead to failure. 2589 ac_old_val_w=`echo x $ac_old_val` 2590 ac_new_val_w=`echo x $ac_new_val` 2591 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2593 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2594 ac_cache_corrupted=: 2595 else 2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2597 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2598 eval $ac_var=\$ac_old_val 2599 fi 2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2601 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2603 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2604 fi;; 2605 esac 2606 # Pass precious variables to config.status. 2607 if test "$ac_new_set" = set; then 2608 case $ac_new_val in 2609 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2610 *) ac_arg=$ac_var=$ac_new_val ;; 2611 esac 2612 case " $ac_configure_args " in 2613 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2614 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2615 esac 2616 fi 2617 done 2618 if $ac_cache_corrupted; then 2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2620 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2622 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2623 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2624 and start over" "$LINENO" 5 2625 fi 2626 ## -------------------- ## 2627 ## Main body of script. ## 2628 ## -------------------- ## 2629 2630 ac_ext=c 2631 ac_cpp='$CPP $CPPFLAGS' 2632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2634 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2635 2636 2637 2638 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 # Find a good install program. We prefer a C program (faster), 2653 # so one script is as good as another. But avoid the broken or 2654 # incompatible versions: 2655 # SysV /etc/install, /usr/sbin/install 2656 # SunOS /usr/etc/install 2657 # IRIX /sbin/install 2658 # AIX /bin/install 2659 # AmigaOS /C/install, which installs bootblocks on floppy discs 2660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2663 # OS/2's system install, which has a completely different semantic 2664 # ./install, which can be erroneously created by make from ./install.sh. 2665 # Reject install programs that cannot install multiple files. 2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2667 printf %s "checking for a BSD-compatible install... " >&6; } 2668 if test -z "$INSTALL"; then 2669 if test ${ac_cv_path_install+y} 2670 then : 2671 printf %s "(cached) " >&6 2672 else $as_nop 2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2674 for as_dir in $PATH 2675 do 2676 IFS=$as_save_IFS 2677 case $as_dir in #((( 2678 '') as_dir=./ ;; 2679 */) ;; 2680 *) as_dir=$as_dir/ ;; 2681 esac 2682 # Account for fact that we put trailing slashes in our PATH walk. 2683 case $as_dir in #(( 2684 ./ | /[cC]/* | \ 2685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2686 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2687 /usr/ucb/* ) ;; 2688 *) 2689 # OSF1 and SCO ODT 3.0 have their own names for install. 2690 # Don't use installbsd from OSF since it installs stuff as root 2691 # by default. 2692 for ac_prog in ginstall scoinst install; do 2693 for ac_exec_ext in '' $ac_executable_extensions; do 2694 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2695 if test $ac_prog = install && 2696 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2697 # AIX install. It has an incompatible calling convention. 2698 : 2699 elif test $ac_prog = install && 2700 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2701 # program-specific install script used by HP pwplus--don't use. 2702 : 2703 else 2704 rm -rf conftest.one conftest.two conftest.dir 2705 echo one > conftest.one 2706 echo two > conftest.two 2707 mkdir conftest.dir 2708 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2709 test -s conftest.one && test -s conftest.two && 2710 test -s conftest.dir/conftest.one && 2711 test -s conftest.dir/conftest.two 2712 then 2713 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2714 break 3 2715 fi 2716 fi 2717 fi 2718 done 2719 done 2720 ;; 2721 esac 2722 2723 done 2724 IFS=$as_save_IFS 2725 2726 rm -rf conftest.one conftest.two conftest.dir 2727 2728 fi 2729 if test ${ac_cv_path_install+y}; then 2730 INSTALL=$ac_cv_path_install 2731 else 2732 # As a last resort, use the slow shell script. Don't cache a 2733 # value for INSTALL within a source directory, because that will 2734 # break other packages using the cache if that directory is 2735 # removed, or if the value is a relative name. 2736 INSTALL=$ac_install_sh 2737 fi 2738 fi 2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2740 printf "%s\n" "$INSTALL" >&6; } 2741 2742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2743 # It thinks the first close brace ends the variable substitution. 2744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2745 2746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2747 2748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 # Expand $ac_aux_dir to an absolute path. 2761 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2762 2763 ac_ext=c 2764 ac_cpp='$CPP $CPPFLAGS' 2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2768 if test -n "$ac_tool_prefix"; then 2769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2770 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2772 printf %s "checking for $ac_word... " >&6; } 2773 if test ${ac_cv_prog_CC+y} 2774 then : 2775 printf %s "(cached) " >&6 2776 else $as_nop 2777 if test -n "$CC"; then 2778 ac_cv_prog_CC="$CC" # Let the user override the test. 2779 else 2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781 for as_dir in $PATH 2782 do 2783 IFS=$as_save_IFS 2784 case $as_dir in #((( 2785 '') as_dir=./ ;; 2786 */) ;; 2787 *) as_dir=$as_dir/ ;; 2788 esac 2789 for ac_exec_ext in '' $ac_executable_extensions; do 2790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2791 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2793 break 2 2794 fi 2795 done 2796 done 2797 IFS=$as_save_IFS 2798 2799 fi 2800 fi 2801 CC=$ac_cv_prog_CC 2802 if test -n "$CC"; then 2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2804 printf "%s\n" "$CC" >&6; } 2805 else 2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2807 printf "%s\n" "no" >&6; } 2808 fi 2809 2810 2811 fi 2812 if test -z "$ac_cv_prog_CC"; then 2813 ac_ct_CC=$CC 2814 # Extract the first word of "gcc", so it can be a program name with args. 2815 set dummy gcc; ac_word=$2 2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2817 printf %s "checking for $ac_word... " >&6; } 2818 if test ${ac_cv_prog_ac_ct_CC+y} 2819 then : 2820 printf %s "(cached) " >&6 2821 else $as_nop 2822 if test -n "$ac_ct_CC"; then 2823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2824 else 2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2826 for as_dir in $PATH 2827 do 2828 IFS=$as_save_IFS 2829 case $as_dir in #((( 2830 '') as_dir=./ ;; 2831 */) ;; 2832 *) as_dir=$as_dir/ ;; 2833 esac 2834 for ac_exec_ext in '' $ac_executable_extensions; do 2835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2836 ac_cv_prog_ac_ct_CC="gcc" 2837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2838 break 2 2839 fi 2840 done 2841 done 2842 IFS=$as_save_IFS 2843 2844 fi 2845 fi 2846 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2847 if test -n "$ac_ct_CC"; then 2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2849 printf "%s\n" "$ac_ct_CC" >&6; } 2850 else 2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2852 printf "%s\n" "no" >&6; } 2853 fi 2854 2855 if test "x$ac_ct_CC" = x; then 2856 CC="" 2857 else 2858 case $cross_compiling:$ac_tool_warned in 2859 yes:) 2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2861 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2862 ac_tool_warned=yes ;; 2863 esac 2864 CC=$ac_ct_CC 2865 fi 2866 else 2867 CC="$ac_cv_prog_CC" 2868 fi 2869 2870 if test -z "$CC"; then 2871 if test -n "$ac_tool_prefix"; then 2872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2873 set dummy ${ac_tool_prefix}cc; ac_word=$2 2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2875 printf %s "checking for $ac_word... " >&6; } 2876 if test ${ac_cv_prog_CC+y} 2877 then : 2878 printf %s "(cached) " >&6 2879 else $as_nop 2880 if test -n "$CC"; then 2881 ac_cv_prog_CC="$CC" # Let the user override the test. 2882 else 2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884 for as_dir in $PATH 2885 do 2886 IFS=$as_save_IFS 2887 case $as_dir in #((( 2888 '') as_dir=./ ;; 2889 */) ;; 2890 *) as_dir=$as_dir/ ;; 2891 esac 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2894 ac_cv_prog_CC="${ac_tool_prefix}cc" 2895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2896 break 2 2897 fi 2898 done 2899 done 2900 IFS=$as_save_IFS 2901 2902 fi 2903 fi 2904 CC=$ac_cv_prog_CC 2905 if test -n "$CC"; then 2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2907 printf "%s\n" "$CC" >&6; } 2908 else 2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2910 printf "%s\n" "no" >&6; } 2911 fi 2912 2913 2914 fi 2915 fi 2916 if test -z "$CC"; then 2917 # Extract the first word of "cc", so it can be a program name with args. 2918 set dummy cc; ac_word=$2 2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2920 printf %s "checking for $ac_word... " >&6; } 2921 if test ${ac_cv_prog_CC+y} 2922 then : 2923 printf %s "(cached) " >&6 2924 else $as_nop 2925 if test -n "$CC"; then 2926 ac_cv_prog_CC="$CC" # Let the user override the test. 2927 else 2928 ac_prog_rejected=no 2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930 for as_dir in $PATH 2931 do 2932 IFS=$as_save_IFS 2933 case $as_dir in #((( 2934 '') as_dir=./ ;; 2935 */) ;; 2936 *) as_dir=$as_dir/ ;; 2937 esac 2938 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2940 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2941 ac_prog_rejected=yes 2942 continue 2943 fi 2944 ac_cv_prog_CC="cc" 2945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2946 break 2 2947 fi 2948 done 2949 done 2950 IFS=$as_save_IFS 2951 2952 if test $ac_prog_rejected = yes; then 2953 # We found a bogon in the path, so make sure we never use it. 2954 set dummy $ac_cv_prog_CC 2955 shift 2956 if test $# != 0; then 2957 # We chose a different compiler from the bogus one. 2958 # However, it has the same basename, so the bogon will be chosen 2959 # first if we set CC to just the basename; use the full file name. 2960 shift 2961 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2962 fi 2963 fi 2964 fi 2965 fi 2966 CC=$ac_cv_prog_CC 2967 if test -n "$CC"; then 2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2969 printf "%s\n" "$CC" >&6; } 2970 else 2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2972 printf "%s\n" "no" >&6; } 2973 fi 2974 2975 2976 fi 2977 if test -z "$CC"; then 2978 if test -n "$ac_tool_prefix"; then 2979 for ac_prog in cl.exe 2980 do 2981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2982 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2984 printf %s "checking for $ac_word... " >&6; } 2985 if test ${ac_cv_prog_CC+y} 2986 then : 2987 printf %s "(cached) " >&6 2988 else $as_nop 2989 if test -n "$CC"; then 2990 ac_cv_prog_CC="$CC" # Let the user override the test. 2991 else 2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2993 for as_dir in $PATH 2994 do 2995 IFS=$as_save_IFS 2996 case $as_dir in #((( 2997 '') as_dir=./ ;; 2998 */) ;; 2999 *) as_dir=$as_dir/ ;; 3000 esac 3001 for ac_exec_ext in '' $ac_executable_extensions; do 3002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3005 break 2 3006 fi 3007 done 3008 done 3009 IFS=$as_save_IFS 3010 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 test -n "$CC" && break 3024 done 3025 fi 3026 if test -z "$CC"; then 3027 ac_ct_CC=$CC 3028 for ac_prog in cl.exe 3029 do 3030 # Extract the first word of "$ac_prog", so it can be a program name with args. 3031 set dummy $ac_prog; ac_word=$2 3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3033 printf %s "checking for $ac_word... " >&6; } 3034 if test ${ac_cv_prog_ac_ct_CC+y} 3035 then : 3036 printf %s "(cached) " >&6 3037 else $as_nop 3038 if test -n "$ac_ct_CC"; then 3039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3040 else 3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3042 for as_dir in $PATH 3043 do 3044 IFS=$as_save_IFS 3045 case $as_dir in #((( 3046 '') as_dir=./ ;; 3047 */) ;; 3048 *) as_dir=$as_dir/ ;; 3049 esac 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3052 ac_cv_prog_ac_ct_CC="$ac_prog" 3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056 done 3057 done 3058 IFS=$as_save_IFS 3059 3060 fi 3061 fi 3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3063 if test -n "$ac_ct_CC"; then 3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3065 printf "%s\n" "$ac_ct_CC" >&6; } 3066 else 3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068 printf "%s\n" "no" >&6; } 3069 fi 3070 3071 3072 test -n "$ac_ct_CC" && break 3073 done 3074 3075 if test "x$ac_ct_CC" = x; then 3076 CC="" 3077 else 3078 case $cross_compiling:$ac_tool_warned in 3079 yes:) 3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3081 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3082 ac_tool_warned=yes ;; 3083 esac 3084 CC=$ac_ct_CC 3085 fi 3086 fi 3087 3088 fi 3089 if test -z "$CC"; then 3090 if test -n "$ac_tool_prefix"; then 3091 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3092 set dummy ${ac_tool_prefix}clang; ac_word=$2 3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3094 printf %s "checking for $ac_word... " >&6; } 3095 if test ${ac_cv_prog_CC+y} 3096 then : 3097 printf %s "(cached) " >&6 3098 else $as_nop 3099 if test -n "$CC"; then 3100 ac_cv_prog_CC="$CC" # Let the user override the test. 3101 else 3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3103 for as_dir in $PATH 3104 do 3105 IFS=$as_save_IFS 3106 case $as_dir in #((( 3107 '') as_dir=./ ;; 3108 */) ;; 3109 *) as_dir=$as_dir/ ;; 3110 esac 3111 for ac_exec_ext in '' $ac_executable_extensions; do 3112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3113 ac_cv_prog_CC="${ac_tool_prefix}clang" 3114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3115 break 2 3116 fi 3117 done 3118 done 3119 IFS=$as_save_IFS 3120 3121 fi 3122 fi 3123 CC=$ac_cv_prog_CC 3124 if test -n "$CC"; then 3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3126 printf "%s\n" "$CC" >&6; } 3127 else 3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3129 printf "%s\n" "no" >&6; } 3130 fi 3131 3132 3133 fi 3134 if test -z "$ac_cv_prog_CC"; then 3135 ac_ct_CC=$CC 3136 # Extract the first word of "clang", so it can be a program name with args. 3137 set dummy clang; ac_word=$2 3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3139 printf %s "checking for $ac_word... " >&6; } 3140 if test ${ac_cv_prog_ac_ct_CC+y} 3141 then : 3142 printf %s "(cached) " >&6 3143 else $as_nop 3144 if test -n "$ac_ct_CC"; then 3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3146 else 3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3148 for as_dir in $PATH 3149 do 3150 IFS=$as_save_IFS 3151 case $as_dir in #((( 3152 '') as_dir=./ ;; 3153 */) ;; 3154 *) as_dir=$as_dir/ ;; 3155 esac 3156 for ac_exec_ext in '' $ac_executable_extensions; do 3157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3158 ac_cv_prog_ac_ct_CC="clang" 3159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3160 break 2 3161 fi 3162 done 3163 done 3164 IFS=$as_save_IFS 3165 3166 fi 3167 fi 3168 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3169 if test -n "$ac_ct_CC"; then 3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3171 printf "%s\n" "$ac_ct_CC" >&6; } 3172 else 3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3174 printf "%s\n" "no" >&6; } 3175 fi 3176 3177 if test "x$ac_ct_CC" = x; then 3178 CC="" 3179 else 3180 case $cross_compiling:$ac_tool_warned in 3181 yes:) 3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3183 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3184 ac_tool_warned=yes ;; 3185 esac 3186 CC=$ac_ct_CC 3187 fi 3188 else 3189 CC="$ac_cv_prog_CC" 3190 fi 3191 3192 fi 3193 3194 3195 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3196 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3197 as_fn_error $? "no acceptable C compiler found in \$PATH 3198 See \`config.log' for more details" "$LINENO" 5; } 3199 3200 # Provide some information about the compiler. 3201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3202 set X $ac_compile 3203 ac_compiler=$2 3204 for ac_option in --version -v -V -qversion -version; do 3205 { { ac_try="$ac_compiler $ac_option >&5" 3206 case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209 esac 3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3211 printf "%s\n" "$ac_try_echo"; } >&5 3212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3213 ac_status=$? 3214 if test -s conftest.err; then 3215 sed '10a\ 3216 ... rest of stderr output deleted ... 3217 10q' conftest.err >conftest.er1 3218 cat conftest.er1 >&5 3219 fi 3220 rm -f conftest.er1 conftest.err 3221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3222 test $ac_status = 0; } 3223 done 3224 3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3226 /* end confdefs.h. */ 3227 3228 int 3229 main (void) 3230 { 3231 3232 ; 3233 return 0; 3234 } 3235 _ACEOF 3236 ac_clean_files_save=$ac_clean_files 3237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3238 # Try to create an executable without -o first, disregard a.out. 3239 # It will help us diagnose broken compilers, and finding out an intuition 3240 # of exeext. 3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3242 printf %s "checking whether the C compiler works... " >&6; } 3243 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3244 3245 # The possible output files: 3246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3247 3248 ac_rmfiles= 3249 for ac_file in $ac_files 3250 do 3251 case $ac_file in 3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3253 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3254 esac 3255 done 3256 rm -f $ac_rmfiles 3257 3258 if { { ac_try="$ac_link_default" 3259 case "(($ac_try" in 3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3261 *) ac_try_echo=$ac_try;; 3262 esac 3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3264 printf "%s\n" "$ac_try_echo"; } >&5 3265 (eval "$ac_link_default") 2>&5 3266 ac_status=$? 3267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3268 test $ac_status = 0; } 3269 then : 3270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3272 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3273 # so that the user can short-circuit this test for compilers unknown to 3274 # Autoconf. 3275 for ac_file in $ac_files '' 3276 do 3277 test -f "$ac_file" || continue 3278 case $ac_file in 3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3280 ;; 3281 [ab].out ) 3282 # We found the default executable, but exeext='' is most 3283 # certainly right. 3284 break;; 3285 *.* ) 3286 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3287 then :; else 3288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3289 fi 3290 # We set ac_cv_exeext here because the later test for it is not 3291 # safe: cross compilers may not add the suffix if given an `-o' 3292 # argument, so we may need to know it at that point already. 3293 # Even if this section looks crufty: it has the advantage of 3294 # actually working. 3295 break;; 3296 * ) 3297 break;; 3298 esac 3299 done 3300 test "$ac_cv_exeext" = no && ac_cv_exeext= 3301 3302 else $as_nop 3303 ac_file='' 3304 fi 3305 if test -z "$ac_file" 3306 then : 3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308 printf "%s\n" "no" >&6; } 3309 printf "%s\n" "$as_me: failed program was:" >&5 3310 sed 's/^/| /' conftest.$ac_ext >&5 3311 3312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3314 as_fn_error 77 "C compiler cannot create executables 3315 See \`config.log' for more details" "$LINENO" 5; } 3316 else $as_nop 3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3318 printf "%s\n" "yes" >&6; } 3319 fi 3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3321 printf %s "checking for C compiler default output file name... " >&6; } 3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3323 printf "%s\n" "$ac_file" >&6; } 3324 ac_exeext=$ac_cv_exeext 3325 3326 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3327 ac_clean_files=$ac_clean_files_save 3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3329 printf %s "checking for suffix of executables... " >&6; } 3330 if { { ac_try="$ac_link" 3331 case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334 esac 3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3336 printf "%s\n" "$ac_try_echo"; } >&5 3337 (eval "$ac_link") 2>&5 3338 ac_status=$? 3339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3340 test $ac_status = 0; } 3341 then : 3342 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3343 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3344 # work properly (i.e., refer to `conftest.exe'), while it won't with 3345 # `rm'. 3346 for ac_file in conftest.exe conftest conftest.*; do 3347 test -f "$ac_file" || continue 3348 case $ac_file in 3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3350 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3351 break;; 3352 * ) break;; 3353 esac 3354 done 3355 else $as_nop 3356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3357 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3358 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3359 See \`config.log' for more details" "$LINENO" 5; } 3360 fi 3361 rm -f conftest conftest$ac_cv_exeext 3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3363 printf "%s\n" "$ac_cv_exeext" >&6; } 3364 3365 rm -f conftest.$ac_ext 3366 EXEEXT=$ac_cv_exeext 3367 ac_exeext=$EXEEXT 3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3369 /* end confdefs.h. */ 3370 #include <stdio.h> 3371 int 3372 main (void) 3373 { 3374 FILE *f = fopen ("conftest.out", "w"); 3375 return ferror (f) || fclose (f) != 0; 3376 3377 ; 3378 return 0; 3379 } 3380 _ACEOF 3381 ac_clean_files="$ac_clean_files conftest.out" 3382 # Check that the compiler produces executables we can run. If not, either 3383 # the compiler is broken, or we cross compile. 3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3385 printf %s "checking whether we are cross compiling... " >&6; } 3386 if test "$cross_compiling" != yes; then 3387 { { ac_try="$ac_link" 3388 case "(($ac_try" in 3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3390 *) ac_try_echo=$ac_try;; 3391 esac 3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3393 printf "%s\n" "$ac_try_echo"; } >&5 3394 (eval "$ac_link") 2>&5 3395 ac_status=$? 3396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3397 test $ac_status = 0; } 3398 if { ac_try='./conftest$ac_cv_exeext' 3399 { { case "(($ac_try" in 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3401 *) ac_try_echo=$ac_try;; 3402 esac 3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3404 printf "%s\n" "$ac_try_echo"; } >&5 3405 (eval "$ac_try") 2>&5 3406 ac_status=$? 3407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3408 test $ac_status = 0; }; }; then 3409 cross_compiling=no 3410 else 3411 if test "$cross_compiling" = maybe; then 3412 cross_compiling=yes 3413 else 3414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3415 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3416 as_fn_error 77 "cannot run C compiled programs. 3417 If you meant to cross compile, use \`--host'. 3418 See \`config.log' for more details" "$LINENO" 5; } 3419 fi 3420 fi 3421 fi 3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3423 printf "%s\n" "$cross_compiling" >&6; } 3424 3425 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3426 ac_clean_files=$ac_clean_files_save 3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3428 printf %s "checking for suffix of object files... " >&6; } 3429 if test ${ac_cv_objext+y} 3430 then : 3431 printf %s "(cached) " >&6 3432 else $as_nop 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3434 /* end confdefs.h. */ 3435 3436 int 3437 main (void) 3438 { 3439 3440 ; 3441 return 0; 3442 } 3443 _ACEOF 3444 rm -f conftest.o conftest.obj 3445 if { { ac_try="$ac_compile" 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_compile") 2>&5 3453 ac_status=$? 3454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3455 test $ac_status = 0; } 3456 then : 3457 for ac_file in conftest.o conftest.obj conftest.*; do 3458 test -f "$ac_file" || continue; 3459 case $ac_file in 3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3462 break;; 3463 esac 3464 done 3465 else $as_nop 3466 printf "%s\n" "$as_me: failed program was:" >&5 3467 sed 's/^/| /' conftest.$ac_ext >&5 3468 3469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3470 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3471 as_fn_error $? "cannot compute suffix of object files: cannot compile 3472 See \`config.log' for more details" "$LINENO" 5; } 3473 fi 3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3475 fi 3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3477 printf "%s\n" "$ac_cv_objext" >&6; } 3478 OBJEXT=$ac_cv_objext 3479 ac_objext=$OBJEXT 3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3481 printf %s "checking whether the compiler supports GNU C... " >&6; } 3482 if test ${ac_cv_c_compiler_gnu+y} 3483 then : 3484 printf %s "(cached) " >&6 3485 else $as_nop 3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3487 /* end confdefs.h. */ 3488 3489 int 3490 main (void) 3491 { 3492 #ifndef __GNUC__ 3493 choke me 3494 #endif 3495 3496 ; 3497 return 0; 3498 } 3499 _ACEOF 3500 if ac_fn_c_try_compile "$LINENO" 3501 then : 3502 ac_compiler_gnu=yes 3503 else $as_nop 3504 ac_compiler_gnu=no 3505 fi 3506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3507 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3508 3509 fi 3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3511 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3513 3514 if test $ac_compiler_gnu = yes; then 3515 GCC=yes 3516 else 3517 GCC= 3518 fi 3519 ac_test_CFLAGS=${CFLAGS+y} 3520 ac_save_CFLAGS=$CFLAGS 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3522 printf %s "checking whether $CC accepts -g... " >&6; } 3523 if test ${ac_cv_prog_cc_g+y} 3524 then : 3525 printf %s "(cached) " >&6 3526 else $as_nop 3527 ac_save_c_werror_flag=$ac_c_werror_flag 3528 ac_c_werror_flag=yes 3529 ac_cv_prog_cc_g=no 3530 CFLAGS="-g" 3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3532 /* end confdefs.h. */ 3533 3534 int 3535 main (void) 3536 { 3537 3538 ; 3539 return 0; 3540 } 3541 _ACEOF 3542 if ac_fn_c_try_compile "$LINENO" 3543 then : 3544 ac_cv_prog_cc_g=yes 3545 else $as_nop 3546 CFLAGS="" 3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548 /* end confdefs.h. */ 3549 3550 int 3551 main (void) 3552 { 3553 3554 ; 3555 return 0; 3556 } 3557 _ACEOF 3558 if ac_fn_c_try_compile "$LINENO" 3559 then : 3560 3561 else $as_nop 3562 ac_c_werror_flag=$ac_save_c_werror_flag 3563 CFLAGS="-g" 3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3565 /* end confdefs.h. */ 3566 3567 int 3568 main (void) 3569 { 3570 3571 ; 3572 return 0; 3573 } 3574 _ACEOF 3575 if ac_fn_c_try_compile "$LINENO" 3576 then : 3577 ac_cv_prog_cc_g=yes 3578 fi 3579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3580 fi 3581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3582 fi 3583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3584 ac_c_werror_flag=$ac_save_c_werror_flag 3585 fi 3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3587 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3588 if test $ac_test_CFLAGS; then 3589 CFLAGS=$ac_save_CFLAGS 3590 elif test $ac_cv_prog_cc_g = yes; then 3591 if test "$GCC" = yes; then 3592 CFLAGS="-g -O2" 3593 else 3594 CFLAGS="-g" 3595 fi 3596 else 3597 if test "$GCC" = yes; then 3598 CFLAGS="-O2" 3599 else 3600 CFLAGS= 3601 fi 3602 fi 3603 ac_prog_cc_stdc=no 3604 if test x$ac_prog_cc_stdc = xno 3605 then : 3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3607 printf %s "checking for $CC option to enable C11 features... " >&6; } 3608 if test ${ac_cv_prog_cc_c11+y} 3609 then : 3610 printf %s "(cached) " >&6 3611 else $as_nop 3612 ac_cv_prog_cc_c11=no 3613 ac_save_CC=$CC 3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3615 /* end confdefs.h. */ 3616 $ac_c_conftest_c11_program 3617 _ACEOF 3618 for ac_arg in '' -std=gnu11 3619 do 3620 CC="$ac_save_CC $ac_arg" 3621 if ac_fn_c_try_compile "$LINENO" 3622 then : 3623 ac_cv_prog_cc_c11=$ac_arg 3624 fi 3625 rm -f core conftest.err conftest.$ac_objext conftest.beam 3626 test "x$ac_cv_prog_cc_c11" != "xno" && break 3627 done 3628 rm -f conftest.$ac_ext 3629 CC=$ac_save_CC 3630 fi 3631 3632 if test "x$ac_cv_prog_cc_c11" = xno 3633 then : 3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3635 printf "%s\n" "unsupported" >&6; } 3636 else $as_nop 3637 if test "x$ac_cv_prog_cc_c11" = x 3638 then : 3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3640 printf "%s\n" "none needed" >&6; } 3641 else $as_nop 3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3643 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3644 CC="$CC $ac_cv_prog_cc_c11" 3645 fi 3646 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3647 ac_prog_cc_stdc=c11 3648 fi 3649 fi 3650 if test x$ac_prog_cc_stdc = xno 3651 then : 3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3653 printf %s "checking for $CC option to enable C99 features... " >&6; } 3654 if test ${ac_cv_prog_cc_c99+y} 3655 then : 3656 printf %s "(cached) " >&6 3657 else $as_nop 3658 ac_cv_prog_cc_c99=no 3659 ac_save_CC=$CC 3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661 /* end confdefs.h. */ 3662 $ac_c_conftest_c99_program 3663 _ACEOF 3664 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3665 do 3666 CC="$ac_save_CC $ac_arg" 3667 if ac_fn_c_try_compile "$LINENO" 3668 then : 3669 ac_cv_prog_cc_c99=$ac_arg 3670 fi 3671 rm -f core conftest.err conftest.$ac_objext conftest.beam 3672 test "x$ac_cv_prog_cc_c99" != "xno" && break 3673 done 3674 rm -f conftest.$ac_ext 3675 CC=$ac_save_CC 3676 fi 3677 3678 if test "x$ac_cv_prog_cc_c99" = xno 3679 then : 3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3681 printf "%s\n" "unsupported" >&6; } 3682 else $as_nop 3683 if test "x$ac_cv_prog_cc_c99" = x 3684 then : 3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3686 printf "%s\n" "none needed" >&6; } 3687 else $as_nop 3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3689 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3690 CC="$CC $ac_cv_prog_cc_c99" 3691 fi 3692 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3693 ac_prog_cc_stdc=c99 3694 fi 3695 fi 3696 if test x$ac_prog_cc_stdc = xno 3697 then : 3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3699 printf %s "checking for $CC option to enable C89 features... " >&6; } 3700 if test ${ac_cv_prog_cc_c89+y} 3701 then : 3702 printf %s "(cached) " >&6 3703 else $as_nop 3704 ac_cv_prog_cc_c89=no 3705 ac_save_CC=$CC 3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3707 /* end confdefs.h. */ 3708 $ac_c_conftest_c89_program 3709 _ACEOF 3710 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3711 do 3712 CC="$ac_save_CC $ac_arg" 3713 if ac_fn_c_try_compile "$LINENO" 3714 then : 3715 ac_cv_prog_cc_c89=$ac_arg 3716 fi 3717 rm -f core conftest.err conftest.$ac_objext conftest.beam 3718 test "x$ac_cv_prog_cc_c89" != "xno" && break 3719 done 3720 rm -f conftest.$ac_ext 3721 CC=$ac_save_CC 3722 fi 3723 3724 if test "x$ac_cv_prog_cc_c89" = xno 3725 then : 3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3727 printf "%s\n" "unsupported" >&6; } 3728 else $as_nop 3729 if test "x$ac_cv_prog_cc_c89" = x 3730 then : 3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3732 printf "%s\n" "none needed" >&6; } 3733 else $as_nop 3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3735 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3736 CC="$CC $ac_cv_prog_cc_c89" 3737 fi 3738 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3739 ac_prog_cc_stdc=c89 3740 fi 3741 fi 3742 3743 ac_ext=c 3744 ac_cpp='$CPP $CPPFLAGS' 3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3748 3749 3750 ac_ext=c 3751 ac_cpp='$CPP $CPPFLAGS' 3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3756 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3757 if test ${am_cv_prog_cc_c_o+y} 3758 then : 3759 printf %s "(cached) " >&6 3760 else $as_nop 3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762 /* end confdefs.h. */ 3763 3764 int 3765 main (void) 3766 { 3767 3768 ; 3769 return 0; 3770 } 3771 _ACEOF 3772 # Make sure it works both with $CC and with simple cc. 3773 # Following AC_PROG_CC_C_O, we do the test twice because some 3774 # compilers refuse to overwrite an existing .o file with -o, 3775 # though they will create one. 3776 am_cv_prog_cc_c_o=yes 3777 for am_i in 1 2; do 3778 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3779 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3780 ac_status=$? 3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3782 (exit $ac_status); } \ 3783 && test -f conftest2.$ac_objext; then 3784 : OK 3785 else 3786 am_cv_prog_cc_c_o=no 3787 break 3788 fi 3789 done 3790 rm -f core conftest* 3791 unset am_i 3792 fi 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3794 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3795 if test "$am_cv_prog_cc_c_o" != yes; then 3796 # Losing compiler, so override with the script. 3797 # FIXME: It is wrong to rewrite CC. 3798 # But if we don't then we get into trouble of one sort or another. 3799 # A longer-term fix would be to have automake use am__CC in this case, 3800 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3801 CC="$am_aux_dir/compile $CC" 3802 fi 3803 ac_ext=c 3804 ac_cpp='$CPP $CPPFLAGS' 3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3808 3809 3810 3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 3812 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 3813 if test ${ac_cv_c_undeclared_builtin_options+y} 3814 then : 3815 printf %s "(cached) " >&6 3816 else $as_nop 3817 ac_save_CFLAGS=$CFLAGS 3818 ac_cv_c_undeclared_builtin_options='cannot detect' 3819 for ac_arg in '' -fno-builtin; do 3820 CFLAGS="$ac_save_CFLAGS $ac_arg" 3821 # This test program should *not* compile successfully. 3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3823 /* end confdefs.h. */ 3824 3825 int 3826 main (void) 3827 { 3828 (void) strchr; 3829 ; 3830 return 0; 3831 } 3832 _ACEOF 3833 if ac_fn_c_try_compile "$LINENO" 3834 then : 3835 3836 else $as_nop 3837 # This test program should compile successfully. 3838 # No library function is consistently available on 3839 # freestanding implementations, so test against a dummy 3840 # declaration. Include always-available headers on the 3841 # off chance that they somehow elicit warnings. 3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3843 /* end confdefs.h. */ 3844 #include <float.h> 3845 #include <limits.h> 3846 #include <stdarg.h> 3847 #include <stddef.h> 3848 extern void ac_decl (int, char *); 3849 3850 int 3851 main (void) 3852 { 3853 (void) ac_decl (0, (char *) 0); 3854 (void) ac_decl; 3855 3856 ; 3857 return 0; 3858 } 3859 _ACEOF 3860 if ac_fn_c_try_compile "$LINENO" 3861 then : 3862 if test x"$ac_arg" = x 3863 then : 3864 ac_cv_c_undeclared_builtin_options='none needed' 3865 else $as_nop 3866 ac_cv_c_undeclared_builtin_options=$ac_arg 3867 fi 3868 break 3869 fi 3870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3871 fi 3872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3873 done 3874 CFLAGS=$ac_save_CFLAGS 3875 3876 fi 3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 3878 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 3879 case $ac_cv_c_undeclared_builtin_options in #( 3880 'cannot detect') : 3881 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3882 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3883 as_fn_error $? "cannot make $CC report undeclared builtins 3884 See \`config.log' for more details" "$LINENO" 5; } ;; #( 3885 'none needed') : 3886 ac_c_undeclared_builtin_options='' ;; #( 3887 *) : 3888 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 3889 esac 3890 3891 ac_header= ac_cache= 3892 for ac_item in $ac_header_c_list 3893 do 3894 if test $ac_cache; then 3895 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3896 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3897 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3898 fi 3899 ac_header= ac_cache= 3900 elif test $ac_header; then 3901 ac_cache=$ac_item 3902 else 3903 ac_header=$ac_item 3904 fi 3905 done 3906 3907 3908 3909 3910 3911 3912 3913 3914 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3915 then : 3916 3917 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3918 3919 fi 3920 3921 3922 3923 3924 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3925 if test "x$ac_cv_have_decl___clang__" = xyes 3926 then : 3927 CLANGCC="yes" 3928 else $as_nop 3929 CLANGCC="no" 3930 fi 3931 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3932 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 3933 then : 3934 INTELCC="yes" 3935 else $as_nop 3936 INTELCC="no" 3937 fi 3938 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3939 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 3940 then : 3941 SUNCC="yes" 3942 else $as_nop 3943 SUNCC="no" 3944 fi 3945 3946 3947 3948 3949 3950 3951 3952 3953 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3954 if test -n "$ac_tool_prefix"; then 3955 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3956 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3958 printf %s "checking for $ac_word... " >&6; } 3959 if test ${ac_cv_path_PKG_CONFIG+y} 3960 then : 3961 printf %s "(cached) " >&6 3962 else $as_nop 3963 case $PKG_CONFIG in 3964 [\\/]* | ?:[\\/]*) 3965 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3966 ;; 3967 *) 3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3969 for as_dir in $PATH 3970 do 3971 IFS=$as_save_IFS 3972 case $as_dir in #((( 3973 '') as_dir=./ ;; 3974 */) ;; 3975 *) as_dir=$as_dir/ ;; 3976 esac 3977 for ac_exec_ext in '' $ac_executable_extensions; do 3978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3979 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3981 break 2 3982 fi 3983 done 3984 done 3985 IFS=$as_save_IFS 3986 3987 ;; 3988 esac 3989 fi 3990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3991 if test -n "$PKG_CONFIG"; then 3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3993 printf "%s\n" "$PKG_CONFIG" >&6; } 3994 else 3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3996 printf "%s\n" "no" >&6; } 3997 fi 3998 3999 4000 fi 4001 if test -z "$ac_cv_path_PKG_CONFIG"; then 4002 ac_pt_PKG_CONFIG=$PKG_CONFIG 4003 # Extract the first word of "pkg-config", so it can be a program name with args. 4004 set dummy 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_ac_pt_PKG_CONFIG+y} 4008 then : 4009 printf %s "(cached) " >&6 4010 else $as_nop 4011 case $ac_pt_PKG_CONFIG in 4012 [\\/]* | ?:[\\/]*) 4013 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4039 if test -n "$ac_pt_PKG_CONFIG"; then 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4041 printf "%s\n" "$ac_pt_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 if test "x$ac_pt_PKG_CONFIG" = x; then 4048 PKG_CONFIG="" 4049 else 4050 case $cross_compiling:$ac_tool_warned in 4051 yes:) 4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4053 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4054 ac_tool_warned=yes ;; 4055 esac 4056 PKG_CONFIG=$ac_pt_PKG_CONFIG 4057 fi 4058 else 4059 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4060 fi 4061 4062 fi 4063 if test -n "$PKG_CONFIG"; then 4064 _pkg_min_version=0.9.0 4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4066 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4067 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4069 printf "%s\n" "yes" >&6; } 4070 else 4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4072 printf "%s\n" "no" >&6; } 4073 PKG_CONFIG="" 4074 fi 4075 fi 4076 4077 4078 # Make sure we can run config.sub. 4079 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4080 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4081 4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4083 printf %s "checking build system type... " >&6; } 4084 if test ${ac_cv_build+y} 4085 then : 4086 printf %s "(cached) " >&6 4087 else $as_nop 4088 ac_build_alias=$build_alias 4089 test "x$ac_build_alias" = x && 4090 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4091 test "x$ac_build_alias" = x && 4092 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4093 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4094 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4095 4096 fi 4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4098 printf "%s\n" "$ac_cv_build" >&6; } 4099 case $ac_cv_build in 4100 *-*-*) ;; 4101 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4102 esac 4103 build=$ac_cv_build 4104 ac_save_IFS=$IFS; IFS='-' 4105 set x $ac_cv_build 4106 shift 4107 build_cpu=$1 4108 build_vendor=$2 4109 shift; shift 4110 # Remember, the first character of IFS is used to create $*, 4111 # except with old shells: 4112 build_os=$* 4113 IFS=$ac_save_IFS 4114 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4115 4116 4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4118 printf %s "checking host system type... " >&6; } 4119 if test ${ac_cv_host+y} 4120 then : 4121 printf %s "(cached) " >&6 4122 else $as_nop 4123 if test "x$host_alias" = x; then 4124 ac_cv_host=$ac_cv_build 4125 else 4126 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4127 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4128 fi 4129 4130 fi 4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4132 printf "%s\n" "$ac_cv_host" >&6; } 4133 case $ac_cv_host in 4134 *-*-*) ;; 4135 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4136 esac 4137 host=$ac_cv_host 4138 ac_save_IFS=$IFS; IFS='-' 4139 set x $ac_cv_host 4140 shift 4141 host_cpu=$1 4142 host_vendor=$2 4143 shift; shift 4144 # Remember, the first character of IFS is used to create $*, 4145 # except with old shells: 4146 host_os=$* 4147 IFS=$ac_save_IFS 4148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4149 4150 4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4152 printf %s "checking for a sed that does not truncate output... " >&6; } 4153 if test ${ac_cv_path_SED+y} 4154 then : 4155 printf %s "(cached) " >&6 4156 else $as_nop 4157 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4158 for ac_i in 1 2 3 4 5 6 7; do 4159 ac_script="$ac_script$as_nl$ac_script" 4160 done 4161 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4162 { ac_script=; unset ac_script;} 4163 if test -z "$SED"; then 4164 ac_path_SED_found=false 4165 # Loop through the user's path and test for each of PROGNAME-LIST 4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167 for as_dir in $PATH 4168 do 4169 IFS=$as_save_IFS 4170 case $as_dir in #((( 4171 '') as_dir=./ ;; 4172 */) ;; 4173 *) as_dir=$as_dir/ ;; 4174 esac 4175 for ac_prog in sed gsed 4176 do 4177 for ac_exec_ext in '' $ac_executable_extensions; do 4178 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4179 as_fn_executable_p "$ac_path_SED" || continue 4180 # Check for GNU ac_path_SED and select it if it is found. 4181 # Check for GNU $ac_path_SED 4182 case `"$ac_path_SED" --version 2>&1` in 4183 *GNU*) 4184 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4185 *) 4186 ac_count=0 4187 printf %s 0123456789 >"conftest.in" 4188 while : 4189 do 4190 cat "conftest.in" "conftest.in" >"conftest.tmp" 4191 mv "conftest.tmp" "conftest.in" 4192 cp "conftest.in" "conftest.nl" 4193 printf "%s\n" '' >> "conftest.nl" 4194 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4196 as_fn_arith $ac_count + 1 && ac_count=$as_val 4197 if test $ac_count -gt ${ac_path_SED_max-0}; then 4198 # Best one so far, save it but keep looking for a better one 4199 ac_cv_path_SED="$ac_path_SED" 4200 ac_path_SED_max=$ac_count 4201 fi 4202 # 10*(2^10) chars as input seems more than enough 4203 test $ac_count -gt 10 && break 4204 done 4205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4206 esac 4207 4208 $ac_path_SED_found && break 3 4209 done 4210 done 4211 done 4212 IFS=$as_save_IFS 4213 if test -z "$ac_cv_path_SED"; then 4214 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4215 fi 4216 else 4217 ac_cv_path_SED=$SED 4218 fi 4219 4220 fi 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4222 printf "%s\n" "$ac_cv_path_SED" >&6; } 4223 SED="$ac_cv_path_SED" 4224 rm -f conftest.sed 4225 4226 4227 4228 4229 4230 4231 # Check whether --enable-selective-werror was given. 4232 if test ${enable_selective_werror+y} 4233 then : 4234 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4235 else $as_nop 4236 SELECTIVE_WERROR=yes 4237 fi 4238 4239 4240 4241 4242 4243 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4244 if test "x$SUNCC" = "xyes"; then 4245 BASE_CFLAGS="-v" 4246 else 4247 BASE_CFLAGS="" 4248 fi 4249 4250 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 xorg_testset_save_CFLAGS="$CFLAGS" 4265 4266 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4269 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4270 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4271 then : 4272 printf %s "(cached) " >&6 4273 else $as_nop 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275 /* end confdefs.h. */ 4276 int i; 4277 _ACEOF 4278 if ac_fn_c_try_compile "$LINENO" 4279 then : 4280 xorg_cv_cc_flag_unknown_warning_option=yes 4281 else $as_nop 4282 xorg_cv_cc_flag_unknown_warning_option=no 4283 fi 4284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4285 fi 4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4287 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4289 CFLAGS="$xorg_testset_save_CFLAGS" 4290 fi 4291 4292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4295 fi 4296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4298 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4299 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4300 then : 4301 printf %s "(cached) " >&6 4302 else $as_nop 4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304 /* end confdefs.h. */ 4305 int i; 4306 _ACEOF 4307 if ac_fn_c_try_compile "$LINENO" 4308 then : 4309 xorg_cv_cc_flag_unused_command_line_argument=yes 4310 else $as_nop 4311 xorg_cv_cc_flag_unused_command_line_argument=no 4312 fi 4313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4314 fi 4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4316 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4318 CFLAGS="$xorg_testset_save_CFLAGS" 4319 fi 4320 4321 found="no" 4322 4323 if test $found = "no" ; then 4324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4326 fi 4327 4328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4330 fi 4331 4332 CFLAGS="$CFLAGS -Wall" 4333 4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4335 printf %s "checking if $CC supports -Wall... " >&6; } 4336 cacheid=xorg_cv_cc_flag__Wall 4337 if eval test \${$cacheid+y} 4338 then : 4339 printf %s "(cached) " >&6 4340 else $as_nop 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342 /* end confdefs.h. */ 4343 int i; 4344 int 4345 main (void) 4346 { 4347 4348 ; 4349 return 0; 4350 } 4351 _ACEOF 4352 if ac_fn_c_try_link "$LINENO" 4353 then : 4354 eval $cacheid=yes 4355 else $as_nop 4356 eval $cacheid=no 4357 fi 4358 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4359 conftest$ac_exeext conftest.$ac_ext 4360 fi 4361 4362 4363 CFLAGS="$xorg_testset_save_CFLAGS" 4364 4365 eval supported=\$$cacheid 4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4367 printf "%s\n" "$supported" >&6; } 4368 if test "$supported" = "yes" ; then 4369 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4370 found="yes" 4371 fi 4372 fi 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 xorg_testset_save_CFLAGS="$CFLAGS" 4389 4390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4393 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4394 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4395 then : 4396 printf %s "(cached) " >&6 4397 else $as_nop 4398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4399 /* end confdefs.h. */ 4400 int i; 4401 _ACEOF 4402 if ac_fn_c_try_compile "$LINENO" 4403 then : 4404 xorg_cv_cc_flag_unknown_warning_option=yes 4405 else $as_nop 4406 xorg_cv_cc_flag_unknown_warning_option=no 4407 fi 4408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4409 fi 4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4411 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4413 CFLAGS="$xorg_testset_save_CFLAGS" 4414 fi 4415 4416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4419 fi 4420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4422 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4423 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4424 then : 4425 printf %s "(cached) " >&6 4426 else $as_nop 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428 /* end confdefs.h. */ 4429 int i; 4430 _ACEOF 4431 if ac_fn_c_try_compile "$LINENO" 4432 then : 4433 xorg_cv_cc_flag_unused_command_line_argument=yes 4434 else $as_nop 4435 xorg_cv_cc_flag_unused_command_line_argument=no 4436 fi 4437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4438 fi 4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4440 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4442 CFLAGS="$xorg_testset_save_CFLAGS" 4443 fi 4444 4445 found="no" 4446 4447 if test $found = "no" ; then 4448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4450 fi 4451 4452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4454 fi 4455 4456 CFLAGS="$CFLAGS -Wpointer-arith" 4457 4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4459 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 4460 cacheid=xorg_cv_cc_flag__Wpointer_arith 4461 if eval test \${$cacheid+y} 4462 then : 4463 printf %s "(cached) " >&6 4464 else $as_nop 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4466 /* end confdefs.h. */ 4467 int i; 4468 int 4469 main (void) 4470 { 4471 4472 ; 4473 return 0; 4474 } 4475 _ACEOF 4476 if ac_fn_c_try_link "$LINENO" 4477 then : 4478 eval $cacheid=yes 4479 else $as_nop 4480 eval $cacheid=no 4481 fi 4482 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4483 conftest$ac_exeext conftest.$ac_ext 4484 fi 4485 4486 4487 CFLAGS="$xorg_testset_save_CFLAGS" 4488 4489 eval supported=\$$cacheid 4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4491 printf "%s\n" "$supported" >&6; } 4492 if test "$supported" = "yes" ; then 4493 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4494 found="yes" 4495 fi 4496 fi 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 xorg_testset_save_CFLAGS="$CFLAGS" 4513 4514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4517 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4518 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4519 then : 4520 printf %s "(cached) " >&6 4521 else $as_nop 4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4523 /* end confdefs.h. */ 4524 int i; 4525 _ACEOF 4526 if ac_fn_c_try_compile "$LINENO" 4527 then : 4528 xorg_cv_cc_flag_unknown_warning_option=yes 4529 else $as_nop 4530 xorg_cv_cc_flag_unknown_warning_option=no 4531 fi 4532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4533 fi 4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4535 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4537 CFLAGS="$xorg_testset_save_CFLAGS" 4538 fi 4539 4540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4543 fi 4544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4546 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4547 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4548 then : 4549 printf %s "(cached) " >&6 4550 else $as_nop 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4552 /* end confdefs.h. */ 4553 int i; 4554 _ACEOF 4555 if ac_fn_c_try_compile "$LINENO" 4556 then : 4557 xorg_cv_cc_flag_unused_command_line_argument=yes 4558 else $as_nop 4559 xorg_cv_cc_flag_unused_command_line_argument=no 4560 fi 4561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4562 fi 4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4564 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4566 CFLAGS="$xorg_testset_save_CFLAGS" 4567 fi 4568 4569 found="no" 4570 4571 if test $found = "no" ; then 4572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4574 fi 4575 4576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4578 fi 4579 4580 CFLAGS="$CFLAGS -Wmissing-declarations" 4581 4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4583 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 4584 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4585 if eval test \${$cacheid+y} 4586 then : 4587 printf %s "(cached) " >&6 4588 else $as_nop 4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4590 /* end confdefs.h. */ 4591 int i; 4592 int 4593 main (void) 4594 { 4595 4596 ; 4597 return 0; 4598 } 4599 _ACEOF 4600 if ac_fn_c_try_link "$LINENO" 4601 then : 4602 eval $cacheid=yes 4603 else $as_nop 4604 eval $cacheid=no 4605 fi 4606 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4607 conftest$ac_exeext conftest.$ac_ext 4608 fi 4609 4610 4611 CFLAGS="$xorg_testset_save_CFLAGS" 4612 4613 eval supported=\$$cacheid 4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4615 printf "%s\n" "$supported" >&6; } 4616 if test "$supported" = "yes" ; then 4617 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4618 found="yes" 4619 fi 4620 fi 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 xorg_testset_save_CFLAGS="$CFLAGS" 4637 4638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4642 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4643 then : 4644 printf %s "(cached) " >&6 4645 else $as_nop 4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4647 /* end confdefs.h. */ 4648 int i; 4649 _ACEOF 4650 if ac_fn_c_try_compile "$LINENO" 4651 then : 4652 xorg_cv_cc_flag_unknown_warning_option=yes 4653 else $as_nop 4654 xorg_cv_cc_flag_unknown_warning_option=no 4655 fi 4656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4657 fi 4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4659 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4661 CFLAGS="$xorg_testset_save_CFLAGS" 4662 fi 4663 4664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4667 fi 4668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4670 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4671 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4672 then : 4673 printf %s "(cached) " >&6 4674 else $as_nop 4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4676 /* end confdefs.h. */ 4677 int i; 4678 _ACEOF 4679 if ac_fn_c_try_compile "$LINENO" 4680 then : 4681 xorg_cv_cc_flag_unused_command_line_argument=yes 4682 else $as_nop 4683 xorg_cv_cc_flag_unused_command_line_argument=no 4684 fi 4685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4686 fi 4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4688 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4690 CFLAGS="$xorg_testset_save_CFLAGS" 4691 fi 4692 4693 found="no" 4694 4695 if test $found = "no" ; then 4696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4698 fi 4699 4700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4702 fi 4703 4704 CFLAGS="$CFLAGS -Wformat=2" 4705 4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4707 printf %s "checking if $CC supports -Wformat=2... " >&6; } 4708 cacheid=xorg_cv_cc_flag__Wformat_2 4709 if eval test \${$cacheid+y} 4710 then : 4711 printf %s "(cached) " >&6 4712 else $as_nop 4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4714 /* end confdefs.h. */ 4715 int i; 4716 int 4717 main (void) 4718 { 4719 4720 ; 4721 return 0; 4722 } 4723 _ACEOF 4724 if ac_fn_c_try_link "$LINENO" 4725 then : 4726 eval $cacheid=yes 4727 else $as_nop 4728 eval $cacheid=no 4729 fi 4730 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4731 conftest$ac_exeext conftest.$ac_ext 4732 fi 4733 4734 4735 CFLAGS="$xorg_testset_save_CFLAGS" 4736 4737 eval supported=\$$cacheid 4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4739 printf "%s\n" "$supported" >&6; } 4740 if test "$supported" = "yes" ; then 4741 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4742 found="yes" 4743 fi 4744 fi 4745 4746 if test $found = "no" ; then 4747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4749 fi 4750 4751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4753 fi 4754 4755 CFLAGS="$CFLAGS -Wformat" 4756 4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4758 printf %s "checking if $CC supports -Wformat... " >&6; } 4759 cacheid=xorg_cv_cc_flag__Wformat 4760 if eval test \${$cacheid+y} 4761 then : 4762 printf %s "(cached) " >&6 4763 else $as_nop 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4765 /* end confdefs.h. */ 4766 int i; 4767 int 4768 main (void) 4769 { 4770 4771 ; 4772 return 0; 4773 } 4774 _ACEOF 4775 if ac_fn_c_try_link "$LINENO" 4776 then : 4777 eval $cacheid=yes 4778 else $as_nop 4779 eval $cacheid=no 4780 fi 4781 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4782 conftest$ac_exeext conftest.$ac_ext 4783 fi 4784 4785 4786 CFLAGS="$xorg_testset_save_CFLAGS" 4787 4788 eval supported=\$$cacheid 4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4790 printf "%s\n" "$supported" >&6; } 4791 if test "$supported" = "yes" ; then 4792 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4793 found="yes" 4794 fi 4795 fi 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 xorg_testset_save_CFLAGS="$CFLAGS" 4814 4815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4818 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4819 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4820 then : 4821 printf %s "(cached) " >&6 4822 else $as_nop 4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824 /* end confdefs.h. */ 4825 int i; 4826 _ACEOF 4827 if ac_fn_c_try_compile "$LINENO" 4828 then : 4829 xorg_cv_cc_flag_unknown_warning_option=yes 4830 else $as_nop 4831 xorg_cv_cc_flag_unknown_warning_option=no 4832 fi 4833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4834 fi 4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4836 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4838 CFLAGS="$xorg_testset_save_CFLAGS" 4839 fi 4840 4841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4844 fi 4845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4847 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4848 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4849 then : 4850 printf %s "(cached) " >&6 4851 else $as_nop 4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4853 /* end confdefs.h. */ 4854 int i; 4855 _ACEOF 4856 if ac_fn_c_try_compile "$LINENO" 4857 then : 4858 xorg_cv_cc_flag_unused_command_line_argument=yes 4859 else $as_nop 4860 xorg_cv_cc_flag_unused_command_line_argument=no 4861 fi 4862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4863 fi 4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4865 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4867 CFLAGS="$xorg_testset_save_CFLAGS" 4868 fi 4869 4870 found="no" 4871 4872 if test $found = "no" ; then 4873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4875 fi 4876 4877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4879 fi 4880 4881 CFLAGS="$CFLAGS -Wstrict-prototypes" 4882 4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4884 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 4885 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 4886 if eval test \${$cacheid+y} 4887 then : 4888 printf %s "(cached) " >&6 4889 else $as_nop 4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4891 /* end confdefs.h. */ 4892 int i; 4893 int 4894 main (void) 4895 { 4896 4897 ; 4898 return 0; 4899 } 4900 _ACEOF 4901 if ac_fn_c_try_link "$LINENO" 4902 then : 4903 eval $cacheid=yes 4904 else $as_nop 4905 eval $cacheid=no 4906 fi 4907 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4908 conftest$ac_exeext conftest.$ac_ext 4909 fi 4910 4911 4912 CFLAGS="$xorg_testset_save_CFLAGS" 4913 4914 eval supported=\$$cacheid 4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4916 printf "%s\n" "$supported" >&6; } 4917 if test "$supported" = "yes" ; then 4918 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 4919 found="yes" 4920 fi 4921 fi 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 xorg_testset_save_CFLAGS="$CFLAGS" 4938 4939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4942 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4943 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4944 then : 4945 printf %s "(cached) " >&6 4946 else $as_nop 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948 /* end confdefs.h. */ 4949 int i; 4950 _ACEOF 4951 if ac_fn_c_try_compile "$LINENO" 4952 then : 4953 xorg_cv_cc_flag_unknown_warning_option=yes 4954 else $as_nop 4955 xorg_cv_cc_flag_unknown_warning_option=no 4956 fi 4957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4958 fi 4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4960 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4962 CFLAGS="$xorg_testset_save_CFLAGS" 4963 fi 4964 4965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4968 fi 4969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4971 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4972 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4973 then : 4974 printf %s "(cached) " >&6 4975 else $as_nop 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4977 /* end confdefs.h. */ 4978 int i; 4979 _ACEOF 4980 if ac_fn_c_try_compile "$LINENO" 4981 then : 4982 xorg_cv_cc_flag_unused_command_line_argument=yes 4983 else $as_nop 4984 xorg_cv_cc_flag_unused_command_line_argument=no 4985 fi 4986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4987 fi 4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4989 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4991 CFLAGS="$xorg_testset_save_CFLAGS" 4992 fi 4993 4994 found="no" 4995 4996 if test $found = "no" ; then 4997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4999 fi 5000 5001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5003 fi 5004 5005 CFLAGS="$CFLAGS -Wmissing-prototypes" 5006 5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5008 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5009 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5010 if eval test \${$cacheid+y} 5011 then : 5012 printf %s "(cached) " >&6 5013 else $as_nop 5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5015 /* end confdefs.h. */ 5016 int i; 5017 int 5018 main (void) 5019 { 5020 5021 ; 5022 return 0; 5023 } 5024 _ACEOF 5025 if ac_fn_c_try_link "$LINENO" 5026 then : 5027 eval $cacheid=yes 5028 else $as_nop 5029 eval $cacheid=no 5030 fi 5031 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5032 conftest$ac_exeext conftest.$ac_ext 5033 fi 5034 5035 5036 CFLAGS="$xorg_testset_save_CFLAGS" 5037 5038 eval supported=\$$cacheid 5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5040 printf "%s\n" "$supported" >&6; } 5041 if test "$supported" = "yes" ; then 5042 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5043 found="yes" 5044 fi 5045 fi 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 xorg_testset_save_CFLAGS="$CFLAGS" 5062 5063 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5066 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5067 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5068 then : 5069 printf %s "(cached) " >&6 5070 else $as_nop 5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5072 /* end confdefs.h. */ 5073 int i; 5074 _ACEOF 5075 if ac_fn_c_try_compile "$LINENO" 5076 then : 5077 xorg_cv_cc_flag_unknown_warning_option=yes 5078 else $as_nop 5079 xorg_cv_cc_flag_unknown_warning_option=no 5080 fi 5081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5082 fi 5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5084 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5086 CFLAGS="$xorg_testset_save_CFLAGS" 5087 fi 5088 5089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5092 fi 5093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5095 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5096 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5097 then : 5098 printf %s "(cached) " >&6 5099 else $as_nop 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101 /* end confdefs.h. */ 5102 int i; 5103 _ACEOF 5104 if ac_fn_c_try_compile "$LINENO" 5105 then : 5106 xorg_cv_cc_flag_unused_command_line_argument=yes 5107 else $as_nop 5108 xorg_cv_cc_flag_unused_command_line_argument=no 5109 fi 5110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5111 fi 5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5113 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5115 CFLAGS="$xorg_testset_save_CFLAGS" 5116 fi 5117 5118 found="no" 5119 5120 if test $found = "no" ; then 5121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5123 fi 5124 5125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5127 fi 5128 5129 CFLAGS="$CFLAGS -Wnested-externs" 5130 5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5132 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5133 cacheid=xorg_cv_cc_flag__Wnested_externs 5134 if eval test \${$cacheid+y} 5135 then : 5136 printf %s "(cached) " >&6 5137 else $as_nop 5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5139 /* end confdefs.h. */ 5140 int i; 5141 int 5142 main (void) 5143 { 5144 5145 ; 5146 return 0; 5147 } 5148 _ACEOF 5149 if ac_fn_c_try_link "$LINENO" 5150 then : 5151 eval $cacheid=yes 5152 else $as_nop 5153 eval $cacheid=no 5154 fi 5155 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5156 conftest$ac_exeext conftest.$ac_ext 5157 fi 5158 5159 5160 CFLAGS="$xorg_testset_save_CFLAGS" 5161 5162 eval supported=\$$cacheid 5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5164 printf "%s\n" "$supported" >&6; } 5165 if test "$supported" = "yes" ; then 5166 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5167 found="yes" 5168 fi 5169 fi 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 xorg_testset_save_CFLAGS="$CFLAGS" 5186 5187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5190 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5191 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5192 then : 5193 printf %s "(cached) " >&6 5194 else $as_nop 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196 /* end confdefs.h. */ 5197 int i; 5198 _ACEOF 5199 if ac_fn_c_try_compile "$LINENO" 5200 then : 5201 xorg_cv_cc_flag_unknown_warning_option=yes 5202 else $as_nop 5203 xorg_cv_cc_flag_unknown_warning_option=no 5204 fi 5205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5206 fi 5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5208 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5210 CFLAGS="$xorg_testset_save_CFLAGS" 5211 fi 5212 5213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5216 fi 5217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5219 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5220 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5221 then : 5222 printf %s "(cached) " >&6 5223 else $as_nop 5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5225 /* end confdefs.h. */ 5226 int i; 5227 _ACEOF 5228 if ac_fn_c_try_compile "$LINENO" 5229 then : 5230 xorg_cv_cc_flag_unused_command_line_argument=yes 5231 else $as_nop 5232 xorg_cv_cc_flag_unused_command_line_argument=no 5233 fi 5234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5235 fi 5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5239 CFLAGS="$xorg_testset_save_CFLAGS" 5240 fi 5241 5242 found="no" 5243 5244 if test $found = "no" ; then 5245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5247 fi 5248 5249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5251 fi 5252 5253 CFLAGS="$CFLAGS -Wbad-function-cast" 5254 5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5256 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5257 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5258 if eval test \${$cacheid+y} 5259 then : 5260 printf %s "(cached) " >&6 5261 else $as_nop 5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5263 /* end confdefs.h. */ 5264 int i; 5265 int 5266 main (void) 5267 { 5268 5269 ; 5270 return 0; 5271 } 5272 _ACEOF 5273 if ac_fn_c_try_link "$LINENO" 5274 then : 5275 eval $cacheid=yes 5276 else $as_nop 5277 eval $cacheid=no 5278 fi 5279 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5280 conftest$ac_exeext conftest.$ac_ext 5281 fi 5282 5283 5284 CFLAGS="$xorg_testset_save_CFLAGS" 5285 5286 eval supported=\$$cacheid 5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5288 printf "%s\n" "$supported" >&6; } 5289 if test "$supported" = "yes" ; then 5290 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5291 found="yes" 5292 fi 5293 fi 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 xorg_testset_save_CFLAGS="$CFLAGS" 5310 5311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5314 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5315 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5316 then : 5317 printf %s "(cached) " >&6 5318 else $as_nop 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320 /* end confdefs.h. */ 5321 int i; 5322 _ACEOF 5323 if ac_fn_c_try_compile "$LINENO" 5324 then : 5325 xorg_cv_cc_flag_unknown_warning_option=yes 5326 else $as_nop 5327 xorg_cv_cc_flag_unknown_warning_option=no 5328 fi 5329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5330 fi 5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5332 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5334 CFLAGS="$xorg_testset_save_CFLAGS" 5335 fi 5336 5337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5340 fi 5341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5345 then : 5346 printf %s "(cached) " >&6 5347 else $as_nop 5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5349 /* end confdefs.h. */ 5350 int i; 5351 _ACEOF 5352 if ac_fn_c_try_compile "$LINENO" 5353 then : 5354 xorg_cv_cc_flag_unused_command_line_argument=yes 5355 else $as_nop 5356 xorg_cv_cc_flag_unused_command_line_argument=no 5357 fi 5358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5359 fi 5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5361 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5363 CFLAGS="$xorg_testset_save_CFLAGS" 5364 fi 5365 5366 found="no" 5367 5368 if test $found = "no" ; then 5369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5371 fi 5372 5373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5375 fi 5376 5377 CFLAGS="$CFLAGS -Wold-style-definition" 5378 5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5380 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5381 cacheid=xorg_cv_cc_flag__Wold_style_definition 5382 if eval test \${$cacheid+y} 5383 then : 5384 printf %s "(cached) " >&6 5385 else $as_nop 5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5387 /* end confdefs.h. */ 5388 int i; 5389 int 5390 main (void) 5391 { 5392 5393 ; 5394 return 0; 5395 } 5396 _ACEOF 5397 if ac_fn_c_try_link "$LINENO" 5398 then : 5399 eval $cacheid=yes 5400 else $as_nop 5401 eval $cacheid=no 5402 fi 5403 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5404 conftest$ac_exeext conftest.$ac_ext 5405 fi 5406 5407 5408 CFLAGS="$xorg_testset_save_CFLAGS" 5409 5410 eval supported=\$$cacheid 5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5412 printf "%s\n" "$supported" >&6; } 5413 if test "$supported" = "yes" ; then 5414 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5415 found="yes" 5416 fi 5417 fi 5418 5419 if test $found = "no" ; then 5420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5422 fi 5423 5424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5426 fi 5427 5428 CFLAGS="$CFLAGS -fd" 5429 5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5431 printf %s "checking if $CC supports -fd... " >&6; } 5432 cacheid=xorg_cv_cc_flag__fd 5433 if eval test \${$cacheid+y} 5434 then : 5435 printf %s "(cached) " >&6 5436 else $as_nop 5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5438 /* end confdefs.h. */ 5439 int i; 5440 int 5441 main (void) 5442 { 5443 5444 ; 5445 return 0; 5446 } 5447 _ACEOF 5448 if ac_fn_c_try_link "$LINENO" 5449 then : 5450 eval $cacheid=yes 5451 else $as_nop 5452 eval $cacheid=no 5453 fi 5454 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5455 conftest$ac_exeext conftest.$ac_ext 5456 fi 5457 5458 5459 CFLAGS="$xorg_testset_save_CFLAGS" 5460 5461 eval supported=\$$cacheid 5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5463 printf "%s\n" "$supported" >&6; } 5464 if test "$supported" = "yes" ; then 5465 BASE_CFLAGS="$BASE_CFLAGS -fd" 5466 found="yes" 5467 fi 5468 fi 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 xorg_testset_save_CFLAGS="$CFLAGS" 5485 5486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5489 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5490 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5491 then : 5492 printf %s "(cached) " >&6 5493 else $as_nop 5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5495 /* end confdefs.h. */ 5496 int i; 5497 _ACEOF 5498 if ac_fn_c_try_compile "$LINENO" 5499 then : 5500 xorg_cv_cc_flag_unknown_warning_option=yes 5501 else $as_nop 5502 xorg_cv_cc_flag_unknown_warning_option=no 5503 fi 5504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5505 fi 5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5507 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5509 CFLAGS="$xorg_testset_save_CFLAGS" 5510 fi 5511 5512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5515 fi 5516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5518 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5519 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5520 then : 5521 printf %s "(cached) " >&6 5522 else $as_nop 5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5524 /* end confdefs.h. */ 5525 int i; 5526 _ACEOF 5527 if ac_fn_c_try_compile "$LINENO" 5528 then : 5529 xorg_cv_cc_flag_unused_command_line_argument=yes 5530 else $as_nop 5531 xorg_cv_cc_flag_unused_command_line_argument=no 5532 fi 5533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5534 fi 5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5536 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5538 CFLAGS="$xorg_testset_save_CFLAGS" 5539 fi 5540 5541 found="no" 5542 5543 if test $found = "no" ; then 5544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5546 fi 5547 5548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5550 fi 5551 5552 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5553 5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5555 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5556 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5557 if eval test \${$cacheid+y} 5558 then : 5559 printf %s "(cached) " >&6 5560 else $as_nop 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5562 /* end confdefs.h. */ 5563 int i; 5564 int 5565 main (void) 5566 { 5567 5568 ; 5569 return 0; 5570 } 5571 _ACEOF 5572 if ac_fn_c_try_link "$LINENO" 5573 then : 5574 eval $cacheid=yes 5575 else $as_nop 5576 eval $cacheid=no 5577 fi 5578 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5579 conftest$ac_exeext conftest.$ac_ext 5580 fi 5581 5582 5583 CFLAGS="$xorg_testset_save_CFLAGS" 5584 5585 eval supported=\$$cacheid 5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5587 printf "%s\n" "$supported" >&6; } 5588 if test "$supported" = "yes" ; then 5589 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5590 found="yes" 5591 fi 5592 fi 5593 5594 5595 5596 5597 5598 # This chunk adds additional warnings that could catch undesired effects. 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 xorg_testset_save_CFLAGS="$CFLAGS" 5613 5614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5617 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5618 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5619 then : 5620 printf %s "(cached) " >&6 5621 else $as_nop 5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5623 /* end confdefs.h. */ 5624 int i; 5625 _ACEOF 5626 if ac_fn_c_try_compile "$LINENO" 5627 then : 5628 xorg_cv_cc_flag_unknown_warning_option=yes 5629 else $as_nop 5630 xorg_cv_cc_flag_unknown_warning_option=no 5631 fi 5632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5633 fi 5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5635 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5637 CFLAGS="$xorg_testset_save_CFLAGS" 5638 fi 5639 5640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5643 fi 5644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5646 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5647 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5648 then : 5649 printf %s "(cached) " >&6 5650 else $as_nop 5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5652 /* end confdefs.h. */ 5653 int i; 5654 _ACEOF 5655 if ac_fn_c_try_compile "$LINENO" 5656 then : 5657 xorg_cv_cc_flag_unused_command_line_argument=yes 5658 else $as_nop 5659 xorg_cv_cc_flag_unused_command_line_argument=no 5660 fi 5661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5662 fi 5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5664 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5666 CFLAGS="$xorg_testset_save_CFLAGS" 5667 fi 5668 5669 found="no" 5670 5671 if test $found = "no" ; then 5672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5674 fi 5675 5676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5678 fi 5679 5680 CFLAGS="$CFLAGS -Wunused" 5681 5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5683 printf %s "checking if $CC supports -Wunused... " >&6; } 5684 cacheid=xorg_cv_cc_flag__Wunused 5685 if eval test \${$cacheid+y} 5686 then : 5687 printf %s "(cached) " >&6 5688 else $as_nop 5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5690 /* end confdefs.h. */ 5691 int i; 5692 int 5693 main (void) 5694 { 5695 5696 ; 5697 return 0; 5698 } 5699 _ACEOF 5700 if ac_fn_c_try_link "$LINENO" 5701 then : 5702 eval $cacheid=yes 5703 else $as_nop 5704 eval $cacheid=no 5705 fi 5706 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5707 conftest$ac_exeext conftest.$ac_ext 5708 fi 5709 5710 5711 CFLAGS="$xorg_testset_save_CFLAGS" 5712 5713 eval supported=\$$cacheid 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5715 printf "%s\n" "$supported" >&6; } 5716 if test "$supported" = "yes" ; then 5717 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5718 found="yes" 5719 fi 5720 fi 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 xorg_testset_save_CFLAGS="$CFLAGS" 5737 5738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5741 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5742 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5743 then : 5744 printf %s "(cached) " >&6 5745 else $as_nop 5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5747 /* end confdefs.h. */ 5748 int i; 5749 _ACEOF 5750 if ac_fn_c_try_compile "$LINENO" 5751 then : 5752 xorg_cv_cc_flag_unknown_warning_option=yes 5753 else $as_nop 5754 xorg_cv_cc_flag_unknown_warning_option=no 5755 fi 5756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5757 fi 5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5759 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5761 CFLAGS="$xorg_testset_save_CFLAGS" 5762 fi 5763 5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5767 fi 5768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5770 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5771 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5772 then : 5773 printf %s "(cached) " >&6 5774 else $as_nop 5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5776 /* end confdefs.h. */ 5777 int i; 5778 _ACEOF 5779 if ac_fn_c_try_compile "$LINENO" 5780 then : 5781 xorg_cv_cc_flag_unused_command_line_argument=yes 5782 else $as_nop 5783 xorg_cv_cc_flag_unused_command_line_argument=no 5784 fi 5785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5786 fi 5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5788 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5790 CFLAGS="$xorg_testset_save_CFLAGS" 5791 fi 5792 5793 found="no" 5794 5795 if test $found = "no" ; then 5796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5798 fi 5799 5800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5802 fi 5803 5804 CFLAGS="$CFLAGS -Wuninitialized" 5805 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5807 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 5808 cacheid=xorg_cv_cc_flag__Wuninitialized 5809 if eval test \${$cacheid+y} 5810 then : 5811 printf %s "(cached) " >&6 5812 else $as_nop 5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5814 /* end confdefs.h. */ 5815 int i; 5816 int 5817 main (void) 5818 { 5819 5820 ; 5821 return 0; 5822 } 5823 _ACEOF 5824 if ac_fn_c_try_link "$LINENO" 5825 then : 5826 eval $cacheid=yes 5827 else $as_nop 5828 eval $cacheid=no 5829 fi 5830 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5831 conftest$ac_exeext conftest.$ac_ext 5832 fi 5833 5834 5835 CFLAGS="$xorg_testset_save_CFLAGS" 5836 5837 eval supported=\$$cacheid 5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5839 printf "%s\n" "$supported" >&6; } 5840 if test "$supported" = "yes" ; then 5841 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5842 found="yes" 5843 fi 5844 fi 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 xorg_testset_save_CFLAGS="$CFLAGS" 5861 5862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5865 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5866 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5867 then : 5868 printf %s "(cached) " >&6 5869 else $as_nop 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871 /* end confdefs.h. */ 5872 int i; 5873 _ACEOF 5874 if ac_fn_c_try_compile "$LINENO" 5875 then : 5876 xorg_cv_cc_flag_unknown_warning_option=yes 5877 else $as_nop 5878 xorg_cv_cc_flag_unknown_warning_option=no 5879 fi 5880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5881 fi 5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5883 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5885 CFLAGS="$xorg_testset_save_CFLAGS" 5886 fi 5887 5888 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5891 fi 5892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5894 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5895 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5896 then : 5897 printf %s "(cached) " >&6 5898 else $as_nop 5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5900 /* end confdefs.h. */ 5901 int i; 5902 _ACEOF 5903 if ac_fn_c_try_compile "$LINENO" 5904 then : 5905 xorg_cv_cc_flag_unused_command_line_argument=yes 5906 else $as_nop 5907 xorg_cv_cc_flag_unused_command_line_argument=no 5908 fi 5909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5910 fi 5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5912 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5914 CFLAGS="$xorg_testset_save_CFLAGS" 5915 fi 5916 5917 found="no" 5918 5919 if test $found = "no" ; then 5920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5922 fi 5923 5924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5926 fi 5927 5928 CFLAGS="$CFLAGS -Wshadow" 5929 5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 5931 printf %s "checking if $CC supports -Wshadow... " >&6; } 5932 cacheid=xorg_cv_cc_flag__Wshadow 5933 if eval test \${$cacheid+y} 5934 then : 5935 printf %s "(cached) " >&6 5936 else $as_nop 5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5938 /* end confdefs.h. */ 5939 int i; 5940 int 5941 main (void) 5942 { 5943 5944 ; 5945 return 0; 5946 } 5947 _ACEOF 5948 if ac_fn_c_try_link "$LINENO" 5949 then : 5950 eval $cacheid=yes 5951 else $as_nop 5952 eval $cacheid=no 5953 fi 5954 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5955 conftest$ac_exeext conftest.$ac_ext 5956 fi 5957 5958 5959 CFLAGS="$xorg_testset_save_CFLAGS" 5960 5961 eval supported=\$$cacheid 5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5963 printf "%s\n" "$supported" >&6; } 5964 if test "$supported" = "yes" ; then 5965 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 5966 found="yes" 5967 fi 5968 fi 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 xorg_testset_save_CFLAGS="$CFLAGS" 5985 5986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5989 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5990 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5991 then : 5992 printf %s "(cached) " >&6 5993 else $as_nop 5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5995 /* end confdefs.h. */ 5996 int i; 5997 _ACEOF 5998 if ac_fn_c_try_compile "$LINENO" 5999 then : 6000 xorg_cv_cc_flag_unknown_warning_option=yes 6001 else $as_nop 6002 xorg_cv_cc_flag_unknown_warning_option=no 6003 fi 6004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6005 fi 6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6007 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6009 CFLAGS="$xorg_testset_save_CFLAGS" 6010 fi 6011 6012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6015 fi 6016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6018 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6019 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6020 then : 6021 printf %s "(cached) " >&6 6022 else $as_nop 6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6024 /* end confdefs.h. */ 6025 int i; 6026 _ACEOF 6027 if ac_fn_c_try_compile "$LINENO" 6028 then : 6029 xorg_cv_cc_flag_unused_command_line_argument=yes 6030 else $as_nop 6031 xorg_cv_cc_flag_unused_command_line_argument=no 6032 fi 6033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6034 fi 6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6036 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6038 CFLAGS="$xorg_testset_save_CFLAGS" 6039 fi 6040 6041 found="no" 6042 6043 if test $found = "no" ; then 6044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6046 fi 6047 6048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6050 fi 6051 6052 CFLAGS="$CFLAGS -Wmissing-noreturn" 6053 6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6055 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6056 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6057 if eval test \${$cacheid+y} 6058 then : 6059 printf %s "(cached) " >&6 6060 else $as_nop 6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6062 /* end confdefs.h. */ 6063 int i; 6064 int 6065 main (void) 6066 { 6067 6068 ; 6069 return 0; 6070 } 6071 _ACEOF 6072 if ac_fn_c_try_link "$LINENO" 6073 then : 6074 eval $cacheid=yes 6075 else $as_nop 6076 eval $cacheid=no 6077 fi 6078 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6079 conftest$ac_exeext conftest.$ac_ext 6080 fi 6081 6082 6083 CFLAGS="$xorg_testset_save_CFLAGS" 6084 6085 eval supported=\$$cacheid 6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6087 printf "%s\n" "$supported" >&6; } 6088 if test "$supported" = "yes" ; then 6089 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6090 found="yes" 6091 fi 6092 fi 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 xorg_testset_save_CFLAGS="$CFLAGS" 6109 6110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6113 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6114 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6115 then : 6116 printf %s "(cached) " >&6 6117 else $as_nop 6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6119 /* end confdefs.h. */ 6120 int i; 6121 _ACEOF 6122 if ac_fn_c_try_compile "$LINENO" 6123 then : 6124 xorg_cv_cc_flag_unknown_warning_option=yes 6125 else $as_nop 6126 xorg_cv_cc_flag_unknown_warning_option=no 6127 fi 6128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6129 fi 6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6131 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6133 CFLAGS="$xorg_testset_save_CFLAGS" 6134 fi 6135 6136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6139 fi 6140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6142 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6143 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6144 then : 6145 printf %s "(cached) " >&6 6146 else $as_nop 6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6148 /* end confdefs.h. */ 6149 int i; 6150 _ACEOF 6151 if ac_fn_c_try_compile "$LINENO" 6152 then : 6153 xorg_cv_cc_flag_unused_command_line_argument=yes 6154 else $as_nop 6155 xorg_cv_cc_flag_unused_command_line_argument=no 6156 fi 6157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6158 fi 6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6160 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6162 CFLAGS="$xorg_testset_save_CFLAGS" 6163 fi 6164 6165 found="no" 6166 6167 if test $found = "no" ; then 6168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6170 fi 6171 6172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6174 fi 6175 6176 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6177 6178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6179 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6180 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6181 if eval test \${$cacheid+y} 6182 then : 6183 printf %s "(cached) " >&6 6184 else $as_nop 6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186 /* end confdefs.h. */ 6187 int i; 6188 int 6189 main (void) 6190 { 6191 6192 ; 6193 return 0; 6194 } 6195 _ACEOF 6196 if ac_fn_c_try_link "$LINENO" 6197 then : 6198 eval $cacheid=yes 6199 else $as_nop 6200 eval $cacheid=no 6201 fi 6202 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6203 conftest$ac_exeext conftest.$ac_ext 6204 fi 6205 6206 6207 CFLAGS="$xorg_testset_save_CFLAGS" 6208 6209 eval supported=\$$cacheid 6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6211 printf "%s\n" "$supported" >&6; } 6212 if test "$supported" = "yes" ; then 6213 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6214 found="yes" 6215 fi 6216 fi 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 xorg_testset_save_CFLAGS="$CFLAGS" 6233 6234 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6237 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6238 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6239 then : 6240 printf %s "(cached) " >&6 6241 else $as_nop 6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6243 /* end confdefs.h. */ 6244 int i; 6245 _ACEOF 6246 if ac_fn_c_try_compile "$LINENO" 6247 then : 6248 xorg_cv_cc_flag_unknown_warning_option=yes 6249 else $as_nop 6250 xorg_cv_cc_flag_unknown_warning_option=no 6251 fi 6252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6253 fi 6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6255 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6257 CFLAGS="$xorg_testset_save_CFLAGS" 6258 fi 6259 6260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6263 fi 6264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6266 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6267 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6268 then : 6269 printf %s "(cached) " >&6 6270 else $as_nop 6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6272 /* end confdefs.h. */ 6273 int i; 6274 _ACEOF 6275 if ac_fn_c_try_compile "$LINENO" 6276 then : 6277 xorg_cv_cc_flag_unused_command_line_argument=yes 6278 else $as_nop 6279 xorg_cv_cc_flag_unused_command_line_argument=no 6280 fi 6281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6282 fi 6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6284 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6286 CFLAGS="$xorg_testset_save_CFLAGS" 6287 fi 6288 6289 found="no" 6290 6291 if test $found = "no" ; then 6292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6294 fi 6295 6296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6298 fi 6299 6300 CFLAGS="$CFLAGS -Wredundant-decls" 6301 6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6303 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6304 cacheid=xorg_cv_cc_flag__Wredundant_decls 6305 if eval test \${$cacheid+y} 6306 then : 6307 printf %s "(cached) " >&6 6308 else $as_nop 6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6310 /* end confdefs.h. */ 6311 int i; 6312 int 6313 main (void) 6314 { 6315 6316 ; 6317 return 0; 6318 } 6319 _ACEOF 6320 if ac_fn_c_try_link "$LINENO" 6321 then : 6322 eval $cacheid=yes 6323 else $as_nop 6324 eval $cacheid=no 6325 fi 6326 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6327 conftest$ac_exeext conftest.$ac_ext 6328 fi 6329 6330 6331 CFLAGS="$xorg_testset_save_CFLAGS" 6332 6333 eval supported=\$$cacheid 6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6335 printf "%s\n" "$supported" >&6; } 6336 if test "$supported" = "yes" ; then 6337 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6338 found="yes" 6339 fi 6340 fi 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 xorg_testset_save_CFLAGS="$CFLAGS" 6357 6358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6361 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6362 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6363 then : 6364 printf %s "(cached) " >&6 6365 else $as_nop 6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6367 /* end confdefs.h. */ 6368 int i; 6369 _ACEOF 6370 if ac_fn_c_try_compile "$LINENO" 6371 then : 6372 xorg_cv_cc_flag_unknown_warning_option=yes 6373 else $as_nop 6374 xorg_cv_cc_flag_unknown_warning_option=no 6375 fi 6376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6377 fi 6378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6379 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6381 CFLAGS="$xorg_testset_save_CFLAGS" 6382 fi 6383 6384 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6387 fi 6388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6390 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6391 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6392 then : 6393 printf %s "(cached) " >&6 6394 else $as_nop 6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6396 /* end confdefs.h. */ 6397 int i; 6398 _ACEOF 6399 if ac_fn_c_try_compile "$LINENO" 6400 then : 6401 xorg_cv_cc_flag_unused_command_line_argument=yes 6402 else $as_nop 6403 xorg_cv_cc_flag_unused_command_line_argument=no 6404 fi 6405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6406 fi 6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6408 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411 fi 6412 6413 found="no" 6414 6415 if test $found = "no" ; then 6416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6418 fi 6419 6420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6422 fi 6423 6424 CFLAGS="$CFLAGS -Wlogical-op" 6425 6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6427 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6428 cacheid=xorg_cv_cc_flag__Wlogical_op 6429 if eval test \${$cacheid+y} 6430 then : 6431 printf %s "(cached) " >&6 6432 else $as_nop 6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6434 /* end confdefs.h. */ 6435 int i; 6436 int 6437 main (void) 6438 { 6439 6440 ; 6441 return 0; 6442 } 6443 _ACEOF 6444 if ac_fn_c_try_link "$LINENO" 6445 then : 6446 eval $cacheid=yes 6447 else $as_nop 6448 eval $cacheid=no 6449 fi 6450 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6451 conftest$ac_exeext conftest.$ac_ext 6452 fi 6453 6454 6455 CFLAGS="$xorg_testset_save_CFLAGS" 6456 6457 eval supported=\$$cacheid 6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6459 printf "%s\n" "$supported" >&6; } 6460 if test "$supported" = "yes" ; then 6461 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6462 found="yes" 6463 fi 6464 fi 6465 6466 6467 6468 # These are currently disabled because they are noisy. They will be enabled 6469 # in the future once the codebase is sufficiently modernized to silence 6470 # them. For now, I don't want them to drown out the other warnings. 6471 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6472 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6473 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6474 6475 # Turn some warnings into errors, so we don't accidentally get successful builds 6476 # when there are problems that should be fixed. 6477 6478 if test "x$SELECTIVE_WERROR" = "xyes" ; then 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 xorg_testset_save_CFLAGS="$CFLAGS" 6493 6494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6497 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6498 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6499 then : 6500 printf %s "(cached) " >&6 6501 else $as_nop 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503 /* end confdefs.h. */ 6504 int i; 6505 _ACEOF 6506 if ac_fn_c_try_compile "$LINENO" 6507 then : 6508 xorg_cv_cc_flag_unknown_warning_option=yes 6509 else $as_nop 6510 xorg_cv_cc_flag_unknown_warning_option=no 6511 fi 6512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6513 fi 6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6515 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6517 CFLAGS="$xorg_testset_save_CFLAGS" 6518 fi 6519 6520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6523 fi 6524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6526 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6527 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6528 then : 6529 printf %s "(cached) " >&6 6530 else $as_nop 6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6532 /* end confdefs.h. */ 6533 int i; 6534 _ACEOF 6535 if ac_fn_c_try_compile "$LINENO" 6536 then : 6537 xorg_cv_cc_flag_unused_command_line_argument=yes 6538 else $as_nop 6539 xorg_cv_cc_flag_unused_command_line_argument=no 6540 fi 6541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6542 fi 6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6546 CFLAGS="$xorg_testset_save_CFLAGS" 6547 fi 6548 6549 found="no" 6550 6551 if test $found = "no" ; then 6552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6554 fi 6555 6556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6558 fi 6559 6560 CFLAGS="$CFLAGS -Werror=implicit" 6561 6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6563 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 6564 cacheid=xorg_cv_cc_flag__Werror_implicit 6565 if eval test \${$cacheid+y} 6566 then : 6567 printf %s "(cached) " >&6 6568 else $as_nop 6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6570 /* end confdefs.h. */ 6571 int i; 6572 int 6573 main (void) 6574 { 6575 6576 ; 6577 return 0; 6578 } 6579 _ACEOF 6580 if ac_fn_c_try_link "$LINENO" 6581 then : 6582 eval $cacheid=yes 6583 else $as_nop 6584 eval $cacheid=no 6585 fi 6586 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6587 conftest$ac_exeext conftest.$ac_ext 6588 fi 6589 6590 6591 CFLAGS="$xorg_testset_save_CFLAGS" 6592 6593 eval supported=\$$cacheid 6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6595 printf "%s\n" "$supported" >&6; } 6596 if test "$supported" = "yes" ; then 6597 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6598 found="yes" 6599 fi 6600 fi 6601 6602 if test $found = "no" ; then 6603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6605 fi 6606 6607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6609 fi 6610 6611 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6612 6613 { 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 6614 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6615 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6616 if eval test \${$cacheid+y} 6617 then : 6618 printf %s "(cached) " >&6 6619 else $as_nop 6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6621 /* end confdefs.h. */ 6622 int i; 6623 int 6624 main (void) 6625 { 6626 6627 ; 6628 return 0; 6629 } 6630 _ACEOF 6631 if ac_fn_c_try_link "$LINENO" 6632 then : 6633 eval $cacheid=yes 6634 else $as_nop 6635 eval $cacheid=no 6636 fi 6637 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6638 conftest$ac_exeext conftest.$ac_ext 6639 fi 6640 6641 6642 CFLAGS="$xorg_testset_save_CFLAGS" 6643 6644 eval supported=\$$cacheid 6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6646 printf "%s\n" "$supported" >&6; } 6647 if test "$supported" = "yes" ; then 6648 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6649 found="yes" 6650 fi 6651 fi 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 xorg_testset_save_CFLAGS="$CFLAGS" 6668 6669 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6672 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6673 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6674 then : 6675 printf %s "(cached) " >&6 6676 else $as_nop 6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6678 /* end confdefs.h. */ 6679 int i; 6680 _ACEOF 6681 if ac_fn_c_try_compile "$LINENO" 6682 then : 6683 xorg_cv_cc_flag_unknown_warning_option=yes 6684 else $as_nop 6685 xorg_cv_cc_flag_unknown_warning_option=no 6686 fi 6687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6688 fi 6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6690 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6692 CFLAGS="$xorg_testset_save_CFLAGS" 6693 fi 6694 6695 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6698 fi 6699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6701 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6702 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6703 then : 6704 printf %s "(cached) " >&6 6705 else $as_nop 6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6707 /* end confdefs.h. */ 6708 int i; 6709 _ACEOF 6710 if ac_fn_c_try_compile "$LINENO" 6711 then : 6712 xorg_cv_cc_flag_unused_command_line_argument=yes 6713 else $as_nop 6714 xorg_cv_cc_flag_unused_command_line_argument=no 6715 fi 6716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6717 fi 6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6721 CFLAGS="$xorg_testset_save_CFLAGS" 6722 fi 6723 6724 found="no" 6725 6726 if test $found = "no" ; then 6727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6729 fi 6730 6731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6733 fi 6734 6735 CFLAGS="$CFLAGS -Werror=nonnull" 6736 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6738 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 6739 cacheid=xorg_cv_cc_flag__Werror_nonnull 6740 if eval test \${$cacheid+y} 6741 then : 6742 printf %s "(cached) " >&6 6743 else $as_nop 6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6745 /* end confdefs.h. */ 6746 int i; 6747 int 6748 main (void) 6749 { 6750 6751 ; 6752 return 0; 6753 } 6754 _ACEOF 6755 if ac_fn_c_try_link "$LINENO" 6756 then : 6757 eval $cacheid=yes 6758 else $as_nop 6759 eval $cacheid=no 6760 fi 6761 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6762 conftest$ac_exeext conftest.$ac_ext 6763 fi 6764 6765 6766 CFLAGS="$xorg_testset_save_CFLAGS" 6767 6768 eval supported=\$$cacheid 6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6770 printf "%s\n" "$supported" >&6; } 6771 if test "$supported" = "yes" ; then 6772 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6773 found="yes" 6774 fi 6775 fi 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 xorg_testset_save_CFLAGS="$CFLAGS" 6792 6793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6797 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6798 then : 6799 printf %s "(cached) " >&6 6800 else $as_nop 6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6802 /* end confdefs.h. */ 6803 int i; 6804 _ACEOF 6805 if ac_fn_c_try_compile "$LINENO" 6806 then : 6807 xorg_cv_cc_flag_unknown_warning_option=yes 6808 else $as_nop 6809 xorg_cv_cc_flag_unknown_warning_option=no 6810 fi 6811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6812 fi 6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6816 CFLAGS="$xorg_testset_save_CFLAGS" 6817 fi 6818 6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6822 fi 6823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6827 then : 6828 printf %s "(cached) " >&6 6829 else $as_nop 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6831 /* end confdefs.h. */ 6832 int i; 6833 _ACEOF 6834 if ac_fn_c_try_compile "$LINENO" 6835 then : 6836 xorg_cv_cc_flag_unused_command_line_argument=yes 6837 else $as_nop 6838 xorg_cv_cc_flag_unused_command_line_argument=no 6839 fi 6840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6841 fi 6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6845 CFLAGS="$xorg_testset_save_CFLAGS" 6846 fi 6847 6848 found="no" 6849 6850 if test $found = "no" ; then 6851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6853 fi 6854 6855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6857 fi 6858 6859 CFLAGS="$CFLAGS -Werror=init-self" 6860 6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6862 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 6863 cacheid=xorg_cv_cc_flag__Werror_init_self 6864 if eval test \${$cacheid+y} 6865 then : 6866 printf %s "(cached) " >&6 6867 else $as_nop 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869 /* end confdefs.h. */ 6870 int i; 6871 int 6872 main (void) 6873 { 6874 6875 ; 6876 return 0; 6877 } 6878 _ACEOF 6879 if ac_fn_c_try_link "$LINENO" 6880 then : 6881 eval $cacheid=yes 6882 else $as_nop 6883 eval $cacheid=no 6884 fi 6885 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6886 conftest$ac_exeext conftest.$ac_ext 6887 fi 6888 6889 6890 CFLAGS="$xorg_testset_save_CFLAGS" 6891 6892 eval supported=\$$cacheid 6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6894 printf "%s\n" "$supported" >&6; } 6895 if test "$supported" = "yes" ; then 6896 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6897 found="yes" 6898 fi 6899 fi 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 xorg_testset_save_CFLAGS="$CFLAGS" 6916 6917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6920 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6921 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6922 then : 6923 printf %s "(cached) " >&6 6924 else $as_nop 6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6926 /* end confdefs.h. */ 6927 int i; 6928 _ACEOF 6929 if ac_fn_c_try_compile "$LINENO" 6930 then : 6931 xorg_cv_cc_flag_unknown_warning_option=yes 6932 else $as_nop 6933 xorg_cv_cc_flag_unknown_warning_option=no 6934 fi 6935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6936 fi 6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6938 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6940 CFLAGS="$xorg_testset_save_CFLAGS" 6941 fi 6942 6943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6946 fi 6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6949 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6950 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6951 then : 6952 printf %s "(cached) " >&6 6953 else $as_nop 6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6955 /* end confdefs.h. */ 6956 int i; 6957 _ACEOF 6958 if ac_fn_c_try_compile "$LINENO" 6959 then : 6960 xorg_cv_cc_flag_unused_command_line_argument=yes 6961 else $as_nop 6962 xorg_cv_cc_flag_unused_command_line_argument=no 6963 fi 6964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6965 fi 6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6967 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6968 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6969 CFLAGS="$xorg_testset_save_CFLAGS" 6970 fi 6971 6972 found="no" 6973 6974 if test $found = "no" ; then 6975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6977 fi 6978 6979 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6981 fi 6982 6983 CFLAGS="$CFLAGS -Werror=main" 6984 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 6986 printf %s "checking if $CC supports -Werror=main... " >&6; } 6987 cacheid=xorg_cv_cc_flag__Werror_main 6988 if eval test \${$cacheid+y} 6989 then : 6990 printf %s "(cached) " >&6 6991 else $as_nop 6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6993 /* end confdefs.h. */ 6994 int i; 6995 int 6996 main (void) 6997 { 6998 6999 ; 7000 return 0; 7001 } 7002 _ACEOF 7003 if ac_fn_c_try_link "$LINENO" 7004 then : 7005 eval $cacheid=yes 7006 else $as_nop 7007 eval $cacheid=no 7008 fi 7009 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7010 conftest$ac_exeext conftest.$ac_ext 7011 fi 7012 7013 7014 CFLAGS="$xorg_testset_save_CFLAGS" 7015 7016 eval supported=\$$cacheid 7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7018 printf "%s\n" "$supported" >&6; } 7019 if test "$supported" = "yes" ; then 7020 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7021 found="yes" 7022 fi 7023 fi 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 xorg_testset_save_CFLAGS="$CFLAGS" 7040 7041 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7044 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7045 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7046 then : 7047 printf %s "(cached) " >&6 7048 else $as_nop 7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050 /* end confdefs.h. */ 7051 int i; 7052 _ACEOF 7053 if ac_fn_c_try_compile "$LINENO" 7054 then : 7055 xorg_cv_cc_flag_unknown_warning_option=yes 7056 else $as_nop 7057 xorg_cv_cc_flag_unknown_warning_option=no 7058 fi 7059 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7060 fi 7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7062 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7064 CFLAGS="$xorg_testset_save_CFLAGS" 7065 fi 7066 7067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7070 fi 7071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7073 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7074 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7075 then : 7076 printf %s "(cached) " >&6 7077 else $as_nop 7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7079 /* end confdefs.h. */ 7080 int i; 7081 _ACEOF 7082 if ac_fn_c_try_compile "$LINENO" 7083 then : 7084 xorg_cv_cc_flag_unused_command_line_argument=yes 7085 else $as_nop 7086 xorg_cv_cc_flag_unused_command_line_argument=no 7087 fi 7088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7089 fi 7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7093 CFLAGS="$xorg_testset_save_CFLAGS" 7094 fi 7095 7096 found="no" 7097 7098 if test $found = "no" ; then 7099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7101 fi 7102 7103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7105 fi 7106 7107 CFLAGS="$CFLAGS -Werror=missing-braces" 7108 7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7110 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7111 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7112 if eval test \${$cacheid+y} 7113 then : 7114 printf %s "(cached) " >&6 7115 else $as_nop 7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7117 /* end confdefs.h. */ 7118 int i; 7119 int 7120 main (void) 7121 { 7122 7123 ; 7124 return 0; 7125 } 7126 _ACEOF 7127 if ac_fn_c_try_link "$LINENO" 7128 then : 7129 eval $cacheid=yes 7130 else $as_nop 7131 eval $cacheid=no 7132 fi 7133 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7134 conftest$ac_exeext conftest.$ac_ext 7135 fi 7136 7137 7138 CFLAGS="$xorg_testset_save_CFLAGS" 7139 7140 eval supported=\$$cacheid 7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7142 printf "%s\n" "$supported" >&6; } 7143 if test "$supported" = "yes" ; then 7144 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7145 found="yes" 7146 fi 7147 fi 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 xorg_testset_save_CFLAGS="$CFLAGS" 7164 7165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7168 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7169 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7170 then : 7171 printf %s "(cached) " >&6 7172 else $as_nop 7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7174 /* end confdefs.h. */ 7175 int i; 7176 _ACEOF 7177 if ac_fn_c_try_compile "$LINENO" 7178 then : 7179 xorg_cv_cc_flag_unknown_warning_option=yes 7180 else $as_nop 7181 xorg_cv_cc_flag_unknown_warning_option=no 7182 fi 7183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7184 fi 7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7186 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7188 CFLAGS="$xorg_testset_save_CFLAGS" 7189 fi 7190 7191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7194 fi 7195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7197 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7198 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7199 then : 7200 printf %s "(cached) " >&6 7201 else $as_nop 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203 /* end confdefs.h. */ 7204 int i; 7205 _ACEOF 7206 if ac_fn_c_try_compile "$LINENO" 7207 then : 7208 xorg_cv_cc_flag_unused_command_line_argument=yes 7209 else $as_nop 7210 xorg_cv_cc_flag_unused_command_line_argument=no 7211 fi 7212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7213 fi 7214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7215 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7217 CFLAGS="$xorg_testset_save_CFLAGS" 7218 fi 7219 7220 found="no" 7221 7222 if test $found = "no" ; then 7223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7225 fi 7226 7227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7229 fi 7230 7231 CFLAGS="$CFLAGS -Werror=sequence-point" 7232 7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7234 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7235 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7236 if eval test \${$cacheid+y} 7237 then : 7238 printf %s "(cached) " >&6 7239 else $as_nop 7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7241 /* end confdefs.h. */ 7242 int i; 7243 int 7244 main (void) 7245 { 7246 7247 ; 7248 return 0; 7249 } 7250 _ACEOF 7251 if ac_fn_c_try_link "$LINENO" 7252 then : 7253 eval $cacheid=yes 7254 else $as_nop 7255 eval $cacheid=no 7256 fi 7257 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7258 conftest$ac_exeext conftest.$ac_ext 7259 fi 7260 7261 7262 CFLAGS="$xorg_testset_save_CFLAGS" 7263 7264 eval supported=\$$cacheid 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7266 printf "%s\n" "$supported" >&6; } 7267 if test "$supported" = "yes" ; then 7268 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7269 found="yes" 7270 fi 7271 fi 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 xorg_testset_save_CFLAGS="$CFLAGS" 7288 7289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7292 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7293 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7294 then : 7295 printf %s "(cached) " >&6 7296 else $as_nop 7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7298 /* end confdefs.h. */ 7299 int i; 7300 _ACEOF 7301 if ac_fn_c_try_compile "$LINENO" 7302 then : 7303 xorg_cv_cc_flag_unknown_warning_option=yes 7304 else $as_nop 7305 xorg_cv_cc_flag_unknown_warning_option=no 7306 fi 7307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7308 fi 7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7310 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7312 CFLAGS="$xorg_testset_save_CFLAGS" 7313 fi 7314 7315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7318 fi 7319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7321 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7322 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7323 then : 7324 printf %s "(cached) " >&6 7325 else $as_nop 7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7327 /* end confdefs.h. */ 7328 int i; 7329 _ACEOF 7330 if ac_fn_c_try_compile "$LINENO" 7331 then : 7332 xorg_cv_cc_flag_unused_command_line_argument=yes 7333 else $as_nop 7334 xorg_cv_cc_flag_unused_command_line_argument=no 7335 fi 7336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7337 fi 7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7339 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7341 CFLAGS="$xorg_testset_save_CFLAGS" 7342 fi 7343 7344 found="no" 7345 7346 if test $found = "no" ; then 7347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7349 fi 7350 7351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7353 fi 7354 7355 CFLAGS="$CFLAGS -Werror=return-type" 7356 7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7358 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7359 cacheid=xorg_cv_cc_flag__Werror_return_type 7360 if eval test \${$cacheid+y} 7361 then : 7362 printf %s "(cached) " >&6 7363 else $as_nop 7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7365 /* end confdefs.h. */ 7366 int i; 7367 int 7368 main (void) 7369 { 7370 7371 ; 7372 return 0; 7373 } 7374 _ACEOF 7375 if ac_fn_c_try_link "$LINENO" 7376 then : 7377 eval $cacheid=yes 7378 else $as_nop 7379 eval $cacheid=no 7380 fi 7381 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7382 conftest$ac_exeext conftest.$ac_ext 7383 fi 7384 7385 7386 CFLAGS="$xorg_testset_save_CFLAGS" 7387 7388 eval supported=\$$cacheid 7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7390 printf "%s\n" "$supported" >&6; } 7391 if test "$supported" = "yes" ; then 7392 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7393 found="yes" 7394 fi 7395 fi 7396 7397 if test $found = "no" ; then 7398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7400 fi 7401 7402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7404 fi 7405 7406 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7407 7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7409 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7410 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7411 if eval test \${$cacheid+y} 7412 then : 7413 printf %s "(cached) " >&6 7414 else $as_nop 7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7416 /* end confdefs.h. */ 7417 int i; 7418 int 7419 main (void) 7420 { 7421 7422 ; 7423 return 0; 7424 } 7425 _ACEOF 7426 if ac_fn_c_try_link "$LINENO" 7427 then : 7428 eval $cacheid=yes 7429 else $as_nop 7430 eval $cacheid=no 7431 fi 7432 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7433 conftest$ac_exeext conftest.$ac_ext 7434 fi 7435 7436 7437 CFLAGS="$xorg_testset_save_CFLAGS" 7438 7439 eval supported=\$$cacheid 7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7441 printf "%s\n" "$supported" >&6; } 7442 if test "$supported" = "yes" ; then 7443 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7444 found="yes" 7445 fi 7446 fi 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 xorg_testset_save_CFLAGS="$CFLAGS" 7463 7464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7467 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7468 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7469 then : 7470 printf %s "(cached) " >&6 7471 else $as_nop 7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7473 /* end confdefs.h. */ 7474 int i; 7475 _ACEOF 7476 if ac_fn_c_try_compile "$LINENO" 7477 then : 7478 xorg_cv_cc_flag_unknown_warning_option=yes 7479 else $as_nop 7480 xorg_cv_cc_flag_unknown_warning_option=no 7481 fi 7482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7483 fi 7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7485 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7487 CFLAGS="$xorg_testset_save_CFLAGS" 7488 fi 7489 7490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7493 fi 7494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7496 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7497 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7498 then : 7499 printf %s "(cached) " >&6 7500 else $as_nop 7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7502 /* end confdefs.h. */ 7503 int i; 7504 _ACEOF 7505 if ac_fn_c_try_compile "$LINENO" 7506 then : 7507 xorg_cv_cc_flag_unused_command_line_argument=yes 7508 else $as_nop 7509 xorg_cv_cc_flag_unused_command_line_argument=no 7510 fi 7511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7512 fi 7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7514 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7516 CFLAGS="$xorg_testset_save_CFLAGS" 7517 fi 7518 7519 found="no" 7520 7521 if test $found = "no" ; then 7522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7524 fi 7525 7526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7528 fi 7529 7530 CFLAGS="$CFLAGS -Werror=trigraphs" 7531 7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7533 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 7534 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7535 if eval test \${$cacheid+y} 7536 then : 7537 printf %s "(cached) " >&6 7538 else $as_nop 7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7540 /* end confdefs.h. */ 7541 int i; 7542 int 7543 main (void) 7544 { 7545 7546 ; 7547 return 0; 7548 } 7549 _ACEOF 7550 if ac_fn_c_try_link "$LINENO" 7551 then : 7552 eval $cacheid=yes 7553 else $as_nop 7554 eval $cacheid=no 7555 fi 7556 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7557 conftest$ac_exeext conftest.$ac_ext 7558 fi 7559 7560 7561 CFLAGS="$xorg_testset_save_CFLAGS" 7562 7563 eval supported=\$$cacheid 7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7565 printf "%s\n" "$supported" >&6; } 7566 if test "$supported" = "yes" ; then 7567 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7568 found="yes" 7569 fi 7570 fi 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 xorg_testset_save_CFLAGS="$CFLAGS" 7587 7588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7591 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7592 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7593 then : 7594 printf %s "(cached) " >&6 7595 else $as_nop 7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7597 /* end confdefs.h. */ 7598 int i; 7599 _ACEOF 7600 if ac_fn_c_try_compile "$LINENO" 7601 then : 7602 xorg_cv_cc_flag_unknown_warning_option=yes 7603 else $as_nop 7604 xorg_cv_cc_flag_unknown_warning_option=no 7605 fi 7606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7607 fi 7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7609 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7611 CFLAGS="$xorg_testset_save_CFLAGS" 7612 fi 7613 7614 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7617 fi 7618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7620 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7621 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7622 then : 7623 printf %s "(cached) " >&6 7624 else $as_nop 7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7626 /* end confdefs.h. */ 7627 int i; 7628 _ACEOF 7629 if ac_fn_c_try_compile "$LINENO" 7630 then : 7631 xorg_cv_cc_flag_unused_command_line_argument=yes 7632 else $as_nop 7633 xorg_cv_cc_flag_unused_command_line_argument=no 7634 fi 7635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7636 fi 7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7638 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7640 CFLAGS="$xorg_testset_save_CFLAGS" 7641 fi 7642 7643 found="no" 7644 7645 if test $found = "no" ; then 7646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7648 fi 7649 7650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7652 fi 7653 7654 CFLAGS="$CFLAGS -Werror=array-bounds" 7655 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7657 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 7658 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7659 if eval test \${$cacheid+y} 7660 then : 7661 printf %s "(cached) " >&6 7662 else $as_nop 7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7664 /* end confdefs.h. */ 7665 int i; 7666 int 7667 main (void) 7668 { 7669 7670 ; 7671 return 0; 7672 } 7673 _ACEOF 7674 if ac_fn_c_try_link "$LINENO" 7675 then : 7676 eval $cacheid=yes 7677 else $as_nop 7678 eval $cacheid=no 7679 fi 7680 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7681 conftest$ac_exeext conftest.$ac_ext 7682 fi 7683 7684 7685 CFLAGS="$xorg_testset_save_CFLAGS" 7686 7687 eval supported=\$$cacheid 7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7689 printf "%s\n" "$supported" >&6; } 7690 if test "$supported" = "yes" ; then 7691 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7692 found="yes" 7693 fi 7694 fi 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 xorg_testset_save_CFLAGS="$CFLAGS" 7711 7712 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7715 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7716 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7717 then : 7718 printf %s "(cached) " >&6 7719 else $as_nop 7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7721 /* end confdefs.h. */ 7722 int i; 7723 _ACEOF 7724 if ac_fn_c_try_compile "$LINENO" 7725 then : 7726 xorg_cv_cc_flag_unknown_warning_option=yes 7727 else $as_nop 7728 xorg_cv_cc_flag_unknown_warning_option=no 7729 fi 7730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7731 fi 7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7733 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7735 CFLAGS="$xorg_testset_save_CFLAGS" 7736 fi 7737 7738 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7741 fi 7742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7744 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7745 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7746 then : 7747 printf %s "(cached) " >&6 7748 else $as_nop 7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7750 /* end confdefs.h. */ 7751 int i; 7752 _ACEOF 7753 if ac_fn_c_try_compile "$LINENO" 7754 then : 7755 xorg_cv_cc_flag_unused_command_line_argument=yes 7756 else $as_nop 7757 xorg_cv_cc_flag_unused_command_line_argument=no 7758 fi 7759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7760 fi 7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7762 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7764 CFLAGS="$xorg_testset_save_CFLAGS" 7765 fi 7766 7767 found="no" 7768 7769 if test $found = "no" ; then 7770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7772 fi 7773 7774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7776 fi 7777 7778 CFLAGS="$CFLAGS -Werror=write-strings" 7779 7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7781 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 7782 cacheid=xorg_cv_cc_flag__Werror_write_strings 7783 if eval test \${$cacheid+y} 7784 then : 7785 printf %s "(cached) " >&6 7786 else $as_nop 7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7788 /* end confdefs.h. */ 7789 int i; 7790 int 7791 main (void) 7792 { 7793 7794 ; 7795 return 0; 7796 } 7797 _ACEOF 7798 if ac_fn_c_try_link "$LINENO" 7799 then : 7800 eval $cacheid=yes 7801 else $as_nop 7802 eval $cacheid=no 7803 fi 7804 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7805 conftest$ac_exeext conftest.$ac_ext 7806 fi 7807 7808 7809 CFLAGS="$xorg_testset_save_CFLAGS" 7810 7811 eval supported=\$$cacheid 7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7813 printf "%s\n" "$supported" >&6; } 7814 if test "$supported" = "yes" ; then 7815 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7816 found="yes" 7817 fi 7818 fi 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 xorg_testset_save_CFLAGS="$CFLAGS" 7835 7836 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7839 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7840 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7841 then : 7842 printf %s "(cached) " >&6 7843 else $as_nop 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845 /* end confdefs.h. */ 7846 int i; 7847 _ACEOF 7848 if ac_fn_c_try_compile "$LINENO" 7849 then : 7850 xorg_cv_cc_flag_unknown_warning_option=yes 7851 else $as_nop 7852 xorg_cv_cc_flag_unknown_warning_option=no 7853 fi 7854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7855 fi 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7857 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7859 CFLAGS="$xorg_testset_save_CFLAGS" 7860 fi 7861 7862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7865 fi 7866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7868 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7869 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7870 then : 7871 printf %s "(cached) " >&6 7872 else $as_nop 7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7874 /* end confdefs.h. */ 7875 int i; 7876 _ACEOF 7877 if ac_fn_c_try_compile "$LINENO" 7878 then : 7879 xorg_cv_cc_flag_unused_command_line_argument=yes 7880 else $as_nop 7881 xorg_cv_cc_flag_unused_command_line_argument=no 7882 fi 7883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7884 fi 7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7886 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7888 CFLAGS="$xorg_testset_save_CFLAGS" 7889 fi 7890 7891 found="no" 7892 7893 if test $found = "no" ; then 7894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7896 fi 7897 7898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7900 fi 7901 7902 CFLAGS="$CFLAGS -Werror=address" 7903 7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7905 printf %s "checking if $CC supports -Werror=address... " >&6; } 7906 cacheid=xorg_cv_cc_flag__Werror_address 7907 if eval test \${$cacheid+y} 7908 then : 7909 printf %s "(cached) " >&6 7910 else $as_nop 7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7912 /* end confdefs.h. */ 7913 int i; 7914 int 7915 main (void) 7916 { 7917 7918 ; 7919 return 0; 7920 } 7921 _ACEOF 7922 if ac_fn_c_try_link "$LINENO" 7923 then : 7924 eval $cacheid=yes 7925 else $as_nop 7926 eval $cacheid=no 7927 fi 7928 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7929 conftest$ac_exeext conftest.$ac_ext 7930 fi 7931 7932 7933 CFLAGS="$xorg_testset_save_CFLAGS" 7934 7935 eval supported=\$$cacheid 7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7937 printf "%s\n" "$supported" >&6; } 7938 if test "$supported" = "yes" ; then 7939 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7940 found="yes" 7941 fi 7942 fi 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 xorg_testset_save_CFLAGS="$CFLAGS" 7959 7960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7963 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7964 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7965 then : 7966 printf %s "(cached) " >&6 7967 else $as_nop 7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7969 /* end confdefs.h. */ 7970 int i; 7971 _ACEOF 7972 if ac_fn_c_try_compile "$LINENO" 7973 then : 7974 xorg_cv_cc_flag_unknown_warning_option=yes 7975 else $as_nop 7976 xorg_cv_cc_flag_unknown_warning_option=no 7977 fi 7978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7979 fi 7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7981 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7983 CFLAGS="$xorg_testset_save_CFLAGS" 7984 fi 7985 7986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7989 fi 7990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7992 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7993 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7994 then : 7995 printf %s "(cached) " >&6 7996 else $as_nop 7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7998 /* end confdefs.h. */ 7999 int i; 8000 _ACEOF 8001 if ac_fn_c_try_compile "$LINENO" 8002 then : 8003 xorg_cv_cc_flag_unused_command_line_argument=yes 8004 else $as_nop 8005 xorg_cv_cc_flag_unused_command_line_argument=no 8006 fi 8007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8008 fi 8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8012 CFLAGS="$xorg_testset_save_CFLAGS" 8013 fi 8014 8015 found="no" 8016 8017 if test $found = "no" ; then 8018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8020 fi 8021 8022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8024 fi 8025 8026 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8027 8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8029 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8030 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8031 if eval test \${$cacheid+y} 8032 then : 8033 printf %s "(cached) " >&6 8034 else $as_nop 8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8036 /* end confdefs.h. */ 8037 int i; 8038 int 8039 main (void) 8040 { 8041 8042 ; 8043 return 0; 8044 } 8045 _ACEOF 8046 if ac_fn_c_try_link "$LINENO" 8047 then : 8048 eval $cacheid=yes 8049 else $as_nop 8050 eval $cacheid=no 8051 fi 8052 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8053 conftest$ac_exeext conftest.$ac_ext 8054 fi 8055 8056 8057 CFLAGS="$xorg_testset_save_CFLAGS" 8058 8059 eval supported=\$$cacheid 8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8061 printf "%s\n" "$supported" >&6; } 8062 if test "$supported" = "yes" ; then 8063 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8064 found="yes" 8065 fi 8066 fi 8067 8068 if test $found = "no" ; then 8069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8071 fi 8072 8073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8075 fi 8076 8077 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8078 8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8080 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8081 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8082 if eval test \${$cacheid+y} 8083 then : 8084 printf %s "(cached) " >&6 8085 else $as_nop 8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8087 /* end confdefs.h. */ 8088 int i; 8089 int 8090 main (void) 8091 { 8092 8093 ; 8094 return 0; 8095 } 8096 _ACEOF 8097 if ac_fn_c_try_link "$LINENO" 8098 then : 8099 eval $cacheid=yes 8100 else $as_nop 8101 eval $cacheid=no 8102 fi 8103 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8104 conftest$ac_exeext conftest.$ac_ext 8105 fi 8106 8107 8108 CFLAGS="$xorg_testset_save_CFLAGS" 8109 8110 eval supported=\$$cacheid 8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8112 printf "%s\n" "$supported" >&6; } 8113 if test "$supported" = "yes" ; then 8114 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8115 found="yes" 8116 fi 8117 fi 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 xorg_testset_save_CFLAGS="$CFLAGS" 8134 8135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8138 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8139 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8140 then : 8141 printf %s "(cached) " >&6 8142 else $as_nop 8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8144 /* end confdefs.h. */ 8145 int i; 8146 _ACEOF 8147 if ac_fn_c_try_compile "$LINENO" 8148 then : 8149 xorg_cv_cc_flag_unknown_warning_option=yes 8150 else $as_nop 8151 xorg_cv_cc_flag_unknown_warning_option=no 8152 fi 8153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8154 fi 8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8156 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8158 CFLAGS="$xorg_testset_save_CFLAGS" 8159 fi 8160 8161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8164 fi 8165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8167 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8168 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8169 then : 8170 printf %s "(cached) " >&6 8171 else $as_nop 8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173 /* end confdefs.h. */ 8174 int i; 8175 _ACEOF 8176 if ac_fn_c_try_compile "$LINENO" 8177 then : 8178 xorg_cv_cc_flag_unused_command_line_argument=yes 8179 else $as_nop 8180 xorg_cv_cc_flag_unused_command_line_argument=no 8181 fi 8182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8183 fi 8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8185 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8187 CFLAGS="$xorg_testset_save_CFLAGS" 8188 fi 8189 8190 found="no" 8191 8192 if test $found = "no" ; then 8193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8195 fi 8196 8197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8199 fi 8200 8201 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8202 8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8204 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8205 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8206 if eval test \${$cacheid+y} 8207 then : 8208 printf %s "(cached) " >&6 8209 else $as_nop 8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8211 /* end confdefs.h. */ 8212 int i; 8213 int 8214 main (void) 8215 { 8216 8217 ; 8218 return 0; 8219 } 8220 _ACEOF 8221 if ac_fn_c_try_link "$LINENO" 8222 then : 8223 eval $cacheid=yes 8224 else $as_nop 8225 eval $cacheid=no 8226 fi 8227 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8228 conftest$ac_exeext conftest.$ac_ext 8229 fi 8230 8231 8232 CFLAGS="$xorg_testset_save_CFLAGS" 8233 8234 eval supported=\$$cacheid 8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8236 printf "%s\n" "$supported" >&6; } 8237 if test "$supported" = "yes" ; then 8238 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8239 found="yes" 8240 fi 8241 fi 8242 8243 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8244 else 8245 { 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 8246 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;} 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 xorg_testset_save_CFLAGS="$CFLAGS" 8261 8262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8265 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8266 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8267 then : 8268 printf %s "(cached) " >&6 8269 else $as_nop 8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8271 /* end confdefs.h. */ 8272 int i; 8273 _ACEOF 8274 if ac_fn_c_try_compile "$LINENO" 8275 then : 8276 xorg_cv_cc_flag_unknown_warning_option=yes 8277 else $as_nop 8278 xorg_cv_cc_flag_unknown_warning_option=no 8279 fi 8280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8281 fi 8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8283 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8285 CFLAGS="$xorg_testset_save_CFLAGS" 8286 fi 8287 8288 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8291 fi 8292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8294 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8295 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8296 then : 8297 printf %s "(cached) " >&6 8298 else $as_nop 8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8300 /* end confdefs.h. */ 8301 int i; 8302 _ACEOF 8303 if ac_fn_c_try_compile "$LINENO" 8304 then : 8305 xorg_cv_cc_flag_unused_command_line_argument=yes 8306 else $as_nop 8307 xorg_cv_cc_flag_unused_command_line_argument=no 8308 fi 8309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8310 fi 8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8312 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8314 CFLAGS="$xorg_testset_save_CFLAGS" 8315 fi 8316 8317 found="no" 8318 8319 if test $found = "no" ; then 8320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8322 fi 8323 8324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8326 fi 8327 8328 CFLAGS="$CFLAGS -Wimplicit" 8329 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8331 printf %s "checking if $CC supports -Wimplicit... " >&6; } 8332 cacheid=xorg_cv_cc_flag__Wimplicit 8333 if eval test \${$cacheid+y} 8334 then : 8335 printf %s "(cached) " >&6 8336 else $as_nop 8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8338 /* end confdefs.h. */ 8339 int i; 8340 int 8341 main (void) 8342 { 8343 8344 ; 8345 return 0; 8346 } 8347 _ACEOF 8348 if ac_fn_c_try_link "$LINENO" 8349 then : 8350 eval $cacheid=yes 8351 else $as_nop 8352 eval $cacheid=no 8353 fi 8354 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8355 conftest$ac_exeext conftest.$ac_ext 8356 fi 8357 8358 8359 CFLAGS="$xorg_testset_save_CFLAGS" 8360 8361 eval supported=\$$cacheid 8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8363 printf "%s\n" "$supported" >&6; } 8364 if test "$supported" = "yes" ; then 8365 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8366 found="yes" 8367 fi 8368 fi 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 xorg_testset_save_CFLAGS="$CFLAGS" 8385 8386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8389 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8390 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8391 then : 8392 printf %s "(cached) " >&6 8393 else $as_nop 8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8395 /* end confdefs.h. */ 8396 int i; 8397 _ACEOF 8398 if ac_fn_c_try_compile "$LINENO" 8399 then : 8400 xorg_cv_cc_flag_unknown_warning_option=yes 8401 else $as_nop 8402 xorg_cv_cc_flag_unknown_warning_option=no 8403 fi 8404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8405 fi 8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8407 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8409 CFLAGS="$xorg_testset_save_CFLAGS" 8410 fi 8411 8412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8415 fi 8416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8418 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8419 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8420 then : 8421 printf %s "(cached) " >&6 8422 else $as_nop 8423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8424 /* end confdefs.h. */ 8425 int i; 8426 _ACEOF 8427 if ac_fn_c_try_compile "$LINENO" 8428 then : 8429 xorg_cv_cc_flag_unused_command_line_argument=yes 8430 else $as_nop 8431 xorg_cv_cc_flag_unused_command_line_argument=no 8432 fi 8433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8434 fi 8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8436 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8438 CFLAGS="$xorg_testset_save_CFLAGS" 8439 fi 8440 8441 found="no" 8442 8443 if test $found = "no" ; then 8444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8446 fi 8447 8448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8450 fi 8451 8452 CFLAGS="$CFLAGS -Wnonnull" 8453 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8455 printf %s "checking if $CC supports -Wnonnull... " >&6; } 8456 cacheid=xorg_cv_cc_flag__Wnonnull 8457 if eval test \${$cacheid+y} 8458 then : 8459 printf %s "(cached) " >&6 8460 else $as_nop 8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8462 /* end confdefs.h. */ 8463 int i; 8464 int 8465 main (void) 8466 { 8467 8468 ; 8469 return 0; 8470 } 8471 _ACEOF 8472 if ac_fn_c_try_link "$LINENO" 8473 then : 8474 eval $cacheid=yes 8475 else $as_nop 8476 eval $cacheid=no 8477 fi 8478 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8479 conftest$ac_exeext conftest.$ac_ext 8480 fi 8481 8482 8483 CFLAGS="$xorg_testset_save_CFLAGS" 8484 8485 eval supported=\$$cacheid 8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8487 printf "%s\n" "$supported" >&6; } 8488 if test "$supported" = "yes" ; then 8489 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8490 found="yes" 8491 fi 8492 fi 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 xorg_testset_save_CFLAGS="$CFLAGS" 8509 8510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8513 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8514 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8515 then : 8516 printf %s "(cached) " >&6 8517 else $as_nop 8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8519 /* end confdefs.h. */ 8520 int i; 8521 _ACEOF 8522 if ac_fn_c_try_compile "$LINENO" 8523 then : 8524 xorg_cv_cc_flag_unknown_warning_option=yes 8525 else $as_nop 8526 xorg_cv_cc_flag_unknown_warning_option=no 8527 fi 8528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8529 fi 8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8531 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8533 CFLAGS="$xorg_testset_save_CFLAGS" 8534 fi 8535 8536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8539 fi 8540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8542 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8543 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8544 then : 8545 printf %s "(cached) " >&6 8546 else $as_nop 8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8548 /* end confdefs.h. */ 8549 int i; 8550 _ACEOF 8551 if ac_fn_c_try_compile "$LINENO" 8552 then : 8553 xorg_cv_cc_flag_unused_command_line_argument=yes 8554 else $as_nop 8555 xorg_cv_cc_flag_unused_command_line_argument=no 8556 fi 8557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8558 fi 8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8560 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8562 CFLAGS="$xorg_testset_save_CFLAGS" 8563 fi 8564 8565 found="no" 8566 8567 if test $found = "no" ; then 8568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8570 fi 8571 8572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8574 fi 8575 8576 CFLAGS="$CFLAGS -Winit-self" 8577 8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8579 printf %s "checking if $CC supports -Winit-self... " >&6; } 8580 cacheid=xorg_cv_cc_flag__Winit_self 8581 if eval test \${$cacheid+y} 8582 then : 8583 printf %s "(cached) " >&6 8584 else $as_nop 8585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8586 /* end confdefs.h. */ 8587 int i; 8588 int 8589 main (void) 8590 { 8591 8592 ; 8593 return 0; 8594 } 8595 _ACEOF 8596 if ac_fn_c_try_link "$LINENO" 8597 then : 8598 eval $cacheid=yes 8599 else $as_nop 8600 eval $cacheid=no 8601 fi 8602 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8603 conftest$ac_exeext conftest.$ac_ext 8604 fi 8605 8606 8607 CFLAGS="$xorg_testset_save_CFLAGS" 8608 8609 eval supported=\$$cacheid 8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8611 printf "%s\n" "$supported" >&6; } 8612 if test "$supported" = "yes" ; then 8613 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8614 found="yes" 8615 fi 8616 fi 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 xorg_testset_save_CFLAGS="$CFLAGS" 8633 8634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8637 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8638 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8639 then : 8640 printf %s "(cached) " >&6 8641 else $as_nop 8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643 /* end confdefs.h. */ 8644 int i; 8645 _ACEOF 8646 if ac_fn_c_try_compile "$LINENO" 8647 then : 8648 xorg_cv_cc_flag_unknown_warning_option=yes 8649 else $as_nop 8650 xorg_cv_cc_flag_unknown_warning_option=no 8651 fi 8652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8653 fi 8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8655 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8657 CFLAGS="$xorg_testset_save_CFLAGS" 8658 fi 8659 8660 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8663 fi 8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8666 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8667 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8668 then : 8669 printf %s "(cached) " >&6 8670 else $as_nop 8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8672 /* end confdefs.h. */ 8673 int i; 8674 _ACEOF 8675 if ac_fn_c_try_compile "$LINENO" 8676 then : 8677 xorg_cv_cc_flag_unused_command_line_argument=yes 8678 else $as_nop 8679 xorg_cv_cc_flag_unused_command_line_argument=no 8680 fi 8681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8682 fi 8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8684 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8686 CFLAGS="$xorg_testset_save_CFLAGS" 8687 fi 8688 8689 found="no" 8690 8691 if test $found = "no" ; then 8692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8694 fi 8695 8696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8698 fi 8699 8700 CFLAGS="$CFLAGS -Wmain" 8701 8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8703 printf %s "checking if $CC supports -Wmain... " >&6; } 8704 cacheid=xorg_cv_cc_flag__Wmain 8705 if eval test \${$cacheid+y} 8706 then : 8707 printf %s "(cached) " >&6 8708 else $as_nop 8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8710 /* end confdefs.h. */ 8711 int i; 8712 int 8713 main (void) 8714 { 8715 8716 ; 8717 return 0; 8718 } 8719 _ACEOF 8720 if ac_fn_c_try_link "$LINENO" 8721 then : 8722 eval $cacheid=yes 8723 else $as_nop 8724 eval $cacheid=no 8725 fi 8726 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8727 conftest$ac_exeext conftest.$ac_ext 8728 fi 8729 8730 8731 CFLAGS="$xorg_testset_save_CFLAGS" 8732 8733 eval supported=\$$cacheid 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8735 printf "%s\n" "$supported" >&6; } 8736 if test "$supported" = "yes" ; then 8737 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8738 found="yes" 8739 fi 8740 fi 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 xorg_testset_save_CFLAGS="$CFLAGS" 8757 8758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8761 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8762 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8763 then : 8764 printf %s "(cached) " >&6 8765 else $as_nop 8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8767 /* end confdefs.h. */ 8768 int i; 8769 _ACEOF 8770 if ac_fn_c_try_compile "$LINENO" 8771 then : 8772 xorg_cv_cc_flag_unknown_warning_option=yes 8773 else $as_nop 8774 xorg_cv_cc_flag_unknown_warning_option=no 8775 fi 8776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8777 fi 8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8779 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8781 CFLAGS="$xorg_testset_save_CFLAGS" 8782 fi 8783 8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8787 fi 8788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8790 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8791 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8792 then : 8793 printf %s "(cached) " >&6 8794 else $as_nop 8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8796 /* end confdefs.h. */ 8797 int i; 8798 _ACEOF 8799 if ac_fn_c_try_compile "$LINENO" 8800 then : 8801 xorg_cv_cc_flag_unused_command_line_argument=yes 8802 else $as_nop 8803 xorg_cv_cc_flag_unused_command_line_argument=no 8804 fi 8805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8806 fi 8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8808 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8810 CFLAGS="$xorg_testset_save_CFLAGS" 8811 fi 8812 8813 found="no" 8814 8815 if test $found = "no" ; then 8816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8818 fi 8819 8820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8822 fi 8823 8824 CFLAGS="$CFLAGS -Wmissing-braces" 8825 8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8827 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 8828 cacheid=xorg_cv_cc_flag__Wmissing_braces 8829 if eval test \${$cacheid+y} 8830 then : 8831 printf %s "(cached) " >&6 8832 else $as_nop 8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8834 /* end confdefs.h. */ 8835 int i; 8836 int 8837 main (void) 8838 { 8839 8840 ; 8841 return 0; 8842 } 8843 _ACEOF 8844 if ac_fn_c_try_link "$LINENO" 8845 then : 8846 eval $cacheid=yes 8847 else $as_nop 8848 eval $cacheid=no 8849 fi 8850 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8851 conftest$ac_exeext conftest.$ac_ext 8852 fi 8853 8854 8855 CFLAGS="$xorg_testset_save_CFLAGS" 8856 8857 eval supported=\$$cacheid 8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8859 printf "%s\n" "$supported" >&6; } 8860 if test "$supported" = "yes" ; then 8861 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8862 found="yes" 8863 fi 8864 fi 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 xorg_testset_save_CFLAGS="$CFLAGS" 8881 8882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8885 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8886 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8887 then : 8888 printf %s "(cached) " >&6 8889 else $as_nop 8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8891 /* end confdefs.h. */ 8892 int i; 8893 _ACEOF 8894 if ac_fn_c_try_compile "$LINENO" 8895 then : 8896 xorg_cv_cc_flag_unknown_warning_option=yes 8897 else $as_nop 8898 xorg_cv_cc_flag_unknown_warning_option=no 8899 fi 8900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8901 fi 8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906 fi 8907 8908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8911 fi 8912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8916 then : 8917 printf %s "(cached) " >&6 8918 else $as_nop 8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920 /* end confdefs.h. */ 8921 int i; 8922 _ACEOF 8923 if ac_fn_c_try_compile "$LINENO" 8924 then : 8925 xorg_cv_cc_flag_unused_command_line_argument=yes 8926 else $as_nop 8927 xorg_cv_cc_flag_unused_command_line_argument=no 8928 fi 8929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8930 fi 8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8932 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935 fi 8936 8937 found="no" 8938 8939 if test $found = "no" ; then 8940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8942 fi 8943 8944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8946 fi 8947 8948 CFLAGS="$CFLAGS -Wsequence-point" 8949 8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8951 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 8952 cacheid=xorg_cv_cc_flag__Wsequence_point 8953 if eval test \${$cacheid+y} 8954 then : 8955 printf %s "(cached) " >&6 8956 else $as_nop 8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8958 /* end confdefs.h. */ 8959 int i; 8960 int 8961 main (void) 8962 { 8963 8964 ; 8965 return 0; 8966 } 8967 _ACEOF 8968 if ac_fn_c_try_link "$LINENO" 8969 then : 8970 eval $cacheid=yes 8971 else $as_nop 8972 eval $cacheid=no 8973 fi 8974 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8975 conftest$ac_exeext conftest.$ac_ext 8976 fi 8977 8978 8979 CFLAGS="$xorg_testset_save_CFLAGS" 8980 8981 eval supported=\$$cacheid 8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8983 printf "%s\n" "$supported" >&6; } 8984 if test "$supported" = "yes" ; then 8985 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8986 found="yes" 8987 fi 8988 fi 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 xorg_testset_save_CFLAGS="$CFLAGS" 9005 9006 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9009 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9010 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9011 then : 9012 printf %s "(cached) " >&6 9013 else $as_nop 9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9015 /* end confdefs.h. */ 9016 int i; 9017 _ACEOF 9018 if ac_fn_c_try_compile "$LINENO" 9019 then : 9020 xorg_cv_cc_flag_unknown_warning_option=yes 9021 else $as_nop 9022 xorg_cv_cc_flag_unknown_warning_option=no 9023 fi 9024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9025 fi 9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9027 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9029 CFLAGS="$xorg_testset_save_CFLAGS" 9030 fi 9031 9032 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9035 fi 9036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9038 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9039 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9040 then : 9041 printf %s "(cached) " >&6 9042 else $as_nop 9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9044 /* end confdefs.h. */ 9045 int i; 9046 _ACEOF 9047 if ac_fn_c_try_compile "$LINENO" 9048 then : 9049 xorg_cv_cc_flag_unused_command_line_argument=yes 9050 else $as_nop 9051 xorg_cv_cc_flag_unused_command_line_argument=no 9052 fi 9053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9054 fi 9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9056 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9058 CFLAGS="$xorg_testset_save_CFLAGS" 9059 fi 9060 9061 found="no" 9062 9063 if test $found = "no" ; then 9064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9066 fi 9067 9068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9070 fi 9071 9072 CFLAGS="$CFLAGS -Wreturn-type" 9073 9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9075 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9076 cacheid=xorg_cv_cc_flag__Wreturn_type 9077 if eval test \${$cacheid+y} 9078 then : 9079 printf %s "(cached) " >&6 9080 else $as_nop 9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9082 /* end confdefs.h. */ 9083 int i; 9084 int 9085 main (void) 9086 { 9087 9088 ; 9089 return 0; 9090 } 9091 _ACEOF 9092 if ac_fn_c_try_link "$LINENO" 9093 then : 9094 eval $cacheid=yes 9095 else $as_nop 9096 eval $cacheid=no 9097 fi 9098 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9099 conftest$ac_exeext conftest.$ac_ext 9100 fi 9101 9102 9103 CFLAGS="$xorg_testset_save_CFLAGS" 9104 9105 eval supported=\$$cacheid 9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9107 printf "%s\n" "$supported" >&6; } 9108 if test "$supported" = "yes" ; then 9109 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9110 found="yes" 9111 fi 9112 fi 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 xorg_testset_save_CFLAGS="$CFLAGS" 9129 9130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9133 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9134 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9135 then : 9136 printf %s "(cached) " >&6 9137 else $as_nop 9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9139 /* end confdefs.h. */ 9140 int i; 9141 _ACEOF 9142 if ac_fn_c_try_compile "$LINENO" 9143 then : 9144 xorg_cv_cc_flag_unknown_warning_option=yes 9145 else $as_nop 9146 xorg_cv_cc_flag_unknown_warning_option=no 9147 fi 9148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9149 fi 9150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9151 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9153 CFLAGS="$xorg_testset_save_CFLAGS" 9154 fi 9155 9156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9159 fi 9160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9162 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9163 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9164 then : 9165 printf %s "(cached) " >&6 9166 else $as_nop 9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168 /* end confdefs.h. */ 9169 int i; 9170 _ACEOF 9171 if ac_fn_c_try_compile "$LINENO" 9172 then : 9173 xorg_cv_cc_flag_unused_command_line_argument=yes 9174 else $as_nop 9175 xorg_cv_cc_flag_unused_command_line_argument=no 9176 fi 9177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9178 fi 9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9180 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9182 CFLAGS="$xorg_testset_save_CFLAGS" 9183 fi 9184 9185 found="no" 9186 9187 if test $found = "no" ; then 9188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9190 fi 9191 9192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9194 fi 9195 9196 CFLAGS="$CFLAGS -Wtrigraphs" 9197 9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9199 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9200 cacheid=xorg_cv_cc_flag__Wtrigraphs 9201 if eval test \${$cacheid+y} 9202 then : 9203 printf %s "(cached) " >&6 9204 else $as_nop 9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9206 /* end confdefs.h. */ 9207 int i; 9208 int 9209 main (void) 9210 { 9211 9212 ; 9213 return 0; 9214 } 9215 _ACEOF 9216 if ac_fn_c_try_link "$LINENO" 9217 then : 9218 eval $cacheid=yes 9219 else $as_nop 9220 eval $cacheid=no 9221 fi 9222 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9223 conftest$ac_exeext conftest.$ac_ext 9224 fi 9225 9226 9227 CFLAGS="$xorg_testset_save_CFLAGS" 9228 9229 eval supported=\$$cacheid 9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9231 printf "%s\n" "$supported" >&6; } 9232 if test "$supported" = "yes" ; then 9233 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9234 found="yes" 9235 fi 9236 fi 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 xorg_testset_save_CFLAGS="$CFLAGS" 9253 9254 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9257 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9258 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9259 then : 9260 printf %s "(cached) " >&6 9261 else $as_nop 9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9263 /* end confdefs.h. */ 9264 int i; 9265 _ACEOF 9266 if ac_fn_c_try_compile "$LINENO" 9267 then : 9268 xorg_cv_cc_flag_unknown_warning_option=yes 9269 else $as_nop 9270 xorg_cv_cc_flag_unknown_warning_option=no 9271 fi 9272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9273 fi 9274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9275 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9277 CFLAGS="$xorg_testset_save_CFLAGS" 9278 fi 9279 9280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9283 fi 9284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9286 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9287 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9288 then : 9289 printf %s "(cached) " >&6 9290 else $as_nop 9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9292 /* end confdefs.h. */ 9293 int i; 9294 _ACEOF 9295 if ac_fn_c_try_compile "$LINENO" 9296 then : 9297 xorg_cv_cc_flag_unused_command_line_argument=yes 9298 else $as_nop 9299 xorg_cv_cc_flag_unused_command_line_argument=no 9300 fi 9301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9302 fi 9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9304 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9306 CFLAGS="$xorg_testset_save_CFLAGS" 9307 fi 9308 9309 found="no" 9310 9311 if test $found = "no" ; then 9312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9314 fi 9315 9316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9318 fi 9319 9320 CFLAGS="$CFLAGS -Warray-bounds" 9321 9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9323 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9324 cacheid=xorg_cv_cc_flag__Warray_bounds 9325 if eval test \${$cacheid+y} 9326 then : 9327 printf %s "(cached) " >&6 9328 else $as_nop 9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9330 /* end confdefs.h. */ 9331 int i; 9332 int 9333 main (void) 9334 { 9335 9336 ; 9337 return 0; 9338 } 9339 _ACEOF 9340 if ac_fn_c_try_link "$LINENO" 9341 then : 9342 eval $cacheid=yes 9343 else $as_nop 9344 eval $cacheid=no 9345 fi 9346 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9347 conftest$ac_exeext conftest.$ac_ext 9348 fi 9349 9350 9351 CFLAGS="$xorg_testset_save_CFLAGS" 9352 9353 eval supported=\$$cacheid 9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9355 printf "%s\n" "$supported" >&6; } 9356 if test "$supported" = "yes" ; then 9357 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9358 found="yes" 9359 fi 9360 fi 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 xorg_testset_save_CFLAGS="$CFLAGS" 9377 9378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9381 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9382 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9383 then : 9384 printf %s "(cached) " >&6 9385 else $as_nop 9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9387 /* end confdefs.h. */ 9388 int i; 9389 _ACEOF 9390 if ac_fn_c_try_compile "$LINENO" 9391 then : 9392 xorg_cv_cc_flag_unknown_warning_option=yes 9393 else $as_nop 9394 xorg_cv_cc_flag_unknown_warning_option=no 9395 fi 9396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9397 fi 9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9399 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9401 CFLAGS="$xorg_testset_save_CFLAGS" 9402 fi 9403 9404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9407 fi 9408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9410 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9411 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9412 then : 9413 printf %s "(cached) " >&6 9414 else $as_nop 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9416 /* end confdefs.h. */ 9417 int i; 9418 _ACEOF 9419 if ac_fn_c_try_compile "$LINENO" 9420 then : 9421 xorg_cv_cc_flag_unused_command_line_argument=yes 9422 else $as_nop 9423 xorg_cv_cc_flag_unused_command_line_argument=no 9424 fi 9425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9426 fi 9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9428 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9430 CFLAGS="$xorg_testset_save_CFLAGS" 9431 fi 9432 9433 found="no" 9434 9435 if test $found = "no" ; then 9436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9438 fi 9439 9440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9442 fi 9443 9444 CFLAGS="$CFLAGS -Wwrite-strings" 9445 9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9447 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 9448 cacheid=xorg_cv_cc_flag__Wwrite_strings 9449 if eval test \${$cacheid+y} 9450 then : 9451 printf %s "(cached) " >&6 9452 else $as_nop 9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9454 /* end confdefs.h. */ 9455 int i; 9456 int 9457 main (void) 9458 { 9459 9460 ; 9461 return 0; 9462 } 9463 _ACEOF 9464 if ac_fn_c_try_link "$LINENO" 9465 then : 9466 eval $cacheid=yes 9467 else $as_nop 9468 eval $cacheid=no 9469 fi 9470 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9471 conftest$ac_exeext conftest.$ac_ext 9472 fi 9473 9474 9475 CFLAGS="$xorg_testset_save_CFLAGS" 9476 9477 eval supported=\$$cacheid 9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9479 printf "%s\n" "$supported" >&6; } 9480 if test "$supported" = "yes" ; then 9481 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9482 found="yes" 9483 fi 9484 fi 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 xorg_testset_save_CFLAGS="$CFLAGS" 9501 9502 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9505 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9506 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9507 then : 9508 printf %s "(cached) " >&6 9509 else $as_nop 9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9511 /* end confdefs.h. */ 9512 int i; 9513 _ACEOF 9514 if ac_fn_c_try_compile "$LINENO" 9515 then : 9516 xorg_cv_cc_flag_unknown_warning_option=yes 9517 else $as_nop 9518 xorg_cv_cc_flag_unknown_warning_option=no 9519 fi 9520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9521 fi 9522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9523 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9525 CFLAGS="$xorg_testset_save_CFLAGS" 9526 fi 9527 9528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9531 fi 9532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9534 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9535 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9536 then : 9537 printf %s "(cached) " >&6 9538 else $as_nop 9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9540 /* end confdefs.h. */ 9541 int i; 9542 _ACEOF 9543 if ac_fn_c_try_compile "$LINENO" 9544 then : 9545 xorg_cv_cc_flag_unused_command_line_argument=yes 9546 else $as_nop 9547 xorg_cv_cc_flag_unused_command_line_argument=no 9548 fi 9549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9550 fi 9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9552 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555 fi 9556 9557 found="no" 9558 9559 if test $found = "no" ; then 9560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9562 fi 9563 9564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9566 fi 9567 9568 CFLAGS="$CFLAGS -Waddress" 9569 9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9571 printf %s "checking if $CC supports -Waddress... " >&6; } 9572 cacheid=xorg_cv_cc_flag__Waddress 9573 if eval test \${$cacheid+y} 9574 then : 9575 printf %s "(cached) " >&6 9576 else $as_nop 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578 /* end confdefs.h. */ 9579 int i; 9580 int 9581 main (void) 9582 { 9583 9584 ; 9585 return 0; 9586 } 9587 _ACEOF 9588 if ac_fn_c_try_link "$LINENO" 9589 then : 9590 eval $cacheid=yes 9591 else $as_nop 9592 eval $cacheid=no 9593 fi 9594 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9595 conftest$ac_exeext conftest.$ac_ext 9596 fi 9597 9598 9599 CFLAGS="$xorg_testset_save_CFLAGS" 9600 9601 eval supported=\$$cacheid 9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9603 printf "%s\n" "$supported" >&6; } 9604 if test "$supported" = "yes" ; then 9605 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9606 found="yes" 9607 fi 9608 fi 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 xorg_testset_save_CFLAGS="$CFLAGS" 9625 9626 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9629 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9630 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9631 then : 9632 printf %s "(cached) " >&6 9633 else $as_nop 9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9635 /* end confdefs.h. */ 9636 int i; 9637 _ACEOF 9638 if ac_fn_c_try_compile "$LINENO" 9639 then : 9640 xorg_cv_cc_flag_unknown_warning_option=yes 9641 else $as_nop 9642 xorg_cv_cc_flag_unknown_warning_option=no 9643 fi 9644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9645 fi 9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9647 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9649 CFLAGS="$xorg_testset_save_CFLAGS" 9650 fi 9651 9652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9655 fi 9656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9658 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9659 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9660 then : 9661 printf %s "(cached) " >&6 9662 else $as_nop 9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9664 /* end confdefs.h. */ 9665 int i; 9666 _ACEOF 9667 if ac_fn_c_try_compile "$LINENO" 9668 then : 9669 xorg_cv_cc_flag_unused_command_line_argument=yes 9670 else $as_nop 9671 xorg_cv_cc_flag_unused_command_line_argument=no 9672 fi 9673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9674 fi 9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9676 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9678 CFLAGS="$xorg_testset_save_CFLAGS" 9679 fi 9680 9681 found="no" 9682 9683 if test $found = "no" ; then 9684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9686 fi 9687 9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9690 fi 9691 9692 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9693 9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9695 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9696 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9697 if eval test \${$cacheid+y} 9698 then : 9699 printf %s "(cached) " >&6 9700 else $as_nop 9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9702 /* end confdefs.h. */ 9703 int i; 9704 int 9705 main (void) 9706 { 9707 9708 ; 9709 return 0; 9710 } 9711 _ACEOF 9712 if ac_fn_c_try_link "$LINENO" 9713 then : 9714 eval $cacheid=yes 9715 else $as_nop 9716 eval $cacheid=no 9717 fi 9718 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9719 conftest$ac_exeext conftest.$ac_ext 9720 fi 9721 9722 9723 CFLAGS="$xorg_testset_save_CFLAGS" 9724 9725 eval supported=\$$cacheid 9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9727 printf "%s\n" "$supported" >&6; } 9728 if test "$supported" = "yes" ; then 9729 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9730 found="yes" 9731 fi 9732 fi 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 xorg_testset_save_CFLAGS="$CFLAGS" 9749 9750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9754 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9755 then : 9756 printf %s "(cached) " >&6 9757 else $as_nop 9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9759 /* end confdefs.h. */ 9760 int i; 9761 _ACEOF 9762 if ac_fn_c_try_compile "$LINENO" 9763 then : 9764 xorg_cv_cc_flag_unknown_warning_option=yes 9765 else $as_nop 9766 xorg_cv_cc_flag_unknown_warning_option=no 9767 fi 9768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9769 fi 9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9771 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9773 CFLAGS="$xorg_testset_save_CFLAGS" 9774 fi 9775 9776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9779 fi 9780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9782 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9783 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9784 then : 9785 printf %s "(cached) " >&6 9786 else $as_nop 9787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9788 /* end confdefs.h. */ 9789 int i; 9790 _ACEOF 9791 if ac_fn_c_try_compile "$LINENO" 9792 then : 9793 xorg_cv_cc_flag_unused_command_line_argument=yes 9794 else $as_nop 9795 xorg_cv_cc_flag_unused_command_line_argument=no 9796 fi 9797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9798 fi 9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9800 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803 fi 9804 9805 found="no" 9806 9807 if test $found = "no" ; then 9808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9810 fi 9811 9812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9814 fi 9815 9816 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9817 9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9819 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9820 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9821 if eval test \${$cacheid+y} 9822 then : 9823 printf %s "(cached) " >&6 9824 else $as_nop 9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9826 /* end confdefs.h. */ 9827 int i; 9828 int 9829 main (void) 9830 { 9831 9832 ; 9833 return 0; 9834 } 9835 _ACEOF 9836 if ac_fn_c_try_link "$LINENO" 9837 then : 9838 eval $cacheid=yes 9839 else $as_nop 9840 eval $cacheid=no 9841 fi 9842 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9843 conftest$ac_exeext conftest.$ac_ext 9844 fi 9845 9846 9847 CFLAGS="$xorg_testset_save_CFLAGS" 9848 9849 eval supported=\$$cacheid 9850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9851 printf "%s\n" "$supported" >&6; } 9852 if test "$supported" = "yes" ; then 9853 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9854 found="yes" 9855 fi 9856 fi 9857 9858 9859 fi 9860 9861 9862 9863 9864 9865 9866 9867 CWARNFLAGS="$BASE_CFLAGS" 9868 if test "x$GCC" = xyes ; then 9869 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 9870 fi 9871 9872 9873 9874 9875 9876 9877 9878 9879 # Check whether --enable-strict-compilation was given. 9880 if test ${enable_strict_compilation+y} 9881 then : 9882 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9883 else $as_nop 9884 STRICT_COMPILE=no 9885 fi 9886 9887 9888 9889 9890 9891 9892 STRICT_CFLAGS="" 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 xorg_testset_save_CFLAGS="$CFLAGS" 9907 9908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9911 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9912 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9913 then : 9914 printf %s "(cached) " >&6 9915 else $as_nop 9916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9917 /* end confdefs.h. */ 9918 int i; 9919 _ACEOF 9920 if ac_fn_c_try_compile "$LINENO" 9921 then : 9922 xorg_cv_cc_flag_unknown_warning_option=yes 9923 else $as_nop 9924 xorg_cv_cc_flag_unknown_warning_option=no 9925 fi 9926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9927 fi 9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9929 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9931 CFLAGS="$xorg_testset_save_CFLAGS" 9932 fi 9933 9934 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9937 fi 9938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9940 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9941 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9942 then : 9943 printf %s "(cached) " >&6 9944 else $as_nop 9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9946 /* end confdefs.h. */ 9947 int i; 9948 _ACEOF 9949 if ac_fn_c_try_compile "$LINENO" 9950 then : 9951 xorg_cv_cc_flag_unused_command_line_argument=yes 9952 else $as_nop 9953 xorg_cv_cc_flag_unused_command_line_argument=no 9954 fi 9955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9956 fi 9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9958 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9960 CFLAGS="$xorg_testset_save_CFLAGS" 9961 fi 9962 9963 found="no" 9964 9965 if test $found = "no" ; then 9966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9968 fi 9969 9970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9972 fi 9973 9974 CFLAGS="$CFLAGS -pedantic" 9975 9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9977 printf %s "checking if $CC supports -pedantic... " >&6; } 9978 cacheid=xorg_cv_cc_flag__pedantic 9979 if eval test \${$cacheid+y} 9980 then : 9981 printf %s "(cached) " >&6 9982 else $as_nop 9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984 /* end confdefs.h. */ 9985 int i; 9986 int 9987 main (void) 9988 { 9989 9990 ; 9991 return 0; 9992 } 9993 _ACEOF 9994 if ac_fn_c_try_link "$LINENO" 9995 then : 9996 eval $cacheid=yes 9997 else $as_nop 9998 eval $cacheid=no 9999 fi 10000 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10001 conftest$ac_exeext conftest.$ac_ext 10002 fi 10003 10004 10005 CFLAGS="$xorg_testset_save_CFLAGS" 10006 10007 eval supported=\$$cacheid 10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10009 printf "%s\n" "$supported" >&6; } 10010 if test "$supported" = "yes" ; then 10011 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10012 found="yes" 10013 fi 10014 fi 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 xorg_testset_save_CFLAGS="$CFLAGS" 10031 10032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10035 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10036 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10037 then : 10038 printf %s "(cached) " >&6 10039 else $as_nop 10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10041 /* end confdefs.h. */ 10042 int i; 10043 _ACEOF 10044 if ac_fn_c_try_compile "$LINENO" 10045 then : 10046 xorg_cv_cc_flag_unknown_warning_option=yes 10047 else $as_nop 10048 xorg_cv_cc_flag_unknown_warning_option=no 10049 fi 10050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10051 fi 10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10053 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10055 CFLAGS="$xorg_testset_save_CFLAGS" 10056 fi 10057 10058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10061 fi 10062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10064 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10065 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10066 then : 10067 printf %s "(cached) " >&6 10068 else $as_nop 10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10070 /* end confdefs.h. */ 10071 int i; 10072 _ACEOF 10073 if ac_fn_c_try_compile "$LINENO" 10074 then : 10075 xorg_cv_cc_flag_unused_command_line_argument=yes 10076 else $as_nop 10077 xorg_cv_cc_flag_unused_command_line_argument=no 10078 fi 10079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10080 fi 10081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10082 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10084 CFLAGS="$xorg_testset_save_CFLAGS" 10085 fi 10086 10087 found="no" 10088 10089 if test $found = "no" ; then 10090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10092 fi 10093 10094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10096 fi 10097 10098 CFLAGS="$CFLAGS -Werror" 10099 10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10101 printf %s "checking if $CC supports -Werror... " >&6; } 10102 cacheid=xorg_cv_cc_flag__Werror 10103 if eval test \${$cacheid+y} 10104 then : 10105 printf %s "(cached) " >&6 10106 else $as_nop 10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10108 /* end confdefs.h. */ 10109 int i; 10110 int 10111 main (void) 10112 { 10113 10114 ; 10115 return 0; 10116 } 10117 _ACEOF 10118 if ac_fn_c_try_link "$LINENO" 10119 then : 10120 eval $cacheid=yes 10121 else $as_nop 10122 eval $cacheid=no 10123 fi 10124 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10125 conftest$ac_exeext conftest.$ac_ext 10126 fi 10127 10128 10129 CFLAGS="$xorg_testset_save_CFLAGS" 10130 10131 eval supported=\$$cacheid 10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10133 printf "%s\n" "$supported" >&6; } 10134 if test "$supported" = "yes" ; then 10135 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10136 found="yes" 10137 fi 10138 fi 10139 10140 if test $found = "no" ; then 10141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10143 fi 10144 10145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10147 fi 10148 10149 CFLAGS="$CFLAGS -errwarn" 10150 10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10152 printf %s "checking if $CC supports -errwarn... " >&6; } 10153 cacheid=xorg_cv_cc_flag__errwarn 10154 if eval test \${$cacheid+y} 10155 then : 10156 printf %s "(cached) " >&6 10157 else $as_nop 10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10159 /* end confdefs.h. */ 10160 int i; 10161 int 10162 main (void) 10163 { 10164 10165 ; 10166 return 0; 10167 } 10168 _ACEOF 10169 if ac_fn_c_try_link "$LINENO" 10170 then : 10171 eval $cacheid=yes 10172 else $as_nop 10173 eval $cacheid=no 10174 fi 10175 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10176 conftest$ac_exeext conftest.$ac_ext 10177 fi 10178 10179 10180 CFLAGS="$xorg_testset_save_CFLAGS" 10181 10182 eval supported=\$$cacheid 10183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10184 printf "%s\n" "$supported" >&6; } 10185 if test "$supported" = "yes" ; then 10186 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10187 found="yes" 10188 fi 10189 fi 10190 10191 10192 10193 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10194 # activate it with -Werror, so we add it here explicitly. 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 xorg_testset_save_CFLAGS="$CFLAGS" 10209 10210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10213 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10214 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10215 then : 10216 printf %s "(cached) " >&6 10217 else $as_nop 10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10219 /* end confdefs.h. */ 10220 int i; 10221 _ACEOF 10222 if ac_fn_c_try_compile "$LINENO" 10223 then : 10224 xorg_cv_cc_flag_unknown_warning_option=yes 10225 else $as_nop 10226 xorg_cv_cc_flag_unknown_warning_option=no 10227 fi 10228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10229 fi 10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10231 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10233 CFLAGS="$xorg_testset_save_CFLAGS" 10234 fi 10235 10236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10239 fi 10240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10242 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10243 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10244 then : 10245 printf %s "(cached) " >&6 10246 else $as_nop 10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10248 /* end confdefs.h. */ 10249 int i; 10250 _ACEOF 10251 if ac_fn_c_try_compile "$LINENO" 10252 then : 10253 xorg_cv_cc_flag_unused_command_line_argument=yes 10254 else $as_nop 10255 xorg_cv_cc_flag_unused_command_line_argument=no 10256 fi 10257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10258 fi 10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10260 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10262 CFLAGS="$xorg_testset_save_CFLAGS" 10263 fi 10264 10265 found="no" 10266 10267 if test $found = "no" ; then 10268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10270 fi 10271 10272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10274 fi 10275 10276 CFLAGS="$CFLAGS -Werror=attributes" 10277 10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10279 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10280 cacheid=xorg_cv_cc_flag__Werror_attributes 10281 if eval test \${$cacheid+y} 10282 then : 10283 printf %s "(cached) " >&6 10284 else $as_nop 10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286 /* end confdefs.h. */ 10287 int i; 10288 int 10289 main (void) 10290 { 10291 10292 ; 10293 return 0; 10294 } 10295 _ACEOF 10296 if ac_fn_c_try_link "$LINENO" 10297 then : 10298 eval $cacheid=yes 10299 else $as_nop 10300 eval $cacheid=no 10301 fi 10302 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10303 conftest$ac_exeext conftest.$ac_ext 10304 fi 10305 10306 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308 10309 eval supported=\$$cacheid 10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10311 printf "%s\n" "$supported" >&6; } 10312 if test "$supported" = "yes" ; then 10313 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10314 found="yes" 10315 fi 10316 fi 10317 10318 10319 10320 if test "x$STRICT_COMPILE" = "xyes"; then 10321 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10322 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10323 fi 10324 10325 10326 10327 10328 10329 10330 10331 10332 cat >>confdefs.h <<_ACEOF 10333 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10334 _ACEOF 10335 10336 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10337 if test "x$PVM" = "x"; then 10338 PVM="0" 10339 fi 10340 10341 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10342 10343 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10344 if test "x$PVP" = "x"; then 10345 PVP="0" 10346 fi 10347 10348 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10349 10350 10351 10352 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10353 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10354 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10355 touch \$(top_srcdir)/ChangeLog; \ 10356 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10357 10358 10359 10360 10361 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10362 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10363 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10364 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10365 touch \$(top_srcdir)/INSTALL; \ 10366 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10367 10368 10369 10370 10371 10372 10373 case $host_os in 10374 solaris*) 10375 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10376 # check for a man page file found in later versions that use 10377 # traditional section numbers instead 10378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10379 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10380 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10381 then : 10382 printf %s "(cached) " >&6 10383 else $as_nop 10384 test "$cross_compiling" = yes && 10385 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10386 if test -r "/usr/share/man/man7/attributes.7"; then 10387 ac_cv_file__usr_share_man_man7_attributes_7=yes 10388 else 10389 ac_cv_file__usr_share_man_man7_attributes_7=no 10390 fi 10391 fi 10392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10393 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10394 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10395 then : 10396 SYSV_MAN_SECTIONS=false 10397 else $as_nop 10398 SYSV_MAN_SECTIONS=true 10399 fi 10400 10401 ;; 10402 *) SYSV_MAN_SECTIONS=false ;; 10403 esac 10404 10405 if test x$APP_MAN_SUFFIX = x ; then 10406 APP_MAN_SUFFIX=1 10407 fi 10408 if test x$APP_MAN_DIR = x ; then 10409 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10410 fi 10411 10412 if test x$LIB_MAN_SUFFIX = x ; then 10413 LIB_MAN_SUFFIX=3 10414 fi 10415 if test x$LIB_MAN_DIR = x ; then 10416 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10417 fi 10418 10419 if test x$FILE_MAN_SUFFIX = x ; then 10420 case $SYSV_MAN_SECTIONS in 10421 true) FILE_MAN_SUFFIX=4 ;; 10422 *) FILE_MAN_SUFFIX=5 ;; 10423 esac 10424 fi 10425 if test x$FILE_MAN_DIR = x ; then 10426 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10427 fi 10428 10429 if test x$MISC_MAN_SUFFIX = x ; then 10430 case $SYSV_MAN_SECTIONS in 10431 true) MISC_MAN_SUFFIX=5 ;; 10432 *) MISC_MAN_SUFFIX=7 ;; 10433 esac 10434 fi 10435 if test x$MISC_MAN_DIR = x ; then 10436 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10437 fi 10438 10439 if test x$DRIVER_MAN_SUFFIX = x ; then 10440 case $SYSV_MAN_SECTIONS in 10441 true) DRIVER_MAN_SUFFIX=7 ;; 10442 *) DRIVER_MAN_SUFFIX=4 ;; 10443 esac 10444 fi 10445 if test x$DRIVER_MAN_DIR = x ; then 10446 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10447 fi 10448 10449 if test x$ADMIN_MAN_SUFFIX = x ; then 10450 case $SYSV_MAN_SECTIONS in 10451 true) ADMIN_MAN_SUFFIX=1m ;; 10452 *) ADMIN_MAN_SUFFIX=8 ;; 10453 esac 10454 fi 10455 if test x$ADMIN_MAN_DIR = x ; then 10456 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10457 fi 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 XORG_MAN_PAGE="X Version 11" 10474 10475 MAN_SUBSTS="\ 10476 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10477 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10478 -e 's|__xservername__|Xorg|g' \ 10479 -e 's|__xconfigfile__|xorg.conf|g' \ 10480 -e 's|__projectroot__|\$(prefix)|g' \ 10481 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10482 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10483 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10484 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10485 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10486 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10487 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10488 10489 10490 10491 # Check whether --enable-silent-rules was given. 10492 if test ${enable_silent_rules+y} 10493 then : 10494 enableval=$enable_silent_rules; 10495 fi 10496 10497 case $enable_silent_rules in # ((( 10498 yes) AM_DEFAULT_VERBOSITY=0;; 10499 no) AM_DEFAULT_VERBOSITY=1;; 10500 *) AM_DEFAULT_VERBOSITY=0;; 10501 esac 10502 am_make=${MAKE-make} 10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10504 printf %s "checking whether $am_make supports nested variables... " >&6; } 10505 if test ${am_cv_make_support_nested_variables+y} 10506 then : 10507 printf %s "(cached) " >&6 10508 else $as_nop 10509 if printf "%s\n" 'TRUE=$(BAR$(V)) 10510 BAR0=false 10511 BAR1=true 10512 V=1 10513 am__doit: 10514 @$(TRUE) 10515 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10516 am_cv_make_support_nested_variables=yes 10517 else 10518 am_cv_make_support_nested_variables=no 10519 fi 10520 fi 10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10522 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 10523 if test $am_cv_make_support_nested_variables = yes; then 10524 AM_V='$(V)' 10525 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10526 else 10527 AM_V=$AM_DEFAULT_VERBOSITY 10528 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10529 fi 10530 AM_BACKSLASH='\' 10531 10532 10533 10534 10535 10536 ac_config_headers="$ac_config_headers config.h" 10537 10538 10539 10540 # Initialize Automake 10541 am__api_version='1.16' 10542 10543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10544 printf %s "checking whether build environment is sane... " >&6; } 10545 # Reject unsafe characters in $srcdir or the absolute working directory 10546 # name. Accept space and tab only in the latter. 10547 am_lf=' 10548 ' 10549 case `pwd` in 10550 *[\\\"\#\$\&\'\`$am_lf]*) 10551 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10552 esac 10553 case $srcdir in 10554 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10555 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 10556 esac 10557 10558 # Do 'set' in a subshell so we don't clobber the current shell's 10559 # arguments. Must try -L first in case configure is actually a 10560 # symlink; some systems play weird games with the mod time of symlinks 10561 # (eg FreeBSD returns the mod time of the symlink's containing 10562 # directory). 10563 if ( 10564 am_has_slept=no 10565 for am_try in 1 2; do 10566 echo "timestamp, slept: $am_has_slept" > conftest.file 10567 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10568 if test "$*" = "X"; then 10569 # -L didn't work. 10570 set X `ls -t "$srcdir/configure" conftest.file` 10571 fi 10572 if test "$*" != "X $srcdir/configure conftest.file" \ 10573 && test "$*" != "X conftest.file $srcdir/configure"; then 10574 10575 # If neither matched, then we have a broken ls. This can happen 10576 # if, for instance, CONFIG_SHELL is bash and it inherits a 10577 # broken ls alias from the environment. This has actually 10578 # happened. Such a system could not be considered "sane". 10579 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10580 alias in your environment" "$LINENO" 5 10581 fi 10582 if test "$2" = conftest.file || test $am_try -eq 2; then 10583 break 10584 fi 10585 # Just in case. 10586 sleep 1 10587 am_has_slept=yes 10588 done 10589 test "$2" = conftest.file 10590 ) 10591 then 10592 # Ok. 10593 : 10594 else 10595 as_fn_error $? "newly created file is older than distributed files! 10596 Check your system clock" "$LINENO" 5 10597 fi 10598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10599 printf "%s\n" "yes" >&6; } 10600 # If we didn't sleep, we still need to ensure time stamps of config.status and 10601 # generated files are strictly newer. 10602 am_sleep_pid= 10603 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10604 ( sleep 1 ) & 10605 am_sleep_pid=$! 10606 fi 10607 10608 rm -f conftest.file 10609 10610 test "$program_prefix" != NONE && 10611 program_transform_name="s&^&$program_prefix&;$program_transform_name" 10612 # Use a double $ so make ignores it. 10613 test "$program_suffix" != NONE && 10614 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 10615 # Double any \ or $. 10616 # By default was `s,x,x', remove it if useless. 10617 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 10618 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 10619 10620 10621 if test x"${MISSING+set}" != xset; then 10622 MISSING="\${SHELL} '$am_aux_dir/missing'" 10623 fi 10624 # Use eval to expand $SHELL 10625 if eval "$MISSING --is-lightweight"; then 10626 am_missing_run="$MISSING " 10627 else 10628 am_missing_run= 10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 10630 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 10631 fi 10632 10633 if test x"${install_sh+set}" != xset; then 10634 case $am_aux_dir in 10635 *\ * | *\ *) 10636 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10637 *) 10638 install_sh="\${SHELL} $am_aux_dir/install-sh" 10639 esac 10640 fi 10641 10642 # Installed binaries are usually stripped using 'strip' when the user 10643 # run "make install-strip". However 'strip' might not be the right 10644 # tool to use in cross-compilation environments, therefore Automake 10645 # will honor the 'STRIP' environment variable to overrule this program. 10646 if test "$cross_compiling" != no; then 10647 if test -n "$ac_tool_prefix"; then 10648 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10649 set dummy ${ac_tool_prefix}strip; ac_word=$2 10650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10651 printf %s "checking for $ac_word... " >&6; } 10652 if test ${ac_cv_prog_STRIP+y} 10653 then : 10654 printf %s "(cached) " >&6 10655 else $as_nop 10656 if test -n "$STRIP"; then 10657 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10658 else 10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10660 for as_dir in $PATH 10661 do 10662 IFS=$as_save_IFS 10663 case $as_dir in #((( 10664 '') as_dir=./ ;; 10665 */) ;; 10666 *) as_dir=$as_dir/ ;; 10667 esac 10668 for ac_exec_ext in '' $ac_executable_extensions; do 10669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10670 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10672 break 2 10673 fi 10674 done 10675 done 10676 IFS=$as_save_IFS 10677 10678 fi 10679 fi 10680 STRIP=$ac_cv_prog_STRIP 10681 if test -n "$STRIP"; then 10682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10683 printf "%s\n" "$STRIP" >&6; } 10684 else 10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10686 printf "%s\n" "no" >&6; } 10687 fi 10688 10689 10690 fi 10691 if test -z "$ac_cv_prog_STRIP"; then 10692 ac_ct_STRIP=$STRIP 10693 # Extract the first word of "strip", so it can be a program name with args. 10694 set dummy strip; ac_word=$2 10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10696 printf %s "checking for $ac_word... " >&6; } 10697 if test ${ac_cv_prog_ac_ct_STRIP+y} 10698 then : 10699 printf %s "(cached) " >&6 10700 else $as_nop 10701 if test -n "$ac_ct_STRIP"; then 10702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10703 else 10704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10705 for as_dir in $PATH 10706 do 10707 IFS=$as_save_IFS 10708 case $as_dir in #((( 10709 '') as_dir=./ ;; 10710 */) ;; 10711 *) as_dir=$as_dir/ ;; 10712 esac 10713 for ac_exec_ext in '' $ac_executable_extensions; do 10714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10715 ac_cv_prog_ac_ct_STRIP="strip" 10716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10717 break 2 10718 fi 10719 done 10720 done 10721 IFS=$as_save_IFS 10722 10723 fi 10724 fi 10725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10726 if test -n "$ac_ct_STRIP"; then 10727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10728 printf "%s\n" "$ac_ct_STRIP" >&6; } 10729 else 10730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10731 printf "%s\n" "no" >&6; } 10732 fi 10733 10734 if test "x$ac_ct_STRIP" = x; then 10735 STRIP=":" 10736 else 10737 case $cross_compiling:$ac_tool_warned in 10738 yes:) 10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10740 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10741 ac_tool_warned=yes ;; 10742 esac 10743 STRIP=$ac_ct_STRIP 10744 fi 10745 else 10746 STRIP="$ac_cv_prog_STRIP" 10747 fi 10748 10749 fi 10750 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10751 10752 10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 10754 printf %s "checking for a race-free mkdir -p... " >&6; } 10755 if test -z "$MKDIR_P"; then 10756 if test ${ac_cv_path_mkdir+y} 10757 then : 10758 printf %s "(cached) " >&6 10759 else $as_nop 10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10761 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 10762 do 10763 IFS=$as_save_IFS 10764 case $as_dir in #((( 10765 '') as_dir=./ ;; 10766 */) ;; 10767 *) as_dir=$as_dir/ ;; 10768 esac 10769 for ac_prog in mkdir gmkdir; do 10770 for ac_exec_ext in '' $ac_executable_extensions; do 10771 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 10772 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 10773 'mkdir ('*'coreutils) '* | \ 10774 'BusyBox '* | \ 10775 'mkdir (fileutils) '4.1*) 10776 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 10777 break 3;; 10778 esac 10779 done 10780 done 10781 done 10782 IFS=$as_save_IFS 10783 10784 fi 10785 10786 test -d ./--version && rmdir ./--version 10787 if test ${ac_cv_path_mkdir+y}; then 10788 MKDIR_P="$ac_cv_path_mkdir -p" 10789 else 10790 # As a last resort, use the slow shell script. Don't cache a 10791 # value for MKDIR_P within a source directory, because that will 10792 # break other packages using the cache if that directory is 10793 # removed, or if the value is a relative name. 10794 MKDIR_P="$ac_install_sh -d" 10795 fi 10796 fi 10797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 10798 printf "%s\n" "$MKDIR_P" >&6; } 10799 10800 for ac_prog in gawk mawk nawk awk 10801 do 10802 # Extract the first word of "$ac_prog", so it can be a program name with args. 10803 set dummy $ac_prog; ac_word=$2 10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10805 printf %s "checking for $ac_word... " >&6; } 10806 if test ${ac_cv_prog_AWK+y} 10807 then : 10808 printf %s "(cached) " >&6 10809 else $as_nop 10810 if test -n "$AWK"; then 10811 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10812 else 10813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10814 for as_dir in $PATH 10815 do 10816 IFS=$as_save_IFS 10817 case $as_dir in #((( 10818 '') as_dir=./ ;; 10819 */) ;; 10820 *) as_dir=$as_dir/ ;; 10821 esac 10822 for ac_exec_ext in '' $ac_executable_extensions; do 10823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10824 ac_cv_prog_AWK="$ac_prog" 10825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10826 break 2 10827 fi 10828 done 10829 done 10830 IFS=$as_save_IFS 10831 10832 fi 10833 fi 10834 AWK=$ac_cv_prog_AWK 10835 if test -n "$AWK"; then 10836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 10837 printf "%s\n" "$AWK" >&6; } 10838 else 10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10840 printf "%s\n" "no" >&6; } 10841 fi 10842 10843 10844 test -n "$AWK" && break 10845 done 10846 10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10848 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10849 set x ${MAKE-make} 10850 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10851 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 10852 then : 10853 printf %s "(cached) " >&6 10854 else $as_nop 10855 cat >conftest.make <<\_ACEOF 10856 SHELL = /bin/sh 10857 all: 10858 @echo '@@@%%%=$(MAKE)=@@@%%%' 10859 _ACEOF 10860 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10861 case `${MAKE-make} -f conftest.make 2>/dev/null` in 10862 *@@@%%%=?*=@@@%%%*) 10863 eval ac_cv_prog_make_${ac_make}_set=yes;; 10864 *) 10865 eval ac_cv_prog_make_${ac_make}_set=no;; 10866 esac 10867 rm -f conftest.make 10868 fi 10869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10871 printf "%s\n" "yes" >&6; } 10872 SET_MAKE= 10873 else 10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10875 printf "%s\n" "no" >&6; } 10876 SET_MAKE="MAKE=${MAKE-make}" 10877 fi 10878 10879 rm -rf .tst 2>/dev/null 10880 mkdir .tst 2>/dev/null 10881 if test -d .tst; then 10882 am__leading_dot=. 10883 else 10884 am__leading_dot=_ 10885 fi 10886 rmdir .tst 2>/dev/null 10887 10888 DEPDIR="${am__leading_dot}deps" 10889 10890 ac_config_commands="$ac_config_commands depfiles" 10891 10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 10893 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 10894 cat > confinc.mk << 'END' 10895 am__doit: 10896 @echo this is the am__doit target >confinc.out 10897 .PHONY: am__doit 10898 END 10899 am__include="#" 10900 am__quote= 10901 # BSD make does it like this. 10902 echo '.include "confinc.mk" # ignored' > confmf.BSD 10903 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 10904 echo 'include confinc.mk # ignored' > confmf.GNU 10905 _am_result=no 10906 for s in GNU BSD; do 10907 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 10908 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 10909 ac_status=$? 10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10911 (exit $ac_status); } 10912 case $?:`cat confinc.out 2>/dev/null` in #( 10913 '0:this is the am__doit target') : 10914 case $s in #( 10915 BSD) : 10916 am__include='.include' am__quote='"' ;; #( 10917 *) : 10918 am__include='include' am__quote='' ;; 10919 esac ;; #( 10920 *) : 10921 ;; 10922 esac 10923 if test "$am__include" != "#"; then 10924 _am_result="yes ($s style)" 10925 break 10926 fi 10927 done 10928 rm -f confinc.* confmf.* 10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 10930 printf "%s\n" "${_am_result}" >&6; } 10931 10932 # Check whether --enable-dependency-tracking was given. 10933 if test ${enable_dependency_tracking+y} 10934 then : 10935 enableval=$enable_dependency_tracking; 10936 fi 10937 10938 if test "x$enable_dependency_tracking" != xno; then 10939 am_depcomp="$ac_aux_dir/depcomp" 10940 AMDEPBACKSLASH='\' 10941 am__nodep='_no' 10942 fi 10943 if test "x$enable_dependency_tracking" != xno; then 10944 AMDEP_TRUE= 10945 AMDEP_FALSE='#' 10946 else 10947 AMDEP_TRUE='#' 10948 AMDEP_FALSE= 10949 fi 10950 10951 10952 if test "`cd $srcdir && pwd`" != "`pwd`"; then 10953 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 10954 # is not polluted with repeated "-I." 10955 am__isrc=' -I$(srcdir)' 10956 # test to see if srcdir already configured 10957 if test -f $srcdir/config.status; then 10958 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 10959 fi 10960 fi 10961 10962 # test whether we have cygpath 10963 if test -z "$CYGPATH_W"; then 10964 if (cygpath --version) >/dev/null 2>/dev/null; then 10965 CYGPATH_W='cygpath -w' 10966 else 10967 CYGPATH_W=echo 10968 fi 10969 fi 10970 10971 10972 # Define the identity of the package. 10973 PACKAGE='xf86-video-siliconmotion' 10974 VERSION='1.7.10' 10975 10976 10977 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 10978 10979 10980 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 10981 10982 # Some tools Automake needs. 10983 10984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 10985 10986 10987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 10988 10989 10990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 10991 10992 10993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 10994 10995 10996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 10997 10998 # For better backward compatibility. To be removed once Automake 1.9.x 10999 # dies out for good. For more background, see: 11000 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 11001 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 11002 mkdir_p='$(MKDIR_P)' 11003 11004 # We need awk for the "check" target (and possibly the TAP driver). The 11005 # system "awk" is bad on some platforms. 11006 # Always define AMTAR for backward compatibility. Yes, it's still used 11007 # in the wild :-( We should find a proper way to deprecate it ... 11008 AMTAR='$${TAR-tar}' 11009 11010 11011 # We'll loop over all known methods to create a tar archive until one works. 11012 _am_tools='gnutar pax cpio none' 11013 11014 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 11015 11016 11017 11018 11019 11020 depcc="$CC" am_compiler_list= 11021 11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11023 printf %s "checking dependency style of $depcc... " >&6; } 11024 if test ${am_cv_CC_dependencies_compiler_type+y} 11025 then : 11026 printf %s "(cached) " >&6 11027 else $as_nop 11028 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11029 # We make a subdir and do the tests there. Otherwise we can end up 11030 # making bogus files that we don't know about and never remove. For 11031 # instance it was reported that on HP-UX the gcc test will end up 11032 # making a dummy file named 'D' -- because '-MD' means "put the output 11033 # in D". 11034 rm -rf conftest.dir 11035 mkdir conftest.dir 11036 # Copy depcomp to subdir because otherwise we won't find it if we're 11037 # using a relative directory. 11038 cp "$am_depcomp" conftest.dir 11039 cd conftest.dir 11040 # We will build objects and dependencies in a subdirectory because 11041 # it helps to detect inapplicable dependency modes. For instance 11042 # both Tru64's cc and ICC support -MD to output dependencies as a 11043 # side effect of compilation, but ICC will put the dependencies in 11044 # the current directory while Tru64 will put them in the object 11045 # directory. 11046 mkdir sub 11047 11048 am_cv_CC_dependencies_compiler_type=none 11049 if test "$am_compiler_list" = ""; then 11050 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11051 fi 11052 am__universal=false 11053 case " $depcc " in #( 11054 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11055 esac 11056 11057 for depmode in $am_compiler_list; do 11058 # Setup a source with many dependencies, because some compilers 11059 # like to wrap large dependency lists on column 80 (with \), and 11060 # we should not choose a depcomp mode which is confused by this. 11061 # 11062 # We need to recreate these files for each test, as the compiler may 11063 # overwrite some of them when testing with obscure command lines. 11064 # This happens at least with the AIX C compiler. 11065 : > sub/conftest.c 11066 for i in 1 2 3 4 5 6; do 11067 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11068 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 11069 # Solaris 10 /bin/sh. 11070 echo '/* dummy */' > sub/conftst$i.h 11071 done 11072 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11073 11074 # We check with '-c' and '-o' for the sake of the "dashmstdout" 11075 # mode. It turns out that the SunPro C++ compiler does not properly 11076 # handle '-M -o', and we need to detect this. Also, some Intel 11077 # versions had trouble with output in subdirs. 11078 am__obj=sub/conftest.${OBJEXT-o} 11079 am__minus_obj="-o $am__obj" 11080 case $depmode in 11081 gcc) 11082 # This depmode causes a compiler race in universal mode. 11083 test "$am__universal" = false || continue 11084 ;; 11085 nosideeffect) 11086 # After this tag, mechanisms are not by side-effect, so they'll 11087 # only be used when explicitly requested. 11088 if test "x$enable_dependency_tracking" = xyes; then 11089 continue 11090 else 11091 break 11092 fi 11093 ;; 11094 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11095 # This compiler won't grok '-c -o', but also, the minuso test has 11096 # not run yet. These depmodes are late enough in the game, and 11097 # so weak that their functioning should not be impacted. 11098 am__obj=conftest.${OBJEXT-o} 11099 am__minus_obj= 11100 ;; 11101 none) break ;; 11102 esac 11103 if depmode=$depmode \ 11104 source=sub/conftest.c object=$am__obj \ 11105 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11106 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11107 >/dev/null 2>conftest.err && 11108 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11109 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11110 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11111 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11112 # icc doesn't choke on unknown options, it will just issue warnings 11113 # or remarks (even with -Werror). So we grep stderr for any message 11114 # that says an option was ignored or not supported. 11115 # When given -MP, icc 7.0 and 7.1 complain thusly: 11116 # icc: Command line warning: ignoring option '-M'; no argument required 11117 # The diagnosis changed in icc 8.0: 11118 # icc: Command line remark: option '-MP' not supported 11119 if (grep 'ignoring option' conftest.err || 11120 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11121 am_cv_CC_dependencies_compiler_type=$depmode 11122 break 11123 fi 11124 fi 11125 done 11126 11127 cd .. 11128 rm -rf conftest.dir 11129 else 11130 am_cv_CC_dependencies_compiler_type=none 11131 fi 11132 11133 fi 11134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11135 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 11136 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11137 11138 if 11139 test "x$enable_dependency_tracking" != xno \ 11140 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11141 am__fastdepCC_TRUE= 11142 am__fastdepCC_FALSE='#' 11143 else 11144 am__fastdepCC_TRUE='#' 11145 am__fastdepCC_FALSE= 11146 fi 11147 11148 11149 # Variables for tags utilities; see am/tags.am 11150 if test -z "$CTAGS"; then 11151 CTAGS=ctags 11152 fi 11153 11154 if test -z "$ETAGS"; then 11155 ETAGS=etags 11156 fi 11157 11158 if test -z "$CSCOPE"; then 11159 CSCOPE=cscope 11160 fi 11161 11162 11163 11164 # POSIX will say in a future version that running "rm -f" with no argument 11165 # is OK; and we want to be able to make that assumption in our Makefile 11166 # recipes. So use an aggressive probe to check that the usage we want is 11167 # actually supported "in the wild" to an acceptable degree. 11168 # See automake bug#10828. 11169 # To make any issue more visible, cause the running configure to be aborted 11170 # by default if the 'rm' program in use doesn't match our expectations; the 11171 # user can still override this though. 11172 if rm -f && rm -fr && rm -rf; then : OK; else 11173 cat >&2 <<'END' 11174 Oops! 11175 11176 Your 'rm' program seems unable to run without file operands specified 11177 on the command line, even when the '-f' option is present. This is contrary 11178 to the behaviour of most rm programs out there, and not conforming with 11179 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 11180 11181 Please tell bug-automake@gnu.org about your system, including the value 11182 of your $PATH and any error possibly output before this message. This 11183 can help us improve future automake versions. 11184 11185 END 11186 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 11187 echo 'Configuration will proceed anyway, since you have set the' >&2 11188 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 11189 echo >&2 11190 else 11191 cat >&2 <<'END' 11192 Aborting the configuration process, to ensure you take notice of the issue. 11193 11194 You can download and install GNU coreutils to get an 'rm' implementation 11195 that behaves properly: <https://www.gnu.org/software/coreutils/>. 11196 11197 If you want to complete the configuration process using your problematic 11198 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 11199 to "yes", and re-run configure. 11200 11201 END 11202 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 11203 fi 11204 fi 11205 11206 11207 # Initialize libtool 11208 # Check whether --enable-static was given. 11209 if test ${enable_static+y} 11210 then : 11211 enableval=$enable_static; p=${PACKAGE-default} 11212 case $enableval in 11213 yes) enable_static=yes ;; 11214 no) enable_static=no ;; 11215 *) 11216 enable_static=no 11217 # Look at the argument we got. We use all the common list separators. 11218 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11219 for pkg in $enableval; do 11220 IFS=$lt_save_ifs 11221 if test "X$pkg" = "X$p"; then 11222 enable_static=yes 11223 fi 11224 done 11225 IFS=$lt_save_ifs 11226 ;; 11227 esac 11228 else $as_nop 11229 enable_static=no 11230 fi 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 case `pwd` in 11241 *\ * | *\ *) 11242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11243 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11244 esac 11245 11246 11247 11248 macro_version='2.4.7' 11249 macro_revision='2.4.7' 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 ltmain=$ac_aux_dir/ltmain.sh 11265 11266 # Backslashify metacharacters that are still active within 11267 # double-quoted strings. 11268 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11269 11270 # Same as above, but do not quote variable references. 11271 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11272 11273 # Sed substitution to delay expansion of an escaped shell variable in a 11274 # double_quote_subst'ed string. 11275 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11276 11277 # Sed substitution to delay expansion of an escaped single quote. 11278 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11279 11280 # Sed substitution to avoid accidental globbing in evaled expressions 11281 no_glob_subst='s/\*/\\\*/g' 11282 11283 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11284 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11285 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11286 11287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11288 printf %s "checking how to print strings... " >&6; } 11289 # Test print first, because it will be a builtin if present. 11290 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11291 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11292 ECHO='print -r --' 11293 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11294 ECHO='printf %s\n' 11295 else 11296 # Use this function as a fallback that always works. 11297 func_fallback_echo () 11298 { 11299 eval 'cat <<_LTECHO_EOF 11300 $1 11301 _LTECHO_EOF' 11302 } 11303 ECHO='func_fallback_echo' 11304 fi 11305 11306 # func_echo_all arg... 11307 # Invoke $ECHO with all args, space-separated. 11308 func_echo_all () 11309 { 11310 $ECHO "" 11311 } 11312 11313 case $ECHO in 11314 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11315 printf "%s\n" "printf" >&6; } ;; 11316 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11317 printf "%s\n" "print -r" >&6; } ;; 11318 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11319 printf "%s\n" "cat" >&6; } ;; 11320 esac 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11336 printf %s "checking for a sed that does not truncate output... " >&6; } 11337 if test ${ac_cv_path_SED+y} 11338 then : 11339 printf %s "(cached) " >&6 11340 else $as_nop 11341 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11342 for ac_i in 1 2 3 4 5 6 7; do 11343 ac_script="$ac_script$as_nl$ac_script" 11344 done 11345 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11346 { ac_script=; unset ac_script;} 11347 if test -z "$SED"; then 11348 ac_path_SED_found=false 11349 # Loop through the user's path and test for each of PROGNAME-LIST 11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11351 for as_dir in $PATH 11352 do 11353 IFS=$as_save_IFS 11354 case $as_dir in #((( 11355 '') as_dir=./ ;; 11356 */) ;; 11357 *) as_dir=$as_dir/ ;; 11358 esac 11359 for ac_prog in sed gsed 11360 do 11361 for ac_exec_ext in '' $ac_executable_extensions; do 11362 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11363 as_fn_executable_p "$ac_path_SED" || continue 11364 # Check for GNU ac_path_SED and select it if it is found. 11365 # Check for GNU $ac_path_SED 11366 case `"$ac_path_SED" --version 2>&1` in 11367 *GNU*) 11368 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11369 *) 11370 ac_count=0 11371 printf %s 0123456789 >"conftest.in" 11372 while : 11373 do 11374 cat "conftest.in" "conftest.in" >"conftest.tmp" 11375 mv "conftest.tmp" "conftest.in" 11376 cp "conftest.in" "conftest.nl" 11377 printf "%s\n" '' >> "conftest.nl" 11378 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11380 as_fn_arith $ac_count + 1 && ac_count=$as_val 11381 if test $ac_count -gt ${ac_path_SED_max-0}; then 11382 # Best one so far, save it but keep looking for a better one 11383 ac_cv_path_SED="$ac_path_SED" 11384 ac_path_SED_max=$ac_count 11385 fi 11386 # 10*(2^10) chars as input seems more than enough 11387 test $ac_count -gt 10 && break 11388 done 11389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11390 esac 11391 11392 $ac_path_SED_found && break 3 11393 done 11394 done 11395 done 11396 IFS=$as_save_IFS 11397 if test -z "$ac_cv_path_SED"; then 11398 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11399 fi 11400 else 11401 ac_cv_path_SED=$SED 11402 fi 11403 11404 fi 11405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11406 printf "%s\n" "$ac_cv_path_SED" >&6; } 11407 SED="$ac_cv_path_SED" 11408 rm -f conftest.sed 11409 11410 test -z "$SED" && SED=sed 11411 Xsed="$SED -e 1s/^X//" 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11424 printf %s "checking for grep that handles long lines and -e... " >&6; } 11425 if test ${ac_cv_path_GREP+y} 11426 then : 11427 printf %s "(cached) " >&6 11428 else $as_nop 11429 if test -z "$GREP"; then 11430 ac_path_GREP_found=false 11431 # Loop through the user's path and test for each of PROGNAME-LIST 11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11434 do 11435 IFS=$as_save_IFS 11436 case $as_dir in #((( 11437 '') as_dir=./ ;; 11438 */) ;; 11439 *) as_dir=$as_dir/ ;; 11440 esac 11441 for ac_prog in grep ggrep 11442 do 11443 for ac_exec_ext in '' $ac_executable_extensions; do 11444 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11445 as_fn_executable_p "$ac_path_GREP" || continue 11446 # Check for GNU ac_path_GREP and select it if it is found. 11447 # Check for GNU $ac_path_GREP 11448 case `"$ac_path_GREP" --version 2>&1` in 11449 *GNU*) 11450 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11451 *) 11452 ac_count=0 11453 printf %s 0123456789 >"conftest.in" 11454 while : 11455 do 11456 cat "conftest.in" "conftest.in" >"conftest.tmp" 11457 mv "conftest.tmp" "conftest.in" 11458 cp "conftest.in" "conftest.nl" 11459 printf "%s\n" 'GREP' >> "conftest.nl" 11460 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11462 as_fn_arith $ac_count + 1 && ac_count=$as_val 11463 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11464 # Best one so far, save it but keep looking for a better one 11465 ac_cv_path_GREP="$ac_path_GREP" 11466 ac_path_GREP_max=$ac_count 11467 fi 11468 # 10*(2^10) chars as input seems more than enough 11469 test $ac_count -gt 10 && break 11470 done 11471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11472 esac 11473 11474 $ac_path_GREP_found && break 3 11475 done 11476 done 11477 done 11478 IFS=$as_save_IFS 11479 if test -z "$ac_cv_path_GREP"; then 11480 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11481 fi 11482 else 11483 ac_cv_path_GREP=$GREP 11484 fi 11485 11486 fi 11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11488 printf "%s\n" "$ac_cv_path_GREP" >&6; } 11489 GREP="$ac_cv_path_GREP" 11490 11491 11492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11493 printf %s "checking for egrep... " >&6; } 11494 if test ${ac_cv_path_EGREP+y} 11495 then : 11496 printf %s "(cached) " >&6 11497 else $as_nop 11498 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11499 then ac_cv_path_EGREP="$GREP -E" 11500 else 11501 if test -z "$EGREP"; then 11502 ac_path_EGREP_found=false 11503 # Loop through the user's path and test for each of PROGNAME-LIST 11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11505 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11506 do 11507 IFS=$as_save_IFS 11508 case $as_dir in #((( 11509 '') as_dir=./ ;; 11510 */) ;; 11511 *) as_dir=$as_dir/ ;; 11512 esac 11513 for ac_prog in egrep 11514 do 11515 for ac_exec_ext in '' $ac_executable_extensions; do 11516 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11517 as_fn_executable_p "$ac_path_EGREP" || continue 11518 # Check for GNU ac_path_EGREP and select it if it is found. 11519 # Check for GNU $ac_path_EGREP 11520 case `"$ac_path_EGREP" --version 2>&1` in 11521 *GNU*) 11522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11523 *) 11524 ac_count=0 11525 printf %s 0123456789 >"conftest.in" 11526 while : 11527 do 11528 cat "conftest.in" "conftest.in" >"conftest.tmp" 11529 mv "conftest.tmp" "conftest.in" 11530 cp "conftest.in" "conftest.nl" 11531 printf "%s\n" 'EGREP' >> "conftest.nl" 11532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11534 as_fn_arith $ac_count + 1 && ac_count=$as_val 11535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11536 # Best one so far, save it but keep looking for a better one 11537 ac_cv_path_EGREP="$ac_path_EGREP" 11538 ac_path_EGREP_max=$ac_count 11539 fi 11540 # 10*(2^10) chars as input seems more than enough 11541 test $ac_count -gt 10 && break 11542 done 11543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11544 esac 11545 11546 $ac_path_EGREP_found && break 3 11547 done 11548 done 11549 done 11550 IFS=$as_save_IFS 11551 if test -z "$ac_cv_path_EGREP"; then 11552 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11553 fi 11554 else 11555 ac_cv_path_EGREP=$EGREP 11556 fi 11557 11558 fi 11559 fi 11560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11561 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11562 EGREP="$ac_cv_path_EGREP" 11563 11564 11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11566 printf %s "checking for fgrep... " >&6; } 11567 if test ${ac_cv_path_FGREP+y} 11568 then : 11569 printf %s "(cached) " >&6 11570 else $as_nop 11571 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11572 then ac_cv_path_FGREP="$GREP -F" 11573 else 11574 if test -z "$FGREP"; then 11575 ac_path_FGREP_found=false 11576 # Loop through the user's path and test for each of PROGNAME-LIST 11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11579 do 11580 IFS=$as_save_IFS 11581 case $as_dir in #((( 11582 '') as_dir=./ ;; 11583 */) ;; 11584 *) as_dir=$as_dir/ ;; 11585 esac 11586 for ac_prog in fgrep 11587 do 11588 for ac_exec_ext in '' $ac_executable_extensions; do 11589 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11590 as_fn_executable_p "$ac_path_FGREP" || continue 11591 # Check for GNU ac_path_FGREP and select it if it is found. 11592 # Check for GNU $ac_path_FGREP 11593 case `"$ac_path_FGREP" --version 2>&1` in 11594 *GNU*) 11595 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11596 *) 11597 ac_count=0 11598 printf %s 0123456789 >"conftest.in" 11599 while : 11600 do 11601 cat "conftest.in" "conftest.in" >"conftest.tmp" 11602 mv "conftest.tmp" "conftest.in" 11603 cp "conftest.in" "conftest.nl" 11604 printf "%s\n" 'FGREP' >> "conftest.nl" 11605 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11607 as_fn_arith $ac_count + 1 && ac_count=$as_val 11608 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11609 # Best one so far, save it but keep looking for a better one 11610 ac_cv_path_FGREP="$ac_path_FGREP" 11611 ac_path_FGREP_max=$ac_count 11612 fi 11613 # 10*(2^10) chars as input seems more than enough 11614 test $ac_count -gt 10 && break 11615 done 11616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11617 esac 11618 11619 $ac_path_FGREP_found && break 3 11620 done 11621 done 11622 done 11623 IFS=$as_save_IFS 11624 if test -z "$ac_cv_path_FGREP"; then 11625 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11626 fi 11627 else 11628 ac_cv_path_FGREP=$FGREP 11629 fi 11630 11631 fi 11632 fi 11633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11634 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11635 FGREP="$ac_cv_path_FGREP" 11636 11637 11638 test -z "$GREP" && GREP=grep 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 # Check whether --with-gnu-ld was given. 11659 if test ${with_gnu_ld+y} 11660 then : 11661 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11662 else $as_nop 11663 with_gnu_ld=no 11664 fi 11665 11666 ac_prog=ld 11667 if test yes = "$GCC"; then 11668 # Check if gcc -print-prog-name=ld gives a path. 11669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11670 printf %s "checking for ld used by $CC... " >&6; } 11671 case $host in 11672 *-*-mingw*) 11673 # gcc leaves a trailing carriage return, which upsets mingw 11674 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11675 *) 11676 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11677 esac 11678 case $ac_prog in 11679 # Accept absolute paths. 11680 [\\/]* | ?:[\\/]*) 11681 re_direlt='/[^/][^/]*/\.\./' 11682 # Canonicalize the pathname of ld 11683 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11684 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11685 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11686 done 11687 test -z "$LD" && LD=$ac_prog 11688 ;; 11689 "") 11690 # If it fails, then pretend we aren't using GCC. 11691 ac_prog=ld 11692 ;; 11693 *) 11694 # If it is relative, then search for the first ld in PATH. 11695 with_gnu_ld=unknown 11696 ;; 11697 esac 11698 elif test yes = "$with_gnu_ld"; then 11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11700 printf %s "checking for GNU ld... " >&6; } 11701 else 11702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11703 printf %s "checking for non-GNU ld... " >&6; } 11704 fi 11705 if test ${lt_cv_path_LD+y} 11706 then : 11707 printf %s "(cached) " >&6 11708 else $as_nop 11709 if test -z "$LD"; then 11710 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11711 for ac_dir in $PATH; do 11712 IFS=$lt_save_ifs 11713 test -z "$ac_dir" && ac_dir=. 11714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11715 lt_cv_path_LD=$ac_dir/$ac_prog 11716 # Check to see if the program is GNU ld. I'd rather use --version, 11717 # but apparently some variants of GNU ld only accept -v. 11718 # Break only if it was the GNU/non-GNU ld that we prefer. 11719 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11720 *GNU* | *'with BFD'*) 11721 test no != "$with_gnu_ld" && break 11722 ;; 11723 *) 11724 test yes != "$with_gnu_ld" && break 11725 ;; 11726 esac 11727 fi 11728 done 11729 IFS=$lt_save_ifs 11730 else 11731 lt_cv_path_LD=$LD # Let the user override the test with a path. 11732 fi 11733 fi 11734 11735 LD=$lt_cv_path_LD 11736 if test -n "$LD"; then 11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11738 printf "%s\n" "$LD" >&6; } 11739 else 11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11741 printf "%s\n" "no" >&6; } 11742 fi 11743 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11745 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11746 if test ${lt_cv_prog_gnu_ld+y} 11747 then : 11748 printf %s "(cached) " >&6 11749 else $as_nop 11750 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11751 case `$LD -v 2>&1 </dev/null` in 11752 *GNU* | *'with BFD'*) 11753 lt_cv_prog_gnu_ld=yes 11754 ;; 11755 *) 11756 lt_cv_prog_gnu_ld=no 11757 ;; 11758 esac 11759 fi 11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11761 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11762 with_gnu_ld=$lt_cv_prog_gnu_ld 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11773 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11774 if test ${lt_cv_path_NM+y} 11775 then : 11776 printf %s "(cached) " >&6 11777 else $as_nop 11778 if test -n "$NM"; then 11779 # Let the user override the test. 11780 lt_cv_path_NM=$NM 11781 else 11782 lt_nm_to_check=${ac_tool_prefix}nm 11783 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11784 lt_nm_to_check="$lt_nm_to_check nm" 11785 fi 11786 for lt_tmp_nm in $lt_nm_to_check; do 11787 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11788 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11789 IFS=$lt_save_ifs 11790 test -z "$ac_dir" && ac_dir=. 11791 tmp_nm=$ac_dir/$lt_tmp_nm 11792 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11793 # Check to see if the nm accepts a BSD-compat flag. 11794 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11795 # nm: unknown option "B" ignored 11796 # Tru64's nm complains that /dev/null is an invalid object file 11797 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11798 case $build_os in 11799 mingw*) lt_bad_file=conftest.nm/nofile ;; 11800 *) lt_bad_file=/dev/null ;; 11801 esac 11802 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11803 *$lt_bad_file* | *'Invalid file or object type'*) 11804 lt_cv_path_NM="$tmp_nm -B" 11805 break 2 11806 ;; 11807 *) 11808 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11809 */dev/null*) 11810 lt_cv_path_NM="$tmp_nm -p" 11811 break 2 11812 ;; 11813 *) 11814 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11815 continue # so that we can try to find one that supports BSD flags 11816 ;; 11817 esac 11818 ;; 11819 esac 11820 fi 11821 done 11822 IFS=$lt_save_ifs 11823 done 11824 : ${lt_cv_path_NM=no} 11825 fi 11826 fi 11827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11828 printf "%s\n" "$lt_cv_path_NM" >&6; } 11829 if test no != "$lt_cv_path_NM"; then 11830 NM=$lt_cv_path_NM 11831 else 11832 # Didn't find any BSD compatible name lister, look for dumpbin. 11833 if test -n "$DUMPBIN"; then : 11834 # Let the user override the test. 11835 else 11836 if test -n "$ac_tool_prefix"; then 11837 for ac_prog in dumpbin "link -dump" 11838 do 11839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11842 printf %s "checking for $ac_word... " >&6; } 11843 if test ${ac_cv_prog_DUMPBIN+y} 11844 then : 11845 printf %s "(cached) " >&6 11846 else $as_nop 11847 if test -n "$DUMPBIN"; then 11848 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11849 else 11850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11851 for as_dir in $PATH 11852 do 11853 IFS=$as_save_IFS 11854 case $as_dir in #((( 11855 '') as_dir=./ ;; 11856 */) ;; 11857 *) as_dir=$as_dir/ ;; 11858 esac 11859 for ac_exec_ext in '' $ac_executable_extensions; do 11860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11861 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11863 break 2 11864 fi 11865 done 11866 done 11867 IFS=$as_save_IFS 11868 11869 fi 11870 fi 11871 DUMPBIN=$ac_cv_prog_DUMPBIN 11872 if test -n "$DUMPBIN"; then 11873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11874 printf "%s\n" "$DUMPBIN" >&6; } 11875 else 11876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11877 printf "%s\n" "no" >&6; } 11878 fi 11879 11880 11881 test -n "$DUMPBIN" && break 11882 done 11883 fi 11884 if test -z "$DUMPBIN"; then 11885 ac_ct_DUMPBIN=$DUMPBIN 11886 for ac_prog in dumpbin "link -dump" 11887 do 11888 # Extract the first word of "$ac_prog", so it can be a program name with args. 11889 set dummy $ac_prog; ac_word=$2 11890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11891 printf %s "checking for $ac_word... " >&6; } 11892 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11893 then : 11894 printf %s "(cached) " >&6 11895 else $as_nop 11896 if test -n "$ac_ct_DUMPBIN"; then 11897 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11898 else 11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11900 for as_dir in $PATH 11901 do 11902 IFS=$as_save_IFS 11903 case $as_dir in #((( 11904 '') as_dir=./ ;; 11905 */) ;; 11906 *) as_dir=$as_dir/ ;; 11907 esac 11908 for ac_exec_ext in '' $ac_executable_extensions; do 11909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11910 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11912 break 2 11913 fi 11914 done 11915 done 11916 IFS=$as_save_IFS 11917 11918 fi 11919 fi 11920 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11921 if test -n "$ac_ct_DUMPBIN"; then 11922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11923 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 11924 else 11925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11926 printf "%s\n" "no" >&6; } 11927 fi 11928 11929 11930 test -n "$ac_ct_DUMPBIN" && break 11931 done 11932 11933 if test "x$ac_ct_DUMPBIN" = x; then 11934 DUMPBIN=":" 11935 else 11936 case $cross_compiling:$ac_tool_warned in 11937 yes:) 11938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11939 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11940 ac_tool_warned=yes ;; 11941 esac 11942 DUMPBIN=$ac_ct_DUMPBIN 11943 fi 11944 fi 11945 11946 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 11947 *COFF*) 11948 DUMPBIN="$DUMPBIN -symbols -headers" 11949 ;; 11950 *) 11951 DUMPBIN=: 11952 ;; 11953 esac 11954 fi 11955 11956 if test : != "$DUMPBIN"; then 11957 NM=$DUMPBIN 11958 fi 11959 fi 11960 test -z "$NM" && NM=nm 11961 11962 11963 11964 11965 11966 11967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11968 printf %s "checking the name lister ($NM) interface... " >&6; } 11969 if test ${lt_cv_nm_interface+y} 11970 then : 11971 printf %s "(cached) " >&6 11972 else $as_nop 11973 lt_cv_nm_interface="BSD nm" 11974 echo "int some_variable = 0;" > conftest.$ac_ext 11975 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11976 (eval "$ac_compile" 2>conftest.err) 11977 cat conftest.err >&5 11978 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11979 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11980 cat conftest.err >&5 11981 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11982 cat conftest.out >&5 11983 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11984 lt_cv_nm_interface="MS dumpbin" 11985 fi 11986 rm -f conftest* 11987 fi 11988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11989 printf "%s\n" "$lt_cv_nm_interface" >&6; } 11990 11991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11992 printf %s "checking whether ln -s works... " >&6; } 11993 LN_S=$as_ln_s 11994 if test "$LN_S" = "ln -s"; then 11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11996 printf "%s\n" "yes" >&6; } 11997 else 11998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11999 printf "%s\n" "no, using $LN_S" >&6; } 12000 fi 12001 12002 # find the maximum length of command line arguments 12003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12004 printf %s "checking the maximum length of command line arguments... " >&6; } 12005 if test ${lt_cv_sys_max_cmd_len+y} 12006 then : 12007 printf %s "(cached) " >&6 12008 else $as_nop 12009 i=0 12010 teststring=ABCD 12011 12012 case $build_os in 12013 msdosdjgpp*) 12014 # On DJGPP, this test can blow up pretty badly due to problems in libc 12015 # (any single argument exceeding 2000 bytes causes a buffer overrun 12016 # during glob expansion). Even if it were fixed, the result of this 12017 # check would be larger than it should be. 12018 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12019 ;; 12020 12021 gnu*) 12022 # Under GNU Hurd, this test is not required because there is 12023 # no limit to the length of command line arguments. 12024 # Libtool will interpret -1 as no limit whatsoever 12025 lt_cv_sys_max_cmd_len=-1; 12026 ;; 12027 12028 cygwin* | mingw* | cegcc*) 12029 # On Win9x/ME, this test blows up -- it succeeds, but takes 12030 # about 5 minutes as the teststring grows exponentially. 12031 # Worse, since 9x/ME are not pre-emptively multitasking, 12032 # you end up with a "frozen" computer, even though with patience 12033 # the test eventually succeeds (with a max line length of 256k). 12034 # Instead, let's just punt: use the minimum linelength reported by 12035 # all of the supported platforms: 8192 (on NT/2K/XP). 12036 lt_cv_sys_max_cmd_len=8192; 12037 ;; 12038 12039 mint*) 12040 # On MiNT this can take a long time and run out of memory. 12041 lt_cv_sys_max_cmd_len=8192; 12042 ;; 12043 12044 amigaos*) 12045 # On AmigaOS with pdksh, this test takes hours, literally. 12046 # So we just punt and use a minimum line length of 8192. 12047 lt_cv_sys_max_cmd_len=8192; 12048 ;; 12049 12050 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12051 # This has been around since 386BSD, at least. Likely further. 12052 if test -x /sbin/sysctl; then 12053 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12054 elif test -x /usr/sbin/sysctl; then 12055 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12056 else 12057 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12058 fi 12059 # And add a safety zone 12060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12062 ;; 12063 12064 interix*) 12065 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12066 lt_cv_sys_max_cmd_len=196608 12067 ;; 12068 12069 os2*) 12070 # The test takes a long time on OS/2. 12071 lt_cv_sys_max_cmd_len=8192 12072 ;; 12073 12074 osf*) 12075 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12076 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12077 # nice to cause kernel panics so lets avoid the loop below. 12078 # First set a reasonable default. 12079 lt_cv_sys_max_cmd_len=16384 12080 # 12081 if test -x /sbin/sysconfig; then 12082 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12083 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12084 esac 12085 fi 12086 ;; 12087 sco3.2v5*) 12088 lt_cv_sys_max_cmd_len=102400 12089 ;; 12090 sysv5* | sco5v6* | sysv4.2uw2*) 12091 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12092 if test -n "$kargmax"; then 12093 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12094 else 12095 lt_cv_sys_max_cmd_len=32768 12096 fi 12097 ;; 12098 *) 12099 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12100 if test -n "$lt_cv_sys_max_cmd_len" && \ 12101 test undefined != "$lt_cv_sys_max_cmd_len"; then 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 else 12105 # Make teststring a little bigger before we do anything with it. 12106 # a 1K string should be a reasonable start. 12107 for i in 1 2 3 4 5 6 7 8; do 12108 teststring=$teststring$teststring 12109 done 12110 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12111 # If test is not a shell built-in, we'll probably end up computing a 12112 # maximum length that is only half of the actual maximum length, but 12113 # we can't tell. 12114 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12115 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12116 test 17 != "$i" # 1/2 MB should be enough 12117 do 12118 i=`expr $i + 1` 12119 teststring=$teststring$teststring 12120 done 12121 # Only check the string length outside the loop. 12122 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12123 teststring= 12124 # Add a significant safety factor because C++ compilers can tack on 12125 # massive amounts of additional arguments before passing them to the 12126 # linker. It appears as though 1/2 is a usable value. 12127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12128 fi 12129 ;; 12130 esac 12131 12132 fi 12133 12134 if test -n "$lt_cv_sys_max_cmd_len"; then 12135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12136 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12137 else 12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12139 printf "%s\n" "none" >&6; } 12140 fi 12141 max_cmd_len=$lt_cv_sys_max_cmd_len 12142 12143 12144 12145 12146 12147 12148 : ${CP="cp -f"} 12149 : ${MV="mv -f"} 12150 : ${RM="rm -f"} 12151 12152 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12153 lt_unset=unset 12154 else 12155 lt_unset=false 12156 fi 12157 12158 12159 12160 12161 12162 # test EBCDIC or ASCII 12163 case `echo X|tr X '\101'` in 12164 A) # ASCII based system 12165 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12166 lt_SP2NL='tr \040 \012' 12167 lt_NL2SP='tr \015\012 \040\040' 12168 ;; 12169 *) # EBCDIC based system 12170 lt_SP2NL='tr \100 \n' 12171 lt_NL2SP='tr \r\n \100\100' 12172 ;; 12173 esac 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12184 printf %s "checking how to convert $build file names to $host format... " >&6; } 12185 if test ${lt_cv_to_host_file_cmd+y} 12186 then : 12187 printf %s "(cached) " >&6 12188 else $as_nop 12189 case $host in 12190 *-*-mingw* ) 12191 case $build in 12192 *-*-mingw* ) # actually msys 12193 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12194 ;; 12195 *-*-cygwin* ) 12196 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12197 ;; 12198 * ) # otherwise, assume *nix 12199 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12200 ;; 12201 esac 12202 ;; 12203 *-*-cygwin* ) 12204 case $build in 12205 *-*-mingw* ) # actually msys 12206 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12207 ;; 12208 *-*-cygwin* ) 12209 lt_cv_to_host_file_cmd=func_convert_file_noop 12210 ;; 12211 * ) # otherwise, assume *nix 12212 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12213 ;; 12214 esac 12215 ;; 12216 * ) # unhandled hosts (and "normal" native builds) 12217 lt_cv_to_host_file_cmd=func_convert_file_noop 12218 ;; 12219 esac 12220 12221 fi 12222 12223 to_host_file_cmd=$lt_cv_to_host_file_cmd 12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12225 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12226 12227 12228 12229 12230 12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12232 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12233 if test ${lt_cv_to_tool_file_cmd+y} 12234 then : 12235 printf %s "(cached) " >&6 12236 else $as_nop 12237 #assume ordinary cross tools, or native build. 12238 lt_cv_to_tool_file_cmd=func_convert_file_noop 12239 case $host in 12240 *-*-mingw* ) 12241 case $build in 12242 *-*-mingw* ) # actually msys 12243 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12244 ;; 12245 esac 12246 ;; 12247 esac 12248 12249 fi 12250 12251 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12253 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12254 12255 12256 12257 12258 12259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12260 printf %s "checking for $LD option to reload object files... " >&6; } 12261 if test ${lt_cv_ld_reload_flag+y} 12262 then : 12263 printf %s "(cached) " >&6 12264 else $as_nop 12265 lt_cv_ld_reload_flag='-r' 12266 fi 12267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12268 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12269 reload_flag=$lt_cv_ld_reload_flag 12270 case $reload_flag in 12271 "" | " "*) ;; 12272 *) reload_flag=" $reload_flag" ;; 12273 esac 12274 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12275 case $host_os in 12276 cygwin* | mingw* | pw32* | cegcc*) 12277 if test yes != "$GCC"; then 12278 reload_cmds=false 12279 fi 12280 ;; 12281 darwin*) 12282 if test yes = "$GCC"; then 12283 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12284 else 12285 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12286 fi 12287 ;; 12288 esac 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 if test -n "$ac_tool_prefix"; then 12299 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12300 set dummy ${ac_tool_prefix}file; ac_word=$2 12301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12302 printf %s "checking for $ac_word... " >&6; } 12303 if test ${ac_cv_prog_FILECMD+y} 12304 then : 12305 printf %s "(cached) " >&6 12306 else $as_nop 12307 if test -n "$FILECMD"; then 12308 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12309 else 12310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12311 for as_dir in $PATH 12312 do 12313 IFS=$as_save_IFS 12314 case $as_dir in #((( 12315 '') as_dir=./ ;; 12316 */) ;; 12317 *) as_dir=$as_dir/ ;; 12318 esac 12319 for ac_exec_ext in '' $ac_executable_extensions; do 12320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12321 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12323 break 2 12324 fi 12325 done 12326 done 12327 IFS=$as_save_IFS 12328 12329 fi 12330 fi 12331 FILECMD=$ac_cv_prog_FILECMD 12332 if test -n "$FILECMD"; then 12333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12334 printf "%s\n" "$FILECMD" >&6; } 12335 else 12336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12337 printf "%s\n" "no" >&6; } 12338 fi 12339 12340 12341 fi 12342 if test -z "$ac_cv_prog_FILECMD"; then 12343 ac_ct_FILECMD=$FILECMD 12344 # Extract the first word of "file", so it can be a program name with args. 12345 set dummy file; ac_word=$2 12346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12347 printf %s "checking for $ac_word... " >&6; } 12348 if test ${ac_cv_prog_ac_ct_FILECMD+y} 12349 then : 12350 printf %s "(cached) " >&6 12351 else $as_nop 12352 if test -n "$ac_ct_FILECMD"; then 12353 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12354 else 12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12356 for as_dir in $PATH 12357 do 12358 IFS=$as_save_IFS 12359 case $as_dir in #((( 12360 '') as_dir=./ ;; 12361 */) ;; 12362 *) as_dir=$as_dir/ ;; 12363 esac 12364 for ac_exec_ext in '' $ac_executable_extensions; do 12365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12366 ac_cv_prog_ac_ct_FILECMD="file" 12367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12368 break 2 12369 fi 12370 done 12371 done 12372 IFS=$as_save_IFS 12373 12374 fi 12375 fi 12376 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12377 if test -n "$ac_ct_FILECMD"; then 12378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12379 printf "%s\n" "$ac_ct_FILECMD" >&6; } 12380 else 12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12382 printf "%s\n" "no" >&6; } 12383 fi 12384 12385 if test "x$ac_ct_FILECMD" = x; then 12386 FILECMD=":" 12387 else 12388 case $cross_compiling:$ac_tool_warned in 12389 yes:) 12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12391 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12392 ac_tool_warned=yes ;; 12393 esac 12394 FILECMD=$ac_ct_FILECMD 12395 fi 12396 else 12397 FILECMD="$ac_cv_prog_FILECMD" 12398 fi 12399 12400 12401 12402 12403 12404 12405 12406 if test -n "$ac_tool_prefix"; then 12407 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12408 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12410 printf %s "checking for $ac_word... " >&6; } 12411 if test ${ac_cv_prog_OBJDUMP+y} 12412 then : 12413 printf %s "(cached) " >&6 12414 else $as_nop 12415 if test -n "$OBJDUMP"; then 12416 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12417 else 12418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12419 for as_dir in $PATH 12420 do 12421 IFS=$as_save_IFS 12422 case $as_dir in #((( 12423 '') as_dir=./ ;; 12424 */) ;; 12425 *) as_dir=$as_dir/ ;; 12426 esac 12427 for ac_exec_ext in '' $ac_executable_extensions; do 12428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12429 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12431 break 2 12432 fi 12433 done 12434 done 12435 IFS=$as_save_IFS 12436 12437 fi 12438 fi 12439 OBJDUMP=$ac_cv_prog_OBJDUMP 12440 if test -n "$OBJDUMP"; then 12441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12442 printf "%s\n" "$OBJDUMP" >&6; } 12443 else 12444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12445 printf "%s\n" "no" >&6; } 12446 fi 12447 12448 12449 fi 12450 if test -z "$ac_cv_prog_OBJDUMP"; then 12451 ac_ct_OBJDUMP=$OBJDUMP 12452 # Extract the first word of "objdump", so it can be a program name with args. 12453 set dummy objdump; ac_word=$2 12454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12455 printf %s "checking for $ac_word... " >&6; } 12456 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12457 then : 12458 printf %s "(cached) " >&6 12459 else $as_nop 12460 if test -n "$ac_ct_OBJDUMP"; then 12461 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12462 else 12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12464 for as_dir in $PATH 12465 do 12466 IFS=$as_save_IFS 12467 case $as_dir in #((( 12468 '') as_dir=./ ;; 12469 */) ;; 12470 *) as_dir=$as_dir/ ;; 12471 esac 12472 for ac_exec_ext in '' $ac_executable_extensions; do 12473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12474 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12476 break 2 12477 fi 12478 done 12479 done 12480 IFS=$as_save_IFS 12481 12482 fi 12483 fi 12484 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12485 if test -n "$ac_ct_OBJDUMP"; then 12486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12487 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12488 else 12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12490 printf "%s\n" "no" >&6; } 12491 fi 12492 12493 if test "x$ac_ct_OBJDUMP" = x; then 12494 OBJDUMP="false" 12495 else 12496 case $cross_compiling:$ac_tool_warned in 12497 yes:) 12498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12499 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12500 ac_tool_warned=yes ;; 12501 esac 12502 OBJDUMP=$ac_ct_OBJDUMP 12503 fi 12504 else 12505 OBJDUMP="$ac_cv_prog_OBJDUMP" 12506 fi 12507 12508 test -z "$OBJDUMP" && OBJDUMP=objdump 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12519 printf %s "checking how to recognize dependent libraries... " >&6; } 12520 if test ${lt_cv_deplibs_check_method+y} 12521 then : 12522 printf %s "(cached) " >&6 12523 else $as_nop 12524 lt_cv_file_magic_cmd='$MAGIC_CMD' 12525 lt_cv_file_magic_test_file= 12526 lt_cv_deplibs_check_method='unknown' 12527 # Need to set the preceding variable on all platforms that support 12528 # interlibrary dependencies. 12529 # 'none' -- dependencies not supported. 12530 # 'unknown' -- same as none, but documents that we really don't know. 12531 # 'pass_all' -- all dependencies passed with no checks. 12532 # 'test_compile' -- check by making test program. 12533 # 'file_magic [[regex]]' -- check by looking for files in library path 12534 # that responds to the $file_magic_cmd with a given extended regex. 12535 # If you have 'file' or equivalent on your system and you're not sure 12536 # whether 'pass_all' will *always* work, you probably want this one. 12537 12538 case $host_os in 12539 aix[4-9]*) 12540 lt_cv_deplibs_check_method=pass_all 12541 ;; 12542 12543 beos*) 12544 lt_cv_deplibs_check_method=pass_all 12545 ;; 12546 12547 bsdi[45]*) 12548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12549 lt_cv_file_magic_cmd='$FILECMD -L' 12550 lt_cv_file_magic_test_file=/shlib/libc.so 12551 ;; 12552 12553 cygwin*) 12554 # func_win32_libid is a shell function defined in ltmain.sh 12555 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12556 lt_cv_file_magic_cmd='func_win32_libid' 12557 ;; 12558 12559 mingw* | pw32*) 12560 # Base MSYS/MinGW do not provide the 'file' command needed by 12561 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12562 # unless we find 'file', for example because we are cross-compiling. 12563 if ( file / ) >/dev/null 2>&1; then 12564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12565 lt_cv_file_magic_cmd='func_win32_libid' 12566 else 12567 # Keep this pattern in sync with the one in func_win32_libid. 12568 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12569 lt_cv_file_magic_cmd='$OBJDUMP -f' 12570 fi 12571 ;; 12572 12573 cegcc*) 12574 # use the weaker test based on 'objdump'. See mingw*. 12575 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12576 lt_cv_file_magic_cmd='$OBJDUMP -f' 12577 ;; 12578 12579 darwin* | rhapsody*) 12580 lt_cv_deplibs_check_method=pass_all 12581 ;; 12582 12583 freebsd* | dragonfly* | midnightbsd*) 12584 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12585 case $host_cpu in 12586 i*86 ) 12587 # Not sure whether the presence of OpenBSD here was a mistake. 12588 # Let's accept both of them until this is cleared up. 12589 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12590 lt_cv_file_magic_cmd=$FILECMD 12591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12592 ;; 12593 esac 12594 else 12595 lt_cv_deplibs_check_method=pass_all 12596 fi 12597 ;; 12598 12599 haiku*) 12600 lt_cv_deplibs_check_method=pass_all 12601 ;; 12602 12603 hpux10.20* | hpux11*) 12604 lt_cv_file_magic_cmd=$FILECMD 12605 case $host_cpu in 12606 ia64*) 12607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12608 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12609 ;; 12610 hppa*64*) 12611 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]' 12612 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12613 ;; 12614 *) 12615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12616 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12617 ;; 12618 esac 12619 ;; 12620 12621 interix[3-9]*) 12622 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12624 ;; 12625 12626 irix5* | irix6* | nonstopux*) 12627 case $LD in 12628 *-32|*"-32 ") libmagic=32-bit;; 12629 *-n32|*"-n32 ") libmagic=N32;; 12630 *-64|*"-64 ") libmagic=64-bit;; 12631 *) libmagic=never-match;; 12632 esac 12633 lt_cv_deplibs_check_method=pass_all 12634 ;; 12635 12636 # This must be glibc/ELF. 12637 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12638 lt_cv_deplibs_check_method=pass_all 12639 ;; 12640 12641 netbsd*) 12642 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12644 else 12645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12646 fi 12647 ;; 12648 12649 newos6*) 12650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12651 lt_cv_file_magic_cmd=$FILECMD 12652 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12653 ;; 12654 12655 *nto* | *qnx*) 12656 lt_cv_deplibs_check_method=pass_all 12657 ;; 12658 12659 openbsd* | bitrig*) 12660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12662 else 12663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12664 fi 12665 ;; 12666 12667 osf3* | osf4* | osf5*) 12668 lt_cv_deplibs_check_method=pass_all 12669 ;; 12670 12671 rdos*) 12672 lt_cv_deplibs_check_method=pass_all 12673 ;; 12674 12675 solaris*) 12676 lt_cv_deplibs_check_method=pass_all 12677 ;; 12678 12679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12680 lt_cv_deplibs_check_method=pass_all 12681 ;; 12682 12683 sysv4 | sysv4.3*) 12684 case $host_vendor in 12685 motorola) 12686 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]' 12687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12688 ;; 12689 ncr) 12690 lt_cv_deplibs_check_method=pass_all 12691 ;; 12692 sequent) 12693 lt_cv_file_magic_cmd='/bin/file' 12694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12695 ;; 12696 sni) 12697 lt_cv_file_magic_cmd='/bin/file' 12698 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12699 lt_cv_file_magic_test_file=/lib/libc.so 12700 ;; 12701 siemens) 12702 lt_cv_deplibs_check_method=pass_all 12703 ;; 12704 pc) 12705 lt_cv_deplibs_check_method=pass_all 12706 ;; 12707 esac 12708 ;; 12709 12710 tpf*) 12711 lt_cv_deplibs_check_method=pass_all 12712 ;; 12713 os2*) 12714 lt_cv_deplibs_check_method=pass_all 12715 ;; 12716 esac 12717 12718 fi 12719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12720 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12721 12722 file_magic_glob= 12723 want_nocaseglob=no 12724 if test "$build" = "$host"; then 12725 case $host_os in 12726 mingw* | pw32*) 12727 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12728 want_nocaseglob=yes 12729 else 12730 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12731 fi 12732 ;; 12733 esac 12734 fi 12735 12736 file_magic_cmd=$lt_cv_file_magic_cmd 12737 deplibs_check_method=$lt_cv_deplibs_check_method 12738 test -z "$deplibs_check_method" && deplibs_check_method=unknown 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 if test -n "$ac_tool_prefix"; then 12762 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12763 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12765 printf %s "checking for $ac_word... " >&6; } 12766 if test ${ac_cv_prog_DLLTOOL+y} 12767 then : 12768 printf %s "(cached) " >&6 12769 else $as_nop 12770 if test -n "$DLLTOOL"; then 12771 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12772 else 12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12774 for as_dir in $PATH 12775 do 12776 IFS=$as_save_IFS 12777 case $as_dir in #((( 12778 '') as_dir=./ ;; 12779 */) ;; 12780 *) as_dir=$as_dir/ ;; 12781 esac 12782 for ac_exec_ext in '' $ac_executable_extensions; do 12783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12784 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12786 break 2 12787 fi 12788 done 12789 done 12790 IFS=$as_save_IFS 12791 12792 fi 12793 fi 12794 DLLTOOL=$ac_cv_prog_DLLTOOL 12795 if test -n "$DLLTOOL"; then 12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12797 printf "%s\n" "$DLLTOOL" >&6; } 12798 else 12799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12800 printf "%s\n" "no" >&6; } 12801 fi 12802 12803 12804 fi 12805 if test -z "$ac_cv_prog_DLLTOOL"; then 12806 ac_ct_DLLTOOL=$DLLTOOL 12807 # Extract the first word of "dlltool", so it can be a program name with args. 12808 set dummy dlltool; ac_word=$2 12809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12810 printf %s "checking for $ac_word... " >&6; } 12811 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12812 then : 12813 printf %s "(cached) " >&6 12814 else $as_nop 12815 if test -n "$ac_ct_DLLTOOL"; then 12816 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12817 else 12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12819 for as_dir in $PATH 12820 do 12821 IFS=$as_save_IFS 12822 case $as_dir in #((( 12823 '') as_dir=./ ;; 12824 */) ;; 12825 *) as_dir=$as_dir/ ;; 12826 esac 12827 for ac_exec_ext in '' $ac_executable_extensions; do 12828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12829 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12831 break 2 12832 fi 12833 done 12834 done 12835 IFS=$as_save_IFS 12836 12837 fi 12838 fi 12839 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12840 if test -n "$ac_ct_DLLTOOL"; then 12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12842 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12843 else 12844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12845 printf "%s\n" "no" >&6; } 12846 fi 12847 12848 if test "x$ac_ct_DLLTOOL" = x; then 12849 DLLTOOL="false" 12850 else 12851 case $cross_compiling:$ac_tool_warned in 12852 yes:) 12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12855 ac_tool_warned=yes ;; 12856 esac 12857 DLLTOOL=$ac_ct_DLLTOOL 12858 fi 12859 else 12860 DLLTOOL="$ac_cv_prog_DLLTOOL" 12861 fi 12862 12863 test -z "$DLLTOOL" && DLLTOOL=dlltool 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12875 printf %s "checking how to associate runtime and link libraries... " >&6; } 12876 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12877 then : 12878 printf %s "(cached) " >&6 12879 else $as_nop 12880 lt_cv_sharedlib_from_linklib_cmd='unknown' 12881 12882 case $host_os in 12883 cygwin* | mingw* | pw32* | cegcc*) 12884 # two different shell functions defined in ltmain.sh; 12885 # decide which one to use based on capabilities of $DLLTOOL 12886 case `$DLLTOOL --help 2>&1` in 12887 *--identify-strict*) 12888 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12889 ;; 12890 *) 12891 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12892 ;; 12893 esac 12894 ;; 12895 *) 12896 # fallback: assume linklib IS sharedlib 12897 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12898 ;; 12899 esac 12900 12901 fi 12902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12903 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12904 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12905 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12906 12907 12908 12909 12910 12911 12912 12913 if test -n "$ac_tool_prefix"; then 12914 for ac_prog in ar 12915 do 12916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12919 printf %s "checking for $ac_word... " >&6; } 12920 if test ${ac_cv_prog_AR+y} 12921 then : 12922 printf %s "(cached) " >&6 12923 else $as_nop 12924 if test -n "$AR"; then 12925 ac_cv_prog_AR="$AR" # Let the user override the test. 12926 else 12927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12928 for as_dir in $PATH 12929 do 12930 IFS=$as_save_IFS 12931 case $as_dir in #((( 12932 '') as_dir=./ ;; 12933 */) ;; 12934 *) as_dir=$as_dir/ ;; 12935 esac 12936 for ac_exec_ext in '' $ac_executable_extensions; do 12937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12938 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12940 break 2 12941 fi 12942 done 12943 done 12944 IFS=$as_save_IFS 12945 12946 fi 12947 fi 12948 AR=$ac_cv_prog_AR 12949 if test -n "$AR"; then 12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12951 printf "%s\n" "$AR" >&6; } 12952 else 12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12954 printf "%s\n" "no" >&6; } 12955 fi 12956 12957 12958 test -n "$AR" && break 12959 done 12960 fi 12961 if test -z "$AR"; then 12962 ac_ct_AR=$AR 12963 for ac_prog in ar 12964 do 12965 # Extract the first word of "$ac_prog", so it can be a program name with args. 12966 set dummy $ac_prog; ac_word=$2 12967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12968 printf %s "checking for $ac_word... " >&6; } 12969 if test ${ac_cv_prog_ac_ct_AR+y} 12970 then : 12971 printf %s "(cached) " >&6 12972 else $as_nop 12973 if test -n "$ac_ct_AR"; then 12974 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12975 else 12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12977 for as_dir in $PATH 12978 do 12979 IFS=$as_save_IFS 12980 case $as_dir in #((( 12981 '') as_dir=./ ;; 12982 */) ;; 12983 *) as_dir=$as_dir/ ;; 12984 esac 12985 for ac_exec_ext in '' $ac_executable_extensions; do 12986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12987 ac_cv_prog_ac_ct_AR="$ac_prog" 12988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12989 break 2 12990 fi 12991 done 12992 done 12993 IFS=$as_save_IFS 12994 12995 fi 12996 fi 12997 ac_ct_AR=$ac_cv_prog_ac_ct_AR 12998 if test -n "$ac_ct_AR"; then 12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13000 printf "%s\n" "$ac_ct_AR" >&6; } 13001 else 13002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13003 printf "%s\n" "no" >&6; } 13004 fi 13005 13006 13007 test -n "$ac_ct_AR" && break 13008 done 13009 13010 if test "x$ac_ct_AR" = x; then 13011 AR="false" 13012 else 13013 case $cross_compiling:$ac_tool_warned in 13014 yes:) 13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13016 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13017 ac_tool_warned=yes ;; 13018 esac 13019 AR=$ac_ct_AR 13020 fi 13021 fi 13022 13023 : ${AR=ar} 13024 13025 13026 13027 13028 13029 13030 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 13031 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13032 # higher priority because thats what people were doing historically (setting 13033 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13034 # variable obsoleted/removed. 13035 13036 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13037 lt_ar_flags=$AR_FLAGS 13038 13039 13040 13041 13042 13043 13044 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13045 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13046 13047 13048 13049 13050 13051 13052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13053 printf %s "checking for archiver @FILE support... " >&6; } 13054 if test ${lt_cv_ar_at_file+y} 13055 then : 13056 printf %s "(cached) " >&6 13057 else $as_nop 13058 lt_cv_ar_at_file=no 13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13060 /* end confdefs.h. */ 13061 13062 int 13063 main (void) 13064 { 13065 13066 ; 13067 return 0; 13068 } 13069 _ACEOF 13070 if ac_fn_c_try_compile "$LINENO" 13071 then : 13072 echo conftest.$ac_objext > conftest.lst 13073 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13075 (eval $lt_ar_try) 2>&5 13076 ac_status=$? 13077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13078 test $ac_status = 0; } 13079 if test 0 -eq "$ac_status"; then 13080 # Ensure the archiver fails upon bogus file names. 13081 rm -f conftest.$ac_objext libconftest.a 13082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13083 (eval $lt_ar_try) 2>&5 13084 ac_status=$? 13085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13086 test $ac_status = 0; } 13087 if test 0 -ne "$ac_status"; then 13088 lt_cv_ar_at_file=@ 13089 fi 13090 fi 13091 rm -f conftest.* libconftest.a 13092 13093 fi 13094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13095 13096 fi 13097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13098 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13099 13100 if test no = "$lt_cv_ar_at_file"; then 13101 archiver_list_spec= 13102 else 13103 archiver_list_spec=$lt_cv_ar_at_file 13104 fi 13105 13106 13107 13108 13109 13110 13111 13112 if test -n "$ac_tool_prefix"; then 13113 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13114 set dummy ${ac_tool_prefix}strip; ac_word=$2 13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13116 printf %s "checking for $ac_word... " >&6; } 13117 if test ${ac_cv_prog_STRIP+y} 13118 then : 13119 printf %s "(cached) " >&6 13120 else $as_nop 13121 if test -n "$STRIP"; then 13122 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13123 else 13124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13125 for as_dir in $PATH 13126 do 13127 IFS=$as_save_IFS 13128 case $as_dir in #((( 13129 '') as_dir=./ ;; 13130 */) ;; 13131 *) as_dir=$as_dir/ ;; 13132 esac 13133 for ac_exec_ext in '' $ac_executable_extensions; do 13134 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13135 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13137 break 2 13138 fi 13139 done 13140 done 13141 IFS=$as_save_IFS 13142 13143 fi 13144 fi 13145 STRIP=$ac_cv_prog_STRIP 13146 if test -n "$STRIP"; then 13147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13148 printf "%s\n" "$STRIP" >&6; } 13149 else 13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13151 printf "%s\n" "no" >&6; } 13152 fi 13153 13154 13155 fi 13156 if test -z "$ac_cv_prog_STRIP"; then 13157 ac_ct_STRIP=$STRIP 13158 # Extract the first word of "strip", so it can be a program name with args. 13159 set dummy strip; ac_word=$2 13160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13161 printf %s "checking for $ac_word... " >&6; } 13162 if test ${ac_cv_prog_ac_ct_STRIP+y} 13163 then : 13164 printf %s "(cached) " >&6 13165 else $as_nop 13166 if test -n "$ac_ct_STRIP"; then 13167 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13168 else 13169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13170 for as_dir in $PATH 13171 do 13172 IFS=$as_save_IFS 13173 case $as_dir in #((( 13174 '') as_dir=./ ;; 13175 */) ;; 13176 *) as_dir=$as_dir/ ;; 13177 esac 13178 for ac_exec_ext in '' $ac_executable_extensions; do 13179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13180 ac_cv_prog_ac_ct_STRIP="strip" 13181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13182 break 2 13183 fi 13184 done 13185 done 13186 IFS=$as_save_IFS 13187 13188 fi 13189 fi 13190 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13191 if test -n "$ac_ct_STRIP"; then 13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13193 printf "%s\n" "$ac_ct_STRIP" >&6; } 13194 else 13195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13196 printf "%s\n" "no" >&6; } 13197 fi 13198 13199 if test "x$ac_ct_STRIP" = x; then 13200 STRIP=":" 13201 else 13202 case $cross_compiling:$ac_tool_warned in 13203 yes:) 13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13206 ac_tool_warned=yes ;; 13207 esac 13208 STRIP=$ac_ct_STRIP 13209 fi 13210 else 13211 STRIP="$ac_cv_prog_STRIP" 13212 fi 13213 13214 test -z "$STRIP" && STRIP=: 13215 13216 13217 13218 13219 13220 13221 if test -n "$ac_tool_prefix"; then 13222 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13225 printf %s "checking for $ac_word... " >&6; } 13226 if test ${ac_cv_prog_RANLIB+y} 13227 then : 13228 printf %s "(cached) " >&6 13229 else $as_nop 13230 if test -n "$RANLIB"; then 13231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13232 else 13233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13234 for as_dir in $PATH 13235 do 13236 IFS=$as_save_IFS 13237 case $as_dir in #((( 13238 '') as_dir=./ ;; 13239 */) ;; 13240 *) as_dir=$as_dir/ ;; 13241 esac 13242 for ac_exec_ext in '' $ac_executable_extensions; do 13243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13244 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13246 break 2 13247 fi 13248 done 13249 done 13250 IFS=$as_save_IFS 13251 13252 fi 13253 fi 13254 RANLIB=$ac_cv_prog_RANLIB 13255 if test -n "$RANLIB"; then 13256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13257 printf "%s\n" "$RANLIB" >&6; } 13258 else 13259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13260 printf "%s\n" "no" >&6; } 13261 fi 13262 13263 13264 fi 13265 if test -z "$ac_cv_prog_RANLIB"; then 13266 ac_ct_RANLIB=$RANLIB 13267 # Extract the first word of "ranlib", so it can be a program name with args. 13268 set dummy ranlib; ac_word=$2 13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13270 printf %s "checking for $ac_word... " >&6; } 13271 if test ${ac_cv_prog_ac_ct_RANLIB+y} 13272 then : 13273 printf %s "(cached) " >&6 13274 else $as_nop 13275 if test -n "$ac_ct_RANLIB"; then 13276 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13277 else 13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13279 for as_dir in $PATH 13280 do 13281 IFS=$as_save_IFS 13282 case $as_dir in #((( 13283 '') as_dir=./ ;; 13284 */) ;; 13285 *) as_dir=$as_dir/ ;; 13286 esac 13287 for ac_exec_ext in '' $ac_executable_extensions; do 13288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13289 ac_cv_prog_ac_ct_RANLIB="ranlib" 13290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13291 break 2 13292 fi 13293 done 13294 done 13295 IFS=$as_save_IFS 13296 13297 fi 13298 fi 13299 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13300 if test -n "$ac_ct_RANLIB"; then 13301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13302 printf "%s\n" "$ac_ct_RANLIB" >&6; } 13303 else 13304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13305 printf "%s\n" "no" >&6; } 13306 fi 13307 13308 if test "x$ac_ct_RANLIB" = x; then 13309 RANLIB=":" 13310 else 13311 case $cross_compiling:$ac_tool_warned in 13312 yes:) 13313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13314 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13315 ac_tool_warned=yes ;; 13316 esac 13317 RANLIB=$ac_ct_RANLIB 13318 fi 13319 else 13320 RANLIB="$ac_cv_prog_RANLIB" 13321 fi 13322 13323 test -z "$RANLIB" && RANLIB=: 13324 13325 13326 13327 13328 13329 13330 # Determine commands to create old-style static archives. 13331 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13332 old_postinstall_cmds='chmod 644 $oldlib' 13333 old_postuninstall_cmds= 13334 13335 if test -n "$RANLIB"; then 13336 case $host_os in 13337 bitrig* | openbsd*) 13338 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13339 ;; 13340 *) 13341 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13342 ;; 13343 esac 13344 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13345 fi 13346 13347 case $host_os in 13348 darwin*) 13349 lock_old_archive_extraction=yes ;; 13350 *) 13351 lock_old_archive_extraction=no ;; 13352 esac 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 # If no C compiler was specified, use CC. 13393 LTCC=${LTCC-"$CC"} 13394 13395 # If no C compiler flags were specified, use CFLAGS. 13396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13397 13398 # Allow CC to be a program name with arguments. 13399 compiler=$CC 13400 13401 13402 # Check for command to grab the raw symbol name followed by C symbol from nm. 13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13404 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13405 if test ${lt_cv_sys_global_symbol_pipe+y} 13406 then : 13407 printf %s "(cached) " >&6 13408 else $as_nop 13409 13410 # These are sane defaults that work on at least a few old systems. 13411 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13412 13413 # Character class describing NM global symbol codes. 13414 symcode='[BCDEGRST]' 13415 13416 # Regexp to match symbols that can be accessed directly from C. 13417 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13418 13419 # Define system-specific variables. 13420 case $host_os in 13421 aix*) 13422 symcode='[BCDT]' 13423 ;; 13424 cygwin* | mingw* | pw32* | cegcc*) 13425 symcode='[ABCDGISTW]' 13426 ;; 13427 hpux*) 13428 if test ia64 = "$host_cpu"; then 13429 symcode='[ABCDEGRST]' 13430 fi 13431 ;; 13432 irix* | nonstopux*) 13433 symcode='[BCDEGRST]' 13434 ;; 13435 osf*) 13436 symcode='[BCDEGQRST]' 13437 ;; 13438 solaris*) 13439 symcode='[BDRT]' 13440 ;; 13441 sco3.2v5*) 13442 symcode='[DT]' 13443 ;; 13444 sysv4.2uw2*) 13445 symcode='[DT]' 13446 ;; 13447 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13448 symcode='[ABDT]' 13449 ;; 13450 sysv4) 13451 symcode='[DFNSTU]' 13452 ;; 13453 esac 13454 13455 # If we're using GNU nm, then use its standard symbol codes. 13456 case `$NM -V 2>&1` in 13457 *GNU* | *'with BFD'*) 13458 symcode='[ABCDGIRSTW]' ;; 13459 esac 13460 13461 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13462 # Gets list of data symbols to import. 13463 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13464 # Adjust the below global symbol transforms to fixup imported variables. 13465 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13466 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13467 lt_c_name_lib_hook="\ 13468 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13469 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13470 else 13471 # Disable hooks by default. 13472 lt_cv_sys_global_symbol_to_import= 13473 lt_cdecl_hook= 13474 lt_c_name_hook= 13475 lt_c_name_lib_hook= 13476 fi 13477 13478 # Transform an extracted symbol line into a proper C declaration. 13479 # Some systems (esp. on ia64) link data and code symbols differently, 13480 # so use this general approach. 13481 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13482 $lt_cdecl_hook\ 13483 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13484 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13485 13486 # Transform an extracted symbol line into symbol name and symbol address 13487 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13488 $lt_c_name_hook\ 13489 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13490 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13491 13492 # Transform an extracted symbol line into symbol name with lib prefix and 13493 # symbol address. 13494 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13495 $lt_c_name_lib_hook\ 13496 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13497 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13498 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13499 13500 # Handle CRLF in mingw tool chain 13501 opt_cr= 13502 case $build_os in 13503 mingw*) 13504 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13505 ;; 13506 esac 13507 13508 # Try without a prefix underscore, then with it. 13509 for ac_symprfx in "" "_"; do 13510 13511 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13512 symxfrm="\\1 $ac_symprfx\\2 \\2" 13513 13514 # Write the raw and C identifiers. 13515 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13516 # Fake it for dumpbin and say T for any non-static function, 13517 # D for any global variable and I for any imported variable. 13518 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13519 # which start with @ or ?. 13520 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13521 " {last_section=section; section=\$ 3};"\ 13522 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13523 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13524 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13525 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13526 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13527 " \$ 0!~/External *\|/{next};"\ 13528 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13529 " {if(hide[section]) next};"\ 13530 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13531 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13532 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13533 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13534 " ' prfx=^$ac_symprfx" 13535 else 13536 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13537 fi 13538 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13539 13540 # Check to see that the pipe works correctly. 13541 pipe_works=no 13542 13543 rm -f conftest* 13544 cat > conftest.$ac_ext <<_LT_EOF 13545 #ifdef __cplusplus 13546 extern "C" { 13547 #endif 13548 char nm_test_var; 13549 void nm_test_func(void); 13550 void nm_test_func(void){} 13551 #ifdef __cplusplus 13552 } 13553 #endif 13554 int main(){nm_test_var='a';nm_test_func();return(0);} 13555 _LT_EOF 13556 13557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13558 (eval $ac_compile) 2>&5 13559 ac_status=$? 13560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13561 test $ac_status = 0; }; then 13562 # Now try to grab the symbols. 13563 nlist=conftest.nm 13564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13565 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13566 ac_status=$? 13567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13568 test $ac_status = 0; } && test -s "$nlist"; then 13569 # Try sorting and uniquifying the output. 13570 if sort "$nlist" | uniq > "$nlist"T; then 13571 mv -f "$nlist"T "$nlist" 13572 else 13573 rm -f "$nlist"T 13574 fi 13575 13576 # Make sure that we snagged all the symbols we need. 13577 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13578 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13579 cat <<_LT_EOF > conftest.$ac_ext 13580 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13581 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13582 /* DATA imports from DLLs on WIN32 can't be const, because runtime 13583 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13584 # define LT_DLSYM_CONST 13585 #elif defined __osf__ 13586 /* This system does not cope well with relocations in const data. */ 13587 # define LT_DLSYM_CONST 13588 #else 13589 # define LT_DLSYM_CONST const 13590 #endif 13591 13592 #ifdef __cplusplus 13593 extern "C" { 13594 #endif 13595 13596 _LT_EOF 13597 # Now generate the symbol file. 13598 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13599 13600 cat <<_LT_EOF >> conftest.$ac_ext 13601 13602 /* The mapping between symbol names and symbols. */ 13603 LT_DLSYM_CONST struct { 13604 const char *name; 13605 void *address; 13606 } 13607 lt__PROGRAM__LTX_preloaded_symbols[] = 13608 { 13609 { "@PROGRAM@", (void *) 0 }, 13610 _LT_EOF 13611 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13612 cat <<\_LT_EOF >> conftest.$ac_ext 13613 {0, (void *) 0} 13614 }; 13615 13616 /* This works around a problem in FreeBSD linker */ 13617 #ifdef FREEBSD_WORKAROUND 13618 static const void *lt_preloaded_setup() { 13619 return lt__PROGRAM__LTX_preloaded_symbols; 13620 } 13621 #endif 13622 13623 #ifdef __cplusplus 13624 } 13625 #endif 13626 _LT_EOF 13627 # Now try linking the two files. 13628 mv conftest.$ac_objext conftstm.$ac_objext 13629 lt_globsym_save_LIBS=$LIBS 13630 lt_globsym_save_CFLAGS=$CFLAGS 13631 LIBS=conftstm.$ac_objext 13632 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13634 (eval $ac_link) 2>&5 13635 ac_status=$? 13636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13637 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13638 pipe_works=yes 13639 fi 13640 LIBS=$lt_globsym_save_LIBS 13641 CFLAGS=$lt_globsym_save_CFLAGS 13642 else 13643 echo "cannot find nm_test_func in $nlist" >&5 13644 fi 13645 else 13646 echo "cannot find nm_test_var in $nlist" >&5 13647 fi 13648 else 13649 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13650 fi 13651 else 13652 echo "$progname: failed program was:" >&5 13653 cat conftest.$ac_ext >&5 13654 fi 13655 rm -rf conftest* conftst* 13656 13657 # Do not use the global_symbol_pipe unless it works. 13658 if test yes = "$pipe_works"; then 13659 break 13660 else 13661 lt_cv_sys_global_symbol_pipe= 13662 fi 13663 done 13664 13665 fi 13666 13667 if test -z "$lt_cv_sys_global_symbol_pipe"; then 13668 lt_cv_sys_global_symbol_to_cdecl= 13669 fi 13670 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13672 printf "%s\n" "failed" >&6; } 13673 else 13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13675 printf "%s\n" "ok" >&6; } 13676 fi 13677 13678 # Response file support. 13679 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13680 nm_file_list_spec='@' 13681 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13682 nm_file_list_spec='@' 13683 fi 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13722 printf %s "checking for sysroot... " >&6; } 13723 13724 # Check whether --with-sysroot was given. 13725 if test ${with_sysroot+y} 13726 then : 13727 withval=$with_sysroot; 13728 else $as_nop 13729 with_sysroot=no 13730 fi 13731 13732 13733 lt_sysroot= 13734 case $with_sysroot in #( 13735 yes) 13736 if test yes = "$GCC"; then 13737 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13738 fi 13739 ;; #( 13740 /*) 13741 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13742 ;; #( 13743 no|'') 13744 ;; #( 13745 *) 13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13747 printf "%s\n" "$with_sysroot" >&6; } 13748 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13749 ;; 13750 esac 13751 13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13753 printf "%s\n" "${lt_sysroot:-no}" >&6; } 13754 13755 13756 13757 13758 13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13760 printf %s "checking for a working dd... " >&6; } 13761 if test ${ac_cv_path_lt_DD+y} 13762 then : 13763 printf %s "(cached) " >&6 13764 else $as_nop 13765 printf 0123456789abcdef0123456789abcdef >conftest.i 13766 cat conftest.i conftest.i >conftest2.i 13767 : ${lt_DD:=$DD} 13768 if test -z "$lt_DD"; then 13769 ac_path_lt_DD_found=false 13770 # Loop through the user's path and test for each of PROGNAME-LIST 13771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13772 for as_dir in $PATH 13773 do 13774 IFS=$as_save_IFS 13775 case $as_dir in #((( 13776 '') as_dir=./ ;; 13777 */) ;; 13778 *) as_dir=$as_dir/ ;; 13779 esac 13780 for ac_prog in dd 13781 do 13782 for ac_exec_ext in '' $ac_executable_extensions; do 13783 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13784 as_fn_executable_p "$ac_path_lt_DD" || continue 13785 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13786 cmp -s conftest.i conftest.out \ 13787 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13788 fi 13789 $ac_path_lt_DD_found && break 3 13790 done 13791 done 13792 done 13793 IFS=$as_save_IFS 13794 if test -z "$ac_cv_path_lt_DD"; then 13795 : 13796 fi 13797 else 13798 ac_cv_path_lt_DD=$lt_DD 13799 fi 13800 13801 rm -f conftest.i conftest2.i conftest.out 13802 fi 13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13804 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13805 13806 13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13808 printf %s "checking how to truncate binary pipes... " >&6; } 13809 if test ${lt_cv_truncate_bin+y} 13810 then : 13811 printf %s "(cached) " >&6 13812 else $as_nop 13813 printf 0123456789abcdef0123456789abcdef >conftest.i 13814 cat conftest.i conftest.i >conftest2.i 13815 lt_cv_truncate_bin= 13816 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13817 cmp -s conftest.i conftest.out \ 13818 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13819 fi 13820 rm -f conftest.i conftest2.i conftest.out 13821 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13822 fi 13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13824 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13825 13826 13827 13828 13829 13830 13831 13832 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13833 func_cc_basename () 13834 { 13835 for cc_temp in $*""; do 13836 case $cc_temp in 13837 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13838 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13839 \-*) ;; 13840 *) break;; 13841 esac 13842 done 13843 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13844 } 13845 13846 # Check whether --enable-libtool-lock was given. 13847 if test ${enable_libtool_lock+y} 13848 then : 13849 enableval=$enable_libtool_lock; 13850 fi 13851 13852 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13853 13854 # Some flags need to be propagated to the compiler or linker for good 13855 # libtool support. 13856 case $host in 13857 ia64-*-hpux*) 13858 # Find out what ABI is being produced by ac_compile, and set mode 13859 # options accordingly. 13860 echo 'int i;' > conftest.$ac_ext 13861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13862 (eval $ac_compile) 2>&5 13863 ac_status=$? 13864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13865 test $ac_status = 0; }; then 13866 case `$FILECMD conftest.$ac_objext` in 13867 *ELF-32*) 13868 HPUX_IA64_MODE=32 13869 ;; 13870 *ELF-64*) 13871 HPUX_IA64_MODE=64 13872 ;; 13873 esac 13874 fi 13875 rm -rf conftest* 13876 ;; 13877 *-*-irix6*) 13878 # Find out what ABI is being produced by ac_compile, and set linker 13879 # options accordingly. 13880 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13882 (eval $ac_compile) 2>&5 13883 ac_status=$? 13884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13885 test $ac_status = 0; }; then 13886 if test yes = "$lt_cv_prog_gnu_ld"; then 13887 case `$FILECMD conftest.$ac_objext` in 13888 *32-bit*) 13889 LD="${LD-ld} -melf32bsmip" 13890 ;; 13891 *N32*) 13892 LD="${LD-ld} -melf32bmipn32" 13893 ;; 13894 *64-bit*) 13895 LD="${LD-ld} -melf64bmip" 13896 ;; 13897 esac 13898 else 13899 case `$FILECMD conftest.$ac_objext` in 13900 *32-bit*) 13901 LD="${LD-ld} -32" 13902 ;; 13903 *N32*) 13904 LD="${LD-ld} -n32" 13905 ;; 13906 *64-bit*) 13907 LD="${LD-ld} -64" 13908 ;; 13909 esac 13910 fi 13911 fi 13912 rm -rf conftest* 13913 ;; 13914 13915 mips64*-*linux*) 13916 # Find out what ABI is being produced by ac_compile, and set linker 13917 # options accordingly. 13918 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13920 (eval $ac_compile) 2>&5 13921 ac_status=$? 13922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13923 test $ac_status = 0; }; then 13924 emul=elf 13925 case `$FILECMD conftest.$ac_objext` in 13926 *32-bit*) 13927 emul="${emul}32" 13928 ;; 13929 *64-bit*) 13930 emul="${emul}64" 13931 ;; 13932 esac 13933 case `$FILECMD conftest.$ac_objext` in 13934 *MSB*) 13935 emul="${emul}btsmip" 13936 ;; 13937 *LSB*) 13938 emul="${emul}ltsmip" 13939 ;; 13940 esac 13941 case `$FILECMD conftest.$ac_objext` in 13942 *N32*) 13943 emul="${emul}n32" 13944 ;; 13945 esac 13946 LD="${LD-ld} -m $emul" 13947 fi 13948 rm -rf conftest* 13949 ;; 13950 13951 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13952 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13953 # Find out what ABI is being produced by ac_compile, and set linker 13954 # options accordingly. Note that the listed cases only cover the 13955 # situations where additional linker options are needed (such as when 13956 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13957 # vice versa); the common cases where no linker options are needed do 13958 # not appear in the list. 13959 echo 'int i;' > conftest.$ac_ext 13960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13961 (eval $ac_compile) 2>&5 13962 ac_status=$? 13963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13964 test $ac_status = 0; }; then 13965 case `$FILECMD conftest.o` in 13966 *32-bit*) 13967 case $host in 13968 x86_64-*kfreebsd*-gnu) 13969 LD="${LD-ld} -m elf_i386_fbsd" 13970 ;; 13971 x86_64-*linux*) 13972 case `$FILECMD conftest.o` in 13973 *x86-64*) 13974 LD="${LD-ld} -m elf32_x86_64" 13975 ;; 13976 *) 13977 LD="${LD-ld} -m elf_i386" 13978 ;; 13979 esac 13980 ;; 13981 powerpc64le-*linux*) 13982 LD="${LD-ld} -m elf32lppclinux" 13983 ;; 13984 powerpc64-*linux*) 13985 LD="${LD-ld} -m elf32ppclinux" 13986 ;; 13987 s390x-*linux*) 13988 LD="${LD-ld} -m elf_s390" 13989 ;; 13990 sparc64-*linux*) 13991 LD="${LD-ld} -m elf32_sparc" 13992 ;; 13993 esac 13994 ;; 13995 *64-bit*) 13996 case $host in 13997 x86_64-*kfreebsd*-gnu) 13998 LD="${LD-ld} -m elf_x86_64_fbsd" 13999 ;; 14000 x86_64-*linux*) 14001 LD="${LD-ld} -m elf_x86_64" 14002 ;; 14003 powerpcle-*linux*) 14004 LD="${LD-ld} -m elf64lppc" 14005 ;; 14006 powerpc-*linux*) 14007 LD="${LD-ld} -m elf64ppc" 14008 ;; 14009 s390*-*linux*|s390*-*tpf*) 14010 LD="${LD-ld} -m elf64_s390" 14011 ;; 14012 sparc*-*linux*) 14013 LD="${LD-ld} -m elf64_sparc" 14014 ;; 14015 esac 14016 ;; 14017 esac 14018 fi 14019 rm -rf conftest* 14020 ;; 14021 14022 *-*-sco3.2v5*) 14023 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14024 SAVE_CFLAGS=$CFLAGS 14025 CFLAGS="$CFLAGS -belf" 14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14027 printf %s "checking whether the C compiler needs -belf... " >&6; } 14028 if test ${lt_cv_cc_needs_belf+y} 14029 then : 14030 printf %s "(cached) " >&6 14031 else $as_nop 14032 ac_ext=c 14033 ac_cpp='$CPP $CPPFLAGS' 14034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14036 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14037 14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14039 /* end confdefs.h. */ 14040 14041 int 14042 main (void) 14043 { 14044 14045 ; 14046 return 0; 14047 } 14048 _ACEOF 14049 if ac_fn_c_try_link "$LINENO" 14050 then : 14051 lt_cv_cc_needs_belf=yes 14052 else $as_nop 14053 lt_cv_cc_needs_belf=no 14054 fi 14055 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14056 conftest$ac_exeext conftest.$ac_ext 14057 ac_ext=c 14058 ac_cpp='$CPP $CPPFLAGS' 14059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14061 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14062 14063 fi 14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14065 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14066 if test yes != "$lt_cv_cc_needs_belf"; then 14067 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14068 CFLAGS=$SAVE_CFLAGS 14069 fi 14070 ;; 14071 *-*solaris*) 14072 # Find out what ABI is being produced by ac_compile, and set linker 14073 # options accordingly. 14074 echo 'int i;' > conftest.$ac_ext 14075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14076 (eval $ac_compile) 2>&5 14077 ac_status=$? 14078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14079 test $ac_status = 0; }; then 14080 case `$FILECMD conftest.o` in 14081 *64-bit*) 14082 case $lt_cv_prog_gnu_ld in 14083 yes*) 14084 case $host in 14085 i?86-*-solaris*|x86_64-*-solaris*) 14086 LD="${LD-ld} -m elf_x86_64" 14087 ;; 14088 sparc*-*-solaris*) 14089 LD="${LD-ld} -m elf64_sparc" 14090 ;; 14091 esac 14092 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14093 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14094 LD=${LD-ld}_sol2 14095 fi 14096 ;; 14097 *) 14098 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14099 LD="${LD-ld} -64" 14100 fi 14101 ;; 14102 esac 14103 ;; 14104 esac 14105 fi 14106 rm -rf conftest* 14107 ;; 14108 esac 14109 14110 need_locks=$enable_libtool_lock 14111 14112 if test -n "$ac_tool_prefix"; then 14113 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14114 set dummy ${ac_tool_prefix}mt; ac_word=$2 14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14116 printf %s "checking for $ac_word... " >&6; } 14117 if test ${ac_cv_prog_MANIFEST_TOOL+y} 14118 then : 14119 printf %s "(cached) " >&6 14120 else $as_nop 14121 if test -n "$MANIFEST_TOOL"; then 14122 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14123 else 14124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14125 for as_dir in $PATH 14126 do 14127 IFS=$as_save_IFS 14128 case $as_dir in #((( 14129 '') as_dir=./ ;; 14130 */) ;; 14131 *) as_dir=$as_dir/ ;; 14132 esac 14133 for ac_exec_ext in '' $ac_executable_extensions; do 14134 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14135 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14137 break 2 14138 fi 14139 done 14140 done 14141 IFS=$as_save_IFS 14142 14143 fi 14144 fi 14145 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14146 if test -n "$MANIFEST_TOOL"; then 14147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14148 printf "%s\n" "$MANIFEST_TOOL" >&6; } 14149 else 14150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14151 printf "%s\n" "no" >&6; } 14152 fi 14153 14154 14155 fi 14156 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14157 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14158 # Extract the first word of "mt", so it can be a program name with args. 14159 set dummy mt; ac_word=$2 14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14161 printf %s "checking for $ac_word... " >&6; } 14162 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14163 then : 14164 printf %s "(cached) " >&6 14165 else $as_nop 14166 if test -n "$ac_ct_MANIFEST_TOOL"; then 14167 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14168 else 14169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14170 for as_dir in $PATH 14171 do 14172 IFS=$as_save_IFS 14173 case $as_dir in #((( 14174 '') as_dir=./ ;; 14175 */) ;; 14176 *) as_dir=$as_dir/ ;; 14177 esac 14178 for ac_exec_ext in '' $ac_executable_extensions; do 14179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14180 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14182 break 2 14183 fi 14184 done 14185 done 14186 IFS=$as_save_IFS 14187 14188 fi 14189 fi 14190 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14191 if test -n "$ac_ct_MANIFEST_TOOL"; then 14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14193 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14194 else 14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14196 printf "%s\n" "no" >&6; } 14197 fi 14198 14199 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14200 MANIFEST_TOOL=":" 14201 else 14202 case $cross_compiling:$ac_tool_warned in 14203 yes:) 14204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14206 ac_tool_warned=yes ;; 14207 esac 14208 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14209 fi 14210 else 14211 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14212 fi 14213 14214 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14216 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14217 if test ${lt_cv_path_mainfest_tool+y} 14218 then : 14219 printf %s "(cached) " >&6 14220 else $as_nop 14221 lt_cv_path_mainfest_tool=no 14222 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14223 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14224 cat conftest.err >&5 14225 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14226 lt_cv_path_mainfest_tool=yes 14227 fi 14228 rm -f conftest* 14229 fi 14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14231 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14232 if test yes != "$lt_cv_path_mainfest_tool"; then 14233 MANIFEST_TOOL=: 14234 fi 14235 14236 14237 14238 14239 14240 14241 case $host_os in 14242 rhapsody* | darwin*) 14243 if test -n "$ac_tool_prefix"; then 14244 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14245 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14247 printf %s "checking for $ac_word... " >&6; } 14248 if test ${ac_cv_prog_DSYMUTIL+y} 14249 then : 14250 printf %s "(cached) " >&6 14251 else $as_nop 14252 if test -n "$DSYMUTIL"; then 14253 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14254 else 14255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14256 for as_dir in $PATH 14257 do 14258 IFS=$as_save_IFS 14259 case $as_dir in #((( 14260 '') as_dir=./ ;; 14261 */) ;; 14262 *) as_dir=$as_dir/ ;; 14263 esac 14264 for ac_exec_ext in '' $ac_executable_extensions; do 14265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14266 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14268 break 2 14269 fi 14270 done 14271 done 14272 IFS=$as_save_IFS 14273 14274 fi 14275 fi 14276 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14277 if test -n "$DSYMUTIL"; then 14278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14279 printf "%s\n" "$DSYMUTIL" >&6; } 14280 else 14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14282 printf "%s\n" "no" >&6; } 14283 fi 14284 14285 14286 fi 14287 if test -z "$ac_cv_prog_DSYMUTIL"; then 14288 ac_ct_DSYMUTIL=$DSYMUTIL 14289 # Extract the first word of "dsymutil", so it can be a program name with args. 14290 set dummy dsymutil; ac_word=$2 14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14292 printf %s "checking for $ac_word... " >&6; } 14293 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14294 then : 14295 printf %s "(cached) " >&6 14296 else $as_nop 14297 if test -n "$ac_ct_DSYMUTIL"; then 14298 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14299 else 14300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14301 for as_dir in $PATH 14302 do 14303 IFS=$as_save_IFS 14304 case $as_dir in #((( 14305 '') as_dir=./ ;; 14306 */) ;; 14307 *) as_dir=$as_dir/ ;; 14308 esac 14309 for ac_exec_ext in '' $ac_executable_extensions; do 14310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14311 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14313 break 2 14314 fi 14315 done 14316 done 14317 IFS=$as_save_IFS 14318 14319 fi 14320 fi 14321 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14322 if test -n "$ac_ct_DSYMUTIL"; then 14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14324 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14325 else 14326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14327 printf "%s\n" "no" >&6; } 14328 fi 14329 14330 if test "x$ac_ct_DSYMUTIL" = x; then 14331 DSYMUTIL=":" 14332 else 14333 case $cross_compiling:$ac_tool_warned in 14334 yes:) 14335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14336 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14337 ac_tool_warned=yes ;; 14338 esac 14339 DSYMUTIL=$ac_ct_DSYMUTIL 14340 fi 14341 else 14342 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14343 fi 14344 14345 if test -n "$ac_tool_prefix"; then 14346 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14347 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14349 printf %s "checking for $ac_word... " >&6; } 14350 if test ${ac_cv_prog_NMEDIT+y} 14351 then : 14352 printf %s "(cached) " >&6 14353 else $as_nop 14354 if test -n "$NMEDIT"; then 14355 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14356 else 14357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14358 for as_dir in $PATH 14359 do 14360 IFS=$as_save_IFS 14361 case $as_dir in #((( 14362 '') as_dir=./ ;; 14363 */) ;; 14364 *) as_dir=$as_dir/ ;; 14365 esac 14366 for ac_exec_ext in '' $ac_executable_extensions; do 14367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14368 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14370 break 2 14371 fi 14372 done 14373 done 14374 IFS=$as_save_IFS 14375 14376 fi 14377 fi 14378 NMEDIT=$ac_cv_prog_NMEDIT 14379 if test -n "$NMEDIT"; then 14380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14381 printf "%s\n" "$NMEDIT" >&6; } 14382 else 14383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14384 printf "%s\n" "no" >&6; } 14385 fi 14386 14387 14388 fi 14389 if test -z "$ac_cv_prog_NMEDIT"; then 14390 ac_ct_NMEDIT=$NMEDIT 14391 # Extract the first word of "nmedit", so it can be a program name with args. 14392 set dummy nmedit; ac_word=$2 14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14394 printf %s "checking for $ac_word... " >&6; } 14395 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14396 then : 14397 printf %s "(cached) " >&6 14398 else $as_nop 14399 if test -n "$ac_ct_NMEDIT"; then 14400 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14401 else 14402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14403 for as_dir in $PATH 14404 do 14405 IFS=$as_save_IFS 14406 case $as_dir in #((( 14407 '') as_dir=./ ;; 14408 */) ;; 14409 *) as_dir=$as_dir/ ;; 14410 esac 14411 for ac_exec_ext in '' $ac_executable_extensions; do 14412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14413 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14415 break 2 14416 fi 14417 done 14418 done 14419 IFS=$as_save_IFS 14420 14421 fi 14422 fi 14423 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14424 if test -n "$ac_ct_NMEDIT"; then 14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14426 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14427 else 14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14429 printf "%s\n" "no" >&6; } 14430 fi 14431 14432 if test "x$ac_ct_NMEDIT" = x; then 14433 NMEDIT=":" 14434 else 14435 case $cross_compiling:$ac_tool_warned in 14436 yes:) 14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14438 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14439 ac_tool_warned=yes ;; 14440 esac 14441 NMEDIT=$ac_ct_NMEDIT 14442 fi 14443 else 14444 NMEDIT="$ac_cv_prog_NMEDIT" 14445 fi 14446 14447 if test -n "$ac_tool_prefix"; then 14448 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14449 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14451 printf %s "checking for $ac_word... " >&6; } 14452 if test ${ac_cv_prog_LIPO+y} 14453 then : 14454 printf %s "(cached) " >&6 14455 else $as_nop 14456 if test -n "$LIPO"; then 14457 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14458 else 14459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14460 for as_dir in $PATH 14461 do 14462 IFS=$as_save_IFS 14463 case $as_dir in #((( 14464 '') as_dir=./ ;; 14465 */) ;; 14466 *) as_dir=$as_dir/ ;; 14467 esac 14468 for ac_exec_ext in '' $ac_executable_extensions; do 14469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14470 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14472 break 2 14473 fi 14474 done 14475 done 14476 IFS=$as_save_IFS 14477 14478 fi 14479 fi 14480 LIPO=$ac_cv_prog_LIPO 14481 if test -n "$LIPO"; then 14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14483 printf "%s\n" "$LIPO" >&6; } 14484 else 14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14486 printf "%s\n" "no" >&6; } 14487 fi 14488 14489 14490 fi 14491 if test -z "$ac_cv_prog_LIPO"; then 14492 ac_ct_LIPO=$LIPO 14493 # Extract the first word of "lipo", so it can be a program name with args. 14494 set dummy lipo; ac_word=$2 14495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14496 printf %s "checking for $ac_word... " >&6; } 14497 if test ${ac_cv_prog_ac_ct_LIPO+y} 14498 then : 14499 printf %s "(cached) " >&6 14500 else $as_nop 14501 if test -n "$ac_ct_LIPO"; then 14502 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14503 else 14504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14505 for as_dir in $PATH 14506 do 14507 IFS=$as_save_IFS 14508 case $as_dir in #((( 14509 '') as_dir=./ ;; 14510 */) ;; 14511 *) as_dir=$as_dir/ ;; 14512 esac 14513 for ac_exec_ext in '' $ac_executable_extensions; do 14514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14515 ac_cv_prog_ac_ct_LIPO="lipo" 14516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14517 break 2 14518 fi 14519 done 14520 done 14521 IFS=$as_save_IFS 14522 14523 fi 14524 fi 14525 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14526 if test -n "$ac_ct_LIPO"; then 14527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14528 printf "%s\n" "$ac_ct_LIPO" >&6; } 14529 else 14530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14531 printf "%s\n" "no" >&6; } 14532 fi 14533 14534 if test "x$ac_ct_LIPO" = x; then 14535 LIPO=":" 14536 else 14537 case $cross_compiling:$ac_tool_warned in 14538 yes:) 14539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14540 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14541 ac_tool_warned=yes ;; 14542 esac 14543 LIPO=$ac_ct_LIPO 14544 fi 14545 else 14546 LIPO="$ac_cv_prog_LIPO" 14547 fi 14548 14549 if test -n "$ac_tool_prefix"; then 14550 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14551 set dummy ${ac_tool_prefix}otool; ac_word=$2 14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14553 printf %s "checking for $ac_word... " >&6; } 14554 if test ${ac_cv_prog_OTOOL+y} 14555 then : 14556 printf %s "(cached) " >&6 14557 else $as_nop 14558 if test -n "$OTOOL"; then 14559 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14560 else 14561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14562 for as_dir in $PATH 14563 do 14564 IFS=$as_save_IFS 14565 case $as_dir in #((( 14566 '') as_dir=./ ;; 14567 */) ;; 14568 *) as_dir=$as_dir/ ;; 14569 esac 14570 for ac_exec_ext in '' $ac_executable_extensions; do 14571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14572 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14574 break 2 14575 fi 14576 done 14577 done 14578 IFS=$as_save_IFS 14579 14580 fi 14581 fi 14582 OTOOL=$ac_cv_prog_OTOOL 14583 if test -n "$OTOOL"; then 14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14585 printf "%s\n" "$OTOOL" >&6; } 14586 else 14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14588 printf "%s\n" "no" >&6; } 14589 fi 14590 14591 14592 fi 14593 if test -z "$ac_cv_prog_OTOOL"; then 14594 ac_ct_OTOOL=$OTOOL 14595 # Extract the first word of "otool", so it can be a program name with args. 14596 set dummy otool; ac_word=$2 14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14598 printf %s "checking for $ac_word... " >&6; } 14599 if test ${ac_cv_prog_ac_ct_OTOOL+y} 14600 then : 14601 printf %s "(cached) " >&6 14602 else $as_nop 14603 if test -n "$ac_ct_OTOOL"; then 14604 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14605 else 14606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14607 for as_dir in $PATH 14608 do 14609 IFS=$as_save_IFS 14610 case $as_dir in #((( 14611 '') as_dir=./ ;; 14612 */) ;; 14613 *) as_dir=$as_dir/ ;; 14614 esac 14615 for ac_exec_ext in '' $ac_executable_extensions; do 14616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14617 ac_cv_prog_ac_ct_OTOOL="otool" 14618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14619 break 2 14620 fi 14621 done 14622 done 14623 IFS=$as_save_IFS 14624 14625 fi 14626 fi 14627 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14628 if test -n "$ac_ct_OTOOL"; then 14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14630 printf "%s\n" "$ac_ct_OTOOL" >&6; } 14631 else 14632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14633 printf "%s\n" "no" >&6; } 14634 fi 14635 14636 if test "x$ac_ct_OTOOL" = x; then 14637 OTOOL=":" 14638 else 14639 case $cross_compiling:$ac_tool_warned in 14640 yes:) 14641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14642 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14643 ac_tool_warned=yes ;; 14644 esac 14645 OTOOL=$ac_ct_OTOOL 14646 fi 14647 else 14648 OTOOL="$ac_cv_prog_OTOOL" 14649 fi 14650 14651 if test -n "$ac_tool_prefix"; then 14652 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14653 set dummy ${ac_tool_prefix}otool64; ac_word=$2 14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14655 printf %s "checking for $ac_word... " >&6; } 14656 if test ${ac_cv_prog_OTOOL64+y} 14657 then : 14658 printf %s "(cached) " >&6 14659 else $as_nop 14660 if test -n "$OTOOL64"; then 14661 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14662 else 14663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14664 for as_dir in $PATH 14665 do 14666 IFS=$as_save_IFS 14667 case $as_dir in #((( 14668 '') as_dir=./ ;; 14669 */) ;; 14670 *) as_dir=$as_dir/ ;; 14671 esac 14672 for ac_exec_ext in '' $ac_executable_extensions; do 14673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14674 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14676 break 2 14677 fi 14678 done 14679 done 14680 IFS=$as_save_IFS 14681 14682 fi 14683 fi 14684 OTOOL64=$ac_cv_prog_OTOOL64 14685 if test -n "$OTOOL64"; then 14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14687 printf "%s\n" "$OTOOL64" >&6; } 14688 else 14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14690 printf "%s\n" "no" >&6; } 14691 fi 14692 14693 14694 fi 14695 if test -z "$ac_cv_prog_OTOOL64"; then 14696 ac_ct_OTOOL64=$OTOOL64 14697 # Extract the first word of "otool64", so it can be a program name with args. 14698 set dummy otool64; ac_word=$2 14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14700 printf %s "checking for $ac_word... " >&6; } 14701 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14702 then : 14703 printf %s "(cached) " >&6 14704 else $as_nop 14705 if test -n "$ac_ct_OTOOL64"; then 14706 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14707 else 14708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14709 for as_dir in $PATH 14710 do 14711 IFS=$as_save_IFS 14712 case $as_dir in #((( 14713 '') as_dir=./ ;; 14714 */) ;; 14715 *) as_dir=$as_dir/ ;; 14716 esac 14717 for ac_exec_ext in '' $ac_executable_extensions; do 14718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14719 ac_cv_prog_ac_ct_OTOOL64="otool64" 14720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14721 break 2 14722 fi 14723 done 14724 done 14725 IFS=$as_save_IFS 14726 14727 fi 14728 fi 14729 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14730 if test -n "$ac_ct_OTOOL64"; then 14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14732 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14733 else 14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14735 printf "%s\n" "no" >&6; } 14736 fi 14737 14738 if test "x$ac_ct_OTOOL64" = x; then 14739 OTOOL64=":" 14740 else 14741 case $cross_compiling:$ac_tool_warned in 14742 yes:) 14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14744 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14745 ac_tool_warned=yes ;; 14746 esac 14747 OTOOL64=$ac_ct_OTOOL64 14748 fi 14749 else 14750 OTOOL64="$ac_cv_prog_OTOOL64" 14751 fi 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14780 printf %s "checking for -single_module linker flag... " >&6; } 14781 if test ${lt_cv_apple_cc_single_mod+y} 14782 then : 14783 printf %s "(cached) " >&6 14784 else $as_nop 14785 lt_cv_apple_cc_single_mod=no 14786 if test -z "$LT_MULTI_MODULE"; then 14787 # By default we will add the -single_module flag. You can override 14788 # by either setting the environment variable LT_MULTI_MODULE 14789 # non-empty at configure time, or by adding -multi_module to the 14790 # link flags. 14791 rm -rf libconftest.dylib* 14792 echo "int foo(void){return 1;}" > conftest.c 14793 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14794 -dynamiclib -Wl,-single_module conftest.c" >&5 14795 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14796 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14797 _lt_result=$? 14798 # If there is a non-empty error log, and "single_module" 14799 # appears in it, assume the flag caused a linker warning 14800 if test -s conftest.err && $GREP single_module conftest.err; then 14801 cat conftest.err >&5 14802 # Otherwise, if the output was created with a 0 exit code from 14803 # the compiler, it worked. 14804 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14805 lt_cv_apple_cc_single_mod=yes 14806 else 14807 cat conftest.err >&5 14808 fi 14809 rm -rf libconftest.dylib* 14810 rm -f conftest.* 14811 fi 14812 fi 14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14814 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14815 14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14817 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14818 if test ${lt_cv_ld_exported_symbols_list+y} 14819 then : 14820 printf %s "(cached) " >&6 14821 else $as_nop 14822 lt_cv_ld_exported_symbols_list=no 14823 save_LDFLAGS=$LDFLAGS 14824 echo "_main" > conftest.sym 14825 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827 /* end confdefs.h. */ 14828 14829 int 14830 main (void) 14831 { 14832 14833 ; 14834 return 0; 14835 } 14836 _ACEOF 14837 if ac_fn_c_try_link "$LINENO" 14838 then : 14839 lt_cv_ld_exported_symbols_list=yes 14840 else $as_nop 14841 lt_cv_ld_exported_symbols_list=no 14842 fi 14843 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14844 conftest$ac_exeext conftest.$ac_ext 14845 LDFLAGS=$save_LDFLAGS 14846 14847 fi 14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14849 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14850 14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14852 printf %s "checking for -force_load linker flag... " >&6; } 14853 if test ${lt_cv_ld_force_load+y} 14854 then : 14855 printf %s "(cached) " >&6 14856 else $as_nop 14857 lt_cv_ld_force_load=no 14858 cat > conftest.c << _LT_EOF 14859 int forced_loaded() { return 2;} 14860 _LT_EOF 14861 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14862 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14863 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14864 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14865 echo "$RANLIB libconftest.a" >&5 14866 $RANLIB libconftest.a 2>&5 14867 cat > conftest.c << _LT_EOF 14868 int main() { return 0;} 14869 _LT_EOF 14870 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14871 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14872 _lt_result=$? 14873 if test -s conftest.err && $GREP force_load conftest.err; then 14874 cat conftest.err >&5 14875 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14876 lt_cv_ld_force_load=yes 14877 else 14878 cat conftest.err >&5 14879 fi 14880 rm -f conftest.err libconftest.a conftest conftest.c 14881 rm -rf conftest.dSYM 14882 14883 fi 14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14885 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14886 case $host_os in 14887 rhapsody* | darwin1.[012]) 14888 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14889 darwin1.*) 14890 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14891 darwin*) 14892 case $MACOSX_DEPLOYMENT_TARGET,$host in 14893 10.[012],*|,*powerpc*-darwin[5-8]*) 14894 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14895 *) 14896 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14897 esac 14898 ;; 14899 esac 14900 if test yes = "$lt_cv_apple_cc_single_mod"; then 14901 _lt_dar_single_mod='$single_module' 14902 fi 14903 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14904 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14905 else 14906 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14907 fi 14908 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14909 _lt_dsymutil='~$DSYMUTIL $lib || :' 14910 else 14911 _lt_dsymutil= 14912 fi 14913 ;; 14914 esac 14915 14916 # func_munge_path_list VARIABLE PATH 14917 # ----------------------------------- 14918 # VARIABLE is name of variable containing _space_ separated list of 14919 # directories to be munged by the contents of PATH, which is string 14920 # having a format: 14921 # "DIR[:DIR]:" 14922 # string "DIR[ DIR]" will be prepended to VARIABLE 14923 # ":DIR[:DIR]" 14924 # string "DIR[ DIR]" will be appended to VARIABLE 14925 # "DIRP[:DIRP]::[DIRA:]DIRA" 14926 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14927 # "DIRA[ DIRA]" will be appended to VARIABLE 14928 # "DIR[:DIR]" 14929 # VARIABLE will be replaced by "DIR[ DIR]" 14930 func_munge_path_list () 14931 { 14932 case x$2 in 14933 x) 14934 ;; 14935 *:) 14936 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14937 ;; 14938 x:*) 14939 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14940 ;; 14941 *::*) 14942 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14943 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14944 ;; 14945 *) 14946 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14947 ;; 14948 esac 14949 } 14950 14951 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14952 " 14953 if test "x$ac_cv_header_dlfcn_h" = xyes 14954 then : 14955 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 14956 14957 fi 14958 14959 14960 14961 14962 14963 # Set options 14964 14965 14966 14967 enable_dlopen=no 14968 14969 14970 enable_win32_dll=no 14971 14972 14973 # Check whether --enable-shared was given. 14974 if test ${enable_shared+y} 14975 then : 14976 enableval=$enable_shared; p=${PACKAGE-default} 14977 case $enableval in 14978 yes) enable_shared=yes ;; 14979 no) enable_shared=no ;; 14980 *) 14981 enable_shared=no 14982 # Look at the argument we got. We use all the common list separators. 14983 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14984 for pkg in $enableval; do 14985 IFS=$lt_save_ifs 14986 if test "X$pkg" = "X$p"; then 14987 enable_shared=yes 14988 fi 14989 done 14990 IFS=$lt_save_ifs 14991 ;; 14992 esac 14993 else $as_nop 14994 enable_shared=yes 14995 fi 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 # Check whether --with-pic was given. 15008 if test ${with_pic+y} 15009 then : 15010 withval=$with_pic; lt_p=${PACKAGE-default} 15011 case $withval in 15012 yes|no) pic_mode=$withval ;; 15013 *) 15014 pic_mode=default 15015 # Look at the argument we got. We use all the common list separators. 15016 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15017 for lt_pkg in $withval; do 15018 IFS=$lt_save_ifs 15019 if test "X$lt_pkg" = "X$lt_p"; then 15020 pic_mode=yes 15021 fi 15022 done 15023 IFS=$lt_save_ifs 15024 ;; 15025 esac 15026 else $as_nop 15027 pic_mode=default 15028 fi 15029 15030 15031 15032 15033 15034 15035 15036 15037 # Check whether --enable-fast-install was given. 15038 if test ${enable_fast_install+y} 15039 then : 15040 enableval=$enable_fast_install; p=${PACKAGE-default} 15041 case $enableval in 15042 yes) enable_fast_install=yes ;; 15043 no) enable_fast_install=no ;; 15044 *) 15045 enable_fast_install=no 15046 # Look at the argument we got. We use all the common list separators. 15047 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15048 for pkg in $enableval; do 15049 IFS=$lt_save_ifs 15050 if test "X$pkg" = "X$p"; then 15051 enable_fast_install=yes 15052 fi 15053 done 15054 IFS=$lt_save_ifs 15055 ;; 15056 esac 15057 else $as_nop 15058 enable_fast_install=yes 15059 fi 15060 15061 15062 15063 15064 15065 15066 15067 15068 shared_archive_member_spec= 15069 case $host,$enable_shared in 15070 power*-*-aix[5-9]*,yes) 15071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15072 printf %s "checking which variant of shared library versioning to provide... " >&6; } 15073 15074 # Check whether --with-aix-soname was given. 15075 if test ${with_aix_soname+y} 15076 then : 15077 withval=$with_aix_soname; case $withval in 15078 aix|svr4|both) 15079 ;; 15080 *) 15081 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15082 ;; 15083 esac 15084 lt_cv_with_aix_soname=$with_aix_soname 15085 else $as_nop 15086 if test ${lt_cv_with_aix_soname+y} 15087 then : 15088 printf %s "(cached) " >&6 15089 else $as_nop 15090 lt_cv_with_aix_soname=aix 15091 fi 15092 15093 with_aix_soname=$lt_cv_with_aix_soname 15094 fi 15095 15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15097 printf "%s\n" "$with_aix_soname" >&6; } 15098 if test aix != "$with_aix_soname"; then 15099 # For the AIX way of multilib, we name the shared archive member 15100 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15101 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15102 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15103 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15104 if test 64 = "${OBJECT_MODE-32}"; then 15105 shared_archive_member_spec=shr_64 15106 else 15107 shared_archive_member_spec=shr 15108 fi 15109 fi 15110 ;; 15111 *) 15112 with_aix_soname=aix 15113 ;; 15114 esac 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 # This can be used to rebuild libtool when needed 15126 LIBTOOL_DEPS=$ltmain 15127 15128 # Always use our own libtool. 15129 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 test -z "$LN_S" && LN_S="ln -s" 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 if test -n "${ZSH_VERSION+set}"; then 15176 setopt NO_GLOB_SUBST 15177 fi 15178 15179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15180 printf %s "checking for objdir... " >&6; } 15181 if test ${lt_cv_objdir+y} 15182 then : 15183 printf %s "(cached) " >&6 15184 else $as_nop 15185 rm -f .libs 2>/dev/null 15186 mkdir .libs 2>/dev/null 15187 if test -d .libs; then 15188 lt_cv_objdir=.libs 15189 else 15190 # MS-DOS does not allow filenames that begin with a dot. 15191 lt_cv_objdir=_libs 15192 fi 15193 rmdir .libs 2>/dev/null 15194 fi 15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15196 printf "%s\n" "$lt_cv_objdir" >&6; } 15197 objdir=$lt_cv_objdir 15198 15199 15200 15201 15202 15203 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15204 15205 15206 15207 15208 case $host_os in 15209 aix3*) 15210 # AIX sometimes has problems with the GCC collect2 program. For some 15211 # reason, if we set the COLLECT_NAMES environment variable, the problems 15212 # vanish in a puff of smoke. 15213 if test set != "${COLLECT_NAMES+set}"; then 15214 COLLECT_NAMES= 15215 export COLLECT_NAMES 15216 fi 15217 ;; 15218 esac 15219 15220 # Global variables: 15221 ofile=libtool 15222 can_build_shared=yes 15223 15224 # All known linkers require a '.a' archive for static linking (except MSVC and 15225 # ICC, which need '.lib'). 15226 libext=a 15227 15228 with_gnu_ld=$lt_cv_prog_gnu_ld 15229 15230 old_CC=$CC 15231 old_CFLAGS=$CFLAGS 15232 15233 # Set sane defaults for various variables 15234 test -z "$CC" && CC=cc 15235 test -z "$LTCC" && LTCC=$CC 15236 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15237 test -z "$LD" && LD=ld 15238 test -z "$ac_objext" && ac_objext=o 15239 15240 func_cc_basename $compiler 15241 cc_basename=$func_cc_basename_result 15242 15243 15244 # Only perform the check for file, if the check method requires it 15245 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15246 case $deplibs_check_method in 15247 file_magic*) 15248 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15250 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15251 if test ${lt_cv_path_MAGIC_CMD+y} 15252 then : 15253 printf %s "(cached) " >&6 15254 else $as_nop 15255 case $MAGIC_CMD in 15256 [\\/*] | ?:[\\/]*) 15257 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15258 ;; 15259 *) 15260 lt_save_MAGIC_CMD=$MAGIC_CMD 15261 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15262 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15263 for ac_dir in $ac_dummy; do 15264 IFS=$lt_save_ifs 15265 test -z "$ac_dir" && ac_dir=. 15266 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15267 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15268 if test -n "$file_magic_test_file"; then 15269 case $deplibs_check_method in 15270 "file_magic "*) 15271 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15272 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15273 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15274 $EGREP "$file_magic_regex" > /dev/null; then 15275 : 15276 else 15277 cat <<_LT_EOF 1>&2 15278 15279 *** Warning: the command libtool uses to detect shared libraries, 15280 *** $file_magic_cmd, produces output that libtool cannot recognize. 15281 *** The result is that libtool may fail to recognize shared libraries 15282 *** as such. This will affect the creation of libtool libraries that 15283 *** depend on shared libraries, but programs linked with such libtool 15284 *** libraries will work regardless of this problem. Nevertheless, you 15285 *** may want to report the problem to your system manager and/or to 15286 *** bug-libtool@gnu.org 15287 15288 _LT_EOF 15289 fi ;; 15290 esac 15291 fi 15292 break 15293 fi 15294 done 15295 IFS=$lt_save_ifs 15296 MAGIC_CMD=$lt_save_MAGIC_CMD 15297 ;; 15298 esac 15299 fi 15300 15301 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15302 if test -n "$MAGIC_CMD"; then 15303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15304 printf "%s\n" "$MAGIC_CMD" >&6; } 15305 else 15306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15307 printf "%s\n" "no" >&6; } 15308 fi 15309 15310 15311 15312 15313 15314 if test -z "$lt_cv_path_MAGIC_CMD"; then 15315 if test -n "$ac_tool_prefix"; then 15316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15317 printf %s "checking for file... " >&6; } 15318 if test ${lt_cv_path_MAGIC_CMD+y} 15319 then : 15320 printf %s "(cached) " >&6 15321 else $as_nop 15322 case $MAGIC_CMD in 15323 [\\/*] | ?:[\\/]*) 15324 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15325 ;; 15326 *) 15327 lt_save_MAGIC_CMD=$MAGIC_CMD 15328 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15329 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15330 for ac_dir in $ac_dummy; do 15331 IFS=$lt_save_ifs 15332 test -z "$ac_dir" && ac_dir=. 15333 if test -f "$ac_dir/file"; then 15334 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15335 if test -n "$file_magic_test_file"; then 15336 case $deplibs_check_method in 15337 "file_magic "*) 15338 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15339 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15340 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15341 $EGREP "$file_magic_regex" > /dev/null; then 15342 : 15343 else 15344 cat <<_LT_EOF 1>&2 15345 15346 *** Warning: the command libtool uses to detect shared libraries, 15347 *** $file_magic_cmd, produces output that libtool cannot recognize. 15348 *** The result is that libtool may fail to recognize shared libraries 15349 *** as such. This will affect the creation of libtool libraries that 15350 *** depend on shared libraries, but programs linked with such libtool 15351 *** libraries will work regardless of this problem. Nevertheless, you 15352 *** may want to report the problem to your system manager and/or to 15353 *** bug-libtool@gnu.org 15354 15355 _LT_EOF 15356 fi ;; 15357 esac 15358 fi 15359 break 15360 fi 15361 done 15362 IFS=$lt_save_ifs 15363 MAGIC_CMD=$lt_save_MAGIC_CMD 15364 ;; 15365 esac 15366 fi 15367 15368 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15369 if test -n "$MAGIC_CMD"; then 15370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15371 printf "%s\n" "$MAGIC_CMD" >&6; } 15372 else 15373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15374 printf "%s\n" "no" >&6; } 15375 fi 15376 15377 15378 else 15379 MAGIC_CMD=: 15380 fi 15381 fi 15382 15383 fi 15384 ;; 15385 esac 15386 15387 # Use C for the default configuration in the libtool script 15388 15389 lt_save_CC=$CC 15390 ac_ext=c 15391 ac_cpp='$CPP $CPPFLAGS' 15392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15394 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15395 15396 15397 # Source file extension for C test sources. 15398 ac_ext=c 15399 15400 # Object file extension for compiled C test sources. 15401 objext=o 15402 objext=$objext 15403 15404 # Code to be used in simple compile tests 15405 lt_simple_compile_test_code="int some_variable = 0;" 15406 15407 # Code to be used in simple link tests 15408 lt_simple_link_test_code='int main(){return(0);}' 15409 15410 15411 15412 15413 15414 15415 15416 # If no C compiler was specified, use CC. 15417 LTCC=${LTCC-"$CC"} 15418 15419 # If no C compiler flags were specified, use CFLAGS. 15420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15421 15422 # Allow CC to be a program name with arguments. 15423 compiler=$CC 15424 15425 # Save the default compiler, since it gets overwritten when the other 15426 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15427 compiler_DEFAULT=$CC 15428 15429 # save warnings/boilerplate of simple test code 15430 ac_outfile=conftest.$ac_objext 15431 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15432 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15433 _lt_compiler_boilerplate=`cat conftest.err` 15434 $RM conftest* 15435 15436 ac_outfile=conftest.$ac_objext 15437 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15438 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15439 _lt_linker_boilerplate=`cat conftest.err` 15440 $RM -r conftest* 15441 15442 15443 if test -n "$compiler"; then 15444 15445 lt_prog_compiler_no_builtin_flag= 15446 15447 if test yes = "$GCC"; then 15448 case $cc_basename in 15449 nvcc*) 15450 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15451 *) 15452 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15453 esac 15454 15455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15456 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15457 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15458 then : 15459 printf %s "(cached) " >&6 15460 else $as_nop 15461 lt_cv_prog_compiler_rtti_exceptions=no 15462 ac_outfile=conftest.$ac_objext 15463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15464 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15465 # Insert the option either (1) after the last *FLAGS variable, or 15466 # (2) before a word containing "conftest.", or (3) at the end. 15467 # Note that $ac_compile itself does not contain backslashes and begins 15468 # with a dollar sign (not a hyphen), so the echo should work correctly. 15469 # The option is referenced via a variable to avoid confusing sed. 15470 lt_compile=`echo "$ac_compile" | $SED \ 15471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15473 -e 's:$: $lt_compiler_flag:'` 15474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15475 (eval "$lt_compile" 2>conftest.err) 15476 ac_status=$? 15477 cat conftest.err >&5 15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15479 if (exit $ac_status) && test -s "$ac_outfile"; then 15480 # The compiler can only warn and ignore the option if not recognized 15481 # So say no if there are warnings other than the usual output. 15482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15485 lt_cv_prog_compiler_rtti_exceptions=yes 15486 fi 15487 fi 15488 $RM conftest* 15489 15490 fi 15491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15492 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15493 15494 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15495 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15496 else 15497 : 15498 fi 15499 15500 fi 15501 15502 15503 15504 15505 15506 15507 lt_prog_compiler_wl= 15508 lt_prog_compiler_pic= 15509 lt_prog_compiler_static= 15510 15511 15512 if test yes = "$GCC"; then 15513 lt_prog_compiler_wl='-Wl,' 15514 lt_prog_compiler_static='-static' 15515 15516 case $host_os in 15517 aix*) 15518 # All AIX code is PIC. 15519 if test ia64 = "$host_cpu"; then 15520 # AIX 5 now supports IA64 processor 15521 lt_prog_compiler_static='-Bstatic' 15522 fi 15523 lt_prog_compiler_pic='-fPIC' 15524 ;; 15525 15526 amigaos*) 15527 case $host_cpu in 15528 powerpc) 15529 # see comment about AmigaOS4 .so support 15530 lt_prog_compiler_pic='-fPIC' 15531 ;; 15532 m68k) 15533 # FIXME: we need at least 68020 code to build shared libraries, but 15534 # adding the '-m68020' flag to GCC prevents building anything better, 15535 # like '-m68040'. 15536 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15537 ;; 15538 esac 15539 ;; 15540 15541 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15542 # PIC is the default for these OSes. 15543 ;; 15544 15545 mingw* | cygwin* | pw32* | os2* | cegcc*) 15546 # This hack is so that the source file can tell whether it is being 15547 # built for inclusion in a dll (and should export symbols for example). 15548 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15549 # (--disable-auto-import) libraries 15550 lt_prog_compiler_pic='-DDLL_EXPORT' 15551 case $host_os in 15552 os2*) 15553 lt_prog_compiler_static='$wl-static' 15554 ;; 15555 esac 15556 ;; 15557 15558 darwin* | rhapsody*) 15559 # PIC is the default on this platform 15560 # Common symbols not allowed in MH_DYLIB files 15561 lt_prog_compiler_pic='-fno-common' 15562 ;; 15563 15564 haiku*) 15565 # PIC is the default for Haiku. 15566 # The "-static" flag exists, but is broken. 15567 lt_prog_compiler_static= 15568 ;; 15569 15570 hpux*) 15571 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15572 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15573 # sets the default TLS model and affects inlining. 15574 case $host_cpu in 15575 hppa*64*) 15576 # +Z the default 15577 ;; 15578 *) 15579 lt_prog_compiler_pic='-fPIC' 15580 ;; 15581 esac 15582 ;; 15583 15584 interix[3-9]*) 15585 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15586 # Instead, we relocate shared libraries at runtime. 15587 ;; 15588 15589 msdosdjgpp*) 15590 # Just because we use GCC doesn't mean we suddenly get shared libraries 15591 # on systems that don't support them. 15592 lt_prog_compiler_can_build_shared=no 15593 enable_shared=no 15594 ;; 15595 15596 *nto* | *qnx*) 15597 # QNX uses GNU C++, but need to define -shared option too, otherwise 15598 # it will coredump. 15599 lt_prog_compiler_pic='-fPIC -shared' 15600 ;; 15601 15602 sysv4*MP*) 15603 if test -d /usr/nec; then 15604 lt_prog_compiler_pic=-Kconform_pic 15605 fi 15606 ;; 15607 15608 *) 15609 lt_prog_compiler_pic='-fPIC' 15610 ;; 15611 esac 15612 15613 case $cc_basename in 15614 nvcc*) # Cuda Compiler Driver 2.2 15615 lt_prog_compiler_wl='-Xlinker ' 15616 if test -n "$lt_prog_compiler_pic"; then 15617 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15618 fi 15619 ;; 15620 esac 15621 else 15622 # PORTME Check for flag to pass linker flags through the system compiler. 15623 case $host_os in 15624 aix*) 15625 lt_prog_compiler_wl='-Wl,' 15626 if test ia64 = "$host_cpu"; then 15627 # AIX 5 now supports IA64 processor 15628 lt_prog_compiler_static='-Bstatic' 15629 else 15630 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15631 fi 15632 ;; 15633 15634 darwin* | rhapsody*) 15635 # PIC is the default on this platform 15636 # Common symbols not allowed in MH_DYLIB files 15637 lt_prog_compiler_pic='-fno-common' 15638 case $cc_basename in 15639 nagfor*) 15640 # NAG Fortran compiler 15641 lt_prog_compiler_wl='-Wl,-Wl,,' 15642 lt_prog_compiler_pic='-PIC' 15643 lt_prog_compiler_static='-Bstatic' 15644 ;; 15645 esac 15646 ;; 15647 15648 mingw* | cygwin* | pw32* | os2* | cegcc*) 15649 # This hack is so that the source file can tell whether it is being 15650 # built for inclusion in a dll (and should export symbols for example). 15651 lt_prog_compiler_pic='-DDLL_EXPORT' 15652 case $host_os in 15653 os2*) 15654 lt_prog_compiler_static='$wl-static' 15655 ;; 15656 esac 15657 ;; 15658 15659 hpux9* | hpux10* | hpux11*) 15660 lt_prog_compiler_wl='-Wl,' 15661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15662 # not for PA HP-UX. 15663 case $host_cpu in 15664 hppa*64*|ia64*) 15665 # +Z the default 15666 ;; 15667 *) 15668 lt_prog_compiler_pic='+Z' 15669 ;; 15670 esac 15671 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15672 lt_prog_compiler_static='$wl-a ${wl}archive' 15673 ;; 15674 15675 irix5* | irix6* | nonstopux*) 15676 lt_prog_compiler_wl='-Wl,' 15677 # PIC (with -KPIC) is the default. 15678 lt_prog_compiler_static='-non_shared' 15679 ;; 15680 15681 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15682 case $cc_basename in 15683 # old Intel for x86_64, which still supported -KPIC. 15684 ecc*) 15685 lt_prog_compiler_wl='-Wl,' 15686 lt_prog_compiler_pic='-KPIC' 15687 lt_prog_compiler_static='-static' 15688 ;; 15689 # icc used to be incompatible with GCC. 15690 # ICC 10 doesn't accept -KPIC any more. 15691 icc* | ifort*) 15692 lt_prog_compiler_wl='-Wl,' 15693 lt_prog_compiler_pic='-fPIC' 15694 lt_prog_compiler_static='-static' 15695 ;; 15696 # Lahey Fortran 8.1. 15697 lf95*) 15698 lt_prog_compiler_wl='-Wl,' 15699 lt_prog_compiler_pic='--shared' 15700 lt_prog_compiler_static='--static' 15701 ;; 15702 nagfor*) 15703 # NAG Fortran compiler 15704 lt_prog_compiler_wl='-Wl,-Wl,,' 15705 lt_prog_compiler_pic='-PIC' 15706 lt_prog_compiler_static='-Bstatic' 15707 ;; 15708 tcc*) 15709 # Fabrice Bellard et al's Tiny C Compiler 15710 lt_prog_compiler_wl='-Wl,' 15711 lt_prog_compiler_pic='-fPIC' 15712 lt_prog_compiler_static='-static' 15713 ;; 15714 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15715 # Portland Group compilers (*not* the Pentium gcc compiler, 15716 # which looks to be a dead project) 15717 lt_prog_compiler_wl='-Wl,' 15718 lt_prog_compiler_pic='-fpic' 15719 lt_prog_compiler_static='-Bstatic' 15720 ;; 15721 ccc*) 15722 lt_prog_compiler_wl='-Wl,' 15723 # All Alpha code is PIC. 15724 lt_prog_compiler_static='-non_shared' 15725 ;; 15726 xl* | bgxl* | bgf* | mpixl*) 15727 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15728 lt_prog_compiler_wl='-Wl,' 15729 lt_prog_compiler_pic='-qpic' 15730 lt_prog_compiler_static='-qstaticlink' 15731 ;; 15732 *) 15733 case `$CC -V 2>&1 | $SED 5q` in 15734 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15735 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15736 lt_prog_compiler_pic='-KPIC' 15737 lt_prog_compiler_static='-Bstatic' 15738 lt_prog_compiler_wl='' 15739 ;; 15740 *Sun\ F* | *Sun*Fortran*) 15741 lt_prog_compiler_pic='-KPIC' 15742 lt_prog_compiler_static='-Bstatic' 15743 lt_prog_compiler_wl='-Qoption ld ' 15744 ;; 15745 *Sun\ C*) 15746 # Sun C 5.9 15747 lt_prog_compiler_pic='-KPIC' 15748 lt_prog_compiler_static='-Bstatic' 15749 lt_prog_compiler_wl='-Wl,' 15750 ;; 15751 *Intel*\ [CF]*Compiler*) 15752 lt_prog_compiler_wl='-Wl,' 15753 lt_prog_compiler_pic='-fPIC' 15754 lt_prog_compiler_static='-static' 15755 ;; 15756 *Portland\ Group*) 15757 lt_prog_compiler_wl='-Wl,' 15758 lt_prog_compiler_pic='-fpic' 15759 lt_prog_compiler_static='-Bstatic' 15760 ;; 15761 esac 15762 ;; 15763 esac 15764 ;; 15765 15766 newsos6) 15767 lt_prog_compiler_pic='-KPIC' 15768 lt_prog_compiler_static='-Bstatic' 15769 ;; 15770 15771 *nto* | *qnx*) 15772 # QNX uses GNU C++, but need to define -shared option too, otherwise 15773 # it will coredump. 15774 lt_prog_compiler_pic='-fPIC -shared' 15775 ;; 15776 15777 osf3* | osf4* | osf5*) 15778 lt_prog_compiler_wl='-Wl,' 15779 # All OSF/1 code is PIC. 15780 lt_prog_compiler_static='-non_shared' 15781 ;; 15782 15783 rdos*) 15784 lt_prog_compiler_static='-non_shared' 15785 ;; 15786 15787 solaris*) 15788 lt_prog_compiler_pic='-KPIC' 15789 lt_prog_compiler_static='-Bstatic' 15790 case $cc_basename in 15791 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15792 lt_prog_compiler_wl='-Qoption ld ';; 15793 *) 15794 lt_prog_compiler_wl='-Wl,';; 15795 esac 15796 ;; 15797 15798 sunos4*) 15799 lt_prog_compiler_wl='-Qoption ld ' 15800 lt_prog_compiler_pic='-PIC' 15801 lt_prog_compiler_static='-Bstatic' 15802 ;; 15803 15804 sysv4 | sysv4.2uw2* | sysv4.3*) 15805 lt_prog_compiler_wl='-Wl,' 15806 lt_prog_compiler_pic='-KPIC' 15807 lt_prog_compiler_static='-Bstatic' 15808 ;; 15809 15810 sysv4*MP*) 15811 if test -d /usr/nec; then 15812 lt_prog_compiler_pic='-Kconform_pic' 15813 lt_prog_compiler_static='-Bstatic' 15814 fi 15815 ;; 15816 15817 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15818 lt_prog_compiler_wl='-Wl,' 15819 lt_prog_compiler_pic='-KPIC' 15820 lt_prog_compiler_static='-Bstatic' 15821 ;; 15822 15823 unicos*) 15824 lt_prog_compiler_wl='-Wl,' 15825 lt_prog_compiler_can_build_shared=no 15826 ;; 15827 15828 uts4*) 15829 lt_prog_compiler_pic='-pic' 15830 lt_prog_compiler_static='-Bstatic' 15831 ;; 15832 15833 *) 15834 lt_prog_compiler_can_build_shared=no 15835 ;; 15836 esac 15837 fi 15838 15839 case $host_os in 15840 # For platforms that do not support PIC, -DPIC is meaningless: 15841 *djgpp*) 15842 lt_prog_compiler_pic= 15843 ;; 15844 *) 15845 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15846 ;; 15847 esac 15848 15849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15850 printf %s "checking for $compiler option to produce PIC... " >&6; } 15851 if test ${lt_cv_prog_compiler_pic+y} 15852 then : 15853 printf %s "(cached) " >&6 15854 else $as_nop 15855 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15856 fi 15857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15858 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15859 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15860 15861 # 15862 # Check to make sure the PIC flag actually works. 15863 # 15864 if test -n "$lt_prog_compiler_pic"; then 15865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15866 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15867 if test ${lt_cv_prog_compiler_pic_works+y} 15868 then : 15869 printf %s "(cached) " >&6 15870 else $as_nop 15871 lt_cv_prog_compiler_pic_works=no 15872 ac_outfile=conftest.$ac_objext 15873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15874 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15875 # Insert the option either (1) after the last *FLAGS variable, or 15876 # (2) before a word containing "conftest.", or (3) at the end. 15877 # Note that $ac_compile itself does not contain backslashes and begins 15878 # with a dollar sign (not a hyphen), so the echo should work correctly. 15879 # The option is referenced via a variable to avoid confusing sed. 15880 lt_compile=`echo "$ac_compile" | $SED \ 15881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15883 -e 's:$: $lt_compiler_flag:'` 15884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15885 (eval "$lt_compile" 2>conftest.err) 15886 ac_status=$? 15887 cat conftest.err >&5 15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15889 if (exit $ac_status) && test -s "$ac_outfile"; then 15890 # The compiler can only warn and ignore the option if not recognized 15891 # So say no if there are warnings other than the usual output. 15892 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15893 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15894 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15895 lt_cv_prog_compiler_pic_works=yes 15896 fi 15897 fi 15898 $RM conftest* 15899 15900 fi 15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15902 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15903 15904 if test yes = "$lt_cv_prog_compiler_pic_works"; then 15905 case $lt_prog_compiler_pic in 15906 "" | " "*) ;; 15907 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15908 esac 15909 else 15910 lt_prog_compiler_pic= 15911 lt_prog_compiler_can_build_shared=no 15912 fi 15913 15914 fi 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 # 15927 # Check to make sure the static flag actually works. 15928 # 15929 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15931 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15932 if test ${lt_cv_prog_compiler_static_works+y} 15933 then : 15934 printf %s "(cached) " >&6 15935 else $as_nop 15936 lt_cv_prog_compiler_static_works=no 15937 save_LDFLAGS=$LDFLAGS 15938 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15939 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15941 # The linker can only warn and ignore the option if not recognized 15942 # So say no if there are warnings 15943 if test -s conftest.err; then 15944 # Append any errors to the config.log. 15945 cat conftest.err 1>&5 15946 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15948 if diff conftest.exp conftest.er2 >/dev/null; then 15949 lt_cv_prog_compiler_static_works=yes 15950 fi 15951 else 15952 lt_cv_prog_compiler_static_works=yes 15953 fi 15954 fi 15955 $RM -r conftest* 15956 LDFLAGS=$save_LDFLAGS 15957 15958 fi 15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15960 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 15961 15962 if test yes = "$lt_cv_prog_compiler_static_works"; then 15963 : 15964 else 15965 lt_prog_compiler_static= 15966 fi 15967 15968 15969 15970 15971 15972 15973 15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15975 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15976 if test ${lt_cv_prog_compiler_c_o+y} 15977 then : 15978 printf %s "(cached) " >&6 15979 else $as_nop 15980 lt_cv_prog_compiler_c_o=no 15981 $RM -r conftest 2>/dev/null 15982 mkdir conftest 15983 cd conftest 15984 mkdir out 15985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15986 15987 lt_compiler_flag="-o out/conftest2.$ac_objext" 15988 # Insert the option either (1) after the last *FLAGS variable, or 15989 # (2) before a word containing "conftest.", or (3) at the end. 15990 # Note that $ac_compile itself does not contain backslashes and begins 15991 # with a dollar sign (not a hyphen), so the echo should work correctly. 15992 lt_compile=`echo "$ac_compile" | $SED \ 15993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15995 -e 's:$: $lt_compiler_flag:'` 15996 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15997 (eval "$lt_compile" 2>out/conftest.err) 15998 ac_status=$? 15999 cat out/conftest.err >&5 16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16001 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16002 then 16003 # The compiler can only warn and ignore the option if not recognized 16004 # So say no if there are warnings 16005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16006 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16007 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16008 lt_cv_prog_compiler_c_o=yes 16009 fi 16010 fi 16011 chmod u+w . 2>&5 16012 $RM conftest* 16013 # SGI C++ compiler will create directory out/ii_files/ for 16014 # template instantiation 16015 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16016 $RM out/* && rmdir out 16017 cd .. 16018 $RM -r conftest 16019 $RM conftest* 16020 16021 fi 16022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16023 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16024 16025 16026 16027 16028 16029 16030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16031 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16032 if test ${lt_cv_prog_compiler_c_o+y} 16033 then : 16034 printf %s "(cached) " >&6 16035 else $as_nop 16036 lt_cv_prog_compiler_c_o=no 16037 $RM -r conftest 2>/dev/null 16038 mkdir conftest 16039 cd conftest 16040 mkdir out 16041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16042 16043 lt_compiler_flag="-o out/conftest2.$ac_objext" 16044 # Insert the option either (1) after the last *FLAGS variable, or 16045 # (2) before a word containing "conftest.", or (3) at the end. 16046 # Note that $ac_compile itself does not contain backslashes and begins 16047 # with a dollar sign (not a hyphen), so the echo should work correctly. 16048 lt_compile=`echo "$ac_compile" | $SED \ 16049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16051 -e 's:$: $lt_compiler_flag:'` 16052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16053 (eval "$lt_compile" 2>out/conftest.err) 16054 ac_status=$? 16055 cat out/conftest.err >&5 16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16057 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16058 then 16059 # The compiler can only warn and ignore the option if not recognized 16060 # So say no if there are warnings 16061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16064 lt_cv_prog_compiler_c_o=yes 16065 fi 16066 fi 16067 chmod u+w . 2>&5 16068 $RM conftest* 16069 # SGI C++ compiler will create directory out/ii_files/ for 16070 # template instantiation 16071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16072 $RM out/* && rmdir out 16073 cd .. 16074 $RM -r conftest 16075 $RM conftest* 16076 16077 fi 16078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16079 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16080 16081 16082 16083 16084 hard_links=nottested 16085 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16086 # do not overwrite the value of need_locks provided by the user 16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16088 printf %s "checking if we can lock with hard links... " >&6; } 16089 hard_links=yes 16090 $RM conftest* 16091 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16092 touch conftest.a 16093 ln conftest.a conftest.b 2>&5 || hard_links=no 16094 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16096 printf "%s\n" "$hard_links" >&6; } 16097 if test no = "$hard_links"; then 16098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16099 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16100 need_locks=warn 16101 fi 16102 else 16103 need_locks=no 16104 fi 16105 16106 16107 16108 16109 16110 16111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16112 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16113 16114 runpath_var= 16115 allow_undefined_flag= 16116 always_export_symbols=no 16117 archive_cmds= 16118 archive_expsym_cmds= 16119 compiler_needs_object=no 16120 enable_shared_with_static_runtimes=no 16121 export_dynamic_flag_spec= 16122 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16123 hardcode_automatic=no 16124 hardcode_direct=no 16125 hardcode_direct_absolute=no 16126 hardcode_libdir_flag_spec= 16127 hardcode_libdir_separator= 16128 hardcode_minus_L=no 16129 hardcode_shlibpath_var=unsupported 16130 inherit_rpath=no 16131 link_all_deplibs=unknown 16132 module_cmds= 16133 module_expsym_cmds= 16134 old_archive_from_new_cmds= 16135 old_archive_from_expsyms_cmds= 16136 thread_safe_flag_spec= 16137 whole_archive_flag_spec= 16138 # include_expsyms should be a list of space-separated symbols to be *always* 16139 # included in the symbol list 16140 include_expsyms= 16141 # exclude_expsyms can be an extended regexp of symbols to exclude 16142 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16143 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16144 # as well as any symbol that contains 'd'. 16145 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16146 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16147 # platforms (ab)use it in PIC code, but their linkers get confused if 16148 # the symbol is explicitly referenced. Since portable code cannot 16149 # rely on this symbol name, it's probably fine to never include it in 16150 # preloaded symbol tables. 16151 # Exclude shared library initialization/finalization symbols. 16152 extract_expsyms_cmds= 16153 16154 case $host_os in 16155 cygwin* | mingw* | pw32* | cegcc*) 16156 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16157 # When not using gcc, we currently assume that we are using 16158 # Microsoft Visual C++ or Intel C++ Compiler. 16159 if test yes != "$GCC"; then 16160 with_gnu_ld=no 16161 fi 16162 ;; 16163 interix*) 16164 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16165 with_gnu_ld=yes 16166 ;; 16167 openbsd* | bitrig*) 16168 with_gnu_ld=no 16169 ;; 16170 esac 16171 16172 ld_shlibs=yes 16173 16174 # On some targets, GNU ld is compatible enough with the native linker 16175 # that we're better off using the native interface for both. 16176 lt_use_gnu_ld_interface=no 16177 if test yes = "$with_gnu_ld"; then 16178 case $host_os in 16179 aix*) 16180 # The AIX port of GNU ld has always aspired to compatibility 16181 # with the native linker. However, as the warning in the GNU ld 16182 # block says, versions before 2.19.5* couldn't really create working 16183 # shared libraries, regardless of the interface used. 16184 case `$LD -v 2>&1` in 16185 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16186 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16187 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16188 *) 16189 lt_use_gnu_ld_interface=yes 16190 ;; 16191 esac 16192 ;; 16193 *) 16194 lt_use_gnu_ld_interface=yes 16195 ;; 16196 esac 16197 fi 16198 16199 if test yes = "$lt_use_gnu_ld_interface"; then 16200 # If archive_cmds runs LD, not CC, wlarc should be empty 16201 wlarc='$wl' 16202 16203 # Set some defaults for GNU ld with shared library support. These 16204 # are reset later if shared libraries are not supported. Putting them 16205 # here allows them to be overridden if necessary. 16206 runpath_var=LD_RUN_PATH 16207 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16208 export_dynamic_flag_spec='$wl--export-dynamic' 16209 # ancient GNU ld didn't support --whole-archive et. al. 16210 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16211 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16212 else 16213 whole_archive_flag_spec= 16214 fi 16215 supports_anon_versioning=no 16216 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16217 *GNU\ gold*) supports_anon_versioning=yes ;; 16218 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16219 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16220 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16221 *\ 2.11.*) ;; # other 2.11 versions 16222 *) supports_anon_versioning=yes ;; 16223 esac 16224 16225 # See if GNU ld supports shared libraries. 16226 case $host_os in 16227 aix[3-9]*) 16228 # On AIX/PPC, the GNU linker is very broken 16229 if test ia64 != "$host_cpu"; then 16230 ld_shlibs=no 16231 cat <<_LT_EOF 1>&2 16232 16233 *** Warning: the GNU linker, at least up to release 2.19, is reported 16234 *** to be unable to reliably create shared libraries on AIX. 16235 *** Therefore, libtool is disabling shared libraries support. If you 16236 *** really care for shared libraries, you may want to install binutils 16237 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16238 *** You will then need to restart the configuration process. 16239 16240 _LT_EOF 16241 fi 16242 ;; 16243 16244 amigaos*) 16245 case $host_cpu in 16246 powerpc) 16247 # see comment about AmigaOS4 .so support 16248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16249 archive_expsym_cmds='' 16250 ;; 16251 m68k) 16252 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)' 16253 hardcode_libdir_flag_spec='-L$libdir' 16254 hardcode_minus_L=yes 16255 ;; 16256 esac 16257 ;; 16258 16259 beos*) 16260 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16261 allow_undefined_flag=unsupported 16262 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16263 # support --undefined. This deserves some investigation. FIXME 16264 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16265 else 16266 ld_shlibs=no 16267 fi 16268 ;; 16269 16270 cygwin* | mingw* | pw32* | cegcc*) 16271 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16272 # as there is no search path for DLLs. 16273 hardcode_libdir_flag_spec='-L$libdir' 16274 export_dynamic_flag_spec='$wl--export-all-symbols' 16275 allow_undefined_flag=unsupported 16276 always_export_symbols=no 16277 enable_shared_with_static_runtimes=yes 16278 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' 16279 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16280 16281 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16283 # If the export-symbols file already is a .def file, use it as 16284 # is; otherwise, prepend EXPORTS... 16285 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16286 cp $export_symbols $output_objdir/$soname.def; 16287 else 16288 echo EXPORTS > $output_objdir/$soname.def; 16289 cat $export_symbols >> $output_objdir/$soname.def; 16290 fi~ 16291 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16292 else 16293 ld_shlibs=no 16294 fi 16295 ;; 16296 16297 haiku*) 16298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16299 link_all_deplibs=yes 16300 ;; 16301 16302 os2*) 16303 hardcode_libdir_flag_spec='-L$libdir' 16304 hardcode_minus_L=yes 16305 allow_undefined_flag=unsupported 16306 shrext_cmds=.dll 16307 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16308 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16309 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16310 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16311 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16312 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16313 emximp -o $lib $output_objdir/$libname.def' 16314 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16315 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16316 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16317 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16318 prefix_cmds="$SED"~ 16319 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16320 prefix_cmds="$prefix_cmds -e 1d"; 16321 fi~ 16322 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16323 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16324 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16325 emximp -o $lib $output_objdir/$libname.def' 16326 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16327 enable_shared_with_static_runtimes=yes 16328 file_list_spec='@' 16329 ;; 16330 16331 interix[3-9]*) 16332 hardcode_direct=no 16333 hardcode_shlibpath_var=no 16334 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16335 export_dynamic_flag_spec='$wl-E' 16336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16337 # Instead, shared libraries are loaded at an image base (0x10000000 by 16338 # default) and relocated if they conflict, which is a slow very memory 16339 # consuming and fragmenting process. To avoid this, we pick a random, 16340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16341 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16342 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16343 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' 16344 ;; 16345 16346 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16347 tmp_diet=no 16348 if test linux-dietlibc = "$host_os"; then 16349 case $cc_basename in 16350 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16351 esac 16352 fi 16353 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16354 && test no = "$tmp_diet" 16355 then 16356 tmp_addflag=' $pic_flag' 16357 tmp_sharedflag='-shared' 16358 case $cc_basename,$host_cpu in 16359 pgcc*) # Portland Group C compiler 16360 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' 16361 tmp_addflag=' $pic_flag' 16362 ;; 16363 pgf77* | pgf90* | pgf95* | pgfortran*) 16364 # Portland Group f77 and f90 compilers 16365 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' 16366 tmp_addflag=' $pic_flag -Mnomain' ;; 16367 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16368 tmp_addflag=' -i_dynamic' ;; 16369 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16370 tmp_addflag=' -i_dynamic -nofor_main' ;; 16371 ifc* | ifort*) # Intel Fortran compiler 16372 tmp_addflag=' -nofor_main' ;; 16373 lf95*) # Lahey Fortran 8.1 16374 whole_archive_flag_spec= 16375 tmp_sharedflag='--shared' ;; 16376 nagfor*) # NAGFOR 5.3 16377 tmp_sharedflag='-Wl,-shared' ;; 16378 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16379 tmp_sharedflag='-qmkshrobj' 16380 tmp_addflag= ;; 16381 nvcc*) # Cuda Compiler Driver 2.2 16382 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' 16383 compiler_needs_object=yes 16384 ;; 16385 esac 16386 case `$CC -V 2>&1 | $SED 5q` in 16387 *Sun\ C*) # Sun C 5.9 16388 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' 16389 compiler_needs_object=yes 16390 tmp_sharedflag='-G' ;; 16391 *Sun\ F*) # Sun Fortran 8.3 16392 tmp_sharedflag='-G' ;; 16393 esac 16394 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16395 16396 if test yes = "$supports_anon_versioning"; then 16397 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16398 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16399 echo "local: *; };" >> $output_objdir/$libname.ver~ 16400 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16401 fi 16402 16403 case $cc_basename in 16404 tcc*) 16405 export_dynamic_flag_spec='-rdynamic' 16406 ;; 16407 xlf* | bgf* | bgxlf* | mpixlf*) 16408 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16409 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16410 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16411 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16412 if test yes = "$supports_anon_versioning"; then 16413 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16414 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16415 echo "local: *; };" >> $output_objdir/$libname.ver~ 16416 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16417 fi 16418 ;; 16419 esac 16420 else 16421 ld_shlibs=no 16422 fi 16423 ;; 16424 16425 netbsd*) 16426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16427 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16428 wlarc= 16429 else 16430 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16431 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16432 fi 16433 ;; 16434 16435 solaris*) 16436 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16437 ld_shlibs=no 16438 cat <<_LT_EOF 1>&2 16439 16440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16441 *** create shared libraries on Solaris systems. Therefore, libtool 16442 *** is disabling shared libraries support. We urge you to upgrade GNU 16443 *** binutils to release 2.9.1 or newer. Another option is to modify 16444 *** your PATH or compiler configuration so that the native linker is 16445 *** used, and then restart. 16446 16447 _LT_EOF 16448 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16449 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16450 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16451 else 16452 ld_shlibs=no 16453 fi 16454 ;; 16455 16456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16457 case `$LD -v 2>&1` in 16458 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16459 ld_shlibs=no 16460 cat <<_LT_EOF 1>&2 16461 16462 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16463 *** reliably create shared libraries on SCO systems. Therefore, libtool 16464 *** is disabling shared libraries support. We urge you to upgrade GNU 16465 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16466 *** your PATH or compiler configuration so that the native linker is 16467 *** used, and then restart. 16468 16469 _LT_EOF 16470 ;; 16471 *) 16472 # For security reasons, it is highly recommended that you always 16473 # use absolute paths for naming shared libraries, and exclude the 16474 # DT_RUNPATH tag from executables and libraries. But doing so 16475 # requires that you compile everything twice, which is a pain. 16476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16477 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16479 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16480 else 16481 ld_shlibs=no 16482 fi 16483 ;; 16484 esac 16485 ;; 16486 16487 sunos4*) 16488 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16489 wlarc= 16490 hardcode_direct=yes 16491 hardcode_shlibpath_var=no 16492 ;; 16493 16494 *) 16495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16496 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16497 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16498 else 16499 ld_shlibs=no 16500 fi 16501 ;; 16502 esac 16503 16504 if test no = "$ld_shlibs"; then 16505 runpath_var= 16506 hardcode_libdir_flag_spec= 16507 export_dynamic_flag_spec= 16508 whole_archive_flag_spec= 16509 fi 16510 else 16511 # PORTME fill in a description of your system's linker (not GNU ld) 16512 case $host_os in 16513 aix3*) 16514 allow_undefined_flag=unsupported 16515 always_export_symbols=yes 16516 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' 16517 # Note: this linker hardcodes the directories in LIBPATH if there 16518 # are no directories specified by -L. 16519 hardcode_minus_L=yes 16520 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16521 # Neither direct hardcoding nor static linking is supported with a 16522 # broken collect2. 16523 hardcode_direct=unsupported 16524 fi 16525 ;; 16526 16527 aix[4-9]*) 16528 if test ia64 = "$host_cpu"; then 16529 # On IA64, the linker does run time linking by default, so we don't 16530 # have to do anything special. 16531 aix_use_runtimelinking=no 16532 exp_sym_flag='-Bexport' 16533 no_entry_flag= 16534 else 16535 # If we're using GNU nm, then we don't want the "-C" option. 16536 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16537 # Without the "-l" option, or with the "-B" option, AIX nm treats 16538 # weak defined symbols like other global defined symbols, whereas 16539 # GNU nm marks them as "W". 16540 # While the 'weak' keyword is ignored in the Export File, we need 16541 # it in the Import File for the 'aix-soname' feature, so we have 16542 # to replace the "-B" option with "-P" for AIX nm. 16543 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16544 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' 16545 else 16546 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' 16547 fi 16548 aix_use_runtimelinking=no 16549 16550 # Test if we are trying to use run time linking or normal 16551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16552 # have runtime linking enabled, and use it for executables. 16553 # For shared libraries, we enable/disable runtime linking 16554 # depending on the kind of the shared library created - 16555 # when "with_aix_soname,aix_use_runtimelinking" is: 16556 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16557 # "aix,yes" lib.so shared, rtl:yes, for executables 16558 # lib.a static archive 16559 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16560 # lib.a(lib.so.V) shared, rtl:no, for executables 16561 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16562 # lib.a(lib.so.V) shared, rtl:no 16563 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16564 # lib.a static archive 16565 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16566 for ld_flag in $LDFLAGS; do 16567 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16568 aix_use_runtimelinking=yes 16569 break 16570 fi 16571 done 16572 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16573 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16574 # so we don't have lib.a shared libs to link our executables. 16575 # We have to force runtime linking in this case. 16576 aix_use_runtimelinking=yes 16577 LDFLAGS="$LDFLAGS -Wl,-brtl" 16578 fi 16579 ;; 16580 esac 16581 16582 exp_sym_flag='-bexport' 16583 no_entry_flag='-bnoentry' 16584 fi 16585 16586 # When large executables or shared objects are built, AIX ld can 16587 # have problems creating the table of contents. If linking a library 16588 # or program results in "error TOC overflow" add -mminimal-toc to 16589 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16590 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16591 16592 archive_cmds='' 16593 hardcode_direct=yes 16594 hardcode_direct_absolute=yes 16595 hardcode_libdir_separator=':' 16596 link_all_deplibs=yes 16597 file_list_spec='$wl-f,' 16598 case $with_aix_soname,$aix_use_runtimelinking in 16599 aix,*) ;; # traditional, no import file 16600 svr4,* | *,yes) # use import file 16601 # The Import File defines what to hardcode. 16602 hardcode_direct=no 16603 hardcode_direct_absolute=no 16604 ;; 16605 esac 16606 16607 if test yes = "$GCC"; then 16608 case $host_os in aix4.[012]|aix4.[012].*) 16609 # We only want to do this on AIX 4.2 and lower, the check 16610 # below for broken collect2 doesn't work under 4.3+ 16611 collect2name=`$CC -print-prog-name=collect2` 16612 if test -f "$collect2name" && 16613 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16614 then 16615 # We have reworked collect2 16616 : 16617 else 16618 # We have old collect2 16619 hardcode_direct=unsupported 16620 # It fails to find uninstalled libraries when the uninstalled 16621 # path is not listed in the libpath. Setting hardcode_minus_L 16622 # to unsupported forces relinking 16623 hardcode_minus_L=yes 16624 hardcode_libdir_flag_spec='-L$libdir' 16625 hardcode_libdir_separator= 16626 fi 16627 ;; 16628 esac 16629 shared_flag='-shared' 16630 if test yes = "$aix_use_runtimelinking"; then 16631 shared_flag="$shared_flag "'$wl-G' 16632 fi 16633 # Need to ensure runtime linking is disabled for the traditional 16634 # shared library, or the linker may eventually find shared libraries 16635 # /with/ Import File - we do not want to mix them. 16636 shared_flag_aix='-shared' 16637 shared_flag_svr4='-shared $wl-G' 16638 else 16639 # not using gcc 16640 if test ia64 = "$host_cpu"; then 16641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16642 # chokes on -Wl,-G. The following line is correct: 16643 shared_flag='-G' 16644 else 16645 if test yes = "$aix_use_runtimelinking"; then 16646 shared_flag='$wl-G' 16647 else 16648 shared_flag='$wl-bM:SRE' 16649 fi 16650 shared_flag_aix='$wl-bM:SRE' 16651 shared_flag_svr4='$wl-G' 16652 fi 16653 fi 16654 16655 export_dynamic_flag_spec='$wl-bexpall' 16656 # It seems that -bexpall does not export symbols beginning with 16657 # underscore (_), so it is better to generate a list of symbols to export. 16658 always_export_symbols=yes 16659 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16660 # Warning - without using the other runtime loading flags (-brtl), 16661 # -berok will link without error, but may produce a broken library. 16662 allow_undefined_flag='-berok' 16663 # Determine the default libpath from the value encoded in an 16664 # empty executable. 16665 if test set = "${lt_cv_aix_libpath+set}"; then 16666 aix_libpath=$lt_cv_aix_libpath 16667 else 16668 if test ${lt_cv_aix_libpath_+y} 16669 then : 16670 printf %s "(cached) " >&6 16671 else $as_nop 16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16673 /* end confdefs.h. */ 16674 16675 int 16676 main (void) 16677 { 16678 16679 ; 16680 return 0; 16681 } 16682 _ACEOF 16683 if ac_fn_c_try_link "$LINENO" 16684 then : 16685 16686 lt_aix_libpath_sed=' 16687 /Import File Strings/,/^$/ { 16688 /^0/ { 16689 s/^0 *\([^ ]*\) *$/\1/ 16690 p 16691 } 16692 }' 16693 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16694 # Check for a 64-bit object if we didn't find anything. 16695 if test -z "$lt_cv_aix_libpath_"; then 16696 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16697 fi 16698 fi 16699 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16700 conftest$ac_exeext conftest.$ac_ext 16701 if test -z "$lt_cv_aix_libpath_"; then 16702 lt_cv_aix_libpath_=/usr/lib:/lib 16703 fi 16704 16705 fi 16706 16707 aix_libpath=$lt_cv_aix_libpath_ 16708 fi 16709 16710 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16711 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 16712 else 16713 if test ia64 = "$host_cpu"; then 16714 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16715 allow_undefined_flag="-z nodefs" 16716 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" 16717 else 16718 # Determine the default libpath from the value encoded in an 16719 # empty executable. 16720 if test set = "${lt_cv_aix_libpath+set}"; then 16721 aix_libpath=$lt_cv_aix_libpath 16722 else 16723 if test ${lt_cv_aix_libpath_+y} 16724 then : 16725 printf %s "(cached) " >&6 16726 else $as_nop 16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16728 /* end confdefs.h. */ 16729 16730 int 16731 main (void) 16732 { 16733 16734 ; 16735 return 0; 16736 } 16737 _ACEOF 16738 if ac_fn_c_try_link "$LINENO" 16739 then : 16740 16741 lt_aix_libpath_sed=' 16742 /Import File Strings/,/^$/ { 16743 /^0/ { 16744 s/^0 *\([^ ]*\) *$/\1/ 16745 p 16746 } 16747 }' 16748 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16749 # Check for a 64-bit object if we didn't find anything. 16750 if test -z "$lt_cv_aix_libpath_"; then 16751 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16752 fi 16753 fi 16754 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16755 conftest$ac_exeext conftest.$ac_ext 16756 if test -z "$lt_cv_aix_libpath_"; then 16757 lt_cv_aix_libpath_=/usr/lib:/lib 16758 fi 16759 16760 fi 16761 16762 aix_libpath=$lt_cv_aix_libpath_ 16763 fi 16764 16765 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16766 # Warning - without using the other run time loading flags, 16767 # -berok will link without error, but may produce a broken library. 16768 no_undefined_flag=' $wl-bernotok' 16769 allow_undefined_flag=' $wl-berok' 16770 if test yes = "$with_gnu_ld"; then 16771 # We only use this code for GNU lds that support --whole-archive. 16772 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16773 else 16774 # Exported symbols can be pulled into shared objects from archives 16775 whole_archive_flag_spec='$convenience' 16776 fi 16777 archive_cmds_need_lc=yes 16778 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16779 # -brtl affects multiple linker settings, -berok does not and is overridden later 16780 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16781 if test svr4 != "$with_aix_soname"; then 16782 # This is similar to how AIX traditionally builds its shared libraries. 16783 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' 16784 fi 16785 if test aix != "$with_aix_soname"; then 16786 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' 16787 else 16788 # used by -dlpreopen to get the symbols 16789 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16790 fi 16791 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16792 fi 16793 fi 16794 ;; 16795 16796 amigaos*) 16797 case $host_cpu in 16798 powerpc) 16799 # see comment about AmigaOS4 .so support 16800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16801 archive_expsym_cmds='' 16802 ;; 16803 m68k) 16804 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)' 16805 hardcode_libdir_flag_spec='-L$libdir' 16806 hardcode_minus_L=yes 16807 ;; 16808 esac 16809 ;; 16810 16811 bsdi[45]*) 16812 export_dynamic_flag_spec=-rdynamic 16813 ;; 16814 16815 cygwin* | mingw* | pw32* | cegcc*) 16816 # When not using gcc, we currently assume that we are using 16817 # Microsoft Visual C++ or Intel C++ Compiler. 16818 # hardcode_libdir_flag_spec is actually meaningless, as there is 16819 # no search path for DLLs. 16820 case $cc_basename in 16821 cl* | icl*) 16822 # Native MSVC or ICC 16823 hardcode_libdir_flag_spec=' ' 16824 allow_undefined_flag=unsupported 16825 always_export_symbols=yes 16826 file_list_spec='@' 16827 # Tell ltmain to make .lib files, not .a files. 16828 libext=lib 16829 # Tell ltmain to make .dll files, not .so files. 16830 shrext_cmds=.dll 16831 # FIXME: Setting linknames here is a bad hack. 16832 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16833 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16834 cp "$export_symbols" "$output_objdir/$soname.def"; 16835 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16836 else 16837 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16838 fi~ 16839 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16840 linknames=' 16841 # The linker will not automatically build a static lib if we build a DLL. 16842 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16843 enable_shared_with_static_runtimes=yes 16844 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16846 # Don't use ranlib 16847 old_postinstall_cmds='chmod 644 $oldlib' 16848 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16849 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16850 case $lt_outputfile in 16851 *.exe|*.EXE) ;; 16852 *) 16853 lt_outputfile=$lt_outputfile.exe 16854 lt_tool_outputfile=$lt_tool_outputfile.exe 16855 ;; 16856 esac~ 16857 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16858 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16859 $RM "$lt_outputfile.manifest"; 16860 fi' 16861 ;; 16862 *) 16863 # Assume MSVC and ICC wrapper 16864 hardcode_libdir_flag_spec=' ' 16865 allow_undefined_flag=unsupported 16866 # Tell ltmain to make .lib files, not .a files. 16867 libext=lib 16868 # Tell ltmain to make .dll files, not .so files. 16869 shrext_cmds=.dll 16870 # FIXME: Setting linknames here is a bad hack. 16871 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16872 # The linker will automatically build a .lib file if we build a DLL. 16873 old_archive_from_new_cmds='true' 16874 # FIXME: Should let the user specify the lib program. 16875 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16876 enable_shared_with_static_runtimes=yes 16877 ;; 16878 esac 16879 ;; 16880 16881 darwin* | rhapsody*) 16882 16883 16884 archive_cmds_need_lc=no 16885 hardcode_direct=no 16886 hardcode_automatic=yes 16887 hardcode_shlibpath_var=unsupported 16888 if test yes = "$lt_cv_ld_force_load"; then 16889 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\"`' 16890 16891 else 16892 whole_archive_flag_spec='' 16893 fi 16894 link_all_deplibs=yes 16895 allow_undefined_flag=$_lt_dar_allow_undefined 16896 case $cc_basename in 16897 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16898 *) _lt_dar_can_shared=$GCC ;; 16899 esac 16900 if test yes = "$_lt_dar_can_shared"; then 16901 output_verbose_link_cmd=func_echo_all 16902 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16903 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16904 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" 16905 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" 16906 16907 else 16908 ld_shlibs=no 16909 fi 16910 16911 ;; 16912 16913 dgux*) 16914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16915 hardcode_libdir_flag_spec='-L$libdir' 16916 hardcode_shlibpath_var=no 16917 ;; 16918 16919 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16920 # support. Future versions do this automatically, but an explicit c++rt0.o 16921 # does not break anything, and helps significantly (at the cost of a little 16922 # extra space). 16923 freebsd2.2*) 16924 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16925 hardcode_libdir_flag_spec='-R$libdir' 16926 hardcode_direct=yes 16927 hardcode_shlibpath_var=no 16928 ;; 16929 16930 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16931 freebsd2.*) 16932 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16933 hardcode_direct=yes 16934 hardcode_minus_L=yes 16935 hardcode_shlibpath_var=no 16936 ;; 16937 16938 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16939 freebsd* | dragonfly* | midnightbsd*) 16940 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16941 hardcode_libdir_flag_spec='-R$libdir' 16942 hardcode_direct=yes 16943 hardcode_shlibpath_var=no 16944 ;; 16945 16946 hpux9*) 16947 if test yes = "$GCC"; then 16948 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' 16949 else 16950 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' 16951 fi 16952 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16953 hardcode_libdir_separator=: 16954 hardcode_direct=yes 16955 16956 # hardcode_minus_L: Not really in the search PATH, 16957 # but as the default location of the library. 16958 hardcode_minus_L=yes 16959 export_dynamic_flag_spec='$wl-E' 16960 ;; 16961 16962 hpux10*) 16963 if test yes,no = "$GCC,$with_gnu_ld"; then 16964 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16965 else 16966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16967 fi 16968 if test no = "$with_gnu_ld"; then 16969 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16970 hardcode_libdir_separator=: 16971 hardcode_direct=yes 16972 hardcode_direct_absolute=yes 16973 export_dynamic_flag_spec='$wl-E' 16974 # hardcode_minus_L: Not really in the search PATH, 16975 # but as the default location of the library. 16976 hardcode_minus_L=yes 16977 fi 16978 ;; 16979 16980 hpux11*) 16981 if test yes,no = "$GCC,$with_gnu_ld"; then 16982 case $host_cpu in 16983 hppa*64*) 16984 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16985 ;; 16986 ia64*) 16987 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16988 ;; 16989 *) 16990 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16991 ;; 16992 esac 16993 else 16994 case $host_cpu in 16995 hppa*64*) 16996 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16997 ;; 16998 ia64*) 16999 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17000 ;; 17001 *) 17002 17003 # Older versions of the 11.00 compiler do not understand -b yet 17004 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17006 printf %s "checking if $CC understands -b... " >&6; } 17007 if test ${lt_cv_prog_compiler__b+y} 17008 then : 17009 printf %s "(cached) " >&6 17010 else $as_nop 17011 lt_cv_prog_compiler__b=no 17012 save_LDFLAGS=$LDFLAGS 17013 LDFLAGS="$LDFLAGS -b" 17014 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17015 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17016 # The linker can only warn and ignore the option if not recognized 17017 # So say no if there are warnings 17018 if test -s conftest.err; then 17019 # Append any errors to the config.log. 17020 cat conftest.err 1>&5 17021 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17023 if diff conftest.exp conftest.er2 >/dev/null; then 17024 lt_cv_prog_compiler__b=yes 17025 fi 17026 else 17027 lt_cv_prog_compiler__b=yes 17028 fi 17029 fi 17030 $RM -r conftest* 17031 LDFLAGS=$save_LDFLAGS 17032 17033 fi 17034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17035 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17036 17037 if test yes = "$lt_cv_prog_compiler__b"; then 17038 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17039 else 17040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17041 fi 17042 17043 ;; 17044 esac 17045 fi 17046 if test no = "$with_gnu_ld"; then 17047 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17048 hardcode_libdir_separator=: 17049 17050 case $host_cpu in 17051 hppa*64*|ia64*) 17052 hardcode_direct=no 17053 hardcode_shlibpath_var=no 17054 ;; 17055 *) 17056 hardcode_direct=yes 17057 hardcode_direct_absolute=yes 17058 export_dynamic_flag_spec='$wl-E' 17059 17060 # hardcode_minus_L: Not really in the search PATH, 17061 # but as the default location of the library. 17062 hardcode_minus_L=yes 17063 ;; 17064 esac 17065 fi 17066 ;; 17067 17068 irix5* | irix6* | nonstopux*) 17069 if test yes = "$GCC"; then 17070 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' 17071 # Try to use the -exported_symbol ld option, if it does not 17072 # work, assume that -exports_file does not work either and 17073 # implicitly export all symbols. 17074 # This should be the same for all languages, so no per-tag cache variable. 17075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17076 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17077 if test ${lt_cv_irix_exported_symbol+y} 17078 then : 17079 printf %s "(cached) " >&6 17080 else $as_nop 17081 save_LDFLAGS=$LDFLAGS 17082 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17084 /* end confdefs.h. */ 17085 int foo (void) { return 0; } 17086 _ACEOF 17087 if ac_fn_c_try_link "$LINENO" 17088 then : 17089 lt_cv_irix_exported_symbol=yes 17090 else $as_nop 17091 lt_cv_irix_exported_symbol=no 17092 fi 17093 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17094 conftest$ac_exeext conftest.$ac_ext 17095 LDFLAGS=$save_LDFLAGS 17096 fi 17097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17098 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17099 if test yes = "$lt_cv_irix_exported_symbol"; then 17100 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' 17101 fi 17102 else 17103 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' 17104 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' 17105 fi 17106 archive_cmds_need_lc='no' 17107 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17108 hardcode_libdir_separator=: 17109 inherit_rpath=yes 17110 link_all_deplibs=yes 17111 ;; 17112 17113 linux*) 17114 case $cc_basename in 17115 tcc*) 17116 # Fabrice Bellard et al's Tiny C Compiler 17117 ld_shlibs=yes 17118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17119 ;; 17120 esac 17121 ;; 17122 17123 netbsd*) 17124 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17126 else 17127 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17128 fi 17129 hardcode_libdir_flag_spec='-R$libdir' 17130 hardcode_direct=yes 17131 hardcode_shlibpath_var=no 17132 ;; 17133 17134 newsos6) 17135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17136 hardcode_direct=yes 17137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17138 hardcode_libdir_separator=: 17139 hardcode_shlibpath_var=no 17140 ;; 17141 17142 *nto* | *qnx*) 17143 ;; 17144 17145 openbsd* | bitrig*) 17146 if test -f /usr/libexec/ld.so; then 17147 hardcode_direct=yes 17148 hardcode_shlibpath_var=no 17149 hardcode_direct_absolute=yes 17150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17151 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17152 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17153 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17154 export_dynamic_flag_spec='$wl-E' 17155 else 17156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17157 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17158 fi 17159 else 17160 ld_shlibs=no 17161 fi 17162 ;; 17163 17164 os2*) 17165 hardcode_libdir_flag_spec='-L$libdir' 17166 hardcode_minus_L=yes 17167 allow_undefined_flag=unsupported 17168 shrext_cmds=.dll 17169 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17170 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17171 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17172 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17173 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17174 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17175 emximp -o $lib $output_objdir/$libname.def' 17176 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17177 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17178 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17179 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17180 prefix_cmds="$SED"~ 17181 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17182 prefix_cmds="$prefix_cmds -e 1d"; 17183 fi~ 17184 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17185 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17187 emximp -o $lib $output_objdir/$libname.def' 17188 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17189 enable_shared_with_static_runtimes=yes 17190 file_list_spec='@' 17191 ;; 17192 17193 osf3*) 17194 if test yes = "$GCC"; then 17195 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17196 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' 17197 else 17198 allow_undefined_flag=' -expect_unresolved \*' 17199 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' 17200 fi 17201 archive_cmds_need_lc='no' 17202 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17203 hardcode_libdir_separator=: 17204 ;; 17205 17206 osf4* | osf5*) # as osf3* with the addition of -msym flag 17207 if test yes = "$GCC"; then 17208 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17209 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' 17210 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17211 else 17212 allow_undefined_flag=' -expect_unresolved \*' 17213 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' 17214 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~ 17215 $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' 17216 17217 # Both c and cxx compiler support -rpath directly 17218 hardcode_libdir_flag_spec='-rpath $libdir' 17219 fi 17220 archive_cmds_need_lc='no' 17221 hardcode_libdir_separator=: 17222 ;; 17223 17224 solaris*) 17225 no_undefined_flag=' -z defs' 17226 if test yes = "$GCC"; then 17227 wlarc='$wl' 17228 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17230 $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' 17231 else 17232 case `$CC -V 2>&1` in 17233 *"Compilers 5.0"*) 17234 wlarc='' 17235 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17236 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17237 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17238 ;; 17239 *) 17240 wlarc='$wl' 17241 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17242 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17243 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17244 ;; 17245 esac 17246 fi 17247 hardcode_libdir_flag_spec='-R$libdir' 17248 hardcode_shlibpath_var=no 17249 case $host_os in 17250 solaris2.[0-5] | solaris2.[0-5].*) ;; 17251 *) 17252 # The compiler driver will combine and reorder linker options, 17253 # but understands '-z linker_flag'. GCC discards it without '$wl', 17254 # but is careful enough not to reorder. 17255 # Supported since Solaris 2.6 (maybe 2.5.1?) 17256 if test yes = "$GCC"; then 17257 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17258 else 17259 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17260 fi 17261 ;; 17262 esac 17263 link_all_deplibs=yes 17264 ;; 17265 17266 sunos4*) 17267 if test sequent = "$host_vendor"; then 17268 # Use $CC to link under sequent, because it throws in some extra .o 17269 # files that make .init and .fini sections work. 17270 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17271 else 17272 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17273 fi 17274 hardcode_libdir_flag_spec='-L$libdir' 17275 hardcode_direct=yes 17276 hardcode_minus_L=yes 17277 hardcode_shlibpath_var=no 17278 ;; 17279 17280 sysv4) 17281 case $host_vendor in 17282 sni) 17283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17284 hardcode_direct=yes # is this really true??? 17285 ;; 17286 siemens) 17287 ## LD is ld it makes a PLAMLIB 17288 ## CC just makes a GrossModule. 17289 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17290 reload_cmds='$CC -r -o $output$reload_objs' 17291 hardcode_direct=no 17292 ;; 17293 motorola) 17294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17295 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17296 ;; 17297 esac 17298 runpath_var='LD_RUN_PATH' 17299 hardcode_shlibpath_var=no 17300 ;; 17301 17302 sysv4.3*) 17303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17304 hardcode_shlibpath_var=no 17305 export_dynamic_flag_spec='-Bexport' 17306 ;; 17307 17308 sysv4*MP*) 17309 if test -d /usr/nec; then 17310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17311 hardcode_shlibpath_var=no 17312 runpath_var=LD_RUN_PATH 17313 hardcode_runpath_var=yes 17314 ld_shlibs=yes 17315 fi 17316 ;; 17317 17318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17319 no_undefined_flag='$wl-z,text' 17320 archive_cmds_need_lc=no 17321 hardcode_shlibpath_var=no 17322 runpath_var='LD_RUN_PATH' 17323 17324 if test yes = "$GCC"; then 17325 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17326 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17327 else 17328 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17329 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17330 fi 17331 ;; 17332 17333 sysv5* | sco3.2v5* | sco5v6*) 17334 # Note: We CANNOT use -z defs as we might desire, because we do not 17335 # link with -lc, and that would cause any symbols used from libc to 17336 # always be unresolved, which means just about no library would 17337 # ever link correctly. If we're not using GNU ld we use -z text 17338 # though, which does catch some bad symbols but isn't as heavy-handed 17339 # as -z defs. 17340 no_undefined_flag='$wl-z,text' 17341 allow_undefined_flag='$wl-z,nodefs' 17342 archive_cmds_need_lc=no 17343 hardcode_shlibpath_var=no 17344 hardcode_libdir_flag_spec='$wl-R,$libdir' 17345 hardcode_libdir_separator=':' 17346 link_all_deplibs=yes 17347 export_dynamic_flag_spec='$wl-Bexport' 17348 runpath_var='LD_RUN_PATH' 17349 17350 if test yes = "$GCC"; then 17351 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17352 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17353 else 17354 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17355 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17356 fi 17357 ;; 17358 17359 uts4*) 17360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17361 hardcode_libdir_flag_spec='-L$libdir' 17362 hardcode_shlibpath_var=no 17363 ;; 17364 17365 *) 17366 ld_shlibs=no 17367 ;; 17368 esac 17369 17370 if test sni = "$host_vendor"; then 17371 case $host in 17372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17373 export_dynamic_flag_spec='$wl-Blargedynsym' 17374 ;; 17375 esac 17376 fi 17377 fi 17378 17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17380 printf "%s\n" "$ld_shlibs" >&6; } 17381 test no = "$ld_shlibs" && can_build_shared=no 17382 17383 with_gnu_ld=$with_gnu_ld 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 # 17400 # Do we need to explicitly link libc? 17401 # 17402 case "x$archive_cmds_need_lc" in 17403 x|xyes) 17404 # Assume -lc should be added 17405 archive_cmds_need_lc=yes 17406 17407 if test yes,yes = "$GCC,$enable_shared"; then 17408 case $archive_cmds in 17409 *'~'*) 17410 # FIXME: we may have to deal with multi-command sequences. 17411 ;; 17412 '$CC '*) 17413 # Test whether the compiler implicitly links with -lc since on some 17414 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17415 # to ld, don't add -lc before -lgcc. 17416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17417 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17418 if test ${lt_cv_archive_cmds_need_lc+y} 17419 then : 17420 printf %s "(cached) " >&6 17421 else $as_nop 17422 $RM conftest* 17423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17424 17425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17426 (eval $ac_compile) 2>&5 17427 ac_status=$? 17428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17429 test $ac_status = 0; } 2>conftest.err; then 17430 soname=conftest 17431 lib=conftest 17432 libobjs=conftest.$ac_objext 17433 deplibs= 17434 wl=$lt_prog_compiler_wl 17435 pic_flag=$lt_prog_compiler_pic 17436 compiler_flags=-v 17437 linker_flags=-v 17438 verstring= 17439 output_objdir=. 17440 libname=conftest 17441 lt_save_allow_undefined_flag=$allow_undefined_flag 17442 allow_undefined_flag= 17443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17444 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17445 ac_status=$? 17446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17447 test $ac_status = 0; } 17448 then 17449 lt_cv_archive_cmds_need_lc=no 17450 else 17451 lt_cv_archive_cmds_need_lc=yes 17452 fi 17453 allow_undefined_flag=$lt_save_allow_undefined_flag 17454 else 17455 cat conftest.err 1>&5 17456 fi 17457 $RM conftest* 17458 17459 fi 17460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17461 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17462 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17463 ;; 17464 esac 17465 fi 17466 ;; 17467 esac 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17621 printf %s "checking dynamic linker characteristics... " >&6; } 17622 17623 if test yes = "$GCC"; then 17624 case $host_os in 17625 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17626 *) lt_awk_arg='/^libraries:/' ;; 17627 esac 17628 case $host_os in 17629 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17630 *) lt_sed_strip_eq='s|=/|/|g' ;; 17631 esac 17632 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17633 case $lt_search_path_spec in 17634 *\;*) 17635 # if the path contains ";" then we assume it to be the separator 17636 # otherwise default to the standard path separator (i.e. ":") - it is 17637 # assumed that no part of a normal pathname contains ";" but that should 17638 # okay in the real world where ";" in dirpaths is itself problematic. 17639 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17640 ;; 17641 *) 17642 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17643 ;; 17644 esac 17645 # Ok, now we have the path, separated by spaces, we can step through it 17646 # and add multilib dir if necessary... 17647 lt_tmp_lt_search_path_spec= 17648 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17649 # ...but if some path component already ends with the multilib dir we assume 17650 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17651 case "$lt_multi_os_dir; $lt_search_path_spec " in 17652 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17653 lt_multi_os_dir= 17654 ;; 17655 esac 17656 for lt_sys_path in $lt_search_path_spec; do 17657 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17658 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17659 elif test -n "$lt_multi_os_dir"; then 17660 test -d "$lt_sys_path" && \ 17661 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17662 fi 17663 done 17664 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17665 BEGIN {RS = " "; FS = "/|\n";} { 17666 lt_foo = ""; 17667 lt_count = 0; 17668 for (lt_i = NF; lt_i > 0; lt_i--) { 17669 if ($lt_i != "" && $lt_i != ".") { 17670 if ($lt_i == "..") { 17671 lt_count++; 17672 } else { 17673 if (lt_count == 0) { 17674 lt_foo = "/" $lt_i lt_foo; 17675 } else { 17676 lt_count--; 17677 } 17678 } 17679 } 17680 } 17681 if (lt_foo != "") { lt_freq[lt_foo]++; } 17682 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17683 }'` 17684 # AWK program above erroneously prepends '/' to C:/dos/paths 17685 # for these hosts. 17686 case $host_os in 17687 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17688 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17689 esac 17690 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17691 else 17692 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17693 fi 17694 library_names_spec= 17695 libname_spec='lib$name' 17696 soname_spec= 17697 shrext_cmds=.so 17698 postinstall_cmds= 17699 postuninstall_cmds= 17700 finish_cmds= 17701 finish_eval= 17702 shlibpath_var= 17703 shlibpath_overrides_runpath=unknown 17704 version_type=none 17705 dynamic_linker="$host_os ld.so" 17706 sys_lib_dlsearch_path_spec="/lib /usr/lib" 17707 need_lib_prefix=unknown 17708 hardcode_into_libs=no 17709 17710 # when you set need_version to no, make sure it does not cause -set_version 17711 # flags to be left without arguments 17712 need_version=unknown 17713 17714 17715 17716 case $host_os in 17717 aix3*) 17718 version_type=linux # correct to gnu/linux during the next big refactor 17719 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17720 shlibpath_var=LIBPATH 17721 17722 # AIX 3 has no versioning support, so we append a major version to the name. 17723 soname_spec='$libname$release$shared_ext$major' 17724 ;; 17725 17726 aix[4-9]*) 17727 version_type=linux # correct to gnu/linux during the next big refactor 17728 need_lib_prefix=no 17729 need_version=no 17730 hardcode_into_libs=yes 17731 if test ia64 = "$host_cpu"; then 17732 # AIX 5 supports IA64 17733 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17734 shlibpath_var=LD_LIBRARY_PATH 17735 else 17736 # With GCC up to 2.95.x, collect2 would create an import file 17737 # for dependence libraries. The import file would start with 17738 # the line '#! .'. This would cause the generated library to 17739 # depend on '.', always an invalid library. This was fixed in 17740 # development snapshots of GCC prior to 3.0. 17741 case $host_os in 17742 aix4 | aix4.[01] | aix4.[01].*) 17743 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17744 echo ' yes ' 17745 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17746 : 17747 else 17748 can_build_shared=no 17749 fi 17750 ;; 17751 esac 17752 # Using Import Files as archive members, it is possible to support 17753 # filename-based versioning of shared library archives on AIX. While 17754 # this would work for both with and without runtime linking, it will 17755 # prevent static linking of such archives. So we do filename-based 17756 # shared library versioning with .so extension only, which is used 17757 # when both runtime linking and shared linking is enabled. 17758 # Unfortunately, runtime linking may impact performance, so we do 17759 # not want this to be the default eventually. Also, we use the 17760 # versioned .so libs for executables only if there is the -brtl 17761 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17762 # To allow for filename-based versioning support, we need to create 17763 # libNAME.so.V as an archive file, containing: 17764 # *) an Import File, referring to the versioned filename of the 17765 # archive as well as the shared archive member, telling the 17766 # bitwidth (32 or 64) of that shared object, and providing the 17767 # list of exported symbols of that shared object, eventually 17768 # decorated with the 'weak' keyword 17769 # *) the shared object with the F_LOADONLY flag set, to really avoid 17770 # it being seen by the linker. 17771 # At run time we better use the real file rather than another symlink, 17772 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17773 17774 case $with_aix_soname,$aix_use_runtimelinking in 17775 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17776 # soname into executable. Probably we can add versioning support to 17777 # collect2, so additional links can be useful in future. 17778 aix,yes) # traditional libtool 17779 dynamic_linker='AIX unversionable lib.so' 17780 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17781 # instead of lib<name>.a to let people know that these are not 17782 # typical AIX shared libraries. 17783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17784 ;; 17785 aix,no) # traditional AIX only 17786 dynamic_linker='AIX lib.a(lib.so.V)' 17787 # We preserve .a as extension for shared libraries through AIX4.2 17788 # and later when we are not doing run time linking. 17789 library_names_spec='$libname$release.a $libname.a' 17790 soname_spec='$libname$release$shared_ext$major' 17791 ;; 17792 svr4,*) # full svr4 only 17793 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17794 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17795 # We do not specify a path in Import Files, so LIBPATH fires. 17796 shlibpath_overrides_runpath=yes 17797 ;; 17798 *,yes) # both, prefer svr4 17799 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17800 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17801 # unpreferred sharedlib libNAME.a needs extra handling 17802 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"' 17803 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"' 17804 # We do not specify a path in Import Files, so LIBPATH fires. 17805 shlibpath_overrides_runpath=yes 17806 ;; 17807 *,no) # both, prefer aix 17808 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17809 library_names_spec='$libname$release.a $libname.a' 17810 soname_spec='$libname$release$shared_ext$major' 17811 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17812 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)' 17813 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"' 17814 ;; 17815 esac 17816 shlibpath_var=LIBPATH 17817 fi 17818 ;; 17819 17820 amigaos*) 17821 case $host_cpu in 17822 powerpc) 17823 # Since July 2007 AmigaOS4 officially supports .so libraries. 17824 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17826 ;; 17827 m68k) 17828 library_names_spec='$libname.ixlibrary $libname.a' 17829 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17830 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' 17831 ;; 17832 esac 17833 ;; 17834 17835 beos*) 17836 library_names_spec='$libname$shared_ext' 17837 dynamic_linker="$host_os ld.so" 17838 shlibpath_var=LIBRARY_PATH 17839 ;; 17840 17841 bsdi[45]*) 17842 version_type=linux # correct to gnu/linux during the next big refactor 17843 need_version=no 17844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17845 soname_spec='$libname$release$shared_ext$major' 17846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17847 shlibpath_var=LD_LIBRARY_PATH 17848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17850 # the default ld.so.conf also contains /usr/contrib/lib and 17851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17852 # libtool to hard-code these into programs 17853 ;; 17854 17855 cygwin* | mingw* | pw32* | cegcc*) 17856 version_type=windows 17857 shrext_cmds=.dll 17858 need_version=no 17859 need_lib_prefix=no 17860 17861 case $GCC,$cc_basename in 17862 yes,*) 17863 # gcc 17864 library_names_spec='$libname.dll.a' 17865 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17866 postinstall_cmds='base_file=`basename \$file`~ 17867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17868 dldir=$destdir/`dirname \$dlpath`~ 17869 test -d \$dldir || mkdir -p \$dldir~ 17870 $install_prog $dir/$dlname \$dldir/$dlname~ 17871 chmod a+x \$dldir/$dlname~ 17872 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17873 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17874 fi' 17875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17876 dlpath=$dir/\$dldll~ 17877 $RM \$dlpath' 17878 shlibpath_overrides_runpath=yes 17879 17880 case $host_os in 17881 cygwin*) 17882 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17883 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17884 17885 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17886 ;; 17887 mingw* | cegcc*) 17888 # MinGW DLLs use traditional 'lib' prefix 17889 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17890 ;; 17891 pw32*) 17892 # pw32 DLLs use 'pw' prefix rather than 'lib' 17893 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17894 ;; 17895 esac 17896 dynamic_linker='Win32 ld.exe' 17897 ;; 17898 17899 *,cl* | *,icl*) 17900 # Native MSVC or ICC 17901 libname_spec='$name' 17902 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17903 library_names_spec='$libname.dll.lib' 17904 17905 case $build_os in 17906 mingw*) 17907 sys_lib_search_path_spec= 17908 lt_save_ifs=$IFS 17909 IFS=';' 17910 for lt_path in $LIB 17911 do 17912 IFS=$lt_save_ifs 17913 # Let DOS variable expansion print the short 8.3 style file name. 17914 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17915 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17916 done 17917 IFS=$lt_save_ifs 17918 # Convert to MSYS style. 17919 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17920 ;; 17921 cygwin*) 17922 # Convert to unix form, then to dos form, then back to unix form 17923 # but this time dos style (no spaces!) so that the unix form looks 17924 # like /cygdrive/c/PROGRA~1:/cygdr... 17925 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17926 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17927 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17928 ;; 17929 *) 17930 sys_lib_search_path_spec=$LIB 17931 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17932 # It is most probably a Windows format PATH. 17933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17934 else 17935 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17936 fi 17937 # FIXME: find the short name or the path components, as spaces are 17938 # common. (e.g. "Program Files" -> "PROGRA~1") 17939 ;; 17940 esac 17941 17942 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17943 postinstall_cmds='base_file=`basename \$file`~ 17944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17945 dldir=$destdir/`dirname \$dlpath`~ 17946 test -d \$dldir || mkdir -p \$dldir~ 17947 $install_prog $dir/$dlname \$dldir/$dlname' 17948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17949 dlpath=$dir/\$dldll~ 17950 $RM \$dlpath' 17951 shlibpath_overrides_runpath=yes 17952 dynamic_linker='Win32 link.exe' 17953 ;; 17954 17955 *) 17956 # Assume MSVC and ICC wrapper 17957 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17958 dynamic_linker='Win32 ld.exe' 17959 ;; 17960 esac 17961 # FIXME: first we should search . and the directory the executable is in 17962 shlibpath_var=PATH 17963 ;; 17964 17965 darwin* | rhapsody*) 17966 dynamic_linker="$host_os dyld" 17967 version_type=darwin 17968 need_lib_prefix=no 17969 need_version=no 17970 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17971 soname_spec='$libname$release$major$shared_ext' 17972 shlibpath_overrides_runpath=yes 17973 shlibpath_var=DYLD_LIBRARY_PATH 17974 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17975 17976 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17977 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17978 ;; 17979 17980 dgux*) 17981 version_type=linux # correct to gnu/linux during the next big refactor 17982 need_lib_prefix=no 17983 need_version=no 17984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17985 soname_spec='$libname$release$shared_ext$major' 17986 shlibpath_var=LD_LIBRARY_PATH 17987 ;; 17988 17989 freebsd* | dragonfly* | midnightbsd*) 17990 # DragonFly does not have aout. When/if they implement a new 17991 # versioning mechanism, adjust this. 17992 if test -x /usr/bin/objformat; then 17993 objformat=`/usr/bin/objformat` 17994 else 17995 case $host_os in 17996 freebsd[23].*) objformat=aout ;; 17997 *) objformat=elf ;; 17998 esac 17999 fi 18000 version_type=freebsd-$objformat 18001 case $version_type in 18002 freebsd-elf*) 18003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18004 soname_spec='$libname$release$shared_ext$major' 18005 need_version=no 18006 need_lib_prefix=no 18007 ;; 18008 freebsd-*) 18009 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18010 need_version=yes 18011 ;; 18012 esac 18013 shlibpath_var=LD_LIBRARY_PATH 18014 case $host_os in 18015 freebsd2.*) 18016 shlibpath_overrides_runpath=yes 18017 ;; 18018 freebsd3.[01]* | freebsdelf3.[01]*) 18019 shlibpath_overrides_runpath=yes 18020 hardcode_into_libs=yes 18021 ;; 18022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18024 shlibpath_overrides_runpath=no 18025 hardcode_into_libs=yes 18026 ;; 18027 *) # from 4.6 on, and DragonFly 18028 shlibpath_overrides_runpath=yes 18029 hardcode_into_libs=yes 18030 ;; 18031 esac 18032 ;; 18033 18034 haiku*) 18035 version_type=linux # correct to gnu/linux during the next big refactor 18036 need_lib_prefix=no 18037 need_version=no 18038 dynamic_linker="$host_os runtime_loader" 18039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18040 soname_spec='$libname$release$shared_ext$major' 18041 shlibpath_var=LIBRARY_PATH 18042 shlibpath_overrides_runpath=no 18043 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18044 hardcode_into_libs=yes 18045 ;; 18046 18047 hpux9* | hpux10* | hpux11*) 18048 # Give a soname corresponding to the major version so that dld.sl refuses to 18049 # link against other versions. 18050 version_type=sunos 18051 need_lib_prefix=no 18052 need_version=no 18053 case $host_cpu in 18054 ia64*) 18055 shrext_cmds='.so' 18056 hardcode_into_libs=yes 18057 dynamic_linker="$host_os dld.so" 18058 shlibpath_var=LD_LIBRARY_PATH 18059 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18061 soname_spec='$libname$release$shared_ext$major' 18062 if test 32 = "$HPUX_IA64_MODE"; then 18063 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18064 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18065 else 18066 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18067 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18068 fi 18069 ;; 18070 hppa*64*) 18071 shrext_cmds='.sl' 18072 hardcode_into_libs=yes 18073 dynamic_linker="$host_os dld.sl" 18074 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18077 soname_spec='$libname$release$shared_ext$major' 18078 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18080 ;; 18081 *) 18082 shrext_cmds='.sl' 18083 dynamic_linker="$host_os dld.sl" 18084 shlibpath_var=SHLIB_PATH 18085 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18087 soname_spec='$libname$release$shared_ext$major' 18088 ;; 18089 esac 18090 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18091 postinstall_cmds='chmod 555 $lib' 18092 # or fails outright, so override atomically: 18093 install_override_mode=555 18094 ;; 18095 18096 interix[3-9]*) 18097 version_type=linux # correct to gnu/linux during the next big refactor 18098 need_lib_prefix=no 18099 need_version=no 18100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18101 soname_spec='$libname$release$shared_ext$major' 18102 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18103 shlibpath_var=LD_LIBRARY_PATH 18104 shlibpath_overrides_runpath=no 18105 hardcode_into_libs=yes 18106 ;; 18107 18108 irix5* | irix6* | nonstopux*) 18109 case $host_os in 18110 nonstopux*) version_type=nonstopux ;; 18111 *) 18112 if test yes = "$lt_cv_prog_gnu_ld"; then 18113 version_type=linux # correct to gnu/linux during the next big refactor 18114 else 18115 version_type=irix 18116 fi ;; 18117 esac 18118 need_lib_prefix=no 18119 need_version=no 18120 soname_spec='$libname$release$shared_ext$major' 18121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18122 case $host_os in 18123 irix5* | nonstopux*) 18124 libsuff= shlibsuff= 18125 ;; 18126 *) 18127 case $LD in # libtool.m4 will add one of these switches to LD 18128 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18129 libsuff= shlibsuff= libmagic=32-bit;; 18130 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18131 libsuff=32 shlibsuff=N32 libmagic=N32;; 18132 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18133 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18134 *) libsuff= shlibsuff= libmagic=never-match;; 18135 esac 18136 ;; 18137 esac 18138 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18139 shlibpath_overrides_runpath=no 18140 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18141 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18142 hardcode_into_libs=yes 18143 ;; 18144 18145 # No shared lib support for Linux oldld, aout, or coff. 18146 linux*oldld* | linux*aout* | linux*coff*) 18147 dynamic_linker=no 18148 ;; 18149 18150 linux*android*) 18151 version_type=none # Android doesn't support versioned libraries. 18152 need_lib_prefix=no 18153 need_version=no 18154 library_names_spec='$libname$release$shared_ext' 18155 soname_spec='$libname$release$shared_ext' 18156 finish_cmds= 18157 shlibpath_var=LD_LIBRARY_PATH 18158 shlibpath_overrides_runpath=yes 18159 18160 # This implies no fast_install, which is unacceptable. 18161 # Some rework will be needed to allow for fast_install 18162 # before this can be enabled. 18163 hardcode_into_libs=yes 18164 18165 dynamic_linker='Android linker' 18166 # Don't embed -rpath directories since the linker doesn't support them. 18167 hardcode_libdir_flag_spec='-L$libdir' 18168 ;; 18169 18170 # This must be glibc/ELF. 18171 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18172 version_type=linux # correct to gnu/linux during the next big refactor 18173 need_lib_prefix=no 18174 need_version=no 18175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18176 soname_spec='$libname$release$shared_ext$major' 18177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18178 shlibpath_var=LD_LIBRARY_PATH 18179 shlibpath_overrides_runpath=no 18180 18181 # Some binutils ld are patched to set DT_RUNPATH 18182 if test ${lt_cv_shlibpath_overrides_runpath+y} 18183 then : 18184 printf %s "(cached) " >&6 18185 else $as_nop 18186 lt_cv_shlibpath_overrides_runpath=no 18187 save_LDFLAGS=$LDFLAGS 18188 save_libdir=$libdir 18189 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18190 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18192 /* end confdefs.h. */ 18193 18194 int 18195 main (void) 18196 { 18197 18198 ; 18199 return 0; 18200 } 18201 _ACEOF 18202 if ac_fn_c_try_link "$LINENO" 18203 then : 18204 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18205 then : 18206 lt_cv_shlibpath_overrides_runpath=yes 18207 fi 18208 fi 18209 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18210 conftest$ac_exeext conftest.$ac_ext 18211 LDFLAGS=$save_LDFLAGS 18212 libdir=$save_libdir 18213 18214 fi 18215 18216 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18217 18218 # This implies no fast_install, which is unacceptable. 18219 # Some rework will be needed to allow for fast_install 18220 # before this can be enabled. 18221 hardcode_into_libs=yes 18222 18223 # Ideally, we could use ldconfig to report *all* directores which are 18224 # searched for libraries, however this is still not possible. Aside from not 18225 # being certain /sbin/ldconfig is available, command 18226 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18227 # even though it is searched at run-time. Try to do the best guess by 18228 # appending ld.so.conf contents (and includes) to the search path. 18229 if test -f /etc/ld.so.conf; then 18230 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' ' '` 18231 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18232 fi 18233 18234 # We used to test for /lib/ld.so.1 and disable shared libraries on 18235 # powerpc, because MkLinux only supported shared libraries with the 18236 # GNU dynamic linker. Since this was broken with cross compilers, 18237 # most powerpc-linux boxes support dynamic linking these days and 18238 # people can always --disable-shared, the test was removed, and we 18239 # assume the GNU/Linux dynamic linker is in use. 18240 dynamic_linker='GNU/Linux ld.so' 18241 ;; 18242 18243 netbsd*) 18244 version_type=sunos 18245 need_lib_prefix=no 18246 need_version=no 18247 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18248 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18250 dynamic_linker='NetBSD (a.out) ld.so' 18251 else 18252 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18253 soname_spec='$libname$release$shared_ext$major' 18254 dynamic_linker='NetBSD ld.elf_so' 18255 fi 18256 shlibpath_var=LD_LIBRARY_PATH 18257 shlibpath_overrides_runpath=yes 18258 hardcode_into_libs=yes 18259 ;; 18260 18261 newsos6) 18262 version_type=linux # correct to gnu/linux during the next big refactor 18263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18264 shlibpath_var=LD_LIBRARY_PATH 18265 shlibpath_overrides_runpath=yes 18266 ;; 18267 18268 *nto* | *qnx*) 18269 version_type=qnx 18270 need_lib_prefix=no 18271 need_version=no 18272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18273 soname_spec='$libname$release$shared_ext$major' 18274 shlibpath_var=LD_LIBRARY_PATH 18275 shlibpath_overrides_runpath=no 18276 hardcode_into_libs=yes 18277 dynamic_linker='ldqnx.so' 18278 ;; 18279 18280 openbsd* | bitrig*) 18281 version_type=sunos 18282 sys_lib_dlsearch_path_spec=/usr/lib 18283 need_lib_prefix=no 18284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18285 need_version=no 18286 else 18287 need_version=yes 18288 fi 18289 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18291 shlibpath_var=LD_LIBRARY_PATH 18292 shlibpath_overrides_runpath=yes 18293 ;; 18294 18295 os2*) 18296 libname_spec='$name' 18297 version_type=windows 18298 shrext_cmds=.dll 18299 need_version=no 18300 need_lib_prefix=no 18301 # OS/2 can only load a DLL with a base name of 8 characters or less. 18302 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18303 v=$($ECHO $release$versuffix | tr -d .-); 18304 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18305 $ECHO $n$v`$shared_ext' 18306 library_names_spec='${libname}_dll.$libext' 18307 dynamic_linker='OS/2 ld.exe' 18308 shlibpath_var=BEGINLIBPATH 18309 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18311 postinstall_cmds='base_file=`basename \$file`~ 18312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18313 dldir=$destdir/`dirname \$dlpath`~ 18314 test -d \$dldir || mkdir -p \$dldir~ 18315 $install_prog $dir/$dlname \$dldir/$dlname~ 18316 chmod a+x \$dldir/$dlname~ 18317 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18318 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18319 fi' 18320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18321 dlpath=$dir/\$dldll~ 18322 $RM \$dlpath' 18323 ;; 18324 18325 osf3* | osf4* | osf5*) 18326 version_type=osf 18327 need_lib_prefix=no 18328 need_version=no 18329 soname_spec='$libname$release$shared_ext$major' 18330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18331 shlibpath_var=LD_LIBRARY_PATH 18332 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18333 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18334 ;; 18335 18336 rdos*) 18337 dynamic_linker=no 18338 ;; 18339 18340 solaris*) 18341 version_type=linux # correct to gnu/linux during the next big refactor 18342 need_lib_prefix=no 18343 need_version=no 18344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18345 soname_spec='$libname$release$shared_ext$major' 18346 shlibpath_var=LD_LIBRARY_PATH 18347 shlibpath_overrides_runpath=yes 18348 hardcode_into_libs=yes 18349 # ldd complains unless libraries are executable 18350 postinstall_cmds='chmod +x $lib' 18351 ;; 18352 18353 sunos4*) 18354 version_type=sunos 18355 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18356 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18357 shlibpath_var=LD_LIBRARY_PATH 18358 shlibpath_overrides_runpath=yes 18359 if test yes = "$with_gnu_ld"; then 18360 need_lib_prefix=no 18361 fi 18362 need_version=yes 18363 ;; 18364 18365 sysv4 | sysv4.3*) 18366 version_type=linux # correct to gnu/linux during the next big refactor 18367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18368 soname_spec='$libname$release$shared_ext$major' 18369 shlibpath_var=LD_LIBRARY_PATH 18370 case $host_vendor in 18371 sni) 18372 shlibpath_overrides_runpath=no 18373 need_lib_prefix=no 18374 runpath_var=LD_RUN_PATH 18375 ;; 18376 siemens) 18377 need_lib_prefix=no 18378 ;; 18379 motorola) 18380 need_lib_prefix=no 18381 need_version=no 18382 shlibpath_overrides_runpath=no 18383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18384 ;; 18385 esac 18386 ;; 18387 18388 sysv4*MP*) 18389 if test -d /usr/nec; then 18390 version_type=linux # correct to gnu/linux during the next big refactor 18391 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18392 soname_spec='$libname$shared_ext.$major' 18393 shlibpath_var=LD_LIBRARY_PATH 18394 fi 18395 ;; 18396 18397 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18398 version_type=sco 18399 need_lib_prefix=no 18400 need_version=no 18401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18402 soname_spec='$libname$release$shared_ext$major' 18403 shlibpath_var=LD_LIBRARY_PATH 18404 shlibpath_overrides_runpath=yes 18405 hardcode_into_libs=yes 18406 if test yes = "$with_gnu_ld"; then 18407 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18408 else 18409 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18410 case $host_os in 18411 sco3.2v5*) 18412 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18413 ;; 18414 esac 18415 fi 18416 sys_lib_dlsearch_path_spec='/usr/lib' 18417 ;; 18418 18419 tpf*) 18420 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18421 version_type=linux # correct to gnu/linux during the next big refactor 18422 need_lib_prefix=no 18423 need_version=no 18424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18425 shlibpath_var=LD_LIBRARY_PATH 18426 shlibpath_overrides_runpath=no 18427 hardcode_into_libs=yes 18428 ;; 18429 18430 uts4*) 18431 version_type=linux # correct to gnu/linux during the next big refactor 18432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18433 soname_spec='$libname$release$shared_ext$major' 18434 shlibpath_var=LD_LIBRARY_PATH 18435 ;; 18436 18437 *) 18438 dynamic_linker=no 18439 ;; 18440 esac 18441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18442 printf "%s\n" "$dynamic_linker" >&6; } 18443 test no = "$dynamic_linker" && can_build_shared=no 18444 18445 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18446 if test yes = "$GCC"; then 18447 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18448 fi 18449 18450 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18451 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18452 fi 18453 18454 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18455 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18456 fi 18457 18458 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18459 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18460 18461 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18462 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18463 18464 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18465 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18564 printf %s "checking how to hardcode library paths into programs... " >&6; } 18565 hardcode_action= 18566 if test -n "$hardcode_libdir_flag_spec" || 18567 test -n "$runpath_var" || 18568 test yes = "$hardcode_automatic"; then 18569 18570 # We can hardcode non-existent directories. 18571 if test no != "$hardcode_direct" && 18572 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18573 # have to relink, otherwise we might link with an installed library 18574 # when we should be linking with a yet-to-be-installed one 18575 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18576 test no != "$hardcode_minus_L"; then 18577 # Linking always hardcodes the temporary library directory. 18578 hardcode_action=relink 18579 else 18580 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18581 hardcode_action=immediate 18582 fi 18583 else 18584 # We cannot hardcode anything, or else we can only hardcode existing 18585 # directories. 18586 hardcode_action=unsupported 18587 fi 18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18589 printf "%s\n" "$hardcode_action" >&6; } 18590 18591 if test relink = "$hardcode_action" || 18592 test yes = "$inherit_rpath"; then 18593 # Fast installation is not supported 18594 enable_fast_install=no 18595 elif test yes = "$shlibpath_overrides_runpath" || 18596 test no = "$enable_shared"; then 18597 # Fast installation is not necessary 18598 enable_fast_install=needless 18599 fi 18600 18601 18602 18603 18604 18605 18606 if test yes != "$enable_dlopen"; then 18607 enable_dlopen=unknown 18608 enable_dlopen_self=unknown 18609 enable_dlopen_self_static=unknown 18610 else 18611 lt_cv_dlopen=no 18612 lt_cv_dlopen_libs= 18613 18614 case $host_os in 18615 beos*) 18616 lt_cv_dlopen=load_add_on 18617 lt_cv_dlopen_libs= 18618 lt_cv_dlopen_self=yes 18619 ;; 18620 18621 mingw* | pw32* | cegcc*) 18622 lt_cv_dlopen=LoadLibrary 18623 lt_cv_dlopen_libs= 18624 ;; 18625 18626 cygwin*) 18627 lt_cv_dlopen=dlopen 18628 lt_cv_dlopen_libs= 18629 ;; 18630 18631 darwin*) 18632 # if libdl is installed we need to link against it 18633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18634 printf %s "checking for dlopen in -ldl... " >&6; } 18635 if test ${ac_cv_lib_dl_dlopen+y} 18636 then : 18637 printf %s "(cached) " >&6 18638 else $as_nop 18639 ac_check_lib_save_LIBS=$LIBS 18640 LIBS="-ldl $LIBS" 18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18642 /* end confdefs.h. */ 18643 18644 /* Override any GCC internal prototype to avoid an error. 18645 Use char because int might match the return type of a GCC 18646 builtin and then its argument prototype would still apply. */ 18647 char dlopen (); 18648 int 18649 main (void) 18650 { 18651 return dlopen (); 18652 ; 18653 return 0; 18654 } 18655 _ACEOF 18656 if ac_fn_c_try_link "$LINENO" 18657 then : 18658 ac_cv_lib_dl_dlopen=yes 18659 else $as_nop 18660 ac_cv_lib_dl_dlopen=no 18661 fi 18662 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18663 conftest$ac_exeext conftest.$ac_ext 18664 LIBS=$ac_check_lib_save_LIBS 18665 fi 18666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18667 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18668 if test "x$ac_cv_lib_dl_dlopen" = xyes 18669 then : 18670 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18671 else $as_nop 18672 18673 lt_cv_dlopen=dyld 18674 lt_cv_dlopen_libs= 18675 lt_cv_dlopen_self=yes 18676 18677 fi 18678 18679 ;; 18680 18681 tpf*) 18682 # Don't try to run any link tests for TPF. We know it's impossible 18683 # because TPF is a cross-compiler, and we know how we open DSOs. 18684 lt_cv_dlopen=dlopen 18685 lt_cv_dlopen_libs= 18686 lt_cv_dlopen_self=no 18687 ;; 18688 18689 *) 18690 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18691 if test "x$ac_cv_func_shl_load" = xyes 18692 then : 18693 lt_cv_dlopen=shl_load 18694 else $as_nop 18695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18696 printf %s "checking for shl_load in -ldld... " >&6; } 18697 if test ${ac_cv_lib_dld_shl_load+y} 18698 then : 18699 printf %s "(cached) " >&6 18700 else $as_nop 18701 ac_check_lib_save_LIBS=$LIBS 18702 LIBS="-ldld $LIBS" 18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18704 /* end confdefs.h. */ 18705 18706 /* Override any GCC internal prototype to avoid an error. 18707 Use char because int might match the return type of a GCC 18708 builtin and then its argument prototype would still apply. */ 18709 char shl_load (); 18710 int 18711 main (void) 18712 { 18713 return shl_load (); 18714 ; 18715 return 0; 18716 } 18717 _ACEOF 18718 if ac_fn_c_try_link "$LINENO" 18719 then : 18720 ac_cv_lib_dld_shl_load=yes 18721 else $as_nop 18722 ac_cv_lib_dld_shl_load=no 18723 fi 18724 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18725 conftest$ac_exeext conftest.$ac_ext 18726 LIBS=$ac_check_lib_save_LIBS 18727 fi 18728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18729 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18730 if test "x$ac_cv_lib_dld_shl_load" = xyes 18731 then : 18732 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18733 else $as_nop 18734 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18735 if test "x$ac_cv_func_dlopen" = xyes 18736 then : 18737 lt_cv_dlopen=dlopen 18738 else $as_nop 18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18740 printf %s "checking for dlopen in -ldl... " >&6; } 18741 if test ${ac_cv_lib_dl_dlopen+y} 18742 then : 18743 printf %s "(cached) " >&6 18744 else $as_nop 18745 ac_check_lib_save_LIBS=$LIBS 18746 LIBS="-ldl $LIBS" 18747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18748 /* end confdefs.h. */ 18749 18750 /* Override any GCC internal prototype to avoid an error. 18751 Use char because int might match the return type of a GCC 18752 builtin and then its argument prototype would still apply. */ 18753 char dlopen (); 18754 int 18755 main (void) 18756 { 18757 return dlopen (); 18758 ; 18759 return 0; 18760 } 18761 _ACEOF 18762 if ac_fn_c_try_link "$LINENO" 18763 then : 18764 ac_cv_lib_dl_dlopen=yes 18765 else $as_nop 18766 ac_cv_lib_dl_dlopen=no 18767 fi 18768 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18769 conftest$ac_exeext conftest.$ac_ext 18770 LIBS=$ac_check_lib_save_LIBS 18771 fi 18772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18773 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18774 if test "x$ac_cv_lib_dl_dlopen" = xyes 18775 then : 18776 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18777 else $as_nop 18778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18779 printf %s "checking for dlopen in -lsvld... " >&6; } 18780 if test ${ac_cv_lib_svld_dlopen+y} 18781 then : 18782 printf %s "(cached) " >&6 18783 else $as_nop 18784 ac_check_lib_save_LIBS=$LIBS 18785 LIBS="-lsvld $LIBS" 18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18787 /* end confdefs.h. */ 18788 18789 /* Override any GCC internal prototype to avoid an error. 18790 Use char because int might match the return type of a GCC 18791 builtin and then its argument prototype would still apply. */ 18792 char dlopen (); 18793 int 18794 main (void) 18795 { 18796 return dlopen (); 18797 ; 18798 return 0; 18799 } 18800 _ACEOF 18801 if ac_fn_c_try_link "$LINENO" 18802 then : 18803 ac_cv_lib_svld_dlopen=yes 18804 else $as_nop 18805 ac_cv_lib_svld_dlopen=no 18806 fi 18807 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18808 conftest$ac_exeext conftest.$ac_ext 18809 LIBS=$ac_check_lib_save_LIBS 18810 fi 18811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18812 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18813 if test "x$ac_cv_lib_svld_dlopen" = xyes 18814 then : 18815 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18816 else $as_nop 18817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18818 printf %s "checking for dld_link in -ldld... " >&6; } 18819 if test ${ac_cv_lib_dld_dld_link+y} 18820 then : 18821 printf %s "(cached) " >&6 18822 else $as_nop 18823 ac_check_lib_save_LIBS=$LIBS 18824 LIBS="-ldld $LIBS" 18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18826 /* end confdefs.h. */ 18827 18828 /* Override any GCC internal prototype to avoid an error. 18829 Use char because int might match the return type of a GCC 18830 builtin and then its argument prototype would still apply. */ 18831 char dld_link (); 18832 int 18833 main (void) 18834 { 18835 return dld_link (); 18836 ; 18837 return 0; 18838 } 18839 _ACEOF 18840 if ac_fn_c_try_link "$LINENO" 18841 then : 18842 ac_cv_lib_dld_dld_link=yes 18843 else $as_nop 18844 ac_cv_lib_dld_dld_link=no 18845 fi 18846 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18847 conftest$ac_exeext conftest.$ac_ext 18848 LIBS=$ac_check_lib_save_LIBS 18849 fi 18850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18851 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18852 if test "x$ac_cv_lib_dld_dld_link" = xyes 18853 then : 18854 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18855 fi 18856 18857 18858 fi 18859 18860 18861 fi 18862 18863 18864 fi 18865 18866 18867 fi 18868 18869 18870 fi 18871 18872 ;; 18873 esac 18874 18875 if test no = "$lt_cv_dlopen"; then 18876 enable_dlopen=no 18877 else 18878 enable_dlopen=yes 18879 fi 18880 18881 case $lt_cv_dlopen in 18882 dlopen) 18883 save_CPPFLAGS=$CPPFLAGS 18884 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18885 18886 save_LDFLAGS=$LDFLAGS 18887 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18888 18889 save_LIBS=$LIBS 18890 LIBS="$lt_cv_dlopen_libs $LIBS" 18891 18892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18893 printf %s "checking whether a program can dlopen itself... " >&6; } 18894 if test ${lt_cv_dlopen_self+y} 18895 then : 18896 printf %s "(cached) " >&6 18897 else $as_nop 18898 if test yes = "$cross_compiling"; then : 18899 lt_cv_dlopen_self=cross 18900 else 18901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18902 lt_status=$lt_dlunknown 18903 cat > conftest.$ac_ext <<_LT_EOF 18904 #line $LINENO "configure" 18905 #include "confdefs.h" 18906 18907 #if HAVE_DLFCN_H 18908 #include <dlfcn.h> 18909 #endif 18910 18911 #include <stdio.h> 18912 18913 #ifdef RTLD_GLOBAL 18914 # define LT_DLGLOBAL RTLD_GLOBAL 18915 #else 18916 # ifdef DL_GLOBAL 18917 # define LT_DLGLOBAL DL_GLOBAL 18918 # else 18919 # define LT_DLGLOBAL 0 18920 # endif 18921 #endif 18922 18923 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18924 find out it does not work in some platform. */ 18925 #ifndef LT_DLLAZY_OR_NOW 18926 # ifdef RTLD_LAZY 18927 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18928 # else 18929 # ifdef DL_LAZY 18930 # define LT_DLLAZY_OR_NOW DL_LAZY 18931 # else 18932 # ifdef RTLD_NOW 18933 # define LT_DLLAZY_OR_NOW RTLD_NOW 18934 # else 18935 # ifdef DL_NOW 18936 # define LT_DLLAZY_OR_NOW DL_NOW 18937 # else 18938 # define LT_DLLAZY_OR_NOW 0 18939 # endif 18940 # endif 18941 # endif 18942 # endif 18943 #endif 18944 18945 /* When -fvisibility=hidden is used, assume the code has been annotated 18946 correspondingly for the symbols needed. */ 18947 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18948 int fnord () __attribute__((visibility("default"))); 18949 #endif 18950 18951 int fnord () { return 42; } 18952 int main () 18953 { 18954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18955 int status = $lt_dlunknown; 18956 18957 if (self) 18958 { 18959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18960 else 18961 { 18962 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18963 else puts (dlerror ()); 18964 } 18965 /* dlclose (self); */ 18966 } 18967 else 18968 puts (dlerror ()); 18969 18970 return status; 18971 } 18972 _LT_EOF 18973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18974 (eval $ac_link) 2>&5 18975 ac_status=$? 18976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18977 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18978 (./conftest; exit; ) >&5 2>/dev/null 18979 lt_status=$? 18980 case x$lt_status in 18981 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18982 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18983 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18984 esac 18985 else : 18986 # compilation failed 18987 lt_cv_dlopen_self=no 18988 fi 18989 fi 18990 rm -fr conftest* 18991 18992 18993 fi 18994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18995 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 18996 18997 if test yes = "$lt_cv_dlopen_self"; then 18998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19000 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19001 if test ${lt_cv_dlopen_self_static+y} 19002 then : 19003 printf %s "(cached) " >&6 19004 else $as_nop 19005 if test yes = "$cross_compiling"; then : 19006 lt_cv_dlopen_self_static=cross 19007 else 19008 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19009 lt_status=$lt_dlunknown 19010 cat > conftest.$ac_ext <<_LT_EOF 19011 #line $LINENO "configure" 19012 #include "confdefs.h" 19013 19014 #if HAVE_DLFCN_H 19015 #include <dlfcn.h> 19016 #endif 19017 19018 #include <stdio.h> 19019 19020 #ifdef RTLD_GLOBAL 19021 # define LT_DLGLOBAL RTLD_GLOBAL 19022 #else 19023 # ifdef DL_GLOBAL 19024 # define LT_DLGLOBAL DL_GLOBAL 19025 # else 19026 # define LT_DLGLOBAL 0 19027 # endif 19028 #endif 19029 19030 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19031 find out it does not work in some platform. */ 19032 #ifndef LT_DLLAZY_OR_NOW 19033 # ifdef RTLD_LAZY 19034 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19035 # else 19036 # ifdef DL_LAZY 19037 # define LT_DLLAZY_OR_NOW DL_LAZY 19038 # else 19039 # ifdef RTLD_NOW 19040 # define LT_DLLAZY_OR_NOW RTLD_NOW 19041 # else 19042 # ifdef DL_NOW 19043 # define LT_DLLAZY_OR_NOW DL_NOW 19044 # else 19045 # define LT_DLLAZY_OR_NOW 0 19046 # endif 19047 # endif 19048 # endif 19049 # endif 19050 #endif 19051 19052 /* When -fvisibility=hidden is used, assume the code has been annotated 19053 correspondingly for the symbols needed. */ 19054 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19055 int fnord () __attribute__((visibility("default"))); 19056 #endif 19057 19058 int fnord () { return 42; } 19059 int main () 19060 { 19061 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19062 int status = $lt_dlunknown; 19063 19064 if (self) 19065 { 19066 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19067 else 19068 { 19069 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19070 else puts (dlerror ()); 19071 } 19072 /* dlclose (self); */ 19073 } 19074 else 19075 puts (dlerror ()); 19076 19077 return status; 19078 } 19079 _LT_EOF 19080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19081 (eval $ac_link) 2>&5 19082 ac_status=$? 19083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19084 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19085 (./conftest; exit; ) >&5 2>/dev/null 19086 lt_status=$? 19087 case x$lt_status in 19088 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19089 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19090 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19091 esac 19092 else : 19093 # compilation failed 19094 lt_cv_dlopen_self_static=no 19095 fi 19096 fi 19097 rm -fr conftest* 19098 19099 19100 fi 19101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19102 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19103 fi 19104 19105 CPPFLAGS=$save_CPPFLAGS 19106 LDFLAGS=$save_LDFLAGS 19107 LIBS=$save_LIBS 19108 ;; 19109 esac 19110 19111 case $lt_cv_dlopen_self in 19112 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19113 *) enable_dlopen_self=unknown ;; 19114 esac 19115 19116 case $lt_cv_dlopen_self_static in 19117 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19118 *) enable_dlopen_self_static=unknown ;; 19119 esac 19120 fi 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 striplib= 19139 old_striplib= 19140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19141 printf %s "checking whether stripping libraries is possible... " >&6; } 19142 if test -z "$STRIP"; then 19143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19144 printf "%s\n" "no" >&6; } 19145 else 19146 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19147 old_striplib="$STRIP --strip-debug" 19148 striplib="$STRIP --strip-unneeded" 19149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19150 printf "%s\n" "yes" >&6; } 19151 else 19152 case $host_os in 19153 darwin*) 19154 # FIXME - insert some real tests, host_os isn't really good enough 19155 striplib="$STRIP -x" 19156 old_striplib="$STRIP -S" 19157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19158 printf "%s\n" "yes" >&6; } 19159 ;; 19160 freebsd*) 19161 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19162 old_striplib="$STRIP --strip-debug" 19163 striplib="$STRIP --strip-unneeded" 19164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19165 printf "%s\n" "yes" >&6; } 19166 else 19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19168 printf "%s\n" "no" >&6; } 19169 fi 19170 ;; 19171 *) 19172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19173 printf "%s\n" "no" >&6; } 19174 ;; 19175 esac 19176 fi 19177 fi 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 # Report what library types will actually be built 19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19192 printf %s "checking if libtool supports shared libraries... " >&6; } 19193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19194 printf "%s\n" "$can_build_shared" >&6; } 19195 19196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19197 printf %s "checking whether to build shared libraries... " >&6; } 19198 test no = "$can_build_shared" && enable_shared=no 19199 19200 # On AIX, shared libraries and static libraries use the same namespace, and 19201 # are all built from PIC. 19202 case $host_os in 19203 aix3*) 19204 test yes = "$enable_shared" && enable_static=no 19205 if test -n "$RANLIB"; then 19206 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19207 postinstall_cmds='$RANLIB $lib' 19208 fi 19209 ;; 19210 19211 aix[4-9]*) 19212 if test ia64 != "$host_cpu"; then 19213 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19214 yes,aix,yes) ;; # shared object as lib.so file only 19215 yes,svr4,*) ;; # shared object as lib.so archive member only 19216 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19217 esac 19218 fi 19219 ;; 19220 esac 19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19222 printf "%s\n" "$enable_shared" >&6; } 19223 19224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19225 printf %s "checking whether to build static libraries... " >&6; } 19226 # Make sure either enable_shared or enable_static is yes. 19227 test yes = "$enable_shared" || enable_static=yes 19228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19229 printf "%s\n" "$enable_static" >&6; } 19230 19231 19232 19233 19234 fi 19235 ac_ext=c 19236 ac_cpp='$CPP $CPPFLAGS' 19237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19239 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19240 19241 CC=$lt_save_CC 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 ac_config_commands="$ac_config_commands libtool" 19258 19259 19260 19261 19262 # Only expand once: 19263 19264 19265 19266 19267 19268 # Define a configure option for an alternate module directory 19269 19270 # Check whether --with-xorg-module-dir was given. 19271 if test ${with_xorg_module_dir+y} 19272 then : 19273 withval=$with_xorg_module_dir; moduledir="$withval" 19274 else $as_nop 19275 moduledir="$libdir/xorg/modules" 19276 fi 19277 19278 19279 # Store the list of server defined optional extensions in REQUIRED_MODULES 19280 19281 19282 SAVE_CFLAGS="$CFLAGS" 19283 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19285 /* end confdefs.h. */ 19286 19287 #include "xorg-server.h" 19288 #if !defined XV 19289 #error XV not defined 19290 #endif 19291 19292 int 19293 main (void) 19294 { 19295 19296 ; 19297 return 0; 19298 } 19299 _ACEOF 19300 if ac_fn_c_try_compile "$LINENO" 19301 then : 19302 _EXT_CHECK=yes 19303 else $as_nop 19304 _EXT_CHECK=no 19305 fi 19306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19307 CFLAGS="$SAVE_CFLAGS" 19308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19309 printf %s "checking if XV is defined... " >&6; } 19310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19311 printf "%s\n" "$_EXT_CHECK" >&6; } 19312 if test "$_EXT_CHECK" != no; then 19313 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19314 fi 19315 19316 19317 19318 SAVE_CFLAGS="$CFLAGS" 19319 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19321 /* end confdefs.h. */ 19322 19323 #include "xorg-server.h" 19324 #if !defined DPMSExtension 19325 #error DPMSExtension not defined 19326 #endif 19327 19328 int 19329 main (void) 19330 { 19331 19332 ; 19333 return 0; 19334 } 19335 _ACEOF 19336 if ac_fn_c_try_compile "$LINENO" 19337 then : 19338 _EXT_CHECK=yes 19339 else $as_nop 19340 _EXT_CHECK=no 19341 fi 19342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19343 CFLAGS="$SAVE_CFLAGS" 19344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19345 printf %s "checking if DPMSExtension is defined... " >&6; } 19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19347 printf "%s\n" "$_EXT_CHECK" >&6; } 19348 if test "$_EXT_CHECK" != no; then 19349 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19350 fi 19351 19352 19353 # Obtain compiler/linker options for the driver dependencies 19354 19355 pkg_failed=no 19356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19357 printf %s "checking for XORG... " >&6; } 19358 19359 if test -n "$XORG_CFLAGS"; then 19360 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19361 elif test -n "$PKG_CONFIG"; then 19362 if test -n "$PKG_CONFIG" && \ 19363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19364 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19365 ac_status=$? 19366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19367 test $ac_status = 0; }; then 19368 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19369 test "x$?" != "x0" && pkg_failed=yes 19370 else 19371 pkg_failed=yes 19372 fi 19373 else 19374 pkg_failed=untried 19375 fi 19376 if test -n "$XORG_LIBS"; then 19377 pkg_cv_XORG_LIBS="$XORG_LIBS" 19378 elif test -n "$PKG_CONFIG"; then 19379 if test -n "$PKG_CONFIG" && \ 19380 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19381 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19382 ac_status=$? 19383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19384 test $ac_status = 0; }; then 19385 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19386 test "x$?" != "x0" && pkg_failed=yes 19387 else 19388 pkg_failed=yes 19389 fi 19390 else 19391 pkg_failed=untried 19392 fi 19393 19394 19395 19396 if test $pkg_failed = yes; then 19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19398 printf "%s\n" "no" >&6; } 19399 19400 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19401 _pkg_short_errors_supported=yes 19402 else 19403 _pkg_short_errors_supported=no 19404 fi 19405 if test $_pkg_short_errors_supported = yes; then 19406 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19407 else 19408 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19409 fi 19410 # Put the nasty error message in config.log where it belongs 19411 echo "$XORG_PKG_ERRORS" >&5 19412 19413 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19414 19415 $XORG_PKG_ERRORS 19416 19417 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19418 installed software in a non-standard prefix. 19419 19420 Alternatively, you may set the environment variables XORG_CFLAGS 19421 and XORG_LIBS to avoid the need to call pkg-config. 19422 See the pkg-config man page for more details." "$LINENO" 5 19423 elif test $pkg_failed = untried; then 19424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19425 printf "%s\n" "no" >&6; } 19426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19427 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19428 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19429 is in your PATH or set the PKG_CONFIG environment variable to the full 19430 path to pkg-config. 19431 19432 Alternatively, you may set the environment variables XORG_CFLAGS 19433 and XORG_LIBS to avoid the need to call pkg-config. 19434 See the pkg-config man page for more details. 19435 19436 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19437 See \`config.log' for more details" "$LINENO" 5; } 19438 else 19439 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19440 XORG_LIBS=$pkg_cv_XORG_LIBS 19441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19442 printf "%s\n" "yes" >&6; } 19443 19444 fi 19445 19446 pkg_failed=no 19447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19448 printf %s "checking for XEXT... " >&6; } 19449 19450 if test -n "$XEXT_CFLAGS"; then 19451 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19452 elif test -n "$PKG_CONFIG"; then 19453 if test -n "$PKG_CONFIG" && \ 19454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19455 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19456 ac_status=$? 19457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19458 test $ac_status = 0; }; then 19459 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19460 test "x$?" != "x0" && pkg_failed=yes 19461 else 19462 pkg_failed=yes 19463 fi 19464 else 19465 pkg_failed=untried 19466 fi 19467 if test -n "$XEXT_LIBS"; then 19468 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19469 elif test -n "$PKG_CONFIG"; then 19470 if test -n "$PKG_CONFIG" && \ 19471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19472 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19473 ac_status=$? 19474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19475 test $ac_status = 0; }; then 19476 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19477 test "x$?" != "x0" && pkg_failed=yes 19478 else 19479 pkg_failed=yes 19480 fi 19481 else 19482 pkg_failed=untried 19483 fi 19484 19485 19486 19487 if test $pkg_failed = yes; then 19488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19489 printf "%s\n" "no" >&6; } 19490 19491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19492 _pkg_short_errors_supported=yes 19493 else 19494 _pkg_short_errors_supported=no 19495 fi 19496 if test $_pkg_short_errors_supported = yes; then 19497 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19498 else 19499 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19500 fi 19501 # Put the nasty error message in config.log where it belongs 19502 echo "$XEXT_PKG_ERRORS" >&5 19503 19504 HAVE_XEXTPROTO_71="no" 19505 elif test $pkg_failed = untried; then 19506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19507 printf "%s\n" "no" >&6; } 19508 HAVE_XEXTPROTO_71="no" 19509 else 19510 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19511 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19513 printf "%s\n" "yes" >&6; } 19514 HAVE_XEXTPROTO_71="yes"; 19515 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19516 19517 fi 19518 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19519 HAVE_XEXTPROTO_71_TRUE= 19520 HAVE_XEXTPROTO_71_FALSE='#' 19521 else 19522 HAVE_XEXTPROTO_71_TRUE='#' 19523 HAVE_XEXTPROTO_71_FALSE= 19524 fi 19525 19526 19527 # Checks for libraries. 19528 SAVE_CPPFLAGS="$CPPFLAGS" 19529 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19530 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19531 " "$ac_c_undeclared_builtin_options" "CFLAGS" 19532 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19533 then : 19534 XSERVER_LIBPCIACCESS=yes 19535 else $as_nop 19536 XSERVER_LIBPCIACCESS=no 19537 fi 19538 ac_fn_c_check_header_compile "$LINENO" "xf86Modes.h" "ac_cv_header_xf86Modes_h" "#include \"xorg-server.h\" 19539 " 19540 if test "x$ac_cv_header_xf86Modes_h" = xyes 19541 then : 19542 XMODES=yes 19543 else $as_nop 19544 XMODES=no 19545 fi 19546 19547 CPPFLAGS="$SAVE_CPPFLAGS" 19548 19549 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19550 19551 pkg_failed=no 19552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19553 printf %s "checking for PCIACCESS... " >&6; } 19554 19555 if test -n "$PCIACCESS_CFLAGS"; then 19556 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19557 elif test -n "$PKG_CONFIG"; then 19558 if test -n "$PKG_CONFIG" && \ 19559 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19560 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19561 ac_status=$? 19562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19563 test $ac_status = 0; }; then 19564 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 19565 test "x$?" != "x0" && pkg_failed=yes 19566 else 19567 pkg_failed=yes 19568 fi 19569 else 19570 pkg_failed=untried 19571 fi 19572 if test -n "$PCIACCESS_LIBS"; then 19573 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19574 elif test -n "$PKG_CONFIG"; then 19575 if test -n "$PKG_CONFIG" && \ 19576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19577 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19578 ac_status=$? 19579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19580 test $ac_status = 0; }; then 19581 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 19582 test "x$?" != "x0" && pkg_failed=yes 19583 else 19584 pkg_failed=yes 19585 fi 19586 else 19587 pkg_failed=untried 19588 fi 19589 19590 19591 19592 if test $pkg_failed = yes; then 19593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19594 printf "%s\n" "no" >&6; } 19595 19596 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19597 _pkg_short_errors_supported=yes 19598 else 19599 _pkg_short_errors_supported=no 19600 fi 19601 if test $_pkg_short_errors_supported = yes; then 19602 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19603 else 19604 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19605 fi 19606 # Put the nasty error message in config.log where it belongs 19607 echo "$PCIACCESS_PKG_ERRORS" >&5 19608 19609 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 19610 19611 $PCIACCESS_PKG_ERRORS 19612 19613 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19614 installed software in a non-standard prefix. 19615 19616 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19617 and PCIACCESS_LIBS to avoid the need to call pkg-config. 19618 See the pkg-config man page for more details." "$LINENO" 5 19619 elif test $pkg_failed = untried; then 19620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19621 printf "%s\n" "no" >&6; } 19622 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19623 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19624 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19625 is in your PATH or set the PKG_CONFIG environment variable to the full 19626 path to pkg-config. 19627 19628 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19629 and PCIACCESS_LIBS to avoid the need to call pkg-config. 19630 See the pkg-config man page for more details. 19631 19632 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19633 See \`config.log' for more details" "$LINENO" 5; } 19634 else 19635 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19636 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19638 printf "%s\n" "yes" >&6; } 19639 19640 fi 19641 fi 19642 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19643 XSERVER_LIBPCIACCESS_TRUE= 19644 XSERVER_LIBPCIACCESS_FALSE='#' 19645 else 19646 XSERVER_LIBPCIACCESS_TRUE='#' 19647 XSERVER_LIBPCIACCESS_FALSE= 19648 fi 19649 19650 if test "x$XMODES" = xyes; then 19651 XMODES_TRUE= 19652 XMODES_FALSE='#' 19653 else 19654 XMODES_TRUE='#' 19655 XMODES_FALSE= 19656 fi 19657 19658 19659 if test "x$XMODES" = xyes; then 19660 19661 printf "%s\n" "#define HAVE_XMODES 1" >>confdefs.h 19662 19663 fi 19664 # Check whether --enable-xaa was given. 19665 if test ${enable_xaa+y} 19666 then : 19667 enableval=$enable_xaa; XAA="$enableval" 19668 else $as_nop 19669 XAA=auto 19670 fi 19671 19672 if test "x$XAA" != xno; then 19673 save_CFLAGS=$CFLAGS 19674 save_CPPFLAGS=$CPPFLAGS 19675 CFLAGS=$XORG_CFLAGS 19676 CPPFLAGS="$XORG_CFLAGS" 19677 for ac_header in xaa.h 19678 do : 19679 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19680 if test "x$ac_cv_header_xaa_h" = xyes 19681 then : 19682 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 19683 XAA=yes 19684 else $as_nop 19685 XAA=no 19686 fi 19687 19688 done 19689 CFLAGS=$save_CFLAGS 19690 CPPFLAGS=$save_CPPFLAGS 19691 fi 19692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19693 printf %s "checking whether to include XAA support... " >&6; } 19694 if test "x$XAA" = xyes; then 19695 XAA_TRUE= 19696 XAA_FALSE='#' 19697 else 19698 XAA_TRUE='#' 19699 XAA_FALSE= 19700 fi 19701 19702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19703 printf "%s\n" "$XAA" >&6; } 19704 19705 19706 19707 DRIVER_NAME=siliconmotion 19708 19709 19710 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19711 19712 cat >confcache <<\_ACEOF 19713 # This file is a shell script that caches the results of configure 19714 # tests run on this system so they can be shared between configure 19715 # scripts and configure runs, see configure's option --config-cache. 19716 # It is not useful on other systems. If it contains results you don't 19717 # want to keep, you may remove or edit it. 19718 # 19719 # config.status only pays attention to the cache file if you give it 19720 # the --recheck option to rerun configure. 19721 # 19722 # `ac_cv_env_foo' variables (set or unset) will be overridden when 19723 # loading this file, other *unset* `ac_cv_foo' will be assigned the 19724 # following values. 19725 19726 _ACEOF 19727 19728 # The following way of writing the cache mishandles newlines in values, 19729 # but we know of no workaround that is simple, portable, and efficient. 19730 # So, we kill variables containing newlines. 19731 # Ultrix sh set writes to stderr and can't be redirected directly, 19732 # and sets the high bit in the cache file unless we assign to the vars. 19733 ( 19734 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19735 eval ac_val=\$$ac_var 19736 case $ac_val in #( 19737 *${as_nl}*) 19738 case $ac_var in #( 19739 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19740 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19741 esac 19742 case $ac_var in #( 19743 _ | IFS | as_nl) ;; #( 19744 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19745 *) { eval $ac_var=; unset $ac_var;} ;; 19746 esac ;; 19747 esac 19748 done 19749 19750 (set) 2>&1 | 19751 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19752 *${as_nl}ac_space=\ *) 19753 # `set' does not quote correctly, so add quotes: double-quote 19754 # substitution turns \\\\ into \\, and sed turns \\ into \. 19755 sed -n \ 19756 "s/'/'\\\\''/g; 19757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19758 ;; #( 19759 *) 19760 # `set' quotes correctly as required by POSIX, so do not add quotes. 19761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19762 ;; 19763 esac | 19764 sort 19765 ) | 19766 sed ' 19767 /^ac_cv_env_/b end 19768 t clear 19769 :clear 19770 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19771 t end 19772 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19773 :end' >>confcache 19774 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19775 if test -w "$cache_file"; then 19776 if test "x$cache_file" != "x/dev/null"; then 19777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19778 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19779 if test ! -f "$cache_file" || test -h "$cache_file"; then 19780 cat confcache >"$cache_file" 19781 else 19782 case $cache_file in #( 19783 */* | ?:*) 19784 mv -f confcache "$cache_file"$$ && 19785 mv -f "$cache_file"$$ "$cache_file" ;; #( 19786 *) 19787 mv -f confcache "$cache_file" ;; 19788 esac 19789 fi 19790 fi 19791 else 19792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19793 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19794 fi 19795 fi 19796 rm -f confcache 19797 19798 test "x$prefix" = xNONE && prefix=$ac_default_prefix 19799 # Let make expand exec_prefix. 19800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19801 19802 DEFS=-DHAVE_CONFIG_H 19803 19804 ac_libobjs= 19805 ac_ltlibobjs= 19806 U= 19807 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19808 # 1. Remove the extension, and $U if already installed. 19809 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19810 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19811 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19812 # will be set to the directory where LIBOBJS objects are built. 19813 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19814 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19815 done 19816 LIBOBJS=$ac_libobjs 19817 19818 LTLIBOBJS=$ac_ltlibobjs 19819 19820 19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19822 printf %s "checking that generated files are newer than configure... " >&6; } 19823 if test -n "$am_sleep_pid"; then 19824 # Hide warnings about reused PIDs. 19825 wait $am_sleep_pid 2>/dev/null 19826 fi 19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19828 printf "%s\n" "done" >&6; } 19829 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19830 as_fn_error $? "conditional \"AMDEP\" was never defined. 19831 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19832 fi 19833 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19834 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19835 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19836 fi 19837 if test -n "$EXEEXT"; then 19838 am__EXEEXT_TRUE= 19839 am__EXEEXT_FALSE='#' 19840 else 19841 am__EXEEXT_TRUE='#' 19842 am__EXEEXT_FALSE= 19843 fi 19844 19845 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 19846 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 19847 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19848 fi 19849 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19850 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19851 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19852 fi 19853 if test -z "${XMODES_TRUE}" && test -z "${XMODES_FALSE}"; then 19854 as_fn_error $? "conditional \"XMODES\" was never defined. 19855 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19856 fi 19857 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19858 as_fn_error $? "conditional \"XAA\" was never defined. 19859 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19860 fi 19861 19862 : "${CONFIG_STATUS=./config.status}" 19863 ac_write_fail=0 19864 ac_clean_files_save=$ac_clean_files 19865 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19867 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19868 as_write_fail=0 19869 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19870 #! $SHELL 19871 # Generated by $as_me. 19872 # Run this file to recreate the current configuration. 19873 # Compiler output produced by configure, useful for debugging 19874 # configure, is in config.log if it exists. 19875 19876 debug=false 19877 ac_cs_recheck=false 19878 ac_cs_silent=false 19879 19880 SHELL=\${CONFIG_SHELL-$SHELL} 19881 export SHELL 19882 _ASEOF 19883 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19884 ## -------------------- ## 19885 ## M4sh Initialization. ## 19886 ## -------------------- ## 19887 19888 # Be more Bourne compatible 19889 DUALCASE=1; export DUALCASE # for MKS sh 19890 as_nop=: 19891 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19892 then : 19893 emulate sh 19894 NULLCMD=: 19895 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19896 # is contrary to our usage. Disable this feature. 19897 alias -g '${1+"$@"}'='"$@"' 19898 setopt NO_GLOB_SUBST 19899 else $as_nop 19900 case `(set -o) 2>/dev/null` in #( 19901 *posix*) : 19902 set -o posix ;; #( 19903 *) : 19904 ;; 19905 esac 19906 fi 19907 19908 19909 19910 # Reset variables that may have inherited troublesome values from 19911 # the environment. 19912 19913 # IFS needs to be set, to space, tab, and newline, in precisely that order. 19914 # (If _AS_PATH_WALK were called with IFS unset, it would have the 19915 # side effect of setting IFS to empty, thus disabling word splitting.) 19916 # Quoting is to prevent editors from complaining about space-tab. 19917 as_nl=' 19918 ' 19919 export as_nl 19920 IFS=" "" $as_nl" 19921 19922 PS1='$ ' 19923 PS2='> ' 19924 PS4='+ ' 19925 19926 # Ensure predictable behavior from utilities with locale-dependent output. 19927 LC_ALL=C 19928 export LC_ALL 19929 LANGUAGE=C 19930 export LANGUAGE 19931 19932 # We cannot yet rely on "unset" to work, but we need these variables 19933 # to be unset--not just set to an empty or harmless value--now, to 19934 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19935 # also avoids known problems related to "unset" and subshell syntax 19936 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19937 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19938 do eval test \${$as_var+y} \ 19939 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19940 done 19941 19942 # Ensure that fds 0, 1, and 2 are open. 19943 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19944 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19945 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19946 19947 # The user is always right. 19948 if ${PATH_SEPARATOR+false} :; then 19949 PATH_SEPARATOR=: 19950 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19951 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19952 PATH_SEPARATOR=';' 19953 } 19954 fi 19955 19956 19957 # Find who we are. Look in the path if we contain no directory separator. 19958 as_myself= 19959 case $0 in #(( 19960 *[\\/]* ) as_myself=$0 ;; 19961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19962 for as_dir in $PATH 19963 do 19964 IFS=$as_save_IFS 19965 case $as_dir in #((( 19966 '') as_dir=./ ;; 19967 */) ;; 19968 *) as_dir=$as_dir/ ;; 19969 esac 19970 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19971 done 19972 IFS=$as_save_IFS 19973 19974 ;; 19975 esac 19976 # We did not find ourselves, most probably we were run as `sh COMMAND' 19977 # in which case we are not to be found in the path. 19978 if test "x$as_myself" = x; then 19979 as_myself=$0 19980 fi 19981 if test ! -f "$as_myself"; then 19982 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19983 exit 1 19984 fi 19985 19986 19987 19988 # as_fn_error STATUS ERROR [LINENO LOG_FD] 19989 # ---------------------------------------- 19990 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19991 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19992 # script with STATUS, using 1 if that was 0. 19993 as_fn_error () 19994 { 19995 as_status=$1; test $as_status -eq 0 && as_status=1 19996 if test "$4"; then 19997 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19999 fi 20000 printf "%s\n" "$as_me: error: $2" >&2 20001 as_fn_exit $as_status 20002 } # as_fn_error 20003 20004 20005 20006 # as_fn_set_status STATUS 20007 # ----------------------- 20008 # Set $? to STATUS, without forking. 20009 as_fn_set_status () 20010 { 20011 return $1 20012 } # as_fn_set_status 20013 20014 # as_fn_exit STATUS 20015 # ----------------- 20016 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20017 as_fn_exit () 20018 { 20019 set +e 20020 as_fn_set_status $1 20021 exit $1 20022 } # as_fn_exit 20023 20024 # as_fn_unset VAR 20025 # --------------- 20026 # Portably unset VAR. 20027 as_fn_unset () 20028 { 20029 { eval $1=; unset $1;} 20030 } 20031 as_unset=as_fn_unset 20032 20033 # as_fn_append VAR VALUE 20034 # ---------------------- 20035 # Append the text in VALUE to the end of the definition contained in VAR. Take 20036 # advantage of any shell optimizations that allow amortized linear growth over 20037 # repeated appends, instead of the typical quadratic growth present in naive 20038 # implementations. 20039 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20040 then : 20041 eval 'as_fn_append () 20042 { 20043 eval $1+=\$2 20044 }' 20045 else $as_nop 20046 as_fn_append () 20047 { 20048 eval $1=\$$1\$2 20049 } 20050 fi # as_fn_append 20051 20052 # as_fn_arith ARG... 20053 # ------------------ 20054 # Perform arithmetic evaluation on the ARGs, and store the result in the 20055 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20056 # must be portable across $(()) and expr. 20057 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20058 then : 20059 eval 'as_fn_arith () 20060 { 20061 as_val=$(( $* )) 20062 }' 20063 else $as_nop 20064 as_fn_arith () 20065 { 20066 as_val=`expr "$@" || test $? -eq 1` 20067 } 20068 fi # as_fn_arith 20069 20070 20071 if expr a : '\(a\)' >/dev/null 2>&1 && 20072 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20073 as_expr=expr 20074 else 20075 as_expr=false 20076 fi 20077 20078 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20079 as_basename=basename 20080 else 20081 as_basename=false 20082 fi 20083 20084 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20085 as_dirname=dirname 20086 else 20087 as_dirname=false 20088 fi 20089 20090 as_me=`$as_basename -- "$0" || 20091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20092 X"$0" : 'X\(//\)$' \| \ 20093 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20094 printf "%s\n" X/"$0" | 20095 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20096 s//\1/ 20097 q 20098 } 20099 /^X\/\(\/\/\)$/{ 20100 s//\1/ 20101 q 20102 } 20103 /^X\/\(\/\).*/{ 20104 s//\1/ 20105 q 20106 } 20107 s/.*/./; q'` 20108 20109 # Avoid depending upon Character Ranges. 20110 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20111 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20112 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20113 as_cr_digits='0123456789' 20114 as_cr_alnum=$as_cr_Letters$as_cr_digits 20115 20116 20117 # Determine whether it's possible to make 'echo' print without a newline. 20118 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20119 # for compatibility with existing Makefiles. 20120 ECHO_C= ECHO_N= ECHO_T= 20121 case `echo -n x` in #((((( 20122 -n*) 20123 case `echo 'xy\c'` in 20124 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20125 xy) ECHO_C='\c';; 20126 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20127 ECHO_T=' ';; 20128 esac;; 20129 *) 20130 ECHO_N='-n';; 20131 esac 20132 20133 # For backward compatibility with old third-party macros, we provide 20134 # the shell variables $as_echo and $as_echo_n. New code should use 20135 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20136 as_echo='printf %s\n' 20137 as_echo_n='printf %s' 20138 20139 rm -f conf$$ conf$$.exe conf$$.file 20140 if test -d conf$$.dir; then 20141 rm -f conf$$.dir/conf$$.file 20142 else 20143 rm -f conf$$.dir 20144 mkdir conf$$.dir 2>/dev/null 20145 fi 20146 if (echo >conf$$.file) 2>/dev/null; then 20147 if ln -s conf$$.file conf$$ 2>/dev/null; then 20148 as_ln_s='ln -s' 20149 # ... but there are two gotchas: 20150 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20151 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20152 # In both cases, we have to default to `cp -pR'. 20153 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20154 as_ln_s='cp -pR' 20155 elif ln conf$$.file conf$$ 2>/dev/null; then 20156 as_ln_s=ln 20157 else 20158 as_ln_s='cp -pR' 20159 fi 20160 else 20161 as_ln_s='cp -pR' 20162 fi 20163 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20164 rmdir conf$$.dir 2>/dev/null 20165 20166 20167 # as_fn_mkdir_p 20168 # ------------- 20169 # Create "$as_dir" as a directory, including parents if necessary. 20170 as_fn_mkdir_p () 20171 { 20172 20173 case $as_dir in #( 20174 -*) as_dir=./$as_dir;; 20175 esac 20176 test -d "$as_dir" || eval $as_mkdir_p || { 20177 as_dirs= 20178 while :; do 20179 case $as_dir in #( 20180 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20181 *) as_qdir=$as_dir;; 20182 esac 20183 as_dirs="'$as_qdir' $as_dirs" 20184 as_dir=`$as_dirname -- "$as_dir" || 20185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20186 X"$as_dir" : 'X\(//\)[^/]' \| \ 20187 X"$as_dir" : 'X\(//\)$' \| \ 20188 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20189 printf "%s\n" X"$as_dir" | 20190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20191 s//\1/ 20192 q 20193 } 20194 /^X\(\/\/\)[^/].*/{ 20195 s//\1/ 20196 q 20197 } 20198 /^X\(\/\/\)$/{ 20199 s//\1/ 20200 q 20201 } 20202 /^X\(\/\).*/{ 20203 s//\1/ 20204 q 20205 } 20206 s/.*/./; q'` 20207 test -d "$as_dir" && break 20208 done 20209 test -z "$as_dirs" || eval "mkdir $as_dirs" 20210 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20211 20212 20213 } # as_fn_mkdir_p 20214 if mkdir -p . 2>/dev/null; then 20215 as_mkdir_p='mkdir -p "$as_dir"' 20216 else 20217 test -d ./-p && rmdir ./-p 20218 as_mkdir_p=false 20219 fi 20220 20221 20222 # as_fn_executable_p FILE 20223 # ----------------------- 20224 # Test if FILE is an executable regular file. 20225 as_fn_executable_p () 20226 { 20227 test -f "$1" && test -x "$1" 20228 } # as_fn_executable_p 20229 as_test_x='test -x' 20230 as_executable_p=as_fn_executable_p 20231 20232 # Sed expression to map a string onto a valid CPP name. 20233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20234 20235 # Sed expression to map a string onto a valid variable name. 20236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20237 20238 20239 exec 6>&1 20240 ## ----------------------------------- ## 20241 ## Main body of $CONFIG_STATUS script. ## 20242 ## ----------------------------------- ## 20243 _ASEOF 20244 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20245 20246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20247 # Save the log message, to keep $0 and so on meaningful, and to 20248 # report actual input values of CONFIG_FILES etc. instead of their 20249 # values after options handling. 20250 ac_log=" 20251 This file was extended by xf86-video-siliconmotion $as_me 1.7.10, which was 20252 generated by GNU Autoconf 2.71. Invocation command line was 20253 20254 CONFIG_FILES = $CONFIG_FILES 20255 CONFIG_HEADERS = $CONFIG_HEADERS 20256 CONFIG_LINKS = $CONFIG_LINKS 20257 CONFIG_COMMANDS = $CONFIG_COMMANDS 20258 $ $0 $@ 20259 20260 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20261 " 20262 20263 _ACEOF 20264 20265 case $ac_config_files in *" 20266 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20267 esac 20268 20269 case $ac_config_headers in *" 20270 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20271 esac 20272 20273 20274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20275 # Files that config.status was made for. 20276 config_files="$ac_config_files" 20277 config_headers="$ac_config_headers" 20278 config_commands="$ac_config_commands" 20279 20280 _ACEOF 20281 20282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20283 ac_cs_usage="\ 20284 \`$as_me' instantiates files and other configuration actions 20285 from templates according to the current configuration. Unless the files 20286 and actions are specified as TAGs, all are instantiated by default. 20287 20288 Usage: $0 [OPTION]... [TAG]... 20289 20290 -h, --help print this help, then exit 20291 -V, --version print version number and configuration settings, then exit 20292 --config print configuration, then exit 20293 -q, --quiet, --silent 20294 do not print progress messages 20295 -d, --debug don't remove temporary files 20296 --recheck update $as_me by reconfiguring in the same conditions 20297 --file=FILE[:TEMPLATE] 20298 instantiate the configuration file FILE 20299 --header=FILE[:TEMPLATE] 20300 instantiate the configuration header FILE 20301 20302 Configuration files: 20303 $config_files 20304 20305 Configuration headers: 20306 $config_headers 20307 20308 Configuration commands: 20309 $config_commands 20310 20311 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/issues>." 20312 20313 _ACEOF 20314 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20315 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20317 ac_cs_config='$ac_cs_config_escaped' 20318 ac_cs_version="\\ 20319 xf86-video-siliconmotion config.status 1.7.10 20320 configured by $0, generated by GNU Autoconf 2.71, 20321 with options \\"\$ac_cs_config\\" 20322 20323 Copyright (C) 2021 Free Software Foundation, Inc. 20324 This config.status script is free software; the Free Software Foundation 20325 gives unlimited permission to copy, distribute and modify it." 20326 20327 ac_pwd='$ac_pwd' 20328 srcdir='$srcdir' 20329 INSTALL='$INSTALL' 20330 MKDIR_P='$MKDIR_P' 20331 AWK='$AWK' 20332 test -n "\$AWK" || AWK=awk 20333 _ACEOF 20334 20335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20336 # The default lists apply if the user does not specify any file. 20337 ac_need_defaults=: 20338 while test $# != 0 20339 do 20340 case $1 in 20341 --*=?*) 20342 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20344 ac_shift=: 20345 ;; 20346 --*=) 20347 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20348 ac_optarg= 20349 ac_shift=: 20350 ;; 20351 *) 20352 ac_option=$1 20353 ac_optarg=$2 20354 ac_shift=shift 20355 ;; 20356 esac 20357 20358 case $ac_option in 20359 # Handling of the options. 20360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20361 ac_cs_recheck=: ;; 20362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20363 printf "%s\n" "$ac_cs_version"; exit ;; 20364 --config | --confi | --conf | --con | --co | --c ) 20365 printf "%s\n" "$ac_cs_config"; exit ;; 20366 --debug | --debu | --deb | --de | --d | -d ) 20367 debug=: ;; 20368 --file | --fil | --fi | --f ) 20369 $ac_shift 20370 case $ac_optarg in 20371 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20372 '') as_fn_error $? "missing file argument" ;; 20373 esac 20374 as_fn_append CONFIG_FILES " '$ac_optarg'" 20375 ac_need_defaults=false;; 20376 --header | --heade | --head | --hea ) 20377 $ac_shift 20378 case $ac_optarg in 20379 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20380 esac 20381 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20382 ac_need_defaults=false;; 20383 --he | --h) 20384 # Conflict between --help and --header 20385 as_fn_error $? "ambiguous option: \`$1' 20386 Try \`$0 --help' for more information.";; 20387 --help | --hel | -h ) 20388 printf "%s\n" "$ac_cs_usage"; exit ;; 20389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20390 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20391 ac_cs_silent=: ;; 20392 20393 # This is an error. 20394 -*) as_fn_error $? "unrecognized option: \`$1' 20395 Try \`$0 --help' for more information." ;; 20396 20397 *) as_fn_append ac_config_targets " $1" 20398 ac_need_defaults=false ;; 20399 20400 esac 20401 shift 20402 done 20403 20404 ac_configure_extra_args= 20405 20406 if $ac_cs_silent; then 20407 exec 6>/dev/null 20408 ac_configure_extra_args="$ac_configure_extra_args --silent" 20409 fi 20410 20411 _ACEOF 20412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20413 if \$ac_cs_recheck; then 20414 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20415 shift 20416 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20417 CONFIG_SHELL='$SHELL' 20418 export CONFIG_SHELL 20419 exec "\$@" 20420 fi 20421 20422 _ACEOF 20423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20424 exec 5>>config.log 20425 { 20426 echo 20427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20428 ## Running $as_me. ## 20429 _ASBOX 20430 printf "%s\n" "$ac_log" 20431 } >&5 20432 20433 _ACEOF 20434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20435 # 20436 # INIT-COMMANDS 20437 # 20438 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20439 20440 20441 # The HP-UX ksh and POSIX shell print the target directory to stdout 20442 # if CDPATH is set. 20443 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20444 20445 sed_quote_subst='$sed_quote_subst' 20446 double_quote_subst='$double_quote_subst' 20447 delay_variable_subst='$delay_variable_subst' 20448 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20449 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20450 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20451 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20452 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20453 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20454 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20455 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20456 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20457 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20458 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20459 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20460 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20461 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20462 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20463 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20464 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20465 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20466 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20467 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20468 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20469 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20470 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20471 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20472 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20473 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20474 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20475 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20476 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20477 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20478 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20479 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20480 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20481 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20482 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20483 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20484 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20485 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20486 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20487 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20488 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20489 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20490 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20491 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20492 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20493 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20494 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20495 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20496 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20497 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20498 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20499 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20500 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20501 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20502 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20503 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20504 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20505 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20506 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20507 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20508 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"`' 20509 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20510 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20511 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20512 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20513 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20514 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20515 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20516 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20517 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20518 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20519 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20520 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20521 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20522 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20523 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20524 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20525 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20526 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20527 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20528 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20529 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20530 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20531 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20532 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20533 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20534 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20535 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20536 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20537 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20538 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20539 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20540 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20541 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20542 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20543 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20544 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20545 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20546 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20547 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20548 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20549 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20550 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20551 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20552 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20553 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20554 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20555 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20556 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20557 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20558 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20559 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20560 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20561 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20562 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20563 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20564 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20565 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20566 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20567 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20568 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20569 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20570 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20571 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20572 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20573 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20574 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20575 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20576 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20577 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20578 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20579 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20580 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20581 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20582 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20583 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20584 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20585 20586 LTCC='$LTCC' 20587 LTCFLAGS='$LTCFLAGS' 20588 compiler='$compiler_DEFAULT' 20589 20590 # A function that is used when there is no print builtin or printf. 20591 func_fallback_echo () 20592 { 20593 eval 'cat <<_LTECHO_EOF 20594 \$1 20595 _LTECHO_EOF' 20596 } 20597 20598 # Quote evaled strings. 20599 for var in SHELL \ 20600 ECHO \ 20601 PATH_SEPARATOR \ 20602 SED \ 20603 GREP \ 20604 EGREP \ 20605 FGREP \ 20606 LD \ 20607 NM \ 20608 LN_S \ 20609 lt_SP2NL \ 20610 lt_NL2SP \ 20611 reload_flag \ 20612 FILECMD \ 20613 OBJDUMP \ 20614 deplibs_check_method \ 20615 file_magic_cmd \ 20616 file_magic_glob \ 20617 want_nocaseglob \ 20618 DLLTOOL \ 20619 sharedlib_from_linklib_cmd \ 20620 AR \ 20621 archiver_list_spec \ 20622 STRIP \ 20623 RANLIB \ 20624 CC \ 20625 CFLAGS \ 20626 compiler \ 20627 lt_cv_sys_global_symbol_pipe \ 20628 lt_cv_sys_global_symbol_to_cdecl \ 20629 lt_cv_sys_global_symbol_to_import \ 20630 lt_cv_sys_global_symbol_to_c_name_address \ 20631 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20632 lt_cv_nm_interface \ 20633 nm_file_list_spec \ 20634 lt_cv_truncate_bin \ 20635 lt_prog_compiler_no_builtin_flag \ 20636 lt_prog_compiler_pic \ 20637 lt_prog_compiler_wl \ 20638 lt_prog_compiler_static \ 20639 lt_cv_prog_compiler_c_o \ 20640 need_locks \ 20641 MANIFEST_TOOL \ 20642 DSYMUTIL \ 20643 NMEDIT \ 20644 LIPO \ 20645 OTOOL \ 20646 OTOOL64 \ 20647 shrext_cmds \ 20648 export_dynamic_flag_spec \ 20649 whole_archive_flag_spec \ 20650 compiler_needs_object \ 20651 with_gnu_ld \ 20652 allow_undefined_flag \ 20653 no_undefined_flag \ 20654 hardcode_libdir_flag_spec \ 20655 hardcode_libdir_separator \ 20656 exclude_expsyms \ 20657 include_expsyms \ 20658 file_list_spec \ 20659 variables_saved_for_relink \ 20660 libname_spec \ 20661 library_names_spec \ 20662 soname_spec \ 20663 install_override_mode \ 20664 finish_eval \ 20665 old_striplib \ 20666 striplib; do 20667 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20668 *[\\\\\\\`\\"\\\$]*) 20669 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20670 ;; 20671 *) 20672 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20673 ;; 20674 esac 20675 done 20676 20677 # Double-quote double-evaled strings. 20678 for var in reload_cmds \ 20679 old_postinstall_cmds \ 20680 old_postuninstall_cmds \ 20681 old_archive_cmds \ 20682 extract_expsyms_cmds \ 20683 old_archive_from_new_cmds \ 20684 old_archive_from_expsyms_cmds \ 20685 archive_cmds \ 20686 archive_expsym_cmds \ 20687 module_cmds \ 20688 module_expsym_cmds \ 20689 export_symbols_cmds \ 20690 prelink_cmds \ 20691 postlink_cmds \ 20692 postinstall_cmds \ 20693 postuninstall_cmds \ 20694 finish_cmds \ 20695 sys_lib_search_path_spec \ 20696 configure_time_dlsearch_path \ 20697 configure_time_lt_sys_library_path; do 20698 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20699 *[\\\\\\\`\\"\\\$]*) 20700 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20701 ;; 20702 *) 20703 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20704 ;; 20705 esac 20706 done 20707 20708 ac_aux_dir='$ac_aux_dir' 20709 20710 # See if we are running on zsh, and set the options that allow our 20711 # commands through without removal of \ escapes INIT. 20712 if test -n "\${ZSH_VERSION+set}"; then 20713 setopt NO_GLOB_SUBST 20714 fi 20715 20716 20717 PACKAGE='$PACKAGE' 20718 VERSION='$VERSION' 20719 RM='$RM' 20720 ofile='$ofile' 20721 20722 20723 20724 20725 _ACEOF 20726 20727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20728 20729 # Handling of arguments. 20730 for ac_config_target in $ac_config_targets 20731 do 20732 case $ac_config_target in 20733 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20734 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20735 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20736 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20737 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20738 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20739 20740 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20741 esac 20742 done 20743 20744 20745 # If the user did not use the arguments to specify the items to instantiate, 20746 # then the envvar interface is used. Set only those that are not. 20747 # We use the long form for the default assignment because of an extremely 20748 # bizarre bug on SunOS 4.1.3. 20749 if $ac_need_defaults; then 20750 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20751 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20752 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20753 fi 20754 20755 # Have a temporary directory for convenience. Make it in the build tree 20756 # simply because there is no reason against having it here, and in addition, 20757 # creating and moving files from /tmp can sometimes cause problems. 20758 # Hook for its removal unless debugging. 20759 # Note that there is a small window in which the directory will not be cleaned: 20760 # after its creation but before its name has been assigned to `$tmp'. 20761 $debug || 20762 { 20763 tmp= ac_tmp= 20764 trap 'exit_status=$? 20765 : "${ac_tmp:=$tmp}" 20766 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20767 ' 0 20768 trap 'as_fn_exit 1' 1 2 13 15 20769 } 20770 # Create a (secure) tmp directory for tmp files. 20771 20772 { 20773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20774 test -d "$tmp" 20775 } || 20776 { 20777 tmp=./conf$$-$RANDOM 20778 (umask 077 && mkdir "$tmp") 20779 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20780 ac_tmp=$tmp 20781 20782 # Set up the scripts for CONFIG_FILES section. 20783 # No need to generate them if there are no CONFIG_FILES. 20784 # This happens for instance with `./config.status config.h'. 20785 if test -n "$CONFIG_FILES"; then 20786 20787 20788 ac_cr=`echo X | tr X '\015'` 20789 # On cygwin, bash can eat \r inside `` if the user requested igncr. 20790 # But we know of no other shell where ac_cr would be empty at this 20791 # point, so we can use a bashism as a fallback. 20792 if test "x$ac_cr" = x; then 20793 eval ac_cr=\$\'\\r\' 20794 fi 20795 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20796 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20797 ac_cs_awk_cr='\\r' 20798 else 20799 ac_cs_awk_cr=$ac_cr 20800 fi 20801 20802 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20803 _ACEOF 20804 20805 20806 { 20807 echo "cat >conf$$subs.awk <<_ACEOF" && 20808 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20809 echo "_ACEOF" 20810 } >conf$$subs.sh || 20811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20812 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20813 ac_delim='%!_!# ' 20814 for ac_last_try in false false false false false :; do 20815 . ./conf$$subs.sh || 20816 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20817 20818 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20819 if test $ac_delim_n = $ac_delim_num; then 20820 break 20821 elif $ac_last_try; then 20822 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20823 else 20824 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20825 fi 20826 done 20827 rm -f conf$$subs.sh 20828 20829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20830 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20831 _ACEOF 20832 sed -n ' 20833 h 20834 s/^/S["/; s/!.*/"]=/ 20835 p 20836 g 20837 s/^[^!]*!// 20838 :repl 20839 t repl 20840 s/'"$ac_delim"'$// 20841 t delim 20842 :nl 20843 h 20844 s/\(.\{148\}\)..*/\1/ 20845 t more1 20846 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20847 p 20848 n 20849 b repl 20850 :more1 20851 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20852 p 20853 g 20854 s/.\{148\}// 20855 t nl 20856 :delim 20857 h 20858 s/\(.\{148\}\)..*/\1/ 20859 t more2 20860 s/["\\]/\\&/g; s/^/"/; s/$/"/ 20861 p 20862 b 20863 :more2 20864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20865 p 20866 g 20867 s/.\{148\}// 20868 t delim 20869 ' <conf$$subs.awk | sed ' 20870 /^[^""]/{ 20871 N 20872 s/\n// 20873 } 20874 ' >>$CONFIG_STATUS || ac_write_fail=1 20875 rm -f conf$$subs.awk 20876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20877 _ACAWK 20878 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20879 for (key in S) S_is_set[key] = 1 20880 FS = "" 20881 20882 } 20883 { 20884 line = $ 0 20885 nfields = split(line, field, "@") 20886 substed = 0 20887 len = length(field[1]) 20888 for (i = 2; i < nfields; i++) { 20889 key = field[i] 20890 keylen = length(key) 20891 if (S_is_set[key]) { 20892 value = S[key] 20893 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20894 len += length(value) + length(field[++i]) 20895 substed = 1 20896 } else 20897 len += 1 + keylen 20898 } 20899 20900 print line 20901 } 20902 20903 _ACAWK 20904 _ACEOF 20905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20906 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20907 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20908 else 20909 cat 20910 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20911 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20912 _ACEOF 20913 20914 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20915 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20916 # trailing colons and then remove the whole line if VPATH becomes empty 20917 # (actually we leave an empty line to preserve line numbers). 20918 if test "x$srcdir" = x.; then 20919 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20920 h 20921 s/// 20922 s/^/:/ 20923 s/[ ]*$/:/ 20924 s/:\$(srcdir):/:/g 20925 s/:\${srcdir}:/:/g 20926 s/:@srcdir@:/:/g 20927 s/^:*// 20928 s/:*$// 20929 x 20930 s/\(=[ ]*\).*/\1/ 20931 G 20932 s/\n// 20933 s/^[^=]*=[ ]*$// 20934 }' 20935 fi 20936 20937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20938 fi # test -n "$CONFIG_FILES" 20939 20940 # Set up the scripts for CONFIG_HEADERS section. 20941 # No need to generate them if there are no CONFIG_HEADERS. 20942 # This happens for instance with `./config.status Makefile'. 20943 if test -n "$CONFIG_HEADERS"; then 20944 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20945 BEGIN { 20946 _ACEOF 20947 20948 # Transform confdefs.h into an awk script `defines.awk', embedded as 20949 # here-document in config.status, that substitutes the proper values into 20950 # config.h.in to produce config.h. 20951 20952 # Create a delimiter string that does not exist in confdefs.h, to ease 20953 # handling of long lines. 20954 ac_delim='%!_!# ' 20955 for ac_last_try in false false :; do 20956 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20957 if test -z "$ac_tt"; then 20958 break 20959 elif $ac_last_try; then 20960 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20961 else 20962 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20963 fi 20964 done 20965 20966 # For the awk script, D is an array of macro values keyed by name, 20967 # likewise P contains macro parameters if any. Preserve backslash 20968 # newline sequences. 20969 20970 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20971 sed -n ' 20972 s/.\{148\}/&'"$ac_delim"'/g 20973 t rset 20974 :rset 20975 s/^[ ]*#[ ]*define[ ][ ]*/ / 20976 t def 20977 d 20978 :def 20979 s/\\$// 20980 t bsnl 20981 s/["\\]/\\&/g 20982 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20983 D["\1"]=" \3"/p 20984 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20985 d 20986 :bsnl 20987 s/["\\]/\\&/g 20988 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20989 D["\1"]=" \3\\\\\\n"\\/p 20990 t cont 20991 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20992 t cont 20993 d 20994 :cont 20995 n 20996 s/.\{148\}/&'"$ac_delim"'/g 20997 t clear 20998 :clear 20999 s/\\$// 21000 t bsnlc 21001 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21002 d 21003 :bsnlc 21004 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21005 b cont 21006 ' <confdefs.h | sed ' 21007 s/'"$ac_delim"'/"\\\ 21008 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21009 21010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21011 for (key in D) D_is_set[key] = 1 21012 FS = "" 21013 } 21014 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21015 line = \$ 0 21016 split(line, arg, " ") 21017 if (arg[1] == "#") { 21018 defundef = arg[2] 21019 mac1 = arg[3] 21020 } else { 21021 defundef = substr(arg[1], 2) 21022 mac1 = arg[2] 21023 } 21024 split(mac1, mac2, "(") #) 21025 macro = mac2[1] 21026 prefix = substr(line, 1, index(line, defundef) - 1) 21027 if (D_is_set[macro]) { 21028 # Preserve the white space surrounding the "#". 21029 print prefix "define", macro P[macro] D[macro] 21030 next 21031 } else { 21032 # Replace #undef with comments. This is necessary, for example, 21033 # in the case of _POSIX_SOURCE, which is predefined and required 21034 # on some systems where configure will not decide to define it. 21035 if (defundef == "undef") { 21036 print "/*", prefix defundef, macro, "*/" 21037 next 21038 } 21039 } 21040 } 21041 { print } 21042 _ACAWK 21043 _ACEOF 21044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21045 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21046 fi # test -n "$CONFIG_HEADERS" 21047 21048 21049 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21050 shift 21051 for ac_tag 21052 do 21053 case $ac_tag in 21054 :[FHLC]) ac_mode=$ac_tag; continue;; 21055 esac 21056 case $ac_mode$ac_tag in 21057 :[FHL]*:*);; 21058 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21059 :[FH]-) ac_tag=-:-;; 21060 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21061 esac 21062 ac_save_IFS=$IFS 21063 IFS=: 21064 set x $ac_tag 21065 IFS=$ac_save_IFS 21066 shift 21067 ac_file=$1 21068 shift 21069 21070 case $ac_mode in 21071 :L) ac_source=$1;; 21072 :[FH]) 21073 ac_file_inputs= 21074 for ac_f 21075 do 21076 case $ac_f in 21077 -) ac_f="$ac_tmp/stdin";; 21078 *) # Look for the file first in the build tree, then in the source tree 21079 # (if the path is not absolute). The absolute path cannot be DOS-style, 21080 # because $ac_f cannot contain `:'. 21081 test -f "$ac_f" || 21082 case $ac_f in 21083 [\\/$]*) false;; 21084 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21085 esac || 21086 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21087 esac 21088 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21089 as_fn_append ac_file_inputs " '$ac_f'" 21090 done 21091 21092 # Let's still pretend it is `configure' which instantiates (i.e., don't 21093 # use $as_me), people would be surprised to read: 21094 # /* config.h. Generated by config.status. */ 21095 configure_input='Generated from '` 21096 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21097 `' by configure.' 21098 if test x"$ac_file" != x-; then 21099 configure_input="$ac_file. $configure_input" 21100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21101 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21102 fi 21103 # Neutralize special characters interpreted by sed in replacement strings. 21104 case $configure_input in #( 21105 *\&* | *\|* | *\\* ) 21106 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21107 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21108 *) ac_sed_conf_input=$configure_input;; 21109 esac 21110 21111 case $ac_tag in 21112 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21113 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21114 esac 21115 ;; 21116 esac 21117 21118 ac_dir=`$as_dirname -- "$ac_file" || 21119 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21120 X"$ac_file" : 'X\(//\)[^/]' \| \ 21121 X"$ac_file" : 'X\(//\)$' \| \ 21122 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21123 printf "%s\n" X"$ac_file" | 21124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21125 s//\1/ 21126 q 21127 } 21128 /^X\(\/\/\)[^/].*/{ 21129 s//\1/ 21130 q 21131 } 21132 /^X\(\/\/\)$/{ 21133 s//\1/ 21134 q 21135 } 21136 /^X\(\/\).*/{ 21137 s//\1/ 21138 q 21139 } 21140 s/.*/./; q'` 21141 as_dir="$ac_dir"; as_fn_mkdir_p 21142 ac_builddir=. 21143 21144 case "$ac_dir" in 21145 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21146 *) 21147 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21148 # A ".." for each directory in $ac_dir_suffix. 21149 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21150 case $ac_top_builddir_sub in 21151 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21152 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21153 esac ;; 21154 esac 21155 ac_abs_top_builddir=$ac_pwd 21156 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21157 # for backward compatibility: 21158 ac_top_builddir=$ac_top_build_prefix 21159 21160 case $srcdir in 21161 .) # We are building in place. 21162 ac_srcdir=. 21163 ac_top_srcdir=$ac_top_builddir_sub 21164 ac_abs_top_srcdir=$ac_pwd ;; 21165 [\\/]* | ?:[\\/]* ) # Absolute name. 21166 ac_srcdir=$srcdir$ac_dir_suffix; 21167 ac_top_srcdir=$srcdir 21168 ac_abs_top_srcdir=$srcdir ;; 21169 *) # Relative name. 21170 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21171 ac_top_srcdir=$ac_top_build_prefix$srcdir 21172 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21173 esac 21174 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21175 21176 21177 case $ac_mode in 21178 :F) 21179 # 21180 # CONFIG_FILE 21181 # 21182 21183 case $INSTALL in 21184 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21185 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21186 esac 21187 ac_MKDIR_P=$MKDIR_P 21188 case $MKDIR_P in 21189 [\\/$]* | ?:[\\/]* ) ;; 21190 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21191 esac 21192 _ACEOF 21193 21194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21195 # If the template does not know about datarootdir, expand it. 21196 # FIXME: This hack should be removed a few years after 2.60. 21197 ac_datarootdir_hack=; ac_datarootdir_seen= 21198 ac_sed_dataroot=' 21199 /datarootdir/ { 21200 p 21201 q 21202 } 21203 /@datadir@/p 21204 /@docdir@/p 21205 /@infodir@/p 21206 /@localedir@/p 21207 /@mandir@/p' 21208 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21209 *datarootdir*) ac_datarootdir_seen=yes;; 21210 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21212 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21213 _ACEOF 21214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21215 ac_datarootdir_hack=' 21216 s&@datadir@&$datadir&g 21217 s&@docdir@&$docdir&g 21218 s&@infodir@&$infodir&g 21219 s&@localedir@&$localedir&g 21220 s&@mandir@&$mandir&g 21221 s&\\\${datarootdir}&$datarootdir&g' ;; 21222 esac 21223 _ACEOF 21224 21225 # Neutralize VPATH when `$srcdir' = `.'. 21226 # Shell code in configure.ac might set extrasub. 21227 # FIXME: do we really want to maintain this feature? 21228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21229 ac_sed_extra="$ac_vpsub 21230 $extrasub 21231 _ACEOF 21232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21233 :t 21234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21235 s|@configure_input@|$ac_sed_conf_input|;t t 21236 s&@top_builddir@&$ac_top_builddir_sub&;t t 21237 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21238 s&@srcdir@&$ac_srcdir&;t t 21239 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21240 s&@top_srcdir@&$ac_top_srcdir&;t t 21241 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21242 s&@builddir@&$ac_builddir&;t t 21243 s&@abs_builddir@&$ac_abs_builddir&;t t 21244 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21245 s&@INSTALL@&$ac_INSTALL&;t t 21246 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21247 $ac_datarootdir_hack 21248 " 21249 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21250 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21251 21252 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21253 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21254 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21255 "$ac_tmp/out"`; test -z "$ac_out"; } && 21256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21257 which seems to be undefined. Please make sure it is defined" >&5 21258 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21259 which seems to be undefined. Please make sure it is defined" >&2;} 21260 21261 rm -f "$ac_tmp/stdin" 21262 case $ac_file in 21263 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21264 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21265 esac \ 21266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21267 ;; 21268 :H) 21269 # 21270 # CONFIG_HEADER 21271 # 21272 if test x"$ac_file" != x-; then 21273 { 21274 printf "%s\n" "/* $configure_input */" >&1 \ 21275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21276 } >"$ac_tmp/config.h" \ 21277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21278 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21280 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21281 else 21282 rm -f "$ac_file" 21283 mv "$ac_tmp/config.h" "$ac_file" \ 21284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21285 fi 21286 else 21287 printf "%s\n" "/* $configure_input */" >&1 \ 21288 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21289 || as_fn_error $? "could not create -" "$LINENO" 5 21290 fi 21291 # Compute "$ac_file"'s index in $config_headers. 21292 _am_arg="$ac_file" 21293 _am_stamp_count=1 21294 for _am_header in $config_headers :; do 21295 case $_am_header in 21296 $_am_arg | $_am_arg:* ) 21297 break ;; 21298 * ) 21299 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21300 esac 21301 done 21302 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21303 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21304 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21305 X"$_am_arg" : 'X\(//\)$' \| \ 21306 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21307 printf "%s\n" X"$_am_arg" | 21308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21309 s//\1/ 21310 q 21311 } 21312 /^X\(\/\/\)[^/].*/{ 21313 s//\1/ 21314 q 21315 } 21316 /^X\(\/\/\)$/{ 21317 s//\1/ 21318 q 21319 } 21320 /^X\(\/\).*/{ 21321 s//\1/ 21322 q 21323 } 21324 s/.*/./; q'`/stamp-h$_am_stamp_count 21325 ;; 21326 21327 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21328 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21329 ;; 21330 esac 21331 21332 21333 case $ac_file$ac_mode in 21334 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21335 # Older Autoconf quotes --file arguments for eval, but not when files 21336 # are listed without --file. Let's play safe and only enable the eval 21337 # if we detect the quoting. 21338 # TODO: see whether this extra hack can be removed once we start 21339 # requiring Autoconf 2.70 or later. 21340 case $CONFIG_FILES in #( 21341 *\'*) : 21342 eval set x "$CONFIG_FILES" ;; #( 21343 *) : 21344 set x $CONFIG_FILES ;; #( 21345 *) : 21346 ;; 21347 esac 21348 shift 21349 # Used to flag and report bootstrapping failures. 21350 am_rc=0 21351 for am_mf 21352 do 21353 # Strip MF so we end up with the name of the file. 21354 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21355 # Check whether this is an Automake generated Makefile which includes 21356 # dependency-tracking related rules and includes. 21357 # Grep'ing the whole file directly is not great: AIX grep has a line 21358 # limit of 2048, but all sed's we know have understand at least 4000. 21359 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21360 || continue 21361 am_dirpart=`$as_dirname -- "$am_mf" || 21362 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21363 X"$am_mf" : 'X\(//\)[^/]' \| \ 21364 X"$am_mf" : 'X\(//\)$' \| \ 21365 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21366 printf "%s\n" X"$am_mf" | 21367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21368 s//\1/ 21369 q 21370 } 21371 /^X\(\/\/\)[^/].*/{ 21372 s//\1/ 21373 q 21374 } 21375 /^X\(\/\/\)$/{ 21376 s//\1/ 21377 q 21378 } 21379 /^X\(\/\).*/{ 21380 s//\1/ 21381 q 21382 } 21383 s/.*/./; q'` 21384 am_filepart=`$as_basename -- "$am_mf" || 21385 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21386 X"$am_mf" : 'X\(//\)$' \| \ 21387 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21388 printf "%s\n" X/"$am_mf" | 21389 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21390 s//\1/ 21391 q 21392 } 21393 /^X\/\(\/\/\)$/{ 21394 s//\1/ 21395 q 21396 } 21397 /^X\/\(\/\).*/{ 21398 s//\1/ 21399 q 21400 } 21401 s/.*/./; q'` 21402 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21403 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21404 | $MAKE -f - am--depfiles" >&5 21405 (cd "$am_dirpart" \ 21406 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21407 | $MAKE -f - am--depfiles) >&5 2>&5 21408 ac_status=$? 21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21410 (exit $ac_status); } || am_rc=$? 21411 done 21412 if test $am_rc -ne 0; then 21413 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21414 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21415 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21416 for automatic dependency tracking. If GNU make was not used, consider 21417 re-running the configure script with MAKE=\"gmake\" (or whatever is 21418 necessary). You can also try re-running configure with the 21419 '--disable-dependency-tracking' option to at least be able to build 21420 the package (albeit without support for automatic dependency tracking). 21421 See \`config.log' for more details" "$LINENO" 5; } 21422 fi 21423 { am_dirpart=; unset am_dirpart;} 21424 { am_filepart=; unset am_filepart;} 21425 { am_mf=; unset am_mf;} 21426 { am_rc=; unset am_rc;} 21427 rm -f conftest-deps.mk 21428 } 21429 ;; 21430 "libtool":C) 21431 21432 # See if we are running on zsh, and set the options that allow our 21433 # commands through without removal of \ escapes. 21434 if test -n "${ZSH_VERSION+set}"; then 21435 setopt NO_GLOB_SUBST 21436 fi 21437 21438 cfgfile=${ofile}T 21439 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21440 $RM "$cfgfile" 21441 21442 cat <<_LT_EOF >> "$cfgfile" 21443 #! $SHELL 21444 # Generated automatically by $as_me ($PACKAGE) $VERSION 21445 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21446 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21447 21448 # Provide generalized library-building support services. 21449 # Written by Gordon Matzigkeit, 1996 21450 21451 # Copyright (C) 2014 Free Software Foundation, Inc. 21452 # This is free software; see the source for copying conditions. There is NO 21453 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21454 21455 # GNU Libtool is free software; you can redistribute it and/or modify 21456 # it under the terms of the GNU General Public License as published by 21457 # the Free Software Foundation; either version 2 of of the License, or 21458 # (at your option) any later version. 21459 # 21460 # As a special exception to the GNU General Public License, if you 21461 # distribute this file as part of a program or library that is built 21462 # using GNU Libtool, you may include this file under the same 21463 # distribution terms that you use for the rest of that program. 21464 # 21465 # GNU Libtool is distributed in the hope that it will be useful, but 21466 # WITHOUT ANY WARRANTY; without even the implied warranty of 21467 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21468 # GNU General Public License for more details. 21469 # 21470 # You should have received a copy of the GNU General Public License 21471 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21472 21473 21474 # The names of the tagged configurations supported by this script. 21475 available_tags='' 21476 21477 # Configured defaults for sys_lib_dlsearch_path munging. 21478 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21479 21480 # ### BEGIN LIBTOOL CONFIG 21481 21482 # Whether or not to build static libraries. 21483 build_old_libs=$enable_static 21484 21485 # Which release of libtool.m4 was used? 21486 macro_version=$macro_version 21487 macro_revision=$macro_revision 21488 21489 # Whether or not to build shared libraries. 21490 build_libtool_libs=$enable_shared 21491 21492 # What type of objects to build. 21493 pic_mode=$pic_mode 21494 21495 # Whether or not to optimize for fast installation. 21496 fast_install=$enable_fast_install 21497 21498 # Shared archive member basename,for filename based shared library versioning on AIX. 21499 shared_archive_member_spec=$shared_archive_member_spec 21500 21501 # Shell to use when invoking shell scripts. 21502 SHELL=$lt_SHELL 21503 21504 # An echo program that protects backslashes. 21505 ECHO=$lt_ECHO 21506 21507 # The PATH separator for the build system. 21508 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21509 21510 # The host system. 21511 host_alias=$host_alias 21512 host=$host 21513 host_os=$host_os 21514 21515 # The build system. 21516 build_alias=$build_alias 21517 build=$build 21518 build_os=$build_os 21519 21520 # A sed program that does not truncate output. 21521 SED=$lt_SED 21522 21523 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21524 Xsed="\$SED -e 1s/^X//" 21525 21526 # A grep program that handles long lines. 21527 GREP=$lt_GREP 21528 21529 # An ERE matcher. 21530 EGREP=$lt_EGREP 21531 21532 # A literal string matcher. 21533 FGREP=$lt_FGREP 21534 21535 # A BSD- or MS-compatible name lister. 21536 NM=$lt_NM 21537 21538 # Whether we need soft or hard links. 21539 LN_S=$lt_LN_S 21540 21541 # What is the maximum length of a command? 21542 max_cmd_len=$max_cmd_len 21543 21544 # Object file suffix (normally "o"). 21545 objext=$ac_objext 21546 21547 # Executable file suffix (normally ""). 21548 exeext=$exeext 21549 21550 # whether the shell understands "unset". 21551 lt_unset=$lt_unset 21552 21553 # turn spaces into newlines. 21554 SP2NL=$lt_lt_SP2NL 21555 21556 # turn newlines into spaces. 21557 NL2SP=$lt_lt_NL2SP 21558 21559 # convert \$build file names to \$host format. 21560 to_host_file_cmd=$lt_cv_to_host_file_cmd 21561 21562 # convert \$build files to toolchain format. 21563 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21564 21565 # A file(cmd) program that detects file types. 21566 FILECMD=$lt_FILECMD 21567 21568 # An object symbol dumper. 21569 OBJDUMP=$lt_OBJDUMP 21570 21571 # Method to check whether dependent libraries are shared objects. 21572 deplibs_check_method=$lt_deplibs_check_method 21573 21574 # Command to use when deplibs_check_method = "file_magic". 21575 file_magic_cmd=$lt_file_magic_cmd 21576 21577 # How to find potential files when deplibs_check_method = "file_magic". 21578 file_magic_glob=$lt_file_magic_glob 21579 21580 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21581 want_nocaseglob=$lt_want_nocaseglob 21582 21583 # DLL creation program. 21584 DLLTOOL=$lt_DLLTOOL 21585 21586 # Command to associate shared and link libraries. 21587 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21588 21589 # The archiver. 21590 AR=$lt_AR 21591 21592 # Flags to create an archive (by configure). 21593 lt_ar_flags=$lt_ar_flags 21594 21595 # Flags to create an archive. 21596 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21597 21598 # How to feed a file listing to the archiver. 21599 archiver_list_spec=$lt_archiver_list_spec 21600 21601 # A symbol stripping program. 21602 STRIP=$lt_STRIP 21603 21604 # Commands used to install an old-style archive. 21605 RANLIB=$lt_RANLIB 21606 old_postinstall_cmds=$lt_old_postinstall_cmds 21607 old_postuninstall_cmds=$lt_old_postuninstall_cmds 21608 21609 # Whether to use a lock for old archive extraction. 21610 lock_old_archive_extraction=$lock_old_archive_extraction 21611 21612 # A C compiler. 21613 LTCC=$lt_CC 21614 21615 # LTCC compiler flags. 21616 LTCFLAGS=$lt_CFLAGS 21617 21618 # Take the output of nm and produce a listing of raw symbols and C names. 21619 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21620 21621 # Transform the output of nm in a proper C declaration. 21622 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21623 21624 # Transform the output of nm into a list of symbols to manually relocate. 21625 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21626 21627 # Transform the output of nm in a C name address pair. 21628 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21629 21630 # Transform the output of nm in a C name address pair when lib prefix is needed. 21631 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21632 21633 # The name lister interface. 21634 nm_interface=$lt_lt_cv_nm_interface 21635 21636 # Specify filename containing input files for \$NM. 21637 nm_file_list_spec=$lt_nm_file_list_spec 21638 21639 # The root where to search for dependent libraries,and where our libraries should be installed. 21640 lt_sysroot=$lt_sysroot 21641 21642 # Command to truncate a binary pipe. 21643 lt_truncate_bin=$lt_lt_cv_truncate_bin 21644 21645 # The name of the directory that contains temporary libtool files. 21646 objdir=$objdir 21647 21648 # Used to examine libraries when file_magic_cmd begins with "file". 21649 MAGIC_CMD=$MAGIC_CMD 21650 21651 # Must we lock files when doing compilation? 21652 need_locks=$lt_need_locks 21653 21654 # Manifest tool. 21655 MANIFEST_TOOL=$lt_MANIFEST_TOOL 21656 21657 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21658 DSYMUTIL=$lt_DSYMUTIL 21659 21660 # Tool to change global to local symbols on Mac OS X. 21661 NMEDIT=$lt_NMEDIT 21662 21663 # Tool to manipulate fat objects and archives on Mac OS X. 21664 LIPO=$lt_LIPO 21665 21666 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 21667 OTOOL=$lt_OTOOL 21668 21669 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21670 OTOOL64=$lt_OTOOL64 21671 21672 # Old archive suffix (normally "a"). 21673 libext=$libext 21674 21675 # Shared library suffix (normally ".so"). 21676 shrext_cmds=$lt_shrext_cmds 21677 21678 # The commands to extract the exported symbol list from a shared archive. 21679 extract_expsyms_cmds=$lt_extract_expsyms_cmds 21680 21681 # Variables whose values should be saved in libtool wrapper scripts and 21682 # restored at link time. 21683 variables_saved_for_relink=$lt_variables_saved_for_relink 21684 21685 # Do we need the "lib" prefix for modules? 21686 need_lib_prefix=$need_lib_prefix 21687 21688 # Do we need a version for libraries? 21689 need_version=$need_version 21690 21691 # Library versioning type. 21692 version_type=$version_type 21693 21694 # Shared library runtime path variable. 21695 runpath_var=$runpath_var 21696 21697 # Shared library path variable. 21698 shlibpath_var=$shlibpath_var 21699 21700 # Is shlibpath searched before the hard-coded library search path? 21701 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21702 21703 # Format of library name prefix. 21704 libname_spec=$lt_libname_spec 21705 21706 # List of archive names. First name is the real one, the rest are links. 21707 # The last name is the one that the linker finds with -lNAME 21708 library_names_spec=$lt_library_names_spec 21709 21710 # The coded name of the library, if different from the real name. 21711 soname_spec=$lt_soname_spec 21712 21713 # Permission mode override for installation of shared libraries. 21714 install_override_mode=$lt_install_override_mode 21715 21716 # Command to use after installation of a shared archive. 21717 postinstall_cmds=$lt_postinstall_cmds 21718 21719 # Command to use after uninstallation of a shared archive. 21720 postuninstall_cmds=$lt_postuninstall_cmds 21721 21722 # Commands used to finish a libtool library installation in a directory. 21723 finish_cmds=$lt_finish_cmds 21724 21725 # As "finish_cmds", except a single script fragment to be evaled but 21726 # not shown. 21727 finish_eval=$lt_finish_eval 21728 21729 # Whether we should hardcode library paths into libraries. 21730 hardcode_into_libs=$hardcode_into_libs 21731 21732 # Compile-time system search path for libraries. 21733 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21734 21735 # Detected run-time system search path for libraries. 21736 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21737 21738 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21739 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21740 21741 # Whether dlopen is supported. 21742 dlopen_support=$enable_dlopen 21743 21744 # Whether dlopen of programs is supported. 21745 dlopen_self=$enable_dlopen_self 21746 21747 # Whether dlopen of statically linked programs is supported. 21748 dlopen_self_static=$enable_dlopen_self_static 21749 21750 # Commands to strip libraries. 21751 old_striplib=$lt_old_striplib 21752 striplib=$lt_striplib 21753 21754 21755 # The linker used to build libraries. 21756 LD=$lt_LD 21757 21758 # How to create reloadable object files. 21759 reload_flag=$lt_reload_flag 21760 reload_cmds=$lt_reload_cmds 21761 21762 # Commands used to build an old-style archive. 21763 old_archive_cmds=$lt_old_archive_cmds 21764 21765 # A language specific compiler. 21766 CC=$lt_compiler 21767 21768 # Is the compiler the GNU compiler? 21769 with_gcc=$GCC 21770 21771 # Compiler flag to turn off builtin functions. 21772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21773 21774 # Additional compiler flags for building library objects. 21775 pic_flag=$lt_lt_prog_compiler_pic 21776 21777 # How to pass a linker flag through the compiler. 21778 wl=$lt_lt_prog_compiler_wl 21779 21780 # Compiler flag to prevent dynamic linking. 21781 link_static_flag=$lt_lt_prog_compiler_static 21782 21783 # Does compiler simultaneously support -c and -o options? 21784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21785 21786 # Whether or not to add -lc for building shared libraries. 21787 build_libtool_need_lc=$archive_cmds_need_lc 21788 21789 # Whether or not to disallow shared libs when runtime libs are static. 21790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21791 21792 # Compiler flag to allow reflexive dlopens. 21793 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21794 21795 # Compiler flag to generate shared objects directly from archives. 21796 whole_archive_flag_spec=$lt_whole_archive_flag_spec 21797 21798 # Whether the compiler copes with passing no objects directly. 21799 compiler_needs_object=$lt_compiler_needs_object 21800 21801 # Create an old-style archive from a shared archive. 21802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21803 21804 # Create a temporary old-style archive to link instead of a shared archive. 21805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21806 21807 # Commands used to build a shared archive. 21808 archive_cmds=$lt_archive_cmds 21809 archive_expsym_cmds=$lt_archive_expsym_cmds 21810 21811 # Commands used to build a loadable module if different from building 21812 # a shared archive. 21813 module_cmds=$lt_module_cmds 21814 module_expsym_cmds=$lt_module_expsym_cmds 21815 21816 # Whether we are building with GNU ld or not. 21817 with_gnu_ld=$lt_with_gnu_ld 21818 21819 # Flag that allows shared libraries with undefined symbols to be built. 21820 allow_undefined_flag=$lt_allow_undefined_flag 21821 21822 # Flag that enforces no undefined symbols. 21823 no_undefined_flag=$lt_no_undefined_flag 21824 21825 # Flag to hardcode \$libdir into a binary during linking. 21826 # This must work even if \$libdir does not exist 21827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21828 21829 # Whether we need a single "-rpath" flag with a separated argument. 21830 hardcode_libdir_separator=$lt_hardcode_libdir_separator 21831 21832 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21833 # DIR into the resulting binary. 21834 hardcode_direct=$hardcode_direct 21835 21836 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21837 # DIR into the resulting binary and the resulting library dependency is 21838 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 21839 # library is relocated. 21840 hardcode_direct_absolute=$hardcode_direct_absolute 21841 21842 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21843 # into the resulting binary. 21844 hardcode_minus_L=$hardcode_minus_L 21845 21846 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21847 # into the resulting binary. 21848 hardcode_shlibpath_var=$hardcode_shlibpath_var 21849 21850 # Set to "yes" if building a shared library automatically hardcodes DIR 21851 # into the library and all subsequent libraries and executables linked 21852 # against it. 21853 hardcode_automatic=$hardcode_automatic 21854 21855 # Set to yes if linker adds runtime paths of dependent libraries 21856 # to runtime path list. 21857 inherit_rpath=$inherit_rpath 21858 21859 # Whether libtool must link a program against all its dependency libraries. 21860 link_all_deplibs=$link_all_deplibs 21861 21862 # Set to "yes" if exported symbols are required. 21863 always_export_symbols=$always_export_symbols 21864 21865 # The commands to list exported symbols. 21866 export_symbols_cmds=$lt_export_symbols_cmds 21867 21868 # Symbols that should not be listed in the preloaded symbols. 21869 exclude_expsyms=$lt_exclude_expsyms 21870 21871 # Symbols that must always be exported. 21872 include_expsyms=$lt_include_expsyms 21873 21874 # Commands necessary for linking programs (against libraries) with templates. 21875 prelink_cmds=$lt_prelink_cmds 21876 21877 # Commands necessary for finishing linking programs. 21878 postlink_cmds=$lt_postlink_cmds 21879 21880 # Specify filename containing input files. 21881 file_list_spec=$lt_file_list_spec 21882 21883 # How to hardcode a shared library path into an executable. 21884 hardcode_action=$hardcode_action 21885 21886 # ### END LIBTOOL CONFIG 21887 21888 _LT_EOF 21889 21890 cat <<'_LT_EOF' >> "$cfgfile" 21891 21892 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21893 21894 # func_munge_path_list VARIABLE PATH 21895 # ----------------------------------- 21896 # VARIABLE is name of variable containing _space_ separated list of 21897 # directories to be munged by the contents of PATH, which is string 21898 # having a format: 21899 # "DIR[:DIR]:" 21900 # string "DIR[ DIR]" will be prepended to VARIABLE 21901 # ":DIR[:DIR]" 21902 # string "DIR[ DIR]" will be appended to VARIABLE 21903 # "DIRP[:DIRP]::[DIRA:]DIRA" 21904 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21905 # "DIRA[ DIRA]" will be appended to VARIABLE 21906 # "DIR[:DIR]" 21907 # VARIABLE will be replaced by "DIR[ DIR]" 21908 func_munge_path_list () 21909 { 21910 case x$2 in 21911 x) 21912 ;; 21913 *:) 21914 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21915 ;; 21916 x:*) 21917 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21918 ;; 21919 *::*) 21920 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21921 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21922 ;; 21923 *) 21924 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21925 ;; 21926 esac 21927 } 21928 21929 21930 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21931 func_cc_basename () 21932 { 21933 for cc_temp in $*""; do 21934 case $cc_temp in 21935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21937 \-*) ;; 21938 *) break;; 21939 esac 21940 done 21941 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21942 } 21943 21944 21945 # ### END FUNCTIONS SHARED WITH CONFIGURE 21946 21947 _LT_EOF 21948 21949 case $host_os in 21950 aix3*) 21951 cat <<\_LT_EOF >> "$cfgfile" 21952 # AIX sometimes has problems with the GCC collect2 program. For some 21953 # reason, if we set the COLLECT_NAMES environment variable, the problems 21954 # vanish in a puff of smoke. 21955 if test set != "${COLLECT_NAMES+set}"; then 21956 COLLECT_NAMES= 21957 export COLLECT_NAMES 21958 fi 21959 _LT_EOF 21960 ;; 21961 esac 21962 21963 21964 21965 ltmain=$ac_aux_dir/ltmain.sh 21966 21967 21968 # We use sed instead of cat because bash on DJGPP gets confused if 21969 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21970 # text mode, it properly converts lines to CR/LF. This bash problem 21971 # is reportedly fixed, but why not run on old versions too? 21972 $SED '$q' "$ltmain" >> "$cfgfile" \ 21973 || (rm -f "$cfgfile"; exit 1) 21974 21975 mv -f "$cfgfile" "$ofile" || 21976 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21977 chmod +x "$ofile" 21978 21979 ;; 21980 21981 esac 21982 done # for ac_tag 21983 21984 21985 as_fn_exit 0 21986 _ACEOF 21987 ac_clean_files=$ac_clean_files_save 21988 21989 test $ac_write_fail = 0 || 21990 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21991 21992 21993 # configure is writing to config.log, and then calls config.status. 21994 # config.status does its own redirection, appending to config.log. 21995 # Unfortunately, on DOS this fails, as config.log is still kept open 21996 # by configure, so config.status won't be able to write to it; its 21997 # output is simply discarded. So we exec the FD to /dev/null, 21998 # effectively closing config.log, so it can be properly (re)opened and 21999 # appended to by config.status. When coming back to configure, we 22000 # need to make the FD available again. 22001 if test "$no_create" != yes; then 22002 ac_cs_success=: 22003 ac_config_status_args= 22004 test "$silent" = yes && 22005 ac_config_status_args="$ac_config_status_args --quiet" 22006 exec 5>/dev/null 22007 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22008 exec 5>>config.log 22009 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22010 # would make configure fail if this is the last instruction. 22011 $ac_cs_success || as_fn_exit 1 22012 fi 22013 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22015 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22016 fi 22017 22018 22019