1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xf86-video-suncg14 1.2.0. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg14/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 test \$(( 1 + 1 )) = 2 || exit 1 188 189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 193 PATH=/empty FPATH=/empty; export PATH FPATH 194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 196 if (eval "$as_required") 2>/dev/null 197 then : 198 as_have_required=yes 199 else case e in #( 200 e) as_have_required=no ;; 201 esac 202 fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204 then : 205 206 else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208 as_found=false 209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210 do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225 then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228 then : 229 break 2 230 fi 231 fi 232 done;; 233 esac 234 as_found=false 235 done 236 IFS=$as_save_IFS 237 if $as_found 238 then : 239 240 else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243 then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245 fi ;; 246 esac 247 fi 248 249 250 if test "x$CONFIG_SHELL" != x 251 then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254 # neutralization value for shells without unset; and this also 255 # works around shells that cannot unset nonexistent variables. 256 # Preserve -v and -x to the replacement shell. 257 BASH_ENV=/dev/null 258 ENV=/dev/null 259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260 case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265 esac 266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267 # Admittedly, this is quite paranoid, since all the known shells bail 268 # out after a failed 'exec'. 269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270 exit 255 271 fi 272 273 if test x$as_have_required = xno 274 then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 282 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg14/-/issues 283 $0: about your system, including any error possibly output 284 $0: before this message. Then install a modern shell, or 285 $0: manually run the script under such a shell if you do 286 $0: have one." 287 fi 288 exit 1 289 fi ;; 290 esac 291 fi 292 fi 293 SHELL=${CONFIG_SHELL-/bin/sh} 294 export SHELL 295 # Unset more variables known to interfere with behavior of common tools. 296 CLICOLOR_FORCE= GREP_OPTIONS= 297 unset CLICOLOR_FORCE GREP_OPTIONS 298 299 ## --------------------- ## 300 ## M4sh Shell Functions. ## 301 ## --------------------- ## 302 # as_fn_unset VAR 303 # --------------- 304 # Portably unset VAR. 305 as_fn_unset () 306 { 307 { eval $1=; unset $1;} 308 } 309 as_unset=as_fn_unset 310 311 312 # as_fn_set_status STATUS 313 # ----------------------- 314 # Set $? to STATUS, without forking. 315 as_fn_set_status () 316 { 317 return $1 318 } # as_fn_set_status 319 320 # as_fn_exit STATUS 321 # ----------------- 322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323 as_fn_exit () 324 { 325 set +e 326 as_fn_set_status $1 327 exit $1 328 } # as_fn_exit 329 330 # as_fn_mkdir_p 331 # ------------- 332 # Create "$as_dir" as a directory, including parents if necessary. 333 as_fn_mkdir_p () 334 { 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352 printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376 } # as_fn_mkdir_p 377 378 # as_fn_executable_p FILE 379 # ----------------------- 380 # Test if FILE is an executable regular file. 381 as_fn_executable_p () 382 { 383 test -f "$1" && test -x "$1" 384 } # as_fn_executable_p 385 # as_fn_append VAR VALUE 386 # ---------------------- 387 # Append the text in VALUE to the end of the definition contained in VAR. Take 388 # advantage of any shell optimizations that allow amortized linear growth over 389 # repeated appends, instead of the typical quadratic growth present in naive 390 # implementations. 391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392 then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397 else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402 esac 403 fi # as_fn_append 404 405 # as_fn_arith ARG... 406 # ------------------ 407 # Perform arithmetic evaluation on the ARGs, and store the result in the 408 # global $as_val. Take advantage of shells that can avoid forks. The arguments 409 # must be portable across $(()) and expr. 410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411 then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416 else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421 esac 422 fi # as_fn_arith 423 424 425 # as_fn_error STATUS ERROR [LINENO LOG_FD] 426 # ---------------------------------------- 427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429 # script with STATUS, using 1 if that was 0. 430 as_fn_error () 431 { 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439 } # as_fn_error 440 441 if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444 else 445 as_expr=false 446 fi 447 448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450 else 451 as_basename=false 452 fi 453 454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456 else 457 as_dirname=false 458 fi 459 460 as_me=`$as_basename -- "$0" || 461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464 printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479 # Avoid depending upon Character Ranges. 480 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483 as_cr_digits='0123456789' 484 as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522 } 523 524 525 # Determine whether it's possible to make 'echo' print without a newline. 526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527 # for compatibility with existing Makefiles. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `echo -n x` in #((((( 530 -n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537 *) 538 ECHO_N='-n';; 539 esac 540 541 # For backward compatibility with old third-party macros, we provide 542 # the shell variables $as_echo and $as_echo_n. New code should use 543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 rm -f conf$$ conf$$.exe conf$$.file 548 if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550 else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553 fi 554 if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568 else 569 as_ln_s='cp -pR' 570 fi 571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572 rmdir conf$$.dir 2>/dev/null 573 574 if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576 else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579 fi 580 581 as_test_x='test -x' 582 as_executable_p=as_fn_executable_p 583 584 # Sed expression to map a string onto a valid CPP name. 585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588 # Sed expression to map a string onto a valid variable name. 589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592 SHELL=${CONFIG_SHELL-/bin/sh} 593 594 595 test -n "$DJDIR" || exec 7<&0 </dev/null 596 exec 6>&1 597 598 # Name of the host. 599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 600 # so uname gets run too. 601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 602 603 # 604 # Initializations. 605 # 606 ac_default_prefix=/usr/local 607 ac_clean_files= 608 ac_config_libobj_dir=. 609 LIBOBJS= 610 cross_compiling=no 611 subdirs= 612 MFLAGS= 613 MAKEFLAGS= 614 615 # Identity of this package. 616 PACKAGE_NAME='xf86-video-suncg14' 617 PACKAGE_TARNAME='xf86-video-suncg14' 618 PACKAGE_VERSION='1.2.0' 619 PACKAGE_STRING='xf86-video-suncg14 1.2.0' 620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg14/-/issues' 621 PACKAGE_URL='' 622 623 ac_unique_file="Makefile.am" 624 # Factoring default headers for most tests. 625 ac_includes_default="\ 626 #include <stddef.h> 627 #ifdef HAVE_STDIO_H 628 # include <stdio.h> 629 #endif 630 #ifdef HAVE_STDLIB_H 631 # include <stdlib.h> 632 #endif 633 #ifdef HAVE_STRING_H 634 # include <string.h> 635 #endif 636 #ifdef HAVE_INTTYPES_H 637 # include <inttypes.h> 638 #endif 639 #ifdef HAVE_STDINT_H 640 # include <stdint.h> 641 #endif 642 #ifdef HAVE_STRINGS_H 643 # include <strings.h> 644 #endif 645 #ifdef HAVE_SYS_TYPES_H 646 # include <sys/types.h> 647 #endif 648 #ifdef HAVE_SYS_STAT_H 649 # include <sys/stat.h> 650 #endif 651 #ifdef HAVE_UNISTD_H 652 # include <unistd.h> 653 #endif" 654 655 ac_header_c_list= 656 ac_subst_vars='am__EXEEXT_FALSE 657 am__EXEEXT_TRUE 658 LTLIBOBJS 659 LIBOBJS 660 DRIVER_NAME 661 moduledir 662 XORG_LIBS 663 XORG_CFLAGS 664 LT_SYS_LIBRARY_PATH 665 OTOOL64 666 OTOOL 667 LIPO 668 NMEDIT 669 DSYMUTIL 670 MANIFEST_TOOL 671 RANLIB 672 ac_ct_AR 673 AR 674 DLLTOOL 675 OBJDUMP 676 FILECMD 677 LN_S 678 NM 679 ac_ct_DUMPBIN 680 DUMPBIN 681 LD 682 FGREP 683 EGREP 684 GREP 685 LIBTOOL 686 MAN_SUBSTS 687 XORG_MAN_PAGE 688 ADMIN_MAN_DIR 689 DRIVER_MAN_DIR 690 MISC_MAN_DIR 691 FILE_MAN_DIR 692 LIB_MAN_DIR 693 APP_MAN_DIR 694 ADMIN_MAN_SUFFIX 695 DRIVER_MAN_SUFFIX 696 MISC_MAN_SUFFIX 697 FILE_MAN_SUFFIX 698 LIB_MAN_SUFFIX 699 APP_MAN_SUFFIX 700 SED 701 host_os 702 host_vendor 703 host_cpu 704 host 705 build_os 706 build_vendor 707 build_cpu 708 build 709 INSTALL_CMD 710 PKG_CONFIG_LIBDIR 711 PKG_CONFIG_PATH 712 PKG_CONFIG 713 CHANGELOG_CMD 714 STRICT_CFLAGS 715 CWARNFLAGS 716 BASE_CFLAGS 717 am__fastdepCC_FALSE 718 am__fastdepCC_TRUE 719 CCDEPMODE 720 am__nodep 721 AMDEPBACKSLASH 722 AMDEP_FALSE 723 AMDEP_TRUE 724 am__include 725 DEPDIR 726 OBJEXT 727 EXEEXT 728 ac_ct_CC 729 CPPFLAGS 730 LDFLAGS 731 CFLAGS 732 CC 733 MAINT 734 MAINTAINER_MODE_FALSE 735 MAINTAINER_MODE_TRUE 736 am__xargs_n 737 am__rm_f_notfound 738 AM_BACKSLASH 739 AM_DEFAULT_VERBOSITY 740 AM_DEFAULT_V 741 AM_V 742 CSCOPE 743 ETAGS 744 CTAGS 745 am__untar 746 am__tar 747 AMTAR 748 am__leading_dot 749 SET_MAKE 750 AWK 751 mkdir_p 752 MKDIR_P 753 INSTALL_STRIP_PROGRAM 754 STRIP 755 install_sh 756 MAKEINFO 757 AUTOHEADER 758 AUTOMAKE 759 AUTOCONF 760 ACLOCAL 761 VERSION 762 PACKAGE 763 CYGPATH_W 764 am__isrc 765 INSTALL_DATA 766 INSTALL_SCRIPT 767 INSTALL_PROGRAM 768 target_alias 769 host_alias 770 build_alias 771 LIBS 772 ECHO_T 773 ECHO_N 774 ECHO_C 775 DEFS 776 mandir 777 localedir 778 libdir 779 psdir 780 pdfdir 781 dvidir 782 htmldir 783 infodir 784 docdir 785 oldincludedir 786 includedir 787 runstatedir 788 localstatedir 789 sharedstatedir 790 sysconfdir 791 datadir 792 datarootdir 793 libexecdir 794 sbindir 795 bindir 796 program_transform_name 797 prefix 798 exec_prefix 799 PACKAGE_URL 800 PACKAGE_BUGREPORT 801 PACKAGE_STRING 802 PACKAGE_VERSION 803 PACKAGE_TARNAME 804 PACKAGE_NAME 805 PATH_SEPARATOR 806 SHELL 807 am__quote' 808 ac_subst_files='' 809 ac_user_opts=' 810 enable_option_checking 811 enable_silent_rules 812 enable_maintainer_mode 813 enable_dependency_tracking 814 enable_selective_werror 815 enable_strict_compilation 816 enable_static 817 enable_shared 818 enable_pic 819 with_pic 820 enable_fast_install 821 enable_aix_soname 822 with_aix_soname 823 with_gnu_ld 824 with_sysroot 825 enable_libtool_lock 826 with_xorg_module_dir 827 ' 828 ac_precious_vars='build_alias 829 host_alias 830 target_alias 831 CC 832 CFLAGS 833 LDFLAGS 834 LIBS 835 CPPFLAGS 836 PKG_CONFIG 837 PKG_CONFIG_PATH 838 PKG_CONFIG_LIBDIR 839 LT_SYS_LIBRARY_PATH 840 XORG_CFLAGS 841 XORG_LIBS' 842 843 844 # Initialize some variables set by options. 845 ac_init_help= 846 ac_init_version=false 847 ac_unrecognized_opts= 848 ac_unrecognized_sep= 849 # The variables have the same names as the options, with 850 # dashes changed to underlines. 851 cache_file=/dev/null 852 exec_prefix=NONE 853 no_create= 854 no_recursion= 855 prefix=NONE 856 program_prefix=NONE 857 program_suffix=NONE 858 program_transform_name=s,x,x, 859 silent= 860 site= 861 srcdir= 862 verbose= 863 x_includes=NONE 864 x_libraries=NONE 865 866 # Installation directory options. 867 # These are left unexpanded so users can "make install exec_prefix=/foo" 868 # and all the variables that are supposed to be based on exec_prefix 869 # by default will actually change. 870 # Use braces instead of parens because sh, perl, etc. also accept them. 871 # (The list follows the same order as the GNU Coding Standards.) 872 bindir='${exec_prefix}/bin' 873 sbindir='${exec_prefix}/sbin' 874 libexecdir='${exec_prefix}/libexec' 875 datarootdir='${prefix}/share' 876 datadir='${datarootdir}' 877 sysconfdir='${prefix}/etc' 878 sharedstatedir='${prefix}/com' 879 localstatedir='${prefix}/var' 880 runstatedir='${localstatedir}/run' 881 includedir='${prefix}/include' 882 oldincludedir='/usr/include' 883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 884 infodir='${datarootdir}/info' 885 htmldir='${docdir}' 886 dvidir='${docdir}' 887 pdfdir='${docdir}' 888 psdir='${docdir}' 889 libdir='${exec_prefix}/lib' 890 localedir='${datarootdir}/locale' 891 mandir='${datarootdir}/man' 892 893 ac_prev= 894 ac_dashdash= 895 for ac_option 896 do 897 # If the previous option needs an argument, assign it. 898 if test -n "$ac_prev"; then 899 eval $ac_prev=\$ac_option 900 ac_prev= 901 continue 902 fi 903 904 case $ac_option in 905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 906 *=) ac_optarg= ;; 907 *) ac_optarg=yes ;; 908 esac 909 910 case $ac_dashdash$ac_option in 911 --) 912 ac_dashdash=yes ;; 913 914 -bindir | --bindir | --bindi | --bind | --bin | --bi) 915 ac_prev=bindir ;; 916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 917 bindir=$ac_optarg ;; 918 919 -build | --build | --buil | --bui | --bu) 920 ac_prev=build_alias ;; 921 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 922 build_alias=$ac_optarg ;; 923 924 -cache-file | --cache-file | --cache-fil | --cache-fi \ 925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 926 ac_prev=cache_file ;; 927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 929 cache_file=$ac_optarg ;; 930 931 --config-cache | -C) 932 cache_file=config.cache ;; 933 934 -datadir | --datadir | --datadi | --datad) 935 ac_prev=datadir ;; 936 -datadir=* | --datadir=* | --datadi=* | --datad=*) 937 datadir=$ac_optarg ;; 938 939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 940 | --dataroo | --dataro | --datar) 941 ac_prev=datarootdir ;; 942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 944 datarootdir=$ac_optarg ;; 945 946 -disable-* | --disable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: '$ac_useropt'" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955 "enable_$ac_useropt" 956 "*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=no ;; 961 962 -docdir | --docdir | --docdi | --doc | --do) 963 ac_prev=docdir ;; 964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 965 docdir=$ac_optarg ;; 966 967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 968 ac_prev=dvidir ;; 969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 970 dvidir=$ac_optarg ;; 971 972 -enable-* | --enable-*) 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 976 as_fn_error $? "invalid feature name: '$ac_useropt'" 977 ac_useropt_orig=$ac_useropt 978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 979 case $ac_user_opts in 980 *" 981 "enable_$ac_useropt" 982 "*) ;; 983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 984 ac_unrecognized_sep=', ';; 985 esac 986 eval enable_$ac_useropt=\$ac_optarg ;; 987 988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 990 | --exec | --exe | --ex) 991 ac_prev=exec_prefix ;; 992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 994 | --exec=* | --exe=* | --ex=*) 995 exec_prefix=$ac_optarg ;; 996 997 -gas | --gas | --ga | --g) 998 # Obsolete; use --with-gas. 999 with_gas=yes ;; 1000 1001 -help | --help | --hel | --he | -h) 1002 ac_init_help=long ;; 1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1004 ac_init_help=recursive ;; 1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1006 ac_init_help=short ;; 1007 1008 -host | --host | --hos | --ho) 1009 ac_prev=host_alias ;; 1010 -host=* | --host=* | --hos=* | --ho=*) 1011 host_alias=$ac_optarg ;; 1012 1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1014 ac_prev=htmldir ;; 1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1016 | --ht=*) 1017 htmldir=$ac_optarg ;; 1018 1019 -includedir | --includedir | --includedi | --included | --include \ 1020 | --includ | --inclu | --incl | --inc) 1021 ac_prev=includedir ;; 1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1023 | --includ=* | --inclu=* | --incl=* | --inc=*) 1024 includedir=$ac_optarg ;; 1025 1026 -infodir | --infodir | --infodi | --infod | --info | --inf) 1027 ac_prev=infodir ;; 1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1029 infodir=$ac_optarg ;; 1030 1031 -libdir | --libdir | --libdi | --libd) 1032 ac_prev=libdir ;; 1033 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1034 libdir=$ac_optarg ;; 1035 1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1037 | --libexe | --libex | --libe) 1038 ac_prev=libexecdir ;; 1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1040 | --libexe=* | --libex=* | --libe=*) 1041 libexecdir=$ac_optarg ;; 1042 1043 -localedir | --localedir | --localedi | --localed | --locale) 1044 ac_prev=localedir ;; 1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1046 localedir=$ac_optarg ;; 1047 1048 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1049 | --localstate | --localstat | --localsta | --localst | --locals) 1050 ac_prev=localstatedir ;; 1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1053 localstatedir=$ac_optarg ;; 1054 1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1056 ac_prev=mandir ;; 1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1058 mandir=$ac_optarg ;; 1059 1060 -nfp | --nfp | --nf) 1061 # Obsolete; use --without-fp. 1062 with_fp=no ;; 1063 1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1065 | --no-cr | --no-c | -n) 1066 no_create=yes ;; 1067 1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1070 no_recursion=yes ;; 1071 1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1074 | --oldin | --oldi | --old | --ol | --o) 1075 ac_prev=oldincludedir ;; 1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1079 oldincludedir=$ac_optarg ;; 1080 1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1082 ac_prev=prefix ;; 1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1084 prefix=$ac_optarg ;; 1085 1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1087 | --program-pre | --program-pr | --program-p) 1088 ac_prev=program_prefix ;; 1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1091 program_prefix=$ac_optarg ;; 1092 1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1094 | --program-suf | --program-su | --program-s) 1095 ac_prev=program_suffix ;; 1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1098 program_suffix=$ac_optarg ;; 1099 1100 -program-transform-name | --program-transform-name \ 1101 | --program-transform-nam | --program-transform-na \ 1102 | --program-transform-n | --program-transform- \ 1103 | --program-transform | --program-transfor \ 1104 | --program-transfo | --program-transf \ 1105 | --program-trans | --program-tran \ 1106 | --progr-tra | --program-tr | --program-t) 1107 ac_prev=program_transform_name ;; 1108 -program-transform-name=* | --program-transform-name=* \ 1109 | --program-transform-nam=* | --program-transform-na=* \ 1110 | --program-transform-n=* | --program-transform-=* \ 1111 | --program-transform=* | --program-transfor=* \ 1112 | --program-transfo=* | --program-transf=* \ 1113 | --program-trans=* | --program-tran=* \ 1114 | --progr-tra=* | --program-tr=* | --program-t=*) 1115 program_transform_name=$ac_optarg ;; 1116 1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1118 ac_prev=pdfdir ;; 1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1120 pdfdir=$ac_optarg ;; 1121 1122 -psdir | --psdir | --psdi | --psd | --ps) 1123 ac_prev=psdir ;; 1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1125 psdir=$ac_optarg ;; 1126 1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1128 | -silent | --silent | --silen | --sile | --sil) 1129 silent=yes ;; 1130 1131 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1132 | --runstate | --runstat | --runsta | --runst | --runs \ 1133 | --run | --ru | --r) 1134 ac_prev=runstatedir ;; 1135 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1136 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1137 | --run=* | --ru=* | --r=*) 1138 runstatedir=$ac_optarg ;; 1139 1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1141 ac_prev=sbindir ;; 1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1143 | --sbi=* | --sb=*) 1144 sbindir=$ac_optarg ;; 1145 1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1148 | --sharedst | --shareds | --shared | --share | --shar \ 1149 | --sha | --sh) 1150 ac_prev=sharedstatedir ;; 1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1154 | --sha=* | --sh=*) 1155 sharedstatedir=$ac_optarg ;; 1156 1157 -site | --site | --sit) 1158 ac_prev=site ;; 1159 -site=* | --site=* | --sit=*) 1160 site=$ac_optarg ;; 1161 1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1163 ac_prev=srcdir ;; 1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1165 srcdir=$ac_optarg ;; 1166 1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1168 | --syscon | --sysco | --sysc | --sys | --sy) 1169 ac_prev=sysconfdir ;; 1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1172 sysconfdir=$ac_optarg ;; 1173 1174 -target | --target | --targe | --targ | --tar | --ta | --t) 1175 ac_prev=target_alias ;; 1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1177 target_alias=$ac_optarg ;; 1178 1179 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1180 verbose=yes ;; 1181 1182 -version | --version | --versio | --versi | --vers | -V) 1183 ac_init_version=: ;; 1184 1185 -with-* | --with-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: '$ac_useropt'" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194 "with_$ac_useropt" 1195 "*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=\$ac_optarg ;; 1200 1201 -without-* | --without-*) 1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 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--without-$ac_useropt_orig" 1213 ac_unrecognized_sep=', ';; 1214 esac 1215 eval with_$ac_useropt=no ;; 1216 1217 --x) 1218 # Obsolete; use --with-x. 1219 with_x=yes ;; 1220 1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1222 | --x-incl | --x-inc | --x-in | --x-i) 1223 ac_prev=x_includes ;; 1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1226 x_includes=$ac_optarg ;; 1227 1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1230 ac_prev=x_libraries ;; 1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1233 x_libraries=$ac_optarg ;; 1234 1235 -*) as_fn_error $? "unrecognized option: '$ac_option' 1236 Try '$0 --help' for more information" 1237 ;; 1238 1239 *=*) 1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1241 # Reject names that are not valid shell variable names. 1242 case $ac_envvar in #( 1243 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1244 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1245 esac 1246 eval $ac_envvar=\$ac_optarg 1247 export $ac_envvar ;; 1248 1249 *) 1250 # FIXME: should be removed in autoconf 3.0. 1251 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1253 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1255 ;; 1256 1257 esac 1258 done 1259 1260 if test -n "$ac_prev"; then 1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1262 as_fn_error $? "missing argument to $ac_option" 1263 fi 1264 1265 if test -n "$ac_unrecognized_opts"; then 1266 case $enable_option_checking in 1267 no) ;; 1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1269 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1270 esac 1271 fi 1272 1273 # Check all directory arguments for consistency. 1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1275 datadir sysconfdir sharedstatedir localstatedir includedir \ 1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1277 libdir localedir mandir runstatedir 1278 do 1279 eval ac_val=\$$ac_var 1280 # Remove trailing slashes. 1281 case $ac_val in 1282 */ ) 1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1284 eval $ac_var=\$ac_val;; 1285 esac 1286 # Be sure to have absolute directory names. 1287 case $ac_val in 1288 [\\/$]* | ?:[\\/]* ) continue;; 1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1290 esac 1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1292 done 1293 1294 # There might be people who depend on the old broken behavior: '$host' 1295 # used to hold the argument of --host etc. 1296 # FIXME: To remove some day. 1297 build=$build_alias 1298 host=$host_alias 1299 target=$target_alias 1300 1301 # FIXME: To remove some day. 1302 if test "x$host_alias" != x; then 1303 if test "x$build_alias" = x; then 1304 cross_compiling=maybe 1305 elif test "x$build_alias" != "x$host_alias"; then 1306 cross_compiling=yes 1307 fi 1308 fi 1309 1310 ac_tool_prefix= 1311 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1312 1313 test "$silent" = yes && exec 6>/dev/null 1314 1315 1316 ac_pwd=`pwd` && test -n "$ac_pwd" && 1317 ac_ls_di=`ls -di .` && 1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1319 as_fn_error $? "working directory cannot be determined" 1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1321 as_fn_error $? "pwd does not report name of working directory" 1322 1323 1324 # Find the source files, if location was not specified. 1325 if test -z "$srcdir"; then 1326 ac_srcdir_defaulted=yes 1327 # Try the directory containing this script, then the parent directory. 1328 ac_confdir=`$as_dirname -- "$as_myself" || 1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1330 X"$as_myself" : 'X\(//\)[^/]' \| \ 1331 X"$as_myself" : 'X\(//\)$' \| \ 1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1333 printf "%s\n" X"$as_myself" | 1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)[^/].*/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\).*/{ 1347 s//\1/ 1348 q 1349 } 1350 s/.*/./; q'` 1351 srcdir=$ac_confdir 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 srcdir=.. 1354 fi 1355 else 1356 ac_srcdir_defaulted=no 1357 fi 1358 if test ! -r "$srcdir/$ac_unique_file"; then 1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1361 fi 1362 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1363 ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1365 pwd)` 1366 # When building in place, set srcdir=. 1367 if test "$ac_abs_confdir" = "$ac_pwd"; then 1368 srcdir=. 1369 fi 1370 # Remove unnecessary trailing slashes from srcdir. 1371 # Double slashes in file names in object file debugging info 1372 # mess up M-x gdb in Emacs. 1373 case $srcdir in 1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1375 esac 1376 for ac_var in $ac_precious_vars; do 1377 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1378 eval ac_env_${ac_var}_value=\$${ac_var} 1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1381 done 1382 1383 # 1384 # Report the --help message. 1385 # 1386 if test "$ac_init_help" = "long"; then 1387 # Omit some internal or obsolete options to make the list less imposing. 1388 # This message is too long to be a string in the A/UX 3.1 sh. 1389 cat <<_ACEOF 1390 'configure' configures xf86-video-suncg14 1.2.0 to adapt to many kinds of systems. 1391 1392 Usage: $0 [OPTION]... [VAR=VALUE]... 1393 1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1395 VAR=VALUE. See below for descriptions of some of the useful variables. 1396 1397 Defaults for the options are specified in brackets. 1398 1399 Configuration: 1400 -h, --help display this help and exit 1401 --help=short display options specific to this package 1402 --help=recursive display the short help of all the included packages 1403 -V, --version display version information and exit 1404 -q, --quiet, --silent do not print 'checking ...' messages 1405 --cache-file=FILE cache test results in FILE [disabled] 1406 -C, --config-cache alias for '--cache-file=config.cache' 1407 -n, --no-create do not create output files 1408 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1409 1410 Installation directories: 1411 --prefix=PREFIX install architecture-independent files in PREFIX 1412 [$ac_default_prefix] 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1414 [PREFIX] 1415 1416 By default, 'make install' will install all the files in 1417 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1418 an installation prefix other than '$ac_default_prefix' using '--prefix', 1419 for instance '--prefix=\$HOME'. 1420 1421 For better control, use the options below. 1422 1423 Fine tuning of the installation directories: 1424 --bindir=DIR user executables [EPREFIX/bin] 1425 --sbindir=DIR system admin executables [EPREFIX/sbin] 1426 --libexecdir=DIR program executables [EPREFIX/libexec] 1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1430 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1431 --libdir=DIR object code libraries [EPREFIX/lib] 1432 --includedir=DIR C header files [PREFIX/include] 1433 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1436 --infodir=DIR info documentation [DATAROOTDIR/info] 1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1438 --mandir=DIR man documentation [DATAROOTDIR/man] 1439 --docdir=DIR documentation root 1440 [DATAROOTDIR/doc/xf86-video-suncg14] 1441 --htmldir=DIR html documentation [DOCDIR] 1442 --dvidir=DIR dvi documentation [DOCDIR] 1443 --pdfdir=DIR pdf documentation [DOCDIR] 1444 --psdir=DIR ps documentation [DOCDIR] 1445 _ACEOF 1446 1447 cat <<\_ACEOF 1448 1449 Program names: 1450 --program-prefix=PREFIX prepend PREFIX to installed program names 1451 --program-suffix=SUFFIX append SUFFIX to installed program names 1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1453 1454 System types: 1455 --build=BUILD configure for building on BUILD [guessed] 1456 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1457 _ACEOF 1458 fi 1459 1460 if test -n "$ac_init_help"; then 1461 case $ac_init_help in 1462 short | recursive ) echo "Configuration of xf86-video-suncg14 1.2.0:";; 1463 esac 1464 cat <<\_ACEOF 1465 1466 Optional Features: 1467 --disable-option-checking ignore unrecognized --enable/--with options 1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1470 --enable-silent-rules less verbose build output (undo: "make V=1") 1471 --disable-silent-rules verbose build output (undo: "make V=0") 1472 --enable-maintainer-mode 1473 enable make rules and dependencies not useful (and 1474 sometimes confusing) to the casual installer 1475 --enable-dependency-tracking 1476 do not reject slow dependency extractors 1477 --disable-dependency-tracking 1478 speeds up one-time build 1479 --disable-selective-werror 1480 Turn off selective compiler errors. (default: 1481 enabled) 1482 --enable-strict-compilation 1483 Enable all warnings from compiler and make them 1484 errors (default: disabled) 1485 --enable-static[=PKGS] build static libraries [default=no] 1486 --enable-shared[=PKGS] build shared libraries [default=yes] 1487 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --enable-fast-install[=PKGS] 1490 optimize for fast installation [default=yes] 1491 --enable-aix-soname=aix|svr4|both 1492 shared library versioning (aka "SONAME") variant to 1493 provide on AIX, [default=aix]. 1494 --disable-libtool-lock avoid locking (might break parallel builds) 1495 1496 Optional Packages: 1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1500 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1501 compiler's sysroot if not specified). 1502 --with-xorg-module-dir=DIR 1503 Default xorg module directory 1504 [[default=$libdir/xorg/modules]] 1505 1506 Some influential environment variables: 1507 CC C compiler command 1508 CFLAGS C compiler flags 1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1510 nonstandard directory <lib dir> 1511 LIBS libraries to pass to the linker, e.g. -l<library> 1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1513 you have headers in a nonstandard directory <include dir> 1514 PKG_CONFIG path to pkg-config utility 1515 PKG_CONFIG_PATH 1516 directories to add to pkg-config's search path 1517 PKG_CONFIG_LIBDIR 1518 path overriding pkg-config's built-in search path 1519 LT_SYS_LIBRARY_PATH 1520 User-defined run-time library search path. 1521 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1522 XORG_LIBS linker flags for XORG, overriding pkg-config 1523 1524 Use these variables to override the choices made by 'configure' or to help 1525 it to find libraries and programs with nonstandard names/locations. 1526 1527 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg14/-/issues>. 1528 _ACEOF 1529 ac_status=$? 1530 fi 1531 1532 if test "$ac_init_help" = "recursive"; then 1533 # If there are subdirs, report their specific --help. 1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1535 test -d "$ac_dir" || 1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1537 continue 1538 ac_builddir=. 1539 1540 case "$ac_dir" in 1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1542 *) 1543 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1544 # A ".." for each directory in $ac_dir_suffix. 1545 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1546 case $ac_top_builddir_sub in 1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1549 esac ;; 1550 esac 1551 ac_abs_top_builddir=$ac_pwd 1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1553 # for backward compatibility: 1554 ac_top_builddir=$ac_top_build_prefix 1555 1556 case $srcdir in 1557 .) # We are building in place. 1558 ac_srcdir=. 1559 ac_top_srcdir=$ac_top_builddir_sub 1560 ac_abs_top_srcdir=$ac_pwd ;; 1561 [\\/]* | ?:[\\/]* ) # Absolute name. 1562 ac_srcdir=$srcdir$ac_dir_suffix; 1563 ac_top_srcdir=$srcdir 1564 ac_abs_top_srcdir=$srcdir ;; 1565 *) # Relative name. 1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1567 ac_top_srcdir=$ac_top_build_prefix$srcdir 1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1569 esac 1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1571 1572 cd "$ac_dir" || { ac_status=$?; continue; } 1573 # Check for configure.gnu first; this name is used for a wrapper for 1574 # Metaconfig's "Configure" on case-insensitive file systems. 1575 if test -f "$ac_srcdir/configure.gnu"; then 1576 echo && 1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1578 elif test -f "$ac_srcdir/configure"; then 1579 echo && 1580 $SHELL "$ac_srcdir/configure" --help=recursive 1581 else 1582 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1583 fi || ac_status=$? 1584 cd "$ac_pwd" || { ac_status=$?; break; } 1585 done 1586 fi 1587 1588 test -n "$ac_init_help" && exit $ac_status 1589 if $ac_init_version; then 1590 cat <<\_ACEOF 1591 xf86-video-suncg14 configure 1.2.0 1592 generated by GNU Autoconf 2.72 1593 1594 Copyright (C) 2023 Free Software Foundation, Inc. 1595 This configure script is free software; the Free Software Foundation 1596 gives unlimited permission to copy, distribute and modify it. 1597 _ACEOF 1598 exit 1599 fi 1600 1601 ## ------------------------ ## 1602 ## Autoconf initialization. ## 1603 ## ------------------------ ## 1604 1605 # ac_fn_c_try_compile LINENO 1606 # -------------------------- 1607 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1608 ac_fn_c_try_compile () 1609 { 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611 rm -f conftest.$ac_objext conftest.beam 1612 if { { ac_try="$ac_compile" 1613 case "(($ac_try" in 1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1615 *) ac_try_echo=$ac_try;; 1616 esac 1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1618 printf "%s\n" "$ac_try_echo"; } >&5 1619 (eval "$ac_compile") 2>conftest.err 1620 ac_status=$? 1621 if test -s conftest.err; then 1622 grep -v '^ *+' conftest.err >conftest.er1 1623 cat conftest.er1 >&5 1624 mv -f conftest.er1 conftest.err 1625 fi 1626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1627 test $ac_status = 0; } && { 1628 test -z "$ac_c_werror_flag" || 1629 test ! -s conftest.err 1630 } && test -s conftest.$ac_objext 1631 then : 1632 ac_retval=0 1633 else case e in #( 1634 e) printf "%s\n" "$as_me: failed program was:" >&5 1635 sed 's/^/| /' conftest.$ac_ext >&5 1636 1637 ac_retval=1 ;; 1638 esac 1639 fi 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643 } # ac_fn_c_try_compile 1644 1645 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1646 # ------------------------------------------------------------------ 1647 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1648 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1649 ac_fn_check_decl () 1650 { 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 as_decl_name=`echo $2|sed 's/ *(.*//'` 1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1654 printf %s "checking whether $as_decl_name is declared... " >&6; } 1655 if eval test \${$3+y} 1656 then : 1657 printf %s "(cached) " >&6 1658 else case e in #( 1659 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1660 eval ac_save_FLAGS=\$$6 1661 as_fn_append $6 " $5" 1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1663 /* end confdefs.h. */ 1664 $4 1665 int 1666 main (void) 1667 { 1668 #ifndef $as_decl_name 1669 #ifdef __cplusplus 1670 (void) $as_decl_use; 1671 #else 1672 (void) $as_decl_name; 1673 #endif 1674 #endif 1675 1676 ; 1677 return 0; 1678 } 1679 _ACEOF 1680 if ac_fn_c_try_compile "$LINENO" 1681 then : 1682 eval "$3=yes" 1683 else case e in #( 1684 e) eval "$3=no" ;; 1685 esac 1686 fi 1687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1688 eval $6=\$ac_save_FLAGS 1689 ;; 1690 esac 1691 fi 1692 eval ac_res=\$$3 1693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1694 printf "%s\n" "$ac_res" >&6; } 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1696 1697 } # ac_fn_check_decl 1698 1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1700 # ------------------------------------------------------- 1701 # Tests whether HEADER exists and can be compiled using the include files in 1702 # INCLUDES, setting the cache variable VAR accordingly. 1703 ac_fn_c_check_header_compile () 1704 { 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1707 printf %s "checking for $2... " >&6; } 1708 if eval test \${$3+y} 1709 then : 1710 printf %s "(cached) " >&6 1711 else case e in #( 1712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1713 /* end confdefs.h. */ 1714 $4 1715 #include <$2> 1716 _ACEOF 1717 if ac_fn_c_try_compile "$LINENO" 1718 then : 1719 eval "$3=yes" 1720 else case e in #( 1721 e) eval "$3=no" ;; 1722 esac 1723 fi 1724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1725 esac 1726 fi 1727 eval ac_res=\$$3 1728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1729 printf "%s\n" "$ac_res" >&6; } 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 1732 } # ac_fn_c_check_header_compile 1733 1734 # ac_fn_c_try_link LINENO 1735 # ----------------------- 1736 # Try to link conftest.$ac_ext, and return whether this succeeded. 1737 ac_fn_c_try_link () 1738 { 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1741 if { { ac_try="$ac_link" 1742 case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745 esac 1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747 printf "%s\n" "$ac_try_echo"; } >&5 1748 (eval "$ac_link") 2>conftest.err 1749 ac_status=$? 1750 if test -s conftest.err; then 1751 grep -v '^ *+' conftest.err >conftest.er1 1752 cat conftest.er1 >&5 1753 mv -f conftest.er1 conftest.err 1754 fi 1755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } && { 1757 test -z "$ac_c_werror_flag" || 1758 test ! -s conftest.err 1759 } && test -s conftest$ac_exeext && { 1760 test "$cross_compiling" = yes || 1761 test -x conftest$ac_exeext 1762 } 1763 then : 1764 ac_retval=0 1765 else case e in #( 1766 e) printf "%s\n" "$as_me: failed program was:" >&5 1767 sed 's/^/| /' conftest.$ac_ext >&5 1768 1769 ac_retval=1 ;; 1770 esac 1771 fi 1772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1774 # interfere with the next link command; also delete a directory that is 1775 # left behind by Apple's compiler. We do this before executing the actions. 1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 as_fn_set_status $ac_retval 1779 1780 } # ac_fn_c_try_link 1781 1782 # ac_fn_c_check_func LINENO FUNC VAR 1783 # ---------------------------------- 1784 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1785 ac_fn_c_check_func () 1786 { 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1789 printf %s "checking for $2... " >&6; } 1790 if eval test \${$3+y} 1791 then : 1792 printf %s "(cached) " >&6 1793 else case e in #( 1794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1795 /* end confdefs.h. */ 1796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1798 #define $2 innocuous_$2 1799 1800 /* System header to define __stub macros and hopefully few prototypes, 1801 which can conflict with char $2 (void); below. */ 1802 1803 #include <limits.h> 1804 #undef $2 1805 1806 /* Override any GCC internal prototype to avoid an error. 1807 Use char because int might match the return type of a GCC 1808 builtin and then its argument prototype would still apply. */ 1809 #ifdef __cplusplus 1810 extern "C" 1811 #endif 1812 char $2 (void); 1813 /* The GNU C library defines this for functions which it implements 1814 to always fail with ENOSYS. Some functions are actually named 1815 something starting with __ and the normal name is an alias. */ 1816 #if defined __stub_$2 || defined __stub___$2 1817 choke me 1818 #endif 1819 1820 int 1821 main (void) 1822 { 1823 return $2 (); 1824 ; 1825 return 0; 1826 } 1827 _ACEOF 1828 if ac_fn_c_try_link "$LINENO" 1829 then : 1830 eval "$3=yes" 1831 else case e in #( 1832 e) eval "$3=no" ;; 1833 esac 1834 fi 1835 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1836 conftest$ac_exeext conftest.$ac_ext ;; 1837 esac 1838 fi 1839 eval ac_res=\$$3 1840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1841 printf "%s\n" "$ac_res" >&6; } 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 1844 } # ac_fn_c_check_func 1845 ac_configure_args_raw= 1846 for ac_arg 1847 do 1848 case $ac_arg in 1849 *\'*) 1850 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1851 esac 1852 as_fn_append ac_configure_args_raw " '$ac_arg'" 1853 done 1854 1855 case $ac_configure_args_raw in 1856 *$as_nl*) 1857 ac_safe_unquote= ;; 1858 *) 1859 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1860 ac_unsafe_a="$ac_unsafe_z#~" 1861 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1862 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1863 esac 1864 1865 cat >config.log <<_ACEOF 1866 This file contains any messages produced by compilers while 1867 running configure, to aid debugging if configure makes a mistake. 1868 1869 It was created by xf86-video-suncg14 $as_me 1.2.0, which was 1870 generated by GNU Autoconf 2.72. Invocation command line was 1871 1872 $ $0$ac_configure_args_raw 1873 1874 _ACEOF 1875 exec 5>>config.log 1876 { 1877 cat <<_ASUNAME 1878 ## --------- ## 1879 ## Platform. ## 1880 ## --------- ## 1881 1882 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1883 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1884 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1885 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1886 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1887 1888 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1889 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1890 1891 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1892 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1893 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1894 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1895 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1896 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1897 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1898 1899 _ASUNAME 1900 1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1902 for as_dir in $PATH 1903 do 1904 IFS=$as_save_IFS 1905 case $as_dir in #((( 1906 '') as_dir=./ ;; 1907 */) ;; 1908 *) as_dir=$as_dir/ ;; 1909 esac 1910 printf "%s\n" "PATH: $as_dir" 1911 done 1912 IFS=$as_save_IFS 1913 1914 } >&5 1915 1916 cat >&5 <<_ACEOF 1917 1918 1919 ## ----------- ## 1920 ## Core tests. ## 1921 ## ----------- ## 1922 1923 _ACEOF 1924 1925 1926 # Keep a trace of the command line. 1927 # Strip out --no-create and --no-recursion so they do not pile up. 1928 # Strip out --silent because we don't want to record it for future runs. 1929 # Also quote any args containing shell meta-characters. 1930 # Make two passes to allow for proper duplicate-argument suppression. 1931 ac_configure_args= 1932 ac_configure_args0= 1933 ac_configure_args1= 1934 ac_must_keep_next=false 1935 for ac_pass in 1 2 1936 do 1937 for ac_arg 1938 do 1939 case $ac_arg in 1940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1942 | -silent | --silent | --silen | --sile | --sil) 1943 continue ;; 1944 *\'*) 1945 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1946 esac 1947 case $ac_pass in 1948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1949 2) 1950 as_fn_append ac_configure_args1 " '$ac_arg'" 1951 if test $ac_must_keep_next = true; then 1952 ac_must_keep_next=false # Got value, back to normal. 1953 else 1954 case $ac_arg in 1955 *=* | --config-cache | -C | -disable-* | --disable-* \ 1956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1958 | -with-* | --with-* | -without-* | --without-* | --x) 1959 case "$ac_configure_args0 " in 1960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1961 esac 1962 ;; 1963 -* ) ac_must_keep_next=true ;; 1964 esac 1965 fi 1966 as_fn_append ac_configure_args " '$ac_arg'" 1967 ;; 1968 esac 1969 done 1970 done 1971 { ac_configure_args0=; unset ac_configure_args0;} 1972 { ac_configure_args1=; unset ac_configure_args1;} 1973 1974 # When interrupted or exit'd, cleanup temporary files, and complete 1975 # config.log. We remove comments because anyway the quotes in there 1976 # would cause problems or look ugly. 1977 # WARNING: Use '\'' to represent an apostrophe within the trap. 1978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1979 trap 'exit_status=$? 1980 # Sanitize IFS. 1981 IFS=" "" $as_nl" 1982 # Save into config.log some information that might help in debugging. 1983 { 1984 echo 1985 1986 printf "%s\n" "## ---------------- ## 1987 ## Cache variables. ## 1988 ## ---------------- ##" 1989 echo 1990 # The following way of writing the cache mishandles newlines in values, 1991 ( 1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1993 eval ac_val=\$$ac_var 1994 case $ac_val in #( 1995 *${as_nl}*) 1996 case $ac_var in #( 1997 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1998 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1999 esac 2000 case $ac_var in #( 2001 _ | IFS | as_nl) ;; #( 2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2003 *) { eval $ac_var=; unset $ac_var;} ;; 2004 esac ;; 2005 esac 2006 done 2007 (set) 2>&1 | 2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2009 *${as_nl}ac_space=\ *) 2010 sed -n \ 2011 "s/'\''/'\''\\\\'\'''\''/g; 2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2013 ;; #( 2014 *) 2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2016 ;; 2017 esac | 2018 sort 2019 ) 2020 echo 2021 2022 printf "%s\n" "## ----------------- ## 2023 ## Output variables. ## 2024 ## ----------------- ##" 2025 echo 2026 for ac_var in $ac_subst_vars 2027 do 2028 eval ac_val=\$$ac_var 2029 case $ac_val in 2030 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2031 esac 2032 printf "%s\n" "$ac_var='\''$ac_val'\''" 2033 done | sort 2034 echo 2035 2036 if test -n "$ac_subst_files"; then 2037 printf "%s\n" "## ------------------- ## 2038 ## File substitutions. ## 2039 ## ------------------- ##" 2040 echo 2041 for ac_var in $ac_subst_files 2042 do 2043 eval ac_val=\$$ac_var 2044 case $ac_val in 2045 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2046 esac 2047 printf "%s\n" "$ac_var='\''$ac_val'\''" 2048 done | sort 2049 echo 2050 fi 2051 2052 if test -s confdefs.h; then 2053 printf "%s\n" "## ----------- ## 2054 ## confdefs.h. ## 2055 ## ----------- ##" 2056 echo 2057 cat confdefs.h 2058 echo 2059 fi 2060 test "$ac_signal" != 0 && 2061 printf "%s\n" "$as_me: caught signal $ac_signal" 2062 printf "%s\n" "$as_me: exit $exit_status" 2063 } >&5 2064 rm -f core *.core core.conftest.* && 2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2066 exit $exit_status 2067 ' 0 2068 for ac_signal in 1 2 13 15; do 2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2070 done 2071 ac_signal=0 2072 2073 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2074 rm -f -r conftest* confdefs.h 2075 2076 printf "%s\n" "/* confdefs.h */" > confdefs.h 2077 2078 # Predefined preprocessor variables. 2079 2080 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2081 2082 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2083 2084 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2085 2086 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2087 2088 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2089 2090 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2091 2092 2093 # Let the site file select an alternate cache file if it wants to. 2094 # Prefer an explicitly selected file to automatically selected ones. 2095 if test -n "$CONFIG_SITE"; then 2096 ac_site_files="$CONFIG_SITE" 2097 elif test "x$prefix" != xNONE; then 2098 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2099 else 2100 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2101 fi 2102 2103 for ac_site_file in $ac_site_files 2104 do 2105 case $ac_site_file in #( 2106 */*) : 2107 ;; #( 2108 *) : 2109 ac_site_file=./$ac_site_file ;; 2110 esac 2111 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2113 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2114 sed 's/^/| /' "$ac_site_file" >&5 2115 . "$ac_site_file" \ 2116 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2117 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2118 as_fn_error $? "failed to load site script $ac_site_file 2119 See 'config.log' for more details" "$LINENO" 5; } 2120 fi 2121 done 2122 2123 if test -r "$cache_file"; then 2124 # Some versions of bash will fail to source /dev/null (special files 2125 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2126 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2128 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2129 case $cache_file in 2130 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2131 *) . "./$cache_file";; 2132 esac 2133 fi 2134 else 2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2136 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2137 >$cache_file 2138 fi 2139 2140 # Test code for whether the C compiler supports C89 (global declarations) 2141 ac_c_conftest_c89_globals=' 2142 /* Does the compiler advertise C89 conformance? 2143 Do not test the value of __STDC__, because some compilers set it to 0 2144 while being otherwise adequately conformant. */ 2145 #if !defined __STDC__ 2146 # error "Compiler does not advertise C89 conformance" 2147 #endif 2148 2149 #include <stddef.h> 2150 #include <stdarg.h> 2151 struct stat; 2152 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2153 struct buf { int x; }; 2154 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2155 static char *e (char **p, int i) 2156 { 2157 return p[i]; 2158 } 2159 static char *f (char * (*g) (char **, int), char **p, ...) 2160 { 2161 char *s; 2162 va_list v; 2163 va_start (v,p); 2164 s = g (p, va_arg (v,int)); 2165 va_end (v); 2166 return s; 2167 } 2168 2169 /* C89 style stringification. */ 2170 #define noexpand_stringify(a) #a 2171 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2172 2173 /* C89 style token pasting. Exercises some of the corner cases that 2174 e.g. old MSVC gets wrong, but not very hard. */ 2175 #define noexpand_concat(a,b) a##b 2176 #define expand_concat(a,b) noexpand_concat(a,b) 2177 extern int vA; 2178 extern int vbee; 2179 #define aye A 2180 #define bee B 2181 int *pvA = &expand_concat(v,aye); 2182 int *pvbee = &noexpand_concat(v,bee); 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 // See if C++-style comments work. 2217 2218 #include <stdbool.h> 2219 extern int puts (const char *); 2220 extern int printf (const char *, ...); 2221 extern int dprintf (int, const char *, ...); 2222 extern void *malloc (size_t); 2223 extern void free (void *); 2224 2225 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2226 // dprintf is used instead of fprintf to avoid needing to declare 2227 // FILE and stderr. 2228 #define debug(...) dprintf (2, __VA_ARGS__) 2229 #define showlist(...) puts (#__VA_ARGS__) 2230 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2231 static void 2232 test_varargs_macros (void) 2233 { 2234 int x = 1234; 2235 int y = 5678; 2236 debug ("Flag"); 2237 debug ("X = %d\n", x); 2238 showlist (The first, second, and third items.); 2239 report (x>y, "x is %d but y is %d", x, y); 2240 } 2241 2242 // Check long long types. 2243 #define BIG64 18446744073709551615ull 2244 #define BIG32 4294967295ul 2245 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2246 #if !BIG_OK 2247 #error "your preprocessor is broken" 2248 #endif 2249 #if BIG_OK 2250 #else 2251 #error "your preprocessor is broken" 2252 #endif 2253 static long long int bignum = -9223372036854775807LL; 2254 static unsigned long long int ubignum = BIG64; 2255 2256 struct incomplete_array 2257 { 2258 int datasize; 2259 double data[]; 2260 }; 2261 2262 struct named_init { 2263 int number; 2264 const wchar_t *name; 2265 double average; 2266 }; 2267 2268 typedef const char *ccp; 2269 2270 static inline int 2271 test_restrict (ccp restrict text) 2272 { 2273 // Iterate through items via the restricted pointer. 2274 // Also check for declarations in for loops. 2275 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2276 continue; 2277 return 0; 2278 } 2279 2280 // Check varargs and va_copy. 2281 static bool 2282 test_varargs (const char *format, ...) 2283 { 2284 va_list args; 2285 va_start (args, format); 2286 va_list args_copy; 2287 va_copy (args_copy, args); 2288 2289 const char *str = ""; 2290 int number = 0; 2291 float fnumber = 0; 2292 2293 while (*format) 2294 { 2295 switch (*format++) 2296 { 2297 case '\''s'\'': // string 2298 str = va_arg (args_copy, const char *); 2299 break; 2300 case '\''d'\'': // int 2301 number = va_arg (args_copy, int); 2302 break; 2303 case '\''f'\'': // float 2304 fnumber = va_arg (args_copy, double); 2305 break; 2306 default: 2307 break; 2308 } 2309 } 2310 va_end (args_copy); 2311 va_end (args); 2312 2313 return *str && number && fnumber; 2314 } 2315 ' 2316 2317 # Test code for whether the C compiler supports C99 (body of main). 2318 ac_c_conftest_c99_main=' 2319 // Check bool. 2320 _Bool success = false; 2321 success |= (argc != 0); 2322 2323 // Check restrict. 2324 if (test_restrict ("String literal") == 0) 2325 success = true; 2326 char *restrict newvar = "Another string"; 2327 2328 // Check varargs. 2329 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2330 test_varargs_macros (); 2331 2332 // Check flexible array members. 2333 struct incomplete_array *ia = 2334 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2335 ia->datasize = 10; 2336 for (int i = 0; i < ia->datasize; ++i) 2337 ia->data[i] = i * 1.234; 2338 // Work around memory leak warnings. 2339 free (ia); 2340 2341 // Check named initializers. 2342 struct named_init ni = { 2343 .number = 34, 2344 .name = L"Test wide string", 2345 .average = 543.34343, 2346 }; 2347 2348 ni.number = 58; 2349 2350 int dynamic_array[ni.number]; 2351 dynamic_array[0] = argv[0][0]; 2352 dynamic_array[ni.number - 1] = 543; 2353 2354 // work around unused variable warnings 2355 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2356 || dynamic_array[ni.number - 1] != 543); 2357 ' 2358 2359 # Test code for whether the C compiler supports C11 (global declarations) 2360 ac_c_conftest_c11_globals=' 2361 /* Does the compiler advertise C11 conformance? */ 2362 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2363 # error "Compiler does not advertise C11 conformance" 2364 #endif 2365 2366 // Check _Alignas. 2367 char _Alignas (double) aligned_as_double; 2368 char _Alignas (0) no_special_alignment; 2369 extern char aligned_as_int; 2370 char _Alignas (0) _Alignas (int) aligned_as_int; 2371 2372 // Check _Alignof. 2373 enum 2374 { 2375 int_alignment = _Alignof (int), 2376 int_array_alignment = _Alignof (int[100]), 2377 char_alignment = _Alignof (char) 2378 }; 2379 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2380 2381 // Check _Noreturn. 2382 int _Noreturn does_not_return (void) { for (;;) continue; } 2383 2384 // Check _Static_assert. 2385 struct test_static_assert 2386 { 2387 int x; 2388 _Static_assert (sizeof (int) <= sizeof (long int), 2389 "_Static_assert does not work in struct"); 2390 long int y; 2391 }; 2392 2393 // Check UTF-8 literals. 2394 #define u8 syntax error! 2395 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2396 2397 // Check duplicate typedefs. 2398 typedef long *long_ptr; 2399 typedef long int *long_ptr; 2400 typedef long_ptr long_ptr; 2401 2402 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2403 struct anonymous 2404 { 2405 union { 2406 struct { int i; int j; }; 2407 struct { int k; long int l; } w; 2408 }; 2409 int m; 2410 } v1; 2411 ' 2412 2413 # Test code for whether the C compiler supports C11 (body of main). 2414 ac_c_conftest_c11_main=' 2415 _Static_assert ((offsetof (struct anonymous, i) 2416 == offsetof (struct anonymous, w.k)), 2417 "Anonymous union alignment botch"); 2418 v1.i = 2; 2419 v1.w.k = 5; 2420 ok |= v1.i != 5; 2421 ' 2422 2423 # Test code for whether the C compiler supports C11 (complete). 2424 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2425 ${ac_c_conftest_c99_globals} 2426 ${ac_c_conftest_c11_globals} 2427 2428 int 2429 main (int argc, char **argv) 2430 { 2431 int ok = 0; 2432 ${ac_c_conftest_c89_main} 2433 ${ac_c_conftest_c99_main} 2434 ${ac_c_conftest_c11_main} 2435 return ok; 2436 } 2437 " 2438 2439 # Test code for whether the C compiler supports C99 (complete). 2440 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2441 ${ac_c_conftest_c99_globals} 2442 2443 int 2444 main (int argc, char **argv) 2445 { 2446 int ok = 0; 2447 ${ac_c_conftest_c89_main} 2448 ${ac_c_conftest_c99_main} 2449 return ok; 2450 } 2451 " 2452 2453 # Test code for whether the C compiler supports C89 (complete). 2454 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2455 2456 int 2457 main (int argc, char **argv) 2458 { 2459 int ok = 0; 2460 ${ac_c_conftest_c89_main} 2461 return ok; 2462 } 2463 " 2464 2465 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2466 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2467 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2468 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2469 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2470 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2471 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2472 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2473 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2474 2475 # Auxiliary files required by this configure script. 2476 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2477 2478 # Locations in which to look for auxiliary files. 2479 ac_aux_dir_candidates="${srcdir}/." 2480 2481 # Search for a directory containing all of the required auxiliary files, 2482 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2483 # If we don't find one directory that contains all the files we need, 2484 # we report the set of missing files from the *first* directory in 2485 # $ac_aux_dir_candidates and give up. 2486 ac_missing_aux_files="" 2487 ac_first_candidate=: 2488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2490 as_found=false 2491 for as_dir in $ac_aux_dir_candidates 2492 do 2493 IFS=$as_save_IFS 2494 case $as_dir in #((( 2495 '') as_dir=./ ;; 2496 */) ;; 2497 *) as_dir=$as_dir/ ;; 2498 esac 2499 as_found=: 2500 2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2502 ac_aux_dir_found=yes 2503 ac_install_sh= 2504 for ac_aux in $ac_aux_files 2505 do 2506 # As a special case, if "install-sh" is required, that requirement 2507 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2508 # and $ac_install_sh is set appropriately for whichever one is found. 2509 if test x"$ac_aux" = x"install-sh" 2510 then 2511 if test -f "${as_dir}install-sh"; then 2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2513 ac_install_sh="${as_dir}install-sh -c" 2514 elif test -f "${as_dir}install.sh"; then 2515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2516 ac_install_sh="${as_dir}install.sh -c" 2517 elif test -f "${as_dir}shtool"; then 2518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2519 ac_install_sh="${as_dir}shtool install -c" 2520 else 2521 ac_aux_dir_found=no 2522 if $ac_first_candidate; then 2523 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2524 else 2525 break 2526 fi 2527 fi 2528 else 2529 if test -f "${as_dir}${ac_aux}"; then 2530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2531 else 2532 ac_aux_dir_found=no 2533 if $ac_first_candidate; then 2534 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2535 else 2536 break 2537 fi 2538 fi 2539 fi 2540 done 2541 if test "$ac_aux_dir_found" = yes; then 2542 ac_aux_dir="$as_dir" 2543 break 2544 fi 2545 ac_first_candidate=false 2546 2547 as_found=false 2548 done 2549 IFS=$as_save_IFS 2550 if $as_found 2551 then : 2552 2553 else case e in #( 2554 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2555 esac 2556 fi 2557 2558 2559 # These three variables are undocumented and unsupported, 2560 # and are intended to be withdrawn in a future Autoconf release. 2561 # They can cause serious problems if a builder's source tree is in a directory 2562 # whose full name contains unusual characters. 2563 if test -f "${ac_aux_dir}config.guess"; then 2564 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2565 fi 2566 if test -f "${ac_aux_dir}config.sub"; then 2567 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2568 fi 2569 if test -f "$ac_aux_dir/configure"; then 2570 ac_configure="$SHELL ${ac_aux_dir}configure" 2571 fi 2572 2573 # Check that the precious variables saved in the cache have kept the same 2574 # value. 2575 ac_cache_corrupted=false 2576 for ac_var in $ac_precious_vars; do 2577 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2578 eval ac_new_set=\$ac_env_${ac_var}_set 2579 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2580 eval ac_new_val=\$ac_env_${ac_var}_value 2581 case $ac_old_set,$ac_new_set in 2582 set,) 2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2584 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2585 ac_cache_corrupted=: ;; 2586 ,set) 2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2588 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2589 ac_cache_corrupted=: ;; 2590 ,);; 2591 *) 2592 if test "x$ac_old_val" != "x$ac_new_val"; then 2593 # differences in whitespace do not lead to failure. 2594 ac_old_val_w=`echo x $ac_old_val` 2595 ac_new_val_w=`echo x $ac_new_val` 2596 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2598 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2599 ac_cache_corrupted=: 2600 else 2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2602 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2603 eval $ac_var=\$ac_old_val 2604 fi 2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2606 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2608 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2609 fi;; 2610 esac 2611 # Pass precious variables to config.status. 2612 if test "$ac_new_set" = set; then 2613 case $ac_new_val in 2614 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2615 *) ac_arg=$ac_var=$ac_new_val ;; 2616 esac 2617 case " $ac_configure_args " in 2618 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2619 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2620 esac 2621 fi 2622 done 2623 if $ac_cache_corrupted; then 2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2625 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2627 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2628 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2629 and start over" "$LINENO" 5 2630 fi 2631 ## -------------------- ## 2632 ## Main body of script. ## 2633 ## -------------------- ## 2634 2635 ac_ext=c 2636 ac_cpp='$CPP $CPPFLAGS' 2637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2639 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2640 2641 2642 2643 ac_config_headers="$ac_config_headers config.h" 2644 2645 2646 2647 # Initialize Automake 2648 am__api_version='1.17' 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 case e in #( 2673 e) 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 esac 2729 fi 2730 if test ${ac_cv_path_install+y}; then 2731 INSTALL=$ac_cv_path_install 2732 else 2733 # As a last resort, use the slow shell script. Don't cache a 2734 # value for INSTALL within a source directory, because that will 2735 # break other packages using the cache if that directory is 2736 # removed, or if the value is a relative name. 2737 INSTALL=$ac_install_sh 2738 fi 2739 fi 2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2741 printf "%s\n" "$INSTALL" >&6; } 2742 2743 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2744 # It thinks the first close brace ends the variable substitution. 2745 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2746 2747 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2748 2749 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2750 2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2752 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2753 if test ${am_cv_sleep_fractional_seconds+y} 2754 then : 2755 printf %s "(cached) " >&6 2756 else case e in #( 2757 e) if sleep 0.001 2>/dev/null 2758 then : 2759 am_cv_sleep_fractional_seconds=yes 2760 else case e in #( 2761 e) am_cv_sleep_fractional_seconds=no ;; 2762 esac 2763 fi 2764 ;; 2765 esac 2766 fi 2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2768 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2769 2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2771 printf %s "checking filesystem timestamp resolution... " >&6; } 2772 if test ${am_cv_filesystem_timestamp_resolution+y} 2773 then : 2774 printf %s "(cached) " >&6 2775 else case e in #( 2776 e) # Default to the worst case. 2777 am_cv_filesystem_timestamp_resolution=2 2778 2779 # Only try to go finer than 1 sec if sleep can do it. 2780 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2781 # - 1 sec is not much of a win compared to 2 sec, and 2782 # - it takes 2 seconds to perform the test whether 1 sec works. 2783 # 2784 # Instead, just use the default 2s on platforms that have 1s resolution, 2785 # accept the extra 1s delay when using $sleep in the Automake tests, in 2786 # exchange for not incurring the 2s delay for running the test for all 2787 # packages. 2788 # 2789 am_try_resolutions= 2790 if test "$am_cv_sleep_fractional_seconds" = yes; then 2791 # Even a millisecond often causes a bunch of false positives, 2792 # so just try a hundredth of a second. The time saved between .001 and 2793 # .01 is not terribly consequential. 2794 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2795 fi 2796 2797 # In order to catch current-generation FAT out, we must *modify* files 2798 # that already exist; the *creation* timestamp is finer. Use names 2799 # that make ls -t sort them differently when they have equal 2800 # timestamps than when they have distinct timestamps, keeping 2801 # in mind that ls -t prints the *newest* file first. 2802 rm -f conftest.ts? 2803 : > conftest.ts1 2804 : > conftest.ts2 2805 : > conftest.ts3 2806 2807 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2808 # clobber the current shell's arguments. (Outer-level square brackets 2809 # are removed by m4; they're present so that m4 does not expand 2810 # <dollar><star>; be careful, easy to get confused.) 2811 if ( 2812 set X `ls -t conftest.ts[12]` && 2813 { 2814 test "$*" != "X conftest.ts1 conftest.ts2" || 2815 test "$*" != "X conftest.ts2 conftest.ts1"; 2816 } 2817 ); then :; else 2818 # If neither matched, then we have a broken ls. This can happen 2819 # if, for instance, CONFIG_SHELL is bash and it inherits a 2820 # broken ls alias from the environment. This has actually 2821 # happened. Such a system could not be considered "sane". 2822 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2823 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2824 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2825 as_fn_error $? "ls -t produces unexpected output. 2826 Make sure there is not a broken ls alias in your environment. 2827 See 'config.log' for more details" "$LINENO" 5; } 2828 fi 2829 2830 for am_try_res in $am_try_resolutions; do 2831 # Any one fine-grained sleep might happen to cross the boundary 2832 # between two values of a coarser actual resolution, but if we do 2833 # two fine-grained sleeps in a row, at least one of them will fall 2834 # entirely within a coarse interval. 2835 echo alpha > conftest.ts1 2836 sleep $am_try_res 2837 echo beta > conftest.ts2 2838 sleep $am_try_res 2839 echo gamma > conftest.ts3 2840 2841 # We assume that 'ls -t' will make use of high-resolution 2842 # timestamps if the operating system supports them at all. 2843 if (set X `ls -t conftest.ts?` && 2844 test "$2" = conftest.ts3 && 2845 test "$3" = conftest.ts2 && 2846 test "$4" = conftest.ts1); then 2847 # 2848 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2849 # because we don't need to test make. 2850 make_ok=true 2851 if test $am_try_res != 1; then 2852 # But if we've succeeded so far with a subsecond resolution, we 2853 # have one more thing to check: make. It can happen that 2854 # everything else supports the subsecond mtimes, but make doesn't; 2855 # notably on macOS, which ships make 3.81 from 2006 (the last one 2856 # released under GPLv2). https://bugs.gnu.org/68808 2857 # 2858 # We test $MAKE if it is defined in the environment, else "make". 2859 # It might get overridden later, but our hope is that in practice 2860 # it does not matter: it is the system "make" which is (by far) 2861 # the most likely to be broken, whereas if the user overrides it, 2862 # probably they did so with a better, or at least not worse, make. 2863 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2864 # 2865 # Create a Makefile (real tab character here): 2866 rm -f conftest.mk 2867 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2868 echo ' touch conftest.ts2' >>conftest.mk 2869 # 2870 # Now, running 2871 # touch conftest.ts1; touch conftest.ts2; make 2872 # should touch ts1 because ts2 is newer. This could happen by luck, 2873 # but most often, it will fail if make's support is insufficient. So 2874 # test for several consecutive successes. 2875 # 2876 # (We reuse conftest.ts[12] because we still want to modify existing 2877 # files, not create new ones, per above.) 2878 n=0 2879 make=${MAKE-make} 2880 until test $n -eq 3; do 2881 echo one > conftest.ts1 2882 sleep $am_try_res 2883 echo two > conftest.ts2 # ts2 should now be newer than ts1 2884 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2885 make_ok=false 2886 break # out of $n loop 2887 fi 2888 n=`expr $n + 1` 2889 done 2890 fi 2891 # 2892 if $make_ok; then 2893 # Everything we know to check worked out, so call this resolution good. 2894 am_cv_filesystem_timestamp_resolution=$am_try_res 2895 break # out of $am_try_res loop 2896 fi 2897 # Otherwise, we'll go on to check the next resolution. 2898 fi 2899 done 2900 rm -f conftest.ts? 2901 # (end _am_filesystem_timestamp_resolution) 2902 ;; 2903 esac 2904 fi 2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2906 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2907 2908 # This check should not be cached, as it may vary across builds of 2909 # different projects. 2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2911 printf %s "checking whether build environment is sane... " >&6; } 2912 # Reject unsafe characters in $srcdir or the absolute working directory 2913 # name. Accept space and tab only in the latter. 2914 am_lf=' 2915 ' 2916 case `pwd` in 2917 *[\\\"\#\$\&\'\`$am_lf]*) 2918 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2919 esac 2920 case $srcdir in 2921 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2922 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2923 esac 2924 2925 # Do 'set' in a subshell so we don't clobber the current shell's 2926 # arguments. Must try -L first in case configure is actually a 2927 # symlink; some systems play weird games with the mod time of symlinks 2928 # (eg FreeBSD returns the mod time of the symlink's containing 2929 # directory). 2930 am_build_env_is_sane=no 2931 am_has_slept=no 2932 rm -f conftest.file 2933 for am_try in 1 2; do 2934 echo "timestamp, slept: $am_has_slept" > conftest.file 2935 if ( 2936 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2937 if test "$*" = "X"; then 2938 # -L didn't work. 2939 set X `ls -t "$srcdir/configure" conftest.file` 2940 fi 2941 test "$2" = conftest.file 2942 ); then 2943 am_build_env_is_sane=yes 2944 break 2945 fi 2946 # Just in case. 2947 sleep "$am_cv_filesystem_timestamp_resolution" 2948 am_has_slept=yes 2949 done 2950 2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2952 printf "%s\n" "$am_build_env_is_sane" >&6; } 2953 if test "$am_build_env_is_sane" = no; then 2954 as_fn_error $? "newly created file is older than distributed files! 2955 Check your system clock" "$LINENO" 5 2956 fi 2957 2958 # If we didn't sleep, we still need to ensure time stamps of config.status and 2959 # generated files are strictly newer. 2960 am_sleep_pid= 2961 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2962 then : 2963 2964 else case e in #( 2965 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2966 am_sleep_pid=$! 2967 ;; 2968 esac 2969 fi 2970 2971 rm -f conftest.file 2972 2973 test "$program_prefix" != NONE && 2974 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2975 # Use a double $ so make ignores it. 2976 test "$program_suffix" != NONE && 2977 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2978 # Double any \ or $. 2979 # By default was 's,x,x', remove it if useless. 2980 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2981 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2982 2983 2984 # Expand $ac_aux_dir to an absolute path. 2985 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2986 2987 2988 if test x"${MISSING+set}" != xset; then 2989 MISSING="\${SHELL} '$am_aux_dir/missing'" 2990 fi 2991 # Use eval to expand $SHELL 2992 if eval "$MISSING --is-lightweight"; then 2993 am_missing_run="$MISSING " 2994 else 2995 am_missing_run= 2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2997 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2998 fi 2999 3000 if test x"${install_sh+set}" != xset; then 3001 case $am_aux_dir in 3002 *\ * | *\ *) 3003 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3004 *) 3005 install_sh="\${SHELL} $am_aux_dir/install-sh" 3006 esac 3007 fi 3008 3009 # Installed binaries are usually stripped using 'strip' when the user 3010 # run "make install-strip". However 'strip' might not be the right 3011 # tool to use in cross-compilation environments, therefore Automake 3012 # will honor the 'STRIP' environment variable to overrule this program. 3013 if test "$cross_compiling" != no; then 3014 if test -n "$ac_tool_prefix"; then 3015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3016 set dummy ${ac_tool_prefix}strip; ac_word=$2 3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3018 printf %s "checking for $ac_word... " >&6; } 3019 if test ${ac_cv_prog_STRIP+y} 3020 then : 3021 printf %s "(cached) " >&6 3022 else case e in #( 3023 e) if test -n "$STRIP"; then 3024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3025 else 3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3027 for as_dir in $PATH 3028 do 3029 IFS=$as_save_IFS 3030 case $as_dir in #((( 3031 '') as_dir=./ ;; 3032 */) ;; 3033 *) as_dir=$as_dir/ ;; 3034 esac 3035 for ac_exec_ext in '' $ac_executable_extensions; do 3036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3037 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041 done 3042 done 3043 IFS=$as_save_IFS 3044 3045 fi ;; 3046 esac 3047 fi 3048 STRIP=$ac_cv_prog_STRIP 3049 if test -n "$STRIP"; then 3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3051 printf "%s\n" "$STRIP" >&6; } 3052 else 3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3054 printf "%s\n" "no" >&6; } 3055 fi 3056 3057 3058 fi 3059 if test -z "$ac_cv_prog_STRIP"; then 3060 ac_ct_STRIP=$STRIP 3061 # Extract the first word of "strip", so it can be a program name with args. 3062 set dummy strip; ac_word=$2 3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3064 printf %s "checking for $ac_word... " >&6; } 3065 if test ${ac_cv_prog_ac_ct_STRIP+y} 3066 then : 3067 printf %s "(cached) " >&6 3068 else case e in #( 3069 e) if test -n "$ac_ct_STRIP"; then 3070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3071 else 3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3073 for as_dir in $PATH 3074 do 3075 IFS=$as_save_IFS 3076 case $as_dir in #((( 3077 '') as_dir=./ ;; 3078 */) ;; 3079 *) as_dir=$as_dir/ ;; 3080 esac 3081 for ac_exec_ext in '' $ac_executable_extensions; do 3082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3083 ac_cv_prog_ac_ct_STRIP="strip" 3084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3085 break 2 3086 fi 3087 done 3088 done 3089 IFS=$as_save_IFS 3090 3091 fi ;; 3092 esac 3093 fi 3094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3095 if test -n "$ac_ct_STRIP"; then 3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3097 printf "%s\n" "$ac_ct_STRIP" >&6; } 3098 else 3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3100 printf "%s\n" "no" >&6; } 3101 fi 3102 3103 if test "x$ac_ct_STRIP" = x; then 3104 STRIP=":" 3105 else 3106 case $cross_compiling:$ac_tool_warned in 3107 yes:) 3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3109 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3110 ac_tool_warned=yes ;; 3111 esac 3112 STRIP=$ac_ct_STRIP 3113 fi 3114 else 3115 STRIP="$ac_cv_prog_STRIP" 3116 fi 3117 3118 fi 3119 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3120 3121 3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3123 printf %s "checking for a race-free mkdir -p... " >&6; } 3124 if test -z "$MKDIR_P"; then 3125 if test ${ac_cv_path_mkdir+y} 3126 then : 3127 printf %s "(cached) " >&6 3128 else case e in #( 3129 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3131 do 3132 IFS=$as_save_IFS 3133 case $as_dir in #((( 3134 '') as_dir=./ ;; 3135 */) ;; 3136 *) as_dir=$as_dir/ ;; 3137 esac 3138 for ac_prog in mkdir gmkdir; do 3139 for ac_exec_ext in '' $ac_executable_extensions; do 3140 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3141 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3142 'mkdir ('*'coreutils) '* | \ 3143 *'BusyBox '* | \ 3144 'mkdir (fileutils) '4.1*) 3145 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3146 break 3;; 3147 esac 3148 done 3149 done 3150 done 3151 IFS=$as_save_IFS 3152 ;; 3153 esac 3154 fi 3155 3156 test -d ./--version && rmdir ./--version 3157 if test ${ac_cv_path_mkdir+y}; then 3158 MKDIR_P="$ac_cv_path_mkdir -p" 3159 else 3160 # As a last resort, use plain mkdir -p, 3161 # in the hope it doesn't have the bugs of ancient mkdir. 3162 MKDIR_P='mkdir -p' 3163 fi 3164 fi 3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3166 printf "%s\n" "$MKDIR_P" >&6; } 3167 3168 for ac_prog in gawk mawk nawk awk 3169 do 3170 # Extract the first word of "$ac_prog", so it can be a program name with args. 3171 set dummy $ac_prog; ac_word=$2 3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3173 printf %s "checking for $ac_word... " >&6; } 3174 if test ${ac_cv_prog_AWK+y} 3175 then : 3176 printf %s "(cached) " >&6 3177 else case e in #( 3178 e) if test -n "$AWK"; then 3179 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3180 else 3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3182 for as_dir in $PATH 3183 do 3184 IFS=$as_save_IFS 3185 case $as_dir in #((( 3186 '') as_dir=./ ;; 3187 */) ;; 3188 *) as_dir=$as_dir/ ;; 3189 esac 3190 for ac_exec_ext in '' $ac_executable_extensions; do 3191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3192 ac_cv_prog_AWK="$ac_prog" 3193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3194 break 2 3195 fi 3196 done 3197 done 3198 IFS=$as_save_IFS 3199 3200 fi ;; 3201 esac 3202 fi 3203 AWK=$ac_cv_prog_AWK 3204 if test -n "$AWK"; then 3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3206 printf "%s\n" "$AWK" >&6; } 3207 else 3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3209 printf "%s\n" "no" >&6; } 3210 fi 3211 3212 3213 test -n "$AWK" && break 3214 done 3215 3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3217 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3218 set x ${MAKE-make} 3219 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3220 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3221 then : 3222 printf %s "(cached) " >&6 3223 else case e in #( 3224 e) cat >conftest.make <<\_ACEOF 3225 SHELL = /bin/sh 3226 all: 3227 @echo '@@@%%%=$(MAKE)=@@@%%%' 3228 _ACEOF 3229 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3230 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3231 *@@@%%%=?*=@@@%%%*) 3232 eval ac_cv_prog_make_${ac_make}_set=yes;; 3233 *) 3234 eval ac_cv_prog_make_${ac_make}_set=no;; 3235 esac 3236 rm -f conftest.make ;; 3237 esac 3238 fi 3239 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3241 printf "%s\n" "yes" >&6; } 3242 SET_MAKE= 3243 else 3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3245 printf "%s\n" "no" >&6; } 3246 SET_MAKE="MAKE=${MAKE-make}" 3247 fi 3248 3249 rm -rf .tst 2>/dev/null 3250 mkdir .tst 2>/dev/null 3251 if test -d .tst; then 3252 am__leading_dot=. 3253 else 3254 am__leading_dot=_ 3255 fi 3256 rmdir .tst 2>/dev/null 3257 3258 AM_DEFAULT_VERBOSITY=1 3259 # Check whether --enable-silent-rules was given. 3260 if test ${enable_silent_rules+y} 3261 then : 3262 enableval=$enable_silent_rules; 3263 fi 3264 3265 am_make=${MAKE-make} 3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3267 printf %s "checking whether $am_make supports nested variables... " >&6; } 3268 if test ${am_cv_make_support_nested_variables+y} 3269 then : 3270 printf %s "(cached) " >&6 3271 else case e in #( 3272 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3273 BAR0=false 3274 BAR1=true 3275 V=1 3276 am__doit: 3277 @$(TRUE) 3278 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3279 am_cv_make_support_nested_variables=yes 3280 else 3281 am_cv_make_support_nested_variables=no 3282 fi ;; 3283 esac 3284 fi 3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3286 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3287 AM_BACKSLASH='\' 3288 3289 am__rm_f_notfound= 3290 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3291 then : 3292 3293 else case e in #( 3294 e) am__rm_f_notfound='""' ;; 3295 esac 3296 fi 3297 3298 3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3300 printf %s "checking xargs -n works... " >&6; } 3301 if test ${am_cv_xargs_n_works+y} 3302 then : 3303 printf %s "(cached) " >&6 3304 else case e in #( 3305 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3306 3" 3307 then : 3308 am_cv_xargs_n_works=yes 3309 else case e in #( 3310 e) am_cv_xargs_n_works=no ;; 3311 esac 3312 fi ;; 3313 esac 3314 fi 3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3316 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3317 if test "$am_cv_xargs_n_works" = yes 3318 then : 3319 am__xargs_n='xargs -n' 3320 else case e in #( 3321 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3322 ;; 3323 esac 3324 fi 3325 3326 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3327 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3328 # is not polluted with repeated "-I." 3329 am__isrc=' -I$(srcdir)' 3330 # test to see if srcdir already configured 3331 if test -f $srcdir/config.status; then 3332 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3333 fi 3334 fi 3335 3336 # test whether we have cygpath 3337 if test -z "$CYGPATH_W"; then 3338 if (cygpath --version) >/dev/null 2>/dev/null; then 3339 CYGPATH_W='cygpath -w' 3340 else 3341 CYGPATH_W=echo 3342 fi 3343 fi 3344 3345 3346 # Define the identity of the package. 3347 PACKAGE='xf86-video-suncg14' 3348 VERSION='1.2.0' 3349 3350 3351 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3352 3353 3354 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3355 3356 # Some tools Automake needs. 3357 3358 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3359 3360 3361 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3362 3363 3364 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3365 3366 3367 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3368 3369 3370 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3371 3372 # For better backward compatibility. To be removed once Automake 1.9.x 3373 # dies out for good. For more background, see: 3374 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3375 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3376 mkdir_p='$(MKDIR_P)' 3377 3378 # We need awk for the "check" target (and possibly the TAP driver). The 3379 # system "awk" is bad on some platforms. 3380 # Always define AMTAR for backward compatibility. Yes, it's still used 3381 # in the wild :-( We should find a proper way to deprecate it ... 3382 AMTAR='$${TAR-tar}' 3383 3384 3385 # We'll loop over all known methods to create a tar archive until one works. 3386 _am_tools='gnutar pax cpio none' 3387 3388 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3389 3390 3391 3392 3393 3394 # Variables for tags utilities; see am/tags.am 3395 if test -z "$CTAGS"; then 3396 CTAGS=ctags 3397 fi 3398 3399 if test -z "$ETAGS"; then 3400 ETAGS=etags 3401 fi 3402 3403 if test -z "$CSCOPE"; then 3404 CSCOPE=cscope 3405 fi 3406 3407 3408 3409 3410 3411 3412 3413 3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3415 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3416 # Check whether --enable-maintainer-mode was given. 3417 if test ${enable_maintainer_mode+y} 3418 then : 3419 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3420 else case e in #( 3421 e) USE_MAINTAINER_MODE=no ;; 3422 esac 3423 fi 3424 3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3426 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3427 if test $USE_MAINTAINER_MODE = yes; then 3428 MAINTAINER_MODE_TRUE= 3429 MAINTAINER_MODE_FALSE='#' 3430 else 3431 MAINTAINER_MODE_TRUE='#' 3432 MAINTAINER_MODE_FALSE= 3433 fi 3434 3435 MAINT=$MAINTAINER_MODE_TRUE 3436 3437 3438 3439 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 DEPDIR="${am__leading_dot}deps" 3461 3462 ac_config_commands="$ac_config_commands depfiles" 3463 3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3465 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3466 cat > confinc.mk << 'END' 3467 am__doit: 3468 @echo this is the am__doit target >confinc.out 3469 .PHONY: am__doit 3470 END 3471 am__include="#" 3472 am__quote= 3473 # BSD make does it like this. 3474 echo '.include "confinc.mk" # ignored' > confmf.BSD 3475 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3476 echo 'include confinc.mk # ignored' > confmf.GNU 3477 _am_result=no 3478 for s in GNU BSD; do 3479 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3480 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3481 ac_status=$? 3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3483 (exit $ac_status); } 3484 case $?:`cat confinc.out 2>/dev/null` in #( 3485 '0:this is the am__doit target') : 3486 case $s in #( 3487 BSD) : 3488 am__include='.include' am__quote='"' ;; #( 3489 *) : 3490 am__include='include' am__quote='' ;; 3491 esac ;; #( 3492 *) : 3493 ;; 3494 esac 3495 if test "$am__include" != "#"; then 3496 _am_result="yes ($s style)" 3497 break 3498 fi 3499 done 3500 rm -f confinc.* confmf.* 3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3502 printf "%s\n" "${_am_result}" >&6; } 3503 3504 # Check whether --enable-dependency-tracking was given. 3505 if test ${enable_dependency_tracking+y} 3506 then : 3507 enableval=$enable_dependency_tracking; 3508 fi 3509 3510 if test "x$enable_dependency_tracking" != xno; then 3511 am_depcomp="$ac_aux_dir/depcomp" 3512 AMDEPBACKSLASH='\' 3513 am__nodep='_no' 3514 fi 3515 if test "x$enable_dependency_tracking" != xno; then 3516 AMDEP_TRUE= 3517 AMDEP_FALSE='#' 3518 else 3519 AMDEP_TRUE='#' 3520 AMDEP_FALSE= 3521 fi 3522 3523 3524 ac_ext=c 3525 ac_cpp='$CPP $CPPFLAGS' 3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3529 if test -n "$ac_tool_prefix"; then 3530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3531 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3533 printf %s "checking for $ac_word... " >&6; } 3534 if test ${ac_cv_prog_CC+y} 3535 then : 3536 printf %s "(cached) " >&6 3537 else case e in #( 3538 e) if test -n "$CC"; then 3539 ac_cv_prog_CC="$CC" # Let the user override the test. 3540 else 3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3542 for as_dir in $PATH 3543 do 3544 IFS=$as_save_IFS 3545 case $as_dir in #((( 3546 '') as_dir=./ ;; 3547 */) ;; 3548 *) as_dir=$as_dir/ ;; 3549 esac 3550 for ac_exec_ext in '' $ac_executable_extensions; do 3551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3552 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3554 break 2 3555 fi 3556 done 3557 done 3558 IFS=$as_save_IFS 3559 3560 fi ;; 3561 esac 3562 fi 3563 CC=$ac_cv_prog_CC 3564 if test -n "$CC"; then 3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3566 printf "%s\n" "$CC" >&6; } 3567 else 3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3569 printf "%s\n" "no" >&6; } 3570 fi 3571 3572 3573 fi 3574 if test -z "$ac_cv_prog_CC"; then 3575 ac_ct_CC=$CC 3576 # Extract the first word of "gcc", so it can be a program name with args. 3577 set dummy gcc; ac_word=$2 3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3579 printf %s "checking for $ac_word... " >&6; } 3580 if test ${ac_cv_prog_ac_ct_CC+y} 3581 then : 3582 printf %s "(cached) " >&6 3583 else case e in #( 3584 e) if test -n "$ac_ct_CC"; then 3585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3586 else 3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3588 for as_dir in $PATH 3589 do 3590 IFS=$as_save_IFS 3591 case $as_dir in #((( 3592 '') as_dir=./ ;; 3593 */) ;; 3594 *) as_dir=$as_dir/ ;; 3595 esac 3596 for ac_exec_ext in '' $ac_executable_extensions; do 3597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3598 ac_cv_prog_ac_ct_CC="gcc" 3599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3600 break 2 3601 fi 3602 done 3603 done 3604 IFS=$as_save_IFS 3605 3606 fi ;; 3607 esac 3608 fi 3609 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3610 if test -n "$ac_ct_CC"; then 3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3612 printf "%s\n" "$ac_ct_CC" >&6; } 3613 else 3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3615 printf "%s\n" "no" >&6; } 3616 fi 3617 3618 if test "x$ac_ct_CC" = x; then 3619 CC="" 3620 else 3621 case $cross_compiling:$ac_tool_warned in 3622 yes:) 3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3625 ac_tool_warned=yes ;; 3626 esac 3627 CC=$ac_ct_CC 3628 fi 3629 else 3630 CC="$ac_cv_prog_CC" 3631 fi 3632 3633 if test -z "$CC"; then 3634 if test -n "$ac_tool_prefix"; then 3635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3636 set dummy ${ac_tool_prefix}cc; ac_word=$2 3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3638 printf %s "checking for $ac_word... " >&6; } 3639 if test ${ac_cv_prog_CC+y} 3640 then : 3641 printf %s "(cached) " >&6 3642 else case e in #( 3643 e) if test -n "$CC"; then 3644 ac_cv_prog_CC="$CC" # Let the user override the test. 3645 else 3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3647 for as_dir in $PATH 3648 do 3649 IFS=$as_save_IFS 3650 case $as_dir in #((( 3651 '') as_dir=./ ;; 3652 */) ;; 3653 *) as_dir=$as_dir/ ;; 3654 esac 3655 for ac_exec_ext in '' $ac_executable_extensions; do 3656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3657 ac_cv_prog_CC="${ac_tool_prefix}cc" 3658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3659 break 2 3660 fi 3661 done 3662 done 3663 IFS=$as_save_IFS 3664 3665 fi ;; 3666 esac 3667 fi 3668 CC=$ac_cv_prog_CC 3669 if test -n "$CC"; then 3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3671 printf "%s\n" "$CC" >&6; } 3672 else 3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3674 printf "%s\n" "no" >&6; } 3675 fi 3676 3677 3678 fi 3679 fi 3680 if test -z "$CC"; then 3681 # Extract the first word of "cc", so it can be a program name with args. 3682 set dummy cc; ac_word=$2 3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3684 printf %s "checking for $ac_word... " >&6; } 3685 if test ${ac_cv_prog_CC+y} 3686 then : 3687 printf %s "(cached) " >&6 3688 else case e in #( 3689 e) if test -n "$CC"; then 3690 ac_cv_prog_CC="$CC" # Let the user override the test. 3691 else 3692 ac_prog_rejected=no 3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3694 for as_dir in $PATH 3695 do 3696 IFS=$as_save_IFS 3697 case $as_dir in #((( 3698 '') as_dir=./ ;; 3699 */) ;; 3700 *) as_dir=$as_dir/ ;; 3701 esac 3702 for ac_exec_ext in '' $ac_executable_extensions; do 3703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3704 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3705 ac_prog_rejected=yes 3706 continue 3707 fi 3708 ac_cv_prog_CC="cc" 3709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3710 break 2 3711 fi 3712 done 3713 done 3714 IFS=$as_save_IFS 3715 3716 if test $ac_prog_rejected = yes; then 3717 # We found a bogon in the path, so make sure we never use it. 3718 set dummy $ac_cv_prog_CC 3719 shift 3720 if test $# != 0; then 3721 # We chose a different compiler from the bogus one. 3722 # However, it has the same basename, so the bogon will be chosen 3723 # first if we set CC to just the basename; use the full file name. 3724 shift 3725 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3726 fi 3727 fi 3728 fi ;; 3729 esac 3730 fi 3731 CC=$ac_cv_prog_CC 3732 if test -n "$CC"; then 3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3734 printf "%s\n" "$CC" >&6; } 3735 else 3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3737 printf "%s\n" "no" >&6; } 3738 fi 3739 3740 3741 fi 3742 if test -z "$CC"; then 3743 if test -n "$ac_tool_prefix"; then 3744 for ac_prog in cl.exe 3745 do 3746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3749 printf %s "checking for $ac_word... " >&6; } 3750 if test ${ac_cv_prog_CC+y} 3751 then : 3752 printf %s "(cached) " >&6 3753 else case e in #( 3754 e) if test -n "$CC"; then 3755 ac_cv_prog_CC="$CC" # Let the user override the test. 3756 else 3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3758 for as_dir in $PATH 3759 do 3760 IFS=$as_save_IFS 3761 case $as_dir in #((( 3762 '') as_dir=./ ;; 3763 */) ;; 3764 *) as_dir=$as_dir/ ;; 3765 esac 3766 for ac_exec_ext in '' $ac_executable_extensions; do 3767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3770 break 2 3771 fi 3772 done 3773 done 3774 IFS=$as_save_IFS 3775 3776 fi ;; 3777 esac 3778 fi 3779 CC=$ac_cv_prog_CC 3780 if test -n "$CC"; then 3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3782 printf "%s\n" "$CC" >&6; } 3783 else 3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3785 printf "%s\n" "no" >&6; } 3786 fi 3787 3788 3789 test -n "$CC" && break 3790 done 3791 fi 3792 if test -z "$CC"; then 3793 ac_ct_CC=$CC 3794 for ac_prog in cl.exe 3795 do 3796 # Extract the first word of "$ac_prog", so it can be a program name with args. 3797 set dummy $ac_prog; ac_word=$2 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3799 printf %s "checking for $ac_word... " >&6; } 3800 if test ${ac_cv_prog_ac_ct_CC+y} 3801 then : 3802 printf %s "(cached) " >&6 3803 else case e in #( 3804 e) if test -n "$ac_ct_CC"; then 3805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3806 else 3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3808 for as_dir in $PATH 3809 do 3810 IFS=$as_save_IFS 3811 case $as_dir in #((( 3812 '') as_dir=./ ;; 3813 */) ;; 3814 *) as_dir=$as_dir/ ;; 3815 esac 3816 for ac_exec_ext in '' $ac_executable_extensions; do 3817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3818 ac_cv_prog_ac_ct_CC="$ac_prog" 3819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3820 break 2 3821 fi 3822 done 3823 done 3824 IFS=$as_save_IFS 3825 3826 fi ;; 3827 esac 3828 fi 3829 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3830 if test -n "$ac_ct_CC"; then 3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3832 printf "%s\n" "$ac_ct_CC" >&6; } 3833 else 3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3835 printf "%s\n" "no" >&6; } 3836 fi 3837 3838 3839 test -n "$ac_ct_CC" && break 3840 done 3841 3842 if test "x$ac_ct_CC" = x; then 3843 CC="" 3844 else 3845 case $cross_compiling:$ac_tool_warned in 3846 yes:) 3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3849 ac_tool_warned=yes ;; 3850 esac 3851 CC=$ac_ct_CC 3852 fi 3853 fi 3854 3855 fi 3856 if test -z "$CC"; then 3857 if test -n "$ac_tool_prefix"; then 3858 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3859 set dummy ${ac_tool_prefix}clang; ac_word=$2 3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3861 printf %s "checking for $ac_word... " >&6; } 3862 if test ${ac_cv_prog_CC+y} 3863 then : 3864 printf %s "(cached) " >&6 3865 else case e in #( 3866 e) if test -n "$CC"; then 3867 ac_cv_prog_CC="$CC" # Let the user override the test. 3868 else 3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3870 for as_dir in $PATH 3871 do 3872 IFS=$as_save_IFS 3873 case $as_dir in #((( 3874 '') as_dir=./ ;; 3875 */) ;; 3876 *) as_dir=$as_dir/ ;; 3877 esac 3878 for ac_exec_ext in '' $ac_executable_extensions; do 3879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3880 ac_cv_prog_CC="${ac_tool_prefix}clang" 3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3882 break 2 3883 fi 3884 done 3885 done 3886 IFS=$as_save_IFS 3887 3888 fi ;; 3889 esac 3890 fi 3891 CC=$ac_cv_prog_CC 3892 if test -n "$CC"; then 3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3894 printf "%s\n" "$CC" >&6; } 3895 else 3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3897 printf "%s\n" "no" >&6; } 3898 fi 3899 3900 3901 fi 3902 if test -z "$ac_cv_prog_CC"; then 3903 ac_ct_CC=$CC 3904 # Extract the first word of "clang", so it can be a program name with args. 3905 set dummy clang; ac_word=$2 3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3907 printf %s "checking for $ac_word... " >&6; } 3908 if test ${ac_cv_prog_ac_ct_CC+y} 3909 then : 3910 printf %s "(cached) " >&6 3911 else case e in #( 3912 e) if test -n "$ac_ct_CC"; then 3913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3914 else 3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3916 for as_dir in $PATH 3917 do 3918 IFS=$as_save_IFS 3919 case $as_dir in #((( 3920 '') as_dir=./ ;; 3921 */) ;; 3922 *) as_dir=$as_dir/ ;; 3923 esac 3924 for ac_exec_ext in '' $ac_executable_extensions; do 3925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3926 ac_cv_prog_ac_ct_CC="clang" 3927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3928 break 2 3929 fi 3930 done 3931 done 3932 IFS=$as_save_IFS 3933 3934 fi ;; 3935 esac 3936 fi 3937 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3938 if test -n "$ac_ct_CC"; then 3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3940 printf "%s\n" "$ac_ct_CC" >&6; } 3941 else 3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3943 printf "%s\n" "no" >&6; } 3944 fi 3945 3946 if test "x$ac_ct_CC" = x; then 3947 CC="" 3948 else 3949 case $cross_compiling:$ac_tool_warned in 3950 yes:) 3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3952 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3953 ac_tool_warned=yes ;; 3954 esac 3955 CC=$ac_ct_CC 3956 fi 3957 else 3958 CC="$ac_cv_prog_CC" 3959 fi 3960 3961 fi 3962 3963 3964 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3965 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3966 as_fn_error $? "no acceptable C compiler found in \$PATH 3967 See 'config.log' for more details" "$LINENO" 5; } 3968 3969 # Provide some information about the compiler. 3970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3971 set X $ac_compile 3972 ac_compiler=$2 3973 for ac_option in --version -v -V -qversion -version; do 3974 { { ac_try="$ac_compiler $ac_option >&5" 3975 case "(($ac_try" in 3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3977 *) ac_try_echo=$ac_try;; 3978 esac 3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3980 printf "%s\n" "$ac_try_echo"; } >&5 3981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3982 ac_status=$? 3983 if test -s conftest.err; then 3984 sed '10a\ 3985 ... rest of stderr output deleted ... 3986 10q' conftest.err >conftest.er1 3987 cat conftest.er1 >&5 3988 fi 3989 rm -f conftest.er1 conftest.err 3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3991 test $ac_status = 0; } 3992 done 3993 3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3995 /* end confdefs.h. */ 3996 3997 int 3998 main (void) 3999 { 4000 4001 ; 4002 return 0; 4003 } 4004 _ACEOF 4005 ac_clean_files_save=$ac_clean_files 4006 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4007 # Try to create an executable without -o first, disregard a.out. 4008 # It will help us diagnose broken compilers, and finding out an intuition 4009 # of exeext. 4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4011 printf %s "checking whether the C compiler works... " >&6; } 4012 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4013 4014 # The possible output files: 4015 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4016 4017 ac_rmfiles= 4018 for ac_file in $ac_files 4019 do 4020 case $ac_file in 4021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4022 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4023 esac 4024 done 4025 rm -f $ac_rmfiles 4026 4027 if { { ac_try="$ac_link_default" 4028 case "(($ac_try" in 4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4030 *) ac_try_echo=$ac_try;; 4031 esac 4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4033 printf "%s\n" "$ac_try_echo"; } >&5 4034 (eval "$ac_link_default") 2>&5 4035 ac_status=$? 4036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4037 test $ac_status = 0; } 4038 then : 4039 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4040 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4041 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4042 # so that the user can short-circuit this test for compilers unknown to 4043 # Autoconf. 4044 for ac_file in $ac_files '' 4045 do 4046 test -f "$ac_file" || continue 4047 case $ac_file in 4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4049 ;; 4050 [ab].out ) 4051 # We found the default executable, but exeext='' is most 4052 # certainly right. 4053 break;; 4054 *.* ) 4055 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4056 then :; else 4057 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4058 fi 4059 # We set ac_cv_exeext here because the later test for it is not 4060 # safe: cross compilers may not add the suffix if given an '-o' 4061 # argument, so we may need to know it at that point already. 4062 # Even if this section looks crufty: it has the advantage of 4063 # actually working. 4064 break;; 4065 * ) 4066 break;; 4067 esac 4068 done 4069 test "$ac_cv_exeext" = no && ac_cv_exeext= 4070 4071 else case e in #( 4072 e) ac_file='' ;; 4073 esac 4074 fi 4075 if test -z "$ac_file" 4076 then : 4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4078 printf "%s\n" "no" >&6; } 4079 printf "%s\n" "$as_me: failed program was:" >&5 4080 sed 's/^/| /' conftest.$ac_ext >&5 4081 4082 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4083 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4084 as_fn_error 77 "C compiler cannot create executables 4085 See 'config.log' for more details" "$LINENO" 5; } 4086 else case e in #( 4087 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4088 printf "%s\n" "yes" >&6; } ;; 4089 esac 4090 fi 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4092 printf %s "checking for C compiler default output file name... " >&6; } 4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4094 printf "%s\n" "$ac_file" >&6; } 4095 ac_exeext=$ac_cv_exeext 4096 4097 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4098 ac_clean_files=$ac_clean_files_save 4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4100 printf %s "checking for suffix of executables... " >&6; } 4101 if { { ac_try="$ac_link" 4102 case "(($ac_try" in 4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4104 *) ac_try_echo=$ac_try;; 4105 esac 4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4107 printf "%s\n" "$ac_try_echo"; } >&5 4108 (eval "$ac_link") 2>&5 4109 ac_status=$? 4110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4111 test $ac_status = 0; } 4112 then : 4113 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4114 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4115 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4116 # 'rm'. 4117 for ac_file in conftest.exe conftest conftest.*; do 4118 test -f "$ac_file" || continue 4119 case $ac_file in 4120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4122 break;; 4123 * ) break;; 4124 esac 4125 done 4126 else case e in #( 4127 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4128 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4129 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4130 See 'config.log' for more details" "$LINENO" 5; } ;; 4131 esac 4132 fi 4133 rm -f conftest conftest$ac_cv_exeext 4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4135 printf "%s\n" "$ac_cv_exeext" >&6; } 4136 4137 rm -f conftest.$ac_ext 4138 EXEEXT=$ac_cv_exeext 4139 ac_exeext=$EXEEXT 4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4141 /* end confdefs.h. */ 4142 #include <stdio.h> 4143 int 4144 main (void) 4145 { 4146 FILE *f = fopen ("conftest.out", "w"); 4147 if (!f) 4148 return 1; 4149 return ferror (f) || fclose (f) != 0; 4150 4151 ; 4152 return 0; 4153 } 4154 _ACEOF 4155 ac_clean_files="$ac_clean_files conftest.out" 4156 # Check that the compiler produces executables we can run. If not, either 4157 # the compiler is broken, or we cross compile. 4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4159 printf %s "checking whether we are cross compiling... " >&6; } 4160 if test "$cross_compiling" != yes; then 4161 { { ac_try="$ac_link" 4162 case "(($ac_try" in 4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4164 *) ac_try_echo=$ac_try;; 4165 esac 4166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4167 printf "%s\n" "$ac_try_echo"; } >&5 4168 (eval "$ac_link") 2>&5 4169 ac_status=$? 4170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4171 test $ac_status = 0; } 4172 if { ac_try='./conftest$ac_cv_exeext' 4173 { { case "(($ac_try" in 4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4175 *) ac_try_echo=$ac_try;; 4176 esac 4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4178 printf "%s\n" "$ac_try_echo"; } >&5 4179 (eval "$ac_try") 2>&5 4180 ac_status=$? 4181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4182 test $ac_status = 0; }; }; then 4183 cross_compiling=no 4184 else 4185 if test "$cross_compiling" = maybe; then 4186 cross_compiling=yes 4187 else 4188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4189 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4190 as_fn_error 77 "cannot run C compiled programs. 4191 If you meant to cross compile, use '--host'. 4192 See 'config.log' for more details" "$LINENO" 5; } 4193 fi 4194 fi 4195 fi 4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4197 printf "%s\n" "$cross_compiling" >&6; } 4198 4199 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4200 conftest.o conftest.obj conftest.out 4201 ac_clean_files=$ac_clean_files_save 4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4203 printf %s "checking for suffix of object files... " >&6; } 4204 if test ${ac_cv_objext+y} 4205 then : 4206 printf %s "(cached) " >&6 4207 else case e in #( 4208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209 /* end confdefs.h. */ 4210 4211 int 4212 main (void) 4213 { 4214 4215 ; 4216 return 0; 4217 } 4218 _ACEOF 4219 rm -f conftest.o conftest.obj 4220 if { { ac_try="$ac_compile" 4221 case "(($ac_try" in 4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4223 *) ac_try_echo=$ac_try;; 4224 esac 4225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4226 printf "%s\n" "$ac_try_echo"; } >&5 4227 (eval "$ac_compile") 2>&5 4228 ac_status=$? 4229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4230 test $ac_status = 0; } 4231 then : 4232 for ac_file in conftest.o conftest.obj conftest.*; do 4233 test -f "$ac_file" || continue; 4234 case $ac_file in 4235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4236 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4237 break;; 4238 esac 4239 done 4240 else case e in #( 4241 e) printf "%s\n" "$as_me: failed program was:" >&5 4242 sed 's/^/| /' conftest.$ac_ext >&5 4243 4244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4245 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4246 as_fn_error $? "cannot compute suffix of object files: cannot compile 4247 See 'config.log' for more details" "$LINENO" 5; } ;; 4248 esac 4249 fi 4250 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4251 esac 4252 fi 4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4254 printf "%s\n" "$ac_cv_objext" >&6; } 4255 OBJEXT=$ac_cv_objext 4256 ac_objext=$OBJEXT 4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4258 printf %s "checking whether the compiler supports GNU C... " >&6; } 4259 if test ${ac_cv_c_compiler_gnu+y} 4260 then : 4261 printf %s "(cached) " >&6 4262 else case e in #( 4263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264 /* end confdefs.h. */ 4265 4266 int 4267 main (void) 4268 { 4269 #ifndef __GNUC__ 4270 choke me 4271 #endif 4272 4273 ; 4274 return 0; 4275 } 4276 _ACEOF 4277 if ac_fn_c_try_compile "$LINENO" 4278 then : 4279 ac_compiler_gnu=yes 4280 else case e in #( 4281 e) ac_compiler_gnu=no ;; 4282 esac 4283 fi 4284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4285 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4286 ;; 4287 esac 4288 fi 4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4290 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4292 4293 if test $ac_compiler_gnu = yes; then 4294 GCC=yes 4295 else 4296 GCC= 4297 fi 4298 ac_test_CFLAGS=${CFLAGS+y} 4299 ac_save_CFLAGS=$CFLAGS 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4301 printf %s "checking whether $CC accepts -g... " >&6; } 4302 if test ${ac_cv_prog_cc_g+y} 4303 then : 4304 printf %s "(cached) " >&6 4305 else case e in #( 4306 e) ac_save_c_werror_flag=$ac_c_werror_flag 4307 ac_c_werror_flag=yes 4308 ac_cv_prog_cc_g=no 4309 CFLAGS="-g" 4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4311 /* end confdefs.h. */ 4312 4313 int 4314 main (void) 4315 { 4316 4317 ; 4318 return 0; 4319 } 4320 _ACEOF 4321 if ac_fn_c_try_compile "$LINENO" 4322 then : 4323 ac_cv_prog_cc_g=yes 4324 else case e in #( 4325 e) CFLAGS="" 4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4327 /* end confdefs.h. */ 4328 4329 int 4330 main (void) 4331 { 4332 4333 ; 4334 return 0; 4335 } 4336 _ACEOF 4337 if ac_fn_c_try_compile "$LINENO" 4338 then : 4339 4340 else case e in #( 4341 e) ac_c_werror_flag=$ac_save_c_werror_flag 4342 CFLAGS="-g" 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344 /* end confdefs.h. */ 4345 4346 int 4347 main (void) 4348 { 4349 4350 ; 4351 return 0; 4352 } 4353 _ACEOF 4354 if ac_fn_c_try_compile "$LINENO" 4355 then : 4356 ac_cv_prog_cc_g=yes 4357 fi 4358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4359 esac 4360 fi 4361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4362 esac 4363 fi 4364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4365 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4366 esac 4367 fi 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4369 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4370 if test $ac_test_CFLAGS; then 4371 CFLAGS=$ac_save_CFLAGS 4372 elif test $ac_cv_prog_cc_g = yes; then 4373 if test "$GCC" = yes; then 4374 CFLAGS="-g -O2" 4375 else 4376 CFLAGS="-g" 4377 fi 4378 else 4379 if test "$GCC" = yes; then 4380 CFLAGS="-O2" 4381 else 4382 CFLAGS= 4383 fi 4384 fi 4385 ac_prog_cc_stdc=no 4386 if test x$ac_prog_cc_stdc = xno 4387 then : 4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4389 printf %s "checking for $CC option to enable C11 features... " >&6; } 4390 if test ${ac_cv_prog_cc_c11+y} 4391 then : 4392 printf %s "(cached) " >&6 4393 else case e in #( 4394 e) ac_cv_prog_cc_c11=no 4395 ac_save_CC=$CC 4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4397 /* end confdefs.h. */ 4398 $ac_c_conftest_c11_program 4399 _ACEOF 4400 for ac_arg in '' -std=gnu11 4401 do 4402 CC="$ac_save_CC $ac_arg" 4403 if ac_fn_c_try_compile "$LINENO" 4404 then : 4405 ac_cv_prog_cc_c11=$ac_arg 4406 fi 4407 rm -f core conftest.err conftest.$ac_objext conftest.beam 4408 test "x$ac_cv_prog_cc_c11" != "xno" && break 4409 done 4410 rm -f conftest.$ac_ext 4411 CC=$ac_save_CC ;; 4412 esac 4413 fi 4414 4415 if test "x$ac_cv_prog_cc_c11" = xno 4416 then : 4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4418 printf "%s\n" "unsupported" >&6; } 4419 else case e in #( 4420 e) if test "x$ac_cv_prog_cc_c11" = x 4421 then : 4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4423 printf "%s\n" "none needed" >&6; } 4424 else case e in #( 4425 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4426 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4427 CC="$CC $ac_cv_prog_cc_c11" ;; 4428 esac 4429 fi 4430 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4431 ac_prog_cc_stdc=c11 ;; 4432 esac 4433 fi 4434 fi 4435 if test x$ac_prog_cc_stdc = xno 4436 then : 4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4438 printf %s "checking for $CC option to enable C99 features... " >&6; } 4439 if test ${ac_cv_prog_cc_c99+y} 4440 then : 4441 printf %s "(cached) " >&6 4442 else case e in #( 4443 e) ac_cv_prog_cc_c99=no 4444 ac_save_CC=$CC 4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4446 /* end confdefs.h. */ 4447 $ac_c_conftest_c99_program 4448 _ACEOF 4449 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4450 do 4451 CC="$ac_save_CC $ac_arg" 4452 if ac_fn_c_try_compile "$LINENO" 4453 then : 4454 ac_cv_prog_cc_c99=$ac_arg 4455 fi 4456 rm -f core conftest.err conftest.$ac_objext conftest.beam 4457 test "x$ac_cv_prog_cc_c99" != "xno" && break 4458 done 4459 rm -f conftest.$ac_ext 4460 CC=$ac_save_CC ;; 4461 esac 4462 fi 4463 4464 if test "x$ac_cv_prog_cc_c99" = xno 4465 then : 4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4467 printf "%s\n" "unsupported" >&6; } 4468 else case e in #( 4469 e) if test "x$ac_cv_prog_cc_c99" = x 4470 then : 4471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4472 printf "%s\n" "none needed" >&6; } 4473 else case e in #( 4474 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4475 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4476 CC="$CC $ac_cv_prog_cc_c99" ;; 4477 esac 4478 fi 4479 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4480 ac_prog_cc_stdc=c99 ;; 4481 esac 4482 fi 4483 fi 4484 if test x$ac_prog_cc_stdc = xno 4485 then : 4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4487 printf %s "checking for $CC option to enable C89 features... " >&6; } 4488 if test ${ac_cv_prog_cc_c89+y} 4489 then : 4490 printf %s "(cached) " >&6 4491 else case e in #( 4492 e) ac_cv_prog_cc_c89=no 4493 ac_save_CC=$CC 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4495 /* end confdefs.h. */ 4496 $ac_c_conftest_c89_program 4497 _ACEOF 4498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4499 do 4500 CC="$ac_save_CC $ac_arg" 4501 if ac_fn_c_try_compile "$LINENO" 4502 then : 4503 ac_cv_prog_cc_c89=$ac_arg 4504 fi 4505 rm -f core conftest.err conftest.$ac_objext conftest.beam 4506 test "x$ac_cv_prog_cc_c89" != "xno" && break 4507 done 4508 rm -f conftest.$ac_ext 4509 CC=$ac_save_CC ;; 4510 esac 4511 fi 4512 4513 if test "x$ac_cv_prog_cc_c89" = xno 4514 then : 4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4516 printf "%s\n" "unsupported" >&6; } 4517 else case e in #( 4518 e) if test "x$ac_cv_prog_cc_c89" = x 4519 then : 4520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4521 printf "%s\n" "none needed" >&6; } 4522 else case e in #( 4523 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4524 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4525 CC="$CC $ac_cv_prog_cc_c89" ;; 4526 esac 4527 fi 4528 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4529 ac_prog_cc_stdc=c89 ;; 4530 esac 4531 fi 4532 fi 4533 4534 ac_ext=c 4535 ac_cpp='$CPP $CPPFLAGS' 4536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4538 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4539 4540 4541 ac_ext=c 4542 ac_cpp='$CPP $CPPFLAGS' 4543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4547 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4548 if test ${am_cv_prog_cc_c_o+y} 4549 then : 4550 printf %s "(cached) " >&6 4551 else case e in #( 4552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4553 /* end confdefs.h. */ 4554 4555 int 4556 main (void) 4557 { 4558 4559 ; 4560 return 0; 4561 } 4562 _ACEOF 4563 # Make sure it works both with $CC and with simple cc. 4564 # Following AC_PROG_CC_C_O, we do the test twice because some 4565 # compilers refuse to overwrite an existing .o file with -o, 4566 # though they will create one. 4567 am_cv_prog_cc_c_o=yes 4568 for am_i in 1 2; do 4569 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4570 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4571 ac_status=$? 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); } \ 4574 && test -f conftest2.$ac_objext; then 4575 : OK 4576 else 4577 am_cv_prog_cc_c_o=no 4578 break 4579 fi 4580 done 4581 rm -f core conftest* 4582 unset am_i ;; 4583 esac 4584 fi 4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4586 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4587 if test "$am_cv_prog_cc_c_o" != yes; then 4588 # Losing compiler, so override with the script. 4589 # FIXME: It is wrong to rewrite CC. 4590 # But if we don't then we get into trouble of one sort or another. 4591 # A longer-term fix would be to have automake use am__CC in this case, 4592 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4593 CC="$am_aux_dir/compile $CC" 4594 fi 4595 ac_ext=c 4596 ac_cpp='$CPP $CPPFLAGS' 4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4600 4601 4602 depcc="$CC" am_compiler_list= 4603 4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4605 printf %s "checking dependency style of $depcc... " >&6; } 4606 if test ${am_cv_CC_dependencies_compiler_type+y} 4607 then : 4608 printf %s "(cached) " >&6 4609 else case e in #( 4610 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4611 # We make a subdir and do the tests there. Otherwise we can end up 4612 # making bogus files that we don't know about and never remove. For 4613 # instance it was reported that on HP-UX the gcc test will end up 4614 # making a dummy file named 'D' -- because '-MD' means "put the output 4615 # in D". 4616 rm -rf conftest.dir 4617 mkdir conftest.dir 4618 # Copy depcomp to subdir because otherwise we won't find it if we're 4619 # using a relative directory. 4620 cp "$am_depcomp" conftest.dir 4621 cd conftest.dir 4622 # We will build objects and dependencies in a subdirectory because 4623 # it helps to detect inapplicable dependency modes. For instance 4624 # both Tru64's cc and ICC support -MD to output dependencies as a 4625 # side effect of compilation, but ICC will put the dependencies in 4626 # the current directory while Tru64 will put them in the object 4627 # directory. 4628 mkdir sub 4629 4630 am_cv_CC_dependencies_compiler_type=none 4631 if test "$am_compiler_list" = ""; then 4632 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4633 fi 4634 am__universal=false 4635 case " $depcc " in #( 4636 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4637 esac 4638 4639 for depmode in $am_compiler_list; do 4640 # Setup a source with many dependencies, because some compilers 4641 # like to wrap large dependency lists on column 80 (with \), and 4642 # we should not choose a depcomp mode which is confused by this. 4643 # 4644 # We need to recreate these files for each test, as the compiler may 4645 # overwrite some of them when testing with obscure command lines. 4646 # This happens at least with the AIX C compiler. 4647 : > sub/conftest.c 4648 for i in 1 2 3 4 5 6; do 4649 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4650 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4651 # Solaris 10 /bin/sh. 4652 echo '/* dummy */' > sub/conftst$i.h 4653 done 4654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4655 4656 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4657 # mode. It turns out that the SunPro C++ compiler does not properly 4658 # handle '-M -o', and we need to detect this. Also, some Intel 4659 # versions had trouble with output in subdirs. 4660 am__obj=sub/conftest.${OBJEXT-o} 4661 am__minus_obj="-o $am__obj" 4662 case $depmode in 4663 gcc) 4664 # This depmode causes a compiler race in universal mode. 4665 test "$am__universal" = false || continue 4666 ;; 4667 nosideeffect) 4668 # After this tag, mechanisms are not by side-effect, so they'll 4669 # only be used when explicitly requested. 4670 if test "x$enable_dependency_tracking" = xyes; then 4671 continue 4672 else 4673 break 4674 fi 4675 ;; 4676 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4677 # This compiler won't grok '-c -o', but also, the minuso test has 4678 # not run yet. These depmodes are late enough in the game, and 4679 # so weak that their functioning should not be impacted. 4680 am__obj=conftest.${OBJEXT-o} 4681 am__minus_obj= 4682 ;; 4683 none) break ;; 4684 esac 4685 if depmode=$depmode \ 4686 source=sub/conftest.c object=$am__obj \ 4687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4688 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4689 >/dev/null 2>conftest.err && 4690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4692 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4694 # icc doesn't choke on unknown options, it will just issue warnings 4695 # or remarks (even with -Werror). So we grep stderr for any message 4696 # that says an option was ignored or not supported. 4697 # When given -MP, icc 7.0 and 7.1 complain thus: 4698 # icc: Command line warning: ignoring option '-M'; no argument required 4699 # The diagnosis changed in icc 8.0: 4700 # icc: Command line remark: option '-MP' not supported 4701 if (grep 'ignoring option' conftest.err || 4702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4703 am_cv_CC_dependencies_compiler_type=$depmode 4704 break 4705 fi 4706 fi 4707 done 4708 4709 cd .. 4710 rm -rf conftest.dir 4711 else 4712 am_cv_CC_dependencies_compiler_type=none 4713 fi 4714 ;; 4715 esac 4716 fi 4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4718 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4719 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4720 4721 if 4722 test "x$enable_dependency_tracking" != xno \ 4723 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4724 am__fastdepCC_TRUE= 4725 am__fastdepCC_FALSE='#' 4726 else 4727 am__fastdepCC_TRUE='#' 4728 am__fastdepCC_FALSE= 4729 fi 4730 4731 4732 4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4734 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4735 if test ${ac_cv_c_undeclared_builtin_options+y} 4736 then : 4737 printf %s "(cached) " >&6 4738 else case e in #( 4739 e) ac_save_CFLAGS=$CFLAGS 4740 ac_cv_c_undeclared_builtin_options='cannot detect' 4741 for ac_arg in '' -fno-builtin; do 4742 CFLAGS="$ac_save_CFLAGS $ac_arg" 4743 # This test program should *not* compile successfully. 4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4745 /* end confdefs.h. */ 4746 4747 int 4748 main (void) 4749 { 4750 (void) strchr; 4751 ; 4752 return 0; 4753 } 4754 _ACEOF 4755 if ac_fn_c_try_compile "$LINENO" 4756 then : 4757 4758 else case e in #( 4759 e) # This test program should compile successfully. 4760 # No library function is consistently available on 4761 # freestanding implementations, so test against a dummy 4762 # declaration. Include always-available headers on the 4763 # off chance that they somehow elicit warnings. 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4765 /* end confdefs.h. */ 4766 #include <float.h> 4767 #include <limits.h> 4768 #include <stdarg.h> 4769 #include <stddef.h> 4770 extern void ac_decl (int, char *); 4771 4772 int 4773 main (void) 4774 { 4775 (void) ac_decl (0, (char *) 0); 4776 (void) ac_decl; 4777 4778 ; 4779 return 0; 4780 } 4781 _ACEOF 4782 if ac_fn_c_try_compile "$LINENO" 4783 then : 4784 if test x"$ac_arg" = x 4785 then : 4786 ac_cv_c_undeclared_builtin_options='none needed' 4787 else case e in #( 4788 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4789 esac 4790 fi 4791 break 4792 fi 4793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4794 esac 4795 fi 4796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4797 done 4798 CFLAGS=$ac_save_CFLAGS 4799 ;; 4800 esac 4801 fi 4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4803 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4804 case $ac_cv_c_undeclared_builtin_options in #( 4805 'cannot detect') : 4806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4807 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4808 as_fn_error $? "cannot make $CC report undeclared builtins 4809 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4810 'none needed') : 4811 ac_c_undeclared_builtin_options='' ;; #( 4812 *) : 4813 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4814 esac 4815 4816 ac_header= ac_cache= 4817 for ac_item in $ac_header_c_list 4818 do 4819 if test $ac_cache; then 4820 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4821 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4822 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4823 fi 4824 ac_header= ac_cache= 4825 elif test $ac_header; then 4826 ac_cache=$ac_item 4827 else 4828 ac_header=$ac_item 4829 fi 4830 done 4831 4832 4833 4834 4835 4836 4837 4838 4839 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4840 then : 4841 4842 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4843 4844 fi 4845 4846 4847 4848 4849 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4850 if test "x$ac_cv_have_decl___clang__" = xyes 4851 then : 4852 CLANGCC="yes" 4853 else case e in #( 4854 e) CLANGCC="no" ;; 4855 esac 4856 fi 4857 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4858 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4859 then : 4860 INTELCC="yes" 4861 else case e in #( 4862 e) INTELCC="no" ;; 4863 esac 4864 fi 4865 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4866 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4867 then : 4868 SUNCC="yes" 4869 else case e in #( 4870 e) SUNCC="no" ;; 4871 esac 4872 fi 4873 4874 4875 4876 4877 4878 4879 4880 4881 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4882 if test -n "$ac_tool_prefix"; then 4883 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4884 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4886 printf %s "checking for $ac_word... " >&6; } 4887 if test ${ac_cv_path_PKG_CONFIG+y} 4888 then : 4889 printf %s "(cached) " >&6 4890 else case e in #( 4891 e) case $PKG_CONFIG in 4892 [\\/]* | ?:[\\/]*) 4893 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4894 ;; 4895 *) 4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4897 for as_dir in $PATH 4898 do 4899 IFS=$as_save_IFS 4900 case $as_dir in #((( 4901 '') as_dir=./ ;; 4902 */) ;; 4903 *) as_dir=$as_dir/ ;; 4904 esac 4905 for ac_exec_ext in '' $ac_executable_extensions; do 4906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4907 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4909 break 2 4910 fi 4911 done 4912 done 4913 IFS=$as_save_IFS 4914 4915 ;; 4916 esac ;; 4917 esac 4918 fi 4919 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4920 if test -n "$PKG_CONFIG"; then 4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4922 printf "%s\n" "$PKG_CONFIG" >&6; } 4923 else 4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4925 printf "%s\n" "no" >&6; } 4926 fi 4927 4928 4929 fi 4930 if test -z "$ac_cv_path_PKG_CONFIG"; then 4931 ac_pt_PKG_CONFIG=$PKG_CONFIG 4932 # Extract the first word of "pkg-config", so it can be a program name with args. 4933 set dummy pkg-config; ac_word=$2 4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4935 printf %s "checking for $ac_word... " >&6; } 4936 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4937 then : 4938 printf %s "(cached) " >&6 4939 else case e in #( 4940 e) case $ac_pt_PKG_CONFIG in 4941 [\\/]* | ?:[\\/]*) 4942 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4943 ;; 4944 *) 4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4946 for as_dir in $PATH 4947 do 4948 IFS=$as_save_IFS 4949 case $as_dir in #((( 4950 '') as_dir=./ ;; 4951 */) ;; 4952 *) as_dir=$as_dir/ ;; 4953 esac 4954 for ac_exec_ext in '' $ac_executable_extensions; do 4955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4956 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4958 break 2 4959 fi 4960 done 4961 done 4962 IFS=$as_save_IFS 4963 4964 ;; 4965 esac ;; 4966 esac 4967 fi 4968 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4969 if test -n "$ac_pt_PKG_CONFIG"; then 4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4971 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4972 else 4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4974 printf "%s\n" "no" >&6; } 4975 fi 4976 4977 if test "x$ac_pt_PKG_CONFIG" = x; then 4978 PKG_CONFIG="" 4979 else 4980 case $cross_compiling:$ac_tool_warned in 4981 yes:) 4982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4983 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4984 ac_tool_warned=yes ;; 4985 esac 4986 PKG_CONFIG=$ac_pt_PKG_CONFIG 4987 fi 4988 else 4989 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4990 fi 4991 4992 fi 4993 if test -n "$PKG_CONFIG"; then 4994 _pkg_min_version=0.9.0 4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4996 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4997 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4999 printf "%s\n" "yes" >&6; } 5000 else 5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5002 printf "%s\n" "no" >&6; } 5003 PKG_CONFIG="" 5004 fi 5005 fi 5006 5007 5008 # Make sure we can run config.sub. 5009 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5010 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5011 5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5013 printf %s "checking build system type... " >&6; } 5014 if test ${ac_cv_build+y} 5015 then : 5016 printf %s "(cached) " >&6 5017 else case e in #( 5018 e) ac_build_alias=$build_alias 5019 test "x$ac_build_alias" = x && 5020 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5021 test "x$ac_build_alias" = x && 5022 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5023 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5024 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5025 ;; 5026 esac 5027 fi 5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5029 printf "%s\n" "$ac_cv_build" >&6; } 5030 case $ac_cv_build in 5031 *-*-*) ;; 5032 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5033 esac 5034 build=$ac_cv_build 5035 ac_save_IFS=$IFS; IFS='-' 5036 set x $ac_cv_build 5037 shift 5038 build_cpu=$1 5039 build_vendor=$2 5040 shift; shift 5041 # Remember, the first character of IFS is used to create $*, 5042 # except with old shells: 5043 build_os=$* 5044 IFS=$ac_save_IFS 5045 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5046 5047 5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5049 printf %s "checking host system type... " >&6; } 5050 if test ${ac_cv_host+y} 5051 then : 5052 printf %s "(cached) " >&6 5053 else case e in #( 5054 e) if test "x$host_alias" = x; then 5055 ac_cv_host=$ac_cv_build 5056 else 5057 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5058 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5059 fi 5060 ;; 5061 esac 5062 fi 5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5064 printf "%s\n" "$ac_cv_host" >&6; } 5065 case $ac_cv_host in 5066 *-*-*) ;; 5067 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5068 esac 5069 host=$ac_cv_host 5070 ac_save_IFS=$IFS; IFS='-' 5071 set x $ac_cv_host 5072 shift 5073 host_cpu=$1 5074 host_vendor=$2 5075 shift; shift 5076 # Remember, the first character of IFS is used to create $*, 5077 # except with old shells: 5078 host_os=$* 5079 IFS=$ac_save_IFS 5080 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5081 5082 5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5084 printf %s "checking for a sed that does not truncate output... " >&6; } 5085 if test ${ac_cv_path_SED+y} 5086 then : 5087 printf %s "(cached) " >&6 5088 else case e in #( 5089 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5090 for ac_i in 1 2 3 4 5 6 7; do 5091 ac_script="$ac_script$as_nl$ac_script" 5092 done 5093 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5094 { ac_script=; unset ac_script;} 5095 if test -z "$SED"; then 5096 ac_path_SED_found=false 5097 # Loop through the user's path and test for each of PROGNAME-LIST 5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5099 for as_dir in $PATH 5100 do 5101 IFS=$as_save_IFS 5102 case $as_dir in #((( 5103 '') as_dir=./ ;; 5104 */) ;; 5105 *) as_dir=$as_dir/ ;; 5106 esac 5107 for ac_prog in sed gsed 5108 do 5109 for ac_exec_ext in '' $ac_executable_extensions; do 5110 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5111 as_fn_executable_p "$ac_path_SED" || continue 5112 # Check for GNU ac_path_SED and select it if it is found. 5113 # Check for GNU $ac_path_SED 5114 case `"$ac_path_SED" --version 2>&1` in #( 5115 *GNU*) 5116 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5117 #( 5118 *) 5119 ac_count=0 5120 printf %s 0123456789 >"conftest.in" 5121 while : 5122 do 5123 cat "conftest.in" "conftest.in" >"conftest.tmp" 5124 mv "conftest.tmp" "conftest.in" 5125 cp "conftest.in" "conftest.nl" 5126 printf "%s\n" '' >> "conftest.nl" 5127 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5129 as_fn_arith $ac_count + 1 && ac_count=$as_val 5130 if test $ac_count -gt ${ac_path_SED_max-0}; then 5131 # Best one so far, save it but keep looking for a better one 5132 ac_cv_path_SED="$ac_path_SED" 5133 ac_path_SED_max=$ac_count 5134 fi 5135 # 10*(2^10) chars as input seems more than enough 5136 test $ac_count -gt 10 && break 5137 done 5138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5139 esac 5140 5141 $ac_path_SED_found && break 3 5142 done 5143 done 5144 done 5145 IFS=$as_save_IFS 5146 if test -z "$ac_cv_path_SED"; then 5147 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5148 fi 5149 else 5150 ac_cv_path_SED=$SED 5151 fi 5152 ;; 5153 esac 5154 fi 5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5156 printf "%s\n" "$ac_cv_path_SED" >&6; } 5157 SED="$ac_cv_path_SED" 5158 rm -f conftest.sed 5159 5160 5161 5162 5163 5164 5165 # Check whether --enable-selective-werror was given. 5166 if test ${enable_selective_werror+y} 5167 then : 5168 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5169 else case e in #( 5170 e) SELECTIVE_WERROR=yes ;; 5171 esac 5172 fi 5173 5174 5175 5176 5177 5178 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5179 if test "x$SUNCC" = "xyes"; then 5180 BASE_CFLAGS="-v" 5181 else 5182 BASE_CFLAGS="" 5183 fi 5184 5185 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 xorg_testset_save_CFLAGS="$CFLAGS" 5200 5201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5204 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5205 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5206 then : 5207 printf %s "(cached) " >&6 5208 else case e in #( 5209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5210 /* end confdefs.h. */ 5211 int i; 5212 _ACEOF 5213 if ac_fn_c_try_compile "$LINENO" 5214 then : 5215 xorg_cv_cc_flag_unknown_warning_option=yes 5216 else case e in #( 5217 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5218 esac 5219 fi 5220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5221 esac 5222 fi 5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5224 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5226 CFLAGS="$xorg_testset_save_CFLAGS" 5227 fi 5228 5229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5232 fi 5233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5235 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5236 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5237 then : 5238 printf %s "(cached) " >&6 5239 else case e in #( 5240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5241 /* end confdefs.h. */ 5242 int i; 5243 _ACEOF 5244 if ac_fn_c_try_compile "$LINENO" 5245 then : 5246 xorg_cv_cc_flag_unused_command_line_argument=yes 5247 else case e in #( 5248 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5249 esac 5250 fi 5251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5252 esac 5253 fi 5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5255 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5257 CFLAGS="$xorg_testset_save_CFLAGS" 5258 fi 5259 5260 found="no" 5261 5262 if test $found = "no" ; then 5263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5265 fi 5266 5267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5269 fi 5270 5271 CFLAGS="$CFLAGS -Wall" 5272 5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5274 printf %s "checking if $CC supports -Wall... " >&6; } 5275 cacheid=xorg_cv_cc_flag__Wall 5276 if eval test \${$cacheid+y} 5277 then : 5278 printf %s "(cached) " >&6 5279 else case e in #( 5280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5281 /* end confdefs.h. */ 5282 int i; 5283 int 5284 main (void) 5285 { 5286 5287 ; 5288 return 0; 5289 } 5290 _ACEOF 5291 if ac_fn_c_try_link "$LINENO" 5292 then : 5293 eval $cacheid=yes 5294 else case e in #( 5295 e) eval $cacheid=no ;; 5296 esac 5297 fi 5298 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5299 conftest$ac_exeext conftest.$ac_ext ;; 5300 esac 5301 fi 5302 5303 5304 CFLAGS="$xorg_testset_save_CFLAGS" 5305 5306 eval supported=\$$cacheid 5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5308 printf "%s\n" "$supported" >&6; } 5309 if test "$supported" = "yes" ; then 5310 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5311 found="yes" 5312 fi 5313 fi 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 xorg_testset_save_CFLAGS="$CFLAGS" 5330 5331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5334 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5335 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5336 then : 5337 printf %s "(cached) " >&6 5338 else case e in #( 5339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5340 /* end confdefs.h. */ 5341 int i; 5342 _ACEOF 5343 if ac_fn_c_try_compile "$LINENO" 5344 then : 5345 xorg_cv_cc_flag_unknown_warning_option=yes 5346 else case e in #( 5347 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5348 esac 5349 fi 5350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5351 esac 5352 fi 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5354 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5356 CFLAGS="$xorg_testset_save_CFLAGS" 5357 fi 5358 5359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5362 fi 5363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5365 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5366 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5367 then : 5368 printf %s "(cached) " >&6 5369 else case e in #( 5370 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371 /* end confdefs.h. */ 5372 int i; 5373 _ACEOF 5374 if ac_fn_c_try_compile "$LINENO" 5375 then : 5376 xorg_cv_cc_flag_unused_command_line_argument=yes 5377 else case e in #( 5378 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5379 esac 5380 fi 5381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5382 esac 5383 fi 5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5385 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5387 CFLAGS="$xorg_testset_save_CFLAGS" 5388 fi 5389 5390 found="no" 5391 5392 if test $found = "no" ; then 5393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5395 fi 5396 5397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5399 fi 5400 5401 CFLAGS="$CFLAGS -Wpointer-arith" 5402 5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5404 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5405 cacheid=xorg_cv_cc_flag__Wpointer_arith 5406 if eval test \${$cacheid+y} 5407 then : 5408 printf %s "(cached) " >&6 5409 else case e in #( 5410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5411 /* end confdefs.h. */ 5412 int i; 5413 int 5414 main (void) 5415 { 5416 5417 ; 5418 return 0; 5419 } 5420 _ACEOF 5421 if ac_fn_c_try_link "$LINENO" 5422 then : 5423 eval $cacheid=yes 5424 else case e in #( 5425 e) eval $cacheid=no ;; 5426 esac 5427 fi 5428 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5429 conftest$ac_exeext conftest.$ac_ext ;; 5430 esac 5431 fi 5432 5433 5434 CFLAGS="$xorg_testset_save_CFLAGS" 5435 5436 eval supported=\$$cacheid 5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5438 printf "%s\n" "$supported" >&6; } 5439 if test "$supported" = "yes" ; then 5440 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5441 found="yes" 5442 fi 5443 fi 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 xorg_testset_save_CFLAGS="$CFLAGS" 5460 5461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5465 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5466 then : 5467 printf %s "(cached) " >&6 5468 else case e in #( 5469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5470 /* end confdefs.h. */ 5471 int i; 5472 _ACEOF 5473 if ac_fn_c_try_compile "$LINENO" 5474 then : 5475 xorg_cv_cc_flag_unknown_warning_option=yes 5476 else case e in #( 5477 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5478 esac 5479 fi 5480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5481 esac 5482 fi 5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5484 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5486 CFLAGS="$xorg_testset_save_CFLAGS" 5487 fi 5488 5489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5492 fi 5493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5495 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5496 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5497 then : 5498 printf %s "(cached) " >&6 5499 else case e in #( 5500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5501 /* end confdefs.h. */ 5502 int i; 5503 _ACEOF 5504 if ac_fn_c_try_compile "$LINENO" 5505 then : 5506 xorg_cv_cc_flag_unused_command_line_argument=yes 5507 else case e in #( 5508 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5509 esac 5510 fi 5511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5512 esac 5513 fi 5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5515 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5517 CFLAGS="$xorg_testset_save_CFLAGS" 5518 fi 5519 5520 found="no" 5521 5522 if test $found = "no" ; then 5523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5525 fi 5526 5527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5529 fi 5530 5531 CFLAGS="$CFLAGS -Wmissing-declarations" 5532 5533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5534 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5535 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5536 if eval test \${$cacheid+y} 5537 then : 5538 printf %s "(cached) " >&6 5539 else case e in #( 5540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5541 /* end confdefs.h. */ 5542 int i; 5543 int 5544 main (void) 5545 { 5546 5547 ; 5548 return 0; 5549 } 5550 _ACEOF 5551 if ac_fn_c_try_link "$LINENO" 5552 then : 5553 eval $cacheid=yes 5554 else case e in #( 5555 e) eval $cacheid=no ;; 5556 esac 5557 fi 5558 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5559 conftest$ac_exeext conftest.$ac_ext ;; 5560 esac 5561 fi 5562 5563 5564 CFLAGS="$xorg_testset_save_CFLAGS" 5565 5566 eval supported=\$$cacheid 5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5568 printf "%s\n" "$supported" >&6; } 5569 if test "$supported" = "yes" ; then 5570 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5571 found="yes" 5572 fi 5573 fi 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 xorg_testset_save_CFLAGS="$CFLAGS" 5590 5591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5594 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5595 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5596 then : 5597 printf %s "(cached) " >&6 5598 else case e in #( 5599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5600 /* end confdefs.h. */ 5601 int i; 5602 _ACEOF 5603 if ac_fn_c_try_compile "$LINENO" 5604 then : 5605 xorg_cv_cc_flag_unknown_warning_option=yes 5606 else case e in #( 5607 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5608 esac 5609 fi 5610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5611 esac 5612 fi 5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5614 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5616 CFLAGS="$xorg_testset_save_CFLAGS" 5617 fi 5618 5619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5622 fi 5623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5625 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5626 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5627 then : 5628 printf %s "(cached) " >&6 5629 else case e in #( 5630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5631 /* end confdefs.h. */ 5632 int i; 5633 _ACEOF 5634 if ac_fn_c_try_compile "$LINENO" 5635 then : 5636 xorg_cv_cc_flag_unused_command_line_argument=yes 5637 else case e in #( 5638 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5639 esac 5640 fi 5641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5642 esac 5643 fi 5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5645 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5647 CFLAGS="$xorg_testset_save_CFLAGS" 5648 fi 5649 5650 found="no" 5651 5652 if test $found = "no" ; then 5653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5655 fi 5656 5657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5659 fi 5660 5661 CFLAGS="$CFLAGS -Wformat=2" 5662 5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5664 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5665 cacheid=xorg_cv_cc_flag__Wformat_2 5666 if eval test \${$cacheid+y} 5667 then : 5668 printf %s "(cached) " >&6 5669 else case e in #( 5670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5671 /* end confdefs.h. */ 5672 int i; 5673 int 5674 main (void) 5675 { 5676 5677 ; 5678 return 0; 5679 } 5680 _ACEOF 5681 if ac_fn_c_try_link "$LINENO" 5682 then : 5683 eval $cacheid=yes 5684 else case e in #( 5685 e) eval $cacheid=no ;; 5686 esac 5687 fi 5688 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5689 conftest$ac_exeext conftest.$ac_ext ;; 5690 esac 5691 fi 5692 5693 5694 CFLAGS="$xorg_testset_save_CFLAGS" 5695 5696 eval supported=\$$cacheid 5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5698 printf "%s\n" "$supported" >&6; } 5699 if test "$supported" = "yes" ; then 5700 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5701 found="yes" 5702 fi 5703 fi 5704 5705 if test $found = "no" ; then 5706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5708 fi 5709 5710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5712 fi 5713 5714 CFLAGS="$CFLAGS -Wformat" 5715 5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5717 printf %s "checking if $CC supports -Wformat... " >&6; } 5718 cacheid=xorg_cv_cc_flag__Wformat 5719 if eval test \${$cacheid+y} 5720 then : 5721 printf %s "(cached) " >&6 5722 else case e in #( 5723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5724 /* end confdefs.h. */ 5725 int i; 5726 int 5727 main (void) 5728 { 5729 5730 ; 5731 return 0; 5732 } 5733 _ACEOF 5734 if ac_fn_c_try_link "$LINENO" 5735 then : 5736 eval $cacheid=yes 5737 else case e in #( 5738 e) eval $cacheid=no ;; 5739 esac 5740 fi 5741 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5742 conftest$ac_exeext conftest.$ac_ext ;; 5743 esac 5744 fi 5745 5746 5747 CFLAGS="$xorg_testset_save_CFLAGS" 5748 5749 eval supported=\$$cacheid 5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5751 printf "%s\n" "$supported" >&6; } 5752 if test "$supported" = "yes" ; then 5753 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5754 found="yes" 5755 fi 5756 fi 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 xorg_testset_save_CFLAGS="$CFLAGS" 5775 5776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5779 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5780 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5781 then : 5782 printf %s "(cached) " >&6 5783 else case e in #( 5784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5785 /* end confdefs.h. */ 5786 int i; 5787 _ACEOF 5788 if ac_fn_c_try_compile "$LINENO" 5789 then : 5790 xorg_cv_cc_flag_unknown_warning_option=yes 5791 else case e in #( 5792 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5793 esac 5794 fi 5795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5796 esac 5797 fi 5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5799 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5801 CFLAGS="$xorg_testset_save_CFLAGS" 5802 fi 5803 5804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5807 fi 5808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5810 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5811 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5812 then : 5813 printf %s "(cached) " >&6 5814 else case e in #( 5815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5816 /* end confdefs.h. */ 5817 int i; 5818 _ACEOF 5819 if ac_fn_c_try_compile "$LINENO" 5820 then : 5821 xorg_cv_cc_flag_unused_command_line_argument=yes 5822 else case e in #( 5823 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5824 esac 5825 fi 5826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5827 esac 5828 fi 5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5830 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5832 CFLAGS="$xorg_testset_save_CFLAGS" 5833 fi 5834 5835 found="no" 5836 5837 if test $found = "no" ; then 5838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5840 fi 5841 5842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5844 fi 5845 5846 CFLAGS="$CFLAGS -Wstrict-prototypes" 5847 5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5849 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5850 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5851 if eval test \${$cacheid+y} 5852 then : 5853 printf %s "(cached) " >&6 5854 else case e in #( 5855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5856 /* end confdefs.h. */ 5857 int i; 5858 int 5859 main (void) 5860 { 5861 5862 ; 5863 return 0; 5864 } 5865 _ACEOF 5866 if ac_fn_c_try_link "$LINENO" 5867 then : 5868 eval $cacheid=yes 5869 else case e in #( 5870 e) eval $cacheid=no ;; 5871 esac 5872 fi 5873 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5874 conftest$ac_exeext conftest.$ac_ext ;; 5875 esac 5876 fi 5877 5878 5879 CFLAGS="$xorg_testset_save_CFLAGS" 5880 5881 eval supported=\$$cacheid 5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5883 printf "%s\n" "$supported" >&6; } 5884 if test "$supported" = "yes" ; then 5885 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5886 found="yes" 5887 fi 5888 fi 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 xorg_testset_save_CFLAGS="$CFLAGS" 5905 5906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5909 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5910 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5911 then : 5912 printf %s "(cached) " >&6 5913 else case e in #( 5914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5915 /* end confdefs.h. */ 5916 int i; 5917 _ACEOF 5918 if ac_fn_c_try_compile "$LINENO" 5919 then : 5920 xorg_cv_cc_flag_unknown_warning_option=yes 5921 else case e in #( 5922 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5923 esac 5924 fi 5925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5926 esac 5927 fi 5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5929 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5931 CFLAGS="$xorg_testset_save_CFLAGS" 5932 fi 5933 5934 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5937 fi 5938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5940 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5941 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5942 then : 5943 printf %s "(cached) " >&6 5944 else case e in #( 5945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5946 /* end confdefs.h. */ 5947 int i; 5948 _ACEOF 5949 if ac_fn_c_try_compile "$LINENO" 5950 then : 5951 xorg_cv_cc_flag_unused_command_line_argument=yes 5952 else case e in #( 5953 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5954 esac 5955 fi 5956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5957 esac 5958 fi 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5960 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5962 CFLAGS="$xorg_testset_save_CFLAGS" 5963 fi 5964 5965 found="no" 5966 5967 if test $found = "no" ; then 5968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5970 fi 5971 5972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5974 fi 5975 5976 CFLAGS="$CFLAGS -Wmissing-prototypes" 5977 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5979 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5980 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5981 if eval test \${$cacheid+y} 5982 then : 5983 printf %s "(cached) " >&6 5984 else case e in #( 5985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986 /* end confdefs.h. */ 5987 int i; 5988 int 5989 main (void) 5990 { 5991 5992 ; 5993 return 0; 5994 } 5995 _ACEOF 5996 if ac_fn_c_try_link "$LINENO" 5997 then : 5998 eval $cacheid=yes 5999 else case e in #( 6000 e) eval $cacheid=no ;; 6001 esac 6002 fi 6003 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6004 conftest$ac_exeext conftest.$ac_ext ;; 6005 esac 6006 fi 6007 6008 6009 CFLAGS="$xorg_testset_save_CFLAGS" 6010 6011 eval supported=\$$cacheid 6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6013 printf "%s\n" "$supported" >&6; } 6014 if test "$supported" = "yes" ; then 6015 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6016 found="yes" 6017 fi 6018 fi 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 xorg_testset_save_CFLAGS="$CFLAGS" 6035 6036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6039 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6040 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6041 then : 6042 printf %s "(cached) " >&6 6043 else case e in #( 6044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6045 /* end confdefs.h. */ 6046 int i; 6047 _ACEOF 6048 if ac_fn_c_try_compile "$LINENO" 6049 then : 6050 xorg_cv_cc_flag_unknown_warning_option=yes 6051 else case e in #( 6052 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6053 esac 6054 fi 6055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6056 esac 6057 fi 6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6059 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6061 CFLAGS="$xorg_testset_save_CFLAGS" 6062 fi 6063 6064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6067 fi 6068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6070 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6071 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6072 then : 6073 printf %s "(cached) " >&6 6074 else case e in #( 6075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6076 /* end confdefs.h. */ 6077 int i; 6078 _ACEOF 6079 if ac_fn_c_try_compile "$LINENO" 6080 then : 6081 xorg_cv_cc_flag_unused_command_line_argument=yes 6082 else case e in #( 6083 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6084 esac 6085 fi 6086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6087 esac 6088 fi 6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6090 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6092 CFLAGS="$xorg_testset_save_CFLAGS" 6093 fi 6094 6095 found="no" 6096 6097 if test $found = "no" ; then 6098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6100 fi 6101 6102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6104 fi 6105 6106 CFLAGS="$CFLAGS -Wnested-externs" 6107 6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6109 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6110 cacheid=xorg_cv_cc_flag__Wnested_externs 6111 if eval test \${$cacheid+y} 6112 then : 6113 printf %s "(cached) " >&6 6114 else case e in #( 6115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6116 /* end confdefs.h. */ 6117 int i; 6118 int 6119 main (void) 6120 { 6121 6122 ; 6123 return 0; 6124 } 6125 _ACEOF 6126 if ac_fn_c_try_link "$LINENO" 6127 then : 6128 eval $cacheid=yes 6129 else case e in #( 6130 e) eval $cacheid=no ;; 6131 esac 6132 fi 6133 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6134 conftest$ac_exeext conftest.$ac_ext ;; 6135 esac 6136 fi 6137 6138 6139 CFLAGS="$xorg_testset_save_CFLAGS" 6140 6141 eval supported=\$$cacheid 6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6143 printf "%s\n" "$supported" >&6; } 6144 if test "$supported" = "yes" ; then 6145 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6146 found="yes" 6147 fi 6148 fi 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 xorg_testset_save_CFLAGS="$CFLAGS" 6165 6166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6169 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6170 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6171 then : 6172 printf %s "(cached) " >&6 6173 else case e in #( 6174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6175 /* end confdefs.h. */ 6176 int i; 6177 _ACEOF 6178 if ac_fn_c_try_compile "$LINENO" 6179 then : 6180 xorg_cv_cc_flag_unknown_warning_option=yes 6181 else case e in #( 6182 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6183 esac 6184 fi 6185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6186 esac 6187 fi 6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6189 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6191 CFLAGS="$xorg_testset_save_CFLAGS" 6192 fi 6193 6194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6197 fi 6198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6200 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6201 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6202 then : 6203 printf %s "(cached) " >&6 6204 else case e in #( 6205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6206 /* end confdefs.h. */ 6207 int i; 6208 _ACEOF 6209 if ac_fn_c_try_compile "$LINENO" 6210 then : 6211 xorg_cv_cc_flag_unused_command_line_argument=yes 6212 else case e in #( 6213 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6214 esac 6215 fi 6216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6217 esac 6218 fi 6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6220 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6222 CFLAGS="$xorg_testset_save_CFLAGS" 6223 fi 6224 6225 found="no" 6226 6227 if test $found = "no" ; then 6228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6230 fi 6231 6232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6234 fi 6235 6236 CFLAGS="$CFLAGS -Wbad-function-cast" 6237 6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6239 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6240 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6241 if eval test \${$cacheid+y} 6242 then : 6243 printf %s "(cached) " >&6 6244 else case e in #( 6245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6246 /* end confdefs.h. */ 6247 int i; 6248 int 6249 main (void) 6250 { 6251 6252 ; 6253 return 0; 6254 } 6255 _ACEOF 6256 if ac_fn_c_try_link "$LINENO" 6257 then : 6258 eval $cacheid=yes 6259 else case e in #( 6260 e) eval $cacheid=no ;; 6261 esac 6262 fi 6263 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6264 conftest$ac_exeext conftest.$ac_ext ;; 6265 esac 6266 fi 6267 6268 6269 CFLAGS="$xorg_testset_save_CFLAGS" 6270 6271 eval supported=\$$cacheid 6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6273 printf "%s\n" "$supported" >&6; } 6274 if test "$supported" = "yes" ; then 6275 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6276 found="yes" 6277 fi 6278 fi 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 xorg_testset_save_CFLAGS="$CFLAGS" 6295 6296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6299 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6300 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6301 then : 6302 printf %s "(cached) " >&6 6303 else case e in #( 6304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6305 /* end confdefs.h. */ 6306 int i; 6307 _ACEOF 6308 if ac_fn_c_try_compile "$LINENO" 6309 then : 6310 xorg_cv_cc_flag_unknown_warning_option=yes 6311 else case e in #( 6312 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6313 esac 6314 fi 6315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6316 esac 6317 fi 6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6319 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6321 CFLAGS="$xorg_testset_save_CFLAGS" 6322 fi 6323 6324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6327 fi 6328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6330 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6331 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6332 then : 6333 printf %s "(cached) " >&6 6334 else case e in #( 6335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336 /* end confdefs.h. */ 6337 int i; 6338 _ACEOF 6339 if ac_fn_c_try_compile "$LINENO" 6340 then : 6341 xorg_cv_cc_flag_unused_command_line_argument=yes 6342 else case e in #( 6343 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6344 esac 6345 fi 6346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6347 esac 6348 fi 6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6350 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6352 CFLAGS="$xorg_testset_save_CFLAGS" 6353 fi 6354 6355 found="no" 6356 6357 if test $found = "no" ; then 6358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6360 fi 6361 6362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6364 fi 6365 6366 CFLAGS="$CFLAGS -Wold-style-definition" 6367 6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6369 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6370 cacheid=xorg_cv_cc_flag__Wold_style_definition 6371 if eval test \${$cacheid+y} 6372 then : 6373 printf %s "(cached) " >&6 6374 else case e in #( 6375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6376 /* end confdefs.h. */ 6377 int i; 6378 int 6379 main (void) 6380 { 6381 6382 ; 6383 return 0; 6384 } 6385 _ACEOF 6386 if ac_fn_c_try_link "$LINENO" 6387 then : 6388 eval $cacheid=yes 6389 else case e in #( 6390 e) eval $cacheid=no ;; 6391 esac 6392 fi 6393 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6394 conftest$ac_exeext conftest.$ac_ext ;; 6395 esac 6396 fi 6397 6398 6399 CFLAGS="$xorg_testset_save_CFLAGS" 6400 6401 eval supported=\$$cacheid 6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6403 printf "%s\n" "$supported" >&6; } 6404 if test "$supported" = "yes" ; then 6405 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6406 found="yes" 6407 fi 6408 fi 6409 6410 if test $found = "no" ; then 6411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6413 fi 6414 6415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6417 fi 6418 6419 CFLAGS="$CFLAGS -fd" 6420 6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6422 printf %s "checking if $CC supports -fd... " >&6; } 6423 cacheid=xorg_cv_cc_flag__fd 6424 if eval test \${$cacheid+y} 6425 then : 6426 printf %s "(cached) " >&6 6427 else case e in #( 6428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6429 /* end confdefs.h. */ 6430 int i; 6431 int 6432 main (void) 6433 { 6434 6435 ; 6436 return 0; 6437 } 6438 _ACEOF 6439 if ac_fn_c_try_link "$LINENO" 6440 then : 6441 eval $cacheid=yes 6442 else case e in #( 6443 e) eval $cacheid=no ;; 6444 esac 6445 fi 6446 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6447 conftest$ac_exeext conftest.$ac_ext ;; 6448 esac 6449 fi 6450 6451 6452 CFLAGS="$xorg_testset_save_CFLAGS" 6453 6454 eval supported=\$$cacheid 6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6456 printf "%s\n" "$supported" >&6; } 6457 if test "$supported" = "yes" ; then 6458 BASE_CFLAGS="$BASE_CFLAGS -fd" 6459 found="yes" 6460 fi 6461 fi 6462 6463 6464 6465 6466 6467 # This chunk adds additional warnings that could catch undesired effects. 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 xorg_testset_save_CFLAGS="$CFLAGS" 6482 6483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6486 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6487 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6488 then : 6489 printf %s "(cached) " >&6 6490 else case e in #( 6491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6492 /* end confdefs.h. */ 6493 int i; 6494 _ACEOF 6495 if ac_fn_c_try_compile "$LINENO" 6496 then : 6497 xorg_cv_cc_flag_unknown_warning_option=yes 6498 else case e in #( 6499 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6500 esac 6501 fi 6502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6503 esac 6504 fi 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6506 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6508 CFLAGS="$xorg_testset_save_CFLAGS" 6509 fi 6510 6511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6514 fi 6515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6517 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6518 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6519 then : 6520 printf %s "(cached) " >&6 6521 else case e in #( 6522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6523 /* end confdefs.h. */ 6524 int i; 6525 _ACEOF 6526 if ac_fn_c_try_compile "$LINENO" 6527 then : 6528 xorg_cv_cc_flag_unused_command_line_argument=yes 6529 else case e in #( 6530 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6531 esac 6532 fi 6533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6534 esac 6535 fi 6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6537 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540 fi 6541 6542 found="no" 6543 6544 if test $found = "no" ; then 6545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6547 fi 6548 6549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6551 fi 6552 6553 CFLAGS="$CFLAGS -Wunused" 6554 6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6556 printf %s "checking if $CC supports -Wunused... " >&6; } 6557 cacheid=xorg_cv_cc_flag__Wunused 6558 if eval test \${$cacheid+y} 6559 then : 6560 printf %s "(cached) " >&6 6561 else case e in #( 6562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563 /* end confdefs.h. */ 6564 int i; 6565 int 6566 main (void) 6567 { 6568 6569 ; 6570 return 0; 6571 } 6572 _ACEOF 6573 if ac_fn_c_try_link "$LINENO" 6574 then : 6575 eval $cacheid=yes 6576 else case e in #( 6577 e) eval $cacheid=no ;; 6578 esac 6579 fi 6580 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6581 conftest$ac_exeext conftest.$ac_ext ;; 6582 esac 6583 fi 6584 6585 6586 CFLAGS="$xorg_testset_save_CFLAGS" 6587 6588 eval supported=\$$cacheid 6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6590 printf "%s\n" "$supported" >&6; } 6591 if test "$supported" = "yes" ; then 6592 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6593 found="yes" 6594 fi 6595 fi 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 xorg_testset_save_CFLAGS="$CFLAGS" 6612 6613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6616 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6617 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6618 then : 6619 printf %s "(cached) " >&6 6620 else case e in #( 6621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6622 /* end confdefs.h. */ 6623 int i; 6624 _ACEOF 6625 if ac_fn_c_try_compile "$LINENO" 6626 then : 6627 xorg_cv_cc_flag_unknown_warning_option=yes 6628 else case e in #( 6629 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6630 esac 6631 fi 6632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6633 esac 6634 fi 6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6638 CFLAGS="$xorg_testset_save_CFLAGS" 6639 fi 6640 6641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6644 fi 6645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6649 then : 6650 printf %s "(cached) " >&6 6651 else case e in #( 6652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653 /* end confdefs.h. */ 6654 int i; 6655 _ACEOF 6656 if ac_fn_c_try_compile "$LINENO" 6657 then : 6658 xorg_cv_cc_flag_unused_command_line_argument=yes 6659 else case e in #( 6660 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6661 esac 6662 fi 6663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6664 esac 6665 fi 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6667 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6669 CFLAGS="$xorg_testset_save_CFLAGS" 6670 fi 6671 6672 found="no" 6673 6674 if test $found = "no" ; then 6675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6677 fi 6678 6679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6681 fi 6682 6683 CFLAGS="$CFLAGS -Wuninitialized" 6684 6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6686 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6687 cacheid=xorg_cv_cc_flag__Wuninitialized 6688 if eval test \${$cacheid+y} 6689 then : 6690 printf %s "(cached) " >&6 6691 else case e in #( 6692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6693 /* end confdefs.h. */ 6694 int i; 6695 int 6696 main (void) 6697 { 6698 6699 ; 6700 return 0; 6701 } 6702 _ACEOF 6703 if ac_fn_c_try_link "$LINENO" 6704 then : 6705 eval $cacheid=yes 6706 else case e in #( 6707 e) eval $cacheid=no ;; 6708 esac 6709 fi 6710 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6711 conftest$ac_exeext conftest.$ac_ext ;; 6712 esac 6713 fi 6714 6715 6716 CFLAGS="$xorg_testset_save_CFLAGS" 6717 6718 eval supported=\$$cacheid 6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6720 printf "%s\n" "$supported" >&6; } 6721 if test "$supported" = "yes" ; then 6722 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6723 found="yes" 6724 fi 6725 fi 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 xorg_testset_save_CFLAGS="$CFLAGS" 6742 6743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6746 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6747 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6748 then : 6749 printf %s "(cached) " >&6 6750 else case e in #( 6751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6752 /* end confdefs.h. */ 6753 int i; 6754 _ACEOF 6755 if ac_fn_c_try_compile "$LINENO" 6756 then : 6757 xorg_cv_cc_flag_unknown_warning_option=yes 6758 else case e in #( 6759 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6760 esac 6761 fi 6762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6763 esac 6764 fi 6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6766 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6768 CFLAGS="$xorg_testset_save_CFLAGS" 6769 fi 6770 6771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6774 fi 6775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6777 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6778 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6779 then : 6780 printf %s "(cached) " >&6 6781 else case e in #( 6782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6783 /* end confdefs.h. */ 6784 int i; 6785 _ACEOF 6786 if ac_fn_c_try_compile "$LINENO" 6787 then : 6788 xorg_cv_cc_flag_unused_command_line_argument=yes 6789 else case e in #( 6790 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6791 esac 6792 fi 6793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6794 esac 6795 fi 6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6797 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6799 CFLAGS="$xorg_testset_save_CFLAGS" 6800 fi 6801 6802 found="no" 6803 6804 if test $found = "no" ; then 6805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6807 fi 6808 6809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6811 fi 6812 6813 CFLAGS="$CFLAGS -Wshadow" 6814 6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6816 printf %s "checking if $CC supports -Wshadow... " >&6; } 6817 cacheid=xorg_cv_cc_flag__Wshadow 6818 if eval test \${$cacheid+y} 6819 then : 6820 printf %s "(cached) " >&6 6821 else case e in #( 6822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6823 /* end confdefs.h. */ 6824 int i; 6825 int 6826 main (void) 6827 { 6828 6829 ; 6830 return 0; 6831 } 6832 _ACEOF 6833 if ac_fn_c_try_link "$LINENO" 6834 then : 6835 eval $cacheid=yes 6836 else case e in #( 6837 e) eval $cacheid=no ;; 6838 esac 6839 fi 6840 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6841 conftest$ac_exeext conftest.$ac_ext ;; 6842 esac 6843 fi 6844 6845 6846 CFLAGS="$xorg_testset_save_CFLAGS" 6847 6848 eval supported=\$$cacheid 6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6850 printf "%s\n" "$supported" >&6; } 6851 if test "$supported" = "yes" ; then 6852 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6853 found="yes" 6854 fi 6855 fi 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 xorg_testset_save_CFLAGS="$CFLAGS" 6872 6873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6877 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6878 then : 6879 printf %s "(cached) " >&6 6880 else case e in #( 6881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6882 /* end confdefs.h. */ 6883 int i; 6884 _ACEOF 6885 if ac_fn_c_try_compile "$LINENO" 6886 then : 6887 xorg_cv_cc_flag_unknown_warning_option=yes 6888 else case e in #( 6889 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6890 esac 6891 fi 6892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6893 esac 6894 fi 6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6898 CFLAGS="$xorg_testset_save_CFLAGS" 6899 fi 6900 6901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6904 fi 6905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6909 then : 6910 printf %s "(cached) " >&6 6911 else case e in #( 6912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913 /* end confdefs.h. */ 6914 int i; 6915 _ACEOF 6916 if ac_fn_c_try_compile "$LINENO" 6917 then : 6918 xorg_cv_cc_flag_unused_command_line_argument=yes 6919 else case e in #( 6920 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6921 esac 6922 fi 6923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6924 esac 6925 fi 6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6927 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6929 CFLAGS="$xorg_testset_save_CFLAGS" 6930 fi 6931 6932 found="no" 6933 6934 if test $found = "no" ; then 6935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6937 fi 6938 6939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6941 fi 6942 6943 CFLAGS="$CFLAGS -Wmissing-noreturn" 6944 6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6946 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6947 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6948 if eval test \${$cacheid+y} 6949 then : 6950 printf %s "(cached) " >&6 6951 else case e in #( 6952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6953 /* end confdefs.h. */ 6954 int i; 6955 int 6956 main (void) 6957 { 6958 6959 ; 6960 return 0; 6961 } 6962 _ACEOF 6963 if ac_fn_c_try_link "$LINENO" 6964 then : 6965 eval $cacheid=yes 6966 else case e in #( 6967 e) eval $cacheid=no ;; 6968 esac 6969 fi 6970 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6971 conftest$ac_exeext conftest.$ac_ext ;; 6972 esac 6973 fi 6974 6975 6976 CFLAGS="$xorg_testset_save_CFLAGS" 6977 6978 eval supported=\$$cacheid 6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6980 printf "%s\n" "$supported" >&6; } 6981 if test "$supported" = "yes" ; then 6982 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6983 found="yes" 6984 fi 6985 fi 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 xorg_testset_save_CFLAGS="$CFLAGS" 7002 7003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7006 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7007 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7008 then : 7009 printf %s "(cached) " >&6 7010 else case e in #( 7011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7012 /* end confdefs.h. */ 7013 int i; 7014 _ACEOF 7015 if ac_fn_c_try_compile "$LINENO" 7016 then : 7017 xorg_cv_cc_flag_unknown_warning_option=yes 7018 else case e in #( 7019 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7020 esac 7021 fi 7022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7023 esac 7024 fi 7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7026 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7028 CFLAGS="$xorg_testset_save_CFLAGS" 7029 fi 7030 7031 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7034 fi 7035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7037 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7038 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7039 then : 7040 printf %s "(cached) " >&6 7041 else case e in #( 7042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7043 /* end confdefs.h. */ 7044 int i; 7045 _ACEOF 7046 if ac_fn_c_try_compile "$LINENO" 7047 then : 7048 xorg_cv_cc_flag_unused_command_line_argument=yes 7049 else case e in #( 7050 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7051 esac 7052 fi 7053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7054 esac 7055 fi 7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7059 CFLAGS="$xorg_testset_save_CFLAGS" 7060 fi 7061 7062 found="no" 7063 7064 if test $found = "no" ; then 7065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7067 fi 7068 7069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7071 fi 7072 7073 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7074 7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7076 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7077 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7078 if eval test \${$cacheid+y} 7079 then : 7080 printf %s "(cached) " >&6 7081 else case e in #( 7082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083 /* end confdefs.h. */ 7084 int i; 7085 int 7086 main (void) 7087 { 7088 7089 ; 7090 return 0; 7091 } 7092 _ACEOF 7093 if ac_fn_c_try_link "$LINENO" 7094 then : 7095 eval $cacheid=yes 7096 else case e in #( 7097 e) eval $cacheid=no ;; 7098 esac 7099 fi 7100 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7101 conftest$ac_exeext conftest.$ac_ext ;; 7102 esac 7103 fi 7104 7105 7106 CFLAGS="$xorg_testset_save_CFLAGS" 7107 7108 eval supported=\$$cacheid 7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7110 printf "%s\n" "$supported" >&6; } 7111 if test "$supported" = "yes" ; then 7112 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7113 found="yes" 7114 fi 7115 fi 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 xorg_testset_save_CFLAGS="$CFLAGS" 7132 7133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7136 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7137 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7138 then : 7139 printf %s "(cached) " >&6 7140 else case e in #( 7141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142 /* end confdefs.h. */ 7143 int i; 7144 _ACEOF 7145 if ac_fn_c_try_compile "$LINENO" 7146 then : 7147 xorg_cv_cc_flag_unknown_warning_option=yes 7148 else case e in #( 7149 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7150 esac 7151 fi 7152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7153 esac 7154 fi 7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7156 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7158 CFLAGS="$xorg_testset_save_CFLAGS" 7159 fi 7160 7161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7164 fi 7165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7167 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7168 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7169 then : 7170 printf %s "(cached) " >&6 7171 else case e in #( 7172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7173 /* end confdefs.h. */ 7174 int i; 7175 _ACEOF 7176 if ac_fn_c_try_compile "$LINENO" 7177 then : 7178 xorg_cv_cc_flag_unused_command_line_argument=yes 7179 else case e in #( 7180 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7181 esac 7182 fi 7183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7184 esac 7185 fi 7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7187 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7189 CFLAGS="$xorg_testset_save_CFLAGS" 7190 fi 7191 7192 found="no" 7193 7194 if test $found = "no" ; then 7195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7197 fi 7198 7199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7201 fi 7202 7203 CFLAGS="$CFLAGS -Wredundant-decls" 7204 7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7206 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7207 cacheid=xorg_cv_cc_flag__Wredundant_decls 7208 if eval test \${$cacheid+y} 7209 then : 7210 printf %s "(cached) " >&6 7211 else case e in #( 7212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7213 /* end confdefs.h. */ 7214 int i; 7215 int 7216 main (void) 7217 { 7218 7219 ; 7220 return 0; 7221 } 7222 _ACEOF 7223 if ac_fn_c_try_link "$LINENO" 7224 then : 7225 eval $cacheid=yes 7226 else case e in #( 7227 e) eval $cacheid=no ;; 7228 esac 7229 fi 7230 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7231 conftest$ac_exeext conftest.$ac_ext ;; 7232 esac 7233 fi 7234 7235 7236 CFLAGS="$xorg_testset_save_CFLAGS" 7237 7238 eval supported=\$$cacheid 7239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7240 printf "%s\n" "$supported" >&6; } 7241 if test "$supported" = "yes" ; then 7242 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7243 found="yes" 7244 fi 7245 fi 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 xorg_testset_save_CFLAGS="$CFLAGS" 7262 7263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7266 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7267 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7268 then : 7269 printf %s "(cached) " >&6 7270 else case e in #( 7271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272 /* end confdefs.h. */ 7273 int i; 7274 _ACEOF 7275 if ac_fn_c_try_compile "$LINENO" 7276 then : 7277 xorg_cv_cc_flag_unknown_warning_option=yes 7278 else case e in #( 7279 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7280 esac 7281 fi 7282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7283 esac 7284 fi 7285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7286 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7288 CFLAGS="$xorg_testset_save_CFLAGS" 7289 fi 7290 7291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7294 fi 7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7297 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7298 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7299 then : 7300 printf %s "(cached) " >&6 7301 else case e in #( 7302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7303 /* end confdefs.h. */ 7304 int i; 7305 _ACEOF 7306 if ac_fn_c_try_compile "$LINENO" 7307 then : 7308 xorg_cv_cc_flag_unused_command_line_argument=yes 7309 else case e in #( 7310 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7311 esac 7312 fi 7313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7314 esac 7315 fi 7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7319 CFLAGS="$xorg_testset_save_CFLAGS" 7320 fi 7321 7322 found="no" 7323 7324 if test $found = "no" ; then 7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7327 fi 7328 7329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7331 fi 7332 7333 CFLAGS="$CFLAGS -Wlogical-op" 7334 7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7336 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7337 cacheid=xorg_cv_cc_flag__Wlogical_op 7338 if eval test \${$cacheid+y} 7339 then : 7340 printf %s "(cached) " >&6 7341 else case e in #( 7342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7343 /* end confdefs.h. */ 7344 int i; 7345 int 7346 main (void) 7347 { 7348 7349 ; 7350 return 0; 7351 } 7352 _ACEOF 7353 if ac_fn_c_try_link "$LINENO" 7354 then : 7355 eval $cacheid=yes 7356 else case e in #( 7357 e) eval $cacheid=no ;; 7358 esac 7359 fi 7360 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7361 conftest$ac_exeext conftest.$ac_ext ;; 7362 esac 7363 fi 7364 7365 7366 CFLAGS="$xorg_testset_save_CFLAGS" 7367 7368 eval supported=\$$cacheid 7369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7370 printf "%s\n" "$supported" >&6; } 7371 if test "$supported" = "yes" ; then 7372 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7373 found="yes" 7374 fi 7375 fi 7376 7377 7378 7379 # These are currently disabled because they are noisy. They will be enabled 7380 # in the future once the codebase is sufficiently modernized to silence 7381 # them. For now, I don't want them to drown out the other warnings. 7382 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7383 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7384 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7385 7386 # Turn some warnings into errors, so we don't accidentally get successful builds 7387 # when there are problems that should be fixed. 7388 7389 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 xorg_testset_save_CFLAGS="$CFLAGS" 7404 7405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7408 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7409 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7410 then : 7411 printf %s "(cached) " >&6 7412 else case e in #( 7413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7414 /* end confdefs.h. */ 7415 int i; 7416 _ACEOF 7417 if ac_fn_c_try_compile "$LINENO" 7418 then : 7419 xorg_cv_cc_flag_unknown_warning_option=yes 7420 else case e in #( 7421 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7422 esac 7423 fi 7424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7425 esac 7426 fi 7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7428 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7430 CFLAGS="$xorg_testset_save_CFLAGS" 7431 fi 7432 7433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7436 fi 7437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7439 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7440 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7441 then : 7442 printf %s "(cached) " >&6 7443 else case e in #( 7444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7445 /* end confdefs.h. */ 7446 int i; 7447 _ACEOF 7448 if ac_fn_c_try_compile "$LINENO" 7449 then : 7450 xorg_cv_cc_flag_unused_command_line_argument=yes 7451 else case e in #( 7452 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7453 esac 7454 fi 7455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7456 esac 7457 fi 7458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7459 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7461 CFLAGS="$xorg_testset_save_CFLAGS" 7462 fi 7463 7464 found="no" 7465 7466 if test $found = "no" ; then 7467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7469 fi 7470 7471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7473 fi 7474 7475 CFLAGS="$CFLAGS -Werror=implicit" 7476 7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7478 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7479 cacheid=xorg_cv_cc_flag__Werror_implicit 7480 if eval test \${$cacheid+y} 7481 then : 7482 printf %s "(cached) " >&6 7483 else case e in #( 7484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7485 /* end confdefs.h. */ 7486 int i; 7487 int 7488 main (void) 7489 { 7490 7491 ; 7492 return 0; 7493 } 7494 _ACEOF 7495 if ac_fn_c_try_link "$LINENO" 7496 then : 7497 eval $cacheid=yes 7498 else case e in #( 7499 e) eval $cacheid=no ;; 7500 esac 7501 fi 7502 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7503 conftest$ac_exeext conftest.$ac_ext ;; 7504 esac 7505 fi 7506 7507 7508 CFLAGS="$xorg_testset_save_CFLAGS" 7509 7510 eval supported=\$$cacheid 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7512 printf "%s\n" "$supported" >&6; } 7513 if test "$supported" = "yes" ; then 7514 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7515 found="yes" 7516 fi 7517 fi 7518 7519 if test $found = "no" ; then 7520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7522 fi 7523 7524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7526 fi 7527 7528 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7529 7530 { 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 7531 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7532 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7533 if eval test \${$cacheid+y} 7534 then : 7535 printf %s "(cached) " >&6 7536 else case e in #( 7537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7538 /* end confdefs.h. */ 7539 int i; 7540 int 7541 main (void) 7542 { 7543 7544 ; 7545 return 0; 7546 } 7547 _ACEOF 7548 if ac_fn_c_try_link "$LINENO" 7549 then : 7550 eval $cacheid=yes 7551 else case e in #( 7552 e) eval $cacheid=no ;; 7553 esac 7554 fi 7555 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7556 conftest$ac_exeext conftest.$ac_ext ;; 7557 esac 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 -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 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 case e in #( 7596 e) 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 case e in #( 7604 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7605 esac 7606 fi 7607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7608 esac 7609 fi 7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7611 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7613 CFLAGS="$xorg_testset_save_CFLAGS" 7614 fi 7615 7616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7619 fi 7620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7622 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7623 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7624 then : 7625 printf %s "(cached) " >&6 7626 else case e in #( 7627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7628 /* end confdefs.h. */ 7629 int i; 7630 _ACEOF 7631 if ac_fn_c_try_compile "$LINENO" 7632 then : 7633 xorg_cv_cc_flag_unused_command_line_argument=yes 7634 else case e in #( 7635 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7636 esac 7637 fi 7638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7639 esac 7640 fi 7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7644 CFLAGS="$xorg_testset_save_CFLAGS" 7645 fi 7646 7647 found="no" 7648 7649 if test $found = "no" ; then 7650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7652 fi 7653 7654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7656 fi 7657 7658 CFLAGS="$CFLAGS -Werror=nonnull" 7659 7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7661 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7662 cacheid=xorg_cv_cc_flag__Werror_nonnull 7663 if eval test \${$cacheid+y} 7664 then : 7665 printf %s "(cached) " >&6 7666 else case e in #( 7667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7668 /* end confdefs.h. */ 7669 int i; 7670 int 7671 main (void) 7672 { 7673 7674 ; 7675 return 0; 7676 } 7677 _ACEOF 7678 if ac_fn_c_try_link "$LINENO" 7679 then : 7680 eval $cacheid=yes 7681 else case e in #( 7682 e) eval $cacheid=no ;; 7683 esac 7684 fi 7685 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7686 conftest$ac_exeext conftest.$ac_ext ;; 7687 esac 7688 fi 7689 7690 7691 CFLAGS="$xorg_testset_save_CFLAGS" 7692 7693 eval supported=\$$cacheid 7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7695 printf "%s\n" "$supported" >&6; } 7696 if test "$supported" = "yes" ; then 7697 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7698 found="yes" 7699 fi 7700 fi 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 xorg_testset_save_CFLAGS="$CFLAGS" 7717 7718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7721 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7722 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7723 then : 7724 printf %s "(cached) " >&6 7725 else case e in #( 7726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727 /* end confdefs.h. */ 7728 int i; 7729 _ACEOF 7730 if ac_fn_c_try_compile "$LINENO" 7731 then : 7732 xorg_cv_cc_flag_unknown_warning_option=yes 7733 else case e in #( 7734 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7735 esac 7736 fi 7737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7738 esac 7739 fi 7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7741 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7743 CFLAGS="$xorg_testset_save_CFLAGS" 7744 fi 7745 7746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7749 fi 7750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7752 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7753 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7754 then : 7755 printf %s "(cached) " >&6 7756 else case e in #( 7757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758 /* end confdefs.h. */ 7759 int i; 7760 _ACEOF 7761 if ac_fn_c_try_compile "$LINENO" 7762 then : 7763 xorg_cv_cc_flag_unused_command_line_argument=yes 7764 else case e in #( 7765 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7766 esac 7767 fi 7768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7769 esac 7770 fi 7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7772 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7774 CFLAGS="$xorg_testset_save_CFLAGS" 7775 fi 7776 7777 found="no" 7778 7779 if test $found = "no" ; then 7780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7782 fi 7783 7784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7786 fi 7787 7788 CFLAGS="$CFLAGS -Werror=init-self" 7789 7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7791 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7792 cacheid=xorg_cv_cc_flag__Werror_init_self 7793 if eval test \${$cacheid+y} 7794 then : 7795 printf %s "(cached) " >&6 7796 else case e in #( 7797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798 /* end confdefs.h. */ 7799 int i; 7800 int 7801 main (void) 7802 { 7803 7804 ; 7805 return 0; 7806 } 7807 _ACEOF 7808 if ac_fn_c_try_link "$LINENO" 7809 then : 7810 eval $cacheid=yes 7811 else case e in #( 7812 e) eval $cacheid=no ;; 7813 esac 7814 fi 7815 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7816 conftest$ac_exeext conftest.$ac_ext ;; 7817 esac 7818 fi 7819 7820 7821 CFLAGS="$xorg_testset_save_CFLAGS" 7822 7823 eval supported=\$$cacheid 7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7825 printf "%s\n" "$supported" >&6; } 7826 if test "$supported" = "yes" ; then 7827 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7828 found="yes" 7829 fi 7830 fi 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 xorg_testset_save_CFLAGS="$CFLAGS" 7847 7848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7851 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7852 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7853 then : 7854 printf %s "(cached) " >&6 7855 else case e in #( 7856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7857 /* end confdefs.h. */ 7858 int i; 7859 _ACEOF 7860 if ac_fn_c_try_compile "$LINENO" 7861 then : 7862 xorg_cv_cc_flag_unknown_warning_option=yes 7863 else case e in #( 7864 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7865 esac 7866 fi 7867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7868 esac 7869 fi 7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7871 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7873 CFLAGS="$xorg_testset_save_CFLAGS" 7874 fi 7875 7876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7879 fi 7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7882 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7883 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7884 then : 7885 printf %s "(cached) " >&6 7886 else case e in #( 7887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7888 /* end confdefs.h. */ 7889 int i; 7890 _ACEOF 7891 if ac_fn_c_try_compile "$LINENO" 7892 then : 7893 xorg_cv_cc_flag_unused_command_line_argument=yes 7894 else case e in #( 7895 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7896 esac 7897 fi 7898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7899 esac 7900 fi 7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7902 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7904 CFLAGS="$xorg_testset_save_CFLAGS" 7905 fi 7906 7907 found="no" 7908 7909 if test $found = "no" ; then 7910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7912 fi 7913 7914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7916 fi 7917 7918 CFLAGS="$CFLAGS -Werror=main" 7919 7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7921 printf %s "checking if $CC supports -Werror=main... " >&6; } 7922 cacheid=xorg_cv_cc_flag__Werror_main 7923 if eval test \${$cacheid+y} 7924 then : 7925 printf %s "(cached) " >&6 7926 else case e in #( 7927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7928 /* end confdefs.h. */ 7929 int i; 7930 int 7931 main (void) 7932 { 7933 7934 ; 7935 return 0; 7936 } 7937 _ACEOF 7938 if ac_fn_c_try_link "$LINENO" 7939 then : 7940 eval $cacheid=yes 7941 else case e in #( 7942 e) eval $cacheid=no ;; 7943 esac 7944 fi 7945 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7946 conftest$ac_exeext conftest.$ac_ext ;; 7947 esac 7948 fi 7949 7950 7951 CFLAGS="$xorg_testset_save_CFLAGS" 7952 7953 eval supported=\$$cacheid 7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7955 printf "%s\n" "$supported" >&6; } 7956 if test "$supported" = "yes" ; then 7957 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7958 found="yes" 7959 fi 7960 fi 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 xorg_testset_save_CFLAGS="$CFLAGS" 7977 7978 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7981 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7982 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7983 then : 7984 printf %s "(cached) " >&6 7985 else case e in #( 7986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7987 /* end confdefs.h. */ 7988 int i; 7989 _ACEOF 7990 if ac_fn_c_try_compile "$LINENO" 7991 then : 7992 xorg_cv_cc_flag_unknown_warning_option=yes 7993 else case e in #( 7994 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7995 esac 7996 fi 7997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7998 esac 7999 fi 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8001 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8003 CFLAGS="$xorg_testset_save_CFLAGS" 8004 fi 8005 8006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8009 fi 8010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8012 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8013 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8014 then : 8015 printf %s "(cached) " >&6 8016 else case e in #( 8017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8018 /* end confdefs.h. */ 8019 int i; 8020 _ACEOF 8021 if ac_fn_c_try_compile "$LINENO" 8022 then : 8023 xorg_cv_cc_flag_unused_command_line_argument=yes 8024 else case e in #( 8025 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8026 esac 8027 fi 8028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8029 esac 8030 fi 8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8032 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8034 CFLAGS="$xorg_testset_save_CFLAGS" 8035 fi 8036 8037 found="no" 8038 8039 if test $found = "no" ; then 8040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8042 fi 8043 8044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8046 fi 8047 8048 CFLAGS="$CFLAGS -Werror=missing-braces" 8049 8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8051 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8052 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8053 if eval test \${$cacheid+y} 8054 then : 8055 printf %s "(cached) " >&6 8056 else case e in #( 8057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8058 /* end confdefs.h. */ 8059 int i; 8060 int 8061 main (void) 8062 { 8063 8064 ; 8065 return 0; 8066 } 8067 _ACEOF 8068 if ac_fn_c_try_link "$LINENO" 8069 then : 8070 eval $cacheid=yes 8071 else case e in #( 8072 e) eval $cacheid=no ;; 8073 esac 8074 fi 8075 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8076 conftest$ac_exeext conftest.$ac_ext ;; 8077 esac 8078 fi 8079 8080 8081 CFLAGS="$xorg_testset_save_CFLAGS" 8082 8083 eval supported=\$$cacheid 8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8085 printf "%s\n" "$supported" >&6; } 8086 if test "$supported" = "yes" ; then 8087 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8088 found="yes" 8089 fi 8090 fi 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 xorg_testset_save_CFLAGS="$CFLAGS" 8107 8108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8112 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8113 then : 8114 printf %s "(cached) " >&6 8115 else case e in #( 8116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8117 /* end confdefs.h. */ 8118 int i; 8119 _ACEOF 8120 if ac_fn_c_try_compile "$LINENO" 8121 then : 8122 xorg_cv_cc_flag_unknown_warning_option=yes 8123 else case e in #( 8124 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8125 esac 8126 fi 8127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8128 esac 8129 fi 8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8131 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8133 CFLAGS="$xorg_testset_save_CFLAGS" 8134 fi 8135 8136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 fi 8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8142 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8143 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8144 then : 8145 printf %s "(cached) " >&6 8146 else case e in #( 8147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8148 /* end confdefs.h. */ 8149 int i; 8150 _ACEOF 8151 if ac_fn_c_try_compile "$LINENO" 8152 then : 8153 xorg_cv_cc_flag_unused_command_line_argument=yes 8154 else case e in #( 8155 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8156 esac 8157 fi 8158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8159 esac 8160 fi 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8162 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8164 CFLAGS="$xorg_testset_save_CFLAGS" 8165 fi 8166 8167 found="no" 8168 8169 if test $found = "no" ; then 8170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8172 fi 8173 8174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8176 fi 8177 8178 CFLAGS="$CFLAGS -Werror=sequence-point" 8179 8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8181 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8182 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8183 if eval test \${$cacheid+y} 8184 then : 8185 printf %s "(cached) " >&6 8186 else case e in #( 8187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188 /* end confdefs.h. */ 8189 int i; 8190 int 8191 main (void) 8192 { 8193 8194 ; 8195 return 0; 8196 } 8197 _ACEOF 8198 if ac_fn_c_try_link "$LINENO" 8199 then : 8200 eval $cacheid=yes 8201 else case e in #( 8202 e) eval $cacheid=no ;; 8203 esac 8204 fi 8205 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8206 conftest$ac_exeext conftest.$ac_ext ;; 8207 esac 8208 fi 8209 8210 8211 CFLAGS="$xorg_testset_save_CFLAGS" 8212 8213 eval supported=\$$cacheid 8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8215 printf "%s\n" "$supported" >&6; } 8216 if test "$supported" = "yes" ; then 8217 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8218 found="yes" 8219 fi 8220 fi 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 xorg_testset_save_CFLAGS="$CFLAGS" 8237 8238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8241 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8242 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8243 then : 8244 printf %s "(cached) " >&6 8245 else case e in #( 8246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8247 /* end confdefs.h. */ 8248 int i; 8249 _ACEOF 8250 if ac_fn_c_try_compile "$LINENO" 8251 then : 8252 xorg_cv_cc_flag_unknown_warning_option=yes 8253 else case e in #( 8254 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8255 esac 8256 fi 8257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8258 esac 8259 fi 8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264 fi 8265 8266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8269 fi 8270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8274 then : 8275 printf %s "(cached) " >&6 8276 else case e in #( 8277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8278 /* end confdefs.h. */ 8279 int i; 8280 _ACEOF 8281 if ac_fn_c_try_compile "$LINENO" 8282 then : 8283 xorg_cv_cc_flag_unused_command_line_argument=yes 8284 else case e in #( 8285 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8286 esac 8287 fi 8288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8289 esac 8290 fi 8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8292 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8294 CFLAGS="$xorg_testset_save_CFLAGS" 8295 fi 8296 8297 found="no" 8298 8299 if test $found = "no" ; then 8300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8302 fi 8303 8304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8306 fi 8307 8308 CFLAGS="$CFLAGS -Werror=return-type" 8309 8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8311 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8312 cacheid=xorg_cv_cc_flag__Werror_return_type 8313 if eval test \${$cacheid+y} 8314 then : 8315 printf %s "(cached) " >&6 8316 else case e in #( 8317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8318 /* end confdefs.h. */ 8319 int i; 8320 int 8321 main (void) 8322 { 8323 8324 ; 8325 return 0; 8326 } 8327 _ACEOF 8328 if ac_fn_c_try_link "$LINENO" 8329 then : 8330 eval $cacheid=yes 8331 else case e in #( 8332 e) eval $cacheid=no ;; 8333 esac 8334 fi 8335 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8336 conftest$ac_exeext conftest.$ac_ext ;; 8337 esac 8338 fi 8339 8340 8341 CFLAGS="$xorg_testset_save_CFLAGS" 8342 8343 eval supported=\$$cacheid 8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8345 printf "%s\n" "$supported" >&6; } 8346 if test "$supported" = "yes" ; then 8347 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8348 found="yes" 8349 fi 8350 fi 8351 8352 if test $found = "no" ; then 8353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8355 fi 8356 8357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8359 fi 8360 8361 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8362 8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8364 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8365 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8366 if eval test \${$cacheid+y} 8367 then : 8368 printf %s "(cached) " >&6 8369 else case e in #( 8370 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371 /* end confdefs.h. */ 8372 int i; 8373 int 8374 main (void) 8375 { 8376 8377 ; 8378 return 0; 8379 } 8380 _ACEOF 8381 if ac_fn_c_try_link "$LINENO" 8382 then : 8383 eval $cacheid=yes 8384 else case e in #( 8385 e) eval $cacheid=no ;; 8386 esac 8387 fi 8388 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8389 conftest$ac_exeext conftest.$ac_ext ;; 8390 esac 8391 fi 8392 8393 8394 CFLAGS="$xorg_testset_save_CFLAGS" 8395 8396 eval supported=\$$cacheid 8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8398 printf "%s\n" "$supported" >&6; } 8399 if test "$supported" = "yes" ; then 8400 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8401 found="yes" 8402 fi 8403 fi 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 xorg_testset_save_CFLAGS="$CFLAGS" 8420 8421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8424 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8425 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8426 then : 8427 printf %s "(cached) " >&6 8428 else case e in #( 8429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8430 /* end confdefs.h. */ 8431 int i; 8432 _ACEOF 8433 if ac_fn_c_try_compile "$LINENO" 8434 then : 8435 xorg_cv_cc_flag_unknown_warning_option=yes 8436 else case e in #( 8437 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8438 esac 8439 fi 8440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8441 esac 8442 fi 8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8444 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8446 CFLAGS="$xorg_testset_save_CFLAGS" 8447 fi 8448 8449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8452 fi 8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8455 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8456 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8457 then : 8458 printf %s "(cached) " >&6 8459 else case e in #( 8460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461 /* end confdefs.h. */ 8462 int i; 8463 _ACEOF 8464 if ac_fn_c_try_compile "$LINENO" 8465 then : 8466 xorg_cv_cc_flag_unused_command_line_argument=yes 8467 else case e in #( 8468 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8469 esac 8470 fi 8471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8472 esac 8473 fi 8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8475 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8477 CFLAGS="$xorg_testset_save_CFLAGS" 8478 fi 8479 8480 found="no" 8481 8482 if test $found = "no" ; then 8483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8485 fi 8486 8487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8489 fi 8490 8491 CFLAGS="$CFLAGS -Werror=trigraphs" 8492 8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8494 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8495 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8496 if eval test \${$cacheid+y} 8497 then : 8498 printf %s "(cached) " >&6 8499 else case e in #( 8500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501 /* end confdefs.h. */ 8502 int i; 8503 int 8504 main (void) 8505 { 8506 8507 ; 8508 return 0; 8509 } 8510 _ACEOF 8511 if ac_fn_c_try_link "$LINENO" 8512 then : 8513 eval $cacheid=yes 8514 else case e in #( 8515 e) eval $cacheid=no ;; 8516 esac 8517 fi 8518 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8519 conftest$ac_exeext conftest.$ac_ext ;; 8520 esac 8521 fi 8522 8523 8524 CFLAGS="$xorg_testset_save_CFLAGS" 8525 8526 eval supported=\$$cacheid 8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8528 printf "%s\n" "$supported" >&6; } 8529 if test "$supported" = "yes" ; then 8530 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8531 found="yes" 8532 fi 8533 fi 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 xorg_testset_save_CFLAGS="$CFLAGS" 8550 8551 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8554 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8555 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8556 then : 8557 printf %s "(cached) " >&6 8558 else case e in #( 8559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8560 /* end confdefs.h. */ 8561 int i; 8562 _ACEOF 8563 if ac_fn_c_try_compile "$LINENO" 8564 then : 8565 xorg_cv_cc_flag_unknown_warning_option=yes 8566 else case e in #( 8567 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8568 esac 8569 fi 8570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8571 esac 8572 fi 8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8574 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8575 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8576 CFLAGS="$xorg_testset_save_CFLAGS" 8577 fi 8578 8579 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8582 fi 8583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8585 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8586 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8587 then : 8588 printf %s "(cached) " >&6 8589 else case e in #( 8590 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8591 /* end confdefs.h. */ 8592 int i; 8593 _ACEOF 8594 if ac_fn_c_try_compile "$LINENO" 8595 then : 8596 xorg_cv_cc_flag_unused_command_line_argument=yes 8597 else case e in #( 8598 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8599 esac 8600 fi 8601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8602 esac 8603 fi 8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8605 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8607 CFLAGS="$xorg_testset_save_CFLAGS" 8608 fi 8609 8610 found="no" 8611 8612 if test $found = "no" ; then 8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8615 fi 8616 8617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8619 fi 8620 8621 CFLAGS="$CFLAGS -Werror=array-bounds" 8622 8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8624 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8625 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8626 if eval test \${$cacheid+y} 8627 then : 8628 printf %s "(cached) " >&6 8629 else case e in #( 8630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8631 /* end confdefs.h. */ 8632 int i; 8633 int 8634 main (void) 8635 { 8636 8637 ; 8638 return 0; 8639 } 8640 _ACEOF 8641 if ac_fn_c_try_link "$LINENO" 8642 then : 8643 eval $cacheid=yes 8644 else case e in #( 8645 e) eval $cacheid=no ;; 8646 esac 8647 fi 8648 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8649 conftest$ac_exeext conftest.$ac_ext ;; 8650 esac 8651 fi 8652 8653 8654 CFLAGS="$xorg_testset_save_CFLAGS" 8655 8656 eval supported=\$$cacheid 8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8658 printf "%s\n" "$supported" >&6; } 8659 if test "$supported" = "yes" ; then 8660 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8661 found="yes" 8662 fi 8663 fi 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 xorg_testset_save_CFLAGS="$CFLAGS" 8680 8681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8684 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8685 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8686 then : 8687 printf %s "(cached) " >&6 8688 else case e in #( 8689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8690 /* end confdefs.h. */ 8691 int i; 8692 _ACEOF 8693 if ac_fn_c_try_compile "$LINENO" 8694 then : 8695 xorg_cv_cc_flag_unknown_warning_option=yes 8696 else case e in #( 8697 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8698 esac 8699 fi 8700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8701 esac 8702 fi 8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8704 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8706 CFLAGS="$xorg_testset_save_CFLAGS" 8707 fi 8708 8709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8712 fi 8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8715 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8716 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8717 then : 8718 printf %s "(cached) " >&6 8719 else case e in #( 8720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8721 /* end confdefs.h. */ 8722 int i; 8723 _ACEOF 8724 if ac_fn_c_try_compile "$LINENO" 8725 then : 8726 xorg_cv_cc_flag_unused_command_line_argument=yes 8727 else case e in #( 8728 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8729 esac 8730 fi 8731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8732 esac 8733 fi 8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8735 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8737 CFLAGS="$xorg_testset_save_CFLAGS" 8738 fi 8739 8740 found="no" 8741 8742 if test $found = "no" ; then 8743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8745 fi 8746 8747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8749 fi 8750 8751 CFLAGS="$CFLAGS -Werror=write-strings" 8752 8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8754 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8755 cacheid=xorg_cv_cc_flag__Werror_write_strings 8756 if eval test \${$cacheid+y} 8757 then : 8758 printf %s "(cached) " >&6 8759 else case e in #( 8760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8761 /* end confdefs.h. */ 8762 int i; 8763 int 8764 main (void) 8765 { 8766 8767 ; 8768 return 0; 8769 } 8770 _ACEOF 8771 if ac_fn_c_try_link "$LINENO" 8772 then : 8773 eval $cacheid=yes 8774 else case e in #( 8775 e) eval $cacheid=no ;; 8776 esac 8777 fi 8778 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8779 conftest$ac_exeext conftest.$ac_ext ;; 8780 esac 8781 fi 8782 8783 8784 CFLAGS="$xorg_testset_save_CFLAGS" 8785 8786 eval supported=\$$cacheid 8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8788 printf "%s\n" "$supported" >&6; } 8789 if test "$supported" = "yes" ; then 8790 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8791 found="yes" 8792 fi 8793 fi 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 xorg_testset_save_CFLAGS="$CFLAGS" 8810 8811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8814 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8815 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8816 then : 8817 printf %s "(cached) " >&6 8818 else case e in #( 8819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8820 /* end confdefs.h. */ 8821 int i; 8822 _ACEOF 8823 if ac_fn_c_try_compile "$LINENO" 8824 then : 8825 xorg_cv_cc_flag_unknown_warning_option=yes 8826 else case e in #( 8827 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8828 esac 8829 fi 8830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8831 esac 8832 fi 8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8834 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8836 CFLAGS="$xorg_testset_save_CFLAGS" 8837 fi 8838 8839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8842 fi 8843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8845 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8846 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8847 then : 8848 printf %s "(cached) " >&6 8849 else case e in #( 8850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8851 /* end confdefs.h. */ 8852 int i; 8853 _ACEOF 8854 if ac_fn_c_try_compile "$LINENO" 8855 then : 8856 xorg_cv_cc_flag_unused_command_line_argument=yes 8857 else case e in #( 8858 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8859 esac 8860 fi 8861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8862 esac 8863 fi 8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8865 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8867 CFLAGS="$xorg_testset_save_CFLAGS" 8868 fi 8869 8870 found="no" 8871 8872 if test $found = "no" ; then 8873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8875 fi 8876 8877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8879 fi 8880 8881 CFLAGS="$CFLAGS -Werror=address" 8882 8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8884 printf %s "checking if $CC supports -Werror=address... " >&6; } 8885 cacheid=xorg_cv_cc_flag__Werror_address 8886 if eval test \${$cacheid+y} 8887 then : 8888 printf %s "(cached) " >&6 8889 else case e in #( 8890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8891 /* end confdefs.h. */ 8892 int i; 8893 int 8894 main (void) 8895 { 8896 8897 ; 8898 return 0; 8899 } 8900 _ACEOF 8901 if ac_fn_c_try_link "$LINENO" 8902 then : 8903 eval $cacheid=yes 8904 else case e in #( 8905 e) eval $cacheid=no ;; 8906 esac 8907 fi 8908 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8909 conftest$ac_exeext conftest.$ac_ext ;; 8910 esac 8911 fi 8912 8913 8914 CFLAGS="$xorg_testset_save_CFLAGS" 8915 8916 eval supported=\$$cacheid 8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8918 printf "%s\n" "$supported" >&6; } 8919 if test "$supported" = "yes" ; then 8920 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8921 found="yes" 8922 fi 8923 fi 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 xorg_testset_save_CFLAGS="$CFLAGS" 8940 8941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8944 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8945 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8946 then : 8947 printf %s "(cached) " >&6 8948 else case e in #( 8949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8950 /* end confdefs.h. */ 8951 int i; 8952 _ACEOF 8953 if ac_fn_c_try_compile "$LINENO" 8954 then : 8955 xorg_cv_cc_flag_unknown_warning_option=yes 8956 else case e in #( 8957 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8958 esac 8959 fi 8960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8961 esac 8962 fi 8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8964 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8966 CFLAGS="$xorg_testset_save_CFLAGS" 8967 fi 8968 8969 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8972 fi 8973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8975 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8976 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8977 then : 8978 printf %s "(cached) " >&6 8979 else case e in #( 8980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8981 /* end confdefs.h. */ 8982 int i; 8983 _ACEOF 8984 if ac_fn_c_try_compile "$LINENO" 8985 then : 8986 xorg_cv_cc_flag_unused_command_line_argument=yes 8987 else case e in #( 8988 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8989 esac 8990 fi 8991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8992 esac 8993 fi 8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8995 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8997 CFLAGS="$xorg_testset_save_CFLAGS" 8998 fi 8999 9000 found="no" 9001 9002 if test $found = "no" ; then 9003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9005 fi 9006 9007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9009 fi 9010 9011 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9012 9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9014 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9015 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9016 if eval test \${$cacheid+y} 9017 then : 9018 printf %s "(cached) " >&6 9019 else case e in #( 9020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9021 /* end confdefs.h. */ 9022 int i; 9023 int 9024 main (void) 9025 { 9026 9027 ; 9028 return 0; 9029 } 9030 _ACEOF 9031 if ac_fn_c_try_link "$LINENO" 9032 then : 9033 eval $cacheid=yes 9034 else case e in #( 9035 e) eval $cacheid=no ;; 9036 esac 9037 fi 9038 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9039 conftest$ac_exeext conftest.$ac_ext ;; 9040 esac 9041 fi 9042 9043 9044 CFLAGS="$xorg_testset_save_CFLAGS" 9045 9046 eval supported=\$$cacheid 9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9048 printf "%s\n" "$supported" >&6; } 9049 if test "$supported" = "yes" ; then 9050 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9051 found="yes" 9052 fi 9053 fi 9054 9055 if test $found = "no" ; then 9056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9058 fi 9059 9060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9062 fi 9063 9064 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9065 9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9067 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9068 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9069 if eval test \${$cacheid+y} 9070 then : 9071 printf %s "(cached) " >&6 9072 else case e in #( 9073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9074 /* end confdefs.h. */ 9075 int i; 9076 int 9077 main (void) 9078 { 9079 9080 ; 9081 return 0; 9082 } 9083 _ACEOF 9084 if ac_fn_c_try_link "$LINENO" 9085 then : 9086 eval $cacheid=yes 9087 else case e in #( 9088 e) eval $cacheid=no ;; 9089 esac 9090 fi 9091 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9092 conftest$ac_exeext conftest.$ac_ext ;; 9093 esac 9094 fi 9095 9096 9097 CFLAGS="$xorg_testset_save_CFLAGS" 9098 9099 eval supported=\$$cacheid 9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9101 printf "%s\n" "$supported" >&6; } 9102 if test "$supported" = "yes" ; then 9103 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9104 found="yes" 9105 fi 9106 fi 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 xorg_testset_save_CFLAGS="$CFLAGS" 9123 9124 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9127 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9128 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9129 then : 9130 printf %s "(cached) " >&6 9131 else case e in #( 9132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9133 /* end confdefs.h. */ 9134 int i; 9135 _ACEOF 9136 if ac_fn_c_try_compile "$LINENO" 9137 then : 9138 xorg_cv_cc_flag_unknown_warning_option=yes 9139 else case e in #( 9140 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9141 esac 9142 fi 9143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9144 esac 9145 fi 9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9147 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9149 CFLAGS="$xorg_testset_save_CFLAGS" 9150 fi 9151 9152 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9155 fi 9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9158 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9159 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9160 then : 9161 printf %s "(cached) " >&6 9162 else case e in #( 9163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9164 /* end confdefs.h. */ 9165 int i; 9166 _ACEOF 9167 if ac_fn_c_try_compile "$LINENO" 9168 then : 9169 xorg_cv_cc_flag_unused_command_line_argument=yes 9170 else case e in #( 9171 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9172 esac 9173 fi 9174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9175 esac 9176 fi 9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9178 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9180 CFLAGS="$xorg_testset_save_CFLAGS" 9181 fi 9182 9183 found="no" 9184 9185 if test $found = "no" ; then 9186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9188 fi 9189 9190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9192 fi 9193 9194 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9195 9196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9197 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9198 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9199 if eval test \${$cacheid+y} 9200 then : 9201 printf %s "(cached) " >&6 9202 else case e in #( 9203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204 /* end confdefs.h. */ 9205 int i; 9206 int 9207 main (void) 9208 { 9209 9210 ; 9211 return 0; 9212 } 9213 _ACEOF 9214 if ac_fn_c_try_link "$LINENO" 9215 then : 9216 eval $cacheid=yes 9217 else case e in #( 9218 e) eval $cacheid=no ;; 9219 esac 9220 fi 9221 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9222 conftest$ac_exeext conftest.$ac_ext ;; 9223 esac 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 -Werror=pointer-to-int-cast" 9234 found="yes" 9235 fi 9236 fi 9237 9238 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9239 else 9240 { 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 9241 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;} 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 xorg_testset_save_CFLAGS="$CFLAGS" 9256 9257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9260 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9261 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9262 then : 9263 printf %s "(cached) " >&6 9264 else case e in #( 9265 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9266 /* end confdefs.h. */ 9267 int i; 9268 _ACEOF 9269 if ac_fn_c_try_compile "$LINENO" 9270 then : 9271 xorg_cv_cc_flag_unknown_warning_option=yes 9272 else case e in #( 9273 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9274 esac 9275 fi 9276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9277 esac 9278 fi 9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9280 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9282 CFLAGS="$xorg_testset_save_CFLAGS" 9283 fi 9284 9285 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9288 fi 9289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9291 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9292 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9293 then : 9294 printf %s "(cached) " >&6 9295 else case e in #( 9296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9297 /* end confdefs.h. */ 9298 int i; 9299 _ACEOF 9300 if ac_fn_c_try_compile "$LINENO" 9301 then : 9302 xorg_cv_cc_flag_unused_command_line_argument=yes 9303 else case e in #( 9304 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9305 esac 9306 fi 9307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9308 esac 9309 fi 9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9311 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9313 CFLAGS="$xorg_testset_save_CFLAGS" 9314 fi 9315 9316 found="no" 9317 9318 if test $found = "no" ; then 9319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9321 fi 9322 9323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9325 fi 9326 9327 CFLAGS="$CFLAGS -Wimplicit" 9328 9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9330 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9331 cacheid=xorg_cv_cc_flag__Wimplicit 9332 if eval test \${$cacheid+y} 9333 then : 9334 printf %s "(cached) " >&6 9335 else case e in #( 9336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9337 /* end confdefs.h. */ 9338 int i; 9339 int 9340 main (void) 9341 { 9342 9343 ; 9344 return 0; 9345 } 9346 _ACEOF 9347 if ac_fn_c_try_link "$LINENO" 9348 then : 9349 eval $cacheid=yes 9350 else case e in #( 9351 e) eval $cacheid=no ;; 9352 esac 9353 fi 9354 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9355 conftest$ac_exeext conftest.$ac_ext ;; 9356 esac 9357 fi 9358 9359 9360 CFLAGS="$xorg_testset_save_CFLAGS" 9361 9362 eval supported=\$$cacheid 9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9364 printf "%s\n" "$supported" >&6; } 9365 if test "$supported" = "yes" ; then 9366 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9367 found="yes" 9368 fi 9369 fi 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 xorg_testset_save_CFLAGS="$CFLAGS" 9386 9387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9390 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9391 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9392 then : 9393 printf %s "(cached) " >&6 9394 else case e in #( 9395 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9396 /* end confdefs.h. */ 9397 int i; 9398 _ACEOF 9399 if ac_fn_c_try_compile "$LINENO" 9400 then : 9401 xorg_cv_cc_flag_unknown_warning_option=yes 9402 else case e in #( 9403 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9404 esac 9405 fi 9406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9407 esac 9408 fi 9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9410 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9412 CFLAGS="$xorg_testset_save_CFLAGS" 9413 fi 9414 9415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9418 fi 9419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9421 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9422 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9423 then : 9424 printf %s "(cached) " >&6 9425 else case e in #( 9426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9427 /* end confdefs.h. */ 9428 int i; 9429 _ACEOF 9430 if ac_fn_c_try_compile "$LINENO" 9431 then : 9432 xorg_cv_cc_flag_unused_command_line_argument=yes 9433 else case e in #( 9434 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9435 esac 9436 fi 9437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9438 esac 9439 fi 9440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9441 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9443 CFLAGS="$xorg_testset_save_CFLAGS" 9444 fi 9445 9446 found="no" 9447 9448 if test $found = "no" ; then 9449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9451 fi 9452 9453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9455 fi 9456 9457 CFLAGS="$CFLAGS -Wnonnull" 9458 9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9460 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9461 cacheid=xorg_cv_cc_flag__Wnonnull 9462 if eval test \${$cacheid+y} 9463 then : 9464 printf %s "(cached) " >&6 9465 else case e in #( 9466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9467 /* end confdefs.h. */ 9468 int i; 9469 int 9470 main (void) 9471 { 9472 9473 ; 9474 return 0; 9475 } 9476 _ACEOF 9477 if ac_fn_c_try_link "$LINENO" 9478 then : 9479 eval $cacheid=yes 9480 else case e in #( 9481 e) eval $cacheid=no ;; 9482 esac 9483 fi 9484 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9485 conftest$ac_exeext conftest.$ac_ext ;; 9486 esac 9487 fi 9488 9489 9490 CFLAGS="$xorg_testset_save_CFLAGS" 9491 9492 eval supported=\$$cacheid 9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9494 printf "%s\n" "$supported" >&6; } 9495 if test "$supported" = "yes" ; then 9496 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9497 found="yes" 9498 fi 9499 fi 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 xorg_testset_save_CFLAGS="$CFLAGS" 9516 9517 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9520 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9521 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9522 then : 9523 printf %s "(cached) " >&6 9524 else case e in #( 9525 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9526 /* end confdefs.h. */ 9527 int i; 9528 _ACEOF 9529 if ac_fn_c_try_compile "$LINENO" 9530 then : 9531 xorg_cv_cc_flag_unknown_warning_option=yes 9532 else case e in #( 9533 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9534 esac 9535 fi 9536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9537 esac 9538 fi 9539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9540 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9542 CFLAGS="$xorg_testset_save_CFLAGS" 9543 fi 9544 9545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9548 fi 9549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9551 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9552 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9553 then : 9554 printf %s "(cached) " >&6 9555 else case e in #( 9556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9557 /* end confdefs.h. */ 9558 int i; 9559 _ACEOF 9560 if ac_fn_c_try_compile "$LINENO" 9561 then : 9562 xorg_cv_cc_flag_unused_command_line_argument=yes 9563 else case e in #( 9564 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9565 esac 9566 fi 9567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9568 esac 9569 fi 9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9571 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574 fi 9575 9576 found="no" 9577 9578 if test $found = "no" ; then 9579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9581 fi 9582 9583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9585 fi 9586 9587 CFLAGS="$CFLAGS -Winit-self" 9588 9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9590 printf %s "checking if $CC supports -Winit-self... " >&6; } 9591 cacheid=xorg_cv_cc_flag__Winit_self 9592 if eval test \${$cacheid+y} 9593 then : 9594 printf %s "(cached) " >&6 9595 else case e in #( 9596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9597 /* end confdefs.h. */ 9598 int i; 9599 int 9600 main (void) 9601 { 9602 9603 ; 9604 return 0; 9605 } 9606 _ACEOF 9607 if ac_fn_c_try_link "$LINENO" 9608 then : 9609 eval $cacheid=yes 9610 else case e in #( 9611 e) eval $cacheid=no ;; 9612 esac 9613 fi 9614 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9615 conftest$ac_exeext conftest.$ac_ext ;; 9616 esac 9617 fi 9618 9619 9620 CFLAGS="$xorg_testset_save_CFLAGS" 9621 9622 eval supported=\$$cacheid 9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9624 printf "%s\n" "$supported" >&6; } 9625 if test "$supported" = "yes" ; then 9626 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9627 found="yes" 9628 fi 9629 fi 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 xorg_testset_save_CFLAGS="$CFLAGS" 9646 9647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9651 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9652 then : 9653 printf %s "(cached) " >&6 9654 else case e in #( 9655 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9656 /* end confdefs.h. */ 9657 int i; 9658 _ACEOF 9659 if ac_fn_c_try_compile "$LINENO" 9660 then : 9661 xorg_cv_cc_flag_unknown_warning_option=yes 9662 else case e in #( 9663 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9664 esac 9665 fi 9666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9667 esac 9668 fi 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9670 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9672 CFLAGS="$xorg_testset_save_CFLAGS" 9673 fi 9674 9675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9678 fi 9679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9681 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9682 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9683 then : 9684 printf %s "(cached) " >&6 9685 else case e in #( 9686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9687 /* end confdefs.h. */ 9688 int i; 9689 _ACEOF 9690 if ac_fn_c_try_compile "$LINENO" 9691 then : 9692 xorg_cv_cc_flag_unused_command_line_argument=yes 9693 else case e in #( 9694 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9695 esac 9696 fi 9697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9698 esac 9699 fi 9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9701 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9703 CFLAGS="$xorg_testset_save_CFLAGS" 9704 fi 9705 9706 found="no" 9707 9708 if test $found = "no" ; then 9709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9711 fi 9712 9713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9715 fi 9716 9717 CFLAGS="$CFLAGS -Wmain" 9718 9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9720 printf %s "checking if $CC supports -Wmain... " >&6; } 9721 cacheid=xorg_cv_cc_flag__Wmain 9722 if eval test \${$cacheid+y} 9723 then : 9724 printf %s "(cached) " >&6 9725 else case e in #( 9726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9727 /* end confdefs.h. */ 9728 int i; 9729 int 9730 main (void) 9731 { 9732 9733 ; 9734 return 0; 9735 } 9736 _ACEOF 9737 if ac_fn_c_try_link "$LINENO" 9738 then : 9739 eval $cacheid=yes 9740 else case e in #( 9741 e) eval $cacheid=no ;; 9742 esac 9743 fi 9744 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9745 conftest$ac_exeext conftest.$ac_ext ;; 9746 esac 9747 fi 9748 9749 9750 CFLAGS="$xorg_testset_save_CFLAGS" 9751 9752 eval supported=\$$cacheid 9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9754 printf "%s\n" "$supported" >&6; } 9755 if test "$supported" = "yes" ; then 9756 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9757 found="yes" 9758 fi 9759 fi 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 xorg_testset_save_CFLAGS="$CFLAGS" 9776 9777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9780 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9781 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9782 then : 9783 printf %s "(cached) " >&6 9784 else case e in #( 9785 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9786 /* end confdefs.h. */ 9787 int i; 9788 _ACEOF 9789 if ac_fn_c_try_compile "$LINENO" 9790 then : 9791 xorg_cv_cc_flag_unknown_warning_option=yes 9792 else case e in #( 9793 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9794 esac 9795 fi 9796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9797 esac 9798 fi 9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9800 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803 fi 9804 9805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9808 fi 9809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9811 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9812 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9813 then : 9814 printf %s "(cached) " >&6 9815 else case e in #( 9816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9817 /* end confdefs.h. */ 9818 int i; 9819 _ACEOF 9820 if ac_fn_c_try_compile "$LINENO" 9821 then : 9822 xorg_cv_cc_flag_unused_command_line_argument=yes 9823 else case e in #( 9824 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9825 esac 9826 fi 9827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9828 esac 9829 fi 9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9831 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9833 CFLAGS="$xorg_testset_save_CFLAGS" 9834 fi 9835 9836 found="no" 9837 9838 if test $found = "no" ; then 9839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9841 fi 9842 9843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9845 fi 9846 9847 CFLAGS="$CFLAGS -Wmissing-braces" 9848 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9850 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9851 cacheid=xorg_cv_cc_flag__Wmissing_braces 9852 if eval test \${$cacheid+y} 9853 then : 9854 printf %s "(cached) " >&6 9855 else case e in #( 9856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9857 /* end confdefs.h. */ 9858 int i; 9859 int 9860 main (void) 9861 { 9862 9863 ; 9864 return 0; 9865 } 9866 _ACEOF 9867 if ac_fn_c_try_link "$LINENO" 9868 then : 9869 eval $cacheid=yes 9870 else case e in #( 9871 e) eval $cacheid=no ;; 9872 esac 9873 fi 9874 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9875 conftest$ac_exeext conftest.$ac_ext ;; 9876 esac 9877 fi 9878 9879 9880 CFLAGS="$xorg_testset_save_CFLAGS" 9881 9882 eval supported=\$$cacheid 9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9884 printf "%s\n" "$supported" >&6; } 9885 if test "$supported" = "yes" ; then 9886 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9887 found="yes" 9888 fi 9889 fi 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 xorg_testset_save_CFLAGS="$CFLAGS" 9906 9907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9910 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9911 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9912 then : 9913 printf %s "(cached) " >&6 9914 else case e in #( 9915 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9916 /* end confdefs.h. */ 9917 int i; 9918 _ACEOF 9919 if ac_fn_c_try_compile "$LINENO" 9920 then : 9921 xorg_cv_cc_flag_unknown_warning_option=yes 9922 else case e in #( 9923 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9924 esac 9925 fi 9926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9927 esac 9928 fi 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9930 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9932 CFLAGS="$xorg_testset_save_CFLAGS" 9933 fi 9934 9935 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9938 fi 9939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9941 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9942 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9943 then : 9944 printf %s "(cached) " >&6 9945 else case e in #( 9946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947 /* end confdefs.h. */ 9948 int i; 9949 _ACEOF 9950 if ac_fn_c_try_compile "$LINENO" 9951 then : 9952 xorg_cv_cc_flag_unused_command_line_argument=yes 9953 else case e in #( 9954 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9955 esac 9956 fi 9957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9958 esac 9959 fi 9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9961 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9963 CFLAGS="$xorg_testset_save_CFLAGS" 9964 fi 9965 9966 found="no" 9967 9968 if test $found = "no" ; then 9969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9971 fi 9972 9973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9975 fi 9976 9977 CFLAGS="$CFLAGS -Wsequence-point" 9978 9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9980 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9981 cacheid=xorg_cv_cc_flag__Wsequence_point 9982 if eval test \${$cacheid+y} 9983 then : 9984 printf %s "(cached) " >&6 9985 else case e in #( 9986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9987 /* end confdefs.h. */ 9988 int i; 9989 int 9990 main (void) 9991 { 9992 9993 ; 9994 return 0; 9995 } 9996 _ACEOF 9997 if ac_fn_c_try_link "$LINENO" 9998 then : 9999 eval $cacheid=yes 10000 else case e in #( 10001 e) eval $cacheid=no ;; 10002 esac 10003 fi 10004 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10005 conftest$ac_exeext conftest.$ac_ext ;; 10006 esac 10007 fi 10008 10009 10010 CFLAGS="$xorg_testset_save_CFLAGS" 10011 10012 eval supported=\$$cacheid 10013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10014 printf "%s\n" "$supported" >&6; } 10015 if test "$supported" = "yes" ; then 10016 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10017 found="yes" 10018 fi 10019 fi 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 xorg_testset_save_CFLAGS="$CFLAGS" 10036 10037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10040 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10041 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10042 then : 10043 printf %s "(cached) " >&6 10044 else case e in #( 10045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10046 /* end confdefs.h. */ 10047 int i; 10048 _ACEOF 10049 if ac_fn_c_try_compile "$LINENO" 10050 then : 10051 xorg_cv_cc_flag_unknown_warning_option=yes 10052 else case e in #( 10053 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10054 esac 10055 fi 10056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10057 esac 10058 fi 10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10060 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10062 CFLAGS="$xorg_testset_save_CFLAGS" 10063 fi 10064 10065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10068 fi 10069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10071 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10072 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10073 then : 10074 printf %s "(cached) " >&6 10075 else case e in #( 10076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10077 /* end confdefs.h. */ 10078 int i; 10079 _ACEOF 10080 if ac_fn_c_try_compile "$LINENO" 10081 then : 10082 xorg_cv_cc_flag_unused_command_line_argument=yes 10083 else case e in #( 10084 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10085 esac 10086 fi 10087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10088 esac 10089 fi 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10093 CFLAGS="$xorg_testset_save_CFLAGS" 10094 fi 10095 10096 found="no" 10097 10098 if test $found = "no" ; then 10099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10101 fi 10102 10103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10105 fi 10106 10107 CFLAGS="$CFLAGS -Wreturn-type" 10108 10109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10110 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10111 cacheid=xorg_cv_cc_flag__Wreturn_type 10112 if eval test \${$cacheid+y} 10113 then : 10114 printf %s "(cached) " >&6 10115 else case e in #( 10116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10117 /* end confdefs.h. */ 10118 int i; 10119 int 10120 main (void) 10121 { 10122 10123 ; 10124 return 0; 10125 } 10126 _ACEOF 10127 if ac_fn_c_try_link "$LINENO" 10128 then : 10129 eval $cacheid=yes 10130 else case e in #( 10131 e) eval $cacheid=no ;; 10132 esac 10133 fi 10134 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10135 conftest$ac_exeext conftest.$ac_ext ;; 10136 esac 10137 fi 10138 10139 10140 CFLAGS="$xorg_testset_save_CFLAGS" 10141 10142 eval supported=\$$cacheid 10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10144 printf "%s\n" "$supported" >&6; } 10145 if test "$supported" = "yes" ; then 10146 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10147 found="yes" 10148 fi 10149 fi 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 xorg_testset_save_CFLAGS="$CFLAGS" 10166 10167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10170 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10171 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10172 then : 10173 printf %s "(cached) " >&6 10174 else case e in #( 10175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10176 /* end confdefs.h. */ 10177 int i; 10178 _ACEOF 10179 if ac_fn_c_try_compile "$LINENO" 10180 then : 10181 xorg_cv_cc_flag_unknown_warning_option=yes 10182 else case e in #( 10183 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10184 esac 10185 fi 10186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10187 esac 10188 fi 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10190 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10192 CFLAGS="$xorg_testset_save_CFLAGS" 10193 fi 10194 10195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10198 fi 10199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10201 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10202 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10203 then : 10204 printf %s "(cached) " >&6 10205 else case e in #( 10206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207 /* end confdefs.h. */ 10208 int i; 10209 _ACEOF 10210 if ac_fn_c_try_compile "$LINENO" 10211 then : 10212 xorg_cv_cc_flag_unused_command_line_argument=yes 10213 else case e in #( 10214 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10215 esac 10216 fi 10217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10218 esac 10219 fi 10220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10221 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10223 CFLAGS="$xorg_testset_save_CFLAGS" 10224 fi 10225 10226 found="no" 10227 10228 if test $found = "no" ; then 10229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10231 fi 10232 10233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10235 fi 10236 10237 CFLAGS="$CFLAGS -Wtrigraphs" 10238 10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10240 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10241 cacheid=xorg_cv_cc_flag__Wtrigraphs 10242 if eval test \${$cacheid+y} 10243 then : 10244 printf %s "(cached) " >&6 10245 else case e in #( 10246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10247 /* end confdefs.h. */ 10248 int i; 10249 int 10250 main (void) 10251 { 10252 10253 ; 10254 return 0; 10255 } 10256 _ACEOF 10257 if ac_fn_c_try_link "$LINENO" 10258 then : 10259 eval $cacheid=yes 10260 else case e in #( 10261 e) eval $cacheid=no ;; 10262 esac 10263 fi 10264 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10265 conftest$ac_exeext conftest.$ac_ext ;; 10266 esac 10267 fi 10268 10269 10270 CFLAGS="$xorg_testset_save_CFLAGS" 10271 10272 eval supported=\$$cacheid 10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10274 printf "%s\n" "$supported" >&6; } 10275 if test "$supported" = "yes" ; then 10276 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10277 found="yes" 10278 fi 10279 fi 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 xorg_testset_save_CFLAGS="$CFLAGS" 10296 10297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10300 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10301 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10302 then : 10303 printf %s "(cached) " >&6 10304 else case e in #( 10305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10306 /* end confdefs.h. */ 10307 int i; 10308 _ACEOF 10309 if ac_fn_c_try_compile "$LINENO" 10310 then : 10311 xorg_cv_cc_flag_unknown_warning_option=yes 10312 else case e in #( 10313 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10314 esac 10315 fi 10316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10317 esac 10318 fi 10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10320 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10322 CFLAGS="$xorg_testset_save_CFLAGS" 10323 fi 10324 10325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10328 fi 10329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10331 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10332 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10333 then : 10334 printf %s "(cached) " >&6 10335 else case e in #( 10336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10337 /* end confdefs.h. */ 10338 int i; 10339 _ACEOF 10340 if ac_fn_c_try_compile "$LINENO" 10341 then : 10342 xorg_cv_cc_flag_unused_command_line_argument=yes 10343 else case e in #( 10344 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10345 esac 10346 fi 10347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10348 esac 10349 fi 10350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10351 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10353 CFLAGS="$xorg_testset_save_CFLAGS" 10354 fi 10355 10356 found="no" 10357 10358 if test $found = "no" ; then 10359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10361 fi 10362 10363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10365 fi 10366 10367 CFLAGS="$CFLAGS -Warray-bounds" 10368 10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10370 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10371 cacheid=xorg_cv_cc_flag__Warray_bounds 10372 if eval test \${$cacheid+y} 10373 then : 10374 printf %s "(cached) " >&6 10375 else case e in #( 10376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10377 /* end confdefs.h. */ 10378 int i; 10379 int 10380 main (void) 10381 { 10382 10383 ; 10384 return 0; 10385 } 10386 _ACEOF 10387 if ac_fn_c_try_link "$LINENO" 10388 then : 10389 eval $cacheid=yes 10390 else case e in #( 10391 e) eval $cacheid=no ;; 10392 esac 10393 fi 10394 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10395 conftest$ac_exeext conftest.$ac_ext ;; 10396 esac 10397 fi 10398 10399 10400 CFLAGS="$xorg_testset_save_CFLAGS" 10401 10402 eval supported=\$$cacheid 10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10404 printf "%s\n" "$supported" >&6; } 10405 if test "$supported" = "yes" ; then 10406 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10407 found="yes" 10408 fi 10409 fi 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 xorg_testset_save_CFLAGS="$CFLAGS" 10426 10427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10430 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10431 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10432 then : 10433 printf %s "(cached) " >&6 10434 else case e in #( 10435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10436 /* end confdefs.h. */ 10437 int i; 10438 _ACEOF 10439 if ac_fn_c_try_compile "$LINENO" 10440 then : 10441 xorg_cv_cc_flag_unknown_warning_option=yes 10442 else case e in #( 10443 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10444 esac 10445 fi 10446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10447 esac 10448 fi 10449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10450 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10452 CFLAGS="$xorg_testset_save_CFLAGS" 10453 fi 10454 10455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10458 fi 10459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10461 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10462 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10463 then : 10464 printf %s "(cached) " >&6 10465 else case e in #( 10466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10467 /* end confdefs.h. */ 10468 int i; 10469 _ACEOF 10470 if ac_fn_c_try_compile "$LINENO" 10471 then : 10472 xorg_cv_cc_flag_unused_command_line_argument=yes 10473 else case e in #( 10474 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10475 esac 10476 fi 10477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10478 esac 10479 fi 10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10481 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10483 CFLAGS="$xorg_testset_save_CFLAGS" 10484 fi 10485 10486 found="no" 10487 10488 if test $found = "no" ; then 10489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10491 fi 10492 10493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10495 fi 10496 10497 CFLAGS="$CFLAGS -Wwrite-strings" 10498 10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10500 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10501 cacheid=xorg_cv_cc_flag__Wwrite_strings 10502 if eval test \${$cacheid+y} 10503 then : 10504 printf %s "(cached) " >&6 10505 else case e in #( 10506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10507 /* end confdefs.h. */ 10508 int i; 10509 int 10510 main (void) 10511 { 10512 10513 ; 10514 return 0; 10515 } 10516 _ACEOF 10517 if ac_fn_c_try_link "$LINENO" 10518 then : 10519 eval $cacheid=yes 10520 else case e in #( 10521 e) eval $cacheid=no ;; 10522 esac 10523 fi 10524 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10525 conftest$ac_exeext conftest.$ac_ext ;; 10526 esac 10527 fi 10528 10529 10530 CFLAGS="$xorg_testset_save_CFLAGS" 10531 10532 eval supported=\$$cacheid 10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10534 printf "%s\n" "$supported" >&6; } 10535 if test "$supported" = "yes" ; then 10536 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10537 found="yes" 10538 fi 10539 fi 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 xorg_testset_save_CFLAGS="$CFLAGS" 10556 10557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10560 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10561 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10562 then : 10563 printf %s "(cached) " >&6 10564 else case e in #( 10565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10566 /* end confdefs.h. */ 10567 int i; 10568 _ACEOF 10569 if ac_fn_c_try_compile "$LINENO" 10570 then : 10571 xorg_cv_cc_flag_unknown_warning_option=yes 10572 else case e in #( 10573 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10574 esac 10575 fi 10576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10577 esac 10578 fi 10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10580 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10582 CFLAGS="$xorg_testset_save_CFLAGS" 10583 fi 10584 10585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10588 fi 10589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10591 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10592 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10593 then : 10594 printf %s "(cached) " >&6 10595 else case e in #( 10596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10597 /* end confdefs.h. */ 10598 int i; 10599 _ACEOF 10600 if ac_fn_c_try_compile "$LINENO" 10601 then : 10602 xorg_cv_cc_flag_unused_command_line_argument=yes 10603 else case e in #( 10604 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10605 esac 10606 fi 10607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10608 esac 10609 fi 10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10611 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10613 CFLAGS="$xorg_testset_save_CFLAGS" 10614 fi 10615 10616 found="no" 10617 10618 if test $found = "no" ; then 10619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10621 fi 10622 10623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10625 fi 10626 10627 CFLAGS="$CFLAGS -Waddress" 10628 10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10630 printf %s "checking if $CC supports -Waddress... " >&6; } 10631 cacheid=xorg_cv_cc_flag__Waddress 10632 if eval test \${$cacheid+y} 10633 then : 10634 printf %s "(cached) " >&6 10635 else case e in #( 10636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10637 /* end confdefs.h. */ 10638 int i; 10639 int 10640 main (void) 10641 { 10642 10643 ; 10644 return 0; 10645 } 10646 _ACEOF 10647 if ac_fn_c_try_link "$LINENO" 10648 then : 10649 eval $cacheid=yes 10650 else case e in #( 10651 e) eval $cacheid=no ;; 10652 esac 10653 fi 10654 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10655 conftest$ac_exeext conftest.$ac_ext ;; 10656 esac 10657 fi 10658 10659 10660 CFLAGS="$xorg_testset_save_CFLAGS" 10661 10662 eval supported=\$$cacheid 10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10664 printf "%s\n" "$supported" >&6; } 10665 if test "$supported" = "yes" ; then 10666 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10667 found="yes" 10668 fi 10669 fi 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 xorg_testset_save_CFLAGS="$CFLAGS" 10686 10687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10690 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10691 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10692 then : 10693 printf %s "(cached) " >&6 10694 else case e in #( 10695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10696 /* end confdefs.h. */ 10697 int i; 10698 _ACEOF 10699 if ac_fn_c_try_compile "$LINENO" 10700 then : 10701 xorg_cv_cc_flag_unknown_warning_option=yes 10702 else case e in #( 10703 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10704 esac 10705 fi 10706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10707 esac 10708 fi 10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10710 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10712 CFLAGS="$xorg_testset_save_CFLAGS" 10713 fi 10714 10715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10718 fi 10719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10721 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10722 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10723 then : 10724 printf %s "(cached) " >&6 10725 else case e in #( 10726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10727 /* end confdefs.h. */ 10728 int i; 10729 _ACEOF 10730 if ac_fn_c_try_compile "$LINENO" 10731 then : 10732 xorg_cv_cc_flag_unused_command_line_argument=yes 10733 else case e in #( 10734 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10735 esac 10736 fi 10737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10738 esac 10739 fi 10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10741 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10743 CFLAGS="$xorg_testset_save_CFLAGS" 10744 fi 10745 10746 found="no" 10747 10748 if test $found = "no" ; then 10749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10751 fi 10752 10753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10755 fi 10756 10757 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10758 10759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10760 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10761 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10762 if eval test \${$cacheid+y} 10763 then : 10764 printf %s "(cached) " >&6 10765 else case e in #( 10766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10767 /* end confdefs.h. */ 10768 int i; 10769 int 10770 main (void) 10771 { 10772 10773 ; 10774 return 0; 10775 } 10776 _ACEOF 10777 if ac_fn_c_try_link "$LINENO" 10778 then : 10779 eval $cacheid=yes 10780 else case e in #( 10781 e) eval $cacheid=no ;; 10782 esac 10783 fi 10784 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10785 conftest$ac_exeext conftest.$ac_ext ;; 10786 esac 10787 fi 10788 10789 10790 CFLAGS="$xorg_testset_save_CFLAGS" 10791 10792 eval supported=\$$cacheid 10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10794 printf "%s\n" "$supported" >&6; } 10795 if test "$supported" = "yes" ; then 10796 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10797 found="yes" 10798 fi 10799 fi 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 xorg_testset_save_CFLAGS="$CFLAGS" 10816 10817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10820 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10821 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10822 then : 10823 printf %s "(cached) " >&6 10824 else case e in #( 10825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10826 /* end confdefs.h. */ 10827 int i; 10828 _ACEOF 10829 if ac_fn_c_try_compile "$LINENO" 10830 then : 10831 xorg_cv_cc_flag_unknown_warning_option=yes 10832 else case e in #( 10833 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10834 esac 10835 fi 10836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10837 esac 10838 fi 10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10840 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10842 CFLAGS="$xorg_testset_save_CFLAGS" 10843 fi 10844 10845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10848 fi 10849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10851 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10852 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10853 then : 10854 printf %s "(cached) " >&6 10855 else case e in #( 10856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10857 /* end confdefs.h. */ 10858 int i; 10859 _ACEOF 10860 if ac_fn_c_try_compile "$LINENO" 10861 then : 10862 xorg_cv_cc_flag_unused_command_line_argument=yes 10863 else case e in #( 10864 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10865 esac 10866 fi 10867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10868 esac 10869 fi 10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10871 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10873 CFLAGS="$xorg_testset_save_CFLAGS" 10874 fi 10875 10876 found="no" 10877 10878 if test $found = "no" ; then 10879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10881 fi 10882 10883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10885 fi 10886 10887 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10888 10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10890 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10891 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10892 if eval test \${$cacheid+y} 10893 then : 10894 printf %s "(cached) " >&6 10895 else case e in #( 10896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10897 /* end confdefs.h. */ 10898 int i; 10899 int 10900 main (void) 10901 { 10902 10903 ; 10904 return 0; 10905 } 10906 _ACEOF 10907 if ac_fn_c_try_link "$LINENO" 10908 then : 10909 eval $cacheid=yes 10910 else case e in #( 10911 e) eval $cacheid=no ;; 10912 esac 10913 fi 10914 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10915 conftest$ac_exeext conftest.$ac_ext ;; 10916 esac 10917 fi 10918 10919 10920 CFLAGS="$xorg_testset_save_CFLAGS" 10921 10922 eval supported=\$$cacheid 10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10924 printf "%s\n" "$supported" >&6; } 10925 if test "$supported" = "yes" ; then 10926 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10927 found="yes" 10928 fi 10929 fi 10930 10931 10932 fi 10933 10934 10935 10936 10937 10938 10939 10940 CWARNFLAGS="$BASE_CFLAGS" 10941 if test "x$GCC" = xyes ; then 10942 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10943 fi 10944 10945 10946 10947 10948 10949 10950 10951 10952 # Check whether --enable-strict-compilation was given. 10953 if test ${enable_strict_compilation+y} 10954 then : 10955 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10956 else case e in #( 10957 e) STRICT_COMPILE=no ;; 10958 esac 10959 fi 10960 10961 10962 10963 10964 10965 10966 STRICT_CFLAGS="" 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 xorg_testset_save_CFLAGS="$CFLAGS" 10981 10982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10985 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10986 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10987 then : 10988 printf %s "(cached) " >&6 10989 else case e in #( 10990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10991 /* end confdefs.h. */ 10992 int i; 10993 _ACEOF 10994 if ac_fn_c_try_compile "$LINENO" 10995 then : 10996 xorg_cv_cc_flag_unknown_warning_option=yes 10997 else case e in #( 10998 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10999 esac 11000 fi 11001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11002 esac 11003 fi 11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11005 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11007 CFLAGS="$xorg_testset_save_CFLAGS" 11008 fi 11009 11010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11013 fi 11014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11016 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11017 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11018 then : 11019 printf %s "(cached) " >&6 11020 else case e in #( 11021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11022 /* end confdefs.h. */ 11023 int i; 11024 _ACEOF 11025 if ac_fn_c_try_compile "$LINENO" 11026 then : 11027 xorg_cv_cc_flag_unused_command_line_argument=yes 11028 else case e in #( 11029 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11030 esac 11031 fi 11032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11033 esac 11034 fi 11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11036 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11038 CFLAGS="$xorg_testset_save_CFLAGS" 11039 fi 11040 11041 found="no" 11042 11043 if test $found = "no" ; then 11044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11046 fi 11047 11048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11050 fi 11051 11052 CFLAGS="$CFLAGS -pedantic" 11053 11054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11055 printf %s "checking if $CC supports -pedantic... " >&6; } 11056 cacheid=xorg_cv_cc_flag__pedantic 11057 if eval test \${$cacheid+y} 11058 then : 11059 printf %s "(cached) " >&6 11060 else case e in #( 11061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11062 /* end confdefs.h. */ 11063 int i; 11064 int 11065 main (void) 11066 { 11067 11068 ; 11069 return 0; 11070 } 11071 _ACEOF 11072 if ac_fn_c_try_link "$LINENO" 11073 then : 11074 eval $cacheid=yes 11075 else case e in #( 11076 e) eval $cacheid=no ;; 11077 esac 11078 fi 11079 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11080 conftest$ac_exeext conftest.$ac_ext ;; 11081 esac 11082 fi 11083 11084 11085 CFLAGS="$xorg_testset_save_CFLAGS" 11086 11087 eval supported=\$$cacheid 11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11089 printf "%s\n" "$supported" >&6; } 11090 if test "$supported" = "yes" ; then 11091 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11092 found="yes" 11093 fi 11094 fi 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 xorg_testset_save_CFLAGS="$CFLAGS" 11111 11112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11115 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11116 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11117 then : 11118 printf %s "(cached) " >&6 11119 else case e in #( 11120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11121 /* end confdefs.h. */ 11122 int i; 11123 _ACEOF 11124 if ac_fn_c_try_compile "$LINENO" 11125 then : 11126 xorg_cv_cc_flag_unknown_warning_option=yes 11127 else case e in #( 11128 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11129 esac 11130 fi 11131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11132 esac 11133 fi 11134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11135 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11137 CFLAGS="$xorg_testset_save_CFLAGS" 11138 fi 11139 11140 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11143 fi 11144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11146 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11147 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11148 then : 11149 printf %s "(cached) " >&6 11150 else case e in #( 11151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11152 /* end confdefs.h. */ 11153 int i; 11154 _ACEOF 11155 if ac_fn_c_try_compile "$LINENO" 11156 then : 11157 xorg_cv_cc_flag_unused_command_line_argument=yes 11158 else case e in #( 11159 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11160 esac 11161 fi 11162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11163 esac 11164 fi 11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11166 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11168 CFLAGS="$xorg_testset_save_CFLAGS" 11169 fi 11170 11171 found="no" 11172 11173 if test $found = "no" ; then 11174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11176 fi 11177 11178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11180 fi 11181 11182 CFLAGS="$CFLAGS -Werror" 11183 11184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11185 printf %s "checking if $CC supports -Werror... " >&6; } 11186 cacheid=xorg_cv_cc_flag__Werror 11187 if eval test \${$cacheid+y} 11188 then : 11189 printf %s "(cached) " >&6 11190 else case e in #( 11191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11192 /* end confdefs.h. */ 11193 int i; 11194 int 11195 main (void) 11196 { 11197 11198 ; 11199 return 0; 11200 } 11201 _ACEOF 11202 if ac_fn_c_try_link "$LINENO" 11203 then : 11204 eval $cacheid=yes 11205 else case e in #( 11206 e) eval $cacheid=no ;; 11207 esac 11208 fi 11209 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11210 conftest$ac_exeext conftest.$ac_ext ;; 11211 esac 11212 fi 11213 11214 11215 CFLAGS="$xorg_testset_save_CFLAGS" 11216 11217 eval supported=\$$cacheid 11218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11219 printf "%s\n" "$supported" >&6; } 11220 if test "$supported" = "yes" ; then 11221 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11222 found="yes" 11223 fi 11224 fi 11225 11226 if test $found = "no" ; then 11227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11229 fi 11230 11231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11233 fi 11234 11235 CFLAGS="$CFLAGS -errwarn" 11236 11237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11238 printf %s "checking if $CC supports -errwarn... " >&6; } 11239 cacheid=xorg_cv_cc_flag__errwarn 11240 if eval test \${$cacheid+y} 11241 then : 11242 printf %s "(cached) " >&6 11243 else case e in #( 11244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11245 /* end confdefs.h. */ 11246 int i; 11247 int 11248 main (void) 11249 { 11250 11251 ; 11252 return 0; 11253 } 11254 _ACEOF 11255 if ac_fn_c_try_link "$LINENO" 11256 then : 11257 eval $cacheid=yes 11258 else case e in #( 11259 e) eval $cacheid=no ;; 11260 esac 11261 fi 11262 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11263 conftest$ac_exeext conftest.$ac_ext ;; 11264 esac 11265 fi 11266 11267 11268 CFLAGS="$xorg_testset_save_CFLAGS" 11269 11270 eval supported=\$$cacheid 11271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11272 printf "%s\n" "$supported" >&6; } 11273 if test "$supported" = "yes" ; then 11274 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11275 found="yes" 11276 fi 11277 fi 11278 11279 11280 11281 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11282 # activate it with -Werror, so we add it here explicitly. 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 xorg_testset_save_CFLAGS="$CFLAGS" 11297 11298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11302 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11303 then : 11304 printf %s "(cached) " >&6 11305 else case e in #( 11306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11307 /* end confdefs.h. */ 11308 int i; 11309 _ACEOF 11310 if ac_fn_c_try_compile "$LINENO" 11311 then : 11312 xorg_cv_cc_flag_unknown_warning_option=yes 11313 else case e in #( 11314 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11315 esac 11316 fi 11317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11318 esac 11319 fi 11320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11321 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11323 CFLAGS="$xorg_testset_save_CFLAGS" 11324 fi 11325 11326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11329 fi 11330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11332 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11333 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11334 then : 11335 printf %s "(cached) " >&6 11336 else case e in #( 11337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11338 /* end confdefs.h. */ 11339 int i; 11340 _ACEOF 11341 if ac_fn_c_try_compile "$LINENO" 11342 then : 11343 xorg_cv_cc_flag_unused_command_line_argument=yes 11344 else case e in #( 11345 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11346 esac 11347 fi 11348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11349 esac 11350 fi 11351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11352 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11354 CFLAGS="$xorg_testset_save_CFLAGS" 11355 fi 11356 11357 found="no" 11358 11359 if test $found = "no" ; then 11360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11362 fi 11363 11364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11366 fi 11367 11368 CFLAGS="$CFLAGS -Werror=attributes" 11369 11370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11371 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11372 cacheid=xorg_cv_cc_flag__Werror_attributes 11373 if eval test \${$cacheid+y} 11374 then : 11375 printf %s "(cached) " >&6 11376 else case e in #( 11377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11378 /* end confdefs.h. */ 11379 int i; 11380 int 11381 main (void) 11382 { 11383 11384 ; 11385 return 0; 11386 } 11387 _ACEOF 11388 if ac_fn_c_try_link "$LINENO" 11389 then : 11390 eval $cacheid=yes 11391 else case e in #( 11392 e) eval $cacheid=no ;; 11393 esac 11394 fi 11395 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11396 conftest$ac_exeext conftest.$ac_ext ;; 11397 esac 11398 fi 11399 11400 11401 CFLAGS="$xorg_testset_save_CFLAGS" 11402 11403 eval supported=\$$cacheid 11404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11405 printf "%s\n" "$supported" >&6; } 11406 if test "$supported" = "yes" ; then 11407 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11408 found="yes" 11409 fi 11410 fi 11411 11412 11413 11414 if test "x$STRICT_COMPILE" = "xyes"; then 11415 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11416 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11417 fi 11418 11419 11420 11421 11422 11423 11424 11425 11426 cat >>confdefs.h <<_ACEOF 11427 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11428 _ACEOF 11429 11430 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11431 if test "x$PVM" = "x"; then 11432 PVM="0" 11433 fi 11434 11435 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11436 11437 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11438 if test "x$PVP" = "x"; then 11439 PVP="0" 11440 fi 11441 11442 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11443 11444 11445 11446 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11447 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11448 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11449 touch \$(top_srcdir)/ChangeLog; \ 11450 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11451 11452 11453 11454 11455 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11456 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11457 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11458 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11459 touch \$(top_srcdir)/INSTALL; \ 11460 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11461 11462 11463 11464 11465 11466 11467 case $host_os in 11468 solaris*) 11469 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11470 # check for a man page file found in later versions that use 11471 # traditional section numbers instead 11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11473 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11474 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11475 then : 11476 printf %s "(cached) " >&6 11477 else case e in #( 11478 e) test "$cross_compiling" = yes && 11479 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11480 if test -r "/usr/share/man/man7/attributes.7"; then 11481 ac_cv_file__usr_share_man_man7_attributes_7=yes 11482 else 11483 ac_cv_file__usr_share_man_man7_attributes_7=no 11484 fi ;; 11485 esac 11486 fi 11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11488 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11489 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11490 then : 11491 SYSV_MAN_SECTIONS=false 11492 else case e in #( 11493 e) SYSV_MAN_SECTIONS=true ;; 11494 esac 11495 fi 11496 11497 ;; 11498 *) SYSV_MAN_SECTIONS=false ;; 11499 esac 11500 11501 if test x$APP_MAN_SUFFIX = x ; then 11502 APP_MAN_SUFFIX=1 11503 fi 11504 if test x$APP_MAN_DIR = x ; then 11505 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11506 fi 11507 11508 if test x$LIB_MAN_SUFFIX = x ; then 11509 LIB_MAN_SUFFIX=3 11510 fi 11511 if test x$LIB_MAN_DIR = x ; then 11512 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11513 fi 11514 11515 if test x$FILE_MAN_SUFFIX = x ; then 11516 case $SYSV_MAN_SECTIONS in 11517 true) FILE_MAN_SUFFIX=4 ;; 11518 *) FILE_MAN_SUFFIX=5 ;; 11519 esac 11520 fi 11521 if test x$FILE_MAN_DIR = x ; then 11522 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11523 fi 11524 11525 if test x$MISC_MAN_SUFFIX = x ; then 11526 case $SYSV_MAN_SECTIONS in 11527 true) MISC_MAN_SUFFIX=5 ;; 11528 *) MISC_MAN_SUFFIX=7 ;; 11529 esac 11530 fi 11531 if test x$MISC_MAN_DIR = x ; then 11532 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11533 fi 11534 11535 if test x$DRIVER_MAN_SUFFIX = x ; then 11536 case $SYSV_MAN_SECTIONS in 11537 true) DRIVER_MAN_SUFFIX=7 ;; 11538 *) DRIVER_MAN_SUFFIX=4 ;; 11539 esac 11540 fi 11541 if test x$DRIVER_MAN_DIR = x ; then 11542 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11543 fi 11544 11545 if test x$ADMIN_MAN_SUFFIX = x ; then 11546 case $SYSV_MAN_SECTIONS in 11547 true) ADMIN_MAN_SUFFIX=1m ;; 11548 *) ADMIN_MAN_SUFFIX=8 ;; 11549 esac 11550 fi 11551 if test x$ADMIN_MAN_DIR = x ; then 11552 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11553 fi 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 XORG_MAN_PAGE="X Version 11" 11570 11571 MAN_SUBSTS="\ 11572 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11573 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11574 -e 's|__xservername__|Xorg|g' \ 11575 -e 's|__xconfigfile__|xorg.conf|g' \ 11576 -e 's|__projectroot__|\$(prefix)|g' \ 11577 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11578 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11579 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11580 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11581 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11582 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11583 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11584 11585 11586 11587 11588 AM_DEFAULT_VERBOSITY=0 11589 11590 11591 11592 # Initialize libtool 11593 case `pwd` in 11594 *\ * | *\ *) 11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11596 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11597 esac 11598 11599 11600 11601 macro_version='2.5.4' 11602 macro_revision='2.5.4' 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 ltmain=$ac_aux_dir/ltmain.sh 11618 11619 # Backslashify metacharacters that are still active within 11620 # double-quoted strings. 11621 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11622 11623 # Same as above, but do not quote variable references. 11624 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11625 11626 # Sed substitution to delay expansion of an escaped shell variable in a 11627 # double_quote_subst'ed string. 11628 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11629 11630 # Sed substitution to delay expansion of an escaped single quote. 11631 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11632 11633 # Sed substitution to avoid accidental globbing in evaled expressions 11634 no_glob_subst='s/\*/\\\*/g' 11635 11636 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11637 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11638 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11639 11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11641 printf %s "checking how to print strings... " >&6; } 11642 # Test print first, because it will be a builtin if present. 11643 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11644 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11645 ECHO='print -r --' 11646 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11647 ECHO='printf %s\n' 11648 else 11649 # Use this function as a fallback that always works. 11650 func_fallback_echo () 11651 { 11652 eval 'cat <<_LTECHO_EOF 11653 $1 11654 _LTECHO_EOF' 11655 } 11656 ECHO='func_fallback_echo' 11657 fi 11658 11659 # func_echo_all arg... 11660 # Invoke $ECHO with all args, space-separated. 11661 func_echo_all () 11662 { 11663 $ECHO "" 11664 } 11665 11666 case $ECHO in 11667 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11668 printf "%s\n" "printf" >&6; } ;; 11669 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11670 printf "%s\n" "print -r" >&6; } ;; 11671 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11672 printf "%s\n" "cat" >&6; } ;; 11673 esac 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11689 printf %s "checking for a sed that does not truncate output... " >&6; } 11690 if test ${ac_cv_path_SED+y} 11691 then : 11692 printf %s "(cached) " >&6 11693 else case e in #( 11694 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11695 for ac_i in 1 2 3 4 5 6 7; do 11696 ac_script="$ac_script$as_nl$ac_script" 11697 done 11698 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11699 { ac_script=; unset ac_script;} 11700 if test -z "$SED"; then 11701 ac_path_SED_found=false 11702 # Loop through the user's path and test for each of PROGNAME-LIST 11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11704 for as_dir in $PATH 11705 do 11706 IFS=$as_save_IFS 11707 case $as_dir in #((( 11708 '') as_dir=./ ;; 11709 */) ;; 11710 *) as_dir=$as_dir/ ;; 11711 esac 11712 for ac_prog in sed gsed 11713 do 11714 for ac_exec_ext in '' $ac_executable_extensions; do 11715 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11716 as_fn_executable_p "$ac_path_SED" || continue 11717 # Check for GNU ac_path_SED and select it if it is found. 11718 # Check for GNU $ac_path_SED 11719 case `"$ac_path_SED" --version 2>&1` in #( 11720 *GNU*) 11721 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11722 #( 11723 *) 11724 ac_count=0 11725 printf %s 0123456789 >"conftest.in" 11726 while : 11727 do 11728 cat "conftest.in" "conftest.in" >"conftest.tmp" 11729 mv "conftest.tmp" "conftest.in" 11730 cp "conftest.in" "conftest.nl" 11731 printf "%s\n" '' >> "conftest.nl" 11732 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11734 as_fn_arith $ac_count + 1 && ac_count=$as_val 11735 if test $ac_count -gt ${ac_path_SED_max-0}; then 11736 # Best one so far, save it but keep looking for a better one 11737 ac_cv_path_SED="$ac_path_SED" 11738 ac_path_SED_max=$ac_count 11739 fi 11740 # 10*(2^10) chars as input seems more than enough 11741 test $ac_count -gt 10 && break 11742 done 11743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11744 esac 11745 11746 $ac_path_SED_found && break 3 11747 done 11748 done 11749 done 11750 IFS=$as_save_IFS 11751 if test -z "$ac_cv_path_SED"; then 11752 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11753 fi 11754 else 11755 ac_cv_path_SED=$SED 11756 fi 11757 ;; 11758 esac 11759 fi 11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11761 printf "%s\n" "$ac_cv_path_SED" >&6; } 11762 SED="$ac_cv_path_SED" 11763 rm -f conftest.sed 11764 11765 test -z "$SED" && SED=sed 11766 Xsed="$SED -e 1s/^X//" 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11779 printf %s "checking for grep that handles long lines and -e... " >&6; } 11780 if test ${ac_cv_path_GREP+y} 11781 then : 11782 printf %s "(cached) " >&6 11783 else case e in #( 11784 e) if test -z "$GREP"; then 11785 ac_path_GREP_found=false 11786 # Loop through the user's path and test for each of PROGNAME-LIST 11787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11788 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11789 do 11790 IFS=$as_save_IFS 11791 case $as_dir in #((( 11792 '') as_dir=./ ;; 11793 */) ;; 11794 *) as_dir=$as_dir/ ;; 11795 esac 11796 for ac_prog in grep ggrep 11797 do 11798 for ac_exec_ext in '' $ac_executable_extensions; do 11799 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11800 as_fn_executable_p "$ac_path_GREP" || continue 11801 # Check for GNU ac_path_GREP and select it if it is found. 11802 # Check for GNU $ac_path_GREP 11803 case `"$ac_path_GREP" --version 2>&1` in #( 11804 *GNU*) 11805 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11806 #( 11807 *) 11808 ac_count=0 11809 printf %s 0123456789 >"conftest.in" 11810 while : 11811 do 11812 cat "conftest.in" "conftest.in" >"conftest.tmp" 11813 mv "conftest.tmp" "conftest.in" 11814 cp "conftest.in" "conftest.nl" 11815 printf "%s\n" 'GREP' >> "conftest.nl" 11816 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11818 as_fn_arith $ac_count + 1 && ac_count=$as_val 11819 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11820 # Best one so far, save it but keep looking for a better one 11821 ac_cv_path_GREP="$ac_path_GREP" 11822 ac_path_GREP_max=$ac_count 11823 fi 11824 # 10*(2^10) chars as input seems more than enough 11825 test $ac_count -gt 10 && break 11826 done 11827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11828 esac 11829 11830 $ac_path_GREP_found && break 3 11831 done 11832 done 11833 done 11834 IFS=$as_save_IFS 11835 if test -z "$ac_cv_path_GREP"; then 11836 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11837 fi 11838 else 11839 ac_cv_path_GREP=$GREP 11840 fi 11841 ;; 11842 esac 11843 fi 11844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11845 printf "%s\n" "$ac_cv_path_GREP" >&6; } 11846 GREP="$ac_cv_path_GREP" 11847 11848 11849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11850 printf %s "checking for egrep... " >&6; } 11851 if test ${ac_cv_path_EGREP+y} 11852 then : 11853 printf %s "(cached) " >&6 11854 else case e in #( 11855 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11856 then ac_cv_path_EGREP="$GREP -E" 11857 else 11858 if test -z "$EGREP"; then 11859 ac_path_EGREP_found=false 11860 # Loop through the user's path and test for each of PROGNAME-LIST 11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11863 do 11864 IFS=$as_save_IFS 11865 case $as_dir in #((( 11866 '') as_dir=./ ;; 11867 */) ;; 11868 *) as_dir=$as_dir/ ;; 11869 esac 11870 for ac_prog in egrep 11871 do 11872 for ac_exec_ext in '' $ac_executable_extensions; do 11873 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11874 as_fn_executable_p "$ac_path_EGREP" || continue 11875 # Check for GNU ac_path_EGREP and select it if it is found. 11876 # Check for GNU $ac_path_EGREP 11877 case `"$ac_path_EGREP" --version 2>&1` in #( 11878 *GNU*) 11879 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11880 #( 11881 *) 11882 ac_count=0 11883 printf %s 0123456789 >"conftest.in" 11884 while : 11885 do 11886 cat "conftest.in" "conftest.in" >"conftest.tmp" 11887 mv "conftest.tmp" "conftest.in" 11888 cp "conftest.in" "conftest.nl" 11889 printf "%s\n" 'EGREP' >> "conftest.nl" 11890 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11892 as_fn_arith $ac_count + 1 && ac_count=$as_val 11893 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11894 # Best one so far, save it but keep looking for a better one 11895 ac_cv_path_EGREP="$ac_path_EGREP" 11896 ac_path_EGREP_max=$ac_count 11897 fi 11898 # 10*(2^10) chars as input seems more than enough 11899 test $ac_count -gt 10 && break 11900 done 11901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11902 esac 11903 11904 $ac_path_EGREP_found && break 3 11905 done 11906 done 11907 done 11908 IFS=$as_save_IFS 11909 if test -z "$ac_cv_path_EGREP"; then 11910 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11911 fi 11912 else 11913 ac_cv_path_EGREP=$EGREP 11914 fi 11915 11916 fi ;; 11917 esac 11918 fi 11919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11920 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11921 EGREP="$ac_cv_path_EGREP" 11922 11923 EGREP_TRADITIONAL=$EGREP 11924 ac_cv_path_EGREP_TRADITIONAL=$EGREP 11925 11926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11927 printf %s "checking for fgrep... " >&6; } 11928 if test ${ac_cv_path_FGREP+y} 11929 then : 11930 printf %s "(cached) " >&6 11931 else case e in #( 11932 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11933 then ac_cv_path_FGREP="$GREP -F" 11934 else 11935 if test -z "$FGREP"; then 11936 ac_path_FGREP_found=false 11937 # Loop through the user's path and test for each of PROGNAME-LIST 11938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11940 do 11941 IFS=$as_save_IFS 11942 case $as_dir in #((( 11943 '') as_dir=./ ;; 11944 */) ;; 11945 *) as_dir=$as_dir/ ;; 11946 esac 11947 for ac_prog in fgrep 11948 do 11949 for ac_exec_ext in '' $ac_executable_extensions; do 11950 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11951 as_fn_executable_p "$ac_path_FGREP" || continue 11952 # Check for GNU ac_path_FGREP and select it if it is found. 11953 # Check for GNU $ac_path_FGREP 11954 case `"$ac_path_FGREP" --version 2>&1` in #( 11955 *GNU*) 11956 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11957 #( 11958 *) 11959 ac_count=0 11960 printf %s 0123456789 >"conftest.in" 11961 while : 11962 do 11963 cat "conftest.in" "conftest.in" >"conftest.tmp" 11964 mv "conftest.tmp" "conftest.in" 11965 cp "conftest.in" "conftest.nl" 11966 printf "%s\n" 'FGREP' >> "conftest.nl" 11967 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11969 as_fn_arith $ac_count + 1 && ac_count=$as_val 11970 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11971 # Best one so far, save it but keep looking for a better one 11972 ac_cv_path_FGREP="$ac_path_FGREP" 11973 ac_path_FGREP_max=$ac_count 11974 fi 11975 # 10*(2^10) chars as input seems more than enough 11976 test $ac_count -gt 10 && break 11977 done 11978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11979 esac 11980 11981 $ac_path_FGREP_found && break 3 11982 done 11983 done 11984 done 11985 IFS=$as_save_IFS 11986 if test -z "$ac_cv_path_FGREP"; then 11987 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11988 fi 11989 else 11990 ac_cv_path_FGREP=$FGREP 11991 fi 11992 11993 fi ;; 11994 esac 11995 fi 11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11997 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11998 FGREP="$ac_cv_path_FGREP" 11999 12000 12001 test -z "$GREP" && GREP=grep 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 # Check whether --with-gnu-ld was given. 12022 if test ${with_gnu_ld+y} 12023 then : 12024 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12025 else case e in #( 12026 e) with_gnu_ld=no ;; 12027 esac 12028 fi 12029 12030 ac_prog=ld 12031 if test yes = "$GCC"; then 12032 # Check if gcc -print-prog-name=ld gives a path. 12033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12034 printf %s "checking for ld used by $CC... " >&6; } 12035 case $host in 12036 *-*-mingw* | *-*-windows*) 12037 # gcc leaves a trailing carriage return, which upsets mingw 12038 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12039 *) 12040 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12041 esac 12042 case $ac_prog in 12043 # Accept absolute paths. 12044 [\\/]* | ?:[\\/]*) 12045 re_direlt='/[^/][^/]*/\.\./' 12046 # Canonicalize the pathname of ld 12047 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12048 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12049 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12050 done 12051 test -z "$LD" && LD=$ac_prog 12052 ;; 12053 "") 12054 # If it fails, then pretend we aren't using GCC. 12055 ac_prog=ld 12056 ;; 12057 *) 12058 # If it is relative, then search for the first ld in PATH. 12059 with_gnu_ld=unknown 12060 ;; 12061 esac 12062 elif test yes = "$with_gnu_ld"; then 12063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12064 printf %s "checking for GNU ld... " >&6; } 12065 else 12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12067 printf %s "checking for non-GNU ld... " >&6; } 12068 fi 12069 if test ${lt_cv_path_LD+y} 12070 then : 12071 printf %s "(cached) " >&6 12072 else case e in #( 12073 e) if test -z "$LD"; then 12074 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12075 for ac_dir in $PATH; do 12076 IFS=$lt_save_ifs 12077 test -z "$ac_dir" && ac_dir=. 12078 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12079 lt_cv_path_LD=$ac_dir/$ac_prog 12080 # Check to see if the program is GNU ld. I'd rather use --version, 12081 # but apparently some variants of GNU ld only accept -v. 12082 # Break only if it was the GNU/non-GNU ld that we prefer. 12083 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12084 *GNU* | *'with BFD'*) 12085 test no != "$with_gnu_ld" && break 12086 ;; 12087 *) 12088 test yes != "$with_gnu_ld" && break 12089 ;; 12090 esac 12091 fi 12092 done 12093 IFS=$lt_save_ifs 12094 else 12095 lt_cv_path_LD=$LD # Let the user override the test with a path. 12096 fi ;; 12097 esac 12098 fi 12099 12100 LD=$lt_cv_path_LD 12101 if test -n "$LD"; then 12102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12103 printf "%s\n" "$LD" >&6; } 12104 else 12105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12106 printf "%s\n" "no" >&6; } 12107 fi 12108 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12110 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12111 if test ${lt_cv_prog_gnu_ld+y} 12112 then : 12113 printf %s "(cached) " >&6 12114 else case e in #( 12115 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 12116 case `$LD -v 2>&1 </dev/null` in 12117 *GNU* | *'with BFD'*) 12118 lt_cv_prog_gnu_ld=yes 12119 ;; 12120 *) 12121 lt_cv_prog_gnu_ld=no 12122 ;; 12123 esac ;; 12124 esac 12125 fi 12126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12127 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12128 with_gnu_ld=$lt_cv_prog_gnu_ld 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12139 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12140 if test ${lt_cv_path_NM+y} 12141 then : 12142 printf %s "(cached) " >&6 12143 else case e in #( 12144 e) if test -n "$NM"; then 12145 # Let the user override the test. 12146 lt_cv_path_NM=$NM 12147 else 12148 lt_nm_to_check=${ac_tool_prefix}nm 12149 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12150 lt_nm_to_check="$lt_nm_to_check nm" 12151 fi 12152 for lt_tmp_nm in $lt_nm_to_check; do 12153 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12154 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12155 IFS=$lt_save_ifs 12156 test -z "$ac_dir" && ac_dir=. 12157 tmp_nm=$ac_dir/$lt_tmp_nm 12158 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12159 # Check to see if the nm accepts a BSD-compat flag. 12160 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12161 # nm: unknown option "B" ignored 12162 # Tru64's nm complains that /dev/null is an invalid object file 12163 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12164 case $build_os in 12165 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 12166 *) lt_bad_file=/dev/null ;; 12167 esac 12168 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 12169 *$lt_bad_file* | *'Invalid file or object type'*) 12170 lt_cv_path_NM="$tmp_nm -B" 12171 break 2 12172 ;; 12173 *) 12174 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 12175 */dev/null*) 12176 lt_cv_path_NM="$tmp_nm -p" 12177 break 2 12178 ;; 12179 *) 12180 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12181 continue # so that we can try to find one that supports BSD flags 12182 ;; 12183 esac 12184 ;; 12185 esac 12186 fi 12187 done 12188 IFS=$lt_save_ifs 12189 done 12190 : ${lt_cv_path_NM=no} 12191 fi ;; 12192 esac 12193 fi 12194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12195 printf "%s\n" "$lt_cv_path_NM" >&6; } 12196 if test no != "$lt_cv_path_NM"; then 12197 NM=$lt_cv_path_NM 12198 else 12199 # Didn't find any BSD compatible name lister, look for dumpbin. 12200 if test -n "$DUMPBIN"; then : 12201 # Let the user override the test. 12202 else 12203 if test -n "$ac_tool_prefix"; then 12204 for ac_prog in dumpbin "link -dump" 12205 do 12206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12209 printf %s "checking for $ac_word... " >&6; } 12210 if test ${ac_cv_prog_DUMPBIN+y} 12211 then : 12212 printf %s "(cached) " >&6 12213 else case e in #( 12214 e) if test -n "$DUMPBIN"; then 12215 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12216 else 12217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12218 for as_dir in $PATH 12219 do 12220 IFS=$as_save_IFS 12221 case $as_dir in #((( 12222 '') as_dir=./ ;; 12223 */) ;; 12224 *) as_dir=$as_dir/ ;; 12225 esac 12226 for ac_exec_ext in '' $ac_executable_extensions; do 12227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12228 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12230 break 2 12231 fi 12232 done 12233 done 12234 IFS=$as_save_IFS 12235 12236 fi ;; 12237 esac 12238 fi 12239 DUMPBIN=$ac_cv_prog_DUMPBIN 12240 if test -n "$DUMPBIN"; then 12241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12242 printf "%s\n" "$DUMPBIN" >&6; } 12243 else 12244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12245 printf "%s\n" "no" >&6; } 12246 fi 12247 12248 12249 test -n "$DUMPBIN" && break 12250 done 12251 fi 12252 if test -z "$DUMPBIN"; then 12253 ac_ct_DUMPBIN=$DUMPBIN 12254 for ac_prog in dumpbin "link -dump" 12255 do 12256 # Extract the first word of "$ac_prog", so it can be a program name with args. 12257 set dummy $ac_prog; ac_word=$2 12258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12259 printf %s "checking for $ac_word... " >&6; } 12260 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 12261 then : 12262 printf %s "(cached) " >&6 12263 else case e in #( 12264 e) if test -n "$ac_ct_DUMPBIN"; then 12265 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12266 else 12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12268 for as_dir in $PATH 12269 do 12270 IFS=$as_save_IFS 12271 case $as_dir in #((( 12272 '') as_dir=./ ;; 12273 */) ;; 12274 *) as_dir=$as_dir/ ;; 12275 esac 12276 for ac_exec_ext in '' $ac_executable_extensions; do 12277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12278 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12280 break 2 12281 fi 12282 done 12283 done 12284 IFS=$as_save_IFS 12285 12286 fi ;; 12287 esac 12288 fi 12289 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12290 if test -n "$ac_ct_DUMPBIN"; then 12291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12292 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12293 else 12294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12295 printf "%s\n" "no" >&6; } 12296 fi 12297 12298 12299 test -n "$ac_ct_DUMPBIN" && break 12300 done 12301 12302 if test "x$ac_ct_DUMPBIN" = x; then 12303 DUMPBIN=":" 12304 else 12305 case $cross_compiling:$ac_tool_warned in 12306 yes:) 12307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12308 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12309 ac_tool_warned=yes ;; 12310 esac 12311 DUMPBIN=$ac_ct_DUMPBIN 12312 fi 12313 fi 12314 12315 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12316 *COFF*) 12317 DUMPBIN="$DUMPBIN -symbols -headers" 12318 ;; 12319 *) 12320 DUMPBIN=: 12321 ;; 12322 esac 12323 fi 12324 12325 if test : != "$DUMPBIN"; then 12326 NM=$DUMPBIN 12327 fi 12328 fi 12329 test -z "$NM" && NM=nm 12330 12331 12332 12333 12334 12335 12336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12337 printf %s "checking the name lister ($NM) interface... " >&6; } 12338 if test ${lt_cv_nm_interface+y} 12339 then : 12340 printf %s "(cached) " >&6 12341 else case e in #( 12342 e) lt_cv_nm_interface="BSD nm" 12343 echo "int some_variable = 0;" > conftest.$ac_ext 12344 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12345 (eval "$ac_compile" 2>conftest.err) 12346 cat conftest.err >&5 12347 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12348 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12349 cat conftest.err >&5 12350 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12351 cat conftest.out >&5 12352 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12353 lt_cv_nm_interface="MS dumpbin" 12354 fi 12355 rm -f conftest* ;; 12356 esac 12357 fi 12358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12359 printf "%s\n" "$lt_cv_nm_interface" >&6; } 12360 12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12362 printf %s "checking whether ln -s works... " >&6; } 12363 LN_S=$as_ln_s 12364 if test "$LN_S" = "ln -s"; then 12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12366 printf "%s\n" "yes" >&6; } 12367 else 12368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12369 printf "%s\n" "no, using $LN_S" >&6; } 12370 fi 12371 12372 # find the maximum length of command line arguments 12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12374 printf %s "checking the maximum length of command line arguments... " >&6; } 12375 if test ${lt_cv_sys_max_cmd_len+y} 12376 then : 12377 printf %s "(cached) " >&6 12378 else case e in #( 12379 e) i=0 12380 teststring=ABCD 12381 12382 case $build_os in 12383 msdosdjgpp*) 12384 # On DJGPP, this test can blow up pretty badly due to problems in libc 12385 # (any single argument exceeding 2000 bytes causes a buffer overrun 12386 # during glob expansion). Even if it were fixed, the result of this 12387 # check would be larger than it should be. 12388 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12389 ;; 12390 12391 gnu* | ironclad*) 12392 # Under GNU Hurd and Ironclad, this test is not required because there 12393 # is no limit to the length of command line arguments. 12394 # Libtool will interpret -1 as no limit whatsoever 12395 lt_cv_sys_max_cmd_len=-1; 12396 ;; 12397 12398 cygwin* | mingw* | windows* | cegcc*) 12399 # On Win9x/ME, this test blows up -- it succeeds, but takes 12400 # about 5 minutes as the teststring grows exponentially. 12401 # Worse, since 9x/ME are not pre-emptively multitasking, 12402 # you end up with a "frozen" computer, even though with patience 12403 # the test eventually succeeds (with a max line length of 256k). 12404 # Instead, let's just punt: use the minimum linelength reported by 12405 # all of the supported platforms: 8192 (on NT/2K/XP). 12406 lt_cv_sys_max_cmd_len=8192; 12407 ;; 12408 12409 mint*) 12410 # On MiNT this can take a long time and run out of memory. 12411 lt_cv_sys_max_cmd_len=8192; 12412 ;; 12413 12414 amigaos*) 12415 # On AmigaOS with pdksh, this test takes hours, literally. 12416 # So we just punt and use a minimum line length of 8192. 12417 lt_cv_sys_max_cmd_len=8192; 12418 ;; 12419 12420 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12421 # This has been around since 386BSD, at least. Likely further. 12422 if test -x /sbin/sysctl; then 12423 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12424 elif test -x /usr/sbin/sysctl; then 12425 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12426 else 12427 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12428 fi 12429 # And add a safety zone 12430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12432 ;; 12433 12434 interix*) 12435 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12436 lt_cv_sys_max_cmd_len=196608 12437 ;; 12438 12439 os2*) 12440 # The test takes a long time on OS/2. 12441 lt_cv_sys_max_cmd_len=8192 12442 ;; 12443 12444 osf*) 12445 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12446 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12447 # nice to cause kernel panics so lets avoid the loop below. 12448 # First set a reasonable default. 12449 lt_cv_sys_max_cmd_len=16384 12450 # 12451 if test -x /sbin/sysconfig; then 12452 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12453 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12454 esac 12455 fi 12456 ;; 12457 sco3.2v5*) 12458 lt_cv_sys_max_cmd_len=102400 12459 ;; 12460 sysv5* | sco5v6* | sysv4.2uw2*) 12461 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12462 if test -n "$kargmax"; then 12463 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12464 else 12465 lt_cv_sys_max_cmd_len=32768 12466 fi 12467 ;; 12468 *) 12469 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12470 if test -n "$lt_cv_sys_max_cmd_len" && \ 12471 test undefined != "$lt_cv_sys_max_cmd_len"; then 12472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12474 else 12475 # Make teststring a little bigger before we do anything with it. 12476 # a 1K string should be a reasonable start. 12477 for i in 1 2 3 4 5 6 7 8; do 12478 teststring=$teststring$teststring 12479 done 12480 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12481 # If test is not a shell built-in, we'll probably end up computing a 12482 # maximum length that is only half of the actual maximum length, but 12483 # we can't tell. 12484 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12485 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12486 test 17 != "$i" # 1/2 MB should be enough 12487 do 12488 i=`expr $i + 1` 12489 teststring=$teststring$teststring 12490 done 12491 # Only check the string length outside the loop. 12492 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12493 teststring= 12494 # Add a significant safety factor because C++ compilers can tack on 12495 # massive amounts of additional arguments before passing them to the 12496 # linker. It appears as though 1/2 is a usable value. 12497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12498 fi 12499 ;; 12500 esac 12501 ;; 12502 esac 12503 fi 12504 12505 if test -n "$lt_cv_sys_max_cmd_len"; then 12506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12507 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12508 else 12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12510 printf "%s\n" "none" >&6; } 12511 fi 12512 max_cmd_len=$lt_cv_sys_max_cmd_len 12513 12514 12515 12516 12517 12518 12519 : ${CP="cp -f"} 12520 : ${MV="mv -f"} 12521 : ${RM="rm -f"} 12522 12523 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12524 lt_unset=unset 12525 else 12526 lt_unset=false 12527 fi 12528 12529 12530 12531 12532 12533 # test EBCDIC or ASCII 12534 case `echo X|tr X '\101'` in 12535 A) # ASCII based system 12536 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12537 lt_SP2NL='tr \040 \012' 12538 lt_NL2SP='tr \015\012 \040\040' 12539 ;; 12540 *) # EBCDIC based system 12541 lt_SP2NL='tr \100 \n' 12542 lt_NL2SP='tr \r\n \100\100' 12543 ;; 12544 esac 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12555 printf %s "checking how to convert $build file names to $host format... " >&6; } 12556 if test ${lt_cv_to_host_file_cmd+y} 12557 then : 12558 printf %s "(cached) " >&6 12559 else case e in #( 12560 e) case $host in 12561 *-*-mingw* ) 12562 case $build in 12563 *-*-mingw* | *-*-windows* ) # actually msys 12564 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12565 ;; 12566 *-*-cygwin* ) 12567 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12568 ;; 12569 * ) # otherwise, assume *nix 12570 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12571 ;; 12572 esac 12573 ;; 12574 *-*-cygwin* ) 12575 case $build in 12576 *-*-mingw* | *-*-windows* ) # actually msys 12577 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12578 ;; 12579 *-*-cygwin* ) 12580 lt_cv_to_host_file_cmd=func_convert_file_noop 12581 ;; 12582 * ) # otherwise, assume *nix 12583 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12584 ;; 12585 esac 12586 ;; 12587 * ) # unhandled hosts (and "normal" native builds) 12588 lt_cv_to_host_file_cmd=func_convert_file_noop 12589 ;; 12590 esac 12591 ;; 12592 esac 12593 fi 12594 12595 to_host_file_cmd=$lt_cv_to_host_file_cmd 12596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12597 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12598 12599 12600 12601 12602 12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12604 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12605 if test ${lt_cv_to_tool_file_cmd+y} 12606 then : 12607 printf %s "(cached) " >&6 12608 else case e in #( 12609 e) #assume ordinary cross tools, or native build. 12610 lt_cv_to_tool_file_cmd=func_convert_file_noop 12611 case $host in 12612 *-*-mingw* | *-*-windows* ) 12613 case $build in 12614 *-*-mingw* | *-*-windows* ) # actually msys 12615 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12616 ;; 12617 esac 12618 ;; 12619 esac 12620 ;; 12621 esac 12622 fi 12623 12624 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12626 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12627 12628 12629 12630 12631 12632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12633 printf %s "checking for $LD option to reload object files... " >&6; } 12634 if test ${lt_cv_ld_reload_flag+y} 12635 then : 12636 printf %s "(cached) " >&6 12637 else case e in #( 12638 e) lt_cv_ld_reload_flag='-r' ;; 12639 esac 12640 fi 12641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12642 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12643 reload_flag=$lt_cv_ld_reload_flag 12644 case $reload_flag in 12645 "" | " "*) ;; 12646 *) reload_flag=" $reload_flag" ;; 12647 esac 12648 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12649 case $host_os in 12650 cygwin* | mingw* | windows* | pw32* | cegcc*) 12651 if test yes != "$GCC"; then 12652 reload_cmds=false 12653 fi 12654 ;; 12655 darwin*) 12656 if test yes = "$GCC"; then 12657 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12658 else 12659 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12660 fi 12661 ;; 12662 esac 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 # Extract the first word of "file", so it can be a program name with args. 12673 set dummy file; ac_word=$2 12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12675 printf %s "checking for $ac_word... " >&6; } 12676 if test ${ac_cv_prog_FILECMD+y} 12677 then : 12678 printf %s "(cached) " >&6 12679 else case e in #( 12680 e) if test -n "$FILECMD"; then 12681 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12682 else 12683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12684 for as_dir in $PATH 12685 do 12686 IFS=$as_save_IFS 12687 case $as_dir in #((( 12688 '') as_dir=./ ;; 12689 */) ;; 12690 *) as_dir=$as_dir/ ;; 12691 esac 12692 for ac_exec_ext in '' $ac_executable_extensions; do 12693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12694 ac_cv_prog_FILECMD="file" 12695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12696 break 2 12697 fi 12698 done 12699 done 12700 IFS=$as_save_IFS 12701 12702 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 12703 fi ;; 12704 esac 12705 fi 12706 FILECMD=$ac_cv_prog_FILECMD 12707 if test -n "$FILECMD"; then 12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12709 printf "%s\n" "$FILECMD" >&6; } 12710 else 12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12712 printf "%s\n" "no" >&6; } 12713 fi 12714 12715 12716 12717 12718 12719 12720 12721 12722 if test -n "$ac_tool_prefix"; then 12723 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12724 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12726 printf %s "checking for $ac_word... " >&6; } 12727 if test ${ac_cv_prog_OBJDUMP+y} 12728 then : 12729 printf %s "(cached) " >&6 12730 else case e in #( 12731 e) if test -n "$OBJDUMP"; then 12732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12733 else 12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12735 for as_dir in $PATH 12736 do 12737 IFS=$as_save_IFS 12738 case $as_dir in #((( 12739 '') as_dir=./ ;; 12740 */) ;; 12741 *) as_dir=$as_dir/ ;; 12742 esac 12743 for ac_exec_ext in '' $ac_executable_extensions; do 12744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12745 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12747 break 2 12748 fi 12749 done 12750 done 12751 IFS=$as_save_IFS 12752 12753 fi ;; 12754 esac 12755 fi 12756 OBJDUMP=$ac_cv_prog_OBJDUMP 12757 if test -n "$OBJDUMP"; then 12758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12759 printf "%s\n" "$OBJDUMP" >&6; } 12760 else 12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12762 printf "%s\n" "no" >&6; } 12763 fi 12764 12765 12766 fi 12767 if test -z "$ac_cv_prog_OBJDUMP"; then 12768 ac_ct_OBJDUMP=$OBJDUMP 12769 # Extract the first word of "objdump", so it can be a program name with args. 12770 set dummy objdump; ac_word=$2 12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12772 printf %s "checking for $ac_word... " >&6; } 12773 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12774 then : 12775 printf %s "(cached) " >&6 12776 else case e in #( 12777 e) if test -n "$ac_ct_OBJDUMP"; then 12778 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12779 else 12780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12781 for as_dir in $PATH 12782 do 12783 IFS=$as_save_IFS 12784 case $as_dir in #((( 12785 '') as_dir=./ ;; 12786 */) ;; 12787 *) as_dir=$as_dir/ ;; 12788 esac 12789 for ac_exec_ext in '' $ac_executable_extensions; do 12790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12791 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12793 break 2 12794 fi 12795 done 12796 done 12797 IFS=$as_save_IFS 12798 12799 fi ;; 12800 esac 12801 fi 12802 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12803 if test -n "$ac_ct_OBJDUMP"; then 12804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12805 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12806 else 12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12808 printf "%s\n" "no" >&6; } 12809 fi 12810 12811 if test "x$ac_ct_OBJDUMP" = x; then 12812 OBJDUMP="false" 12813 else 12814 case $cross_compiling:$ac_tool_warned in 12815 yes:) 12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12817 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12818 ac_tool_warned=yes ;; 12819 esac 12820 OBJDUMP=$ac_ct_OBJDUMP 12821 fi 12822 else 12823 OBJDUMP="$ac_cv_prog_OBJDUMP" 12824 fi 12825 12826 test -z "$OBJDUMP" && OBJDUMP=objdump 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12837 printf %s "checking how to recognize dependent libraries... " >&6; } 12838 if test ${lt_cv_deplibs_check_method+y} 12839 then : 12840 printf %s "(cached) " >&6 12841 else case e in #( 12842 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 12843 lt_cv_file_magic_test_file= 12844 lt_cv_deplibs_check_method='unknown' 12845 # Need to set the preceding variable on all platforms that support 12846 # interlibrary dependencies. 12847 # 'none' -- dependencies not supported. 12848 # 'unknown' -- same as none, but documents that we really don't know. 12849 # 'pass_all' -- all dependencies passed with no checks. 12850 # 'file_magic [[regex]]' -- check by looking for files in library path 12851 # that responds to the $file_magic_cmd with a given extended regex. 12852 # If you have 'file' or equivalent on your system and you're not sure 12853 # whether 'pass_all' will *always* work, you probably want this one. 12854 12855 case $host_os in 12856 aix[4-9]*) 12857 lt_cv_deplibs_check_method=pass_all 12858 ;; 12859 12860 beos*) 12861 lt_cv_deplibs_check_method=pass_all 12862 ;; 12863 12864 bsdi[45]*) 12865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12866 lt_cv_file_magic_cmd='$FILECMD -L' 12867 lt_cv_file_magic_test_file=/shlib/libc.so 12868 ;; 12869 12870 cygwin*) 12871 # func_win32_libid is a shell function defined in ltmain.sh 12872 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12873 lt_cv_file_magic_cmd='func_win32_libid' 12874 ;; 12875 12876 mingw* | windows* | pw32*) 12877 # Base MSYS/MinGW do not provide the 'file' command needed by 12878 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12879 # unless we find 'file', for example because we are cross-compiling. 12880 if ( file / ) >/dev/null 2>&1; then 12881 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12882 lt_cv_file_magic_cmd='func_win32_libid' 12883 else 12884 # Keep this pattern in sync with the one in func_win32_libid. 12885 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 12886 lt_cv_file_magic_cmd='$OBJDUMP -f' 12887 fi 12888 ;; 12889 12890 cegcc*) 12891 # use the weaker test based on 'objdump'. See mingw*. 12892 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12893 lt_cv_file_magic_cmd='$OBJDUMP -f' 12894 ;; 12895 12896 darwin* | rhapsody*) 12897 lt_cv_deplibs_check_method=pass_all 12898 ;; 12899 12900 freebsd* | dragonfly* | midnightbsd*) 12901 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12902 case $host_cpu in 12903 i*86 ) 12904 # Not sure whether the presence of OpenBSD here was a mistake. 12905 # Let's accept both of them until this is cleared up. 12906 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12907 lt_cv_file_magic_cmd=$FILECMD 12908 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12909 ;; 12910 esac 12911 else 12912 lt_cv_deplibs_check_method=pass_all 12913 fi 12914 ;; 12915 12916 haiku*) 12917 lt_cv_deplibs_check_method=pass_all 12918 ;; 12919 12920 hpux10.20* | hpux11*) 12921 lt_cv_file_magic_cmd=$FILECMD 12922 case $host_cpu in 12923 ia64*) 12924 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12925 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12926 ;; 12927 hppa*64*) 12928 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]' 12929 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12930 ;; 12931 *) 12932 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12933 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12934 ;; 12935 esac 12936 ;; 12937 12938 interix[3-9]*) 12939 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12941 ;; 12942 12943 irix5* | irix6* | nonstopux*) 12944 case $LD in 12945 *-32|*"-32 ") libmagic=32-bit;; 12946 *-n32|*"-n32 ") libmagic=N32;; 12947 *-64|*"-64 ") libmagic=64-bit;; 12948 *) libmagic=never-match;; 12949 esac 12950 lt_cv_deplibs_check_method=pass_all 12951 ;; 12952 12953 # This must be glibc/ELF. 12954 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12955 lt_cv_deplibs_check_method=pass_all 12956 ;; 12957 12958 *-mlibc) 12959 lt_cv_deplibs_check_method=pass_all 12960 ;; 12961 12962 netbsd* | netbsdelf*-gnu) 12963 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12965 else 12966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12967 fi 12968 ;; 12969 12970 newos6*) 12971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12972 lt_cv_file_magic_cmd=$FILECMD 12973 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12974 ;; 12975 12976 *nto* | *qnx*) 12977 lt_cv_deplibs_check_method=pass_all 12978 ;; 12979 12980 openbsd*) 12981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12983 else 12984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12985 fi 12986 ;; 12987 12988 osf3* | osf4* | osf5*) 12989 lt_cv_deplibs_check_method=pass_all 12990 ;; 12991 12992 rdos*) 12993 lt_cv_deplibs_check_method=pass_all 12994 ;; 12995 12996 serenity*) 12997 lt_cv_deplibs_check_method=pass_all 12998 ;; 12999 13000 solaris*) 13001 lt_cv_deplibs_check_method=pass_all 13002 ;; 13003 13004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13005 lt_cv_deplibs_check_method=pass_all 13006 ;; 13007 13008 sysv4 | sysv4.3*) 13009 case $host_vendor in 13010 motorola) 13011 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]' 13012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13013 ;; 13014 ncr) 13015 lt_cv_deplibs_check_method=pass_all 13016 ;; 13017 sequent) 13018 lt_cv_file_magic_cmd='/bin/file' 13019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13020 ;; 13021 sni) 13022 lt_cv_file_magic_cmd='/bin/file' 13023 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13024 lt_cv_file_magic_test_file=/lib/libc.so 13025 ;; 13026 siemens) 13027 lt_cv_deplibs_check_method=pass_all 13028 ;; 13029 pc) 13030 lt_cv_deplibs_check_method=pass_all 13031 ;; 13032 esac 13033 ;; 13034 13035 tpf*) 13036 lt_cv_deplibs_check_method=pass_all 13037 ;; 13038 os2*) 13039 lt_cv_deplibs_check_method=pass_all 13040 ;; 13041 esac 13042 ;; 13043 esac 13044 fi 13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13046 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 13047 13048 file_magic_glob= 13049 want_nocaseglob=no 13050 if test "$build" = "$host"; then 13051 case $host_os in 13052 mingw* | windows* | pw32*) 13053 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13054 want_nocaseglob=yes 13055 else 13056 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13057 fi 13058 ;; 13059 esac 13060 fi 13061 13062 file_magic_cmd=$lt_cv_file_magic_cmd 13063 deplibs_check_method=$lt_cv_deplibs_check_method 13064 test -z "$deplibs_check_method" && deplibs_check_method=unknown 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 if test -n "$ac_tool_prefix"; then 13088 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13089 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13091 printf %s "checking for $ac_word... " >&6; } 13092 if test ${ac_cv_prog_DLLTOOL+y} 13093 then : 13094 printf %s "(cached) " >&6 13095 else case e in #( 13096 e) if test -n "$DLLTOOL"; then 13097 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13098 else 13099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13100 for as_dir in $PATH 13101 do 13102 IFS=$as_save_IFS 13103 case $as_dir in #((( 13104 '') as_dir=./ ;; 13105 */) ;; 13106 *) as_dir=$as_dir/ ;; 13107 esac 13108 for ac_exec_ext in '' $ac_executable_extensions; do 13109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13110 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13112 break 2 13113 fi 13114 done 13115 done 13116 IFS=$as_save_IFS 13117 13118 fi ;; 13119 esac 13120 fi 13121 DLLTOOL=$ac_cv_prog_DLLTOOL 13122 if test -n "$DLLTOOL"; then 13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13124 printf "%s\n" "$DLLTOOL" >&6; } 13125 else 13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13127 printf "%s\n" "no" >&6; } 13128 fi 13129 13130 13131 fi 13132 if test -z "$ac_cv_prog_DLLTOOL"; then 13133 ac_ct_DLLTOOL=$DLLTOOL 13134 # Extract the first word of "dlltool", so it can be a program name with args. 13135 set dummy dlltool; ac_word=$2 13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13137 printf %s "checking for $ac_word... " >&6; } 13138 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 13139 then : 13140 printf %s "(cached) " >&6 13141 else case e in #( 13142 e) if test -n "$ac_ct_DLLTOOL"; then 13143 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13144 else 13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13146 for as_dir in $PATH 13147 do 13148 IFS=$as_save_IFS 13149 case $as_dir in #((( 13150 '') as_dir=./ ;; 13151 */) ;; 13152 *) as_dir=$as_dir/ ;; 13153 esac 13154 for ac_exec_ext in '' $ac_executable_extensions; do 13155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13156 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13158 break 2 13159 fi 13160 done 13161 done 13162 IFS=$as_save_IFS 13163 13164 fi ;; 13165 esac 13166 fi 13167 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13168 if test -n "$ac_ct_DLLTOOL"; then 13169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13170 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 13171 else 13172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13173 printf "%s\n" "no" >&6; } 13174 fi 13175 13176 if test "x$ac_ct_DLLTOOL" = x; then 13177 DLLTOOL="false" 13178 else 13179 case $cross_compiling:$ac_tool_warned in 13180 yes:) 13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13182 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13183 ac_tool_warned=yes ;; 13184 esac 13185 DLLTOOL=$ac_ct_DLLTOOL 13186 fi 13187 else 13188 DLLTOOL="$ac_cv_prog_DLLTOOL" 13189 fi 13190 13191 test -z "$DLLTOOL" && DLLTOOL=dlltool 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13203 printf %s "checking how to associate runtime and link libraries... " >&6; } 13204 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 13205 then : 13206 printf %s "(cached) " >&6 13207 else case e in #( 13208 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 13209 13210 case $host_os in 13211 cygwin* | mingw* | windows* | pw32* | cegcc*) 13212 # two different shell functions defined in ltmain.sh; 13213 # decide which one to use based on capabilities of $DLLTOOL 13214 case `$DLLTOOL --help 2>&1` in 13215 *--identify-strict*) 13216 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13217 ;; 13218 *) 13219 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13220 ;; 13221 esac 13222 ;; 13223 *) 13224 # fallback: assume linklib IS sharedlib 13225 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13226 ;; 13227 esac 13228 ;; 13229 esac 13230 fi 13231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13232 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13233 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13234 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13235 13236 13237 13238 13239 13240 13241 13242 if test -n "$ac_tool_prefix"; then 13243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13246 printf %s "checking for $ac_word... " >&6; } 13247 if test ${ac_cv_prog_RANLIB+y} 13248 then : 13249 printf %s "(cached) " >&6 13250 else case e in #( 13251 e) if test -n "$RANLIB"; then 13252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13253 else 13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13255 for as_dir in $PATH 13256 do 13257 IFS=$as_save_IFS 13258 case $as_dir in #((( 13259 '') as_dir=./ ;; 13260 */) ;; 13261 *) as_dir=$as_dir/ ;; 13262 esac 13263 for ac_exec_ext in '' $ac_executable_extensions; do 13264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13267 break 2 13268 fi 13269 done 13270 done 13271 IFS=$as_save_IFS 13272 13273 fi ;; 13274 esac 13275 fi 13276 RANLIB=$ac_cv_prog_RANLIB 13277 if test -n "$RANLIB"; then 13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13279 printf "%s\n" "$RANLIB" >&6; } 13280 else 13281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13282 printf "%s\n" "no" >&6; } 13283 fi 13284 13285 13286 fi 13287 if test -z "$ac_cv_prog_RANLIB"; then 13288 ac_ct_RANLIB=$RANLIB 13289 # Extract the first word of "ranlib", so it can be a program name with args. 13290 set dummy ranlib; ac_word=$2 13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13292 printf %s "checking for $ac_word... " >&6; } 13293 if test ${ac_cv_prog_ac_ct_RANLIB+y} 13294 then : 13295 printf %s "(cached) " >&6 13296 else case e in #( 13297 e) if test -n "$ac_ct_RANLIB"; then 13298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13299 else 13300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13301 for as_dir in $PATH 13302 do 13303 IFS=$as_save_IFS 13304 case $as_dir in #((( 13305 '') as_dir=./ ;; 13306 */) ;; 13307 *) as_dir=$as_dir/ ;; 13308 esac 13309 for ac_exec_ext in '' $ac_executable_extensions; do 13310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13311 ac_cv_prog_ac_ct_RANLIB="ranlib" 13312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13313 break 2 13314 fi 13315 done 13316 done 13317 IFS=$as_save_IFS 13318 13319 fi ;; 13320 esac 13321 fi 13322 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13323 if test -n "$ac_ct_RANLIB"; then 13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13325 printf "%s\n" "$ac_ct_RANLIB" >&6; } 13326 else 13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13328 printf "%s\n" "no" >&6; } 13329 fi 13330 13331 if test "x$ac_ct_RANLIB" = x; then 13332 RANLIB=":" 13333 else 13334 case $cross_compiling:$ac_tool_warned in 13335 yes:) 13336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13337 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13338 ac_tool_warned=yes ;; 13339 esac 13340 RANLIB=$ac_ct_RANLIB 13341 fi 13342 else 13343 RANLIB="$ac_cv_prog_RANLIB" 13344 fi 13345 13346 if test -n "$ac_tool_prefix"; then 13347 for ac_prog in ar 13348 do 13349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13352 printf %s "checking for $ac_word... " >&6; } 13353 if test ${ac_cv_prog_AR+y} 13354 then : 13355 printf %s "(cached) " >&6 13356 else case e in #( 13357 e) if test -n "$AR"; then 13358 ac_cv_prog_AR="$AR" # Let the user override the test. 13359 else 13360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13361 for as_dir in $PATH 13362 do 13363 IFS=$as_save_IFS 13364 case $as_dir in #((( 13365 '') as_dir=./ ;; 13366 */) ;; 13367 *) as_dir=$as_dir/ ;; 13368 esac 13369 for ac_exec_ext in '' $ac_executable_extensions; do 13370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13371 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13373 break 2 13374 fi 13375 done 13376 done 13377 IFS=$as_save_IFS 13378 13379 fi ;; 13380 esac 13381 fi 13382 AR=$ac_cv_prog_AR 13383 if test -n "$AR"; then 13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13385 printf "%s\n" "$AR" >&6; } 13386 else 13387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13388 printf "%s\n" "no" >&6; } 13389 fi 13390 13391 13392 test -n "$AR" && break 13393 done 13394 fi 13395 if test -z "$AR"; then 13396 ac_ct_AR=$AR 13397 for ac_prog in ar 13398 do 13399 # Extract the first word of "$ac_prog", so it can be a program name with args. 13400 set dummy $ac_prog; ac_word=$2 13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13402 printf %s "checking for $ac_word... " >&6; } 13403 if test ${ac_cv_prog_ac_ct_AR+y} 13404 then : 13405 printf %s "(cached) " >&6 13406 else case e in #( 13407 e) if test -n "$ac_ct_AR"; then 13408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13409 else 13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13411 for as_dir in $PATH 13412 do 13413 IFS=$as_save_IFS 13414 case $as_dir in #((( 13415 '') as_dir=./ ;; 13416 */) ;; 13417 *) as_dir=$as_dir/ ;; 13418 esac 13419 for ac_exec_ext in '' $ac_executable_extensions; do 13420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13421 ac_cv_prog_ac_ct_AR="$ac_prog" 13422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13423 break 2 13424 fi 13425 done 13426 done 13427 IFS=$as_save_IFS 13428 13429 fi ;; 13430 esac 13431 fi 13432 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13433 if test -n "$ac_ct_AR"; then 13434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13435 printf "%s\n" "$ac_ct_AR" >&6; } 13436 else 13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13438 printf "%s\n" "no" >&6; } 13439 fi 13440 13441 13442 test -n "$ac_ct_AR" && break 13443 done 13444 13445 if test "x$ac_ct_AR" = x; then 13446 AR="false" 13447 else 13448 case $cross_compiling:$ac_tool_warned in 13449 yes:) 13450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13451 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13452 ac_tool_warned=yes ;; 13453 esac 13454 AR=$ac_ct_AR 13455 fi 13456 fi 13457 13458 : ${AR=ar} 13459 13460 13461 13462 13463 13464 13465 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 13466 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13467 # higher priority because that's what people were doing historically (setting 13468 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13469 # variable obsoleted/removed. 13470 13471 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13472 lt_ar_flags=$AR_FLAGS 13473 13474 13475 13476 13477 13478 13479 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13480 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13481 13482 13483 13484 13485 13486 13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13488 printf %s "checking for archiver @FILE support... " >&6; } 13489 if test ${lt_cv_ar_at_file+y} 13490 then : 13491 printf %s "(cached) " >&6 13492 else case e in #( 13493 e) lt_cv_ar_at_file=no 13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13495 /* end confdefs.h. */ 13496 13497 int 13498 main (void) 13499 { 13500 13501 ; 13502 return 0; 13503 } 13504 _ACEOF 13505 if ac_fn_c_try_compile "$LINENO" 13506 then : 13507 echo conftest.$ac_objext > conftest.lst 13508 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13510 (eval $lt_ar_try) 2>&5 13511 ac_status=$? 13512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13513 test $ac_status = 0; } 13514 if test 0 -eq "$ac_status"; then 13515 # Ensure the archiver fails upon bogus file names. 13516 rm -f conftest.$ac_objext libconftest.a 13517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13518 (eval $lt_ar_try) 2>&5 13519 ac_status=$? 13520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13521 test $ac_status = 0; } 13522 if test 0 -ne "$ac_status"; then 13523 lt_cv_ar_at_file=@ 13524 fi 13525 fi 13526 rm -f conftest.* libconftest.a 13527 13528 fi 13529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13530 ;; 13531 esac 13532 fi 13533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13534 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13535 13536 if test no = "$lt_cv_ar_at_file"; then 13537 archiver_list_spec= 13538 else 13539 archiver_list_spec=$lt_cv_ar_at_file 13540 fi 13541 13542 13543 13544 13545 13546 13547 13548 if test -n "$ac_tool_prefix"; then 13549 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13550 set dummy ${ac_tool_prefix}strip; ac_word=$2 13551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13552 printf %s "checking for $ac_word... " >&6; } 13553 if test ${ac_cv_prog_STRIP+y} 13554 then : 13555 printf %s "(cached) " >&6 13556 else case e in #( 13557 e) if test -n "$STRIP"; then 13558 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13559 else 13560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13561 for as_dir in $PATH 13562 do 13563 IFS=$as_save_IFS 13564 case $as_dir in #((( 13565 '') as_dir=./ ;; 13566 */) ;; 13567 *) as_dir=$as_dir/ ;; 13568 esac 13569 for ac_exec_ext in '' $ac_executable_extensions; do 13570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13571 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13573 break 2 13574 fi 13575 done 13576 done 13577 IFS=$as_save_IFS 13578 13579 fi ;; 13580 esac 13581 fi 13582 STRIP=$ac_cv_prog_STRIP 13583 if test -n "$STRIP"; then 13584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13585 printf "%s\n" "$STRIP" >&6; } 13586 else 13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13588 printf "%s\n" "no" >&6; } 13589 fi 13590 13591 13592 fi 13593 if test -z "$ac_cv_prog_STRIP"; then 13594 ac_ct_STRIP=$STRIP 13595 # Extract the first word of "strip", so it can be a program name with args. 13596 set dummy strip; ac_word=$2 13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13598 printf %s "checking for $ac_word... " >&6; } 13599 if test ${ac_cv_prog_ac_ct_STRIP+y} 13600 then : 13601 printf %s "(cached) " >&6 13602 else case e in #( 13603 e) if test -n "$ac_ct_STRIP"; then 13604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13605 else 13606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13607 for as_dir in $PATH 13608 do 13609 IFS=$as_save_IFS 13610 case $as_dir in #((( 13611 '') as_dir=./ ;; 13612 */) ;; 13613 *) as_dir=$as_dir/ ;; 13614 esac 13615 for ac_exec_ext in '' $ac_executable_extensions; do 13616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13617 ac_cv_prog_ac_ct_STRIP="strip" 13618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13619 break 2 13620 fi 13621 done 13622 done 13623 IFS=$as_save_IFS 13624 13625 fi ;; 13626 esac 13627 fi 13628 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13629 if test -n "$ac_ct_STRIP"; then 13630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13631 printf "%s\n" "$ac_ct_STRIP" >&6; } 13632 else 13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13634 printf "%s\n" "no" >&6; } 13635 fi 13636 13637 if test "x$ac_ct_STRIP" = x; then 13638 STRIP=":" 13639 else 13640 case $cross_compiling:$ac_tool_warned in 13641 yes:) 13642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13643 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13644 ac_tool_warned=yes ;; 13645 esac 13646 STRIP=$ac_ct_STRIP 13647 fi 13648 else 13649 STRIP="$ac_cv_prog_STRIP" 13650 fi 13651 13652 test -z "$STRIP" && STRIP=: 13653 13654 13655 13656 13657 13658 13659 13660 test -z "$RANLIB" && RANLIB=: 13661 13662 13663 13664 13665 13666 13667 # Determine commands to create old-style static archives. 13668 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13669 old_postinstall_cmds='chmod 644 $oldlib' 13670 old_postuninstall_cmds= 13671 13672 if test -n "$RANLIB"; then 13673 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13674 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13675 fi 13676 13677 case $host_os in 13678 darwin*) 13679 lock_old_archive_extraction=yes ;; 13680 *) 13681 lock_old_archive_extraction=no ;; 13682 esac 13683 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 13722 # If no C compiler was specified, use CC. 13723 LTCC=${LTCC-"$CC"} 13724 13725 # If no C compiler flags were specified, use CFLAGS. 13726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13727 13728 # Allow CC to be a program name with arguments. 13729 compiler=$CC 13730 13731 13732 # Check for command to grab the raw symbol name followed by C symbol from nm. 13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13734 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13735 if test ${lt_cv_sys_global_symbol_pipe+y} 13736 then : 13737 printf %s "(cached) " >&6 13738 else case e in #( 13739 e) 13740 # These are sane defaults that work on at least a few old systems. 13741 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13742 13743 # Character class describing NM global symbol codes. 13744 symcode='[BCDEGRST]' 13745 13746 # Regexp to match symbols that can be accessed directly from C. 13747 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13748 13749 # Define system-specific variables. 13750 case $host_os in 13751 aix*) 13752 symcode='[BCDT]' 13753 ;; 13754 cygwin* | mingw* | windows* | pw32* | cegcc*) 13755 symcode='[ABCDGISTW]' 13756 ;; 13757 hpux*) 13758 if test ia64 = "$host_cpu"; then 13759 symcode='[ABCDEGRST]' 13760 fi 13761 ;; 13762 irix* | nonstopux*) 13763 symcode='[BCDEGRST]' 13764 ;; 13765 osf*) 13766 symcode='[BCDEGQRST]' 13767 ;; 13768 solaris*) 13769 symcode='[BCDRT]' 13770 ;; 13771 sco3.2v5*) 13772 symcode='[DT]' 13773 ;; 13774 sysv4.2uw2*) 13775 symcode='[DT]' 13776 ;; 13777 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13778 symcode='[ABDT]' 13779 ;; 13780 sysv4) 13781 symcode='[DFNSTU]' 13782 ;; 13783 esac 13784 13785 # If we're using GNU nm, then use its standard symbol codes. 13786 case `$NM -V 2>&1` in 13787 *GNU* | *'with BFD'*) 13788 symcode='[ABCDGIRSTW]' ;; 13789 esac 13790 13791 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13792 # Gets list of data symbols to import. 13793 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13794 # Adjust the below global symbol transforms to fixup imported variables. 13795 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13796 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13797 lt_c_name_lib_hook="\ 13798 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13799 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13800 else 13801 # Disable hooks by default. 13802 lt_cv_sys_global_symbol_to_import= 13803 lt_cdecl_hook= 13804 lt_c_name_hook= 13805 lt_c_name_lib_hook= 13806 fi 13807 13808 # Transform an extracted symbol line into a proper C declaration. 13809 # Some systems (esp. on ia64) link data and code symbols differently, 13810 # so use this general approach. 13811 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13812 $lt_cdecl_hook\ 13813 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13814 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13815 13816 # Transform an extracted symbol line into symbol name and symbol address 13817 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13818 $lt_c_name_hook\ 13819 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13820 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13821 13822 # Transform an extracted symbol line into symbol name with lib prefix and 13823 # symbol address. 13824 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13825 $lt_c_name_lib_hook\ 13826 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13827 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13828 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13829 13830 # Handle CRLF in mingw tool chain 13831 opt_cr= 13832 case $build_os in 13833 mingw* | windows*) 13834 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13835 ;; 13836 esac 13837 13838 # Try without a prefix underscore, then with it. 13839 for ac_symprfx in "" "_"; do 13840 13841 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13842 symxfrm="\\1 $ac_symprfx\\2 \\2" 13843 13844 # Write the raw and C identifiers. 13845 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13846 # Fake it for dumpbin and say T for any non-static function, 13847 # D for any global variable and I for any imported variable. 13848 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13849 # which start with @ or ?. 13850 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13851 " {last_section=section; section=\$ 3};"\ 13852 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13853 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13854 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13855 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13856 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13857 " \$ 0!~/External *\|/{next};"\ 13858 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13859 " {if(hide[section]) next};"\ 13860 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13861 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13862 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13863 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13864 " ' prfx=^$ac_symprfx" 13865 else 13866 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13867 fi 13868 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13869 13870 # Check to see that the pipe works correctly. 13871 pipe_works=no 13872 13873 rm -f conftest* 13874 cat > conftest.$ac_ext <<_LT_EOF 13875 #ifdef __cplusplus 13876 extern "C" { 13877 #endif 13878 char nm_test_var; 13879 void nm_test_func(void); 13880 void nm_test_func(void){} 13881 #ifdef __cplusplus 13882 } 13883 #endif 13884 int main(void){nm_test_var='a';nm_test_func();return(0);} 13885 _LT_EOF 13886 13887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13888 (eval $ac_compile) 2>&5 13889 ac_status=$? 13890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13891 test $ac_status = 0; }; then 13892 # Now try to grab the symbols. 13893 nlist=conftest.nm 13894 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 13895 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 13896 # Try sorting and uniquifying the output. 13897 if sort "$nlist" | uniq > "$nlist"T; then 13898 mv -f "$nlist"T "$nlist" 13899 else 13900 rm -f "$nlist"T 13901 fi 13902 13903 # Make sure that we snagged all the symbols we need. 13904 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13905 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13906 cat <<_LT_EOF > conftest.$ac_ext 13907 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13908 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13909 /* DATA imports from DLLs on WIN32 can't be const, because runtime 13910 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13911 # define LT_DLSYM_CONST 13912 #elif defined __osf__ 13913 /* This system does not cope well with relocations in const data. */ 13914 # define LT_DLSYM_CONST 13915 #else 13916 # define LT_DLSYM_CONST const 13917 #endif 13918 13919 #ifdef __cplusplus 13920 extern "C" { 13921 #endif 13922 13923 _LT_EOF 13924 # Now generate the symbol file. 13925 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13926 13927 cat <<_LT_EOF >> conftest.$ac_ext 13928 13929 /* The mapping between symbol names and symbols. */ 13930 LT_DLSYM_CONST struct { 13931 const char *name; 13932 void *address; 13933 } 13934 lt__PROGRAM__LTX_preloaded_symbols[] = 13935 { 13936 { "@PROGRAM@", (void *) 0 }, 13937 _LT_EOF 13938 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13939 cat <<\_LT_EOF >> conftest.$ac_ext 13940 {0, (void *) 0} 13941 }; 13942 13943 /* This works around a problem in FreeBSD linker */ 13944 #ifdef FREEBSD_WORKAROUND 13945 static const void *lt_preloaded_setup() { 13946 return lt__PROGRAM__LTX_preloaded_symbols; 13947 } 13948 #endif 13949 13950 #ifdef __cplusplus 13951 } 13952 #endif 13953 _LT_EOF 13954 # Now try linking the two files. 13955 mv conftest.$ac_objext conftstm.$ac_objext 13956 lt_globsym_save_LIBS=$LIBS 13957 lt_globsym_save_CFLAGS=$CFLAGS 13958 LIBS=conftstm.$ac_objext 13959 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13961 (eval $ac_link) 2>&5 13962 ac_status=$? 13963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13964 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13965 pipe_works=yes 13966 fi 13967 LIBS=$lt_globsym_save_LIBS 13968 CFLAGS=$lt_globsym_save_CFLAGS 13969 else 13970 echo "cannot find nm_test_func in $nlist" >&5 13971 fi 13972 else 13973 echo "cannot find nm_test_var in $nlist" >&5 13974 fi 13975 else 13976 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13977 fi 13978 else 13979 echo "$progname: failed program was:" >&5 13980 cat conftest.$ac_ext >&5 13981 fi 13982 rm -rf conftest* conftst* 13983 13984 # Do not use the global_symbol_pipe unless it works. 13985 if test yes = "$pipe_works"; then 13986 break 13987 else 13988 lt_cv_sys_global_symbol_pipe= 13989 fi 13990 done 13991 ;; 13992 esac 13993 fi 13994 13995 if test -z "$lt_cv_sys_global_symbol_pipe"; then 13996 lt_cv_sys_global_symbol_to_cdecl= 13997 fi 13998 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14000 printf "%s\n" "failed" >&6; } 14001 else 14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14003 printf "%s\n" "ok" >&6; } 14004 fi 14005 14006 # Response file support. 14007 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14008 nm_file_list_spec='@' 14009 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14010 nm_file_list_spec='@' 14011 fi 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14050 printf %s "checking for sysroot... " >&6; } 14051 14052 # Check whether --with-sysroot was given. 14053 if test ${with_sysroot+y} 14054 then : 14055 withval=$with_sysroot; 14056 else case e in #( 14057 e) with_sysroot=no ;; 14058 esac 14059 fi 14060 14061 14062 lt_sysroot= 14063 case $with_sysroot in #( 14064 yes) 14065 if test yes = "$GCC"; then 14066 # Trim trailing / since we'll always append absolute paths and we want 14067 # to avoid //, if only for less confusing output for the user. 14068 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 14069 fi 14070 ;; #( 14071 /*) 14072 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 14073 ;; #( 14074 no|'') 14075 ;; #( 14076 *) 14077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14078 printf "%s\n" "$with_sysroot" >&6; } 14079 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14080 ;; 14081 esac 14082 14083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14084 printf "%s\n" "${lt_sysroot:-no}" >&6; } 14085 14086 14087 14088 14089 14090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14091 printf %s "checking for a working dd... " >&6; } 14092 if test ${ac_cv_path_lt_DD+y} 14093 then : 14094 printf %s "(cached) " >&6 14095 else case e in #( 14096 e) printf 0123456789abcdef0123456789abcdef >conftest.i 14097 cat conftest.i conftest.i >conftest2.i 14098 : ${lt_DD:=$DD} 14099 if test -z "$lt_DD"; then 14100 ac_path_lt_DD_found=false 14101 # Loop through the user's path and test for each of PROGNAME-LIST 14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14103 for as_dir in $PATH 14104 do 14105 IFS=$as_save_IFS 14106 case $as_dir in #((( 14107 '') as_dir=./ ;; 14108 */) ;; 14109 *) as_dir=$as_dir/ ;; 14110 esac 14111 for ac_prog in dd 14112 do 14113 for ac_exec_ext in '' $ac_executable_extensions; do 14114 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 14115 as_fn_executable_p "$ac_path_lt_DD" || continue 14116 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14117 cmp -s conftest.i conftest.out \ 14118 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14119 fi 14120 $ac_path_lt_DD_found && break 3 14121 done 14122 done 14123 done 14124 IFS=$as_save_IFS 14125 if test -z "$ac_cv_path_lt_DD"; then 14126 : 14127 fi 14128 else 14129 ac_cv_path_lt_DD=$lt_DD 14130 fi 14131 14132 rm -f conftest.i conftest2.i conftest.out ;; 14133 esac 14134 fi 14135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14136 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 14137 14138 14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14140 printf %s "checking how to truncate binary pipes... " >&6; } 14141 if test ${lt_cv_truncate_bin+y} 14142 then : 14143 printf %s "(cached) " >&6 14144 else case e in #( 14145 e) printf 0123456789abcdef0123456789abcdef >conftest.i 14146 cat conftest.i conftest.i >conftest2.i 14147 lt_cv_truncate_bin= 14148 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14149 cmp -s conftest.i conftest.out \ 14150 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14151 fi 14152 rm -f conftest.i conftest2.i conftest.out 14153 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 14154 esac 14155 fi 14156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14157 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 14158 14159 14160 14161 14162 14163 14164 14165 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14166 func_cc_basename () 14167 { 14168 for cc_temp in $*""; do 14169 case $cc_temp in 14170 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14171 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14172 \-*) ;; 14173 *) break;; 14174 esac 14175 done 14176 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14177 } 14178 14179 # Check whether --enable-libtool-lock was given. 14180 if test ${enable_libtool_lock+y} 14181 then : 14182 enableval=$enable_libtool_lock; 14183 fi 14184 14185 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14186 14187 # Some flags need to be propagated to the compiler or linker for good 14188 # libtool support. 14189 case $host in 14190 ia64-*-hpux*) 14191 # Find out what ABI is being produced by ac_compile, and set mode 14192 # options accordingly. 14193 echo 'int i;' > conftest.$ac_ext 14194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14195 (eval $ac_compile) 2>&5 14196 ac_status=$? 14197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14198 test $ac_status = 0; }; then 14199 case `$FILECMD conftest.$ac_objext` in 14200 *ELF-32*) 14201 HPUX_IA64_MODE=32 14202 ;; 14203 *ELF-64*) 14204 HPUX_IA64_MODE=64 14205 ;; 14206 esac 14207 fi 14208 rm -rf conftest* 14209 ;; 14210 *-*-irix6*) 14211 # Find out what ABI is being produced by ac_compile, and set linker 14212 # options accordingly. 14213 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14215 (eval $ac_compile) 2>&5 14216 ac_status=$? 14217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14218 test $ac_status = 0; }; then 14219 if test yes = "$lt_cv_prog_gnu_ld"; then 14220 case `$FILECMD conftest.$ac_objext` in 14221 *32-bit*) 14222 LD="${LD-ld} -melf32bsmip" 14223 ;; 14224 *N32*) 14225 LD="${LD-ld} -melf32bmipn32" 14226 ;; 14227 *64-bit*) 14228 LD="${LD-ld} -melf64bmip" 14229 ;; 14230 esac 14231 else 14232 case `$FILECMD conftest.$ac_objext` in 14233 *32-bit*) 14234 LD="${LD-ld} -32" 14235 ;; 14236 *N32*) 14237 LD="${LD-ld} -n32" 14238 ;; 14239 *64-bit*) 14240 LD="${LD-ld} -64" 14241 ;; 14242 esac 14243 fi 14244 fi 14245 rm -rf conftest* 14246 ;; 14247 14248 mips64*-*linux*) 14249 # Find out what ABI is being produced by ac_compile, and set linker 14250 # options accordingly. 14251 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14253 (eval $ac_compile) 2>&5 14254 ac_status=$? 14255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14256 test $ac_status = 0; }; then 14257 emul=elf 14258 case `$FILECMD conftest.$ac_objext` in 14259 *32-bit*) 14260 emul="${emul}32" 14261 ;; 14262 *64-bit*) 14263 emul="${emul}64" 14264 ;; 14265 esac 14266 case `$FILECMD conftest.$ac_objext` in 14267 *MSB*) 14268 emul="${emul}btsmip" 14269 ;; 14270 *LSB*) 14271 emul="${emul}ltsmip" 14272 ;; 14273 esac 14274 case `$FILECMD conftest.$ac_objext` in 14275 *N32*) 14276 emul="${emul}n32" 14277 ;; 14278 esac 14279 LD="${LD-ld} -m $emul" 14280 fi 14281 rm -rf conftest* 14282 ;; 14283 14284 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14285 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 14286 # Find out what ABI is being produced by ac_compile, and set linker 14287 # options accordingly. Note that the listed cases only cover the 14288 # situations where additional linker options are needed (such as when 14289 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14290 # vice versa); the common cases where no linker options are needed do 14291 # not appear in the list. 14292 echo 'int i;' > conftest.$ac_ext 14293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14294 (eval $ac_compile) 2>&5 14295 ac_status=$? 14296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14297 test $ac_status = 0; }; then 14298 case `$FILECMD conftest.o` in 14299 *32-bit*) 14300 case $host in 14301 x86_64-*kfreebsd*-gnu) 14302 LD="${LD-ld} -m elf_i386_fbsd" 14303 ;; 14304 x86_64-*linux*|x86_64-gnu*) 14305 case `$FILECMD conftest.o` in 14306 *x86-64*) 14307 LD="${LD-ld} -m elf32_x86_64" 14308 ;; 14309 *) 14310 LD="${LD-ld} -m elf_i386" 14311 ;; 14312 esac 14313 ;; 14314 powerpc64le-*linux*) 14315 LD="${LD-ld} -m elf32lppclinux" 14316 ;; 14317 powerpc64-*linux*) 14318 LD="${LD-ld} -m elf32ppclinux" 14319 ;; 14320 s390x-*linux*) 14321 LD="${LD-ld} -m elf_s390" 14322 ;; 14323 sparc64-*linux*) 14324 LD="${LD-ld} -m elf32_sparc" 14325 ;; 14326 esac 14327 ;; 14328 *64-bit*) 14329 case $host in 14330 x86_64-*kfreebsd*-gnu) 14331 LD="${LD-ld} -m elf_x86_64_fbsd" 14332 ;; 14333 x86_64-*linux*|x86_64-gnu*) 14334 LD="${LD-ld} -m elf_x86_64" 14335 ;; 14336 powerpcle-*linux*) 14337 LD="${LD-ld} -m elf64lppc" 14338 ;; 14339 powerpc-*linux*) 14340 LD="${LD-ld} -m elf64ppc" 14341 ;; 14342 s390*-*linux*|s390*-*tpf*) 14343 LD="${LD-ld} -m elf64_s390" 14344 ;; 14345 sparc*-*linux*) 14346 LD="${LD-ld} -m elf64_sparc" 14347 ;; 14348 esac 14349 ;; 14350 esac 14351 fi 14352 rm -rf conftest* 14353 ;; 14354 14355 *-*-sco3.2v5*) 14356 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14357 SAVE_CFLAGS=$CFLAGS 14358 CFLAGS="$CFLAGS -belf" 14359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14360 printf %s "checking whether the C compiler needs -belf... " >&6; } 14361 if test ${lt_cv_cc_needs_belf+y} 14362 then : 14363 printf %s "(cached) " >&6 14364 else case e in #( 14365 e) ac_ext=c 14366 ac_cpp='$CPP $CPPFLAGS' 14367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14369 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14370 14371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14372 /* end confdefs.h. */ 14373 14374 int 14375 main (void) 14376 { 14377 14378 ; 14379 return 0; 14380 } 14381 _ACEOF 14382 if ac_fn_c_try_link "$LINENO" 14383 then : 14384 lt_cv_cc_needs_belf=yes 14385 else case e in #( 14386 e) lt_cv_cc_needs_belf=no ;; 14387 esac 14388 fi 14389 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14390 conftest$ac_exeext conftest.$ac_ext 14391 ac_ext=c 14392 ac_cpp='$CPP $CPPFLAGS' 14393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14395 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14396 ;; 14397 esac 14398 fi 14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14400 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14401 if test yes != "$lt_cv_cc_needs_belf"; then 14402 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14403 CFLAGS=$SAVE_CFLAGS 14404 fi 14405 ;; 14406 *-*solaris*) 14407 # Find out what ABI is being produced by ac_compile, and set linker 14408 # options accordingly. 14409 echo 'int i;' > conftest.$ac_ext 14410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14411 (eval $ac_compile) 2>&5 14412 ac_status=$? 14413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14414 test $ac_status = 0; }; then 14415 case `$FILECMD conftest.o` in 14416 *64-bit*) 14417 case $lt_cv_prog_gnu_ld in 14418 yes*) 14419 case $host in 14420 i?86-*-solaris*|x86_64-*-solaris*) 14421 LD="${LD-ld} -m elf_x86_64" 14422 ;; 14423 sparc*-*-solaris*) 14424 LD="${LD-ld} -m elf64_sparc" 14425 ;; 14426 esac 14427 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14428 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14429 LD=${LD-ld}_sol2 14430 fi 14431 ;; 14432 *) 14433 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14434 LD="${LD-ld} -64" 14435 fi 14436 ;; 14437 esac 14438 ;; 14439 esac 14440 fi 14441 rm -rf conftest* 14442 ;; 14443 esac 14444 14445 need_locks=$enable_libtool_lock 14446 14447 if test -n "$ac_tool_prefix"; then 14448 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14449 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+y} 14453 then : 14454 printf %s "(cached) " >&6 14455 else case e in #( 14456 e) if test -n "$MANIFEST_TOOL"; then 14457 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt" 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 esac 14480 fi 14481 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14482 if test -n "$MANIFEST_TOOL"; then 14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14484 printf "%s\n" "$MANIFEST_TOOL" >&6; } 14485 else 14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14487 printf "%s\n" "no" >&6; } 14488 fi 14489 14490 14491 fi 14492 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14493 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14494 # Extract the first word of "mt", so it can be a program name with args. 14495 set dummy mt; ac_word=$2 14496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14497 printf %s "checking for $ac_word... " >&6; } 14498 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14499 then : 14500 printf %s "(cached) " >&6 14501 else case e in #( 14502 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 14503 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14504 else 14505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14506 for as_dir in $PATH 14507 do 14508 IFS=$as_save_IFS 14509 case $as_dir in #((( 14510 '') as_dir=./ ;; 14511 */) ;; 14512 *) as_dir=$as_dir/ ;; 14513 esac 14514 for ac_exec_ext in '' $ac_executable_extensions; do 14515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14516 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14518 break 2 14519 fi 14520 done 14521 done 14522 IFS=$as_save_IFS 14523 14524 fi ;; 14525 esac 14526 fi 14527 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14528 if test -n "$ac_ct_MANIFEST_TOOL"; then 14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14530 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14531 else 14532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14533 printf "%s\n" "no" >&6; } 14534 fi 14535 14536 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14537 MANIFEST_TOOL=":" 14538 else 14539 case $cross_compiling:$ac_tool_warned in 14540 yes:) 14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14542 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14543 ac_tool_warned=yes ;; 14544 esac 14545 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14546 fi 14547 else 14548 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14549 fi 14550 14551 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14553 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14554 if test ${lt_cv_path_manifest_tool+y} 14555 then : 14556 printf %s "(cached) " >&6 14557 else case e in #( 14558 e) lt_cv_path_manifest_tool=no 14559 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14560 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14561 cat conftest.err >&5 14562 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14563 lt_cv_path_manifest_tool=yes 14564 fi 14565 rm -f conftest* ;; 14566 esac 14567 fi 14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 14569 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 14570 if test yes != "$lt_cv_path_manifest_tool"; then 14571 MANIFEST_TOOL=: 14572 fi 14573 14574 14575 14576 14577 14578 14579 case $host_os in 14580 rhapsody* | darwin*) 14581 if test -n "$ac_tool_prefix"; then 14582 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14583 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14585 printf %s "checking for $ac_word... " >&6; } 14586 if test ${ac_cv_prog_DSYMUTIL+y} 14587 then : 14588 printf %s "(cached) " >&6 14589 else case e in #( 14590 e) if test -n "$DSYMUTIL"; then 14591 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14592 else 14593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14594 for as_dir in $PATH 14595 do 14596 IFS=$as_save_IFS 14597 case $as_dir in #((( 14598 '') as_dir=./ ;; 14599 */) ;; 14600 *) as_dir=$as_dir/ ;; 14601 esac 14602 for ac_exec_ext in '' $ac_executable_extensions; do 14603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14604 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14606 break 2 14607 fi 14608 done 14609 done 14610 IFS=$as_save_IFS 14611 14612 fi ;; 14613 esac 14614 fi 14615 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14616 if test -n "$DSYMUTIL"; then 14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14618 printf "%s\n" "$DSYMUTIL" >&6; } 14619 else 14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14621 printf "%s\n" "no" >&6; } 14622 fi 14623 14624 14625 fi 14626 if test -z "$ac_cv_prog_DSYMUTIL"; then 14627 ac_ct_DSYMUTIL=$DSYMUTIL 14628 # Extract the first word of "dsymutil", so it can be a program name with args. 14629 set dummy dsymutil; ac_word=$2 14630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14631 printf %s "checking for $ac_word... " >&6; } 14632 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14633 then : 14634 printf %s "(cached) " >&6 14635 else case e in #( 14636 e) if test -n "$ac_ct_DSYMUTIL"; then 14637 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14638 else 14639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14640 for as_dir in $PATH 14641 do 14642 IFS=$as_save_IFS 14643 case $as_dir in #((( 14644 '') as_dir=./ ;; 14645 */) ;; 14646 *) as_dir=$as_dir/ ;; 14647 esac 14648 for ac_exec_ext in '' $ac_executable_extensions; do 14649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14650 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14652 break 2 14653 fi 14654 done 14655 done 14656 IFS=$as_save_IFS 14657 14658 fi ;; 14659 esac 14660 fi 14661 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14662 if test -n "$ac_ct_DSYMUTIL"; then 14663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14664 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14665 else 14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14667 printf "%s\n" "no" >&6; } 14668 fi 14669 14670 if test "x$ac_ct_DSYMUTIL" = x; then 14671 DSYMUTIL=":" 14672 else 14673 case $cross_compiling:$ac_tool_warned in 14674 yes:) 14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14676 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14677 ac_tool_warned=yes ;; 14678 esac 14679 DSYMUTIL=$ac_ct_DSYMUTIL 14680 fi 14681 else 14682 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14683 fi 14684 14685 if test -n "$ac_tool_prefix"; then 14686 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14687 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14689 printf %s "checking for $ac_word... " >&6; } 14690 if test ${ac_cv_prog_NMEDIT+y} 14691 then : 14692 printf %s "(cached) " >&6 14693 else case e in #( 14694 e) if test -n "$NMEDIT"; then 14695 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14696 else 14697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14698 for as_dir in $PATH 14699 do 14700 IFS=$as_save_IFS 14701 case $as_dir in #((( 14702 '') as_dir=./ ;; 14703 */) ;; 14704 *) as_dir=$as_dir/ ;; 14705 esac 14706 for ac_exec_ext in '' $ac_executable_extensions; do 14707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14708 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14710 break 2 14711 fi 14712 done 14713 done 14714 IFS=$as_save_IFS 14715 14716 fi ;; 14717 esac 14718 fi 14719 NMEDIT=$ac_cv_prog_NMEDIT 14720 if test -n "$NMEDIT"; then 14721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14722 printf "%s\n" "$NMEDIT" >&6; } 14723 else 14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14725 printf "%s\n" "no" >&6; } 14726 fi 14727 14728 14729 fi 14730 if test -z "$ac_cv_prog_NMEDIT"; then 14731 ac_ct_NMEDIT=$NMEDIT 14732 # Extract the first word of "nmedit", so it can be a program name with args. 14733 set dummy nmedit; ac_word=$2 14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14735 printf %s "checking for $ac_word... " >&6; } 14736 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14737 then : 14738 printf %s "(cached) " >&6 14739 else case e in #( 14740 e) if test -n "$ac_ct_NMEDIT"; then 14741 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14742 else 14743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14744 for as_dir in $PATH 14745 do 14746 IFS=$as_save_IFS 14747 case $as_dir in #((( 14748 '') as_dir=./ ;; 14749 */) ;; 14750 *) as_dir=$as_dir/ ;; 14751 esac 14752 for ac_exec_ext in '' $ac_executable_extensions; do 14753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14754 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14756 break 2 14757 fi 14758 done 14759 done 14760 IFS=$as_save_IFS 14761 14762 fi ;; 14763 esac 14764 fi 14765 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14766 if test -n "$ac_ct_NMEDIT"; then 14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14768 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14769 else 14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14771 printf "%s\n" "no" >&6; } 14772 fi 14773 14774 if test "x$ac_ct_NMEDIT" = x; then 14775 NMEDIT=":" 14776 else 14777 case $cross_compiling:$ac_tool_warned in 14778 yes:) 14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14780 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14781 ac_tool_warned=yes ;; 14782 esac 14783 NMEDIT=$ac_ct_NMEDIT 14784 fi 14785 else 14786 NMEDIT="$ac_cv_prog_NMEDIT" 14787 fi 14788 14789 if test -n "$ac_tool_prefix"; then 14790 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14791 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14793 printf %s "checking for $ac_word... " >&6; } 14794 if test ${ac_cv_prog_LIPO+y} 14795 then : 14796 printf %s "(cached) " >&6 14797 else case e in #( 14798 e) if test -n "$LIPO"; then 14799 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14800 else 14801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14802 for as_dir in $PATH 14803 do 14804 IFS=$as_save_IFS 14805 case $as_dir in #((( 14806 '') as_dir=./ ;; 14807 */) ;; 14808 *) as_dir=$as_dir/ ;; 14809 esac 14810 for ac_exec_ext in '' $ac_executable_extensions; do 14811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14812 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14814 break 2 14815 fi 14816 done 14817 done 14818 IFS=$as_save_IFS 14819 14820 fi ;; 14821 esac 14822 fi 14823 LIPO=$ac_cv_prog_LIPO 14824 if test -n "$LIPO"; then 14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14826 printf "%s\n" "$LIPO" >&6; } 14827 else 14828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14829 printf "%s\n" "no" >&6; } 14830 fi 14831 14832 14833 fi 14834 if test -z "$ac_cv_prog_LIPO"; then 14835 ac_ct_LIPO=$LIPO 14836 # Extract the first word of "lipo", so it can be a program name with args. 14837 set dummy lipo; ac_word=$2 14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14839 printf %s "checking for $ac_word... " >&6; } 14840 if test ${ac_cv_prog_ac_ct_LIPO+y} 14841 then : 14842 printf %s "(cached) " >&6 14843 else case e in #( 14844 e) if test -n "$ac_ct_LIPO"; then 14845 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14846 else 14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14848 for as_dir in $PATH 14849 do 14850 IFS=$as_save_IFS 14851 case $as_dir in #((( 14852 '') as_dir=./ ;; 14853 */) ;; 14854 *) as_dir=$as_dir/ ;; 14855 esac 14856 for ac_exec_ext in '' $ac_executable_extensions; do 14857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14858 ac_cv_prog_ac_ct_LIPO="lipo" 14859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14860 break 2 14861 fi 14862 done 14863 done 14864 IFS=$as_save_IFS 14865 14866 fi ;; 14867 esac 14868 fi 14869 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14870 if test -n "$ac_ct_LIPO"; then 14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14872 printf "%s\n" "$ac_ct_LIPO" >&6; } 14873 else 14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14875 printf "%s\n" "no" >&6; } 14876 fi 14877 14878 if test "x$ac_ct_LIPO" = x; then 14879 LIPO=":" 14880 else 14881 case $cross_compiling:$ac_tool_warned in 14882 yes:) 14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14884 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14885 ac_tool_warned=yes ;; 14886 esac 14887 LIPO=$ac_ct_LIPO 14888 fi 14889 else 14890 LIPO="$ac_cv_prog_LIPO" 14891 fi 14892 14893 if test -n "$ac_tool_prefix"; then 14894 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14895 set dummy ${ac_tool_prefix}otool; ac_word=$2 14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14897 printf %s "checking for $ac_word... " >&6; } 14898 if test ${ac_cv_prog_OTOOL+y} 14899 then : 14900 printf %s "(cached) " >&6 14901 else case e in #( 14902 e) if test -n "$OTOOL"; then 14903 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14904 else 14905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14906 for as_dir in $PATH 14907 do 14908 IFS=$as_save_IFS 14909 case $as_dir in #((( 14910 '') as_dir=./ ;; 14911 */) ;; 14912 *) as_dir=$as_dir/ ;; 14913 esac 14914 for ac_exec_ext in '' $ac_executable_extensions; do 14915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14916 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14918 break 2 14919 fi 14920 done 14921 done 14922 IFS=$as_save_IFS 14923 14924 fi ;; 14925 esac 14926 fi 14927 OTOOL=$ac_cv_prog_OTOOL 14928 if test -n "$OTOOL"; then 14929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14930 printf "%s\n" "$OTOOL" >&6; } 14931 else 14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14933 printf "%s\n" "no" >&6; } 14934 fi 14935 14936 14937 fi 14938 if test -z "$ac_cv_prog_OTOOL"; then 14939 ac_ct_OTOOL=$OTOOL 14940 # Extract the first word of "otool", so it can be a program name with args. 14941 set dummy otool; ac_word=$2 14942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14943 printf %s "checking for $ac_word... " >&6; } 14944 if test ${ac_cv_prog_ac_ct_OTOOL+y} 14945 then : 14946 printf %s "(cached) " >&6 14947 else case e in #( 14948 e) if test -n "$ac_ct_OTOOL"; then 14949 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14950 else 14951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14952 for as_dir in $PATH 14953 do 14954 IFS=$as_save_IFS 14955 case $as_dir in #((( 14956 '') as_dir=./ ;; 14957 */) ;; 14958 *) as_dir=$as_dir/ ;; 14959 esac 14960 for ac_exec_ext in '' $ac_executable_extensions; do 14961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14962 ac_cv_prog_ac_ct_OTOOL="otool" 14963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14964 break 2 14965 fi 14966 done 14967 done 14968 IFS=$as_save_IFS 14969 14970 fi ;; 14971 esac 14972 fi 14973 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14974 if test -n "$ac_ct_OTOOL"; then 14975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14976 printf "%s\n" "$ac_ct_OTOOL" >&6; } 14977 else 14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14979 printf "%s\n" "no" >&6; } 14980 fi 14981 14982 if test "x$ac_ct_OTOOL" = x; then 14983 OTOOL=":" 14984 else 14985 case $cross_compiling:$ac_tool_warned in 14986 yes:) 14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14988 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14989 ac_tool_warned=yes ;; 14990 esac 14991 OTOOL=$ac_ct_OTOOL 14992 fi 14993 else 14994 OTOOL="$ac_cv_prog_OTOOL" 14995 fi 14996 14997 if test -n "$ac_tool_prefix"; then 14998 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14999 set dummy ${ac_tool_prefix}otool64; ac_word=$2 15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15001 printf %s "checking for $ac_word... " >&6; } 15002 if test ${ac_cv_prog_OTOOL64+y} 15003 then : 15004 printf %s "(cached) " >&6 15005 else case e in #( 15006 e) if test -n "$OTOOL64"; then 15007 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15008 else 15009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15010 for as_dir in $PATH 15011 do 15012 IFS=$as_save_IFS 15013 case $as_dir in #((( 15014 '') as_dir=./ ;; 15015 */) ;; 15016 *) as_dir=$as_dir/ ;; 15017 esac 15018 for ac_exec_ext in '' $ac_executable_extensions; do 15019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15020 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15022 break 2 15023 fi 15024 done 15025 done 15026 IFS=$as_save_IFS 15027 15028 fi ;; 15029 esac 15030 fi 15031 OTOOL64=$ac_cv_prog_OTOOL64 15032 if test -n "$OTOOL64"; then 15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15034 printf "%s\n" "$OTOOL64" >&6; } 15035 else 15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15037 printf "%s\n" "no" >&6; } 15038 fi 15039 15040 15041 fi 15042 if test -z "$ac_cv_prog_OTOOL64"; then 15043 ac_ct_OTOOL64=$OTOOL64 15044 # Extract the first word of "otool64", so it can be a program name with args. 15045 set dummy otool64; ac_word=$2 15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15047 printf %s "checking for $ac_word... " >&6; } 15048 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 15049 then : 15050 printf %s "(cached) " >&6 15051 else case e in #( 15052 e) if test -n "$ac_ct_OTOOL64"; then 15053 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15054 else 15055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15056 for as_dir in $PATH 15057 do 15058 IFS=$as_save_IFS 15059 case $as_dir in #((( 15060 '') as_dir=./ ;; 15061 */) ;; 15062 *) as_dir=$as_dir/ ;; 15063 esac 15064 for ac_exec_ext in '' $ac_executable_extensions; do 15065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15066 ac_cv_prog_ac_ct_OTOOL64="otool64" 15067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15068 break 2 15069 fi 15070 done 15071 done 15072 IFS=$as_save_IFS 15073 15074 fi ;; 15075 esac 15076 fi 15077 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15078 if test -n "$ac_ct_OTOOL64"; then 15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15080 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 15081 else 15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15083 printf "%s\n" "no" >&6; } 15084 fi 15085 15086 if test "x$ac_ct_OTOOL64" = x; then 15087 OTOOL64=":" 15088 else 15089 case $cross_compiling:$ac_tool_warned in 15090 yes:) 15091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15092 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15093 ac_tool_warned=yes ;; 15094 esac 15095 OTOOL64=$ac_ct_OTOOL64 15096 fi 15097 else 15098 OTOOL64="$ac_cv_prog_OTOOL64" 15099 fi 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15128 printf %s "checking for -single_module linker flag... " >&6; } 15129 if test ${lt_cv_apple_cc_single_mod+y} 15130 then : 15131 printf %s "(cached) " >&6 15132 else case e in #( 15133 e) lt_cv_apple_cc_single_mod=no 15134 if test -z "$LT_MULTI_MODULE"; then 15135 # By default we will add the -single_module flag. You can override 15136 # by either setting the environment variable LT_MULTI_MODULE 15137 # non-empty at configure time, or by adding -multi_module to the 15138 # link flags. 15139 rm -rf libconftest.dylib* 15140 echo "int foo(void){return 1;}" > conftest.c 15141 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15142 -dynamiclib -Wl,-single_module conftest.c" >&5 15143 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15144 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15145 _lt_result=$? 15146 # If there is a non-empty error log, and "single_module" 15147 # appears in it, assume the flag caused a linker warning 15148 if test -s conftest.err && $GREP single_module conftest.err; then 15149 cat conftest.err >&5 15150 # Otherwise, if the output was created with a 0 exit code from 15151 # the compiler, it worked. 15152 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15153 lt_cv_apple_cc_single_mod=yes 15154 else 15155 cat conftest.err >&5 15156 fi 15157 rm -rf libconftest.dylib* 15158 rm -f conftest.* 15159 fi ;; 15160 esac 15161 fi 15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15163 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 15164 15165 # Feature test to disable chained fixups since it is not 15166 # compatible with '-undefined dynamic_lookup' 15167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 15168 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 15169 if test ${lt_cv_support_no_fixup_chains+y} 15170 then : 15171 printf %s "(cached) " >&6 15172 else case e in #( 15173 e) save_LDFLAGS=$LDFLAGS 15174 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15176 /* end confdefs.h. */ 15177 15178 int 15179 main (void) 15180 { 15181 15182 ; 15183 return 0; 15184 } 15185 _ACEOF 15186 if ac_fn_c_try_link "$LINENO" 15187 then : 15188 lt_cv_support_no_fixup_chains=yes 15189 else case e in #( 15190 e) lt_cv_support_no_fixup_chains=no 15191 ;; 15192 esac 15193 fi 15194 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15195 conftest$ac_exeext conftest.$ac_ext 15196 LDFLAGS=$save_LDFLAGS 15197 15198 ;; 15199 esac 15200 fi 15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 15202 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 15203 15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15205 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 15206 if test ${lt_cv_ld_exported_symbols_list+y} 15207 then : 15208 printf %s "(cached) " >&6 15209 else case e in #( 15210 e) lt_cv_ld_exported_symbols_list=no 15211 save_LDFLAGS=$LDFLAGS 15212 echo "_main" > conftest.sym 15213 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15215 /* end confdefs.h. */ 15216 15217 int 15218 main (void) 15219 { 15220 15221 ; 15222 return 0; 15223 } 15224 _ACEOF 15225 if ac_fn_c_try_link "$LINENO" 15226 then : 15227 lt_cv_ld_exported_symbols_list=yes 15228 else case e in #( 15229 e) lt_cv_ld_exported_symbols_list=no ;; 15230 esac 15231 fi 15232 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15233 conftest$ac_exeext conftest.$ac_ext 15234 LDFLAGS=$save_LDFLAGS 15235 ;; 15236 esac 15237 fi 15238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15239 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 15240 15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15242 printf %s "checking for -force_load linker flag... " >&6; } 15243 if test ${lt_cv_ld_force_load+y} 15244 then : 15245 printf %s "(cached) " >&6 15246 else case e in #( 15247 e) lt_cv_ld_force_load=no 15248 cat > conftest.c << _LT_EOF 15249 int forced_loaded() { return 2;} 15250 _LT_EOF 15251 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15252 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15253 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 15254 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 15255 echo "$RANLIB libconftest.a" >&5 15256 $RANLIB libconftest.a 2>&5 15257 cat > conftest.c << _LT_EOF 15258 int main(void) { return 0;} 15259 _LT_EOF 15260 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15261 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15262 _lt_result=$? 15263 if test -s conftest.err && $GREP force_load conftest.err; then 15264 cat conftest.err >&5 15265 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15266 lt_cv_ld_force_load=yes 15267 else 15268 cat conftest.err >&5 15269 fi 15270 rm -f conftest.err libconftest.a conftest conftest.c 15271 rm -rf conftest.dSYM 15272 ;; 15273 esac 15274 fi 15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15276 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 15277 case $host_os in 15278 rhapsody* | darwin1.[012]) 15279 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15280 darwin1.*) 15281 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15282 darwin*) 15283 case $MACOSX_DEPLOYMENT_TARGET,$host in 15284 10.[012],*|,*powerpc*-darwin[5-8]*) 15285 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15286 *) 15287 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 15288 if test yes = "$lt_cv_support_no_fixup_chains"; then 15289 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 15290 fi 15291 ;; 15292 esac 15293 ;; 15294 esac 15295 if test yes = "$lt_cv_apple_cc_single_mod"; then 15296 _lt_dar_single_mod='$single_module' 15297 fi 15298 _lt_dar_needs_single_mod=no 15299 case $host_os in 15300 rhapsody* | darwin1.*) 15301 _lt_dar_needs_single_mod=yes ;; 15302 darwin*) 15303 # When targeting Mac OS X 10.4 (darwin 8) or later, 15304 # -single_module is the default and -multi_module is unsupported. 15305 # The toolchain on macOS 10.14 (darwin 18) and later cannot 15306 # target any OS version that needs -single_module. 15307 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 15308 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 15309 _lt_dar_needs_single_mod=yes ;; 15310 esac 15311 ;; 15312 esac 15313 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15314 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15315 else 15316 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15317 fi 15318 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15319 _lt_dsymutil='~$DSYMUTIL $lib || :' 15320 else 15321 _lt_dsymutil= 15322 fi 15323 ;; 15324 esac 15325 15326 # func_munge_path_list VARIABLE PATH 15327 # ----------------------------------- 15328 # VARIABLE is name of variable containing _space_ separated list of 15329 # directories to be munged by the contents of PATH, which is string 15330 # having a format: 15331 # "DIR[:DIR]:" 15332 # string "DIR[ DIR]" will be prepended to VARIABLE 15333 # ":DIR[:DIR]" 15334 # string "DIR[ DIR]" will be appended to VARIABLE 15335 # "DIRP[:DIRP]::[DIRA:]DIRA" 15336 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15337 # "DIRA[ DIRA]" will be appended to VARIABLE 15338 # "DIR[:DIR]" 15339 # VARIABLE will be replaced by "DIR[ DIR]" 15340 func_munge_path_list () 15341 { 15342 case x$2 in 15343 x) 15344 ;; 15345 *:) 15346 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15347 ;; 15348 x:*) 15349 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15350 ;; 15351 *::*) 15352 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15353 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15354 ;; 15355 *) 15356 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15357 ;; 15358 esac 15359 } 15360 15361 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15362 " 15363 if test "x$ac_cv_header_dlfcn_h" = xyes 15364 then : 15365 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15366 15367 fi 15368 15369 15370 15371 15372 15373 # Set options 15374 # Check whether --enable-static was given. 15375 if test ${enable_static+y} 15376 then : 15377 enableval=$enable_static; p=${PACKAGE-default} 15378 case $enableval in 15379 yes) enable_static=yes ;; 15380 no) enable_static=no ;; 15381 *) 15382 enable_static=no 15383 # Look at the argument we got. We use all the common list separators. 15384 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15385 for pkg in $enableval; do 15386 IFS=$lt_save_ifs 15387 if test "X$pkg" = "X$p"; then 15388 enable_static=yes 15389 fi 15390 done 15391 IFS=$lt_save_ifs 15392 ;; 15393 esac 15394 else case e in #( 15395 e) enable_static=no ;; 15396 esac 15397 fi 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 enable_dlopen=no 15409 15410 15411 enable_win32_dll=no 15412 15413 15414 # Check whether --enable-shared was given. 15415 if test ${enable_shared+y} 15416 then : 15417 enableval=$enable_shared; p=${PACKAGE-default} 15418 case $enableval in 15419 yes) enable_shared=yes ;; 15420 no) enable_shared=no ;; 15421 *) 15422 enable_shared=no 15423 # Look at the argument we got. We use all the common list separators. 15424 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15425 for pkg in $enableval; do 15426 IFS=$lt_save_ifs 15427 if test "X$pkg" = "X$p"; then 15428 enable_shared=yes 15429 fi 15430 done 15431 IFS=$lt_save_ifs 15432 ;; 15433 esac 15434 else case e in #( 15435 e) enable_shared=yes ;; 15436 esac 15437 fi 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 # Check whether --enable-pic was given. 15449 if test ${enable_pic+y} 15450 then : 15451 enableval=$enable_pic; lt_p=${PACKAGE-default} 15452 case $enableval in 15453 yes|no) pic_mode=$enableval ;; 15454 *) 15455 pic_mode=default 15456 # Look at the argument we got. We use all the common list separators. 15457 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15458 for lt_pkg in $enableval; do 15459 IFS=$lt_save_ifs 15460 if test "X$lt_pkg" = "X$lt_p"; then 15461 pic_mode=yes 15462 fi 15463 done 15464 IFS=$lt_save_ifs 15465 ;; 15466 esac 15467 else case e in #( 15468 e) # Check whether --with-pic was given. 15469 if test ${with_pic+y} 15470 then : 15471 withval=$with_pic; lt_p=${PACKAGE-default} 15472 case $withval in 15473 yes|no) pic_mode=$withval ;; 15474 *) 15475 pic_mode=default 15476 # Look at the argument we got. We use all the common list separators. 15477 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15478 for lt_pkg in $withval; do 15479 IFS=$lt_save_ifs 15480 if test "X$lt_pkg" = "X$lt_p"; then 15481 pic_mode=yes 15482 fi 15483 done 15484 IFS=$lt_save_ifs 15485 ;; 15486 esac 15487 else case e in #( 15488 e) pic_mode=default ;; 15489 esac 15490 fi 15491 15492 ;; 15493 esac 15494 fi 15495 15496 15497 15498 15499 15500 15501 15502 15503 # Check whether --enable-fast-install was given. 15504 if test ${enable_fast_install+y} 15505 then : 15506 enableval=$enable_fast_install; p=${PACKAGE-default} 15507 case $enableval in 15508 yes) enable_fast_install=yes ;; 15509 no) enable_fast_install=no ;; 15510 *) 15511 enable_fast_install=no 15512 # Look at the argument we got. We use all the common list separators. 15513 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15514 for pkg in $enableval; do 15515 IFS=$lt_save_ifs 15516 if test "X$pkg" = "X$p"; then 15517 enable_fast_install=yes 15518 fi 15519 done 15520 IFS=$lt_save_ifs 15521 ;; 15522 esac 15523 else case e in #( 15524 e) enable_fast_install=yes ;; 15525 esac 15526 fi 15527 15528 15529 15530 15531 15532 15533 15534 15535 shared_archive_member_spec= 15536 case $host,$enable_shared in 15537 power*-*-aix[5-9]*,yes) 15538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15539 printf %s "checking which variant of shared library versioning to provide... " >&6; } 15540 # Check whether --enable-aix-soname was given. 15541 if test ${enable_aix_soname+y} 15542 then : 15543 enableval=$enable_aix_soname; case $enableval in 15544 aix|svr4|both) 15545 ;; 15546 *) 15547 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 15548 ;; 15549 esac 15550 lt_cv_with_aix_soname=$enable_aix_soname 15551 else case e in #( 15552 e) # Check whether --with-aix-soname was given. 15553 if test ${with_aix_soname+y} 15554 then : 15555 withval=$with_aix_soname; case $withval in 15556 aix|svr4|both) 15557 ;; 15558 *) 15559 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15560 ;; 15561 esac 15562 lt_cv_with_aix_soname=$with_aix_soname 15563 else case e in #( 15564 e) if test ${lt_cv_with_aix_soname+y} 15565 then : 15566 printf %s "(cached) " >&6 15567 else case e in #( 15568 e) lt_cv_with_aix_soname=aix ;; 15569 esac 15570 fi 15571 ;; 15572 esac 15573 fi 15574 15575 enable_aix_soname=$lt_cv_with_aix_soname ;; 15576 esac 15577 fi 15578 15579 with_aix_soname=$enable_aix_soname 15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15581 printf "%s\n" "$with_aix_soname" >&6; } 15582 if test aix != "$with_aix_soname"; then 15583 # For the AIX way of multilib, we name the shared archive member 15584 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15585 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15586 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15587 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15588 if test 64 = "${OBJECT_MODE-32}"; then 15589 shared_archive_member_spec=shr_64 15590 else 15591 shared_archive_member_spec=shr 15592 fi 15593 fi 15594 ;; 15595 *) 15596 with_aix_soname=aix 15597 ;; 15598 esac 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 # This can be used to rebuild libtool when needed 15610 LIBTOOL_DEPS=$ltmain 15611 15612 # Always use our own libtool. 15613 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 test -z "$LN_S" && LN_S="ln -s" 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 if test -n "${ZSH_VERSION+set}"; then 15660 setopt NO_GLOB_SUBST 15661 fi 15662 15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15664 printf %s "checking for objdir... " >&6; } 15665 if test ${lt_cv_objdir+y} 15666 then : 15667 printf %s "(cached) " >&6 15668 else case e in #( 15669 e) rm -f .libs 2>/dev/null 15670 mkdir .libs 2>/dev/null 15671 if test -d .libs; then 15672 lt_cv_objdir=.libs 15673 else 15674 # MS-DOS does not allow filenames that begin with a dot. 15675 lt_cv_objdir=_libs 15676 fi 15677 rmdir .libs 2>/dev/null ;; 15678 esac 15679 fi 15680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15681 printf "%s\n" "$lt_cv_objdir" >&6; } 15682 objdir=$lt_cv_objdir 15683 15684 15685 15686 15687 15688 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15689 15690 15691 15692 15693 case $host_os in 15694 aix3*) 15695 # AIX sometimes has problems with the GCC collect2 program. For some 15696 # reason, if we set the COLLECT_NAMES environment variable, the problems 15697 # vanish in a puff of smoke. 15698 if test set != "${COLLECT_NAMES+set}"; then 15699 COLLECT_NAMES= 15700 export COLLECT_NAMES 15701 fi 15702 ;; 15703 esac 15704 15705 # Global variables: 15706 ofile=libtool 15707 can_build_shared=yes 15708 15709 # All known linkers require a '.a' archive for static linking (except MSVC and 15710 # ICC, which need '.lib'). 15711 libext=a 15712 15713 with_gnu_ld=$lt_cv_prog_gnu_ld 15714 15715 old_CC=$CC 15716 old_CFLAGS=$CFLAGS 15717 15718 # Set sane defaults for various variables 15719 test -z "$CC" && CC=cc 15720 test -z "$LTCC" && LTCC=$CC 15721 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15722 test -z "$LD" && LD=ld 15723 test -z "$ac_objext" && ac_objext=o 15724 15725 func_cc_basename $compiler 15726 cc_basename=$func_cc_basename_result 15727 15728 15729 # Only perform the check for file, if the check method requires it 15730 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15731 case $deplibs_check_method in 15732 file_magic*) 15733 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15735 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15736 if test ${lt_cv_path_MAGIC_CMD+y} 15737 then : 15738 printf %s "(cached) " >&6 15739 else case e in #( 15740 e) case $MAGIC_CMD in 15741 [\\/*] | ?:[\\/]*) 15742 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15743 ;; 15744 *) 15745 lt_save_MAGIC_CMD=$MAGIC_CMD 15746 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15747 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15748 for ac_dir in $ac_dummy; do 15749 IFS=$lt_save_ifs 15750 test -z "$ac_dir" && ac_dir=. 15751 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15752 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15753 if test -n "$file_magic_test_file"; then 15754 case $deplibs_check_method in 15755 "file_magic "*) 15756 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15757 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15759 $EGREP "$file_magic_regex" > /dev/null; then 15760 : 15761 else 15762 cat <<_LT_EOF 1>&2 15763 15764 *** Warning: the command libtool uses to detect shared libraries, 15765 *** $file_magic_cmd, produces output that libtool cannot recognize. 15766 *** The result is that libtool may fail to recognize shared libraries 15767 *** as such. This will affect the creation of libtool libraries that 15768 *** depend on shared libraries, but programs linked with such libtool 15769 *** libraries will work regardless of this problem. Nevertheless, you 15770 *** may want to report the problem to your system manager and/or to 15771 *** bug-libtool@gnu.org 15772 15773 _LT_EOF 15774 fi ;; 15775 esac 15776 fi 15777 break 15778 fi 15779 done 15780 IFS=$lt_save_ifs 15781 MAGIC_CMD=$lt_save_MAGIC_CMD 15782 ;; 15783 esac ;; 15784 esac 15785 fi 15786 15787 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15788 if test -n "$MAGIC_CMD"; then 15789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15790 printf "%s\n" "$MAGIC_CMD" >&6; } 15791 else 15792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15793 printf "%s\n" "no" >&6; } 15794 fi 15795 15796 15797 15798 15799 15800 if test -z "$lt_cv_path_MAGIC_CMD"; then 15801 if test -n "$ac_tool_prefix"; then 15802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15803 printf %s "checking for file... " >&6; } 15804 if test ${lt_cv_path_MAGIC_CMD+y} 15805 then : 15806 printf %s "(cached) " >&6 15807 else case e in #( 15808 e) case $MAGIC_CMD in 15809 [\\/*] | ?:[\\/]*) 15810 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15811 ;; 15812 *) 15813 lt_save_MAGIC_CMD=$MAGIC_CMD 15814 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15815 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15816 for ac_dir in $ac_dummy; do 15817 IFS=$lt_save_ifs 15818 test -z "$ac_dir" && ac_dir=. 15819 if test -f "$ac_dir/file"; then 15820 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15821 if test -n "$file_magic_test_file"; then 15822 case $deplibs_check_method in 15823 "file_magic "*) 15824 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15825 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15826 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15827 $EGREP "$file_magic_regex" > /dev/null; then 15828 : 15829 else 15830 cat <<_LT_EOF 1>&2 15831 15832 *** Warning: the command libtool uses to detect shared libraries, 15833 *** $file_magic_cmd, produces output that libtool cannot recognize. 15834 *** The result is that libtool may fail to recognize shared libraries 15835 *** as such. This will affect the creation of libtool libraries that 15836 *** depend on shared libraries, but programs linked with such libtool 15837 *** libraries will work regardless of this problem. Nevertheless, you 15838 *** may want to report the problem to your system manager and/or to 15839 *** bug-libtool@gnu.org 15840 15841 _LT_EOF 15842 fi ;; 15843 esac 15844 fi 15845 break 15846 fi 15847 done 15848 IFS=$lt_save_ifs 15849 MAGIC_CMD=$lt_save_MAGIC_CMD 15850 ;; 15851 esac ;; 15852 esac 15853 fi 15854 15855 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15856 if test -n "$MAGIC_CMD"; then 15857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15858 printf "%s\n" "$MAGIC_CMD" >&6; } 15859 else 15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15861 printf "%s\n" "no" >&6; } 15862 fi 15863 15864 15865 else 15866 MAGIC_CMD=: 15867 fi 15868 fi 15869 15870 fi 15871 ;; 15872 esac 15873 15874 # Use C for the default configuration in the libtool script 15875 15876 lt_save_CC=$CC 15877 ac_ext=c 15878 ac_cpp='$CPP $CPPFLAGS' 15879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15881 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15882 15883 15884 # Source file extension for C test sources. 15885 ac_ext=c 15886 15887 # Object file extension for compiled C test sources. 15888 objext=o 15889 objext=$objext 15890 15891 # Code to be used in simple compile tests 15892 lt_simple_compile_test_code="int some_variable = 0;" 15893 15894 # Code to be used in simple link tests 15895 lt_simple_link_test_code='int main(void){return(0);}' 15896 15897 15898 15899 15900 15901 15902 15903 # If no C compiler was specified, use CC. 15904 LTCC=${LTCC-"$CC"} 15905 15906 # If no C compiler flags were specified, use CFLAGS. 15907 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15908 15909 # Allow CC to be a program name with arguments. 15910 compiler=$CC 15911 15912 # Save the default compiler, since it gets overwritten when the other 15913 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15914 compiler_DEFAULT=$CC 15915 15916 # save warnings/boilerplate of simple test code 15917 ac_outfile=conftest.$ac_objext 15918 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15919 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15920 _lt_compiler_boilerplate=`cat conftest.err` 15921 $RM conftest* 15922 15923 ac_outfile=conftest.$ac_objext 15924 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15925 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15926 _lt_linker_boilerplate=`cat conftest.err` 15927 $RM -r conftest* 15928 15929 15930 if test -n "$compiler"; then 15931 15932 lt_prog_compiler_no_builtin_flag= 15933 15934 if test yes = "$GCC"; then 15935 case $cc_basename in 15936 nvcc*) 15937 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15938 *) 15939 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15940 esac 15941 15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15943 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15944 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15945 then : 15946 printf %s "(cached) " >&6 15947 else case e in #( 15948 e) lt_cv_prog_compiler_rtti_exceptions=no 15949 ac_outfile=conftest.$ac_objext 15950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15951 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15952 # Insert the option either (1) after the last *FLAGS variable, or 15953 # (2) before a word containing "conftest.", or (3) at the end. 15954 # Note that $ac_compile itself does not contain backslashes and begins 15955 # with a dollar sign (not a hyphen), so the echo should work correctly. 15956 # The option is referenced via a variable to avoid confusing sed. 15957 lt_compile=`echo "$ac_compile" | $SED \ 15958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15960 -e 's:$: $lt_compiler_flag:'` 15961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15962 (eval "$lt_compile" 2>conftest.err) 15963 ac_status=$? 15964 cat conftest.err >&5 15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15966 if (exit $ac_status) && test -s "$ac_outfile"; then 15967 # The compiler can only warn and ignore the option if not recognized 15968 # So say no if there are warnings other than the usual output. 15969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15972 lt_cv_prog_compiler_rtti_exceptions=yes 15973 fi 15974 fi 15975 $RM conftest* 15976 ;; 15977 esac 15978 fi 15979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15980 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15981 15982 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15983 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15984 else 15985 : 15986 fi 15987 15988 fi 15989 15990 15991 15992 15993 15994 15995 lt_prog_compiler_wl= 15996 lt_prog_compiler_pic= 15997 lt_prog_compiler_static= 15998 15999 16000 if test yes = "$GCC"; then 16001 lt_prog_compiler_wl='-Wl,' 16002 lt_prog_compiler_static='-static' 16003 16004 case $host_os in 16005 aix*) 16006 # All AIX code is PIC. 16007 if test ia64 = "$host_cpu"; then 16008 # AIX 5 now supports IA64 processor 16009 lt_prog_compiler_static='-Bstatic' 16010 fi 16011 lt_prog_compiler_pic='-fPIC' 16012 ;; 16013 16014 amigaos*) 16015 case $host_cpu in 16016 powerpc) 16017 # see comment about AmigaOS4 .so support 16018 lt_prog_compiler_pic='-fPIC' 16019 ;; 16020 m68k) 16021 # FIXME: we need at least 68020 code to build shared libraries, but 16022 # adding the '-m68020' flag to GCC prevents building anything better, 16023 # like '-m68040'. 16024 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16025 ;; 16026 esac 16027 ;; 16028 16029 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16030 # PIC is the default for these OSes. 16031 ;; 16032 16033 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 16034 # This hack is so that the source file can tell whether it is being 16035 # built for inclusion in a dll (and should export symbols for example). 16036 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16037 # (--disable-auto-import) libraries 16038 lt_prog_compiler_pic='-DDLL_EXPORT' 16039 case $host_os in 16040 os2*) 16041 lt_prog_compiler_static='$wl-static' 16042 ;; 16043 esac 16044 ;; 16045 16046 darwin* | rhapsody*) 16047 # PIC is the default on this platform 16048 # Common symbols not allowed in MH_DYLIB files 16049 lt_prog_compiler_pic='-fno-common' 16050 ;; 16051 16052 haiku*) 16053 # PIC is the default for Haiku. 16054 # The "-static" flag exists, but is broken. 16055 lt_prog_compiler_static= 16056 ;; 16057 16058 hpux*) 16059 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16060 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16061 # sets the default TLS model and affects inlining. 16062 case $host_cpu in 16063 hppa*64*) 16064 # +Z the default 16065 ;; 16066 *) 16067 lt_prog_compiler_pic='-fPIC' 16068 ;; 16069 esac 16070 ;; 16071 16072 interix[3-9]*) 16073 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16074 # Instead, we relocate shared libraries at runtime. 16075 ;; 16076 16077 msdosdjgpp*) 16078 # Just because we use GCC doesn't mean we suddenly get shared libraries 16079 # on systems that don't support them. 16080 lt_prog_compiler_can_build_shared=no 16081 enable_shared=no 16082 ;; 16083 16084 *nto* | *qnx*) 16085 # QNX uses GNU C++, but need to define -shared option too, otherwise 16086 # it will coredump. 16087 lt_prog_compiler_pic='-fPIC -shared' 16088 ;; 16089 16090 sysv4*MP*) 16091 if test -d /usr/nec; then 16092 lt_prog_compiler_pic=-Kconform_pic 16093 fi 16094 ;; 16095 16096 *) 16097 lt_prog_compiler_pic='-fPIC' 16098 ;; 16099 esac 16100 16101 case $cc_basename in 16102 nvcc*) # Cuda Compiler Driver 2.2 16103 lt_prog_compiler_wl='-Xlinker ' 16104 if test -n "$lt_prog_compiler_pic"; then 16105 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16106 fi 16107 ;; 16108 esac 16109 else 16110 # PORTME Check for flag to pass linker flags through the system compiler. 16111 case $host_os in 16112 aix*) 16113 lt_prog_compiler_wl='-Wl,' 16114 if test ia64 = "$host_cpu"; then 16115 # AIX 5 now supports IA64 processor 16116 lt_prog_compiler_static='-Bstatic' 16117 else 16118 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16119 fi 16120 ;; 16121 16122 darwin* | rhapsody*) 16123 # PIC is the default on this platform 16124 # Common symbols not allowed in MH_DYLIB files 16125 lt_prog_compiler_pic='-fno-common' 16126 case $cc_basename in 16127 nagfor*) 16128 # NAG Fortran compiler 16129 lt_prog_compiler_wl='-Wl,-Wl,,' 16130 lt_prog_compiler_pic='-PIC' 16131 lt_prog_compiler_static='-Bstatic' 16132 ;; 16133 esac 16134 ;; 16135 16136 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 16137 # This hack is so that the source file can tell whether it is being 16138 # built for inclusion in a dll (and should export symbols for example). 16139 lt_prog_compiler_pic='-DDLL_EXPORT' 16140 case $host_os in 16141 os2*) 16142 lt_prog_compiler_static='$wl-static' 16143 ;; 16144 esac 16145 ;; 16146 16147 hpux9* | hpux10* | hpux11*) 16148 lt_prog_compiler_wl='-Wl,' 16149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16150 # not for PA HP-UX. 16151 case $host_cpu in 16152 hppa*64*|ia64*) 16153 # +Z the default 16154 ;; 16155 *) 16156 lt_prog_compiler_pic='+Z' 16157 ;; 16158 esac 16159 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16160 lt_prog_compiler_static='$wl-a ${wl}archive' 16161 ;; 16162 16163 irix5* | irix6* | nonstopux*) 16164 lt_prog_compiler_wl='-Wl,' 16165 # PIC (with -KPIC) is the default. 16166 lt_prog_compiler_static='-non_shared' 16167 ;; 16168 16169 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16170 case $cc_basename in 16171 # old Intel for x86_64, which still supported -KPIC. 16172 ecc*) 16173 lt_prog_compiler_wl='-Wl,' 16174 lt_prog_compiler_pic='-KPIC' 16175 lt_prog_compiler_static='-static' 16176 ;; 16177 *flang* | ftn | f18* | f95*) 16178 # Flang compiler. 16179 lt_prog_compiler_wl='-Wl,' 16180 lt_prog_compiler_pic='-fPIC' 16181 lt_prog_compiler_static='-static' 16182 ;; 16183 # icc used to be incompatible with GCC. 16184 # ICC 10 doesn't accept -KPIC any more. 16185 icc* | ifort*) 16186 lt_prog_compiler_wl='-Wl,' 16187 lt_prog_compiler_pic='-fPIC' 16188 lt_prog_compiler_static='-static' 16189 ;; 16190 # Lahey Fortran 8.1. 16191 lf95*) 16192 lt_prog_compiler_wl='-Wl,' 16193 lt_prog_compiler_pic='--shared' 16194 lt_prog_compiler_static='--static' 16195 ;; 16196 nagfor*) 16197 # NAG Fortran compiler 16198 lt_prog_compiler_wl='-Wl,-Wl,,' 16199 lt_prog_compiler_pic='-PIC' 16200 lt_prog_compiler_static='-Bstatic' 16201 ;; 16202 tcc*) 16203 # Fabrice Bellard et al's Tiny C Compiler 16204 lt_prog_compiler_wl='-Wl,' 16205 lt_prog_compiler_pic='-fPIC' 16206 lt_prog_compiler_static='-static' 16207 ;; 16208 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16209 # Portland Group compilers (*not* the Pentium gcc compiler, 16210 # which looks to be a dead project) 16211 lt_prog_compiler_wl='-Wl,' 16212 lt_prog_compiler_pic='-fpic' 16213 lt_prog_compiler_static='-Bstatic' 16214 ;; 16215 ccc*) 16216 lt_prog_compiler_wl='-Wl,' 16217 # All Alpha code is PIC. 16218 lt_prog_compiler_static='-non_shared' 16219 ;; 16220 xl* | bgxl* | bgf* | mpixl*) 16221 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16222 lt_prog_compiler_wl='-Wl,' 16223 lt_prog_compiler_pic='-qpic' 16224 lt_prog_compiler_static='-qstaticlink' 16225 ;; 16226 *) 16227 case `$CC -V 2>&1 | $SED 5q` in 16228 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16229 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16230 lt_prog_compiler_pic='-KPIC' 16231 lt_prog_compiler_static='-Bstatic' 16232 lt_prog_compiler_wl='' 16233 ;; 16234 *Sun\ F* | *Sun*Fortran*) 16235 lt_prog_compiler_pic='-KPIC' 16236 lt_prog_compiler_static='-Bstatic' 16237 lt_prog_compiler_wl='-Qoption ld ' 16238 ;; 16239 *Sun\ C*) 16240 # Sun C 5.9 16241 lt_prog_compiler_pic='-KPIC' 16242 lt_prog_compiler_static='-Bstatic' 16243 lt_prog_compiler_wl='-Wl,' 16244 ;; 16245 *Intel*\ [CF]*Compiler*) 16246 lt_prog_compiler_wl='-Wl,' 16247 lt_prog_compiler_pic='-fPIC' 16248 lt_prog_compiler_static='-static' 16249 ;; 16250 *Portland\ Group*) 16251 lt_prog_compiler_wl='-Wl,' 16252 lt_prog_compiler_pic='-fpic' 16253 lt_prog_compiler_static='-Bstatic' 16254 ;; 16255 esac 16256 ;; 16257 esac 16258 ;; 16259 16260 newsos6) 16261 lt_prog_compiler_pic='-KPIC' 16262 lt_prog_compiler_static='-Bstatic' 16263 ;; 16264 16265 *-mlibc) 16266 lt_prog_compiler_wl='-Wl,' 16267 lt_prog_compiler_pic='-fPIC' 16268 lt_prog_compiler_static='-static' 16269 ;; 16270 16271 *nto* | *qnx*) 16272 # QNX uses GNU C++, but need to define -shared option too, otherwise 16273 # it will coredump. 16274 lt_prog_compiler_pic='-fPIC -shared' 16275 ;; 16276 16277 osf3* | osf4* | osf5*) 16278 lt_prog_compiler_wl='-Wl,' 16279 # All OSF/1 code is PIC. 16280 lt_prog_compiler_static='-non_shared' 16281 ;; 16282 16283 rdos*) 16284 lt_prog_compiler_static='-non_shared' 16285 ;; 16286 16287 serenity*) 16288 ;; 16289 16290 solaris*) 16291 lt_prog_compiler_pic='-KPIC' 16292 lt_prog_compiler_static='-Bstatic' 16293 case $cc_basename in 16294 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16295 lt_prog_compiler_wl='-Qoption ld ';; 16296 *) 16297 lt_prog_compiler_wl='-Wl,';; 16298 esac 16299 ;; 16300 16301 sunos4*) 16302 lt_prog_compiler_wl='-Qoption ld ' 16303 lt_prog_compiler_pic='-PIC' 16304 lt_prog_compiler_static='-Bstatic' 16305 ;; 16306 16307 sysv4 | sysv4.2uw2* | sysv4.3*) 16308 lt_prog_compiler_wl='-Wl,' 16309 lt_prog_compiler_pic='-KPIC' 16310 lt_prog_compiler_static='-Bstatic' 16311 ;; 16312 16313 sysv4*MP*) 16314 if test -d /usr/nec; then 16315 lt_prog_compiler_pic='-Kconform_pic' 16316 lt_prog_compiler_static='-Bstatic' 16317 fi 16318 ;; 16319 16320 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16321 lt_prog_compiler_wl='-Wl,' 16322 lt_prog_compiler_pic='-KPIC' 16323 lt_prog_compiler_static='-Bstatic' 16324 ;; 16325 16326 unicos*) 16327 lt_prog_compiler_wl='-Wl,' 16328 lt_prog_compiler_can_build_shared=no 16329 ;; 16330 16331 uts4*) 16332 lt_prog_compiler_pic='-pic' 16333 lt_prog_compiler_static='-Bstatic' 16334 ;; 16335 16336 *) 16337 lt_prog_compiler_can_build_shared=no 16338 ;; 16339 esac 16340 fi 16341 16342 case $host_os in 16343 # For platforms that do not support PIC, -DPIC is meaningless: 16344 *djgpp*) 16345 lt_prog_compiler_pic= 16346 ;; 16347 *) 16348 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16349 ;; 16350 esac 16351 16352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16353 printf %s "checking for $compiler option to produce PIC... " >&6; } 16354 if test ${lt_cv_prog_compiler_pic+y} 16355 then : 16356 printf %s "(cached) " >&6 16357 else case e in #( 16358 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 16359 esac 16360 fi 16361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16362 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 16363 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16364 16365 # 16366 # Check to make sure the PIC flag actually works. 16367 # 16368 if test -n "$lt_prog_compiler_pic"; then 16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16370 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16371 if test ${lt_cv_prog_compiler_pic_works+y} 16372 then : 16373 printf %s "(cached) " >&6 16374 else case e in #( 16375 e) lt_cv_prog_compiler_pic_works=no 16376 ac_outfile=conftest.$ac_objext 16377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16378 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16379 # Insert the option either (1) after the last *FLAGS variable, or 16380 # (2) before a word containing "conftest.", or (3) at the end. 16381 # Note that $ac_compile itself does not contain backslashes and begins 16382 # with a dollar sign (not a hyphen), so the echo should work correctly. 16383 # The option is referenced via a variable to avoid confusing sed. 16384 lt_compile=`echo "$ac_compile" | $SED \ 16385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16387 -e 's:$: $lt_compiler_flag:'` 16388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16389 (eval "$lt_compile" 2>conftest.err) 16390 ac_status=$? 16391 cat conftest.err >&5 16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16393 if (exit $ac_status) && test -s "$ac_outfile"; then 16394 # The compiler can only warn and ignore the option if not recognized 16395 # So say no if there are warnings other than the usual output. 16396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16399 lt_cv_prog_compiler_pic_works=yes 16400 fi 16401 fi 16402 $RM conftest* 16403 ;; 16404 esac 16405 fi 16406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16407 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16408 16409 if test yes = "$lt_cv_prog_compiler_pic_works"; then 16410 case $lt_prog_compiler_pic in 16411 "" | " "*) ;; 16412 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16413 esac 16414 else 16415 lt_prog_compiler_pic= 16416 lt_prog_compiler_can_build_shared=no 16417 fi 16418 16419 fi 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 # 16432 # Check to make sure the static flag actually works. 16433 # 16434 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16436 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16437 if test ${lt_cv_prog_compiler_static_works+y} 16438 then : 16439 printf %s "(cached) " >&6 16440 else case e in #( 16441 e) lt_cv_prog_compiler_static_works=no 16442 save_LDFLAGS=$LDFLAGS 16443 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16444 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16446 # The linker can only warn and ignore the option if not recognized 16447 # So say no if there are warnings 16448 if test -s conftest.err; then 16449 # Append any errors to the config.log. 16450 cat conftest.err 1>&5 16451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16453 if diff conftest.exp conftest.er2 >/dev/null; then 16454 lt_cv_prog_compiler_static_works=yes 16455 fi 16456 else 16457 lt_cv_prog_compiler_static_works=yes 16458 fi 16459 fi 16460 $RM -r conftest* 16461 LDFLAGS=$save_LDFLAGS 16462 ;; 16463 esac 16464 fi 16465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16466 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16467 16468 if test yes = "$lt_cv_prog_compiler_static_works"; then 16469 : 16470 else 16471 lt_prog_compiler_static= 16472 fi 16473 16474 16475 16476 16477 16478 16479 16480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16481 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16482 if test ${lt_cv_prog_compiler_c_o+y} 16483 then : 16484 printf %s "(cached) " >&6 16485 else case e in #( 16486 e) lt_cv_prog_compiler_c_o=no 16487 $RM -r conftest 2>/dev/null 16488 mkdir conftest 16489 cd conftest 16490 mkdir out 16491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16492 16493 lt_compiler_flag="-o out/conftest2.$ac_objext" 16494 # Insert the option either (1) after the last *FLAGS variable, or 16495 # (2) before a word containing "conftest.", or (3) at the end. 16496 # Note that $ac_compile itself does not contain backslashes and begins 16497 # with a dollar sign (not a hyphen), so the echo should work correctly. 16498 lt_compile=`echo "$ac_compile" | $SED \ 16499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16501 -e 's:$: $lt_compiler_flag:'` 16502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16503 (eval "$lt_compile" 2>out/conftest.err) 16504 ac_status=$? 16505 cat out/conftest.err >&5 16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16507 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16508 then 16509 # The compiler can only warn and ignore the option if not recognized 16510 # So say no if there are warnings 16511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16512 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16513 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16514 lt_cv_prog_compiler_c_o=yes 16515 fi 16516 fi 16517 chmod u+w . 2>&5 16518 $RM conftest* 16519 # SGI C++ compiler will create directory out/ii_files/ for 16520 # template instantiation 16521 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16522 $RM out/* && rmdir out 16523 cd .. 16524 $RM -r conftest 16525 $RM conftest* 16526 ;; 16527 esac 16528 fi 16529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16530 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16531 16532 16533 16534 16535 16536 16537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16538 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16539 if test ${lt_cv_prog_compiler_c_o+y} 16540 then : 16541 printf %s "(cached) " >&6 16542 else case e in #( 16543 e) lt_cv_prog_compiler_c_o=no 16544 $RM -r conftest 2>/dev/null 16545 mkdir conftest 16546 cd conftest 16547 mkdir out 16548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16549 16550 lt_compiler_flag="-o out/conftest2.$ac_objext" 16551 # Insert the option either (1) after the last *FLAGS variable, or 16552 # (2) before a word containing "conftest.", or (3) at the end. 16553 # Note that $ac_compile itself does not contain backslashes and begins 16554 # with a dollar sign (not a hyphen), so the echo should work correctly. 16555 lt_compile=`echo "$ac_compile" | $SED \ 16556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16558 -e 's:$: $lt_compiler_flag:'` 16559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16560 (eval "$lt_compile" 2>out/conftest.err) 16561 ac_status=$? 16562 cat out/conftest.err >&5 16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16564 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16565 then 16566 # The compiler can only warn and ignore the option if not recognized 16567 # So say no if there are warnings 16568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16571 lt_cv_prog_compiler_c_o=yes 16572 fi 16573 fi 16574 chmod u+w . 2>&5 16575 $RM conftest* 16576 # SGI C++ compiler will create directory out/ii_files/ for 16577 # template instantiation 16578 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16579 $RM out/* && rmdir out 16580 cd .. 16581 $RM -r conftest 16582 $RM conftest* 16583 ;; 16584 esac 16585 fi 16586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16587 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16588 16589 16590 16591 16592 hard_links=nottested 16593 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16594 # do not overwrite the value of need_locks provided by the user 16595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16596 printf %s "checking if we can lock with hard links... " >&6; } 16597 hard_links=yes 16598 $RM conftest* 16599 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16600 touch conftest.a 16601 ln conftest.a conftest.b 2>&5 || hard_links=no 16602 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16604 printf "%s\n" "$hard_links" >&6; } 16605 if test no = "$hard_links"; then 16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16607 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16608 need_locks=warn 16609 fi 16610 else 16611 need_locks=no 16612 fi 16613 16614 16615 16616 16617 16618 16619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16620 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16621 16622 runpath_var= 16623 allow_undefined_flag= 16624 always_export_symbols=no 16625 archive_cmds= 16626 archive_expsym_cmds= 16627 compiler_needs_object=no 16628 enable_shared_with_static_runtimes=no 16629 export_dynamic_flag_spec= 16630 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16631 hardcode_automatic=no 16632 hardcode_direct=no 16633 hardcode_direct_absolute=no 16634 hardcode_libdir_flag_spec= 16635 hardcode_libdir_separator= 16636 hardcode_minus_L=no 16637 hardcode_shlibpath_var=unsupported 16638 inherit_rpath=no 16639 link_all_deplibs=unknown 16640 module_cmds= 16641 module_expsym_cmds= 16642 old_archive_from_new_cmds= 16643 old_archive_from_expsyms_cmds= 16644 thread_safe_flag_spec= 16645 whole_archive_flag_spec= 16646 # include_expsyms should be a list of space-separated symbols to be *always* 16647 # included in the symbol list 16648 include_expsyms= 16649 # exclude_expsyms can be an extended regexp of symbols to exclude 16650 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16651 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16652 # as well as any symbol that contains 'd'. 16653 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16655 # platforms (ab)use it in PIC code, but their linkers get confused if 16656 # the symbol is explicitly referenced. Since portable code cannot 16657 # rely on this symbol name, it's probably fine to never include it in 16658 # preloaded symbol tables. 16659 # Exclude shared library initialization/finalization symbols. 16660 extract_expsyms_cmds= 16661 16662 case $host_os in 16663 cygwin* | mingw* | windows* | pw32* | cegcc*) 16664 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16665 # When not using gcc, we currently assume that we are using 16666 # Microsoft Visual C++ or Intel C++ Compiler. 16667 if test yes != "$GCC"; then 16668 with_gnu_ld=no 16669 fi 16670 ;; 16671 interix*) 16672 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16673 with_gnu_ld=yes 16674 ;; 16675 esac 16676 16677 ld_shlibs=yes 16678 16679 # On some targets, GNU ld is compatible enough with the native linker 16680 # that we're better off using the native interface for both. 16681 lt_use_gnu_ld_interface=no 16682 if test yes = "$with_gnu_ld"; then 16683 case $host_os in 16684 aix*) 16685 # The AIX port of GNU ld has always aspired to compatibility 16686 # with the native linker. However, as the warning in the GNU ld 16687 # block says, versions before 2.19.5* couldn't really create working 16688 # shared libraries, regardless of the interface used. 16689 case `$LD -v 2>&1` in 16690 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16691 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16692 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16693 *) 16694 lt_use_gnu_ld_interface=yes 16695 ;; 16696 esac 16697 ;; 16698 *) 16699 lt_use_gnu_ld_interface=yes 16700 ;; 16701 esac 16702 fi 16703 16704 if test yes = "$lt_use_gnu_ld_interface"; then 16705 # If archive_cmds runs LD, not CC, wlarc should be empty 16706 wlarc='$wl' 16707 16708 # Set some defaults for GNU ld with shared library support. These 16709 # are reset later if shared libraries are not supported. Putting them 16710 # here allows them to be overridden if necessary. 16711 runpath_var=LD_RUN_PATH 16712 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16713 export_dynamic_flag_spec='$wl--export-dynamic' 16714 # ancient GNU ld didn't support --whole-archive et. al. 16715 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16716 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16717 else 16718 whole_archive_flag_spec= 16719 fi 16720 supports_anon_versioning=no 16721 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16722 *GNU\ gold*) supports_anon_versioning=yes ;; 16723 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16724 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16725 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16726 *\ 2.11.*) ;; # other 2.11 versions 16727 *) supports_anon_versioning=yes ;; 16728 esac 16729 16730 # See if GNU ld supports shared libraries. 16731 case $host_os in 16732 aix[3-9]*) 16733 # On AIX/PPC, the GNU linker is very broken 16734 if test ia64 != "$host_cpu"; then 16735 ld_shlibs=no 16736 cat <<_LT_EOF 1>&2 16737 16738 *** Warning: the GNU linker, at least up to release 2.19, is reported 16739 *** to be unable to reliably create shared libraries on AIX. 16740 *** Therefore, libtool is disabling shared libraries support. If you 16741 *** really care for shared libraries, you may want to install binutils 16742 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16743 *** You will then need to restart the configuration process. 16744 16745 _LT_EOF 16746 fi 16747 ;; 16748 16749 amigaos*) 16750 case $host_cpu in 16751 powerpc) 16752 # see comment about AmigaOS4 .so support 16753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16754 archive_expsym_cmds='' 16755 ;; 16756 m68k) 16757 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)' 16758 hardcode_libdir_flag_spec='-L$libdir' 16759 hardcode_minus_L=yes 16760 ;; 16761 esac 16762 ;; 16763 16764 beos*) 16765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16766 allow_undefined_flag=unsupported 16767 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16768 # support --undefined. This deserves some investigation. FIXME 16769 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16770 else 16771 ld_shlibs=no 16772 fi 16773 ;; 16774 16775 cygwin* | mingw* | windows* | pw32* | cegcc*) 16776 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16777 # as there is no search path for DLLs. 16778 hardcode_libdir_flag_spec='-L$libdir' 16779 export_dynamic_flag_spec='$wl--export-all-symbols' 16780 allow_undefined_flag=unsupported 16781 always_export_symbols=no 16782 enable_shared_with_static_runtimes=yes 16783 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' 16784 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16785 file_list_spec='@' 16786 16787 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16789 # If the export-symbols file already is a .def file, use it as 16790 # is; otherwise, prepend EXPORTS... 16791 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16792 cp $export_symbols $output_objdir/$soname.def; 16793 else 16794 echo EXPORTS > $output_objdir/$soname.def; 16795 cat $export_symbols >> $output_objdir/$soname.def; 16796 fi~ 16797 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16798 else 16799 ld_shlibs=no 16800 fi 16801 ;; 16802 16803 haiku*) 16804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16805 link_all_deplibs=no 16806 ;; 16807 16808 os2*) 16809 hardcode_libdir_flag_spec='-L$libdir' 16810 hardcode_minus_L=yes 16811 allow_undefined_flag=unsupported 16812 shrext_cmds=.dll 16813 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16814 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16815 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16816 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16817 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16818 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16819 emximp -o $lib $output_objdir/$libname.def' 16820 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16821 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16822 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16823 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16824 prefix_cmds="$SED"~ 16825 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16826 prefix_cmds="$prefix_cmds -e 1d"; 16827 fi~ 16828 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16829 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16830 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16831 emximp -o $lib $output_objdir/$libname.def' 16832 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16833 enable_shared_with_static_runtimes=yes 16834 file_list_spec='@' 16835 ;; 16836 16837 interix[3-9]*) 16838 hardcode_direct=no 16839 hardcode_shlibpath_var=no 16840 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16841 export_dynamic_flag_spec='$wl-E' 16842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16843 # Instead, shared libraries are loaded at an image base (0x10000000 by 16844 # default) and relocated if they conflict, which is a slow very memory 16845 # consuming and fragmenting process. To avoid this, we pick a random, 16846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16847 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16848 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16849 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' 16850 ;; 16851 16852 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16853 tmp_diet=no 16854 if test linux-dietlibc = "$host_os"; then 16855 case $cc_basename in 16856 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16857 esac 16858 fi 16859 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16860 && test no = "$tmp_diet" 16861 then 16862 tmp_addflag=' $pic_flag' 16863 tmp_sharedflag='-shared' 16864 case $cc_basename,$host_cpu in 16865 pgcc*) # Portland Group C compiler 16866 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' 16867 tmp_addflag=' $pic_flag' 16868 ;; 16869 pgf77* | pgf90* | pgf95* | pgfortran*) 16870 # Portland Group f77 and f90 compilers 16871 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' 16872 tmp_addflag=' $pic_flag -Mnomain' ;; 16873 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16874 tmp_addflag=' -i_dynamic' ;; 16875 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16876 tmp_addflag=' -i_dynamic -nofor_main' ;; 16877 ifc* | ifort*) # Intel Fortran compiler 16878 tmp_addflag=' -nofor_main' ;; 16879 lf95*) # Lahey Fortran 8.1 16880 whole_archive_flag_spec= 16881 tmp_sharedflag='--shared' ;; 16882 nagfor*) # NAGFOR 5.3 16883 tmp_sharedflag='-Wl,-shared' ;; 16884 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16885 tmp_sharedflag='-qmkshrobj' 16886 tmp_addflag= ;; 16887 nvcc*) # Cuda Compiler Driver 2.2 16888 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' 16889 compiler_needs_object=yes 16890 ;; 16891 esac 16892 case `$CC -V 2>&1 | $SED 5q` in 16893 *Sun\ C*) # Sun C 5.9 16894 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' 16895 compiler_needs_object=yes 16896 tmp_sharedflag='-G' ;; 16897 *Sun\ F*) # Sun Fortran 8.3 16898 tmp_sharedflag='-G' ;; 16899 esac 16900 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16901 16902 if test yes = "$supports_anon_versioning"; then 16903 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16904 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16905 echo "local: *; };" >> $output_objdir/$libname.ver~ 16906 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16907 fi 16908 16909 case $cc_basename in 16910 tcc*) 16911 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16912 export_dynamic_flag_spec='-rdynamic' 16913 ;; 16914 xlf* | bgf* | bgxlf* | mpixlf*) 16915 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16916 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16917 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16918 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16919 if test yes = "$supports_anon_versioning"; then 16920 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16921 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16922 echo "local: *; };" >> $output_objdir/$libname.ver~ 16923 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16924 fi 16925 ;; 16926 esac 16927 else 16928 ld_shlibs=no 16929 fi 16930 ;; 16931 16932 *-mlibc) 16933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16934 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16935 ;; 16936 16937 netbsd* | netbsdelf*-gnu) 16938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16939 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16940 wlarc= 16941 else 16942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16943 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16944 fi 16945 ;; 16946 16947 solaris*) 16948 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16949 ld_shlibs=no 16950 cat <<_LT_EOF 1>&2 16951 16952 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16953 *** create shared libraries on Solaris systems. Therefore, libtool 16954 *** is disabling shared libraries support. We urge you to upgrade GNU 16955 *** binutils to release 2.9.1 or newer. Another option is to modify 16956 *** your PATH or compiler configuration so that the native linker is 16957 *** used, and then restart. 16958 16959 _LT_EOF 16960 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16963 else 16964 ld_shlibs=no 16965 fi 16966 ;; 16967 16968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16969 case `$LD -v 2>&1` in 16970 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16971 ld_shlibs=no 16972 cat <<_LT_EOF 1>&2 16973 16974 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16975 *** reliably create shared libraries on SCO systems. Therefore, libtool 16976 *** is disabling shared libraries support. We urge you to upgrade GNU 16977 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16978 *** your PATH or compiler configuration so that the native linker is 16979 *** used, and then restart. 16980 16981 _LT_EOF 16982 ;; 16983 *) 16984 # For security reasons, it is highly recommended that you always 16985 # use absolute paths for naming shared libraries, and exclude the 16986 # DT_RUNPATH tag from executables and libraries. But doing so 16987 # requires that you compile everything twice, which is a pain. 16988 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16989 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16992 else 16993 ld_shlibs=no 16994 fi 16995 ;; 16996 esac 16997 ;; 16998 16999 sunos4*) 17000 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17001 wlarc= 17002 hardcode_direct=yes 17003 hardcode_shlibpath_var=no 17004 ;; 17005 17006 *) 17007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17008 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17009 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17010 else 17011 ld_shlibs=no 17012 fi 17013 ;; 17014 esac 17015 17016 if test no = "$ld_shlibs"; then 17017 runpath_var= 17018 hardcode_libdir_flag_spec= 17019 export_dynamic_flag_spec= 17020 whole_archive_flag_spec= 17021 fi 17022 else 17023 # PORTME fill in a description of your system's linker (not GNU ld) 17024 case $host_os in 17025 aix3*) 17026 allow_undefined_flag=unsupported 17027 always_export_symbols=yes 17028 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' 17029 # Note: this linker hardcodes the directories in LIBPATH if there 17030 # are no directories specified by -L. 17031 hardcode_minus_L=yes 17032 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 17033 # Neither direct hardcoding nor static linking is supported with a 17034 # broken collect2. 17035 hardcode_direct=unsupported 17036 fi 17037 ;; 17038 17039 aix[4-9]*) 17040 if test ia64 = "$host_cpu"; then 17041 # On IA64, the linker does run time linking by default, so we don't 17042 # have to do anything special. 17043 aix_use_runtimelinking=no 17044 exp_sym_flag='-Bexport' 17045 no_entry_flag= 17046 else 17047 # If we're using GNU nm, then we don't want the "-C" option. 17048 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17049 # Without the "-l" option, or with the "-B" option, AIX nm treats 17050 # weak defined symbols like other global defined symbols, whereas 17051 # GNU nm marks them as "W". 17052 # While the 'weak' keyword is ignored in the Export File, we need 17053 # it in the Import File for the 'aix-soname' feature, so we have 17054 # to replace the "-B" option with "-P" for AIX nm. 17055 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17056 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' 17057 else 17058 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' 17059 fi 17060 aix_use_runtimelinking=no 17061 17062 # Test if we are trying to use run time linking or normal 17063 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17064 # have runtime linking enabled, and use it for executables. 17065 # For shared libraries, we enable/disable runtime linking 17066 # depending on the kind of the shared library created - 17067 # when "with_aix_soname,aix_use_runtimelinking" is: 17068 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 17069 # "aix,yes" lib.so shared, rtl:yes, for executables 17070 # lib.a static archive 17071 # "both,no" lib.so.V(shr.o) shared, rtl:yes 17072 # lib.a(lib.so.V) shared, rtl:no, for executables 17073 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 17074 # lib.a(lib.so.V) shared, rtl:no 17075 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 17076 # lib.a static archive 17077 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17078 for ld_flag in $LDFLAGS; do 17079 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 17080 aix_use_runtimelinking=yes 17081 break 17082 fi 17083 done 17084 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17085 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17086 # so we don't have lib.a shared libs to link our executables. 17087 # We have to force runtime linking in this case. 17088 aix_use_runtimelinking=yes 17089 LDFLAGS="$LDFLAGS -Wl,-brtl" 17090 fi 17091 ;; 17092 esac 17093 17094 exp_sym_flag='-bexport' 17095 no_entry_flag='-bnoentry' 17096 fi 17097 17098 # When large executables or shared objects are built, AIX ld can 17099 # have problems creating the table of contents. If linking a library 17100 # or program results in "error TOC overflow" add -mminimal-toc to 17101 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17102 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17103 17104 archive_cmds='' 17105 hardcode_direct=yes 17106 hardcode_direct_absolute=yes 17107 hardcode_libdir_separator=':' 17108 link_all_deplibs=yes 17109 file_list_spec='$wl-f,' 17110 case $with_aix_soname,$aix_use_runtimelinking in 17111 aix,*) ;; # traditional, no import file 17112 svr4,* | *,yes) # use import file 17113 # The Import File defines what to hardcode. 17114 hardcode_direct=no 17115 hardcode_direct_absolute=no 17116 ;; 17117 esac 17118 17119 if test yes = "$GCC"; then 17120 case $host_os in aix4.[012]|aix4.[012].*) 17121 # We only want to do this on AIX 4.2 and lower, the check 17122 # below for broken collect2 doesn't work under 4.3+ 17123 collect2name=`$CC -print-prog-name=collect2` 17124 if test -f "$collect2name" && 17125 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17126 then 17127 # We have reworked collect2 17128 : 17129 else 17130 # We have old collect2 17131 hardcode_direct=unsupported 17132 # It fails to find uninstalled libraries when the uninstalled 17133 # path is not listed in the libpath. Setting hardcode_minus_L 17134 # to unsupported forces relinking 17135 hardcode_minus_L=yes 17136 hardcode_libdir_flag_spec='-L$libdir' 17137 hardcode_libdir_separator= 17138 fi 17139 ;; 17140 esac 17141 shared_flag='-shared' 17142 if test yes = "$aix_use_runtimelinking"; then 17143 shared_flag="$shared_flag "'$wl-G' 17144 fi 17145 # Need to ensure runtime linking is disabled for the traditional 17146 # shared library, or the linker may eventually find shared libraries 17147 # /with/ Import File - we do not want to mix them. 17148 shared_flag_aix='-shared' 17149 shared_flag_svr4='-shared $wl-G' 17150 else 17151 # not using gcc 17152 if test ia64 = "$host_cpu"; then 17153 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17154 # chokes on -Wl,-G. The following line is correct: 17155 shared_flag='-G' 17156 else 17157 if test yes = "$aix_use_runtimelinking"; then 17158 shared_flag='$wl-G' 17159 else 17160 shared_flag='$wl-bM:SRE' 17161 fi 17162 shared_flag_aix='$wl-bM:SRE' 17163 shared_flag_svr4='$wl-G' 17164 fi 17165 fi 17166 17167 export_dynamic_flag_spec='$wl-bexpall' 17168 # It seems that -bexpall does not export symbols beginning with 17169 # underscore (_), so it is better to generate a list of symbols to export. 17170 always_export_symbols=yes 17171 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17172 # Warning - without using the other runtime loading flags (-brtl), 17173 # -berok will link without error, but may produce a broken library. 17174 allow_undefined_flag='-berok' 17175 # Determine the default libpath from the value encoded in an 17176 # empty executable. 17177 if test set = "${lt_cv_aix_libpath+set}"; then 17178 aix_libpath=$lt_cv_aix_libpath 17179 else 17180 if test ${lt_cv_aix_libpath_+y} 17181 then : 17182 printf %s "(cached) " >&6 17183 else case e in #( 17184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17185 /* end confdefs.h. */ 17186 17187 int 17188 main (void) 17189 { 17190 17191 ; 17192 return 0; 17193 } 17194 _ACEOF 17195 if ac_fn_c_try_link "$LINENO" 17196 then : 17197 17198 lt_aix_libpath_sed=' 17199 /Import File Strings/,/^$/ { 17200 /^0/ { 17201 s/^0 *\([^ ]*\) *$/\1/ 17202 p 17203 } 17204 }' 17205 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17206 # Check for a 64-bit object if we didn't find anything. 17207 if test -z "$lt_cv_aix_libpath_"; then 17208 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17209 fi 17210 fi 17211 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17212 conftest$ac_exeext conftest.$ac_ext 17213 if test -z "$lt_cv_aix_libpath_"; then 17214 lt_cv_aix_libpath_=/usr/lib:/lib 17215 fi 17216 ;; 17217 esac 17218 fi 17219 17220 aix_libpath=$lt_cv_aix_libpath_ 17221 fi 17222 17223 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17224 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 17225 else 17226 if test ia64 = "$host_cpu"; then 17227 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17228 allow_undefined_flag="-z nodefs" 17229 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" 17230 else 17231 # Determine the default libpath from the value encoded in an 17232 # empty executable. 17233 if test set = "${lt_cv_aix_libpath+set}"; then 17234 aix_libpath=$lt_cv_aix_libpath 17235 else 17236 if test ${lt_cv_aix_libpath_+y} 17237 then : 17238 printf %s "(cached) " >&6 17239 else case e in #( 17240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17241 /* end confdefs.h. */ 17242 17243 int 17244 main (void) 17245 { 17246 17247 ; 17248 return 0; 17249 } 17250 _ACEOF 17251 if ac_fn_c_try_link "$LINENO" 17252 then : 17253 17254 lt_aix_libpath_sed=' 17255 /Import File Strings/,/^$/ { 17256 /^0/ { 17257 s/^0 *\([^ ]*\) *$/\1/ 17258 p 17259 } 17260 }' 17261 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17262 # Check for a 64-bit object if we didn't find anything. 17263 if test -z "$lt_cv_aix_libpath_"; then 17264 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17265 fi 17266 fi 17267 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17268 conftest$ac_exeext conftest.$ac_ext 17269 if test -z "$lt_cv_aix_libpath_"; then 17270 lt_cv_aix_libpath_=/usr/lib:/lib 17271 fi 17272 ;; 17273 esac 17274 fi 17275 17276 aix_libpath=$lt_cv_aix_libpath_ 17277 fi 17278 17279 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17280 # Warning - without using the other run time loading flags, 17281 # -berok will link without error, but may produce a broken library. 17282 no_undefined_flag=' $wl-bernotok' 17283 allow_undefined_flag=' $wl-berok' 17284 if test yes = "$with_gnu_ld"; then 17285 # We only use this code for GNU lds that support --whole-archive. 17286 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17287 else 17288 # Exported symbols can be pulled into shared objects from archives 17289 whole_archive_flag_spec='$convenience' 17290 fi 17291 archive_cmds_need_lc=yes 17292 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17293 # -brtl affects multiple linker settings, -berok does not and is overridden later 17294 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17295 if test svr4 != "$with_aix_soname"; then 17296 # This is similar to how AIX traditionally builds its shared libraries. 17297 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' 17298 fi 17299 if test aix != "$with_aix_soname"; then 17300 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' 17301 else 17302 # used by -dlpreopen to get the symbols 17303 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17304 fi 17305 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17306 fi 17307 fi 17308 ;; 17309 17310 amigaos*) 17311 case $host_cpu in 17312 powerpc) 17313 # see comment about AmigaOS4 .so support 17314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17315 archive_expsym_cmds='' 17316 ;; 17317 m68k) 17318 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)' 17319 hardcode_libdir_flag_spec='-L$libdir' 17320 hardcode_minus_L=yes 17321 ;; 17322 esac 17323 ;; 17324 17325 bsdi[45]*) 17326 export_dynamic_flag_spec=-rdynamic 17327 ;; 17328 17329 cygwin* | mingw* | windows* | pw32* | cegcc*) 17330 # When not using gcc, we currently assume that we are using 17331 # Microsoft Visual C++ or Intel C++ Compiler. 17332 # hardcode_libdir_flag_spec is actually meaningless, as there is 17333 # no search path for DLLs. 17334 case $cc_basename in 17335 cl* | icl*) 17336 # Native MSVC or ICC 17337 hardcode_libdir_flag_spec=' ' 17338 allow_undefined_flag=unsupported 17339 always_export_symbols=yes 17340 file_list_spec='@' 17341 # Tell ltmain to make .lib files, not .a files. 17342 libext=lib 17343 # Tell ltmain to make .dll files, not .so files. 17344 shrext_cmds=.dll 17345 # FIXME: Setting linknames here is a bad hack. 17346 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17347 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17348 cp "$export_symbols" "$output_objdir/$soname.def"; 17349 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17350 else 17351 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17352 fi~ 17353 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17354 linknames=' 17355 # The linker will not automatically build a static lib if we build a DLL. 17356 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17357 enable_shared_with_static_runtimes=yes 17358 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17360 # Don't use ranlib 17361 old_postinstall_cmds='chmod 644 $oldlib' 17362 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17363 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17364 case $lt_outputfile in 17365 *.exe|*.EXE) ;; 17366 *) 17367 lt_outputfile=$lt_outputfile.exe 17368 lt_tool_outputfile=$lt_tool_outputfile.exe 17369 ;; 17370 esac~ 17371 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17372 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17373 $RM "$lt_outputfile.manifest"; 17374 fi' 17375 ;; 17376 *) 17377 # Assume MSVC and ICC wrapper 17378 hardcode_libdir_flag_spec=' ' 17379 allow_undefined_flag=unsupported 17380 # Tell ltmain to make .lib files, not .a files. 17381 libext=lib 17382 # Tell ltmain to make .dll files, not .so files. 17383 shrext_cmds=.dll 17384 # FIXME: Setting linknames here is a bad hack. 17385 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17386 # The linker will automatically build a .lib file if we build a DLL. 17387 old_archive_from_new_cmds='true' 17388 # FIXME: Should let the user specify the lib program. 17389 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17390 enable_shared_with_static_runtimes=yes 17391 ;; 17392 esac 17393 ;; 17394 17395 darwin* | rhapsody*) 17396 17397 17398 archive_cmds_need_lc=no 17399 hardcode_direct=no 17400 hardcode_automatic=yes 17401 hardcode_shlibpath_var=unsupported 17402 if test yes = "$lt_cv_ld_force_load"; then 17403 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\"`' 17404 17405 else 17406 whole_archive_flag_spec='' 17407 fi 17408 link_all_deplibs=yes 17409 allow_undefined_flag=$_lt_dar_allow_undefined 17410 case $cc_basename in 17411 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17412 *) _lt_dar_can_shared=$GCC ;; 17413 esac 17414 if test yes = "$_lt_dar_can_shared"; then 17415 output_verbose_link_cmd=func_echo_all 17416 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17417 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17418 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" 17419 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" 17420 17421 else 17422 ld_shlibs=no 17423 fi 17424 17425 ;; 17426 17427 dgux*) 17428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17429 hardcode_libdir_flag_spec='-L$libdir' 17430 hardcode_shlibpath_var=no 17431 ;; 17432 17433 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17434 # support. Future versions do this automatically, but an explicit c++rt0.o 17435 # does not break anything, and helps significantly (at the cost of a little 17436 # extra space). 17437 freebsd2.2*) 17438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17439 hardcode_libdir_flag_spec='-R$libdir' 17440 hardcode_direct=yes 17441 hardcode_shlibpath_var=no 17442 ;; 17443 17444 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17445 freebsd2.*) 17446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17447 hardcode_direct=yes 17448 hardcode_minus_L=yes 17449 hardcode_shlibpath_var=no 17450 ;; 17451 17452 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17453 freebsd* | dragonfly* | midnightbsd*) 17454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17455 hardcode_libdir_flag_spec='-R$libdir' 17456 hardcode_direct=yes 17457 hardcode_shlibpath_var=no 17458 ;; 17459 17460 hpux9*) 17461 if test yes = "$GCC"; then 17462 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' 17463 else 17464 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' 17465 fi 17466 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17467 hardcode_libdir_separator=: 17468 hardcode_direct=yes 17469 17470 # hardcode_minus_L: Not really in the search PATH, 17471 # but as the default location of the library. 17472 hardcode_minus_L=yes 17473 export_dynamic_flag_spec='$wl-E' 17474 ;; 17475 17476 hpux10*) 17477 if test yes,no = "$GCC,$with_gnu_ld"; then 17478 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17479 else 17480 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17481 fi 17482 if test no = "$with_gnu_ld"; then 17483 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17484 hardcode_libdir_separator=: 17485 hardcode_direct=yes 17486 hardcode_direct_absolute=yes 17487 export_dynamic_flag_spec='$wl-E' 17488 # hardcode_minus_L: Not really in the search PATH, 17489 # but as the default location of the library. 17490 hardcode_minus_L=yes 17491 fi 17492 ;; 17493 17494 hpux11*) 17495 if test yes,no = "$GCC,$with_gnu_ld"; then 17496 case $host_cpu in 17497 hppa*64*) 17498 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17499 ;; 17500 ia64*) 17501 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17502 ;; 17503 *) 17504 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17505 ;; 17506 esac 17507 else 17508 case $host_cpu in 17509 hppa*64*) 17510 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17511 ;; 17512 ia64*) 17513 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17514 ;; 17515 *) 17516 17517 # Older versions of the 11.00 compiler do not understand -b yet 17518 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17520 printf %s "checking if $CC understands -b... " >&6; } 17521 if test ${lt_cv_prog_compiler__b+y} 17522 then : 17523 printf %s "(cached) " >&6 17524 else case e in #( 17525 e) lt_cv_prog_compiler__b=no 17526 save_LDFLAGS=$LDFLAGS 17527 LDFLAGS="$LDFLAGS -b" 17528 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17530 # The linker can only warn and ignore the option if not recognized 17531 # So say no if there are warnings 17532 if test -s conftest.err; then 17533 # Append any errors to the config.log. 17534 cat conftest.err 1>&5 17535 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17537 if diff conftest.exp conftest.er2 >/dev/null; then 17538 lt_cv_prog_compiler__b=yes 17539 fi 17540 else 17541 lt_cv_prog_compiler__b=yes 17542 fi 17543 fi 17544 $RM -r conftest* 17545 LDFLAGS=$save_LDFLAGS 17546 ;; 17547 esac 17548 fi 17549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17550 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17551 17552 if test yes = "$lt_cv_prog_compiler__b"; then 17553 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17554 else 17555 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17556 fi 17557 17558 ;; 17559 esac 17560 fi 17561 if test no = "$with_gnu_ld"; then 17562 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17563 hardcode_libdir_separator=: 17564 17565 case $host_cpu in 17566 hppa*64*|ia64*) 17567 hardcode_direct=no 17568 hardcode_shlibpath_var=no 17569 ;; 17570 *) 17571 hardcode_direct=yes 17572 hardcode_direct_absolute=yes 17573 export_dynamic_flag_spec='$wl-E' 17574 17575 # hardcode_minus_L: Not really in the search PATH, 17576 # but as the default location of the library. 17577 hardcode_minus_L=yes 17578 ;; 17579 esac 17580 fi 17581 ;; 17582 17583 irix5* | irix6* | nonstopux*) 17584 if test yes = "$GCC"; then 17585 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' 17586 # Try to use the -exported_symbol ld option, if it does not 17587 # work, assume that -exports_file does not work either and 17588 # implicitly export all symbols. 17589 # This should be the same for all languages, so no per-tag cache variable. 17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17591 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17592 if test ${lt_cv_irix_exported_symbol+y} 17593 then : 17594 printf %s "(cached) " >&6 17595 else case e in #( 17596 e) save_LDFLAGS=$LDFLAGS 17597 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17599 /* end confdefs.h. */ 17600 int foo (void) { return 0; } 17601 _ACEOF 17602 if ac_fn_c_try_link "$LINENO" 17603 then : 17604 lt_cv_irix_exported_symbol=yes 17605 else case e in #( 17606 e) lt_cv_irix_exported_symbol=no ;; 17607 esac 17608 fi 17609 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17610 conftest$ac_exeext conftest.$ac_ext 17611 LDFLAGS=$save_LDFLAGS ;; 17612 esac 17613 fi 17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17615 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17616 if test yes = "$lt_cv_irix_exported_symbol"; then 17617 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' 17618 fi 17619 else 17620 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' 17621 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' 17622 fi 17623 archive_cmds_need_lc='no' 17624 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17625 hardcode_libdir_separator=: 17626 inherit_rpath=yes 17627 link_all_deplibs=yes 17628 ;; 17629 17630 linux*) 17631 case $cc_basename in 17632 tcc*) 17633 # Fabrice Bellard et al's Tiny C Compiler 17634 ld_shlibs=yes 17635 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17636 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17637 ;; 17638 esac 17639 ;; 17640 17641 *-mlibc) 17642 ;; 17643 17644 netbsd* | netbsdelf*-gnu) 17645 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17647 else 17648 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17649 fi 17650 hardcode_libdir_flag_spec='-R$libdir' 17651 hardcode_direct=yes 17652 hardcode_shlibpath_var=no 17653 ;; 17654 17655 newsos6) 17656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17657 hardcode_direct=yes 17658 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17659 hardcode_libdir_separator=: 17660 hardcode_shlibpath_var=no 17661 ;; 17662 17663 *nto* | *qnx*) 17664 ;; 17665 17666 openbsd*) 17667 if test -f /usr/libexec/ld.so; then 17668 hardcode_direct=yes 17669 hardcode_shlibpath_var=no 17670 hardcode_direct_absolute=yes 17671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17672 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17673 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17674 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17675 export_dynamic_flag_spec='$wl-E' 17676 else 17677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17678 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17679 fi 17680 else 17681 ld_shlibs=no 17682 fi 17683 ;; 17684 17685 os2*) 17686 hardcode_libdir_flag_spec='-L$libdir' 17687 hardcode_minus_L=yes 17688 allow_undefined_flag=unsupported 17689 shrext_cmds=.dll 17690 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17691 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17692 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17693 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17694 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17695 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17696 emximp -o $lib $output_objdir/$libname.def' 17697 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17698 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17699 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17700 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17701 prefix_cmds="$SED"~ 17702 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17703 prefix_cmds="$prefix_cmds -e 1d"; 17704 fi~ 17705 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17706 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17707 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17708 emximp -o $lib $output_objdir/$libname.def' 17709 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17710 enable_shared_with_static_runtimes=yes 17711 file_list_spec='@' 17712 ;; 17713 17714 osf3*) 17715 if test yes = "$GCC"; then 17716 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17717 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' 17718 else 17719 allow_undefined_flag=' -expect_unresolved \*' 17720 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' 17721 fi 17722 archive_cmds_need_lc='no' 17723 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17724 hardcode_libdir_separator=: 17725 ;; 17726 17727 osf4* | osf5*) # as osf3* with the addition of -msym flag 17728 if test yes = "$GCC"; then 17729 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17730 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' 17731 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17732 else 17733 allow_undefined_flag=' -expect_unresolved \*' 17734 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' 17735 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~ 17736 $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' 17737 17738 # Both c and cxx compiler support -rpath directly 17739 hardcode_libdir_flag_spec='-rpath $libdir' 17740 fi 17741 archive_cmds_need_lc='no' 17742 hardcode_libdir_separator=: 17743 ;; 17744 17745 serenity*) 17746 ;; 17747 17748 solaris*) 17749 no_undefined_flag=' -z defs' 17750 if test yes = "$GCC"; then 17751 wlarc='$wl' 17752 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17754 $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' 17755 else 17756 case `$CC -V 2>&1` in 17757 *"Compilers 5.0"*) 17758 wlarc='' 17759 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17760 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17761 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17762 ;; 17763 *) 17764 wlarc='$wl' 17765 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17766 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17767 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17768 ;; 17769 esac 17770 fi 17771 hardcode_libdir_flag_spec='-R$libdir' 17772 hardcode_shlibpath_var=no 17773 case $host_os in 17774 solaris2.[0-5] | solaris2.[0-5].*) ;; 17775 *) 17776 # The compiler driver will combine and reorder linker options, 17777 # but understands '-z linker_flag'. GCC discards it without '$wl', 17778 # but is careful enough not to reorder. 17779 # Supported since Solaris 2.6 (maybe 2.5.1?) 17780 if test yes = "$GCC"; then 17781 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17782 else 17783 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17784 fi 17785 ;; 17786 esac 17787 link_all_deplibs=yes 17788 ;; 17789 17790 sunos4*) 17791 if test sequent = "$host_vendor"; then 17792 # Use $CC to link under sequent, because it throws in some extra .o 17793 # files that make .init and .fini sections work. 17794 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17795 else 17796 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17797 fi 17798 hardcode_libdir_flag_spec='-L$libdir' 17799 hardcode_direct=yes 17800 hardcode_minus_L=yes 17801 hardcode_shlibpath_var=no 17802 ;; 17803 17804 sysv4) 17805 case $host_vendor in 17806 sni) 17807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17808 hardcode_direct=yes # is this really true??? 17809 ;; 17810 siemens) 17811 ## LD is ld it makes a PLAMLIB 17812 ## CC just makes a GrossModule. 17813 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17814 reload_cmds='$CC -r -o $output$reload_objs' 17815 hardcode_direct=no 17816 ;; 17817 motorola) 17818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17819 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17820 ;; 17821 esac 17822 runpath_var='LD_RUN_PATH' 17823 hardcode_shlibpath_var=no 17824 ;; 17825 17826 sysv4.3*) 17827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17828 hardcode_shlibpath_var=no 17829 export_dynamic_flag_spec='-Bexport' 17830 ;; 17831 17832 sysv4*MP*) 17833 if test -d /usr/nec; then 17834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17835 hardcode_shlibpath_var=no 17836 runpath_var=LD_RUN_PATH 17837 hardcode_runpath_var=yes 17838 ld_shlibs=yes 17839 fi 17840 ;; 17841 17842 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17843 no_undefined_flag='$wl-z,text' 17844 archive_cmds_need_lc=no 17845 hardcode_shlibpath_var=no 17846 runpath_var='LD_RUN_PATH' 17847 17848 if test yes = "$GCC"; then 17849 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17850 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17851 else 17852 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17853 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17854 fi 17855 ;; 17856 17857 sysv5* | sco3.2v5* | sco5v6*) 17858 # Note: We CANNOT use -z defs as we might desire, because we do not 17859 # link with -lc, and that would cause any symbols used from libc to 17860 # always be unresolved, which means just about no library would 17861 # ever link correctly. If we're not using GNU ld we use -z text 17862 # though, which does catch some bad symbols but isn't as heavy-handed 17863 # as -z defs. 17864 no_undefined_flag='$wl-z,text' 17865 allow_undefined_flag='$wl-z,nodefs' 17866 archive_cmds_need_lc=no 17867 hardcode_shlibpath_var=no 17868 hardcode_libdir_flag_spec='$wl-R,$libdir' 17869 hardcode_libdir_separator=':' 17870 link_all_deplibs=yes 17871 export_dynamic_flag_spec='$wl-Bexport' 17872 runpath_var='LD_RUN_PATH' 17873 17874 if test yes = "$GCC"; then 17875 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17876 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17877 else 17878 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17879 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17880 fi 17881 ;; 17882 17883 uts4*) 17884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17885 hardcode_libdir_flag_spec='-L$libdir' 17886 hardcode_shlibpath_var=no 17887 ;; 17888 17889 *) 17890 ld_shlibs=no 17891 ;; 17892 esac 17893 17894 if test sni = "$host_vendor"; then 17895 case $host in 17896 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17897 export_dynamic_flag_spec='$wl-Blargedynsym' 17898 ;; 17899 esac 17900 fi 17901 fi 17902 17903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17904 printf "%s\n" "$ld_shlibs" >&6; } 17905 test no = "$ld_shlibs" && can_build_shared=no 17906 17907 with_gnu_ld=$with_gnu_ld 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 # 17924 # Do we need to explicitly link libc? 17925 # 17926 case "x$archive_cmds_need_lc" in 17927 x|xyes) 17928 # Assume -lc should be added 17929 archive_cmds_need_lc=yes 17930 17931 if test yes,yes = "$GCC,$enable_shared"; then 17932 case $archive_cmds in 17933 *'~'*) 17934 # FIXME: we may have to deal with multi-command sequences. 17935 ;; 17936 '$CC '*) 17937 # Test whether the compiler implicitly links with -lc since on some 17938 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17939 # to ld, don't add -lc before -lgcc. 17940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17941 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17942 if test ${lt_cv_archive_cmds_need_lc+y} 17943 then : 17944 printf %s "(cached) " >&6 17945 else case e in #( 17946 e) $RM conftest* 17947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17948 17949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17950 (eval $ac_compile) 2>&5 17951 ac_status=$? 17952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17953 test $ac_status = 0; } 2>conftest.err; then 17954 soname=conftest 17955 lib=conftest 17956 libobjs=conftest.$ac_objext 17957 deplibs= 17958 wl=$lt_prog_compiler_wl 17959 pic_flag=$lt_prog_compiler_pic 17960 compiler_flags=-v 17961 linker_flags=-v 17962 verstring= 17963 output_objdir=. 17964 libname=conftest 17965 lt_save_allow_undefined_flag=$allow_undefined_flag 17966 allow_undefined_flag= 17967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17968 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17969 ac_status=$? 17970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17971 test $ac_status = 0; } 17972 then 17973 lt_cv_archive_cmds_need_lc=no 17974 else 17975 lt_cv_archive_cmds_need_lc=yes 17976 fi 17977 allow_undefined_flag=$lt_save_allow_undefined_flag 17978 else 17979 cat conftest.err 1>&5 17980 fi 17981 $RM conftest* 17982 ;; 17983 esac 17984 fi 17985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17986 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17987 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17988 ;; 17989 esac 17990 fi 17991 ;; 17992 esac 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18146 printf %s "checking dynamic linker characteristics... " >&6; } 18147 18148 if test yes = "$GCC"; then 18149 case $host_os in 18150 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 18151 *) lt_awk_arg='/^libraries:/' ;; 18152 esac 18153 case $host_os in 18154 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 18155 *) lt_sed_strip_eq='s|=/|/|g' ;; 18156 esac 18157 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18158 case $lt_search_path_spec in 18159 *\;*) 18160 # if the path contains ";" then we assume it to be the separator 18161 # otherwise default to the standard path separator (i.e. ":") - it is 18162 # assumed that no part of a normal pathname contains ";" but that should 18163 # okay in the real world where ";" in dirpaths is itself problematic. 18164 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18165 ;; 18166 *) 18167 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18168 ;; 18169 esac 18170 # Ok, now we have the path, separated by spaces, we can step through it 18171 # and add multilib dir if necessary... 18172 lt_tmp_lt_search_path_spec= 18173 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18174 # ...but if some path component already ends with the multilib dir we assume 18175 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 18176 case "$lt_multi_os_dir; $lt_search_path_spec " in 18177 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 18178 lt_multi_os_dir= 18179 ;; 18180 esac 18181 for lt_sys_path in $lt_search_path_spec; do 18182 if test -d "$lt_sys_path$lt_multi_os_dir"; then 18183 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 18184 elif test -n "$lt_multi_os_dir"; then 18185 test -d "$lt_sys_path" && \ 18186 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18187 fi 18188 done 18189 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18190 BEGIN {RS = " "; FS = "/|\n";} { 18191 lt_foo = ""; 18192 lt_count = 0; 18193 for (lt_i = NF; lt_i > 0; lt_i--) { 18194 if ($lt_i != "" && $lt_i != ".") { 18195 if ($lt_i == "..") { 18196 lt_count++; 18197 } else { 18198 if (lt_count == 0) { 18199 lt_foo = "/" $lt_i lt_foo; 18200 } else { 18201 lt_count--; 18202 } 18203 } 18204 } 18205 } 18206 if (lt_foo != "") { lt_freq[lt_foo]++; } 18207 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18208 }'` 18209 # AWK program above erroneously prepends '/' to C:/dos/paths 18210 # for these hosts. 18211 case $host_os in 18212 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18213 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18214 esac 18215 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18216 else 18217 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18218 fi 18219 library_names_spec= 18220 libname_spec='lib$name' 18221 soname_spec= 18222 shrext_cmds=.so 18223 postinstall_cmds= 18224 postuninstall_cmds= 18225 finish_cmds= 18226 finish_eval= 18227 shlibpath_var= 18228 shlibpath_overrides_runpath=unknown 18229 version_type=none 18230 dynamic_linker="$host_os ld.so" 18231 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18232 need_lib_prefix=unknown 18233 hardcode_into_libs=no 18234 18235 # when you set need_version to no, make sure it does not cause -set_version 18236 # flags to be left without arguments 18237 need_version=unknown 18238 18239 18240 18241 case $host_os in 18242 aix3*) 18243 version_type=linux # correct to gnu/linux during the next big refactor 18244 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18245 shlibpath_var=LIBPATH 18246 18247 # AIX 3 has no versioning support, so we append a major version to the name. 18248 soname_spec='$libname$release$shared_ext$major' 18249 ;; 18250 18251 aix[4-9]*) 18252 version_type=linux # correct to gnu/linux during the next big refactor 18253 need_lib_prefix=no 18254 need_version=no 18255 hardcode_into_libs=yes 18256 if test ia64 = "$host_cpu"; then 18257 # AIX 5 supports IA64 18258 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18259 shlibpath_var=LD_LIBRARY_PATH 18260 else 18261 # With GCC up to 2.95.x, collect2 would create an import file 18262 # for dependence libraries. The import file would start with 18263 # the line '#! .'. This would cause the generated library to 18264 # depend on '.', always an invalid library. This was fixed in 18265 # development snapshots of GCC prior to 3.0. 18266 case $host_os in 18267 aix4 | aix4.[01] | aix4.[01].*) 18268 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18269 echo ' yes ' 18270 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18271 : 18272 else 18273 can_build_shared=no 18274 fi 18275 ;; 18276 esac 18277 # Using Import Files as archive members, it is possible to support 18278 # filename-based versioning of shared library archives on AIX. While 18279 # this would work for both with and without runtime linking, it will 18280 # prevent static linking of such archives. So we do filename-based 18281 # shared library versioning with .so extension only, which is used 18282 # when both runtime linking and shared linking is enabled. 18283 # Unfortunately, runtime linking may impact performance, so we do 18284 # not want this to be the default eventually. Also, we use the 18285 # versioned .so libs for executables only if there is the -brtl 18286 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 18287 # To allow for filename-based versioning support, we need to create 18288 # libNAME.so.V as an archive file, containing: 18289 # *) an Import File, referring to the versioned filename of the 18290 # archive as well as the shared archive member, telling the 18291 # bitwidth (32 or 64) of that shared object, and providing the 18292 # list of exported symbols of that shared object, eventually 18293 # decorated with the 'weak' keyword 18294 # *) the shared object with the F_LOADONLY flag set, to really avoid 18295 # it being seen by the linker. 18296 # At run time we better use the real file rather than another symlink, 18297 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18298 18299 case $with_aix_soname,$aix_use_runtimelinking in 18300 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18301 # soname into executable. Probably we can add versioning support to 18302 # collect2, so additional links can be useful in future. 18303 aix,yes) # traditional libtool 18304 dynamic_linker='AIX unversionable lib.so' 18305 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18306 # instead of lib<name>.a to let people know that these are not 18307 # typical AIX shared libraries. 18308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18309 ;; 18310 aix,no) # traditional AIX only 18311 dynamic_linker='AIX lib.a(lib.so.V)' 18312 # We preserve .a as extension for shared libraries through AIX4.2 18313 # and later when we are not doing run time linking. 18314 library_names_spec='$libname$release.a $libname.a' 18315 soname_spec='$libname$release$shared_ext$major' 18316 ;; 18317 svr4,*) # full svr4 only 18318 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18319 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18320 # We do not specify a path in Import Files, so LIBPATH fires. 18321 shlibpath_overrides_runpath=yes 18322 ;; 18323 *,yes) # both, prefer svr4 18324 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18325 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18326 # unpreferred sharedlib libNAME.a needs extra handling 18327 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"' 18328 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"' 18329 # We do not specify a path in Import Files, so LIBPATH fires. 18330 shlibpath_overrides_runpath=yes 18331 ;; 18332 *,no) # both, prefer aix 18333 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18334 library_names_spec='$libname$release.a $libname.a' 18335 soname_spec='$libname$release$shared_ext$major' 18336 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18337 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)' 18338 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"' 18339 ;; 18340 esac 18341 shlibpath_var=LIBPATH 18342 fi 18343 ;; 18344 18345 amigaos*) 18346 case $host_cpu in 18347 powerpc) 18348 # Since July 2007 AmigaOS4 officially supports .so libraries. 18349 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18351 ;; 18352 m68k) 18353 library_names_spec='$libname.ixlibrary $libname.a' 18354 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18355 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' 18356 ;; 18357 esac 18358 ;; 18359 18360 beos*) 18361 library_names_spec='$libname$shared_ext' 18362 dynamic_linker="$host_os ld.so" 18363 shlibpath_var=LIBRARY_PATH 18364 ;; 18365 18366 bsdi[45]*) 18367 version_type=linux # correct to gnu/linux during the next big refactor 18368 need_version=no 18369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18370 soname_spec='$libname$release$shared_ext$major' 18371 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18372 shlibpath_var=LD_LIBRARY_PATH 18373 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18374 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18375 # the default ld.so.conf also contains /usr/contrib/lib and 18376 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18377 # libtool to hard-code these into programs 18378 ;; 18379 18380 cygwin* | mingw* | windows* | pw32* | cegcc*) 18381 version_type=windows 18382 shrext_cmds=.dll 18383 need_version=no 18384 need_lib_prefix=no 18385 18386 case $GCC,$cc_basename in 18387 yes,*) 18388 # gcc 18389 library_names_spec='$libname.dll.a' 18390 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18391 # If user builds GCC with multilib enabled, 18392 # it should just install on $(libdir) 18393 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 18394 if test xyes = x"$multilib"; then 18395 postinstall_cmds='base_file=`basename \$file`~ 18396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18397 dldir=$destdir/`dirname \$dlpath`~ 18398 $install_prog $dir/$dlname $destdir/$dlname~ 18399 chmod a+x $destdir/$dlname~ 18400 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18401 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 18402 fi' 18403 else 18404 postinstall_cmds='base_file=`basename \$file`~ 18405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18406 dldir=$destdir/`dirname \$dlpath`~ 18407 test -d \$dldir || mkdir -p \$dldir~ 18408 $install_prog $dir/$dlname \$dldir/$dlname~ 18409 chmod a+x \$dldir/$dlname~ 18410 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18411 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18412 fi' 18413 fi 18414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18415 dlpath=$dir/\$dldll~ 18416 $RM \$dlpath' 18417 shlibpath_overrides_runpath=yes 18418 18419 case $host_os in 18420 cygwin*) 18421 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18422 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18423 18424 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18425 ;; 18426 mingw* | windows* | cegcc*) 18427 # MinGW DLLs use traditional 'lib' prefix 18428 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18429 ;; 18430 pw32*) 18431 # pw32 DLLs use 'pw' prefix rather than 'lib' 18432 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18433 ;; 18434 esac 18435 dynamic_linker='Win32 ld.exe' 18436 ;; 18437 18438 *,cl* | *,icl*) 18439 # Native MSVC or ICC 18440 libname_spec='$name' 18441 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18442 library_names_spec='$libname.dll.lib' 18443 18444 case $build_os in 18445 mingw* | windows*) 18446 sys_lib_search_path_spec= 18447 lt_save_ifs=$IFS 18448 IFS=';' 18449 for lt_path in $LIB 18450 do 18451 IFS=$lt_save_ifs 18452 # Let DOS variable expansion print the short 8.3 style file name. 18453 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18454 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18455 done 18456 IFS=$lt_save_ifs 18457 # Convert to MSYS style. 18458 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18459 ;; 18460 cygwin*) 18461 # Convert to unix form, then to dos form, then back to unix form 18462 # but this time dos style (no spaces!) so that the unix form looks 18463 # like /cygdrive/c/PROGRA~1:/cygdr... 18464 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18465 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18466 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18467 ;; 18468 *) 18469 sys_lib_search_path_spec=$LIB 18470 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18471 # It is most probably a Windows format PATH. 18472 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18473 else 18474 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18475 fi 18476 # FIXME: find the short name or the path components, as spaces are 18477 # common. (e.g. "Program Files" -> "PROGRA~1") 18478 ;; 18479 esac 18480 18481 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18482 postinstall_cmds='base_file=`basename \$file`~ 18483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18484 dldir=$destdir/`dirname \$dlpath`~ 18485 test -d \$dldir || mkdir -p \$dldir~ 18486 $install_prog $dir/$dlname \$dldir/$dlname' 18487 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18488 dlpath=$dir/\$dldll~ 18489 $RM \$dlpath' 18490 shlibpath_overrides_runpath=yes 18491 dynamic_linker='Win32 link.exe' 18492 ;; 18493 18494 *) 18495 # Assume MSVC and ICC wrapper 18496 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18497 dynamic_linker='Win32 ld.exe' 18498 ;; 18499 esac 18500 # FIXME: first we should search . and the directory the executable is in 18501 shlibpath_var=PATH 18502 ;; 18503 18504 darwin* | rhapsody*) 18505 dynamic_linker="$host_os dyld" 18506 version_type=darwin 18507 need_lib_prefix=no 18508 need_version=no 18509 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18510 soname_spec='$libname$release$major$shared_ext' 18511 shlibpath_overrides_runpath=yes 18512 shlibpath_var=DYLD_LIBRARY_PATH 18513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18514 18515 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18516 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18517 ;; 18518 18519 dgux*) 18520 version_type=linux # correct to gnu/linux during the next big refactor 18521 need_lib_prefix=no 18522 need_version=no 18523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18524 soname_spec='$libname$release$shared_ext$major' 18525 shlibpath_var=LD_LIBRARY_PATH 18526 ;; 18527 18528 freebsd* | dragonfly* | midnightbsd*) 18529 # DragonFly does not have aout. When/if they implement a new 18530 # versioning mechanism, adjust this. 18531 if test -x /usr/bin/objformat; then 18532 objformat=`/usr/bin/objformat` 18533 else 18534 case $host_os in 18535 freebsd[23].*) objformat=aout ;; 18536 *) objformat=elf ;; 18537 esac 18538 fi 18539 version_type=freebsd-$objformat 18540 case $version_type in 18541 freebsd-elf*) 18542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18543 soname_spec='$libname$release$shared_ext$major' 18544 need_version=no 18545 need_lib_prefix=no 18546 ;; 18547 freebsd-*) 18548 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18549 need_version=yes 18550 ;; 18551 esac 18552 case $host_cpu in 18553 powerpc64) 18554 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 18555 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18557 /* end confdefs.h. */ 18558 int test_pointer_size[sizeof (void *) - 5]; 18559 18560 _ACEOF 18561 if ac_fn_c_try_compile "$LINENO" 18562 then : 18563 shlibpath_var=LD_LIBRARY_PATH 18564 else case e in #( 18565 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 18566 esac 18567 fi 18568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18569 ;; 18570 *) 18571 shlibpath_var=LD_LIBRARY_PATH 18572 ;; 18573 esac 18574 case $host_os in 18575 freebsd2.*) 18576 shlibpath_overrides_runpath=yes 18577 ;; 18578 freebsd3.[01]* | freebsdelf3.[01]*) 18579 shlibpath_overrides_runpath=yes 18580 hardcode_into_libs=yes 18581 ;; 18582 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18583 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18584 shlibpath_overrides_runpath=no 18585 hardcode_into_libs=yes 18586 ;; 18587 *) # from 4.6 on, and DragonFly 18588 shlibpath_overrides_runpath=yes 18589 hardcode_into_libs=yes 18590 ;; 18591 esac 18592 ;; 18593 18594 haiku*) 18595 version_type=linux # correct to gnu/linux during the next big refactor 18596 need_lib_prefix=no 18597 need_version=no 18598 dynamic_linker="$host_os runtime_loader" 18599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18600 soname_spec='$libname$release$shared_ext$major' 18601 shlibpath_var=LIBRARY_PATH 18602 shlibpath_overrides_runpath=no 18603 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 18604 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 18605 hardcode_into_libs=no 18606 ;; 18607 18608 hpux9* | hpux10* | hpux11*) 18609 # Give a soname corresponding to the major version so that dld.sl refuses to 18610 # link against other versions. 18611 version_type=sunos 18612 need_lib_prefix=no 18613 need_version=no 18614 case $host_cpu in 18615 ia64*) 18616 shrext_cmds='.so' 18617 hardcode_into_libs=yes 18618 dynamic_linker="$host_os dld.so" 18619 shlibpath_var=LD_LIBRARY_PATH 18620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18622 soname_spec='$libname$release$shared_ext$major' 18623 if test 32 = "$HPUX_IA64_MODE"; then 18624 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18625 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18626 else 18627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18628 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18629 fi 18630 ;; 18631 hppa*64*) 18632 shrext_cmds='.sl' 18633 hardcode_into_libs=yes 18634 dynamic_linker="$host_os dld.sl" 18635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18638 soname_spec='$libname$release$shared_ext$major' 18639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18641 ;; 18642 *) 18643 shrext_cmds='.sl' 18644 dynamic_linker="$host_os dld.sl" 18645 shlibpath_var=SHLIB_PATH 18646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18648 soname_spec='$libname$release$shared_ext$major' 18649 ;; 18650 esac 18651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18652 postinstall_cmds='chmod 555 $lib' 18653 # or fails outright, so override atomically: 18654 install_override_mode=555 18655 ;; 18656 18657 interix[3-9]*) 18658 version_type=linux # correct to gnu/linux during the next big refactor 18659 need_lib_prefix=no 18660 need_version=no 18661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18662 soname_spec='$libname$release$shared_ext$major' 18663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18664 shlibpath_var=LD_LIBRARY_PATH 18665 shlibpath_overrides_runpath=no 18666 hardcode_into_libs=yes 18667 ;; 18668 18669 irix5* | irix6* | nonstopux*) 18670 case $host_os in 18671 nonstopux*) version_type=nonstopux ;; 18672 *) 18673 if test yes = "$lt_cv_prog_gnu_ld"; then 18674 version_type=linux # correct to gnu/linux during the next big refactor 18675 else 18676 version_type=irix 18677 fi ;; 18678 esac 18679 need_lib_prefix=no 18680 need_version=no 18681 soname_spec='$libname$release$shared_ext$major' 18682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18683 case $host_os in 18684 irix5* | nonstopux*) 18685 libsuff= shlibsuff= 18686 ;; 18687 *) 18688 case $LD in # libtool.m4 will add one of these switches to LD 18689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18690 libsuff= shlibsuff= libmagic=32-bit;; 18691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18692 libsuff=32 shlibsuff=N32 libmagic=N32;; 18693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18694 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18695 *) libsuff= shlibsuff= libmagic=never-match;; 18696 esac 18697 ;; 18698 esac 18699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18700 shlibpath_overrides_runpath=no 18701 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18702 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18703 hardcode_into_libs=yes 18704 ;; 18705 18706 # No shared lib support for Linux oldld, aout, or coff. 18707 linux*oldld* | linux*aout* | linux*coff*) 18708 dynamic_linker=no 18709 ;; 18710 18711 linux*android*) 18712 version_type=none # Android doesn't support versioned libraries. 18713 need_lib_prefix=no 18714 need_version=no 18715 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 18716 soname_spec='$libname$release$shared_ext' 18717 finish_cmds= 18718 shlibpath_var=LD_LIBRARY_PATH 18719 shlibpath_overrides_runpath=yes 18720 18721 # This implies no fast_install, which is unacceptable. 18722 # Some rework will be needed to allow for fast_install 18723 # before this can be enabled. 18724 hardcode_into_libs=yes 18725 18726 dynamic_linker='Android linker' 18727 # -rpath works at least for libraries that are not overridden by 18728 # libraries installed in system locations. 18729 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18730 ;; 18731 18732 # This must be glibc/ELF. 18733 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18734 version_type=linux # correct to gnu/linux during the next big refactor 18735 need_lib_prefix=no 18736 need_version=no 18737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18738 soname_spec='$libname$release$shared_ext$major' 18739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18740 shlibpath_var=LD_LIBRARY_PATH 18741 shlibpath_overrides_runpath=no 18742 18743 # Some binutils ld are patched to set DT_RUNPATH 18744 if test ${lt_cv_shlibpath_overrides_runpath+y} 18745 then : 18746 printf %s "(cached) " >&6 18747 else case e in #( 18748 e) lt_cv_shlibpath_overrides_runpath=no 18749 save_LDFLAGS=$LDFLAGS 18750 save_libdir=$libdir 18751 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18752 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18754 /* end confdefs.h. */ 18755 18756 int 18757 main (void) 18758 { 18759 18760 ; 18761 return 0; 18762 } 18763 _ACEOF 18764 if ac_fn_c_try_link "$LINENO" 18765 then : 18766 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18767 then : 18768 lt_cv_shlibpath_overrides_runpath=yes 18769 fi 18770 fi 18771 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18772 conftest$ac_exeext conftest.$ac_ext 18773 LDFLAGS=$save_LDFLAGS 18774 libdir=$save_libdir 18775 ;; 18776 esac 18777 fi 18778 18779 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18780 18781 # This implies no fast_install, which is unacceptable. 18782 # Some rework will be needed to allow for fast_install 18783 # before this can be enabled. 18784 hardcode_into_libs=yes 18785 18786 # Ideally, we could use ldconfig to report *all* directories which are 18787 # searched for libraries, however this is still not possible. Aside from not 18788 # being certain /sbin/ldconfig is available, command 18789 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18790 # even though it is searched at run-time. Try to do the best guess by 18791 # appending ld.so.conf contents (and includes) to the search path. 18792 if test -f /etc/ld.so.conf; then 18793 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' ' '` 18794 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18795 fi 18796 18797 # We used to test for /lib/ld.so.1 and disable shared libraries on 18798 # powerpc, because MkLinux only supported shared libraries with the 18799 # GNU dynamic linker. Since this was broken with cross compilers, 18800 # most powerpc-linux boxes support dynamic linking these days and 18801 # people can always --disable-shared, the test was removed, and we 18802 # assume the GNU/Linux dynamic linker is in use. 18803 dynamic_linker='GNU/Linux ld.so' 18804 ;; 18805 18806 netbsdelf*-gnu) 18807 version_type=linux 18808 need_lib_prefix=no 18809 need_version=no 18810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18811 soname_spec='$libname$release$shared_ext$major' 18812 shlibpath_var=LD_LIBRARY_PATH 18813 shlibpath_overrides_runpath=no 18814 hardcode_into_libs=yes 18815 dynamic_linker='NetBSD ld.elf_so' 18816 ;; 18817 18818 netbsd*) 18819 version_type=sunos 18820 need_lib_prefix=no 18821 need_version=no 18822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18825 dynamic_linker='NetBSD (a.out) ld.so' 18826 else 18827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18828 soname_spec='$libname$release$shared_ext$major' 18829 dynamic_linker='NetBSD ld.elf_so' 18830 fi 18831 shlibpath_var=LD_LIBRARY_PATH 18832 shlibpath_overrides_runpath=yes 18833 hardcode_into_libs=yes 18834 ;; 18835 18836 *-mlibc) 18837 version_type=linux # correct to gnu/linux during the next big refactor 18838 need_lib_prefix=no 18839 need_version=no 18840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18841 soname_spec='$libname$release$shared_ext$major' 18842 dynamic_linker='mlibc ld.so' 18843 shlibpath_var=LD_LIBRARY_PATH 18844 shlibpath_overrides_runpath=no 18845 hardcode_into_libs=yes 18846 ;; 18847 18848 newsos6) 18849 version_type=linux # correct to gnu/linux during the next big refactor 18850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18851 shlibpath_var=LD_LIBRARY_PATH 18852 shlibpath_overrides_runpath=yes 18853 ;; 18854 18855 *nto* | *qnx*) 18856 version_type=qnx 18857 need_lib_prefix=no 18858 need_version=no 18859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18860 soname_spec='$libname$release$shared_ext$major' 18861 shlibpath_var=LD_LIBRARY_PATH 18862 shlibpath_overrides_runpath=no 18863 hardcode_into_libs=yes 18864 dynamic_linker='ldqnx.so' 18865 ;; 18866 18867 openbsd*) 18868 version_type=sunos 18869 sys_lib_dlsearch_path_spec=/usr/lib 18870 need_lib_prefix=no 18871 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18872 need_version=no 18873 else 18874 need_version=yes 18875 fi 18876 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18878 shlibpath_var=LD_LIBRARY_PATH 18879 shlibpath_overrides_runpath=yes 18880 ;; 18881 18882 os2*) 18883 libname_spec='$name' 18884 version_type=windows 18885 shrext_cmds=.dll 18886 need_version=no 18887 need_lib_prefix=no 18888 # OS/2 can only load a DLL with a base name of 8 characters or less. 18889 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18890 v=$($ECHO $release$versuffix | tr -d .-); 18891 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18892 $ECHO $n$v`$shared_ext' 18893 library_names_spec='${libname}_dll.$libext' 18894 dynamic_linker='OS/2 ld.exe' 18895 shlibpath_var=BEGINLIBPATH 18896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18898 postinstall_cmds='base_file=`basename \$file`~ 18899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18900 dldir=$destdir/`dirname \$dlpath`~ 18901 test -d \$dldir || mkdir -p \$dldir~ 18902 $install_prog $dir/$dlname \$dldir/$dlname~ 18903 chmod a+x \$dldir/$dlname~ 18904 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18905 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18906 fi' 18907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18908 dlpath=$dir/\$dldll~ 18909 $RM \$dlpath' 18910 ;; 18911 18912 osf3* | osf4* | osf5*) 18913 version_type=osf 18914 need_lib_prefix=no 18915 need_version=no 18916 soname_spec='$libname$release$shared_ext$major' 18917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18918 shlibpath_var=LD_LIBRARY_PATH 18919 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18921 ;; 18922 18923 rdos*) 18924 dynamic_linker=no 18925 ;; 18926 18927 serenity*) 18928 version_type=linux # correct to gnu/linux during the next big refactor 18929 need_lib_prefix=no 18930 need_version=no 18931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18932 soname_spec='$libname$release$shared_ext$major' 18933 shlibpath_var=LD_LIBRARY_PATH 18934 shlibpath_overrides_runpath=no 18935 dynamic_linker='SerenityOS LibELF' 18936 ;; 18937 18938 solaris*) 18939 version_type=linux # correct to gnu/linux during the next big refactor 18940 need_lib_prefix=no 18941 need_version=no 18942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18943 soname_spec='$libname$release$shared_ext$major' 18944 shlibpath_var=LD_LIBRARY_PATH 18945 shlibpath_overrides_runpath=yes 18946 hardcode_into_libs=yes 18947 # ldd complains unless libraries are executable 18948 postinstall_cmds='chmod +x $lib' 18949 ;; 18950 18951 sunos4*) 18952 version_type=sunos 18953 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18954 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18955 shlibpath_var=LD_LIBRARY_PATH 18956 shlibpath_overrides_runpath=yes 18957 if test yes = "$with_gnu_ld"; then 18958 need_lib_prefix=no 18959 fi 18960 need_version=yes 18961 ;; 18962 18963 sysv4 | sysv4.3*) 18964 version_type=linux # correct to gnu/linux during the next big refactor 18965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18966 soname_spec='$libname$release$shared_ext$major' 18967 shlibpath_var=LD_LIBRARY_PATH 18968 case $host_vendor in 18969 sni) 18970 shlibpath_overrides_runpath=no 18971 need_lib_prefix=no 18972 runpath_var=LD_RUN_PATH 18973 ;; 18974 siemens) 18975 need_lib_prefix=no 18976 ;; 18977 motorola) 18978 need_lib_prefix=no 18979 need_version=no 18980 shlibpath_overrides_runpath=no 18981 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18982 ;; 18983 esac 18984 ;; 18985 18986 sysv4*MP*) 18987 if test -d /usr/nec; then 18988 version_type=linux # correct to gnu/linux during the next big refactor 18989 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18990 soname_spec='$libname$shared_ext.$major' 18991 shlibpath_var=LD_LIBRARY_PATH 18992 fi 18993 ;; 18994 18995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18996 version_type=sco 18997 need_lib_prefix=no 18998 need_version=no 18999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 19000 soname_spec='$libname$release$shared_ext$major' 19001 shlibpath_var=LD_LIBRARY_PATH 19002 shlibpath_overrides_runpath=yes 19003 hardcode_into_libs=yes 19004 if test yes = "$with_gnu_ld"; then 19005 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19006 else 19007 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19008 case $host_os in 19009 sco3.2v5*) 19010 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19011 ;; 19012 esac 19013 fi 19014 sys_lib_dlsearch_path_spec='/usr/lib' 19015 ;; 19016 19017 tpf*) 19018 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 19019 version_type=linux # correct to gnu/linux during the next big refactor 19020 need_lib_prefix=no 19021 need_version=no 19022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19023 shlibpath_var=LD_LIBRARY_PATH 19024 shlibpath_overrides_runpath=no 19025 hardcode_into_libs=yes 19026 ;; 19027 19028 uts4*) 19029 version_type=linux # correct to gnu/linux during the next big refactor 19030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19031 soname_spec='$libname$release$shared_ext$major' 19032 shlibpath_var=LD_LIBRARY_PATH 19033 ;; 19034 19035 emscripten*) 19036 version_type=none 19037 need_lib_prefix=no 19038 need_version=no 19039 library_names_spec='$libname$release$shared_ext' 19040 soname_spec='$libname$release$shared_ext' 19041 finish_cmds= 19042 dynamic_linker="Emscripten linker" 19043 lt_prog_compiler_wl= 19044 lt_prog_compiler_pic= 19045 lt_prog_compiler_static= 19046 19047 19048 if test yes = "$GCC"; then 19049 lt_prog_compiler_wl='-Wl,' 19050 lt_prog_compiler_static='-static' 19051 19052 case $host_os in 19053 aix*) 19054 # All AIX code is PIC. 19055 if test ia64 = "$host_cpu"; then 19056 # AIX 5 now supports IA64 processor 19057 lt_prog_compiler_static='-Bstatic' 19058 fi 19059 lt_prog_compiler_pic='-fPIC' 19060 ;; 19061 19062 amigaos*) 19063 case $host_cpu in 19064 powerpc) 19065 # see comment about AmigaOS4 .so support 19066 lt_prog_compiler_pic='-fPIC' 19067 ;; 19068 m68k) 19069 # FIXME: we need at least 68020 code to build shared libraries, but 19070 # adding the '-m68020' flag to GCC prevents building anything better, 19071 # like '-m68040'. 19072 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 19073 ;; 19074 esac 19075 ;; 19076 19077 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19078 # PIC is the default for these OSes. 19079 ;; 19080 19081 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 19082 # This hack is so that the source file can tell whether it is being 19083 # built for inclusion in a dll (and should export symbols for example). 19084 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19085 # (--disable-auto-import) libraries 19086 lt_prog_compiler_pic='-DDLL_EXPORT' 19087 case $host_os in 19088 os2*) 19089 lt_prog_compiler_static='$wl-static' 19090 ;; 19091 esac 19092 ;; 19093 19094 darwin* | rhapsody*) 19095 # PIC is the default on this platform 19096 # Common symbols not allowed in MH_DYLIB files 19097 lt_prog_compiler_pic='-fno-common' 19098 ;; 19099 19100 haiku*) 19101 # PIC is the default for Haiku. 19102 # The "-static" flag exists, but is broken. 19103 lt_prog_compiler_static= 19104 ;; 19105 19106 hpux*) 19107 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19108 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19109 # sets the default TLS model and affects inlining. 19110 case $host_cpu in 19111 hppa*64*) 19112 # +Z the default 19113 ;; 19114 *) 19115 lt_prog_compiler_pic='-fPIC' 19116 ;; 19117 esac 19118 ;; 19119 19120 interix[3-9]*) 19121 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19122 # Instead, we relocate shared libraries at runtime. 19123 ;; 19124 19125 msdosdjgpp*) 19126 # Just because we use GCC doesn't mean we suddenly get shared libraries 19127 # on systems that don't support them. 19128 lt_prog_compiler_can_build_shared=no 19129 enable_shared=no 19130 ;; 19131 19132 *nto* | *qnx*) 19133 # QNX uses GNU C++, but need to define -shared option too, otherwise 19134 # it will coredump. 19135 lt_prog_compiler_pic='-fPIC -shared' 19136 ;; 19137 19138 sysv4*MP*) 19139 if test -d /usr/nec; then 19140 lt_prog_compiler_pic=-Kconform_pic 19141 fi 19142 ;; 19143 19144 *) 19145 lt_prog_compiler_pic='-fPIC' 19146 ;; 19147 esac 19148 19149 case $cc_basename in 19150 nvcc*) # Cuda Compiler Driver 2.2 19151 lt_prog_compiler_wl='-Xlinker ' 19152 if test -n "$lt_prog_compiler_pic"; then 19153 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 19154 fi 19155 ;; 19156 esac 19157 else 19158 # PORTME Check for flag to pass linker flags through the system compiler. 19159 case $host_os in 19160 aix*) 19161 lt_prog_compiler_wl='-Wl,' 19162 if test ia64 = "$host_cpu"; then 19163 # AIX 5 now supports IA64 processor 19164 lt_prog_compiler_static='-Bstatic' 19165 else 19166 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 19167 fi 19168 ;; 19169 19170 darwin* | rhapsody*) 19171 # PIC is the default on this platform 19172 # Common symbols not allowed in MH_DYLIB files 19173 lt_prog_compiler_pic='-fno-common' 19174 case $cc_basename in 19175 nagfor*) 19176 # NAG Fortran compiler 19177 lt_prog_compiler_wl='-Wl,-Wl,,' 19178 lt_prog_compiler_pic='-PIC' 19179 lt_prog_compiler_static='-Bstatic' 19180 ;; 19181 esac 19182 ;; 19183 19184 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 19185 # This hack is so that the source file can tell whether it is being 19186 # built for inclusion in a dll (and should export symbols for example). 19187 lt_prog_compiler_pic='-DDLL_EXPORT' 19188 case $host_os in 19189 os2*) 19190 lt_prog_compiler_static='$wl-static' 19191 ;; 19192 esac 19193 ;; 19194 19195 hpux9* | hpux10* | hpux11*) 19196 lt_prog_compiler_wl='-Wl,' 19197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19198 # not for PA HP-UX. 19199 case $host_cpu in 19200 hppa*64*|ia64*) 19201 # +Z the default 19202 ;; 19203 *) 19204 lt_prog_compiler_pic='+Z' 19205 ;; 19206 esac 19207 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19208 lt_prog_compiler_static='$wl-a ${wl}archive' 19209 ;; 19210 19211 irix5* | irix6* | nonstopux*) 19212 lt_prog_compiler_wl='-Wl,' 19213 # PIC (with -KPIC) is the default. 19214 lt_prog_compiler_static='-non_shared' 19215 ;; 19216 19217 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19218 case $cc_basename in 19219 # old Intel for x86_64, which still supported -KPIC. 19220 ecc*) 19221 lt_prog_compiler_wl='-Wl,' 19222 lt_prog_compiler_pic='-KPIC' 19223 lt_prog_compiler_static='-static' 19224 ;; 19225 *flang* | ftn | f18* | f95*) 19226 # Flang compiler. 19227 lt_prog_compiler_wl='-Wl,' 19228 lt_prog_compiler_pic='-fPIC' 19229 lt_prog_compiler_static='-static' 19230 ;; 19231 # icc used to be incompatible with GCC. 19232 # ICC 10 doesn't accept -KPIC any more. 19233 icc* | ifort*) 19234 lt_prog_compiler_wl='-Wl,' 19235 lt_prog_compiler_pic='-fPIC' 19236 lt_prog_compiler_static='-static' 19237 ;; 19238 # Lahey Fortran 8.1. 19239 lf95*) 19240 lt_prog_compiler_wl='-Wl,' 19241 lt_prog_compiler_pic='--shared' 19242 lt_prog_compiler_static='--static' 19243 ;; 19244 nagfor*) 19245 # NAG Fortran compiler 19246 lt_prog_compiler_wl='-Wl,-Wl,,' 19247 lt_prog_compiler_pic='-PIC' 19248 lt_prog_compiler_static='-Bstatic' 19249 ;; 19250 tcc*) 19251 # Fabrice Bellard et al's Tiny C Compiler 19252 lt_prog_compiler_wl='-Wl,' 19253 lt_prog_compiler_pic='-fPIC' 19254 lt_prog_compiler_static='-static' 19255 ;; 19256 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 19257 # Portland Group compilers (*not* the Pentium gcc compiler, 19258 # which looks to be a dead project) 19259 lt_prog_compiler_wl='-Wl,' 19260 lt_prog_compiler_pic='-fpic' 19261 lt_prog_compiler_static='-Bstatic' 19262 ;; 19263 ccc*) 19264 lt_prog_compiler_wl='-Wl,' 19265 # All Alpha code is PIC. 19266 lt_prog_compiler_static='-non_shared' 19267 ;; 19268 xl* | bgxl* | bgf* | mpixl*) 19269 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 19270 lt_prog_compiler_wl='-Wl,' 19271 lt_prog_compiler_pic='-qpic' 19272 lt_prog_compiler_static='-qstaticlink' 19273 ;; 19274 *) 19275 case `$CC -V 2>&1 | $SED 5q` in 19276 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 19277 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19278 lt_prog_compiler_pic='-KPIC' 19279 lt_prog_compiler_static='-Bstatic' 19280 lt_prog_compiler_wl='' 19281 ;; 19282 *Sun\ F* | *Sun*Fortran*) 19283 lt_prog_compiler_pic='-KPIC' 19284 lt_prog_compiler_static='-Bstatic' 19285 lt_prog_compiler_wl='-Qoption ld ' 19286 ;; 19287 *Sun\ C*) 19288 # Sun C 5.9 19289 lt_prog_compiler_pic='-KPIC' 19290 lt_prog_compiler_static='-Bstatic' 19291 lt_prog_compiler_wl='-Wl,' 19292 ;; 19293 *Intel*\ [CF]*Compiler*) 19294 lt_prog_compiler_wl='-Wl,' 19295 lt_prog_compiler_pic='-fPIC' 19296 lt_prog_compiler_static='-static' 19297 ;; 19298 *Portland\ Group*) 19299 lt_prog_compiler_wl='-Wl,' 19300 lt_prog_compiler_pic='-fpic' 19301 lt_prog_compiler_static='-Bstatic' 19302 ;; 19303 esac 19304 ;; 19305 esac 19306 ;; 19307 19308 newsos6) 19309 lt_prog_compiler_pic='-KPIC' 19310 lt_prog_compiler_static='-Bstatic' 19311 ;; 19312 19313 *-mlibc) 19314 lt_prog_compiler_wl='-Wl,' 19315 lt_prog_compiler_pic='-fPIC' 19316 lt_prog_compiler_static='-static' 19317 ;; 19318 19319 *nto* | *qnx*) 19320 # QNX uses GNU C++, but need to define -shared option too, otherwise 19321 # it will coredump. 19322 lt_prog_compiler_pic='-fPIC -shared' 19323 ;; 19324 19325 osf3* | osf4* | osf5*) 19326 lt_prog_compiler_wl='-Wl,' 19327 # All OSF/1 code is PIC. 19328 lt_prog_compiler_static='-non_shared' 19329 ;; 19330 19331 rdos*) 19332 lt_prog_compiler_static='-non_shared' 19333 ;; 19334 19335 serenity*) 19336 ;; 19337 19338 solaris*) 19339 lt_prog_compiler_pic='-KPIC' 19340 lt_prog_compiler_static='-Bstatic' 19341 case $cc_basename in 19342 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 19343 lt_prog_compiler_wl='-Qoption ld ';; 19344 *) 19345 lt_prog_compiler_wl='-Wl,';; 19346 esac 19347 ;; 19348 19349 sunos4*) 19350 lt_prog_compiler_wl='-Qoption ld ' 19351 lt_prog_compiler_pic='-PIC' 19352 lt_prog_compiler_static='-Bstatic' 19353 ;; 19354 19355 sysv4 | sysv4.2uw2* | sysv4.3*) 19356 lt_prog_compiler_wl='-Wl,' 19357 lt_prog_compiler_pic='-KPIC' 19358 lt_prog_compiler_static='-Bstatic' 19359 ;; 19360 19361 sysv4*MP*) 19362 if test -d /usr/nec; then 19363 lt_prog_compiler_pic='-Kconform_pic' 19364 lt_prog_compiler_static='-Bstatic' 19365 fi 19366 ;; 19367 19368 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19369 lt_prog_compiler_wl='-Wl,' 19370 lt_prog_compiler_pic='-KPIC' 19371 lt_prog_compiler_static='-Bstatic' 19372 ;; 19373 19374 unicos*) 19375 lt_prog_compiler_wl='-Wl,' 19376 lt_prog_compiler_can_build_shared=no 19377 ;; 19378 19379 uts4*) 19380 lt_prog_compiler_pic='-pic' 19381 lt_prog_compiler_static='-Bstatic' 19382 ;; 19383 19384 *) 19385 lt_prog_compiler_can_build_shared=no 19386 ;; 19387 esac 19388 fi 19389 19390 case $host_os in 19391 # For platforms that do not support PIC, -DPIC is meaningless: 19392 *djgpp*) 19393 lt_prog_compiler_pic= 19394 ;; 19395 *) 19396 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 19397 ;; 19398 esac 19399 19400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19401 printf %s "checking for $compiler option to produce PIC... " >&6; } 19402 if test ${lt_cv_prog_compiler_pic+y} 19403 then : 19404 printf %s "(cached) " >&6 19405 else case e in #( 19406 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 19407 esac 19408 fi 19409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 19410 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 19411 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 19412 19413 # 19414 # Check to make sure the PIC flag actually works. 19415 # 19416 if test -n "$lt_prog_compiler_pic"; then 19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 19418 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 19419 if test ${lt_cv_prog_compiler_pic_works+y} 19420 then : 19421 printf %s "(cached) " >&6 19422 else case e in #( 19423 e) lt_cv_prog_compiler_pic_works=no 19424 ac_outfile=conftest.$ac_objext 19425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19426 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 19427 # Insert the option either (1) after the last *FLAGS variable, or 19428 # (2) before a word containing "conftest.", or (3) at the end. 19429 # Note that $ac_compile itself does not contain backslashes and begins 19430 # with a dollar sign (not a hyphen), so the echo should work correctly. 19431 # The option is referenced via a variable to avoid confusing sed. 19432 lt_compile=`echo "$ac_compile" | $SED \ 19433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19435 -e 's:$: $lt_compiler_flag:'` 19436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19437 (eval "$lt_compile" 2>conftest.err) 19438 ac_status=$? 19439 cat conftest.err >&5 19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19441 if (exit $ac_status) && test -s "$ac_outfile"; then 19442 # The compiler can only warn and ignore the option if not recognized 19443 # So say no if there are warnings other than the usual output. 19444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19447 lt_cv_prog_compiler_pic_works=yes 19448 fi 19449 fi 19450 $RM conftest* 19451 ;; 19452 esac 19453 fi 19454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 19455 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 19456 19457 if test yes = "$lt_cv_prog_compiler_pic_works"; then 19458 case $lt_prog_compiler_pic in 19459 "" | " "*) ;; 19460 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 19461 esac 19462 else 19463 lt_prog_compiler_pic= 19464 lt_prog_compiler_can_build_shared=no 19465 fi 19466 19467 fi 19468 19469 19470 19471 19472 19473 # 19474 # Check to make sure the static flag actually works. 19475 # 19476 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19478 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19479 if test ${lt_cv_prog_compiler_static_works+y} 19480 then : 19481 printf %s "(cached) " >&6 19482 else case e in #( 19483 e) lt_cv_prog_compiler_static_works=no 19484 save_LDFLAGS=$LDFLAGS 19485 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19486 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19487 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19488 # The linker can only warn and ignore the option if not recognized 19489 # So say no if there are warnings 19490 if test -s conftest.err; then 19491 # Append any errors to the config.log. 19492 cat conftest.err 1>&5 19493 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19494 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19495 if diff conftest.exp conftest.er2 >/dev/null; then 19496 lt_cv_prog_compiler_static_works=yes 19497 fi 19498 else 19499 lt_cv_prog_compiler_static_works=yes 19500 fi 19501 fi 19502 $RM -r conftest* 19503 LDFLAGS=$save_LDFLAGS 19504 ;; 19505 esac 19506 fi 19507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 19508 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 19509 19510 if test yes = "$lt_cv_prog_compiler_static_works"; then 19511 : 19512 else 19513 lt_prog_compiler_static= 19514 fi 19515 19516 19517 19518 ='-fPIC' 19519 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 19520 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 19521 archive_cmds_need_lc=no 19522 no_undefined_flag= 19523 ;; 19524 19525 *) 19526 dynamic_linker=no 19527 ;; 19528 esac 19529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19530 printf "%s\n" "$dynamic_linker" >&6; } 19531 test no = "$dynamic_linker" && can_build_shared=no 19532 19533 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19534 if test yes = "$GCC"; then 19535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19536 fi 19537 19538 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 19539 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 19540 fi 19541 19542 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 19543 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 19544 fi 19545 19546 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 19547 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 19548 19549 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 19550 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 19551 19552 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 19553 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19652 printf %s "checking how to hardcode library paths into programs... " >&6; } 19653 hardcode_action= 19654 if test -n "$hardcode_libdir_flag_spec" || 19655 test -n "$runpath_var" || 19656 test yes = "$hardcode_automatic"; then 19657 19658 # We can hardcode non-existent directories. 19659 if test no != "$hardcode_direct" && 19660 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19661 # have to relink, otherwise we might link with an installed library 19662 # when we should be linking with a yet-to-be-installed one 19663 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 19664 test no != "$hardcode_minus_L"; then 19665 # Linking always hardcodes the temporary library directory. 19666 hardcode_action=relink 19667 else 19668 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19669 hardcode_action=immediate 19670 fi 19671 else 19672 # We cannot hardcode anything, or else we can only hardcode existing 19673 # directories. 19674 hardcode_action=unsupported 19675 fi 19676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19677 printf "%s\n" "$hardcode_action" >&6; } 19678 19679 if test relink = "$hardcode_action" || 19680 test yes = "$inherit_rpath"; then 19681 # Fast installation is not supported 19682 enable_fast_install=no 19683 elif test yes = "$shlibpath_overrides_runpath" || 19684 test no = "$enable_shared"; then 19685 # Fast installation is not necessary 19686 enable_fast_install=needless 19687 fi 19688 19689 19690 19691 19692 19693 19694 if test yes != "$enable_dlopen"; then 19695 enable_dlopen=unknown 19696 enable_dlopen_self=unknown 19697 enable_dlopen_self_static=unknown 19698 else 19699 lt_cv_dlopen=no 19700 lt_cv_dlopen_libs= 19701 19702 case $host_os in 19703 beos*) 19704 lt_cv_dlopen=load_add_on 19705 lt_cv_dlopen_libs= 19706 lt_cv_dlopen_self=yes 19707 ;; 19708 19709 mingw* | windows* | pw32* | cegcc*) 19710 lt_cv_dlopen=LoadLibrary 19711 lt_cv_dlopen_libs= 19712 ;; 19713 19714 cygwin*) 19715 lt_cv_dlopen=dlopen 19716 lt_cv_dlopen_libs= 19717 ;; 19718 19719 darwin*) 19720 # if libdl is installed we need to link against it 19721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19722 printf %s "checking for dlopen in -ldl... " >&6; } 19723 if test ${ac_cv_lib_dl_dlopen+y} 19724 then : 19725 printf %s "(cached) " >&6 19726 else case e in #( 19727 e) ac_check_lib_save_LIBS=$LIBS 19728 LIBS="-ldl $LIBS" 19729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19730 /* end confdefs.h. */ 19731 19732 /* Override any GCC internal prototype to avoid an error. 19733 Use char because int might match the return type of a GCC 19734 builtin and then its argument prototype would still apply. 19735 The 'extern "C"' is for builds by C++ compilers; 19736 although this is not generally supported in C code supporting it here 19737 has little cost and some practical benefit (sr 110532). */ 19738 #ifdef __cplusplus 19739 extern "C" 19740 #endif 19741 char dlopen (void); 19742 int 19743 main (void) 19744 { 19745 return dlopen (); 19746 ; 19747 return 0; 19748 } 19749 _ACEOF 19750 if ac_fn_c_try_link "$LINENO" 19751 then : 19752 ac_cv_lib_dl_dlopen=yes 19753 else case e in #( 19754 e) ac_cv_lib_dl_dlopen=no ;; 19755 esac 19756 fi 19757 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19758 conftest$ac_exeext conftest.$ac_ext 19759 LIBS=$ac_check_lib_save_LIBS ;; 19760 esac 19761 fi 19762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19763 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19764 if test "x$ac_cv_lib_dl_dlopen" = xyes 19765 then : 19766 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19767 else case e in #( 19768 e) 19769 lt_cv_dlopen=dyld 19770 lt_cv_dlopen_libs= 19771 lt_cv_dlopen_self=yes 19772 ;; 19773 esac 19774 fi 19775 19776 ;; 19777 19778 tpf*) 19779 # Don't try to run any link tests for TPF. We know it's impossible 19780 # because TPF is a cross-compiler, and we know how we open DSOs. 19781 lt_cv_dlopen=dlopen 19782 lt_cv_dlopen_libs= 19783 lt_cv_dlopen_self=no 19784 ;; 19785 19786 *) 19787 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19788 if test "x$ac_cv_func_shl_load" = xyes 19789 then : 19790 lt_cv_dlopen=shl_load 19791 else case e in #( 19792 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19793 printf %s "checking for shl_load in -ldld... " >&6; } 19794 if test ${ac_cv_lib_dld_shl_load+y} 19795 then : 19796 printf %s "(cached) " >&6 19797 else case e in #( 19798 e) ac_check_lib_save_LIBS=$LIBS 19799 LIBS="-ldld $LIBS" 19800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19801 /* end confdefs.h. */ 19802 19803 /* Override any GCC internal prototype to avoid an error. 19804 Use char because int might match the return type of a GCC 19805 builtin and then its argument prototype would still apply. 19806 The 'extern "C"' is for builds by C++ compilers; 19807 although this is not generally supported in C code supporting it here 19808 has little cost and some practical benefit (sr 110532). */ 19809 #ifdef __cplusplus 19810 extern "C" 19811 #endif 19812 char shl_load (void); 19813 int 19814 main (void) 19815 { 19816 return shl_load (); 19817 ; 19818 return 0; 19819 } 19820 _ACEOF 19821 if ac_fn_c_try_link "$LINENO" 19822 then : 19823 ac_cv_lib_dld_shl_load=yes 19824 else case e in #( 19825 e) ac_cv_lib_dld_shl_load=no ;; 19826 esac 19827 fi 19828 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19829 conftest$ac_exeext conftest.$ac_ext 19830 LIBS=$ac_check_lib_save_LIBS ;; 19831 esac 19832 fi 19833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19834 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 19835 if test "x$ac_cv_lib_dld_shl_load" = xyes 19836 then : 19837 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19838 else case e in #( 19839 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19840 if test "x$ac_cv_func_dlopen" = xyes 19841 then : 19842 lt_cv_dlopen=dlopen 19843 else case e in #( 19844 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19845 printf %s "checking for dlopen in -ldl... " >&6; } 19846 if test ${ac_cv_lib_dl_dlopen+y} 19847 then : 19848 printf %s "(cached) " >&6 19849 else case e in #( 19850 e) ac_check_lib_save_LIBS=$LIBS 19851 LIBS="-ldl $LIBS" 19852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19853 /* end confdefs.h. */ 19854 19855 /* Override any GCC internal prototype to avoid an error. 19856 Use char because int might match the return type of a GCC 19857 builtin and then its argument prototype would still apply. 19858 The 'extern "C"' is for builds by C++ compilers; 19859 although this is not generally supported in C code supporting it here 19860 has little cost and some practical benefit (sr 110532). */ 19861 #ifdef __cplusplus 19862 extern "C" 19863 #endif 19864 char dlopen (void); 19865 int 19866 main (void) 19867 { 19868 return dlopen (); 19869 ; 19870 return 0; 19871 } 19872 _ACEOF 19873 if ac_fn_c_try_link "$LINENO" 19874 then : 19875 ac_cv_lib_dl_dlopen=yes 19876 else case e in #( 19877 e) ac_cv_lib_dl_dlopen=no ;; 19878 esac 19879 fi 19880 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19881 conftest$ac_exeext conftest.$ac_ext 19882 LIBS=$ac_check_lib_save_LIBS ;; 19883 esac 19884 fi 19885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19886 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19887 if test "x$ac_cv_lib_dl_dlopen" = xyes 19888 then : 19889 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19890 else case e in #( 19891 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19892 printf %s "checking for dlopen in -lsvld... " >&6; } 19893 if test ${ac_cv_lib_svld_dlopen+y} 19894 then : 19895 printf %s "(cached) " >&6 19896 else case e in #( 19897 e) ac_check_lib_save_LIBS=$LIBS 19898 LIBS="-lsvld $LIBS" 19899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19900 /* end confdefs.h. */ 19901 19902 /* Override any GCC internal prototype to avoid an error. 19903 Use char because int might match the return type of a GCC 19904 builtin and then its argument prototype would still apply. 19905 The 'extern "C"' is for builds by C++ compilers; 19906 although this is not generally supported in C code supporting it here 19907 has little cost and some practical benefit (sr 110532). */ 19908 #ifdef __cplusplus 19909 extern "C" 19910 #endif 19911 char dlopen (void); 19912 int 19913 main (void) 19914 { 19915 return dlopen (); 19916 ; 19917 return 0; 19918 } 19919 _ACEOF 19920 if ac_fn_c_try_link "$LINENO" 19921 then : 19922 ac_cv_lib_svld_dlopen=yes 19923 else case e in #( 19924 e) ac_cv_lib_svld_dlopen=no ;; 19925 esac 19926 fi 19927 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19928 conftest$ac_exeext conftest.$ac_ext 19929 LIBS=$ac_check_lib_save_LIBS ;; 19930 esac 19931 fi 19932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19933 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 19934 if test "x$ac_cv_lib_svld_dlopen" = xyes 19935 then : 19936 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19937 else case e in #( 19938 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19939 printf %s "checking for dld_link in -ldld... " >&6; } 19940 if test ${ac_cv_lib_dld_dld_link+y} 19941 then : 19942 printf %s "(cached) " >&6 19943 else case e in #( 19944 e) ac_check_lib_save_LIBS=$LIBS 19945 LIBS="-ldld $LIBS" 19946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19947 /* end confdefs.h. */ 19948 19949 /* Override any GCC internal prototype to avoid an error. 19950 Use char because int might match the return type of a GCC 19951 builtin and then its argument prototype would still apply. 19952 The 'extern "C"' is for builds by C++ compilers; 19953 although this is not generally supported in C code supporting it here 19954 has little cost and some practical benefit (sr 110532). */ 19955 #ifdef __cplusplus 19956 extern "C" 19957 #endif 19958 char dld_link (void); 19959 int 19960 main (void) 19961 { 19962 return dld_link (); 19963 ; 19964 return 0; 19965 } 19966 _ACEOF 19967 if ac_fn_c_try_link "$LINENO" 19968 then : 19969 ac_cv_lib_dld_dld_link=yes 19970 else case e in #( 19971 e) ac_cv_lib_dld_dld_link=no ;; 19972 esac 19973 fi 19974 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19975 conftest$ac_exeext conftest.$ac_ext 19976 LIBS=$ac_check_lib_save_LIBS ;; 19977 esac 19978 fi 19979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19980 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 19981 if test "x$ac_cv_lib_dld_dld_link" = xyes 19982 then : 19983 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19984 fi 19985 19986 ;; 19987 esac 19988 fi 19989 19990 ;; 19991 esac 19992 fi 19993 19994 ;; 19995 esac 19996 fi 19997 19998 ;; 19999 esac 20000 fi 20001 20002 ;; 20003 esac 20004 fi 20005 20006 ;; 20007 esac 20008 20009 if test no = "$lt_cv_dlopen"; then 20010 enable_dlopen=no 20011 else 20012 enable_dlopen=yes 20013 fi 20014 20015 case $lt_cv_dlopen in 20016 dlopen) 20017 save_CPPFLAGS=$CPPFLAGS 20018 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20019 20020 save_LDFLAGS=$LDFLAGS 20021 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20022 20023 save_LIBS=$LIBS 20024 LIBS="$lt_cv_dlopen_libs $LIBS" 20025 20026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 20027 printf %s "checking whether a program can dlopen itself... " >&6; } 20028 if test ${lt_cv_dlopen_self+y} 20029 then : 20030 printf %s "(cached) " >&6 20031 else case e in #( 20032 e) if test yes = "$cross_compiling"; then : 20033 lt_cv_dlopen_self=cross 20034 else 20035 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20036 lt_status=$lt_dlunknown 20037 cat > conftest.$ac_ext <<_LT_EOF 20038 #line $LINENO "configure" 20039 #include "confdefs.h" 20040 20041 #if HAVE_DLFCN_H 20042 #include <dlfcn.h> 20043 #endif 20044 20045 #include <stdio.h> 20046 20047 #ifdef RTLD_GLOBAL 20048 # define LT_DLGLOBAL RTLD_GLOBAL 20049 #else 20050 # ifdef DL_GLOBAL 20051 # define LT_DLGLOBAL DL_GLOBAL 20052 # else 20053 # define LT_DLGLOBAL 0 20054 # endif 20055 #endif 20056 20057 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20058 find out it does not work in some platform. */ 20059 #ifndef LT_DLLAZY_OR_NOW 20060 # ifdef RTLD_LAZY 20061 # define LT_DLLAZY_OR_NOW RTLD_LAZY 20062 # else 20063 # ifdef DL_LAZY 20064 # define LT_DLLAZY_OR_NOW DL_LAZY 20065 # else 20066 # ifdef RTLD_NOW 20067 # define LT_DLLAZY_OR_NOW RTLD_NOW 20068 # else 20069 # ifdef DL_NOW 20070 # define LT_DLLAZY_OR_NOW DL_NOW 20071 # else 20072 # define LT_DLLAZY_OR_NOW 0 20073 # endif 20074 # endif 20075 # endif 20076 # endif 20077 #endif 20078 20079 /* When -fvisibility=hidden is used, assume the code has been annotated 20080 correspondingly for the symbols needed. */ 20081 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20082 int fnord (void) __attribute__((visibility("default"))); 20083 #endif 20084 20085 int fnord (void) { return 42; } 20086 int main (void) 20087 { 20088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20089 int status = $lt_dlunknown; 20090 20091 if (self) 20092 { 20093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20094 else 20095 { 20096 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20097 else puts (dlerror ()); 20098 } 20099 /* dlclose (self); */ 20100 } 20101 else 20102 puts (dlerror ()); 20103 20104 return status; 20105 } 20106 _LT_EOF 20107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20108 (eval $ac_link) 2>&5 20109 ac_status=$? 20110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20111 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20112 (./conftest; exit; ) >&5 2>/dev/null 20113 lt_status=$? 20114 case x$lt_status in 20115 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20116 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20117 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 20118 esac 20119 else : 20120 # compilation failed 20121 lt_cv_dlopen_self=no 20122 fi 20123 fi 20124 rm -fr conftest* 20125 20126 ;; 20127 esac 20128 fi 20129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 20130 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 20131 20132 if test yes = "$lt_cv_dlopen_self"; then 20133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 20134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 20135 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 20136 if test ${lt_cv_dlopen_self_static+y} 20137 then : 20138 printf %s "(cached) " >&6 20139 else case e in #( 20140 e) if test yes = "$cross_compiling"; then : 20141 lt_cv_dlopen_self_static=cross 20142 else 20143 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20144 lt_status=$lt_dlunknown 20145 cat > conftest.$ac_ext <<_LT_EOF 20146 #line $LINENO "configure" 20147 #include "confdefs.h" 20148 20149 #if HAVE_DLFCN_H 20150 #include <dlfcn.h> 20151 #endif 20152 20153 #include <stdio.h> 20154 20155 #ifdef RTLD_GLOBAL 20156 # define LT_DLGLOBAL RTLD_GLOBAL 20157 #else 20158 # ifdef DL_GLOBAL 20159 # define LT_DLGLOBAL DL_GLOBAL 20160 # else 20161 # define LT_DLGLOBAL 0 20162 # endif 20163 #endif 20164 20165 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20166 find out it does not work in some platform. */ 20167 #ifndef LT_DLLAZY_OR_NOW 20168 # ifdef RTLD_LAZY 20169 # define LT_DLLAZY_OR_NOW RTLD_LAZY 20170 # else 20171 # ifdef DL_LAZY 20172 # define LT_DLLAZY_OR_NOW DL_LAZY 20173 # else 20174 # ifdef RTLD_NOW 20175 # define LT_DLLAZY_OR_NOW RTLD_NOW 20176 # else 20177 # ifdef DL_NOW 20178 # define LT_DLLAZY_OR_NOW DL_NOW 20179 # else 20180 # define LT_DLLAZY_OR_NOW 0 20181 # endif 20182 # endif 20183 # endif 20184 # endif 20185 #endif 20186 20187 /* When -fvisibility=hidden is used, assume the code has been annotated 20188 correspondingly for the symbols needed. */ 20189 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20190 int fnord (void) __attribute__((visibility("default"))); 20191 #endif 20192 20193 int fnord (void) { return 42; } 20194 int main (void) 20195 { 20196 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20197 int status = $lt_dlunknown; 20198 20199 if (self) 20200 { 20201 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20202 else 20203 { 20204 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20205 else puts (dlerror ()); 20206 } 20207 /* dlclose (self); */ 20208 } 20209 else 20210 puts (dlerror ()); 20211 20212 return status; 20213 } 20214 _LT_EOF 20215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20216 (eval $ac_link) 2>&5 20217 ac_status=$? 20218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20219 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20220 (./conftest; exit; ) >&5 2>/dev/null 20221 lt_status=$? 20222 case x$lt_status in 20223 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 20224 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 20225 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 20226 esac 20227 else : 20228 # compilation failed 20229 lt_cv_dlopen_self_static=no 20230 fi 20231 fi 20232 rm -fr conftest* 20233 20234 ;; 20235 esac 20236 fi 20237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 20238 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 20239 fi 20240 20241 CPPFLAGS=$save_CPPFLAGS 20242 LDFLAGS=$save_LDFLAGS 20243 LIBS=$save_LIBS 20244 ;; 20245 esac 20246 20247 case $lt_cv_dlopen_self in 20248 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 20249 *) enable_dlopen_self=unknown ;; 20250 esac 20251 20252 case $lt_cv_dlopen_self_static in 20253 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 20254 *) enable_dlopen_self_static=unknown ;; 20255 esac 20256 fi 20257 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 striplib= 20275 old_striplib= 20276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 20277 printf %s "checking whether stripping libraries is possible... " >&6; } 20278 if test -z "$STRIP"; then 20279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20280 printf "%s\n" "no" >&6; } 20281 else 20282 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 20283 old_striplib="$STRIP --strip-debug" 20284 striplib="$STRIP --strip-unneeded" 20285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20286 printf "%s\n" "yes" >&6; } 20287 else 20288 case $host_os in 20289 darwin*) 20290 # FIXME - insert some real tests, host_os isn't really good enough 20291 striplib="$STRIP -x" 20292 old_striplib="$STRIP -S" 20293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20294 printf "%s\n" "yes" >&6; } 20295 ;; 20296 freebsd*) 20297 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 20298 old_striplib="$STRIP --strip-debug" 20299 striplib="$STRIP --strip-unneeded" 20300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20301 printf "%s\n" "yes" >&6; } 20302 else 20303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20304 printf "%s\n" "no" >&6; } 20305 fi 20306 ;; 20307 *) 20308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20309 printf "%s\n" "no" >&6; } 20310 ;; 20311 esac 20312 fi 20313 fi 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 # Report what library types will actually be built 20327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 20328 printf %s "checking if libtool supports shared libraries... " >&6; } 20329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 20330 printf "%s\n" "$can_build_shared" >&6; } 20331 20332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 20333 printf %s "checking whether to build shared libraries... " >&6; } 20334 test no = "$can_build_shared" && enable_shared=no 20335 20336 # On AIX, shared libraries and static libraries use the same namespace, and 20337 # are all built from PIC. 20338 case $host_os in 20339 aix3*) 20340 test yes = "$enable_shared" && enable_static=no 20341 if test -n "$RANLIB"; then 20342 archive_cmds="$archive_cmds~\$RANLIB \$lib" 20343 postinstall_cmds='$RANLIB $lib' 20344 fi 20345 ;; 20346 20347 aix[4-9]*) 20348 if test ia64 != "$host_cpu"; then 20349 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 20350 yes,aix,yes) ;; # shared object as lib.so file only 20351 yes,svr4,*) ;; # shared object as lib.so archive member only 20352 yes,*) enable_static=no ;; # shared object in lib.a archive as well 20353 esac 20354 fi 20355 ;; 20356 esac 20357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 20358 printf "%s\n" "$enable_shared" >&6; } 20359 20360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 20361 printf %s "checking whether to build static libraries... " >&6; } 20362 # Make sure either enable_shared or enable_static is yes. 20363 test yes = "$enable_shared" || enable_static=yes 20364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 20365 printf "%s\n" "$enable_static" >&6; } 20366 20367 20368 20369 20370 fi 20371 ac_ext=c 20372 ac_cpp='$CPP $CPPFLAGS' 20373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20375 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20376 20377 CC=$lt_save_CC 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 ac_config_commands="$ac_config_commands libtool" 20394 20395 20396 20397 20398 # Only expand once: 20399 20400 20401 20402 20403 20404 # Define a configure option for an alternate module directory 20405 20406 # Check whether --with-xorg-module-dir was given. 20407 if test ${with_xorg_module_dir+y} 20408 then : 20409 withval=$with_xorg_module_dir; moduledir="$withval" 20410 else case e in #( 20411 e) moduledir="$libdir/xorg/modules" ;; 20412 esac 20413 fi 20414 20415 20416 # Store the list of server defined optional extensions in REQUIRED_MODULES 20417 20418 20419 SAVE_CFLAGS="$CFLAGS" 20420 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 20421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20422 /* end confdefs.h. */ 20423 20424 #include "xorg-server.h" 20425 #if !defined RANDR 20426 #error RANDR not defined 20427 #endif 20428 20429 int 20430 main (void) 20431 { 20432 20433 ; 20434 return 0; 20435 } 20436 _ACEOF 20437 if ac_fn_c_try_compile "$LINENO" 20438 then : 20439 _EXT_CHECK=yes 20440 else case e in #( 20441 e) _EXT_CHECK=no ;; 20442 esac 20443 fi 20444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20445 CFLAGS="$SAVE_CFLAGS" 20446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 20447 printf %s "checking if RANDR is defined... " >&6; } 20448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20449 printf "%s\n" "$_EXT_CHECK" >&6; } 20450 if test "$_EXT_CHECK" != no; then 20451 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20452 fi 20453 20454 20455 20456 SAVE_CFLAGS="$CFLAGS" 20457 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 20458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20459 /* end confdefs.h. */ 20460 20461 #include "xorg-server.h" 20462 #if !defined RENDER 20463 #error RENDER not defined 20464 #endif 20465 20466 int 20467 main (void) 20468 { 20469 20470 ; 20471 return 0; 20472 } 20473 _ACEOF 20474 if ac_fn_c_try_compile "$LINENO" 20475 then : 20476 _EXT_CHECK=yes 20477 else case e in #( 20478 e) _EXT_CHECK=no ;; 20479 esac 20480 fi 20481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20482 CFLAGS="$SAVE_CFLAGS" 20483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 20484 printf %s "checking if RENDER is defined... " >&6; } 20485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20486 printf "%s\n" "$_EXT_CHECK" >&6; } 20487 if test "$_EXT_CHECK" != no; then 20488 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 20489 fi 20490 20491 20492 # Obtain compiler/linker options for the driver dependencies 20493 20494 pkg_failed=no 20495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 20496 printf %s "checking for XORG... " >&6; } 20497 20498 if test -n "$XORG_CFLAGS"; then 20499 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 20500 elif test -n "$PKG_CONFIG"; then 20501 if test -n "$PKG_CONFIG" && \ 20502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.18 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 20503 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES") 2>&5 20504 ac_status=$? 20505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20506 test $ac_status = 0; }; then 20507 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 20508 test "x$?" != "x0" && pkg_failed=yes 20509 else 20510 pkg_failed=yes 20511 fi 20512 else 20513 pkg_failed=untried 20514 fi 20515 if test -n "$XORG_LIBS"; then 20516 pkg_cv_XORG_LIBS="$XORG_LIBS" 20517 elif test -n "$PKG_CONFIG"; then 20518 if test -n "$PKG_CONFIG" && \ 20519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.18 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 20520 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES") 2>&5 20521 ac_status=$? 20522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20523 test $ac_status = 0; }; then 20524 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 20525 test "x$?" != "x0" && pkg_failed=yes 20526 else 20527 pkg_failed=yes 20528 fi 20529 else 20530 pkg_failed=untried 20531 fi 20532 20533 20534 20535 if test $pkg_failed = yes; then 20536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20537 printf "%s\n" "no" >&6; } 20538 20539 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20540 _pkg_short_errors_supported=yes 20541 else 20542 _pkg_short_errors_supported=no 20543 fi 20544 if test $_pkg_short_errors_supported = yes; then 20545 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>&1` 20546 else 20547 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>&1` 20548 fi 20549 # Put the nasty error message in config.log where it belongs 20550 echo "$XORG_PKG_ERRORS" >&5 20551 20552 as_fn_error $? "Package requirements (xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES) were not met: 20553 20554 $XORG_PKG_ERRORS 20555 20556 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20557 installed software in a non-standard prefix. 20558 20559 Alternatively, you may set the environment variables XORG_CFLAGS 20560 and XORG_LIBS to avoid the need to call pkg-config. 20561 See the pkg-config man page for more details." "$LINENO" 5 20562 elif test $pkg_failed = untried; then 20563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20564 printf "%s\n" "no" >&6; } 20565 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20566 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20567 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20568 is in your PATH or set the PKG_CONFIG environment variable to the full 20569 path to pkg-config. 20570 20571 Alternatively, you may set the environment variables XORG_CFLAGS 20572 and XORG_LIBS to avoid the need to call pkg-config. 20573 See the pkg-config man page for more details. 20574 20575 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20576 See 'config.log' for more details" "$LINENO" 5; } 20577 else 20578 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 20579 XORG_LIBS=$pkg_cv_XORG_LIBS 20580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20581 printf "%s\n" "yes" >&6; } 20582 20583 fi 20584 20585 # Checks for libraries. 20586 20587 # Checks for library functions 20588 # We don't use strlcat, strlcpy, or timingsafe_memcmp, but check to quiet 20589 # -Wredundant-decls warning from xorg/os.h which will otherwise redefine them. 20590 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20591 if test "x$ac_cv_func_strlcat" = xyes 20592 then : 20593 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 20594 20595 fi 20596 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20597 if test "x$ac_cv_func_strlcpy" = xyes 20598 then : 20599 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20600 20601 fi 20602 ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 20603 if test "x$ac_cv_func_timingsafe_memcmp" = xyes 20604 then : 20605 printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 20606 20607 fi 20608 20609 20610 20611 20612 DRIVER_NAME=suncg14 20613 20614 20615 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20616 20617 cat >confcache <<\_ACEOF 20618 # This file is a shell script that caches the results of configure 20619 # tests run on this system so they can be shared between configure 20620 # scripts and configure runs, see configure's option --config-cache. 20621 # It is not useful on other systems. If it contains results you don't 20622 # want to keep, you may remove or edit it. 20623 # 20624 # config.status only pays attention to the cache file if you give it 20625 # the --recheck option to rerun configure. 20626 # 20627 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 20628 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 20629 # following values. 20630 20631 _ACEOF 20632 20633 # The following way of writing the cache mishandles newlines in values, 20634 # but we know of no workaround that is simple, portable, and efficient. 20635 # So, we kill variables containing newlines. 20636 # Ultrix sh set writes to stderr and can't be redirected directly, 20637 # and sets the high bit in the cache file unless we assign to the vars. 20638 ( 20639 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20640 eval ac_val=\$$ac_var 20641 case $ac_val in #( 20642 *${as_nl}*) 20643 case $ac_var in #( 20644 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20645 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20646 esac 20647 case $ac_var in #( 20648 _ | IFS | as_nl) ;; #( 20649 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20650 *) { eval $ac_var=; unset $ac_var;} ;; 20651 esac ;; 20652 esac 20653 done 20654 20655 (set) 2>&1 | 20656 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20657 *${as_nl}ac_space=\ *) 20658 # 'set' does not quote correctly, so add quotes: double-quote 20659 # substitution turns \\\\ into \\, and sed turns \\ into \. 20660 sed -n \ 20661 "s/'/'\\\\''/g; 20662 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20663 ;; #( 20664 *) 20665 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20666 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20667 ;; 20668 esac | 20669 sort 20670 ) | 20671 sed ' 20672 /^ac_cv_env_/b end 20673 t clear 20674 :clear 20675 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20676 t end 20677 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20678 :end' >>confcache 20679 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20680 if test -w "$cache_file"; then 20681 if test "x$cache_file" != "x/dev/null"; then 20682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20683 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20684 if test ! -f "$cache_file" || test -h "$cache_file"; then 20685 cat confcache >"$cache_file" 20686 else 20687 case $cache_file in #( 20688 */* | ?:*) 20689 mv -f confcache "$cache_file"$$ && 20690 mv -f "$cache_file"$$ "$cache_file" ;; #( 20691 *) 20692 mv -f confcache "$cache_file" ;; 20693 esac 20694 fi 20695 fi 20696 else 20697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20698 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20699 fi 20700 fi 20701 rm -f confcache 20702 20703 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20704 # Let make expand exec_prefix. 20705 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20706 20707 DEFS=-DHAVE_CONFIG_H 20708 20709 ac_libobjs= 20710 ac_ltlibobjs= 20711 U= 20712 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20713 # 1. Remove the extension, and $U if already installed. 20714 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20715 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20716 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20717 # will be set to the directory where LIBOBJS objects are built. 20718 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20719 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20720 done 20721 LIBOBJS=$ac_libobjs 20722 20723 LTLIBOBJS=$ac_ltlibobjs 20724 20725 20726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20727 printf %s "checking that generated files are newer than configure... " >&6; } 20728 if test -n "$am_sleep_pid"; then 20729 # Hide warnings about reused PIDs. 20730 wait $am_sleep_pid 2>/dev/null 20731 fi 20732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20733 printf "%s\n" "done" >&6; } 20734 case $enable_silent_rules in # ((( 20735 yes) AM_DEFAULT_VERBOSITY=0;; 20736 no) AM_DEFAULT_VERBOSITY=1;; 20737 esac 20738 if test $am_cv_make_support_nested_variables = yes; then 20739 AM_V='$(V)' 20740 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20741 else 20742 AM_V=$AM_DEFAULT_VERBOSITY 20743 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20744 fi 20745 20746 if test -n "$EXEEXT"; then 20747 am__EXEEXT_TRUE= 20748 am__EXEEXT_FALSE='#' 20749 else 20750 am__EXEEXT_TRUE='#' 20751 am__EXEEXT_FALSE= 20752 fi 20753 20754 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20755 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20756 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20757 fi 20758 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20759 as_fn_error $? "conditional \"AMDEP\" was never defined. 20760 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20761 fi 20762 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20763 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20764 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20765 fi 20766 20767 : "${CONFIG_STATUS=./config.status}" 20768 ac_write_fail=0 20769 ac_clean_files_save=$ac_clean_files 20770 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20772 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20773 as_write_fail=0 20774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20775 #! $SHELL 20776 # Generated by $as_me. 20777 # Run this file to recreate the current configuration. 20778 # Compiler output produced by configure, useful for debugging 20779 # configure, is in config.log if it exists. 20780 20781 debug=false 20782 ac_cs_recheck=false 20783 ac_cs_silent=false 20784 20785 SHELL=\${CONFIG_SHELL-$SHELL} 20786 export SHELL 20787 _ASEOF 20788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20789 ## -------------------- ## 20790 ## M4sh Initialization. ## 20791 ## -------------------- ## 20792 20793 # Be more Bourne compatible 20794 DUALCASE=1; export DUALCASE # for MKS sh 20795 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20796 then : 20797 emulate sh 20798 NULLCMD=: 20799 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20800 # is contrary to our usage. Disable this feature. 20801 alias -g '${1+"$@"}'='"$@"' 20802 setopt NO_GLOB_SUBST 20803 else case e in #( 20804 e) case `(set -o) 2>/dev/null` in #( 20805 *posix*) : 20806 set -o posix ;; #( 20807 *) : 20808 ;; 20809 esac ;; 20810 esac 20811 fi 20812 20813 20814 20815 # Reset variables that may have inherited troublesome values from 20816 # the environment. 20817 20818 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20819 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20820 # side effect of setting IFS to empty, thus disabling word splitting.) 20821 # Quoting is to prevent editors from complaining about space-tab. 20822 as_nl=' 20823 ' 20824 export as_nl 20825 IFS=" "" $as_nl" 20826 20827 PS1='$ ' 20828 PS2='> ' 20829 PS4='+ ' 20830 20831 # Ensure predictable behavior from utilities with locale-dependent output. 20832 LC_ALL=C 20833 export LC_ALL 20834 LANGUAGE=C 20835 export LANGUAGE 20836 20837 # We cannot yet rely on "unset" to work, but we need these variables 20838 # to be unset--not just set to an empty or harmless value--now, to 20839 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20840 # also avoids known problems related to "unset" and subshell syntax 20841 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20842 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20843 do eval test \${$as_var+y} \ 20844 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20845 done 20846 20847 # Ensure that fds 0, 1, and 2 are open. 20848 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20849 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20850 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20851 20852 # The user is always right. 20853 if ${PATH_SEPARATOR+false} :; then 20854 PATH_SEPARATOR=: 20855 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20856 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20857 PATH_SEPARATOR=';' 20858 } 20859 fi 20860 20861 20862 # Find who we are. Look in the path if we contain no directory separator. 20863 as_myself= 20864 case $0 in #(( 20865 *[\\/]* ) as_myself=$0 ;; 20866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20867 for as_dir in $PATH 20868 do 20869 IFS=$as_save_IFS 20870 case $as_dir in #((( 20871 '') as_dir=./ ;; 20872 */) ;; 20873 *) as_dir=$as_dir/ ;; 20874 esac 20875 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20876 done 20877 IFS=$as_save_IFS 20878 20879 ;; 20880 esac 20881 # We did not find ourselves, most probably we were run as 'sh COMMAND' 20882 # in which case we are not to be found in the path. 20883 if test "x$as_myself" = x; then 20884 as_myself=$0 20885 fi 20886 if test ! -f "$as_myself"; then 20887 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20888 exit 1 20889 fi 20890 20891 20892 20893 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20894 # ---------------------------------------- 20895 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20896 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20897 # script with STATUS, using 1 if that was 0. 20898 as_fn_error () 20899 { 20900 as_status=$1; test $as_status -eq 0 && as_status=1 20901 if test "$4"; then 20902 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20904 fi 20905 printf "%s\n" "$as_me: error: $2" >&2 20906 as_fn_exit $as_status 20907 } # as_fn_error 20908 20909 20910 # as_fn_set_status STATUS 20911 # ----------------------- 20912 # Set $? to STATUS, without forking. 20913 as_fn_set_status () 20914 { 20915 return $1 20916 } # as_fn_set_status 20917 20918 # as_fn_exit STATUS 20919 # ----------------- 20920 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20921 as_fn_exit () 20922 { 20923 set +e 20924 as_fn_set_status $1 20925 exit $1 20926 } # as_fn_exit 20927 20928 # as_fn_unset VAR 20929 # --------------- 20930 # Portably unset VAR. 20931 as_fn_unset () 20932 { 20933 { eval $1=; unset $1;} 20934 } 20935 as_unset=as_fn_unset 20936 20937 # as_fn_append VAR VALUE 20938 # ---------------------- 20939 # Append the text in VALUE to the end of the definition contained in VAR. Take 20940 # advantage of any shell optimizations that allow amortized linear growth over 20941 # repeated appends, instead of the typical quadratic growth present in naive 20942 # implementations. 20943 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20944 then : 20945 eval 'as_fn_append () 20946 { 20947 eval $1+=\$2 20948 }' 20949 else case e in #( 20950 e) as_fn_append () 20951 { 20952 eval $1=\$$1\$2 20953 } ;; 20954 esac 20955 fi # as_fn_append 20956 20957 # as_fn_arith ARG... 20958 # ------------------ 20959 # Perform arithmetic evaluation on the ARGs, and store the result in the 20960 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20961 # must be portable across $(()) and expr. 20962 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20963 then : 20964 eval 'as_fn_arith () 20965 { 20966 as_val=$(( $* )) 20967 }' 20968 else case e in #( 20969 e) as_fn_arith () 20970 { 20971 as_val=`expr "$@" || test $? -eq 1` 20972 } ;; 20973 esac 20974 fi # as_fn_arith 20975 20976 20977 if expr a : '\(a\)' >/dev/null 2>&1 && 20978 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20979 as_expr=expr 20980 else 20981 as_expr=false 20982 fi 20983 20984 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20985 as_basename=basename 20986 else 20987 as_basename=false 20988 fi 20989 20990 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20991 as_dirname=dirname 20992 else 20993 as_dirname=false 20994 fi 20995 20996 as_me=`$as_basename -- "$0" || 20997 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20998 X"$0" : 'X\(//\)$' \| \ 20999 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21000 printf "%s\n" X/"$0" | 21001 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21002 s//\1/ 21003 q 21004 } 21005 /^X\/\(\/\/\)$/{ 21006 s//\1/ 21007 q 21008 } 21009 /^X\/\(\/\).*/{ 21010 s//\1/ 21011 q 21012 } 21013 s/.*/./; q'` 21014 21015 # Avoid depending upon Character Ranges. 21016 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21017 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21018 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21019 as_cr_digits='0123456789' 21020 as_cr_alnum=$as_cr_Letters$as_cr_digits 21021 21022 21023 # Determine whether it's possible to make 'echo' print without a newline. 21024 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21025 # for compatibility with existing Makefiles. 21026 ECHO_C= ECHO_N= ECHO_T= 21027 case `echo -n x` in #((((( 21028 -n*) 21029 case `echo 'xy\c'` in 21030 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21031 xy) ECHO_C='\c';; 21032 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21033 ECHO_T=' ';; 21034 esac;; 21035 *) 21036 ECHO_N='-n';; 21037 esac 21038 21039 # For backward compatibility with old third-party macros, we provide 21040 # the shell variables $as_echo and $as_echo_n. New code should use 21041 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21042 as_echo='printf %s\n' 21043 as_echo_n='printf %s' 21044 21045 rm -f conf$$ conf$$.exe conf$$.file 21046 if test -d conf$$.dir; then 21047 rm -f conf$$.dir/conf$$.file 21048 else 21049 rm -f conf$$.dir 21050 mkdir conf$$.dir 2>/dev/null 21051 fi 21052 if (echo >conf$$.file) 2>/dev/null; then 21053 if ln -s conf$$.file conf$$ 2>/dev/null; then 21054 as_ln_s='ln -s' 21055 # ... but there are two gotchas: 21056 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 21057 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 21058 # In both cases, we have to default to 'cp -pR'. 21059 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21060 as_ln_s='cp -pR' 21061 elif ln conf$$.file conf$$ 2>/dev/null; then 21062 as_ln_s=ln 21063 else 21064 as_ln_s='cp -pR' 21065 fi 21066 else 21067 as_ln_s='cp -pR' 21068 fi 21069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21070 rmdir conf$$.dir 2>/dev/null 21071 21072 21073 # as_fn_mkdir_p 21074 # ------------- 21075 # Create "$as_dir" as a directory, including parents if necessary. 21076 as_fn_mkdir_p () 21077 { 21078 21079 case $as_dir in #( 21080 -*) as_dir=./$as_dir;; 21081 esac 21082 test -d "$as_dir" || eval $as_mkdir_p || { 21083 as_dirs= 21084 while :; do 21085 case $as_dir in #( 21086 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21087 *) as_qdir=$as_dir;; 21088 esac 21089 as_dirs="'$as_qdir' $as_dirs" 21090 as_dir=`$as_dirname -- "$as_dir" || 21091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21092 X"$as_dir" : 'X\(//\)[^/]' \| \ 21093 X"$as_dir" : 'X\(//\)$' \| \ 21094 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21095 printf "%s\n" X"$as_dir" | 21096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21097 s//\1/ 21098 q 21099 } 21100 /^X\(\/\/\)[^/].*/{ 21101 s//\1/ 21102 q 21103 } 21104 /^X\(\/\/\)$/{ 21105 s//\1/ 21106 q 21107 } 21108 /^X\(\/\).*/{ 21109 s//\1/ 21110 q 21111 } 21112 s/.*/./; q'` 21113 test -d "$as_dir" && break 21114 done 21115 test -z "$as_dirs" || eval "mkdir $as_dirs" 21116 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21117 21118 21119 } # as_fn_mkdir_p 21120 if mkdir -p . 2>/dev/null; then 21121 as_mkdir_p='mkdir -p "$as_dir"' 21122 else 21123 test -d ./-p && rmdir ./-p 21124 as_mkdir_p=false 21125 fi 21126 21127 21128 # as_fn_executable_p FILE 21129 # ----------------------- 21130 # Test if FILE is an executable regular file. 21131 as_fn_executable_p () 21132 { 21133 test -f "$1" && test -x "$1" 21134 } # as_fn_executable_p 21135 as_test_x='test -x' 21136 as_executable_p=as_fn_executable_p 21137 21138 # Sed expression to map a string onto a valid CPP name. 21139 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 21140 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 21141 21142 # Sed expression to map a string onto a valid variable name. 21143 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21144 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 21145 21146 21147 exec 6>&1 21148 ## ----------------------------------- ## 21149 ## Main body of $CONFIG_STATUS script. ## 21150 ## ----------------------------------- ## 21151 _ASEOF 21152 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21153 21154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21155 # Save the log message, to keep $0 and so on meaningful, and to 21156 # report actual input values of CONFIG_FILES etc. instead of their 21157 # values after options handling. 21158 ac_log=" 21159 This file was extended by xf86-video-suncg14 $as_me 1.2.0, which was 21160 generated by GNU Autoconf 2.72. Invocation command line was 21161 21162 CONFIG_FILES = $CONFIG_FILES 21163 CONFIG_HEADERS = $CONFIG_HEADERS 21164 CONFIG_LINKS = $CONFIG_LINKS 21165 CONFIG_COMMANDS = $CONFIG_COMMANDS 21166 $ $0 $@ 21167 21168 on `(hostname || uname -n) 2>/dev/null | sed 1q` 21169 " 21170 21171 _ACEOF 21172 21173 case $ac_config_files in *" 21174 "*) set x $ac_config_files; shift; ac_config_files=$*;; 21175 esac 21176 21177 case $ac_config_headers in *" 21178 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21179 esac 21180 21181 21182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21183 # Files that config.status was made for. 21184 config_files="$ac_config_files" 21185 config_headers="$ac_config_headers" 21186 config_commands="$ac_config_commands" 21187 21188 _ACEOF 21189 21190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21191 ac_cs_usage="\ 21192 '$as_me' instantiates files and other configuration actions 21193 from templates according to the current configuration. Unless the files 21194 and actions are specified as TAGs, all are instantiated by default. 21195 21196 Usage: $0 [OPTION]... [TAG]... 21197 21198 -h, --help print this help, then exit 21199 -V, --version print version number and configuration settings, then exit 21200 --config print configuration, then exit 21201 -q, --quiet, --silent 21202 do not print progress messages 21203 -d, --debug don't remove temporary files 21204 --recheck update $as_me by reconfiguring in the same conditions 21205 --file=FILE[:TEMPLATE] 21206 instantiate the configuration file FILE 21207 --header=FILE[:TEMPLATE] 21208 instantiate the configuration header FILE 21209 21210 Configuration files: 21211 $config_files 21212 21213 Configuration headers: 21214 $config_headers 21215 21216 Configuration commands: 21217 $config_commands 21218 21219 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg14/-/issues>." 21220 21221 _ACEOF 21222 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21223 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21225 ac_cs_config='$ac_cs_config_escaped' 21226 ac_cs_version="\\ 21227 xf86-video-suncg14 config.status 1.2.0 21228 configured by $0, generated by GNU Autoconf 2.72, 21229 with options \\"\$ac_cs_config\\" 21230 21231 Copyright (C) 2023 Free Software Foundation, Inc. 21232 This config.status script is free software; the Free Software Foundation 21233 gives unlimited permission to copy, distribute and modify it." 21234 21235 ac_pwd='$ac_pwd' 21236 srcdir='$srcdir' 21237 INSTALL='$INSTALL' 21238 MKDIR_P='$MKDIR_P' 21239 AWK='$AWK' 21240 test -n "\$AWK" || AWK=awk 21241 _ACEOF 21242 21243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21244 # The default lists apply if the user does not specify any file. 21245 ac_need_defaults=: 21246 while test $# != 0 21247 do 21248 case $1 in 21249 --*=?*) 21250 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21252 ac_shift=: 21253 ;; 21254 --*=) 21255 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21256 ac_optarg= 21257 ac_shift=: 21258 ;; 21259 *) 21260 ac_option=$1 21261 ac_optarg=$2 21262 ac_shift=shift 21263 ;; 21264 esac 21265 21266 case $ac_option in 21267 # Handling of the options. 21268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21269 ac_cs_recheck=: ;; 21270 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21271 printf "%s\n" "$ac_cs_version"; exit ;; 21272 --config | --confi | --conf | --con | --co | --c ) 21273 printf "%s\n" "$ac_cs_config"; exit ;; 21274 --debug | --debu | --deb | --de | --d | -d ) 21275 debug=: ;; 21276 --file | --fil | --fi | --f ) 21277 $ac_shift 21278 case $ac_optarg in 21279 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21280 '') as_fn_error $? "missing file argument" ;; 21281 esac 21282 as_fn_append CONFIG_FILES " '$ac_optarg'" 21283 ac_need_defaults=false;; 21284 --header | --heade | --head | --hea ) 21285 $ac_shift 21286 case $ac_optarg in 21287 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21288 esac 21289 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21290 ac_need_defaults=false;; 21291 --he | --h) 21292 # Conflict between --help and --header 21293 as_fn_error $? "ambiguous option: '$1' 21294 Try '$0 --help' for more information.";; 21295 --help | --hel | -h ) 21296 printf "%s\n" "$ac_cs_usage"; exit ;; 21297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21298 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21299 ac_cs_silent=: ;; 21300 21301 # This is an error. 21302 -*) as_fn_error $? "unrecognized option: '$1' 21303 Try '$0 --help' for more information." ;; 21304 21305 *) as_fn_append ac_config_targets " $1" 21306 ac_need_defaults=false ;; 21307 21308 esac 21309 shift 21310 done 21311 21312 ac_configure_extra_args= 21313 21314 if $ac_cs_silent; then 21315 exec 6>/dev/null 21316 ac_configure_extra_args="$ac_configure_extra_args --silent" 21317 fi 21318 21319 _ACEOF 21320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21321 if \$ac_cs_recheck; then 21322 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21323 shift 21324 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21325 CONFIG_SHELL='$SHELL' 21326 export CONFIG_SHELL 21327 exec "\$@" 21328 fi 21329 21330 _ACEOF 21331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21332 exec 5>>config.log 21333 { 21334 echo 21335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21336 ## Running $as_me. ## 21337 _ASBOX 21338 printf "%s\n" "$ac_log" 21339 } >&5 21340 21341 _ACEOF 21342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21343 # 21344 # INIT-COMMANDS 21345 # 21346 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21347 21348 21349 # The HP-UX ksh and POSIX shell print the target directory to stdout 21350 # if CDPATH is set. 21351 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21352 21353 sed_quote_subst='$sed_quote_subst' 21354 double_quote_subst='$double_quote_subst' 21355 delay_variable_subst='$delay_variable_subst' 21356 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21357 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21358 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21359 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21360 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21361 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21362 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21363 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21364 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21365 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21366 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21367 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21368 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21369 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21370 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21371 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21372 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21373 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21374 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21375 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21376 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21377 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21378 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21379 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21380 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21381 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21382 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21383 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21384 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21385 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21386 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21387 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21388 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21389 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21390 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21391 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21392 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21393 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21394 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21395 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21396 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21397 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21398 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21399 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21400 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21401 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21402 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21403 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21404 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21405 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21406 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21407 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21408 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21409 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21410 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21411 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21412 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21413 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21414 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21415 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21416 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"`' 21417 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21418 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21419 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21420 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21421 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21422 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21423 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21424 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21425 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21426 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21427 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21428 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21429 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21430 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21431 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21432 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21433 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21434 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21435 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21436 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21437 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21438 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21439 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21440 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21441 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21442 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21443 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21444 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21445 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21446 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21447 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21448 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21449 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21450 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21451 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21452 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21453 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21454 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21455 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21456 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21457 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21458 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21459 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21460 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21461 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21462 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21463 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21464 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21465 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21466 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21467 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21468 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21469 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21470 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21471 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21472 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21473 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21474 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21475 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21476 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21477 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21478 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21479 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21480 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21481 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21482 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21483 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21484 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21485 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21486 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21487 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21488 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21489 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21490 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21491 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21492 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21493 21494 LTCC='$LTCC' 21495 LTCFLAGS='$LTCFLAGS' 21496 compiler='$compiler_DEFAULT' 21497 21498 # A function that is used when there is no print builtin or printf. 21499 func_fallback_echo () 21500 { 21501 eval 'cat <<_LTECHO_EOF 21502 \$1 21503 _LTECHO_EOF' 21504 } 21505 21506 # Quote evaled strings. 21507 for var in SHELL \ 21508 ECHO \ 21509 PATH_SEPARATOR \ 21510 SED \ 21511 GREP \ 21512 EGREP \ 21513 FGREP \ 21514 LD \ 21515 NM \ 21516 LN_S \ 21517 lt_SP2NL \ 21518 lt_NL2SP \ 21519 reload_flag \ 21520 FILECMD \ 21521 OBJDUMP \ 21522 deplibs_check_method \ 21523 file_magic_cmd \ 21524 file_magic_glob \ 21525 want_nocaseglob \ 21526 DLLTOOL \ 21527 sharedlib_from_linklib_cmd \ 21528 AR \ 21529 archiver_list_spec \ 21530 STRIP \ 21531 RANLIB \ 21532 CC \ 21533 CFLAGS \ 21534 compiler \ 21535 lt_cv_sys_global_symbol_pipe \ 21536 lt_cv_sys_global_symbol_to_cdecl \ 21537 lt_cv_sys_global_symbol_to_import \ 21538 lt_cv_sys_global_symbol_to_c_name_address \ 21539 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21540 lt_cv_nm_interface \ 21541 nm_file_list_spec \ 21542 lt_cv_truncate_bin \ 21543 lt_prog_compiler_no_builtin_flag \ 21544 lt_prog_compiler_pic \ 21545 lt_prog_compiler_wl \ 21546 lt_prog_compiler_static \ 21547 lt_cv_prog_compiler_c_o \ 21548 need_locks \ 21549 MANIFEST_TOOL \ 21550 DSYMUTIL \ 21551 NMEDIT \ 21552 LIPO \ 21553 OTOOL \ 21554 OTOOL64 \ 21555 shrext_cmds \ 21556 export_dynamic_flag_spec \ 21557 whole_archive_flag_spec \ 21558 compiler_needs_object \ 21559 with_gnu_ld \ 21560 allow_undefined_flag \ 21561 no_undefined_flag \ 21562 hardcode_libdir_flag_spec \ 21563 hardcode_libdir_separator \ 21564 exclude_expsyms \ 21565 include_expsyms \ 21566 file_list_spec \ 21567 variables_saved_for_relink \ 21568 libname_spec \ 21569 library_names_spec \ 21570 soname_spec \ 21571 install_override_mode \ 21572 finish_eval \ 21573 old_striplib \ 21574 striplib; do 21575 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21576 *[\\\\\\\`\\"\\\$]*) 21577 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21578 ;; 21579 *) 21580 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21581 ;; 21582 esac 21583 done 21584 21585 # Double-quote double-evaled strings. 21586 for var in reload_cmds \ 21587 old_postinstall_cmds \ 21588 old_postuninstall_cmds \ 21589 old_archive_cmds \ 21590 extract_expsyms_cmds \ 21591 old_archive_from_new_cmds \ 21592 old_archive_from_expsyms_cmds \ 21593 archive_cmds \ 21594 archive_expsym_cmds \ 21595 module_cmds \ 21596 module_expsym_cmds \ 21597 export_symbols_cmds \ 21598 prelink_cmds \ 21599 postlink_cmds \ 21600 postinstall_cmds \ 21601 postuninstall_cmds \ 21602 finish_cmds \ 21603 sys_lib_search_path_spec \ 21604 configure_time_dlsearch_path \ 21605 configure_time_lt_sys_library_path; do 21606 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21607 *[\\\\\\\`\\"\\\$]*) 21608 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21609 ;; 21610 *) 21611 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21612 ;; 21613 esac 21614 done 21615 21616 ac_aux_dir='$ac_aux_dir' 21617 21618 # See if we are running on zsh, and set the options that allow our 21619 # commands through without removal of \ escapes INIT. 21620 if test -n "\${ZSH_VERSION+set}"; then 21621 setopt NO_GLOB_SUBST 21622 fi 21623 21624 21625 PACKAGE='$PACKAGE' 21626 VERSION='$VERSION' 21627 RM='$RM' 21628 ofile='$ofile' 21629 21630 21631 21632 21633 _ACEOF 21634 21635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21636 21637 # Handling of arguments. 21638 for ac_config_target in $ac_config_targets 21639 do 21640 case $ac_config_target in 21641 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21642 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21643 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21644 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21645 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21646 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21647 21648 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21649 esac 21650 done 21651 21652 21653 # If the user did not use the arguments to specify the items to instantiate, 21654 # then the envvar interface is used. Set only those that are not. 21655 # We use the long form for the default assignment because of an extremely 21656 # bizarre bug on SunOS 4.1.3. 21657 if $ac_need_defaults; then 21658 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21659 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21660 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21661 fi 21662 21663 # Have a temporary directory for convenience. Make it in the build tree 21664 # simply because there is no reason against having it here, and in addition, 21665 # creating and moving files from /tmp can sometimes cause problems. 21666 # Hook for its removal unless debugging. 21667 # Note that there is a small window in which the directory will not be cleaned: 21668 # after its creation but before its name has been assigned to '$tmp'. 21669 $debug || 21670 { 21671 tmp= ac_tmp= 21672 trap 'exit_status=$? 21673 : "${ac_tmp:=$tmp}" 21674 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21675 ' 0 21676 trap 'as_fn_exit 1' 1 2 13 15 21677 } 21678 # Create a (secure) tmp directory for tmp files. 21679 21680 { 21681 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21682 test -d "$tmp" 21683 } || 21684 { 21685 tmp=./conf$$-$RANDOM 21686 (umask 077 && mkdir "$tmp") 21687 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21688 ac_tmp=$tmp 21689 21690 # Set up the scripts for CONFIG_FILES section. 21691 # No need to generate them if there are no CONFIG_FILES. 21692 # This happens for instance with './config.status config.h'. 21693 if test -n "$CONFIG_FILES"; then 21694 21695 21696 ac_cr=`echo X | tr X '\015'` 21697 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21698 # But we know of no other shell where ac_cr would be empty at this 21699 # point, so we can use a bashism as a fallback. 21700 if test "x$ac_cr" = x; then 21701 eval ac_cr=\$\'\\r\' 21702 fi 21703 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21704 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21705 ac_cs_awk_cr='\\r' 21706 else 21707 ac_cs_awk_cr=$ac_cr 21708 fi 21709 21710 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21711 _ACEOF 21712 21713 21714 { 21715 echo "cat >conf$$subs.awk <<_ACEOF" && 21716 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21717 echo "_ACEOF" 21718 } >conf$$subs.sh || 21719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21720 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21721 ac_delim='%!_!# ' 21722 for ac_last_try in false false false false false :; do 21723 . ./conf$$subs.sh || 21724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21725 21726 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21727 if test $ac_delim_n = $ac_delim_num; then 21728 break 21729 elif $ac_last_try; then 21730 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21731 else 21732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21733 fi 21734 done 21735 rm -f conf$$subs.sh 21736 21737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21738 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21739 _ACEOF 21740 sed -n ' 21741 h 21742 s/^/S["/; s/!.*/"]=/ 21743 p 21744 g 21745 s/^[^!]*!// 21746 :repl 21747 t repl 21748 s/'"$ac_delim"'$// 21749 t delim 21750 :nl 21751 h 21752 s/\(.\{148\}\)..*/\1/ 21753 t more1 21754 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21755 p 21756 n 21757 b repl 21758 :more1 21759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21760 p 21761 g 21762 s/.\{148\}// 21763 t nl 21764 :delim 21765 h 21766 s/\(.\{148\}\)..*/\1/ 21767 t more2 21768 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21769 p 21770 b 21771 :more2 21772 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21773 p 21774 g 21775 s/.\{148\}// 21776 t delim 21777 ' <conf$$subs.awk | sed ' 21778 /^[^""]/{ 21779 N 21780 s/\n// 21781 } 21782 ' >>$CONFIG_STATUS || ac_write_fail=1 21783 rm -f conf$$subs.awk 21784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21785 _ACAWK 21786 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21787 for (key in S) S_is_set[key] = 1 21788 FS = "" 21789 21790 } 21791 { 21792 line = $ 0 21793 nfields = split(line, field, "@") 21794 substed = 0 21795 len = length(field[1]) 21796 for (i = 2; i < nfields; i++) { 21797 key = field[i] 21798 keylen = length(key) 21799 if (S_is_set[key]) { 21800 value = S[key] 21801 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21802 len += length(value) + length(field[++i]) 21803 substed = 1 21804 } else 21805 len += 1 + keylen 21806 } 21807 21808 print line 21809 } 21810 21811 _ACAWK 21812 _ACEOF 21813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21814 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21815 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21816 else 21817 cat 21818 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21819 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21820 _ACEOF 21821 21822 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21823 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21824 # trailing colons and then remove the whole line if VPATH becomes empty 21825 # (actually we leave an empty line to preserve line numbers). 21826 if test "x$srcdir" = x.; then 21827 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21828 h 21829 s/// 21830 s/^/:/ 21831 s/[ ]*$/:/ 21832 s/:\$(srcdir):/:/g 21833 s/:\${srcdir}:/:/g 21834 s/:@srcdir@:/:/g 21835 s/^:*// 21836 s/:*$// 21837 x 21838 s/\(=[ ]*\).*/\1/ 21839 G 21840 s/\n// 21841 s/^[^=]*=[ ]*$// 21842 }' 21843 fi 21844 21845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21846 fi # test -n "$CONFIG_FILES" 21847 21848 # Set up the scripts for CONFIG_HEADERS section. 21849 # No need to generate them if there are no CONFIG_HEADERS. 21850 # This happens for instance with './config.status Makefile'. 21851 if test -n "$CONFIG_HEADERS"; then 21852 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21853 BEGIN { 21854 _ACEOF 21855 21856 # Transform confdefs.h into an awk script 'defines.awk', embedded as 21857 # here-document in config.status, that substitutes the proper values into 21858 # config.h.in to produce config.h. 21859 21860 # Create a delimiter string that does not exist in confdefs.h, to ease 21861 # handling of long lines. 21862 ac_delim='%!_!# ' 21863 for ac_last_try in false false :; do 21864 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21865 if test -z "$ac_tt"; then 21866 break 21867 elif $ac_last_try; then 21868 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21869 else 21870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21871 fi 21872 done 21873 21874 # For the awk script, D is an array of macro values keyed by name, 21875 # likewise P contains macro parameters if any. Preserve backslash 21876 # newline sequences. 21877 21878 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21879 sed -n ' 21880 s/.\{148\}/&'"$ac_delim"'/g 21881 t rset 21882 :rset 21883 s/^[ ]*#[ ]*define[ ][ ]*/ / 21884 t def 21885 d 21886 :def 21887 s/\\$// 21888 t bsnl 21889 s/["\\]/\\&/g 21890 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21891 D["\1"]=" \3"/p 21892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21893 d 21894 :bsnl 21895 s/["\\]/\\&/g 21896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21897 D["\1"]=" \3\\\\\\n"\\/p 21898 t cont 21899 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21900 t cont 21901 d 21902 :cont 21903 n 21904 s/.\{148\}/&'"$ac_delim"'/g 21905 t clear 21906 :clear 21907 s/\\$// 21908 t bsnlc 21909 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21910 d 21911 :bsnlc 21912 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21913 b cont 21914 ' <confdefs.h | sed ' 21915 s/'"$ac_delim"'/"\\\ 21916 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21917 21918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21919 for (key in D) D_is_set[key] = 1 21920 FS = "" 21921 } 21922 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21923 line = \$ 0 21924 split(line, arg, " ") 21925 if (arg[1] == "#") { 21926 defundef = arg[2] 21927 mac1 = arg[3] 21928 } else { 21929 defundef = substr(arg[1], 2) 21930 mac1 = arg[2] 21931 } 21932 split(mac1, mac2, "(") #) 21933 macro = mac2[1] 21934 prefix = substr(line, 1, index(line, defundef) - 1) 21935 if (D_is_set[macro]) { 21936 # Preserve the white space surrounding the "#". 21937 print prefix "define", macro P[macro] D[macro] 21938 next 21939 } else { 21940 # Replace #undef with comments. This is necessary, for example, 21941 # in the case of _POSIX_SOURCE, which is predefined and required 21942 # on some systems where configure will not decide to define it. 21943 if (defundef == "undef") { 21944 print "/*", prefix defundef, macro, "*/" 21945 next 21946 } 21947 } 21948 } 21949 { print } 21950 _ACAWK 21951 _ACEOF 21952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21953 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21954 fi # test -n "$CONFIG_HEADERS" 21955 21956 21957 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21958 shift 21959 for ac_tag 21960 do 21961 case $ac_tag in 21962 :[FHLC]) ac_mode=$ac_tag; continue;; 21963 esac 21964 case $ac_mode$ac_tag in 21965 :[FHL]*:*);; 21966 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21967 :[FH]-) ac_tag=-:-;; 21968 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21969 esac 21970 ac_save_IFS=$IFS 21971 IFS=: 21972 set x $ac_tag 21973 IFS=$ac_save_IFS 21974 shift 21975 ac_file=$1 21976 shift 21977 21978 case $ac_mode in 21979 :L) ac_source=$1;; 21980 :[FH]) 21981 ac_file_inputs= 21982 for ac_f 21983 do 21984 case $ac_f in 21985 -) ac_f="$ac_tmp/stdin";; 21986 *) # Look for the file first in the build tree, then in the source tree 21987 # (if the path is not absolute). The absolute path cannot be DOS-style, 21988 # because $ac_f cannot contain ':'. 21989 test -f "$ac_f" || 21990 case $ac_f in 21991 [\\/$]*) false;; 21992 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21993 esac || 21994 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21995 esac 21996 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21997 as_fn_append ac_file_inputs " '$ac_f'" 21998 done 21999 22000 # Let's still pretend it is 'configure' which instantiates (i.e., don't 22001 # use $as_me), people would be surprised to read: 22002 # /* config.h. Generated by config.status. */ 22003 configure_input='Generated from '` 22004 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22005 `' by configure.' 22006 if test x"$ac_file" != x-; then 22007 configure_input="$ac_file. $configure_input" 22008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22009 printf "%s\n" "$as_me: creating $ac_file" >&6;} 22010 fi 22011 # Neutralize special characters interpreted by sed in replacement strings. 22012 case $configure_input in #( 22013 *\&* | *\|* | *\\* ) 22014 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22015 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22016 *) ac_sed_conf_input=$configure_input;; 22017 esac 22018 22019 case $ac_tag in 22020 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22021 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22022 esac 22023 ;; 22024 esac 22025 22026 ac_dir=`$as_dirname -- "$ac_file" || 22027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22028 X"$ac_file" : 'X\(//\)[^/]' \| \ 22029 X"$ac_file" : 'X\(//\)$' \| \ 22030 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22031 printf "%s\n" X"$ac_file" | 22032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22033 s//\1/ 22034 q 22035 } 22036 /^X\(\/\/\)[^/].*/{ 22037 s//\1/ 22038 q 22039 } 22040 /^X\(\/\/\)$/{ 22041 s//\1/ 22042 q 22043 } 22044 /^X\(\/\).*/{ 22045 s//\1/ 22046 q 22047 } 22048 s/.*/./; q'` 22049 as_dir="$ac_dir"; as_fn_mkdir_p 22050 ac_builddir=. 22051 22052 case "$ac_dir" in 22053 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22054 *) 22055 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22056 # A ".." for each directory in $ac_dir_suffix. 22057 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22058 case $ac_top_builddir_sub in 22059 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22060 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22061 esac ;; 22062 esac 22063 ac_abs_top_builddir=$ac_pwd 22064 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22065 # for backward compatibility: 22066 ac_top_builddir=$ac_top_build_prefix 22067 22068 case $srcdir in 22069 .) # We are building in place. 22070 ac_srcdir=. 22071 ac_top_srcdir=$ac_top_builddir_sub 22072 ac_abs_top_srcdir=$ac_pwd ;; 22073 [\\/]* | ?:[\\/]* ) # Absolute name. 22074 ac_srcdir=$srcdir$ac_dir_suffix; 22075 ac_top_srcdir=$srcdir 22076 ac_abs_top_srcdir=$srcdir ;; 22077 *) # Relative name. 22078 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22079 ac_top_srcdir=$ac_top_build_prefix$srcdir 22080 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22081 esac 22082 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22083 22084 22085 case $ac_mode in 22086 :F) 22087 # 22088 # CONFIG_FILE 22089 # 22090 22091 case $INSTALL in 22092 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22093 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22094 esac 22095 ac_MKDIR_P=$MKDIR_P 22096 case $MKDIR_P in 22097 [\\/$]* | ?:[\\/]* ) ;; 22098 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22099 esac 22100 _ACEOF 22101 22102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22103 # If the template does not know about datarootdir, expand it. 22104 # FIXME: This hack should be removed a few years after 2.60. 22105 ac_datarootdir_hack=; ac_datarootdir_seen= 22106 ac_sed_dataroot=' 22107 /datarootdir/ { 22108 p 22109 q 22110 } 22111 /@datadir@/p 22112 /@docdir@/p 22113 /@infodir@/p 22114 /@localedir@/p 22115 /@mandir@/p' 22116 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22117 *datarootdir*) ac_datarootdir_seen=yes;; 22118 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22120 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22121 _ACEOF 22122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22123 ac_datarootdir_hack=' 22124 s&@datadir@&$datadir&g 22125 s&@docdir@&$docdir&g 22126 s&@infodir@&$infodir&g 22127 s&@localedir@&$localedir&g 22128 s&@mandir@&$mandir&g 22129 s&\\\${datarootdir}&$datarootdir&g' ;; 22130 esac 22131 _ACEOF 22132 22133 # Neutralize VPATH when '$srcdir' = '.'. 22134 # Shell code in configure.ac might set extrasub. 22135 # FIXME: do we really want to maintain this feature? 22136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22137 ac_sed_extra="$ac_vpsub 22138 $extrasub 22139 _ACEOF 22140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22141 :t 22142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22143 s|@configure_input@|$ac_sed_conf_input|;t t 22144 s&@top_builddir@&$ac_top_builddir_sub&;t t 22145 s&@top_build_prefix@&$ac_top_build_prefix&;t t 22146 s&@srcdir@&$ac_srcdir&;t t 22147 s&@abs_srcdir@&$ac_abs_srcdir&;t t 22148 s&@top_srcdir@&$ac_top_srcdir&;t t 22149 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22150 s&@builddir@&$ac_builddir&;t t 22151 s&@abs_builddir@&$ac_abs_builddir&;t t 22152 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22153 s&@INSTALL@&$ac_INSTALL&;t t 22154 s&@MKDIR_P@&$ac_MKDIR_P&;t t 22155 $ac_datarootdir_hack 22156 " 22157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22158 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22159 22160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22161 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22163 "$ac_tmp/out"`; test -z "$ac_out"; } && 22164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22165 which seems to be undefined. Please make sure it is defined" >&5 22166 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22167 which seems to be undefined. Please make sure it is defined" >&2;} 22168 22169 rm -f "$ac_tmp/stdin" 22170 case $ac_file in 22171 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22172 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22173 esac \ 22174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22175 ;; 22176 :H) 22177 # 22178 # CONFIG_HEADER 22179 # 22180 if test x"$ac_file" != x-; then 22181 { 22182 printf "%s\n" "/* $configure_input */" >&1 \ 22183 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22184 } >"$ac_tmp/config.h" \ 22185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22186 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22188 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22189 else 22190 rm -f "$ac_file" 22191 mv "$ac_tmp/config.h" "$ac_file" \ 22192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22193 fi 22194 else 22195 printf "%s\n" "/* $configure_input */" >&1 \ 22196 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22197 || as_fn_error $? "could not create -" "$LINENO" 5 22198 fi 22199 # Compute "$ac_file"'s index in $config_headers. 22200 _am_arg="$ac_file" 22201 _am_stamp_count=1 22202 for _am_header in $config_headers :; do 22203 case $_am_header in 22204 $_am_arg | $_am_arg:* ) 22205 break ;; 22206 * ) 22207 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22208 esac 22209 done 22210 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22211 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22212 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22213 X"$_am_arg" : 'X\(//\)$' \| \ 22214 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22215 printf "%s\n" X"$_am_arg" | 22216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22217 s//\1/ 22218 q 22219 } 22220 /^X\(\/\/\)[^/].*/{ 22221 s//\1/ 22222 q 22223 } 22224 /^X\(\/\/\)$/{ 22225 s//\1/ 22226 q 22227 } 22228 /^X\(\/\).*/{ 22229 s//\1/ 22230 q 22231 } 22232 s/.*/./; q'`/stamp-h$_am_stamp_count 22233 ;; 22234 22235 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22236 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22237 ;; 22238 esac 22239 22240 22241 case $ac_file$ac_mode in 22242 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22243 # Older Autoconf quotes --file arguments for eval, but not when files 22244 # are listed without --file. Let's play safe and only enable the eval 22245 # if we detect the quoting. 22246 # TODO: see whether this extra hack can be removed once we start 22247 # requiring Autoconf 2.70 or later. 22248 case $CONFIG_FILES in #( 22249 *\'*) : 22250 eval set x "$CONFIG_FILES" ;; #( 22251 *) : 22252 set x $CONFIG_FILES ;; #( 22253 *) : 22254 ;; 22255 esac 22256 shift 22257 # Used to flag and report bootstrapping failures. 22258 am_rc=0 22259 for am_mf 22260 do 22261 # Strip MF so we end up with the name of the file. 22262 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22263 # Check whether this is an Automake generated Makefile which includes 22264 # dependency-tracking related rules and includes. 22265 # Grep'ing the whole file directly is not great: AIX grep has a line 22266 # limit of 2048, but all sed's we know have understand at least 4000. 22267 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22268 || continue 22269 am_dirpart=`$as_dirname -- "$am_mf" || 22270 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22271 X"$am_mf" : 'X\(//\)[^/]' \| \ 22272 X"$am_mf" : 'X\(//\)$' \| \ 22273 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22274 printf "%s\n" X"$am_mf" | 22275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22276 s//\1/ 22277 q 22278 } 22279 /^X\(\/\/\)[^/].*/{ 22280 s//\1/ 22281 q 22282 } 22283 /^X\(\/\/\)$/{ 22284 s//\1/ 22285 q 22286 } 22287 /^X\(\/\).*/{ 22288 s//\1/ 22289 q 22290 } 22291 s/.*/./; q'` 22292 am_filepart=`$as_basename -- "$am_mf" || 22293 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22294 X"$am_mf" : 'X\(//\)$' \| \ 22295 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22296 printf "%s\n" X/"$am_mf" | 22297 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22298 s//\1/ 22299 q 22300 } 22301 /^X\/\(\/\/\)$/{ 22302 s//\1/ 22303 q 22304 } 22305 /^X\/\(\/\).*/{ 22306 s//\1/ 22307 q 22308 } 22309 s/.*/./; q'` 22310 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22311 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22312 | $MAKE -f - am--depfiles" >&5 22313 (cd "$am_dirpart" \ 22314 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22315 | $MAKE -f - am--depfiles) >&5 2>&5 22316 ac_status=$? 22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22318 (exit $ac_status); } || am_rc=$? 22319 done 22320 if test $am_rc -ne 0; then 22321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22322 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22323 as_fn_error $? "Something went wrong bootstrapping makefile fragments 22324 for automatic dependency tracking. If GNU make was not used, consider 22325 re-running the configure script with MAKE=\"gmake\" (or whatever is 22326 necessary). You can also try re-running configure with the 22327 '--disable-dependency-tracking' option to at least be able to build 22328 the package (albeit without support for automatic dependency tracking). 22329 See 'config.log' for more details" "$LINENO" 5; } 22330 fi 22331 { am_dirpart=; unset am_dirpart;} 22332 { am_filepart=; unset am_filepart;} 22333 { am_mf=; unset am_mf;} 22334 { am_rc=; unset am_rc;} 22335 rm -f conftest-deps.mk 22336 } 22337 ;; 22338 "libtool":C) 22339 22340 # See if we are running on zsh, and set the options that allow our 22341 # commands through without removal of \ escapes. 22342 if test -n "${ZSH_VERSION+set}"; then 22343 setopt NO_GLOB_SUBST 22344 fi 22345 22346 cfgfile=${ofile}T 22347 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22348 $RM "$cfgfile" 22349 22350 cat <<_LT_EOF >> "$cfgfile" 22351 #! $SHELL 22352 # Generated automatically by $as_me ($PACKAGE) $VERSION 22353 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 22354 22355 # Provide generalized library-building support services. 22356 # Written by Gordon Matzigkeit, 1996 22357 22358 # Copyright (C) 2024 Free Software Foundation, Inc. 22359 # This is free software; see the source for copying conditions. There is NO 22360 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22361 22362 # GNU Libtool is free software; you can redistribute it and/or modify 22363 # it under the terms of the GNU General Public License as published by 22364 # the Free Software Foundation; either version 2 of the License, or 22365 # (at your option) any later version. 22366 # 22367 # As a special exception to the GNU General Public License, if you 22368 # distribute this file as part of a program or library that is built 22369 # using GNU Libtool, you may include this file under the same 22370 # distribution terms that you use for the rest of that program. 22371 # 22372 # GNU Libtool is distributed in the hope that it will be useful, but 22373 # WITHOUT ANY WARRANTY; without even the implied warranty of 22374 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22375 # GNU General Public License for more details. 22376 # 22377 # You should have received a copy of the GNU General Public License 22378 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22379 22380 22381 # The names of the tagged configurations supported by this script. 22382 available_tags='' 22383 22384 # Configured defaults for sys_lib_dlsearch_path munging. 22385 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22386 22387 # ### BEGIN LIBTOOL CONFIG 22388 22389 # Which release of libtool.m4 was used? 22390 macro_version=$macro_version 22391 macro_revision=$macro_revision 22392 22393 # Whether or not to build static libraries. 22394 build_old_libs=$enable_static 22395 22396 # Whether or not to build shared libraries. 22397 build_libtool_libs=$enable_shared 22398 22399 # What type of objects to build. 22400 pic_mode=$pic_mode 22401 22402 # Whether or not to optimize for fast installation. 22403 fast_install=$enable_fast_install 22404 22405 # Shared archive member basename,for filename based shared library versioning on AIX. 22406 shared_archive_member_spec=$shared_archive_member_spec 22407 22408 # Shell to use when invoking shell scripts. 22409 SHELL=$lt_SHELL 22410 22411 # An echo program that protects backslashes. 22412 ECHO=$lt_ECHO 22413 22414 # The PATH separator for the build system. 22415 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22416 22417 # The host system. 22418 host_alias=$host_alias 22419 host=$host 22420 host_os=$host_os 22421 22422 # The build system. 22423 build_alias=$build_alias 22424 build=$build 22425 build_os=$build_os 22426 22427 # A sed program that does not truncate output. 22428 SED=$lt_SED 22429 22430 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22431 Xsed="\$SED -e 1s/^X//" 22432 22433 # A grep program that handles long lines. 22434 GREP=$lt_GREP 22435 22436 # An ERE matcher. 22437 EGREP=$lt_EGREP 22438 22439 # A literal string matcher. 22440 FGREP=$lt_FGREP 22441 22442 # A BSD- or MS-compatible name lister. 22443 NM=$lt_NM 22444 22445 # Whether we need soft or hard links. 22446 LN_S=$lt_LN_S 22447 22448 # What is the maximum length of a command? 22449 max_cmd_len=$max_cmd_len 22450 22451 # Object file suffix (normally "o"). 22452 objext=$ac_objext 22453 22454 # Executable file suffix (normally ""). 22455 exeext=$exeext 22456 22457 # whether the shell understands "unset". 22458 lt_unset=$lt_unset 22459 22460 # turn spaces into newlines. 22461 SP2NL=$lt_lt_SP2NL 22462 22463 # turn newlines into spaces. 22464 NL2SP=$lt_lt_NL2SP 22465 22466 # convert \$build file names to \$host format. 22467 to_host_file_cmd=$lt_cv_to_host_file_cmd 22468 22469 # convert \$build files to toolchain format. 22470 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22471 22472 # A file(cmd) program that detects file types. 22473 FILECMD=$lt_FILECMD 22474 22475 # An object symbol dumper. 22476 OBJDUMP=$lt_OBJDUMP 22477 22478 # Method to check whether dependent libraries are shared objects. 22479 deplibs_check_method=$lt_deplibs_check_method 22480 22481 # Command to use when deplibs_check_method = "file_magic". 22482 file_magic_cmd=$lt_file_magic_cmd 22483 22484 # How to find potential files when deplibs_check_method = "file_magic". 22485 file_magic_glob=$lt_file_magic_glob 22486 22487 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22488 want_nocaseglob=$lt_want_nocaseglob 22489 22490 # DLL creation program. 22491 DLLTOOL=$lt_DLLTOOL 22492 22493 # Command to associate shared and link libraries. 22494 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22495 22496 # The archiver. 22497 AR=$lt_AR 22498 22499 # Flags to create an archive (by configure). 22500 lt_ar_flags=$lt_ar_flags 22501 22502 # Flags to create an archive. 22503 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22504 22505 # How to feed a file listing to the archiver. 22506 archiver_list_spec=$lt_archiver_list_spec 22507 22508 # A symbol stripping program. 22509 STRIP=$lt_STRIP 22510 22511 # Commands used to install an old-style archive. 22512 RANLIB=$lt_RANLIB 22513 old_postinstall_cmds=$lt_old_postinstall_cmds 22514 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22515 22516 # Whether to use a lock for old archive extraction. 22517 lock_old_archive_extraction=$lock_old_archive_extraction 22518 22519 # A C compiler. 22520 LTCC=$lt_CC 22521 22522 # LTCC compiler flags. 22523 LTCFLAGS=$lt_CFLAGS 22524 22525 # Take the output of nm and produce a listing of raw symbols and C names. 22526 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22527 22528 # Transform the output of nm in a proper C declaration. 22529 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22530 22531 # Transform the output of nm into a list of symbols to manually relocate. 22532 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22533 22534 # Transform the output of nm in a C name address pair. 22535 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22536 22537 # Transform the output of nm in a C name address pair when lib prefix is needed. 22538 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22539 22540 # The name lister interface. 22541 nm_interface=$lt_lt_cv_nm_interface 22542 22543 # Specify filename containing input files for \$NM. 22544 nm_file_list_spec=$lt_nm_file_list_spec 22545 22546 # The root where to search for dependent libraries,and where our libraries should be installed. 22547 lt_sysroot=$lt_sysroot 22548 22549 # Command to truncate a binary pipe. 22550 lt_truncate_bin=$lt_lt_cv_truncate_bin 22551 22552 # The name of the directory that contains temporary libtool files. 22553 objdir=$objdir 22554 22555 # Used to examine libraries when file_magic_cmd begins with "file". 22556 MAGIC_CMD=$MAGIC_CMD 22557 22558 # Must we lock files when doing compilation? 22559 need_locks=$lt_need_locks 22560 22561 # Manifest tool. 22562 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22563 22564 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22565 DSYMUTIL=$lt_DSYMUTIL 22566 22567 # Tool to change global to local symbols on Mac OS X. 22568 NMEDIT=$lt_NMEDIT 22569 22570 # Tool to manipulate fat objects and archives on Mac OS X. 22571 LIPO=$lt_LIPO 22572 22573 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22574 OTOOL=$lt_OTOOL 22575 22576 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22577 OTOOL64=$lt_OTOOL64 22578 22579 # Old archive suffix (normally "a"). 22580 libext=$libext 22581 22582 # Shared library suffix (normally ".so"). 22583 shrext_cmds=$lt_shrext_cmds 22584 22585 # The commands to extract the exported symbol list from a shared archive. 22586 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22587 22588 # Variables whose values should be saved in libtool wrapper scripts and 22589 # restored at link time. 22590 variables_saved_for_relink=$lt_variables_saved_for_relink 22591 22592 # Do we need the "lib" prefix for modules? 22593 need_lib_prefix=$need_lib_prefix 22594 22595 # Do we need a version for libraries? 22596 need_version=$need_version 22597 22598 # Library versioning type. 22599 version_type=$version_type 22600 22601 # Shared library runtime path variable. 22602 runpath_var=$runpath_var 22603 22604 # Shared library path variable. 22605 shlibpath_var=$shlibpath_var 22606 22607 # Is shlibpath searched before the hard-coded library search path? 22608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22609 22610 # Format of library name prefix. 22611 libname_spec=$lt_libname_spec 22612 22613 # List of archive names. First name is the real one, the rest are links. 22614 # The last name is the one that the linker finds with -lNAME 22615 library_names_spec=$lt_library_names_spec 22616 22617 # The coded name of the library, if different from the real name. 22618 soname_spec=$lt_soname_spec 22619 22620 # Permission mode override for installation of shared libraries. 22621 install_override_mode=$lt_install_override_mode 22622 22623 # Command to use after installation of a shared archive. 22624 postinstall_cmds=$lt_postinstall_cmds 22625 22626 # Command to use after uninstallation of a shared archive. 22627 postuninstall_cmds=$lt_postuninstall_cmds 22628 22629 # Commands used to finish a libtool library installation in a directory. 22630 finish_cmds=$lt_finish_cmds 22631 22632 # As "finish_cmds", except a single script fragment to be evaled but 22633 # not shown. 22634 finish_eval=$lt_finish_eval 22635 22636 # Whether we should hardcode library paths into libraries. 22637 hardcode_into_libs=$hardcode_into_libs 22638 22639 # Compile-time system search path for libraries. 22640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22641 22642 # Detected run-time system search path for libraries. 22643 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22644 22645 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22646 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22647 22648 # Whether dlopen is supported. 22649 dlopen_support=$enable_dlopen 22650 22651 # Whether dlopen of programs is supported. 22652 dlopen_self=$enable_dlopen_self 22653 22654 # Whether dlopen of statically linked programs is supported. 22655 dlopen_self_static=$enable_dlopen_self_static 22656 22657 # Commands to strip libraries. 22658 old_striplib=$lt_old_striplib 22659 striplib=$lt_striplib 22660 22661 22662 # The linker used to build libraries. 22663 LD=$lt_LD 22664 22665 # How to create reloadable object files. 22666 reload_flag=$lt_reload_flag 22667 reload_cmds=$lt_reload_cmds 22668 22669 # Commands used to build an old-style archive. 22670 old_archive_cmds=$lt_old_archive_cmds 22671 22672 # A language specific compiler. 22673 CC=$lt_compiler 22674 22675 # Is the compiler the GNU compiler? 22676 with_gcc=$GCC 22677 22678 # Compiler flag to turn off builtin functions. 22679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22680 22681 # Additional compiler flags for building library objects. 22682 pic_flag=$lt_lt_prog_compiler_pic 22683 22684 # How to pass a linker flag through the compiler. 22685 wl=$lt_lt_prog_compiler_wl 22686 22687 # Compiler flag to prevent dynamic linking. 22688 link_static_flag=$lt_lt_prog_compiler_static 22689 22690 # Does compiler simultaneously support -c and -o options? 22691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22692 22693 # Whether or not to add -lc for building shared libraries. 22694 build_libtool_need_lc=$archive_cmds_need_lc 22695 22696 # Whether or not to disallow shared libs when runtime libs are static. 22697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22698 22699 # Compiler flag to allow reflexive dlopens. 22700 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22701 22702 # Compiler flag to generate shared objects directly from archives. 22703 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22704 22705 # Whether the compiler copes with passing no objects directly. 22706 compiler_needs_object=$lt_compiler_needs_object 22707 22708 # Create an old-style archive from a shared archive. 22709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22710 22711 # Create a temporary old-style archive to link instead of a shared archive. 22712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22713 22714 # Commands used to build a shared archive. 22715 archive_cmds=$lt_archive_cmds 22716 archive_expsym_cmds=$lt_archive_expsym_cmds 22717 22718 # Commands used to build a loadable module if different from building 22719 # a shared archive. 22720 module_cmds=$lt_module_cmds 22721 module_expsym_cmds=$lt_module_expsym_cmds 22722 22723 # Whether we are building with GNU ld or not. 22724 with_gnu_ld=$lt_with_gnu_ld 22725 22726 # Flag that allows shared libraries with undefined symbols to be built. 22727 allow_undefined_flag=$lt_allow_undefined_flag 22728 22729 # Flag that enforces no undefined symbols. 22730 no_undefined_flag=$lt_no_undefined_flag 22731 22732 # Flag to hardcode \$libdir into a binary during linking. 22733 # This must work even if \$libdir does not exist 22734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22735 22736 # Whether we need a single "-rpath" flag with a separated argument. 22737 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22738 22739 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22740 # DIR into the resulting binary. 22741 hardcode_direct=$hardcode_direct 22742 22743 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22744 # DIR into the resulting binary and the resulting library dependency is 22745 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 22746 # library is relocated. 22747 hardcode_direct_absolute=$hardcode_direct_absolute 22748 22749 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22750 # into the resulting binary. 22751 hardcode_minus_L=$hardcode_minus_L 22752 22753 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22754 # into the resulting binary. 22755 hardcode_shlibpath_var=$hardcode_shlibpath_var 22756 22757 # Set to "yes" if building a shared library automatically hardcodes DIR 22758 # into the library and all subsequent libraries and executables linked 22759 # against it. 22760 hardcode_automatic=$hardcode_automatic 22761 22762 # Set to yes if linker adds runtime paths of dependent libraries 22763 # to runtime path list. 22764 inherit_rpath=$inherit_rpath 22765 22766 # Whether libtool must link a program against all its dependency libraries. 22767 link_all_deplibs=$link_all_deplibs 22768 22769 # Set to "yes" if exported symbols are required. 22770 always_export_symbols=$always_export_symbols 22771 22772 # The commands to list exported symbols. 22773 export_symbols_cmds=$lt_export_symbols_cmds 22774 22775 # Symbols that should not be listed in the preloaded symbols. 22776 exclude_expsyms=$lt_exclude_expsyms 22777 22778 # Symbols that must always be exported. 22779 include_expsyms=$lt_include_expsyms 22780 22781 # Commands necessary for linking programs (against libraries) with templates. 22782 prelink_cmds=$lt_prelink_cmds 22783 22784 # Commands necessary for finishing linking programs. 22785 postlink_cmds=$lt_postlink_cmds 22786 22787 # Specify filename containing input files. 22788 file_list_spec=$lt_file_list_spec 22789 22790 # How to hardcode a shared library path into an executable. 22791 hardcode_action=$hardcode_action 22792 22793 # ### END LIBTOOL CONFIG 22794 22795 _LT_EOF 22796 22797 cat <<'_LT_EOF' >> "$cfgfile" 22798 22799 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22800 22801 # func_munge_path_list VARIABLE PATH 22802 # ----------------------------------- 22803 # VARIABLE is name of variable containing _space_ separated list of 22804 # directories to be munged by the contents of PATH, which is string 22805 # having a format: 22806 # "DIR[:DIR]:" 22807 # string "DIR[ DIR]" will be prepended to VARIABLE 22808 # ":DIR[:DIR]" 22809 # string "DIR[ DIR]" will be appended to VARIABLE 22810 # "DIRP[:DIRP]::[DIRA:]DIRA" 22811 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22812 # "DIRA[ DIRA]" will be appended to VARIABLE 22813 # "DIR[:DIR]" 22814 # VARIABLE will be replaced by "DIR[ DIR]" 22815 func_munge_path_list () 22816 { 22817 case x$2 in 22818 x) 22819 ;; 22820 *:) 22821 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22822 ;; 22823 x:*) 22824 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22825 ;; 22826 *::*) 22827 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22828 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22829 ;; 22830 *) 22831 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22832 ;; 22833 esac 22834 } 22835 22836 22837 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22838 func_cc_basename () 22839 { 22840 for cc_temp in $*""; do 22841 case $cc_temp in 22842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22844 \-*) ;; 22845 *) break;; 22846 esac 22847 done 22848 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22849 } 22850 22851 22852 # ### END FUNCTIONS SHARED WITH CONFIGURE 22853 22854 _LT_EOF 22855 22856 case $host_os in 22857 aix3*) 22858 cat <<\_LT_EOF >> "$cfgfile" 22859 # AIX sometimes has problems with the GCC collect2 program. For some 22860 # reason, if we set the COLLECT_NAMES environment variable, the problems 22861 # vanish in a puff of smoke. 22862 if test set != "${COLLECT_NAMES+set}"; then 22863 COLLECT_NAMES= 22864 export COLLECT_NAMES 22865 fi 22866 _LT_EOF 22867 ;; 22868 esac 22869 22870 22871 22872 ltmain=$ac_aux_dir/ltmain.sh 22873 22874 22875 # We use sed instead of cat because bash on DJGPP gets confused if 22876 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22877 # text mode, it properly converts lines to CR/LF. This bash problem 22878 # is reportedly fixed, but why not run on old versions too? 22879 $SED '$q' "$ltmain" >> "$cfgfile" \ 22880 || (rm -f "$cfgfile"; exit 1) 22881 22882 mv -f "$cfgfile" "$ofile" || 22883 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22884 chmod +x "$ofile" 22885 22886 ;; 22887 22888 esac 22889 done # for ac_tag 22890 22891 22892 as_fn_exit 0 22893 _ACEOF 22894 ac_clean_files=$ac_clean_files_save 22895 22896 test $ac_write_fail = 0 || 22897 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22898 22899 22900 # configure is writing to config.log, and then calls config.status. 22901 # config.status does its own redirection, appending to config.log. 22902 # Unfortunately, on DOS this fails, as config.log is still kept open 22903 # by configure, so config.status won't be able to write to it; its 22904 # output is simply discarded. So we exec the FD to /dev/null, 22905 # effectively closing config.log, so it can be properly (re)opened and 22906 # appended to by config.status. When coming back to configure, we 22907 # need to make the FD available again. 22908 if test "$no_create" != yes; then 22909 ac_cs_success=: 22910 ac_config_status_args= 22911 test "$silent" = yes && 22912 ac_config_status_args="$ac_config_status_args --quiet" 22913 exec 5>/dev/null 22914 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22915 exec 5>>config.log 22916 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22917 # would make configure fail if this is the last instruction. 22918 $ac_cs_success || as_fn_exit 1 22919 fi 22920 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22922 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22923 fi 22924 22925 22926