1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xf86-video-ast 1.2.1. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/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-ast/-/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-ast' 617 PACKAGE_TARNAME='xf86-video-ast' 618 PACKAGE_VERSION='1.2.1' 619 PACKAGE_STRING='xf86-video-ast 1.2.1' 620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/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 XSERVER_LIBPCIACCESS_FALSE 662 XSERVER_LIBPCIACCESS_TRUE 663 PCIACCESS_LIBS 664 PCIACCESS_CFLAGS 665 XORG_LIBS 666 XORG_CFLAGS 667 moduledir 668 LT_SYS_LIBRARY_PATH 669 OTOOL64 670 OTOOL 671 LIPO 672 NMEDIT 673 DSYMUTIL 674 MANIFEST_TOOL 675 RANLIB 676 ac_ct_AR 677 AR 678 DLLTOOL 679 OBJDUMP 680 FILECMD 681 LN_S 682 NM 683 ac_ct_DUMPBIN 684 DUMPBIN 685 LD 686 FGREP 687 EGREP 688 GREP 689 LIBTOOL 690 MAN_SUBSTS 691 XORG_MAN_PAGE 692 ADMIN_MAN_DIR 693 DRIVER_MAN_DIR 694 MISC_MAN_DIR 695 FILE_MAN_DIR 696 LIB_MAN_DIR 697 APP_MAN_DIR 698 ADMIN_MAN_SUFFIX 699 DRIVER_MAN_SUFFIX 700 MISC_MAN_SUFFIX 701 FILE_MAN_SUFFIX 702 LIB_MAN_SUFFIX 703 APP_MAN_SUFFIX 704 SED 705 host_os 706 host_vendor 707 host_cpu 708 host 709 build_os 710 build_vendor 711 build_cpu 712 build 713 INSTALL_CMD 714 PKG_CONFIG_LIBDIR 715 PKG_CONFIG_PATH 716 PKG_CONFIG 717 CHANGELOG_CMD 718 STRICT_CFLAGS 719 CWARNFLAGS 720 BASE_CFLAGS 721 am__fastdepCC_FALSE 722 am__fastdepCC_TRUE 723 CCDEPMODE 724 am__nodep 725 AMDEPBACKSLASH 726 AMDEP_FALSE 727 AMDEP_TRUE 728 am__include 729 DEPDIR 730 OBJEXT 731 EXEEXT 732 ac_ct_CC 733 CPPFLAGS 734 LDFLAGS 735 CFLAGS 736 CC 737 am__xargs_n 738 am__rm_f_notfound 739 AM_BACKSLASH 740 AM_DEFAULT_VERBOSITY 741 AM_DEFAULT_V 742 AM_V 743 CSCOPE 744 ETAGS 745 CTAGS 746 am__untar 747 am__tar 748 AMTAR 749 am__leading_dot 750 SET_MAKE 751 AWK 752 mkdir_p 753 MKDIR_P 754 INSTALL_STRIP_PROGRAM 755 STRIP 756 install_sh 757 MAKEINFO 758 AUTOHEADER 759 AUTOMAKE 760 AUTOCONF 761 ACLOCAL 762 VERSION 763 PACKAGE 764 CYGPATH_W 765 am__isrc 766 INSTALL_DATA 767 INSTALL_SCRIPT 768 INSTALL_PROGRAM 769 target_alias 770 host_alias 771 build_alias 772 LIBS 773 ECHO_T 774 ECHO_N 775 ECHO_C 776 DEFS 777 mandir 778 localedir 779 libdir 780 psdir 781 pdfdir 782 dvidir 783 htmldir 784 infodir 785 docdir 786 oldincludedir 787 includedir 788 runstatedir 789 localstatedir 790 sharedstatedir 791 sysconfdir 792 datadir 793 datarootdir 794 libexecdir 795 sbindir 796 bindir 797 program_transform_name 798 prefix 799 exec_prefix 800 PACKAGE_URL 801 PACKAGE_BUGREPORT 802 PACKAGE_STRING 803 PACKAGE_VERSION 804 PACKAGE_TARNAME 805 PACKAGE_NAME 806 PATH_SEPARATOR 807 SHELL 808 am__quote' 809 ac_subst_files='' 810 ac_user_opts=' 811 enable_option_checking 812 enable_silent_rules 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 PCIACCESS_CFLAGS 843 PCIACCESS_LIBS' 844 845 846 # Initialize some variables set by options. 847 ac_init_help= 848 ac_init_version=false 849 ac_unrecognized_opts= 850 ac_unrecognized_sep= 851 # The variables have the same names as the options, with 852 # dashes changed to underlines. 853 cache_file=/dev/null 854 exec_prefix=NONE 855 no_create= 856 no_recursion= 857 prefix=NONE 858 program_prefix=NONE 859 program_suffix=NONE 860 program_transform_name=s,x,x, 861 silent= 862 site= 863 srcdir= 864 verbose= 865 x_includes=NONE 866 x_libraries=NONE 867 868 # Installation directory options. 869 # These are left unexpanded so users can "make install exec_prefix=/foo" 870 # and all the variables that are supposed to be based on exec_prefix 871 # by default will actually change. 872 # Use braces instead of parens because sh, perl, etc. also accept them. 873 # (The list follows the same order as the GNU Coding Standards.) 874 bindir='${exec_prefix}/bin' 875 sbindir='${exec_prefix}/sbin' 876 libexecdir='${exec_prefix}/libexec' 877 datarootdir='${prefix}/share' 878 datadir='${datarootdir}' 879 sysconfdir='${prefix}/etc' 880 sharedstatedir='${prefix}/com' 881 localstatedir='${prefix}/var' 882 runstatedir='${localstatedir}/run' 883 includedir='${prefix}/include' 884 oldincludedir='/usr/include' 885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 886 infodir='${datarootdir}/info' 887 htmldir='${docdir}' 888 dvidir='${docdir}' 889 pdfdir='${docdir}' 890 psdir='${docdir}' 891 libdir='${exec_prefix}/lib' 892 localedir='${datarootdir}/locale' 893 mandir='${datarootdir}/man' 894 895 ac_prev= 896 ac_dashdash= 897 for ac_option 898 do 899 # If the previous option needs an argument, assign it. 900 if test -n "$ac_prev"; then 901 eval $ac_prev=\$ac_option 902 ac_prev= 903 continue 904 fi 905 906 case $ac_option in 907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 908 *=) ac_optarg= ;; 909 *) ac_optarg=yes ;; 910 esac 911 912 case $ac_dashdash$ac_option in 913 --) 914 ac_dashdash=yes ;; 915 916 -bindir | --bindir | --bindi | --bind | --bin | --bi) 917 ac_prev=bindir ;; 918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 919 bindir=$ac_optarg ;; 920 921 -build | --build | --buil | --bui | --bu) 922 ac_prev=build_alias ;; 923 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 924 build_alias=$ac_optarg ;; 925 926 -cache-file | --cache-file | --cache-fil | --cache-fi \ 927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 928 ac_prev=cache_file ;; 929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 931 cache_file=$ac_optarg ;; 932 933 --config-cache | -C) 934 cache_file=config.cache ;; 935 936 -datadir | --datadir | --datadi | --datad) 937 ac_prev=datadir ;; 938 -datadir=* | --datadir=* | --datadi=* | --datad=*) 939 datadir=$ac_optarg ;; 940 941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 942 | --dataroo | --dataro | --datar) 943 ac_prev=datarootdir ;; 944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 946 datarootdir=$ac_optarg ;; 947 948 -disable-* | --disable-*) 949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 950 # Reject names that are not valid shell variable names. 951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 952 as_fn_error $? "invalid feature name: '$ac_useropt'" 953 ac_useropt_orig=$ac_useropt 954 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 955 case $ac_user_opts in 956 *" 957 "enable_$ac_useropt" 958 "*) ;; 959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 960 ac_unrecognized_sep=', ';; 961 esac 962 eval enable_$ac_useropt=no ;; 963 964 -docdir | --docdir | --docdi | --doc | --do) 965 ac_prev=docdir ;; 966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 967 docdir=$ac_optarg ;; 968 969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 970 ac_prev=dvidir ;; 971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 972 dvidir=$ac_optarg ;; 973 974 -enable-* | --enable-*) 975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 976 # Reject names that are not valid shell variable names. 977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 978 as_fn_error $? "invalid feature name: '$ac_useropt'" 979 ac_useropt_orig=$ac_useropt 980 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 981 case $ac_user_opts in 982 *" 983 "enable_$ac_useropt" 984 "*) ;; 985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 986 ac_unrecognized_sep=', ';; 987 esac 988 eval enable_$ac_useropt=\$ac_optarg ;; 989 990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 992 | --exec | --exe | --ex) 993 ac_prev=exec_prefix ;; 994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 996 | --exec=* | --exe=* | --ex=*) 997 exec_prefix=$ac_optarg ;; 998 999 -gas | --gas | --ga | --g) 1000 # Obsolete; use --with-gas. 1001 with_gas=yes ;; 1002 1003 -help | --help | --hel | --he | -h) 1004 ac_init_help=long ;; 1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1006 ac_init_help=recursive ;; 1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1008 ac_init_help=short ;; 1009 1010 -host | --host | --hos | --ho) 1011 ac_prev=host_alias ;; 1012 -host=* | --host=* | --hos=* | --ho=*) 1013 host_alias=$ac_optarg ;; 1014 1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1016 ac_prev=htmldir ;; 1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1018 | --ht=*) 1019 htmldir=$ac_optarg ;; 1020 1021 -includedir | --includedir | --includedi | --included | --include \ 1022 | --includ | --inclu | --incl | --inc) 1023 ac_prev=includedir ;; 1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1025 | --includ=* | --inclu=* | --incl=* | --inc=*) 1026 includedir=$ac_optarg ;; 1027 1028 -infodir | --infodir | --infodi | --infod | --info | --inf) 1029 ac_prev=infodir ;; 1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1031 infodir=$ac_optarg ;; 1032 1033 -libdir | --libdir | --libdi | --libd) 1034 ac_prev=libdir ;; 1035 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1036 libdir=$ac_optarg ;; 1037 1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1039 | --libexe | --libex | --libe) 1040 ac_prev=libexecdir ;; 1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1042 | --libexe=* | --libex=* | --libe=*) 1043 libexecdir=$ac_optarg ;; 1044 1045 -localedir | --localedir | --localedi | --localed | --locale) 1046 ac_prev=localedir ;; 1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1048 localedir=$ac_optarg ;; 1049 1050 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1051 | --localstate | --localstat | --localsta | --localst | --locals) 1052 ac_prev=localstatedir ;; 1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1055 localstatedir=$ac_optarg ;; 1056 1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1058 ac_prev=mandir ;; 1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1060 mandir=$ac_optarg ;; 1061 1062 -nfp | --nfp | --nf) 1063 # Obsolete; use --without-fp. 1064 with_fp=no ;; 1065 1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1067 | --no-cr | --no-c | -n) 1068 no_create=yes ;; 1069 1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1072 no_recursion=yes ;; 1073 1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1076 | --oldin | --oldi | --old | --ol | --o) 1077 ac_prev=oldincludedir ;; 1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1081 oldincludedir=$ac_optarg ;; 1082 1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1084 ac_prev=prefix ;; 1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1086 prefix=$ac_optarg ;; 1087 1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1089 | --program-pre | --program-pr | --program-p) 1090 ac_prev=program_prefix ;; 1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1093 program_prefix=$ac_optarg ;; 1094 1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1096 | --program-suf | --program-su | --program-s) 1097 ac_prev=program_suffix ;; 1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1100 program_suffix=$ac_optarg ;; 1101 1102 -program-transform-name | --program-transform-name \ 1103 | --program-transform-nam | --program-transform-na \ 1104 | --program-transform-n | --program-transform- \ 1105 | --program-transform | --program-transfor \ 1106 | --program-transfo | --program-transf \ 1107 | --program-trans | --program-tran \ 1108 | --progr-tra | --program-tr | --program-t) 1109 ac_prev=program_transform_name ;; 1110 -program-transform-name=* | --program-transform-name=* \ 1111 | --program-transform-nam=* | --program-transform-na=* \ 1112 | --program-transform-n=* | --program-transform-=* \ 1113 | --program-transform=* | --program-transfor=* \ 1114 | --program-transfo=* | --program-transf=* \ 1115 | --program-trans=* | --program-tran=* \ 1116 | --progr-tra=* | --program-tr=* | --program-t=*) 1117 program_transform_name=$ac_optarg ;; 1118 1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1120 ac_prev=pdfdir ;; 1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1122 pdfdir=$ac_optarg ;; 1123 1124 -psdir | --psdir | --psdi | --psd | --ps) 1125 ac_prev=psdir ;; 1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1127 psdir=$ac_optarg ;; 1128 1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1130 | -silent | --silent | --silen | --sile | --sil) 1131 silent=yes ;; 1132 1133 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1134 | --runstate | --runstat | --runsta | --runst | --runs \ 1135 | --run | --ru | --r) 1136 ac_prev=runstatedir ;; 1137 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1138 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1139 | --run=* | --ru=* | --r=*) 1140 runstatedir=$ac_optarg ;; 1141 1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1143 ac_prev=sbindir ;; 1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1145 | --sbi=* | --sb=*) 1146 sbindir=$ac_optarg ;; 1147 1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1150 | --sharedst | --shareds | --shared | --share | --shar \ 1151 | --sha | --sh) 1152 ac_prev=sharedstatedir ;; 1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1156 | --sha=* | --sh=*) 1157 sharedstatedir=$ac_optarg ;; 1158 1159 -site | --site | --sit) 1160 ac_prev=site ;; 1161 -site=* | --site=* | --sit=*) 1162 site=$ac_optarg ;; 1163 1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1165 ac_prev=srcdir ;; 1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1167 srcdir=$ac_optarg ;; 1168 1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1170 | --syscon | --sysco | --sysc | --sys | --sy) 1171 ac_prev=sysconfdir ;; 1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1174 sysconfdir=$ac_optarg ;; 1175 1176 -target | --target | --targe | --targ | --tar | --ta | --t) 1177 ac_prev=target_alias ;; 1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1179 target_alias=$ac_optarg ;; 1180 1181 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1182 verbose=yes ;; 1183 1184 -version | --version | --versio | --versi | --vers | -V) 1185 ac_init_version=: ;; 1186 1187 -with-* | --with-*) 1188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1189 # Reject names that are not valid shell variable names. 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1191 as_fn_error $? "invalid package name: '$ac_useropt'" 1192 ac_useropt_orig=$ac_useropt 1193 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1194 case $ac_user_opts in 1195 *" 1196 "with_$ac_useropt" 1197 "*) ;; 1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1199 ac_unrecognized_sep=', ';; 1200 esac 1201 eval with_$ac_useropt=\$ac_optarg ;; 1202 1203 -without-* | --without-*) 1204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1205 # Reject names that are not valid shell variable names. 1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1207 as_fn_error $? "invalid package name: '$ac_useropt'" 1208 ac_useropt_orig=$ac_useropt 1209 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1210 case $ac_user_opts in 1211 *" 1212 "with_$ac_useropt" 1213 "*) ;; 1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1215 ac_unrecognized_sep=', ';; 1216 esac 1217 eval with_$ac_useropt=no ;; 1218 1219 --x) 1220 # Obsolete; use --with-x. 1221 with_x=yes ;; 1222 1223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1224 | --x-incl | --x-inc | --x-in | --x-i) 1225 ac_prev=x_includes ;; 1226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1228 x_includes=$ac_optarg ;; 1229 1230 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1232 ac_prev=x_libraries ;; 1233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1235 x_libraries=$ac_optarg ;; 1236 1237 -*) as_fn_error $? "unrecognized option: '$ac_option' 1238 Try '$0 --help' for more information" 1239 ;; 1240 1241 *=*) 1242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1243 # Reject names that are not valid shell variable names. 1244 case $ac_envvar in #( 1245 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1246 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1247 esac 1248 eval $ac_envvar=\$ac_optarg 1249 export $ac_envvar ;; 1250 1251 *) 1252 # FIXME: should be removed in autoconf 3.0. 1253 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1255 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1257 ;; 1258 1259 esac 1260 done 1261 1262 if test -n "$ac_prev"; then 1263 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1264 as_fn_error $? "missing argument to $ac_option" 1265 fi 1266 1267 if test -n "$ac_unrecognized_opts"; then 1268 case $enable_option_checking in 1269 no) ;; 1270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1271 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1272 esac 1273 fi 1274 1275 # Check all directory arguments for consistency. 1276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1277 datadir sysconfdir sharedstatedir localstatedir includedir \ 1278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1279 libdir localedir mandir runstatedir 1280 do 1281 eval ac_val=\$$ac_var 1282 # Remove trailing slashes. 1283 case $ac_val in 1284 */ ) 1285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1286 eval $ac_var=\$ac_val;; 1287 esac 1288 # Be sure to have absolute directory names. 1289 case $ac_val in 1290 [\\/$]* | ?:[\\/]* ) continue;; 1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1292 esac 1293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1294 done 1295 1296 # There might be people who depend on the old broken behavior: '$host' 1297 # used to hold the argument of --host etc. 1298 # FIXME: To remove some day. 1299 build=$build_alias 1300 host=$host_alias 1301 target=$target_alias 1302 1303 # FIXME: To remove some day. 1304 if test "x$host_alias" != x; then 1305 if test "x$build_alias" = x; then 1306 cross_compiling=maybe 1307 elif test "x$build_alias" != "x$host_alias"; then 1308 cross_compiling=yes 1309 fi 1310 fi 1311 1312 ac_tool_prefix= 1313 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1314 1315 test "$silent" = yes && exec 6>/dev/null 1316 1317 1318 ac_pwd=`pwd` && test -n "$ac_pwd" && 1319 ac_ls_di=`ls -di .` && 1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1321 as_fn_error $? "working directory cannot be determined" 1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1323 as_fn_error $? "pwd does not report name of working directory" 1324 1325 1326 # Find the source files, if location was not specified. 1327 if test -z "$srcdir"; then 1328 ac_srcdir_defaulted=yes 1329 # Try the directory containing this script, then the parent directory. 1330 ac_confdir=`$as_dirname -- "$as_myself" || 1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1332 X"$as_myself" : 'X\(//\)[^/]' \| \ 1333 X"$as_myself" : 'X\(//\)$' \| \ 1334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1335 printf "%s\n" X"$as_myself" | 1336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\/\)[^/].*/{ 1341 s//\1/ 1342 q 1343 } 1344 /^X\(\/\/\)$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\).*/{ 1349 s//\1/ 1350 q 1351 } 1352 s/.*/./; q'` 1353 srcdir=$ac_confdir 1354 if test ! -r "$srcdir/$ac_unique_file"; then 1355 srcdir=.. 1356 fi 1357 else 1358 ac_srcdir_defaulted=no 1359 fi 1360 if test ! -r "$srcdir/$ac_unique_file"; then 1361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1363 fi 1364 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1365 ac_abs_confdir=`( 1366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1367 pwd)` 1368 # When building in place, set srcdir=. 1369 if test "$ac_abs_confdir" = "$ac_pwd"; then 1370 srcdir=. 1371 fi 1372 # Remove unnecessary trailing slashes from srcdir. 1373 # Double slashes in file names in object file debugging info 1374 # mess up M-x gdb in Emacs. 1375 case $srcdir in 1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1377 esac 1378 for ac_var in $ac_precious_vars; do 1379 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_env_${ac_var}_value=\$${ac_var} 1381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1382 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1383 done 1384 1385 # 1386 # Report the --help message. 1387 # 1388 if test "$ac_init_help" = "long"; then 1389 # Omit some internal or obsolete options to make the list less imposing. 1390 # This message is too long to be a string in the A/UX 3.1 sh. 1391 cat <<_ACEOF 1392 'configure' configures xf86-video-ast 1.2.1 to adapt to many kinds of systems. 1393 1394 Usage: $0 [OPTION]... [VAR=VALUE]... 1395 1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1397 VAR=VALUE. See below for descriptions of some of the useful variables. 1398 1399 Defaults for the options are specified in brackets. 1400 1401 Configuration: 1402 -h, --help display this help and exit 1403 --help=short display options specific to this package 1404 --help=recursive display the short help of all the included packages 1405 -V, --version display version information and exit 1406 -q, --quiet, --silent do not print 'checking ...' messages 1407 --cache-file=FILE cache test results in FILE [disabled] 1408 -C, --config-cache alias for '--cache-file=config.cache' 1409 -n, --no-create do not create output files 1410 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1411 1412 Installation directories: 1413 --prefix=PREFIX install architecture-independent files in PREFIX 1414 [$ac_default_prefix] 1415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1416 [PREFIX] 1417 1418 By default, 'make install' will install all the files in 1419 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1420 an installation prefix other than '$ac_default_prefix' using '--prefix', 1421 for instance '--prefix=\$HOME'. 1422 1423 For better control, use the options below. 1424 1425 Fine tuning of the installation directories: 1426 --bindir=DIR user executables [EPREFIX/bin] 1427 --sbindir=DIR system admin executables [EPREFIX/sbin] 1428 --libexecdir=DIR program executables [EPREFIX/libexec] 1429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1431 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1432 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1433 --libdir=DIR object code libraries [EPREFIX/lib] 1434 --includedir=DIR C header files [PREFIX/include] 1435 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1438 --infodir=DIR info documentation [DATAROOTDIR/info] 1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1440 --mandir=DIR man documentation [DATAROOTDIR/man] 1441 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ast] 1442 --htmldir=DIR html documentation [DOCDIR] 1443 --dvidir=DIR dvi documentation [DOCDIR] 1444 --pdfdir=DIR pdf documentation [DOCDIR] 1445 --psdir=DIR ps documentation [DOCDIR] 1446 _ACEOF 1447 1448 cat <<\_ACEOF 1449 1450 Program names: 1451 --program-prefix=PREFIX prepend PREFIX to installed program names 1452 --program-suffix=SUFFIX append SUFFIX to installed program names 1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1454 1455 System types: 1456 --build=BUILD configure for building on BUILD [guessed] 1457 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1458 _ACEOF 1459 fi 1460 1461 if test -n "$ac_init_help"; then 1462 case $ac_init_help in 1463 short | recursive ) echo "Configuration of xf86-video-ast 1.2.1:";; 1464 esac 1465 cat <<\_ACEOF 1466 1467 Optional Features: 1468 --disable-option-checking ignore unrecognized --enable/--with options 1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1471 --enable-silent-rules less verbose build output (undo: "make V=1") 1472 --disable-silent-rules verbose build output (undo: "make V=0") 1473 --enable-dependency-tracking 1474 do not reject slow dependency extractors 1475 --disable-dependency-tracking 1476 speeds up one-time build 1477 --disable-selective-werror 1478 Turn off selective compiler errors. (default: 1479 enabled) 1480 --enable-strict-compilation 1481 Enable all warnings from compiler and make them 1482 errors (default: disabled) 1483 --enable-static[=PKGS] build static libraries [default=no] 1484 --enable-shared[=PKGS] build shared libraries [default=yes] 1485 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1486 both] 1487 --enable-fast-install[=PKGS] 1488 optimize for fast installation [default=yes] 1489 --enable-aix-soname=aix|svr4|both 1490 shared library versioning (aka "SONAME") variant to 1491 provide on AIX, [default=aix]. 1492 --disable-libtool-lock avoid locking (might break parallel builds) 1493 1494 Optional Packages: 1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1498 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1499 compiler's sysroot if not specified). 1500 --with-xorg-module-dir=DIR 1501 Default xorg module directory 1502 [[default=$libdir/xorg/modules]] 1503 1504 Some influential environment variables: 1505 CC C compiler command 1506 CFLAGS C compiler flags 1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1508 nonstandard directory <lib dir> 1509 LIBS libraries to pass to the linker, e.g. -l<library> 1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1511 you have headers in a nonstandard directory <include dir> 1512 PKG_CONFIG path to pkg-config utility 1513 PKG_CONFIG_PATH 1514 directories to add to pkg-config's search path 1515 PKG_CONFIG_LIBDIR 1516 path overriding pkg-config's built-in search path 1517 LT_SYS_LIBRARY_PATH 1518 User-defined run-time library search path. 1519 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1520 XORG_LIBS linker flags for XORG, overriding pkg-config 1521 PCIACCESS_CFLAGS 1522 C compiler flags for PCIACCESS, overriding pkg-config 1523 PCIACCESS_LIBS 1524 linker flags for PCIACCESS, overriding pkg-config 1525 1526 Use these variables to override the choices made by 'configure' or to help 1527 it to find libraries and programs with nonstandard names/locations. 1528 1529 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/issues>. 1530 _ACEOF 1531 ac_status=$? 1532 fi 1533 1534 if test "$ac_init_help" = "recursive"; then 1535 # If there are subdirs, report their specific --help. 1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1537 test -d "$ac_dir" || 1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1539 continue 1540 ac_builddir=. 1541 1542 case "$ac_dir" in 1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1544 *) 1545 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1546 # A ".." for each directory in $ac_dir_suffix. 1547 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1548 case $ac_top_builddir_sub in 1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1551 esac ;; 1552 esac 1553 ac_abs_top_builddir=$ac_pwd 1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1555 # for backward compatibility: 1556 ac_top_builddir=$ac_top_build_prefix 1557 1558 case $srcdir in 1559 .) # We are building in place. 1560 ac_srcdir=. 1561 ac_top_srcdir=$ac_top_builddir_sub 1562 ac_abs_top_srcdir=$ac_pwd ;; 1563 [\\/]* | ?:[\\/]* ) # Absolute name. 1564 ac_srcdir=$srcdir$ac_dir_suffix; 1565 ac_top_srcdir=$srcdir 1566 ac_abs_top_srcdir=$srcdir ;; 1567 *) # Relative name. 1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1569 ac_top_srcdir=$ac_top_build_prefix$srcdir 1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1571 esac 1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1573 1574 cd "$ac_dir" || { ac_status=$?; continue; } 1575 # Check for configure.gnu first; this name is used for a wrapper for 1576 # Metaconfig's "Configure" on case-insensitive file systems. 1577 if test -f "$ac_srcdir/configure.gnu"; then 1578 echo && 1579 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1580 elif test -f "$ac_srcdir/configure"; then 1581 echo && 1582 $SHELL "$ac_srcdir/configure" --help=recursive 1583 else 1584 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1585 fi || ac_status=$? 1586 cd "$ac_pwd" || { ac_status=$?; break; } 1587 done 1588 fi 1589 1590 test -n "$ac_init_help" && exit $ac_status 1591 if $ac_init_version; then 1592 cat <<\_ACEOF 1593 xf86-video-ast configure 1.2.1 1594 generated by GNU Autoconf 2.72 1595 1596 Copyright (C) 2023 Free Software Foundation, Inc. 1597 This configure script is free software; the Free Software Foundation 1598 gives unlimited permission to copy, distribute and modify it. 1599 _ACEOF 1600 exit 1601 fi 1602 1603 ## ------------------------ ## 1604 ## Autoconf initialization. ## 1605 ## ------------------------ ## 1606 1607 # ac_fn_c_try_compile LINENO 1608 # -------------------------- 1609 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1610 ac_fn_c_try_compile () 1611 { 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 rm -f conftest.$ac_objext conftest.beam 1614 if { { ac_try="$ac_compile" 1615 case "(($ac_try" in 1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1617 *) ac_try_echo=$ac_try;; 1618 esac 1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1620 printf "%s\n" "$ac_try_echo"; } >&5 1621 (eval "$ac_compile") 2>conftest.err 1622 ac_status=$? 1623 if test -s conftest.err; then 1624 grep -v '^ *+' conftest.err >conftest.er1 1625 cat conftest.er1 >&5 1626 mv -f conftest.er1 conftest.err 1627 fi 1628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1629 test $ac_status = 0; } && { 1630 test -z "$ac_c_werror_flag" || 1631 test ! -s conftest.err 1632 } && test -s conftest.$ac_objext 1633 then : 1634 ac_retval=0 1635 else case e in #( 1636 e) printf "%s\n" "$as_me: failed program was:" >&5 1637 sed 's/^/| /' conftest.$ac_ext >&5 1638 1639 ac_retval=1 ;; 1640 esac 1641 fi 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 as_fn_set_status $ac_retval 1644 1645 } # ac_fn_c_try_compile 1646 1647 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1648 # ------------------------------------------------------------------ 1649 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1650 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1651 ac_fn_check_decl () 1652 { 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 as_decl_name=`echo $2|sed 's/ *(.*//'` 1655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1656 printf %s "checking whether $as_decl_name is declared... " >&6; } 1657 if eval test \${$3+y} 1658 then : 1659 printf %s "(cached) " >&6 1660 else case e in #( 1661 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1662 eval ac_save_FLAGS=\$$6 1663 as_fn_append $6 " $5" 1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1665 /* end confdefs.h. */ 1666 $4 1667 int 1668 main (void) 1669 { 1670 #ifndef $as_decl_name 1671 #ifdef __cplusplus 1672 (void) $as_decl_use; 1673 #else 1674 (void) $as_decl_name; 1675 #endif 1676 #endif 1677 1678 ; 1679 return 0; 1680 } 1681 _ACEOF 1682 if ac_fn_c_try_compile "$LINENO" 1683 then : 1684 eval "$3=yes" 1685 else case e in #( 1686 e) eval "$3=no" ;; 1687 esac 1688 fi 1689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1690 eval $6=\$ac_save_FLAGS 1691 ;; 1692 esac 1693 fi 1694 eval ac_res=\$$3 1695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1696 printf "%s\n" "$ac_res" >&6; } 1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 1699 } # ac_fn_check_decl 1700 1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1702 # ------------------------------------------------------- 1703 # Tests whether HEADER exists and can be compiled using the include files in 1704 # INCLUDES, setting the cache variable VAR accordingly. 1705 ac_fn_c_check_header_compile () 1706 { 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1709 printf %s "checking for $2... " >&6; } 1710 if eval test \${$3+y} 1711 then : 1712 printf %s "(cached) " >&6 1713 else case e in #( 1714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1715 /* end confdefs.h. */ 1716 $4 1717 #include <$2> 1718 _ACEOF 1719 if ac_fn_c_try_compile "$LINENO" 1720 then : 1721 eval "$3=yes" 1722 else case e in #( 1723 e) eval "$3=no" ;; 1724 esac 1725 fi 1726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1727 esac 1728 fi 1729 eval ac_res=\$$3 1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1731 printf "%s\n" "$ac_res" >&6; } 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 1734 } # ac_fn_c_check_header_compile 1735 1736 # ac_fn_c_try_link LINENO 1737 # ----------------------- 1738 # Try to link conftest.$ac_ext, and return whether this succeeded. 1739 ac_fn_c_try_link () 1740 { 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1743 if { { ac_try="$ac_link" 1744 case "(($ac_try" in 1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1746 *) ac_try_echo=$ac_try;; 1747 esac 1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1749 printf "%s\n" "$ac_try_echo"; } >&5 1750 (eval "$ac_link") 2>conftest.err 1751 ac_status=$? 1752 if test -s conftest.err; then 1753 grep -v '^ *+' conftest.err >conftest.er1 1754 cat conftest.er1 >&5 1755 mv -f conftest.er1 conftest.err 1756 fi 1757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1758 test $ac_status = 0; } && { 1759 test -z "$ac_c_werror_flag" || 1760 test ! -s conftest.err 1761 } && test -s conftest$ac_exeext && { 1762 test "$cross_compiling" = yes || 1763 test -x conftest$ac_exeext 1764 } 1765 then : 1766 ac_retval=0 1767 else case e in #( 1768 e) printf "%s\n" "$as_me: failed program was:" >&5 1769 sed 's/^/| /' conftest.$ac_ext >&5 1770 1771 ac_retval=1 ;; 1772 esac 1773 fi 1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1776 # interfere with the next link command; also delete a directory that is 1777 # left behind by Apple's compiler. We do this before executing the actions. 1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 as_fn_set_status $ac_retval 1781 1782 } # ac_fn_c_try_link 1783 1784 # ac_fn_c_check_func LINENO FUNC VAR 1785 # ---------------------------------- 1786 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1787 ac_fn_c_check_func () 1788 { 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1791 printf %s "checking for $2... " >&6; } 1792 if eval test \${$3+y} 1793 then : 1794 printf %s "(cached) " >&6 1795 else case e in #( 1796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797 /* end confdefs.h. */ 1798 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1800 #define $2 innocuous_$2 1801 1802 /* System header to define __stub macros and hopefully few prototypes, 1803 which can conflict with char $2 (void); below. */ 1804 1805 #include <limits.h> 1806 #undef $2 1807 1808 /* Override any GCC internal prototype to avoid an error. 1809 Use char because int might match the return type of a GCC 1810 builtin and then its argument prototype would still apply. */ 1811 #ifdef __cplusplus 1812 extern "C" 1813 #endif 1814 char $2 (void); 1815 /* The GNU C library defines this for functions which it implements 1816 to always fail with ENOSYS. Some functions are actually named 1817 something starting with __ and the normal name is an alias. */ 1818 #if defined __stub_$2 || defined __stub___$2 1819 choke me 1820 #endif 1821 1822 int 1823 main (void) 1824 { 1825 return $2 (); 1826 ; 1827 return 0; 1828 } 1829 _ACEOF 1830 if ac_fn_c_try_link "$LINENO" 1831 then : 1832 eval "$3=yes" 1833 else case e in #( 1834 e) eval "$3=no" ;; 1835 esac 1836 fi 1837 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1838 conftest$ac_exeext conftest.$ac_ext ;; 1839 esac 1840 fi 1841 eval ac_res=\$$3 1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1843 printf "%s\n" "$ac_res" >&6; } 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 1846 } # ac_fn_c_check_func 1847 ac_configure_args_raw= 1848 for ac_arg 1849 do 1850 case $ac_arg in 1851 *\'*) 1852 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1853 esac 1854 as_fn_append ac_configure_args_raw " '$ac_arg'" 1855 done 1856 1857 case $ac_configure_args_raw in 1858 *$as_nl*) 1859 ac_safe_unquote= ;; 1860 *) 1861 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1862 ac_unsafe_a="$ac_unsafe_z#~" 1863 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1864 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1865 esac 1866 1867 cat >config.log <<_ACEOF 1868 This file contains any messages produced by compilers while 1869 running configure, to aid debugging if configure makes a mistake. 1870 1871 It was created by xf86-video-ast $as_me 1.2.1, which was 1872 generated by GNU Autoconf 2.72. Invocation command line was 1873 1874 $ $0$ac_configure_args_raw 1875 1876 _ACEOF 1877 exec 5>>config.log 1878 { 1879 cat <<_ASUNAME 1880 ## --------- ## 1881 ## Platform. ## 1882 ## --------- ## 1883 1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1885 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1886 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1887 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1888 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1889 1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1892 1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1900 1901 _ASUNAME 1902 1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1904 for as_dir in $PATH 1905 do 1906 IFS=$as_save_IFS 1907 case $as_dir in #((( 1908 '') as_dir=./ ;; 1909 */) ;; 1910 *) as_dir=$as_dir/ ;; 1911 esac 1912 printf "%s\n" "PATH: $as_dir" 1913 done 1914 IFS=$as_save_IFS 1915 1916 } >&5 1917 1918 cat >&5 <<_ACEOF 1919 1920 1921 ## ----------- ## 1922 ## Core tests. ## 1923 ## ----------- ## 1924 1925 _ACEOF 1926 1927 1928 # Keep a trace of the command line. 1929 # Strip out --no-create and --no-recursion so they do not pile up. 1930 # Strip out --silent because we don't want to record it for future runs. 1931 # Also quote any args containing shell meta-characters. 1932 # Make two passes to allow for proper duplicate-argument suppression. 1933 ac_configure_args= 1934 ac_configure_args0= 1935 ac_configure_args1= 1936 ac_must_keep_next=false 1937 for ac_pass in 1 2 1938 do 1939 for ac_arg 1940 do 1941 case $ac_arg in 1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1944 | -silent | --silent | --silen | --sile | --sil) 1945 continue ;; 1946 *\'*) 1947 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1948 esac 1949 case $ac_pass in 1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1951 2) 1952 as_fn_append ac_configure_args1 " '$ac_arg'" 1953 if test $ac_must_keep_next = true; then 1954 ac_must_keep_next=false # Got value, back to normal. 1955 else 1956 case $ac_arg in 1957 *=* | --config-cache | -C | -disable-* | --disable-* \ 1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1960 | -with-* | --with-* | -without-* | --without-* | --x) 1961 case "$ac_configure_args0 " in 1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1963 esac 1964 ;; 1965 -* ) ac_must_keep_next=true ;; 1966 esac 1967 fi 1968 as_fn_append ac_configure_args " '$ac_arg'" 1969 ;; 1970 esac 1971 done 1972 done 1973 { ac_configure_args0=; unset ac_configure_args0;} 1974 { ac_configure_args1=; unset ac_configure_args1;} 1975 1976 # When interrupted or exit'd, cleanup temporary files, and complete 1977 # config.log. We remove comments because anyway the quotes in there 1978 # would cause problems or look ugly. 1979 # WARNING: Use '\'' to represent an apostrophe within the trap. 1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1981 trap 'exit_status=$? 1982 # Sanitize IFS. 1983 IFS=" "" $as_nl" 1984 # Save into config.log some information that might help in debugging. 1985 { 1986 echo 1987 1988 printf "%s\n" "## ---------------- ## 1989 ## Cache variables. ## 1990 ## ---------------- ##" 1991 echo 1992 # The following way of writing the cache mishandles newlines in values, 1993 ( 1994 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1995 eval ac_val=\$$ac_var 1996 case $ac_val in #( 1997 *${as_nl}*) 1998 case $ac_var in #( 1999 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2000 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2001 esac 2002 case $ac_var in #( 2003 _ | IFS | as_nl) ;; #( 2004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2005 *) { eval $ac_var=; unset $ac_var;} ;; 2006 esac ;; 2007 esac 2008 done 2009 (set) 2>&1 | 2010 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2011 *${as_nl}ac_space=\ *) 2012 sed -n \ 2013 "s/'\''/'\''\\\\'\'''\''/g; 2014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2015 ;; #( 2016 *) 2017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2018 ;; 2019 esac | 2020 sort 2021 ) 2022 echo 2023 2024 printf "%s\n" "## ----------------- ## 2025 ## Output variables. ## 2026 ## ----------------- ##" 2027 echo 2028 for ac_var in $ac_subst_vars 2029 do 2030 eval ac_val=\$$ac_var 2031 case $ac_val in 2032 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2033 esac 2034 printf "%s\n" "$ac_var='\''$ac_val'\''" 2035 done | sort 2036 echo 2037 2038 if test -n "$ac_subst_files"; then 2039 printf "%s\n" "## ------------------- ## 2040 ## File substitutions. ## 2041 ## ------------------- ##" 2042 echo 2043 for ac_var in $ac_subst_files 2044 do 2045 eval ac_val=\$$ac_var 2046 case $ac_val in 2047 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2048 esac 2049 printf "%s\n" "$ac_var='\''$ac_val'\''" 2050 done | sort 2051 echo 2052 fi 2053 2054 if test -s confdefs.h; then 2055 printf "%s\n" "## ----------- ## 2056 ## confdefs.h. ## 2057 ## ----------- ##" 2058 echo 2059 cat confdefs.h 2060 echo 2061 fi 2062 test "$ac_signal" != 0 && 2063 printf "%s\n" "$as_me: caught signal $ac_signal" 2064 printf "%s\n" "$as_me: exit $exit_status" 2065 } >&5 2066 rm -f core *.core core.conftest.* && 2067 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2068 exit $exit_status 2069 ' 0 2070 for ac_signal in 1 2 13 15; do 2071 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2072 done 2073 ac_signal=0 2074 2075 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2076 rm -f -r conftest* confdefs.h 2077 2078 printf "%s\n" "/* confdefs.h */" > confdefs.h 2079 2080 # Predefined preprocessor variables. 2081 2082 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2083 2084 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2085 2086 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2087 2088 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2089 2090 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2091 2092 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2093 2094 2095 # Let the site file select an alternate cache file if it wants to. 2096 # Prefer an explicitly selected file to automatically selected ones. 2097 if test -n "$CONFIG_SITE"; then 2098 ac_site_files="$CONFIG_SITE" 2099 elif test "x$prefix" != xNONE; then 2100 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2101 else 2102 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2103 fi 2104 2105 for ac_site_file in $ac_site_files 2106 do 2107 case $ac_site_file in #( 2108 */*) : 2109 ;; #( 2110 *) : 2111 ac_site_file=./$ac_site_file ;; 2112 esac 2113 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2115 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2116 sed 's/^/| /' "$ac_site_file" >&5 2117 . "$ac_site_file" \ 2118 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2119 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2120 as_fn_error $? "failed to load site script $ac_site_file 2121 See 'config.log' for more details" "$LINENO" 5; } 2122 fi 2123 done 2124 2125 if test -r "$cache_file"; then 2126 # Some versions of bash will fail to source /dev/null (special files 2127 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2128 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2130 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2131 case $cache_file in 2132 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2133 *) . "./$cache_file";; 2134 esac 2135 fi 2136 else 2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2138 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2139 >$cache_file 2140 fi 2141 2142 # Test code for whether the C compiler supports C89 (global declarations) 2143 ac_c_conftest_c89_globals=' 2144 /* Does the compiler advertise C89 conformance? 2145 Do not test the value of __STDC__, because some compilers set it to 0 2146 while being otherwise adequately conformant. */ 2147 #if !defined __STDC__ 2148 # error "Compiler does not advertise C89 conformance" 2149 #endif 2150 2151 #include <stddef.h> 2152 #include <stdarg.h> 2153 struct stat; 2154 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2155 struct buf { int x; }; 2156 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2157 static char *e (char **p, int i) 2158 { 2159 return p[i]; 2160 } 2161 static char *f (char * (*g) (char **, int), char **p, ...) 2162 { 2163 char *s; 2164 va_list v; 2165 va_start (v,p); 2166 s = g (p, va_arg (v,int)); 2167 va_end (v); 2168 return s; 2169 } 2170 2171 /* C89 style stringification. */ 2172 #define noexpand_stringify(a) #a 2173 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2174 2175 /* C89 style token pasting. Exercises some of the corner cases that 2176 e.g. old MSVC gets wrong, but not very hard. */ 2177 #define noexpand_concat(a,b) a##b 2178 #define expand_concat(a,b) noexpand_concat(a,b) 2179 extern int vA; 2180 extern int vbee; 2181 #define aye A 2182 #define bee B 2183 int *pvA = &expand_concat(v,aye); 2184 int *pvbee = &noexpand_concat(v,bee); 2185 2186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2187 function prototypes and stuff, but not \xHH hex character constants. 2188 These do not provoke an error unfortunately, instead are silently treated 2189 as an "x". The following induces an error, until -std is added to get 2190 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2191 array size at least. It is necessary to write \x00 == 0 to get something 2192 that is true only with -std. */ 2193 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2194 2195 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2196 inside strings and character constants. */ 2197 #define FOO(x) '\''x'\'' 2198 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2199 2200 int test (int i, double x); 2201 struct s1 {int (*f) (int a);}; 2202 struct s2 {int (*f) (double a);}; 2203 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2204 int, int);' 2205 2206 # Test code for whether the C compiler supports C89 (body of main). 2207 ac_c_conftest_c89_main=' 2208 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2209 ' 2210 2211 # Test code for whether the C compiler supports C99 (global declarations) 2212 ac_c_conftest_c99_globals=' 2213 /* Does the compiler advertise C99 conformance? */ 2214 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2215 # error "Compiler does not advertise C99 conformance" 2216 #endif 2217 2218 // See if C++-style comments work. 2219 2220 #include <stdbool.h> 2221 extern int puts (const char *); 2222 extern int printf (const char *, ...); 2223 extern int dprintf (int, const char *, ...); 2224 extern void *malloc (size_t); 2225 extern void free (void *); 2226 2227 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2228 // dprintf is used instead of fprintf to avoid needing to declare 2229 // FILE and stderr. 2230 #define debug(...) dprintf (2, __VA_ARGS__) 2231 #define showlist(...) puts (#__VA_ARGS__) 2232 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2233 static void 2234 test_varargs_macros (void) 2235 { 2236 int x = 1234; 2237 int y = 5678; 2238 debug ("Flag"); 2239 debug ("X = %d\n", x); 2240 showlist (The first, second, and third items.); 2241 report (x>y, "x is %d but y is %d", x, y); 2242 } 2243 2244 // Check long long types. 2245 #define BIG64 18446744073709551615ull 2246 #define BIG32 4294967295ul 2247 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2248 #if !BIG_OK 2249 #error "your preprocessor is broken" 2250 #endif 2251 #if BIG_OK 2252 #else 2253 #error "your preprocessor is broken" 2254 #endif 2255 static long long int bignum = -9223372036854775807LL; 2256 static unsigned long long int ubignum = BIG64; 2257 2258 struct incomplete_array 2259 { 2260 int datasize; 2261 double data[]; 2262 }; 2263 2264 struct named_init { 2265 int number; 2266 const wchar_t *name; 2267 double average; 2268 }; 2269 2270 typedef const char *ccp; 2271 2272 static inline int 2273 test_restrict (ccp restrict text) 2274 { 2275 // Iterate through items via the restricted pointer. 2276 // Also check for declarations in for loops. 2277 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2278 continue; 2279 return 0; 2280 } 2281 2282 // Check varargs and va_copy. 2283 static bool 2284 test_varargs (const char *format, ...) 2285 { 2286 va_list args; 2287 va_start (args, format); 2288 va_list args_copy; 2289 va_copy (args_copy, args); 2290 2291 const char *str = ""; 2292 int number = 0; 2293 float fnumber = 0; 2294 2295 while (*format) 2296 { 2297 switch (*format++) 2298 { 2299 case '\''s'\'': // string 2300 str = va_arg (args_copy, const char *); 2301 break; 2302 case '\''d'\'': // int 2303 number = va_arg (args_copy, int); 2304 break; 2305 case '\''f'\'': // float 2306 fnumber = va_arg (args_copy, double); 2307 break; 2308 default: 2309 break; 2310 } 2311 } 2312 va_end (args_copy); 2313 va_end (args); 2314 2315 return *str && number && fnumber; 2316 } 2317 ' 2318 2319 # Test code for whether the C compiler supports C99 (body of main). 2320 ac_c_conftest_c99_main=' 2321 // Check bool. 2322 _Bool success = false; 2323 success |= (argc != 0); 2324 2325 // Check restrict. 2326 if (test_restrict ("String literal") == 0) 2327 success = true; 2328 char *restrict newvar = "Another string"; 2329 2330 // Check varargs. 2331 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2332 test_varargs_macros (); 2333 2334 // Check flexible array members. 2335 struct incomplete_array *ia = 2336 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2337 ia->datasize = 10; 2338 for (int i = 0; i < ia->datasize; ++i) 2339 ia->data[i] = i * 1.234; 2340 // Work around memory leak warnings. 2341 free (ia); 2342 2343 // Check named initializers. 2344 struct named_init ni = { 2345 .number = 34, 2346 .name = L"Test wide string", 2347 .average = 543.34343, 2348 }; 2349 2350 ni.number = 58; 2351 2352 int dynamic_array[ni.number]; 2353 dynamic_array[0] = argv[0][0]; 2354 dynamic_array[ni.number - 1] = 543; 2355 2356 // work around unused variable warnings 2357 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2358 || dynamic_array[ni.number - 1] != 543); 2359 ' 2360 2361 # Test code for whether the C compiler supports C11 (global declarations) 2362 ac_c_conftest_c11_globals=' 2363 /* Does the compiler advertise C11 conformance? */ 2364 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2365 # error "Compiler does not advertise C11 conformance" 2366 #endif 2367 2368 // Check _Alignas. 2369 char _Alignas (double) aligned_as_double; 2370 char _Alignas (0) no_special_alignment; 2371 extern char aligned_as_int; 2372 char _Alignas (0) _Alignas (int) aligned_as_int; 2373 2374 // Check _Alignof. 2375 enum 2376 { 2377 int_alignment = _Alignof (int), 2378 int_array_alignment = _Alignof (int[100]), 2379 char_alignment = _Alignof (char) 2380 }; 2381 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2382 2383 // Check _Noreturn. 2384 int _Noreturn does_not_return (void) { for (;;) continue; } 2385 2386 // Check _Static_assert. 2387 struct test_static_assert 2388 { 2389 int x; 2390 _Static_assert (sizeof (int) <= sizeof (long int), 2391 "_Static_assert does not work in struct"); 2392 long int y; 2393 }; 2394 2395 // Check UTF-8 literals. 2396 #define u8 syntax error! 2397 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2398 2399 // Check duplicate typedefs. 2400 typedef long *long_ptr; 2401 typedef long int *long_ptr; 2402 typedef long_ptr long_ptr; 2403 2404 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2405 struct anonymous 2406 { 2407 union { 2408 struct { int i; int j; }; 2409 struct { int k; long int l; } w; 2410 }; 2411 int m; 2412 } v1; 2413 ' 2414 2415 # Test code for whether the C compiler supports C11 (body of main). 2416 ac_c_conftest_c11_main=' 2417 _Static_assert ((offsetof (struct anonymous, i) 2418 == offsetof (struct anonymous, w.k)), 2419 "Anonymous union alignment botch"); 2420 v1.i = 2; 2421 v1.w.k = 5; 2422 ok |= v1.i != 5; 2423 ' 2424 2425 # Test code for whether the C compiler supports C11 (complete). 2426 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2427 ${ac_c_conftest_c99_globals} 2428 ${ac_c_conftest_c11_globals} 2429 2430 int 2431 main (int argc, char **argv) 2432 { 2433 int ok = 0; 2434 ${ac_c_conftest_c89_main} 2435 ${ac_c_conftest_c99_main} 2436 ${ac_c_conftest_c11_main} 2437 return ok; 2438 } 2439 " 2440 2441 # Test code for whether the C compiler supports C99 (complete). 2442 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2443 ${ac_c_conftest_c99_globals} 2444 2445 int 2446 main (int argc, char **argv) 2447 { 2448 int ok = 0; 2449 ${ac_c_conftest_c89_main} 2450 ${ac_c_conftest_c99_main} 2451 return ok; 2452 } 2453 " 2454 2455 # Test code for whether the C compiler supports C89 (complete). 2456 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2457 2458 int 2459 main (int argc, char **argv) 2460 { 2461 int ok = 0; 2462 ${ac_c_conftest_c89_main} 2463 return ok; 2464 } 2465 " 2466 2467 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2468 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2469 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2470 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2471 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2472 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2473 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2474 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2475 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2476 2477 # Auxiliary files required by this configure script. 2478 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2479 2480 # Locations in which to look for auxiliary files. 2481 ac_aux_dir_candidates="${srcdir}/." 2482 2483 # Search for a directory containing all of the required auxiliary files, 2484 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2485 # If we don't find one directory that contains all the files we need, 2486 # we report the set of missing files from the *first* directory in 2487 # $ac_aux_dir_candidates and give up. 2488 ac_missing_aux_files="" 2489 ac_first_candidate=: 2490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2492 as_found=false 2493 for as_dir in $ac_aux_dir_candidates 2494 do 2495 IFS=$as_save_IFS 2496 case $as_dir in #((( 2497 '') as_dir=./ ;; 2498 */) ;; 2499 *) as_dir=$as_dir/ ;; 2500 esac 2501 as_found=: 2502 2503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2504 ac_aux_dir_found=yes 2505 ac_install_sh= 2506 for ac_aux in $ac_aux_files 2507 do 2508 # As a special case, if "install-sh" is required, that requirement 2509 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2510 # and $ac_install_sh is set appropriately for whichever one is found. 2511 if test x"$ac_aux" = x"install-sh" 2512 then 2513 if test -f "${as_dir}install-sh"; then 2514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2515 ac_install_sh="${as_dir}install-sh -c" 2516 elif test -f "${as_dir}install.sh"; then 2517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2518 ac_install_sh="${as_dir}install.sh -c" 2519 elif test -f "${as_dir}shtool"; then 2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2521 ac_install_sh="${as_dir}shtool install -c" 2522 else 2523 ac_aux_dir_found=no 2524 if $ac_first_candidate; then 2525 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2526 else 2527 break 2528 fi 2529 fi 2530 else 2531 if test -f "${as_dir}${ac_aux}"; then 2532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2533 else 2534 ac_aux_dir_found=no 2535 if $ac_first_candidate; then 2536 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2537 else 2538 break 2539 fi 2540 fi 2541 fi 2542 done 2543 if test "$ac_aux_dir_found" = yes; then 2544 ac_aux_dir="$as_dir" 2545 break 2546 fi 2547 ac_first_candidate=false 2548 2549 as_found=false 2550 done 2551 IFS=$as_save_IFS 2552 if $as_found 2553 then : 2554 2555 else case e in #( 2556 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2557 esac 2558 fi 2559 2560 2561 # These three variables are undocumented and unsupported, 2562 # and are intended to be withdrawn in a future Autoconf release. 2563 # They can cause serious problems if a builder's source tree is in a directory 2564 # whose full name contains unusual characters. 2565 if test -f "${ac_aux_dir}config.guess"; then 2566 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2567 fi 2568 if test -f "${ac_aux_dir}config.sub"; then 2569 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2570 fi 2571 if test -f "$ac_aux_dir/configure"; then 2572 ac_configure="$SHELL ${ac_aux_dir}configure" 2573 fi 2574 2575 # Check that the precious variables saved in the cache have kept the same 2576 # value. 2577 ac_cache_corrupted=false 2578 for ac_var in $ac_precious_vars; do 2579 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2580 eval ac_new_set=\$ac_env_${ac_var}_set 2581 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2582 eval ac_new_val=\$ac_env_${ac_var}_value 2583 case $ac_old_set,$ac_new_set in 2584 set,) 2585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2586 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2587 ac_cache_corrupted=: ;; 2588 ,set) 2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2590 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2591 ac_cache_corrupted=: ;; 2592 ,);; 2593 *) 2594 if test "x$ac_old_val" != "x$ac_new_val"; then 2595 # differences in whitespace do not lead to failure. 2596 ac_old_val_w=`echo x $ac_old_val` 2597 ac_new_val_w=`echo x $ac_new_val` 2598 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2600 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2601 ac_cache_corrupted=: 2602 else 2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2604 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2605 eval $ac_var=\$ac_old_val 2606 fi 2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2608 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2610 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2611 fi;; 2612 esac 2613 # Pass precious variables to config.status. 2614 if test "$ac_new_set" = set; then 2615 case $ac_new_val in 2616 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2617 *) ac_arg=$ac_var=$ac_new_val ;; 2618 esac 2619 case " $ac_configure_args " in 2620 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2621 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2622 esac 2623 fi 2624 done 2625 if $ac_cache_corrupted; then 2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2627 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2629 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2630 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2631 and start over" "$LINENO" 5 2632 fi 2633 ## -------------------- ## 2634 ## Main body of script. ## 2635 ## -------------------- ## 2636 2637 ac_ext=c 2638 ac_cpp='$CPP $CPPFLAGS' 2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2642 2643 2644 2645 ac_config_headers="$ac_config_headers config.h" 2646 2647 2648 2649 # Initialize Automake 2650 am__api_version='1.18' 2651 2652 2653 2654 # Find a good install program. We prefer a C program (faster), 2655 # so one script is as good as another. But avoid the broken or 2656 # incompatible versions: 2657 # SysV /etc/install, /usr/sbin/install 2658 # SunOS /usr/etc/install 2659 # IRIX /sbin/install 2660 # AIX /bin/install 2661 # AmigaOS /C/install, which installs bootblocks on floppy discs 2662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2665 # OS/2's system install, which has a completely different semantic 2666 # ./install, which can be erroneously created by make from ./install.sh. 2667 # Reject install programs that cannot install multiple files. 2668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2669 printf %s "checking for a BSD-compatible install... " >&6; } 2670 if test -z "$INSTALL"; then 2671 if test ${ac_cv_path_install+y} 2672 then : 2673 printf %s "(cached) " >&6 2674 else case e in #( 2675 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676 for as_dir in $PATH 2677 do 2678 IFS=$as_save_IFS 2679 case $as_dir in #((( 2680 '') as_dir=./ ;; 2681 */) ;; 2682 *) as_dir=$as_dir/ ;; 2683 esac 2684 # Account for fact that we put trailing slashes in our PATH walk. 2685 case $as_dir in #(( 2686 ./ | /[cC]/* | \ 2687 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2688 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2689 /usr/ucb/* ) ;; 2690 *) 2691 # OSF1 and SCO ODT 3.0 have their own names for install. 2692 # Don't use installbsd from OSF since it installs stuff as root 2693 # by default. 2694 for ac_prog in ginstall scoinst install; do 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2697 if test $ac_prog = install && 2698 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2699 # AIX install. It has an incompatible calling convention. 2700 : 2701 elif test $ac_prog = install && 2702 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2703 # program-specific install script used by HP pwplus--don't use. 2704 : 2705 else 2706 rm -rf conftest.one conftest.two conftest.dir 2707 echo one > conftest.one 2708 echo two > conftest.two 2709 mkdir conftest.dir 2710 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2711 test -s conftest.one && test -s conftest.two && 2712 test -s conftest.dir/conftest.one && 2713 test -s conftest.dir/conftest.two 2714 then 2715 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2716 break 3 2717 fi 2718 fi 2719 fi 2720 done 2721 done 2722 ;; 2723 esac 2724 2725 done 2726 IFS=$as_save_IFS 2727 2728 rm -rf conftest.one conftest.two conftest.dir 2729 ;; 2730 esac 2731 fi 2732 if test ${ac_cv_path_install+y}; then 2733 INSTALL=$ac_cv_path_install 2734 else 2735 # As a last resort, use the slow shell script. Don't cache a 2736 # value for INSTALL within a source directory, because that will 2737 # break other packages using the cache if that directory is 2738 # removed, or if the value is a relative name. 2739 INSTALL=$ac_install_sh 2740 fi 2741 fi 2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2743 printf "%s\n" "$INSTALL" >&6; } 2744 2745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2746 # It thinks the first close brace ends the variable substitution. 2747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2748 2749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2750 2751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2752 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2754 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2755 if test ${am_cv_sleep_fractional_seconds+y} 2756 then : 2757 printf %s "(cached) " >&6 2758 else case e in #( 2759 e) if sleep 0.001 2>/dev/null 2760 then : 2761 am_cv_sleep_fractional_seconds=yes 2762 else case e in #( 2763 e) am_cv_sleep_fractional_seconds=no ;; 2764 esac 2765 fi 2766 ;; 2767 esac 2768 fi 2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2770 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2771 2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2773 printf %s "checking filesystem timestamp resolution... " >&6; } 2774 if test ${am_cv_filesystem_timestamp_resolution+y} 2775 then : 2776 printf %s "(cached) " >&6 2777 else case e in #( 2778 e) # Default to the worst case. 2779 am_cv_filesystem_timestamp_resolution=2 2780 2781 # Only try to go finer than 1 sec if sleep can do it. 2782 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2783 # - 1 sec is not much of a win compared to 2 sec, and 2784 # - it takes 2 seconds to perform the test whether 1 sec works. 2785 # 2786 # Instead, just use the default 2s on platforms that have 1s resolution, 2787 # accept the extra 1s delay when using $sleep in the Automake tests, in 2788 # exchange for not incurring the 2s delay for running the test for all 2789 # packages. 2790 # 2791 am_try_resolutions= 2792 if test "$am_cv_sleep_fractional_seconds" = yes; then 2793 # Even a millisecond often causes a bunch of false positives, 2794 # so just try a hundredth of a second. The time saved between .001 and 2795 # .01 is not terribly consequential. 2796 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2797 fi 2798 2799 # In order to catch current-generation FAT out, we must *modify* files 2800 # that already exist; the *creation* timestamp is finer. Use names 2801 # that make ls -t sort them differently when they have equal 2802 # timestamps than when they have distinct timestamps, keeping 2803 # in mind that ls -t prints the *newest* file first. 2804 rm -f conftest.ts? 2805 : > conftest.ts1 2806 : > conftest.ts2 2807 : > conftest.ts3 2808 2809 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2810 # clobber the current shell's arguments. (Outer-level square brackets 2811 # are removed by m4; they're present so that m4 does not expand 2812 # <dollar><star>; be careful, easy to get confused.) 2813 if ( 2814 set X `ls -t conftest.ts[12]` && 2815 { 2816 test "$*" != "X conftest.ts1 conftest.ts2" || 2817 test "$*" != "X conftest.ts2 conftest.ts1"; 2818 } 2819 ); then :; else 2820 # If neither matched, then we have a broken ls. This can happen 2821 # if, for instance, CONFIG_SHELL is bash and it inherits a 2822 # broken ls alias from the environment. This has actually 2823 # happened. Such a system could not be considered "sane". 2824 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2825 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2826 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2827 as_fn_error $? "ls -t produces unexpected output. 2828 Make sure there is not a broken ls alias in your environment. 2829 See 'config.log' for more details" "$LINENO" 5; } 2830 fi 2831 2832 for am_try_res in $am_try_resolutions; do 2833 # Any one fine-grained sleep might happen to cross the boundary 2834 # between two values of a coarser actual resolution, but if we do 2835 # two fine-grained sleeps in a row, at least one of them will fall 2836 # entirely within a coarse interval. 2837 echo alpha > conftest.ts1 2838 sleep $am_try_res 2839 echo beta > conftest.ts2 2840 sleep $am_try_res 2841 echo gamma > conftest.ts3 2842 2843 # We assume that 'ls -t' will make use of high-resolution 2844 # timestamps if the operating system supports them at all. 2845 if (set X `ls -t conftest.ts?` && 2846 test "$2" = conftest.ts3 && 2847 test "$3" = conftest.ts2 && 2848 test "$4" = conftest.ts1); then 2849 # 2850 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2851 # because we don't need to test make. 2852 make_ok=true 2853 if test $am_try_res != 1; then 2854 # But if we've succeeded so far with a subsecond resolution, we 2855 # have one more thing to check: make. It can happen that 2856 # everything else supports the subsecond mtimes, but make doesn't; 2857 # notably on macOS, which ships make 3.81 from 2006 (the last one 2858 # released under GPLv2). https://bugs.gnu.org/68808 2859 # 2860 # We test $MAKE if it is defined in the environment, else "make". 2861 # It might get overridden later, but our hope is that in practice 2862 # it does not matter: it is the system "make" which is (by far) 2863 # the most likely to be broken, whereas if the user overrides it, 2864 # probably they did so with a better, or at least not worse, make. 2865 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2866 # 2867 # Create a Makefile (real tab character here): 2868 rm -f conftest.mk 2869 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2870 echo ' touch conftest.ts2' >>conftest.mk 2871 # 2872 # Now, running 2873 # touch conftest.ts1; touch conftest.ts2; make 2874 # should touch ts1 because ts2 is newer. This could happen by luck, 2875 # but most often, it will fail if make's support is insufficient. So 2876 # test for several consecutive successes. 2877 # 2878 # (We reuse conftest.ts[12] because we still want to modify existing 2879 # files, not create new ones, per above.) 2880 n=0 2881 make=${MAKE-make} 2882 until test $n -eq 3; do 2883 echo one > conftest.ts1 2884 sleep $am_try_res 2885 echo two > conftest.ts2 # ts2 should now be newer than ts1 2886 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2887 make_ok=false 2888 break # out of $n loop 2889 fi 2890 n=`expr $n + 1` 2891 done 2892 fi 2893 # 2894 if $make_ok; then 2895 # Everything we know to check worked out, so call this resolution good. 2896 am_cv_filesystem_timestamp_resolution=$am_try_res 2897 break # out of $am_try_res loop 2898 fi 2899 # Otherwise, we'll go on to check the next resolution. 2900 fi 2901 done 2902 rm -f conftest.ts? 2903 # (end _am_filesystem_timestamp_resolution) 2904 ;; 2905 esac 2906 fi 2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2908 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2909 2910 # This check should not be cached, as it may vary across builds of 2911 # different projects. 2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2913 printf %s "checking whether build environment is sane... " >&6; } 2914 # Reject unsafe characters in $srcdir or the absolute working directory 2915 # name. Accept space and tab only in the latter. 2916 am_lf=' 2917 ' 2918 case `pwd` in 2919 *[\\\"\#\$\&\'\`$am_lf]*) 2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2921 printf "%s\n" "no" >&6; } 2922 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2923 esac 2924 case $srcdir in 2925 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2927 printf "%s\n" "no" >&6; } 2928 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2929 esac 2930 2931 # Do 'set' in a subshell so we don't clobber the current shell's 2932 # arguments. Must try -L first in case configure is actually a 2933 # symlink; some systems play weird games with the mod time of symlinks 2934 # (eg FreeBSD returns the mod time of the symlink's containing 2935 # directory). 2936 am_build_env_is_sane=no 2937 am_has_slept=no 2938 rm -f conftest.file 2939 for am_try in 1 2; do 2940 echo "timestamp, slept: $am_has_slept" > conftest.file 2941 if ( 2942 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2943 if test "$*" = "X"; then 2944 # -L didn't work. 2945 set X `ls -t "$srcdir/configure" conftest.file` 2946 fi 2947 test "$2" = conftest.file 2948 ); then 2949 am_build_env_is_sane=yes 2950 break 2951 fi 2952 # Just in case. 2953 sleep "$am_cv_filesystem_timestamp_resolution" 2954 am_has_slept=yes 2955 done 2956 2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2958 printf "%s\n" "$am_build_env_is_sane" >&6; } 2959 if test "$am_build_env_is_sane" = no; then 2960 as_fn_error $? "newly created file is older than distributed files! 2961 Check your system clock" "$LINENO" 5 2962 fi 2963 2964 # If we didn't sleep, we still need to ensure time stamps of config.status and 2965 # generated files are strictly newer. 2966 am_sleep_pid= 2967 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2968 then : 2969 2970 else case e in #( 2971 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2972 am_sleep_pid=$! 2973 ;; 2974 esac 2975 fi 2976 2977 rm -f conftest.file 2978 2979 test "$program_prefix" != NONE && 2980 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2981 # Use a double $ so make ignores it. 2982 test "$program_suffix" != NONE && 2983 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2984 # Double any \ or $. 2985 # By default was 's,x,x', remove it if useless. 2986 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2987 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2988 2989 2990 # Expand $ac_aux_dir to an absolute path. 2991 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2992 2993 2994 if test x"${MISSING+set}" != xset; then 2995 MISSING="\${SHELL} '$am_aux_dir/missing'" 2996 fi 2997 # Use eval to expand $SHELL 2998 if eval "$MISSING --is-lightweight"; then 2999 am_missing_run="$MISSING " 3000 else 3001 am_missing_run= 3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3003 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3004 fi 3005 3006 if test x"${install_sh+set}" != xset; then 3007 case $am_aux_dir in 3008 *\ * | *\ *) 3009 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3010 *) 3011 install_sh="\${SHELL} $am_aux_dir/install-sh" 3012 esac 3013 fi 3014 3015 # Installed binaries are usually stripped using 'strip' when the user 3016 # run "make install-strip". However 'strip' might not be the right 3017 # tool to use in cross-compilation environments, therefore Automake 3018 # will honor the 'STRIP' environment variable to overrule this program. 3019 if test "$cross_compiling" != no; then 3020 if test -n "$ac_tool_prefix"; then 3021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3022 set dummy ${ac_tool_prefix}strip; ac_word=$2 3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3024 printf %s "checking for $ac_word... " >&6; } 3025 if test ${ac_cv_prog_STRIP+y} 3026 then : 3027 printf %s "(cached) " >&6 3028 else case e in #( 3029 e) if test -n "$STRIP"; then 3030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3031 else 3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3033 for as_dir in $PATH 3034 do 3035 IFS=$as_save_IFS 3036 case $as_dir in #((( 3037 '') as_dir=./ ;; 3038 */) ;; 3039 *) as_dir=$as_dir/ ;; 3040 esac 3041 for ac_exec_ext in '' $ac_executable_extensions; do 3042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3043 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3045 break 2 3046 fi 3047 done 3048 done 3049 IFS=$as_save_IFS 3050 3051 fi ;; 3052 esac 3053 fi 3054 STRIP=$ac_cv_prog_STRIP 3055 if test -n "$STRIP"; then 3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3057 printf "%s\n" "$STRIP" >&6; } 3058 else 3059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3060 printf "%s\n" "no" >&6; } 3061 fi 3062 3063 3064 fi 3065 if test -z "$ac_cv_prog_STRIP"; then 3066 ac_ct_STRIP=$STRIP 3067 # Extract the first word of "strip", so it can be a program name with args. 3068 set dummy strip; ac_word=$2 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3070 printf %s "checking for $ac_word... " >&6; } 3071 if test ${ac_cv_prog_ac_ct_STRIP+y} 3072 then : 3073 printf %s "(cached) " >&6 3074 else case e in #( 3075 e) if test -n "$ac_ct_STRIP"; then 3076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3077 else 3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079 for as_dir in $PATH 3080 do 3081 IFS=$as_save_IFS 3082 case $as_dir in #((( 3083 '') as_dir=./ ;; 3084 */) ;; 3085 *) as_dir=$as_dir/ ;; 3086 esac 3087 for ac_exec_ext in '' $ac_executable_extensions; do 3088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3089 ac_cv_prog_ac_ct_STRIP="strip" 3090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3091 break 2 3092 fi 3093 done 3094 done 3095 IFS=$as_save_IFS 3096 3097 fi ;; 3098 esac 3099 fi 3100 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3101 if test -n "$ac_ct_STRIP"; then 3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3103 printf "%s\n" "$ac_ct_STRIP" >&6; } 3104 else 3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3106 printf "%s\n" "no" >&6; } 3107 fi 3108 3109 if test "x$ac_ct_STRIP" = x; then 3110 STRIP=":" 3111 else 3112 case $cross_compiling:$ac_tool_warned in 3113 yes:) 3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3115 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3116 ac_tool_warned=yes ;; 3117 esac 3118 STRIP=$ac_ct_STRIP 3119 fi 3120 else 3121 STRIP="$ac_cv_prog_STRIP" 3122 fi 3123 3124 fi 3125 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3126 3127 3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3129 printf %s "checking for a race-free mkdir -p... " >&6; } 3130 if test -z "$MKDIR_P"; then 3131 if test ${ac_cv_path_mkdir+y} 3132 then : 3133 printf %s "(cached) " >&6 3134 else case e in #( 3135 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3136 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3137 do 3138 IFS=$as_save_IFS 3139 case $as_dir in #((( 3140 '') as_dir=./ ;; 3141 */) ;; 3142 *) as_dir=$as_dir/ ;; 3143 esac 3144 for ac_prog in mkdir gmkdir; do 3145 for ac_exec_ext in '' $ac_executable_extensions; do 3146 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3147 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3148 'mkdir ('*'coreutils) '* | \ 3149 *'BusyBox '* | \ 3150 'mkdir (fileutils) '4.1*) 3151 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3152 break 3;; 3153 esac 3154 done 3155 done 3156 done 3157 IFS=$as_save_IFS 3158 ;; 3159 esac 3160 fi 3161 3162 test -d ./--version && rmdir ./--version 3163 if test ${ac_cv_path_mkdir+y}; then 3164 MKDIR_P="$ac_cv_path_mkdir -p" 3165 else 3166 # As a last resort, use plain mkdir -p, 3167 # in the hope it doesn't have the bugs of ancient mkdir. 3168 MKDIR_P='mkdir -p' 3169 fi 3170 fi 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3172 printf "%s\n" "$MKDIR_P" >&6; } 3173 3174 for ac_prog in gawk mawk nawk awk 3175 do 3176 # Extract the first word of "$ac_prog", so it can be a program name with args. 3177 set dummy $ac_prog; ac_word=$2 3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3179 printf %s "checking for $ac_word... " >&6; } 3180 if test ${ac_cv_prog_AWK+y} 3181 then : 3182 printf %s "(cached) " >&6 3183 else case e in #( 3184 e) if test -n "$AWK"; then 3185 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3186 else 3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3188 for as_dir in $PATH 3189 do 3190 IFS=$as_save_IFS 3191 case $as_dir in #((( 3192 '') as_dir=./ ;; 3193 */) ;; 3194 *) as_dir=$as_dir/ ;; 3195 esac 3196 for ac_exec_ext in '' $ac_executable_extensions; do 3197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3198 ac_cv_prog_AWK="$ac_prog" 3199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3200 break 2 3201 fi 3202 done 3203 done 3204 IFS=$as_save_IFS 3205 3206 fi ;; 3207 esac 3208 fi 3209 AWK=$ac_cv_prog_AWK 3210 if test -n "$AWK"; then 3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3212 printf "%s\n" "$AWK" >&6; } 3213 else 3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3215 printf "%s\n" "no" >&6; } 3216 fi 3217 3218 3219 test -n "$AWK" && break 3220 done 3221 3222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3223 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3224 set x ${MAKE-make} 3225 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3226 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3227 then : 3228 printf %s "(cached) " >&6 3229 else case e in #( 3230 e) cat >conftest.make <<\_ACEOF 3231 SHELL = /bin/sh 3232 all: 3233 @echo '@@@%%%=$(MAKE)=@@@%%%' 3234 _ACEOF 3235 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3236 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3237 *@@@%%%=?*=@@@%%%*) 3238 eval ac_cv_prog_make_${ac_make}_set=yes;; 3239 *) 3240 eval ac_cv_prog_make_${ac_make}_set=no;; 3241 esac 3242 rm -f conftest.make ;; 3243 esac 3244 fi 3245 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3247 printf "%s\n" "yes" >&6; } 3248 SET_MAKE= 3249 else 3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3251 printf "%s\n" "no" >&6; } 3252 SET_MAKE="MAKE=${MAKE-make}" 3253 fi 3254 3255 rm -rf .tst 2>/dev/null 3256 mkdir .tst 2>/dev/null 3257 if test -d .tst; then 3258 am__leading_dot=. 3259 else 3260 am__leading_dot=_ 3261 fi 3262 rmdir .tst 2>/dev/null 3263 3264 AM_DEFAULT_VERBOSITY=1 3265 # Check whether --enable-silent-rules was given. 3266 if test ${enable_silent_rules+y} 3267 then : 3268 enableval=$enable_silent_rules; 3269 fi 3270 3271 am_make=${MAKE-make} 3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3273 printf %s "checking whether $am_make supports nested variables... " >&6; } 3274 if test ${am_cv_make_support_nested_variables+y} 3275 then : 3276 printf %s "(cached) " >&6 3277 else case e in #( 3278 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3279 BAR0=false 3280 BAR1=true 3281 V=1 3282 am__doit: 3283 @$(TRUE) 3284 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3285 am_cv_make_support_nested_variables=yes 3286 else 3287 am_cv_make_support_nested_variables=no 3288 fi ;; 3289 esac 3290 fi 3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3292 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3293 AM_BACKSLASH='\' 3294 3295 am__rm_f_notfound= 3296 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3297 then : 3298 3299 else case e in #( 3300 e) am__rm_f_notfound='""' ;; 3301 esac 3302 fi 3303 3304 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3306 printf %s "checking xargs -n works... " >&6; } 3307 if test ${am_cv_xargs_n_works+y} 3308 then : 3309 printf %s "(cached) " >&6 3310 else case e in #( 3311 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3312 3" 3313 then : 3314 am_cv_xargs_n_works=yes 3315 else case e in #( 3316 e) am_cv_xargs_n_works=no ;; 3317 esac 3318 fi ;; 3319 esac 3320 fi 3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3322 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3323 if test "$am_cv_xargs_n_works" = yes 3324 then : 3325 am__xargs_n='xargs -n' 3326 else case e in #( 3327 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3328 ;; 3329 esac 3330 fi 3331 3332 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3333 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3334 # is not polluted with repeated "-I." 3335 am__isrc=' -I$(srcdir)' 3336 # test to see if srcdir already configured 3337 if test -f $srcdir/config.status; then 3338 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3339 fi 3340 fi 3341 3342 # test whether we have cygpath 3343 if test -z "$CYGPATH_W"; then 3344 if (cygpath --version) >/dev/null 2>/dev/null; then 3345 CYGPATH_W='cygpath -w' 3346 else 3347 CYGPATH_W=echo 3348 fi 3349 fi 3350 3351 3352 # Define the identity of the package. 3353 PACKAGE='xf86-video-ast' 3354 VERSION='1.2.1' 3355 3356 3357 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3358 3359 3360 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3361 3362 # Some tools Automake needs. 3363 3364 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3365 3366 3367 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3368 3369 3370 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3371 3372 3373 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3374 3375 3376 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3377 3378 # For better backward compatibility. To be removed once Automake 1.9.x 3379 # dies out for good. For more background, see: 3380 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3381 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3382 mkdir_p='$(MKDIR_P)' 3383 3384 # We need awk for the "check" target (and possibly the TAP driver). The 3385 # system "awk" is bad on some platforms. 3386 # Always define AMTAR for backward compatibility. Yes, it's still used 3387 # in the wild :-( We should find a proper way to deprecate it ... 3388 AMTAR='$${TAR-tar}' 3389 3390 3391 # We'll loop over all known methods to create a tar archive until one works. 3392 _am_tools='gnutar plaintar pax cpio none' 3393 3394 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 3395 # There is notably a 21 bits limit for the UID and the GID. In fact, 3396 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3397 # and bug#13588). 3398 am_max_uid=2097151 # 2^21 - 1 3399 am_max_gid=$am_max_uid 3400 # The $UID and $GID variables are not portable, so we need to resort 3401 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3402 # below are definitely unexpected, so allow the users to see them 3403 # (that is, avoid stderr redirection). 3404 am_uid=`id -u || echo unknown` 3405 am_gid=`id -g || echo unknown` 3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3407 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3408 if test x$am_uid = xunknown; then 3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 3410 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 3411 elif test $am_uid -le $am_max_uid; then 3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3413 printf "%s\n" "yes" >&6; } 3414 else 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3416 printf "%s\n" "no" >&6; } 3417 _am_tools=none 3418 fi 3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3420 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3421 if test x$gm_gid = xunknown; then 3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 3423 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 3424 elif test $am_gid -le $am_max_gid; then 3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3426 printf "%s\n" "yes" >&6; } 3427 else 3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3429 printf "%s\n" "no" >&6; } 3430 _am_tools=none 3431 fi 3432 3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3434 printf %s "checking how to create a ustar tar archive... " >&6; } 3435 3436 # Go ahead even if we have the value already cached. We do so because we 3437 # need to set the values for the 'am__tar' and 'am__untar' variables. 3438 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3439 3440 for _am_tool in $_am_tools; do 3441 case $_am_tool in 3442 gnutar) 3443 for _am_tar in tar gnutar gtar; do 3444 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3445 ($_am_tar --version) >&5 2>&5 3446 ac_status=$? 3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3448 (exit $ac_status); } && break 3449 done 3450 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3451 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3452 am__untar="$_am_tar -xf -" 3453 ;; 3454 plaintar) 3455 # Must skip GNU tar: if it does not support --format= it doesn't create 3456 # ustar tarball either. 3457 (tar --version) >/dev/null 2>&1 && continue 3458 am__tar='tar chf - "$$tardir"' 3459 am__tar_='tar chf - "$tardir"' 3460 am__untar='tar xf -' 3461 ;; 3462 pax) 3463 am__tar='pax -L -x ustar -w "$$tardir"' 3464 am__tar_='pax -L -x ustar -w "$tardir"' 3465 am__untar='pax -r' 3466 ;; 3467 cpio) 3468 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3469 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3470 am__untar='cpio -i -H ustar -d' 3471 ;; 3472 none) 3473 am__tar=false 3474 am__tar_=false 3475 am__untar=false 3476 ;; 3477 esac 3478 3479 # If the value was cached, stop now. We just wanted to have am__tar 3480 # and am__untar set. 3481 test -n "${am_cv_prog_tar_ustar}" && break 3482 3483 # tar/untar a dummy directory, and stop if the command works. 3484 rm -rf conftest.dir 3485 mkdir conftest.dir 3486 echo GrepMe > conftest.dir/file 3487 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3488 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3489 ac_status=$? 3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3491 (exit $ac_status); } 3492 rm -rf conftest.dir 3493 if test -s conftest.tar; then 3494 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3495 ($am__untar <conftest.tar) >&5 2>&5 3496 ac_status=$? 3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3498 (exit $ac_status); } 3499 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3500 (cat conftest.dir/file) >&5 2>&5 3501 ac_status=$? 3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3503 (exit $ac_status); } 3504 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3505 fi 3506 done 3507 rm -rf conftest.dir 3508 3509 if test ${am_cv_prog_tar_ustar+y} 3510 then : 3511 printf %s "(cached) " >&6 3512 else case e in #( 3513 e) am_cv_prog_tar_ustar=$_am_tool ;; 3514 esac 3515 fi 3516 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3518 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 3519 3520 3521 3522 3523 3524 # Variables for tags utilities; see am/tags.am 3525 if test -z "$CTAGS"; then 3526 CTAGS=ctags 3527 fi 3528 3529 if test -z "$ETAGS"; then 3530 ETAGS=etags 3531 fi 3532 3533 if test -z "$CSCOPE"; then 3534 CSCOPE=cscope 3535 fi 3536 3537 3538 3539 3540 3541 3542 3543 3544 # Require xorg-macros: XORG_DEFAULT_OPTIONS 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 DEPDIR="${am__leading_dot}deps" 3566 3567 ac_config_commands="$ac_config_commands depfiles" 3568 3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3570 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3571 cat > confinc.mk << 'END' 3572 am__doit: 3573 @echo this is the am__doit target >confinc.out 3574 .PHONY: am__doit 3575 END 3576 am__include="#" 3577 am__quote= 3578 # BSD make does it like this. 3579 echo '.include "confinc.mk" # ignored' > confmf.BSD 3580 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3581 echo 'include confinc.mk # ignored' > confmf.GNU 3582 _am_result=no 3583 for s in GNU BSD; do 3584 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3585 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3586 ac_status=$? 3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3588 (exit $ac_status); } 3589 case $?:`cat confinc.out 2>/dev/null` in #( 3590 '0:this is the am__doit target') : 3591 case $s in #( 3592 BSD) : 3593 am__include='.include' am__quote='"' ;; #( 3594 *) : 3595 am__include='include' am__quote='' ;; 3596 esac ;; #( 3597 *) : 3598 ;; 3599 esac 3600 if test "$am__include" != "#"; then 3601 _am_result="yes ($s style)" 3602 break 3603 fi 3604 done 3605 rm -f confinc.* confmf.* 3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3607 printf "%s\n" "${_am_result}" >&6; } 3608 3609 # Check whether --enable-dependency-tracking was given. 3610 if test ${enable_dependency_tracking+y} 3611 then : 3612 enableval=$enable_dependency_tracking; 3613 fi 3614 3615 if test "x$enable_dependency_tracking" != xno; then 3616 am_depcomp="$ac_aux_dir/depcomp" 3617 AMDEPBACKSLASH='\' 3618 am__nodep='_no' 3619 fi 3620 if test "x$enable_dependency_tracking" != xno; then 3621 AMDEP_TRUE= 3622 AMDEP_FALSE='#' 3623 else 3624 AMDEP_TRUE='#' 3625 AMDEP_FALSE= 3626 fi 3627 3628 3629 ac_ext=c 3630 ac_cpp='$CPP $CPPFLAGS' 3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3634 if test -n "$ac_tool_prefix"; then 3635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3636 set dummy ${ac_tool_prefix}gcc; 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}gcc" 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 if test -z "$ac_cv_prog_CC"; then 3680 ac_ct_CC=$CC 3681 # Extract the first word of "gcc", so it can be a program name with args. 3682 set dummy gcc; 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_ac_ct_CC+y} 3686 then : 3687 printf %s "(cached) " >&6 3688 else case e in #( 3689 e) if test -n "$ac_ct_CC"; then 3690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3691 else 3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3693 for as_dir in $PATH 3694 do 3695 IFS=$as_save_IFS 3696 case $as_dir in #((( 3697 '') as_dir=./ ;; 3698 */) ;; 3699 *) as_dir=$as_dir/ ;; 3700 esac 3701 for ac_exec_ext in '' $ac_executable_extensions; do 3702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3703 ac_cv_prog_ac_ct_CC="gcc" 3704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3705 break 2 3706 fi 3707 done 3708 done 3709 IFS=$as_save_IFS 3710 3711 fi ;; 3712 esac 3713 fi 3714 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3715 if test -n "$ac_ct_CC"; then 3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3717 printf "%s\n" "$ac_ct_CC" >&6; } 3718 else 3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3720 printf "%s\n" "no" >&6; } 3721 fi 3722 3723 if test "x$ac_ct_CC" = x; then 3724 CC="" 3725 else 3726 case $cross_compiling:$ac_tool_warned in 3727 yes:) 3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3729 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3730 ac_tool_warned=yes ;; 3731 esac 3732 CC=$ac_ct_CC 3733 fi 3734 else 3735 CC="$ac_cv_prog_CC" 3736 fi 3737 3738 if test -z "$CC"; then 3739 if test -n "$ac_tool_prefix"; then 3740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3741 set dummy ${ac_tool_prefix}cc; ac_word=$2 3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3743 printf %s "checking for $ac_word... " >&6; } 3744 if test ${ac_cv_prog_CC+y} 3745 then : 3746 printf %s "(cached) " >&6 3747 else case e in #( 3748 e) if test -n "$CC"; then 3749 ac_cv_prog_CC="$CC" # Let the user override the test. 3750 else 3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3752 for as_dir in $PATH 3753 do 3754 IFS=$as_save_IFS 3755 case $as_dir in #((( 3756 '') as_dir=./ ;; 3757 */) ;; 3758 *) as_dir=$as_dir/ ;; 3759 esac 3760 for ac_exec_ext in '' $ac_executable_extensions; do 3761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3762 ac_cv_prog_CC="${ac_tool_prefix}cc" 3763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3764 break 2 3765 fi 3766 done 3767 done 3768 IFS=$as_save_IFS 3769 3770 fi ;; 3771 esac 3772 fi 3773 CC=$ac_cv_prog_CC 3774 if test -n "$CC"; then 3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3776 printf "%s\n" "$CC" >&6; } 3777 else 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3779 printf "%s\n" "no" >&6; } 3780 fi 3781 3782 3783 fi 3784 fi 3785 if test -z "$CC"; then 3786 # Extract the first word of "cc", so it can be a program name with args. 3787 set dummy cc; ac_word=$2 3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3789 printf %s "checking for $ac_word... " >&6; } 3790 if test ${ac_cv_prog_CC+y} 3791 then : 3792 printf %s "(cached) " >&6 3793 else case e in #( 3794 e) if test -n "$CC"; then 3795 ac_cv_prog_CC="$CC" # Let the user override the test. 3796 else 3797 ac_prog_rejected=no 3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3799 for as_dir in $PATH 3800 do 3801 IFS=$as_save_IFS 3802 case $as_dir in #((( 3803 '') as_dir=./ ;; 3804 */) ;; 3805 *) as_dir=$as_dir/ ;; 3806 esac 3807 for ac_exec_ext in '' $ac_executable_extensions; do 3808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3809 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3810 ac_prog_rejected=yes 3811 continue 3812 fi 3813 ac_cv_prog_CC="cc" 3814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3815 break 2 3816 fi 3817 done 3818 done 3819 IFS=$as_save_IFS 3820 3821 if test $ac_prog_rejected = yes; then 3822 # We found a bogon in the path, so make sure we never use it. 3823 set dummy $ac_cv_prog_CC 3824 shift 3825 if test $# != 0; then 3826 # We chose a different compiler from the bogus one. 3827 # However, it has the same basename, so the bogon will be chosen 3828 # first if we set CC to just the basename; use the full file name. 3829 shift 3830 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3831 fi 3832 fi 3833 fi ;; 3834 esac 3835 fi 3836 CC=$ac_cv_prog_CC 3837 if test -n "$CC"; then 3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3839 printf "%s\n" "$CC" >&6; } 3840 else 3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3842 printf "%s\n" "no" >&6; } 3843 fi 3844 3845 3846 fi 3847 if test -z "$CC"; then 3848 if test -n "$ac_tool_prefix"; then 3849 for ac_prog in cl.exe 3850 do 3851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3854 printf %s "checking for $ac_word... " >&6; } 3855 if test ${ac_cv_prog_CC+y} 3856 then : 3857 printf %s "(cached) " >&6 3858 else case e in #( 3859 e) if test -n "$CC"; then 3860 ac_cv_prog_CC="$CC" # Let the user override the test. 3861 else 3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3863 for as_dir in $PATH 3864 do 3865 IFS=$as_save_IFS 3866 case $as_dir in #((( 3867 '') as_dir=./ ;; 3868 */) ;; 3869 *) as_dir=$as_dir/ ;; 3870 esac 3871 for ac_exec_ext in '' $ac_executable_extensions; do 3872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3873 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3875 break 2 3876 fi 3877 done 3878 done 3879 IFS=$as_save_IFS 3880 3881 fi ;; 3882 esac 3883 fi 3884 CC=$ac_cv_prog_CC 3885 if test -n "$CC"; then 3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3887 printf "%s\n" "$CC" >&6; } 3888 else 3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3890 printf "%s\n" "no" >&6; } 3891 fi 3892 3893 3894 test -n "$CC" && break 3895 done 3896 fi 3897 if test -z "$CC"; then 3898 ac_ct_CC=$CC 3899 for ac_prog in cl.exe 3900 do 3901 # Extract the first word of "$ac_prog", so it can be a program name with args. 3902 set dummy $ac_prog; ac_word=$2 3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3904 printf %s "checking for $ac_word... " >&6; } 3905 if test ${ac_cv_prog_ac_ct_CC+y} 3906 then : 3907 printf %s "(cached) " >&6 3908 else case e in #( 3909 e) if test -n "$ac_ct_CC"; then 3910 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3911 else 3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3913 for as_dir in $PATH 3914 do 3915 IFS=$as_save_IFS 3916 case $as_dir in #((( 3917 '') as_dir=./ ;; 3918 */) ;; 3919 *) as_dir=$as_dir/ ;; 3920 esac 3921 for ac_exec_ext in '' $ac_executable_extensions; do 3922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3923 ac_cv_prog_ac_ct_CC="$ac_prog" 3924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3925 break 2 3926 fi 3927 done 3928 done 3929 IFS=$as_save_IFS 3930 3931 fi ;; 3932 esac 3933 fi 3934 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3935 if test -n "$ac_ct_CC"; then 3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3937 printf "%s\n" "$ac_ct_CC" >&6; } 3938 else 3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3940 printf "%s\n" "no" >&6; } 3941 fi 3942 3943 3944 test -n "$ac_ct_CC" && break 3945 done 3946 3947 if test "x$ac_ct_CC" = x; then 3948 CC="" 3949 else 3950 case $cross_compiling:$ac_tool_warned in 3951 yes:) 3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3954 ac_tool_warned=yes ;; 3955 esac 3956 CC=$ac_ct_CC 3957 fi 3958 fi 3959 3960 fi 3961 if test -z "$CC"; then 3962 if test -n "$ac_tool_prefix"; then 3963 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3964 set dummy ${ac_tool_prefix}clang; ac_word=$2 3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3966 printf %s "checking for $ac_word... " >&6; } 3967 if test ${ac_cv_prog_CC+y} 3968 then : 3969 printf %s "(cached) " >&6 3970 else case e in #( 3971 e) if test -n "$CC"; then 3972 ac_cv_prog_CC="$CC" # Let the user override the test. 3973 else 3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3975 for as_dir in $PATH 3976 do 3977 IFS=$as_save_IFS 3978 case $as_dir in #((( 3979 '') as_dir=./ ;; 3980 */) ;; 3981 *) as_dir=$as_dir/ ;; 3982 esac 3983 for ac_exec_ext in '' $ac_executable_extensions; do 3984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3985 ac_cv_prog_CC="${ac_tool_prefix}clang" 3986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3987 break 2 3988 fi 3989 done 3990 done 3991 IFS=$as_save_IFS 3992 3993 fi ;; 3994 esac 3995 fi 3996 CC=$ac_cv_prog_CC 3997 if test -n "$CC"; then 3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3999 printf "%s\n" "$CC" >&6; } 4000 else 4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4002 printf "%s\n" "no" >&6; } 4003 fi 4004 4005 4006 fi 4007 if test -z "$ac_cv_prog_CC"; then 4008 ac_ct_CC=$CC 4009 # Extract the first word of "clang", so it can be a program name with args. 4010 set dummy clang; ac_word=$2 4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4012 printf %s "checking for $ac_word... " >&6; } 4013 if test ${ac_cv_prog_ac_ct_CC+y} 4014 then : 4015 printf %s "(cached) " >&6 4016 else case e in #( 4017 e) if test -n "$ac_ct_CC"; then 4018 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4019 else 4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4021 for as_dir in $PATH 4022 do 4023 IFS=$as_save_IFS 4024 case $as_dir in #((( 4025 '') as_dir=./ ;; 4026 */) ;; 4027 *) as_dir=$as_dir/ ;; 4028 esac 4029 for ac_exec_ext in '' $ac_executable_extensions; do 4030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4031 ac_cv_prog_ac_ct_CC="clang" 4032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4033 break 2 4034 fi 4035 done 4036 done 4037 IFS=$as_save_IFS 4038 4039 fi ;; 4040 esac 4041 fi 4042 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4043 if test -n "$ac_ct_CC"; then 4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4045 printf "%s\n" "$ac_ct_CC" >&6; } 4046 else 4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4048 printf "%s\n" "no" >&6; } 4049 fi 4050 4051 if test "x$ac_ct_CC" = x; then 4052 CC="" 4053 else 4054 case $cross_compiling:$ac_tool_warned in 4055 yes:) 4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4057 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4058 ac_tool_warned=yes ;; 4059 esac 4060 CC=$ac_ct_CC 4061 fi 4062 else 4063 CC="$ac_cv_prog_CC" 4064 fi 4065 4066 fi 4067 4068 4069 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4070 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4071 as_fn_error $? "no acceptable C compiler found in \$PATH 4072 See 'config.log' for more details" "$LINENO" 5; } 4073 4074 # Provide some information about the compiler. 4075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4076 set X $ac_compile 4077 ac_compiler=$2 4078 for ac_option in --version -v -V -qversion -version; do 4079 { { ac_try="$ac_compiler $ac_option >&5" 4080 case "(($ac_try" in 4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4082 *) ac_try_echo=$ac_try;; 4083 esac 4084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4085 printf "%s\n" "$ac_try_echo"; } >&5 4086 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4087 ac_status=$? 4088 if test -s conftest.err; then 4089 sed '10a\ 4090 ... rest of stderr output deleted ... 4091 10q' conftest.err >conftest.er1 4092 cat conftest.er1 >&5 4093 fi 4094 rm -f conftest.er1 conftest.err 4095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4096 test $ac_status = 0; } 4097 done 4098 4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100 /* end confdefs.h. */ 4101 4102 int 4103 main (void) 4104 { 4105 4106 ; 4107 return 0; 4108 } 4109 _ACEOF 4110 ac_clean_files_save=$ac_clean_files 4111 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4112 # Try to create an executable without -o first, disregard a.out. 4113 # It will help us diagnose broken compilers, and finding out an intuition 4114 # of exeext. 4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4116 printf %s "checking whether the C compiler works... " >&6; } 4117 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4118 4119 # The possible output files: 4120 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4121 4122 ac_rmfiles= 4123 for ac_file in $ac_files 4124 do 4125 case $ac_file in 4126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4127 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4128 esac 4129 done 4130 rm -f $ac_rmfiles 4131 4132 if { { ac_try="$ac_link_default" 4133 case "(($ac_try" in 4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4135 *) ac_try_echo=$ac_try;; 4136 esac 4137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4138 printf "%s\n" "$ac_try_echo"; } >&5 4139 (eval "$ac_link_default") 2>&5 4140 ac_status=$? 4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4142 test $ac_status = 0; } 4143 then : 4144 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4145 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4146 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4147 # so that the user can short-circuit this test for compilers unknown to 4148 # Autoconf. 4149 for ac_file in $ac_files '' 4150 do 4151 test -f "$ac_file" || continue 4152 case $ac_file in 4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4154 ;; 4155 [ab].out ) 4156 # We found the default executable, but exeext='' is most 4157 # certainly right. 4158 break;; 4159 *.* ) 4160 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4161 then :; else 4162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4163 fi 4164 # We set ac_cv_exeext here because the later test for it is not 4165 # safe: cross compilers may not add the suffix if given an '-o' 4166 # argument, so we may need to know it at that point already. 4167 # Even if this section looks crufty: it has the advantage of 4168 # actually working. 4169 break;; 4170 * ) 4171 break;; 4172 esac 4173 done 4174 test "$ac_cv_exeext" = no && ac_cv_exeext= 4175 4176 else case e in #( 4177 e) ac_file='' ;; 4178 esac 4179 fi 4180 if test -z "$ac_file" 4181 then : 4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4183 printf "%s\n" "no" >&6; } 4184 printf "%s\n" "$as_me: failed program was:" >&5 4185 sed 's/^/| /' conftest.$ac_ext >&5 4186 4187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4188 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4189 as_fn_error 77 "C compiler cannot create executables 4190 See 'config.log' for more details" "$LINENO" 5; } 4191 else case e in #( 4192 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4193 printf "%s\n" "yes" >&6; } ;; 4194 esac 4195 fi 4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4197 printf %s "checking for C compiler default output file name... " >&6; } 4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4199 printf "%s\n" "$ac_file" >&6; } 4200 ac_exeext=$ac_cv_exeext 4201 4202 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4203 ac_clean_files=$ac_clean_files_save 4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4205 printf %s "checking for suffix of executables... " >&6; } 4206 if { { ac_try="$ac_link" 4207 case "(($ac_try" in 4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4209 *) ac_try_echo=$ac_try;; 4210 esac 4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4212 printf "%s\n" "$ac_try_echo"; } >&5 4213 (eval "$ac_link") 2>&5 4214 ac_status=$? 4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4216 test $ac_status = 0; } 4217 then : 4218 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4219 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4220 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4221 # 'rm'. 4222 for ac_file in conftest.exe conftest conftest.*; do 4223 test -f "$ac_file" || continue 4224 case $ac_file in 4225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4227 break;; 4228 * ) break;; 4229 esac 4230 done 4231 else case e in #( 4232 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4233 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4234 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4235 See 'config.log' for more details" "$LINENO" 5; } ;; 4236 esac 4237 fi 4238 rm -f conftest conftest$ac_cv_exeext 4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4240 printf "%s\n" "$ac_cv_exeext" >&6; } 4241 4242 rm -f conftest.$ac_ext 4243 EXEEXT=$ac_cv_exeext 4244 ac_exeext=$EXEEXT 4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246 /* end confdefs.h. */ 4247 #include <stdio.h> 4248 int 4249 main (void) 4250 { 4251 FILE *f = fopen ("conftest.out", "w"); 4252 if (!f) 4253 return 1; 4254 return ferror (f) || fclose (f) != 0; 4255 4256 ; 4257 return 0; 4258 } 4259 _ACEOF 4260 ac_clean_files="$ac_clean_files conftest.out" 4261 # Check that the compiler produces executables we can run. If not, either 4262 # the compiler is broken, or we cross compile. 4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4264 printf %s "checking whether we are cross compiling... " >&6; } 4265 if test "$cross_compiling" != yes; then 4266 { { ac_try="$ac_link" 4267 case "(($ac_try" in 4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4269 *) ac_try_echo=$ac_try;; 4270 esac 4271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4272 printf "%s\n" "$ac_try_echo"; } >&5 4273 (eval "$ac_link") 2>&5 4274 ac_status=$? 4275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4276 test $ac_status = 0; } 4277 if { ac_try='./conftest$ac_cv_exeext' 4278 { { case "(($ac_try" in 4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4280 *) ac_try_echo=$ac_try;; 4281 esac 4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4283 printf "%s\n" "$ac_try_echo"; } >&5 4284 (eval "$ac_try") 2>&5 4285 ac_status=$? 4286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4287 test $ac_status = 0; }; }; then 4288 cross_compiling=no 4289 else 4290 if test "$cross_compiling" = maybe; then 4291 cross_compiling=yes 4292 else 4293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4294 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4295 as_fn_error 77 "cannot run C compiled programs. 4296 If you meant to cross compile, use '--host'. 4297 See 'config.log' for more details" "$LINENO" 5; } 4298 fi 4299 fi 4300 fi 4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4302 printf "%s\n" "$cross_compiling" >&6; } 4303 4304 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4305 conftest.o conftest.obj conftest.out 4306 ac_clean_files=$ac_clean_files_save 4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4308 printf %s "checking for suffix of object files... " >&6; } 4309 if test ${ac_cv_objext+y} 4310 then : 4311 printf %s "(cached) " >&6 4312 else case e in #( 4313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4314 /* end confdefs.h. */ 4315 4316 int 4317 main (void) 4318 { 4319 4320 ; 4321 return 0; 4322 } 4323 _ACEOF 4324 rm -f conftest.o conftest.obj 4325 if { { ac_try="$ac_compile" 4326 case "(($ac_try" in 4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4328 *) ac_try_echo=$ac_try;; 4329 esac 4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4331 printf "%s\n" "$ac_try_echo"; } >&5 4332 (eval "$ac_compile") 2>&5 4333 ac_status=$? 4334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4335 test $ac_status = 0; } 4336 then : 4337 for ac_file in conftest.o conftest.obj conftest.*; do 4338 test -f "$ac_file" || continue; 4339 case $ac_file in 4340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4342 break;; 4343 esac 4344 done 4345 else case e in #( 4346 e) printf "%s\n" "$as_me: failed program was:" >&5 4347 sed 's/^/| /' conftest.$ac_ext >&5 4348 4349 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4350 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4351 as_fn_error $? "cannot compute suffix of object files: cannot compile 4352 See 'config.log' for more details" "$LINENO" 5; } ;; 4353 esac 4354 fi 4355 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4356 esac 4357 fi 4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4359 printf "%s\n" "$ac_cv_objext" >&6; } 4360 OBJEXT=$ac_cv_objext 4361 ac_objext=$OBJEXT 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4363 printf %s "checking whether the compiler supports GNU C... " >&6; } 4364 if test ${ac_cv_c_compiler_gnu+y} 4365 then : 4366 printf %s "(cached) " >&6 4367 else case e in #( 4368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4369 /* end confdefs.h. */ 4370 4371 int 4372 main (void) 4373 { 4374 #ifndef __GNUC__ 4375 choke me 4376 #endif 4377 4378 ; 4379 return 0; 4380 } 4381 _ACEOF 4382 if ac_fn_c_try_compile "$LINENO" 4383 then : 4384 ac_compiler_gnu=yes 4385 else case e in #( 4386 e) ac_compiler_gnu=no ;; 4387 esac 4388 fi 4389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4390 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4391 ;; 4392 esac 4393 fi 4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4395 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4397 4398 if test $ac_compiler_gnu = yes; then 4399 GCC=yes 4400 else 4401 GCC= 4402 fi 4403 ac_test_CFLAGS=${CFLAGS+y} 4404 ac_save_CFLAGS=$CFLAGS 4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4406 printf %s "checking whether $CC accepts -g... " >&6; } 4407 if test ${ac_cv_prog_cc_g+y} 4408 then : 4409 printf %s "(cached) " >&6 4410 else case e in #( 4411 e) ac_save_c_werror_flag=$ac_c_werror_flag 4412 ac_c_werror_flag=yes 4413 ac_cv_prog_cc_g=no 4414 CFLAGS="-g" 4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4416 /* end confdefs.h. */ 4417 4418 int 4419 main (void) 4420 { 4421 4422 ; 4423 return 0; 4424 } 4425 _ACEOF 4426 if ac_fn_c_try_compile "$LINENO" 4427 then : 4428 ac_cv_prog_cc_g=yes 4429 else case e in #( 4430 e) CFLAGS="" 4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4432 /* end confdefs.h. */ 4433 4434 int 4435 main (void) 4436 { 4437 4438 ; 4439 return 0; 4440 } 4441 _ACEOF 4442 if ac_fn_c_try_compile "$LINENO" 4443 then : 4444 4445 else case e in #( 4446 e) ac_c_werror_flag=$ac_save_c_werror_flag 4447 CFLAGS="-g" 4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4449 /* end confdefs.h. */ 4450 4451 int 4452 main (void) 4453 { 4454 4455 ; 4456 return 0; 4457 } 4458 _ACEOF 4459 if ac_fn_c_try_compile "$LINENO" 4460 then : 4461 ac_cv_prog_cc_g=yes 4462 fi 4463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4464 esac 4465 fi 4466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4467 esac 4468 fi 4469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4470 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4471 esac 4472 fi 4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4474 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4475 if test $ac_test_CFLAGS; then 4476 CFLAGS=$ac_save_CFLAGS 4477 elif test $ac_cv_prog_cc_g = yes; then 4478 if test "$GCC" = yes; then 4479 CFLAGS="-g -O2" 4480 else 4481 CFLAGS="-g" 4482 fi 4483 else 4484 if test "$GCC" = yes; then 4485 CFLAGS="-O2" 4486 else 4487 CFLAGS= 4488 fi 4489 fi 4490 ac_prog_cc_stdc=no 4491 if test x$ac_prog_cc_stdc = xno 4492 then : 4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4494 printf %s "checking for $CC option to enable C11 features... " >&6; } 4495 if test ${ac_cv_prog_cc_c11+y} 4496 then : 4497 printf %s "(cached) " >&6 4498 else case e in #( 4499 e) ac_cv_prog_cc_c11=no 4500 ac_save_CC=$CC 4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502 /* end confdefs.h. */ 4503 $ac_c_conftest_c11_program 4504 _ACEOF 4505 for ac_arg in '' -std=gnu11 4506 do 4507 CC="$ac_save_CC $ac_arg" 4508 if ac_fn_c_try_compile "$LINENO" 4509 then : 4510 ac_cv_prog_cc_c11=$ac_arg 4511 fi 4512 rm -f core conftest.err conftest.$ac_objext conftest.beam 4513 test "x$ac_cv_prog_cc_c11" != "xno" && break 4514 done 4515 rm -f conftest.$ac_ext 4516 CC=$ac_save_CC ;; 4517 esac 4518 fi 4519 4520 if test "x$ac_cv_prog_cc_c11" = xno 4521 then : 4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4523 printf "%s\n" "unsupported" >&6; } 4524 else case e in #( 4525 e) if test "x$ac_cv_prog_cc_c11" = x 4526 then : 4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4528 printf "%s\n" "none needed" >&6; } 4529 else case e in #( 4530 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4531 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4532 CC="$CC $ac_cv_prog_cc_c11" ;; 4533 esac 4534 fi 4535 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4536 ac_prog_cc_stdc=c11 ;; 4537 esac 4538 fi 4539 fi 4540 if test x$ac_prog_cc_stdc = xno 4541 then : 4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4543 printf %s "checking for $CC option to enable C99 features... " >&6; } 4544 if test ${ac_cv_prog_cc_c99+y} 4545 then : 4546 printf %s "(cached) " >&6 4547 else case e in #( 4548 e) ac_cv_prog_cc_c99=no 4549 ac_save_CC=$CC 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4551 /* end confdefs.h. */ 4552 $ac_c_conftest_c99_program 4553 _ACEOF 4554 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4555 do 4556 CC="$ac_save_CC $ac_arg" 4557 if ac_fn_c_try_compile "$LINENO" 4558 then : 4559 ac_cv_prog_cc_c99=$ac_arg 4560 fi 4561 rm -f core conftest.err conftest.$ac_objext conftest.beam 4562 test "x$ac_cv_prog_cc_c99" != "xno" && break 4563 done 4564 rm -f conftest.$ac_ext 4565 CC=$ac_save_CC ;; 4566 esac 4567 fi 4568 4569 if test "x$ac_cv_prog_cc_c99" = xno 4570 then : 4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4572 printf "%s\n" "unsupported" >&6; } 4573 else case e in #( 4574 e) if test "x$ac_cv_prog_cc_c99" = x 4575 then : 4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4577 printf "%s\n" "none needed" >&6; } 4578 else case e in #( 4579 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4580 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4581 CC="$CC $ac_cv_prog_cc_c99" ;; 4582 esac 4583 fi 4584 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4585 ac_prog_cc_stdc=c99 ;; 4586 esac 4587 fi 4588 fi 4589 if test x$ac_prog_cc_stdc = xno 4590 then : 4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4592 printf %s "checking for $CC option to enable C89 features... " >&6; } 4593 if test ${ac_cv_prog_cc_c89+y} 4594 then : 4595 printf %s "(cached) " >&6 4596 else case e in #( 4597 e) ac_cv_prog_cc_c89=no 4598 ac_save_CC=$CC 4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4600 /* end confdefs.h. */ 4601 $ac_c_conftest_c89_program 4602 _ACEOF 4603 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4604 do 4605 CC="$ac_save_CC $ac_arg" 4606 if ac_fn_c_try_compile "$LINENO" 4607 then : 4608 ac_cv_prog_cc_c89=$ac_arg 4609 fi 4610 rm -f core conftest.err conftest.$ac_objext conftest.beam 4611 test "x$ac_cv_prog_cc_c89" != "xno" && break 4612 done 4613 rm -f conftest.$ac_ext 4614 CC=$ac_save_CC ;; 4615 esac 4616 fi 4617 4618 if test "x$ac_cv_prog_cc_c89" = xno 4619 then : 4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4621 printf "%s\n" "unsupported" >&6; } 4622 else case e in #( 4623 e) if test "x$ac_cv_prog_cc_c89" = x 4624 then : 4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4626 printf "%s\n" "none needed" >&6; } 4627 else case e in #( 4628 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4629 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4630 CC="$CC $ac_cv_prog_cc_c89" ;; 4631 esac 4632 fi 4633 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4634 ac_prog_cc_stdc=c89 ;; 4635 esac 4636 fi 4637 fi 4638 4639 ac_ext=c 4640 ac_cpp='$CPP $CPPFLAGS' 4641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4643 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4644 4645 4646 ac_ext=c 4647 ac_cpp='$CPP $CPPFLAGS' 4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4652 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4653 if test ${am_cv_prog_cc_c_o+y} 4654 then : 4655 printf %s "(cached) " >&6 4656 else case e in #( 4657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4658 /* end confdefs.h. */ 4659 4660 int 4661 main (void) 4662 { 4663 4664 ; 4665 return 0; 4666 } 4667 _ACEOF 4668 # Make sure it works both with $CC and with simple cc. 4669 # Following AC_PROG_CC_C_O, we do the test twice because some 4670 # compilers refuse to overwrite an existing .o file with -o, 4671 # though they will create one. 4672 am_cv_prog_cc_c_o=yes 4673 for am_i in 1 2; do 4674 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4675 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4676 ac_status=$? 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4678 (exit $ac_status); } \ 4679 && test -f conftest2.$ac_objext; then 4680 : OK 4681 else 4682 am_cv_prog_cc_c_o=no 4683 break 4684 fi 4685 done 4686 # aligned with autoconf, so not including core; see bug#72225. 4687 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 4688 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 4689 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 4690 unset am_i ;; 4691 esac 4692 fi 4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4694 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4695 if test "$am_cv_prog_cc_c_o" != yes; then 4696 # Losing compiler, so override with the script. 4697 # FIXME: It is wrong to rewrite CC. 4698 # But if we don't then we get into trouble of one sort or another. 4699 # A longer-term fix would be to have automake use am__CC in this case, 4700 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4701 CC="$am_aux_dir/compile $CC" 4702 fi 4703 ac_ext=c 4704 ac_cpp='$CPP $CPPFLAGS' 4705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4708 4709 4710 depcc="$CC" am_compiler_list= 4711 4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4713 printf %s "checking dependency style of $depcc... " >&6; } 4714 if test ${am_cv_CC_dependencies_compiler_type+y} 4715 then : 4716 printf %s "(cached) " >&6 4717 else case e in #( 4718 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4719 # We make a subdir and do the tests there. Otherwise we can end up 4720 # making bogus files that we don't know about and never remove. For 4721 # instance it was reported that on HP-UX the gcc test will end up 4722 # making a dummy file named 'D' -- because '-MD' means "put the output 4723 # in D". 4724 rm -rf conftest.dir 4725 mkdir conftest.dir 4726 # Copy depcomp to subdir because otherwise we won't find it if we're 4727 # using a relative directory. 4728 cp "$am_depcomp" conftest.dir 4729 cd conftest.dir 4730 # We will build objects and dependencies in a subdirectory because 4731 # it helps to detect inapplicable dependency modes. For instance 4732 # both Tru64's cc and ICC support -MD to output dependencies as a 4733 # side effect of compilation, but ICC will put the dependencies in 4734 # the current directory while Tru64 will put them in the object 4735 # directory. 4736 mkdir sub 4737 4738 am_cv_CC_dependencies_compiler_type=none 4739 if test "$am_compiler_list" = ""; then 4740 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4741 fi 4742 am__universal=false 4743 case " $depcc " in #( 4744 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4745 esac 4746 4747 for depmode in $am_compiler_list; do 4748 # Setup a source with many dependencies, because some compilers 4749 # like to wrap large dependency lists on column 80 (with \), and 4750 # we should not choose a depcomp mode which is confused by this. 4751 # 4752 # We need to recreate these files for each test, as the compiler may 4753 # overwrite some of them when testing with obscure command lines. 4754 # This happens at least with the AIX C compiler. 4755 : > sub/conftest.c 4756 for i in 1 2 3 4 5 6; do 4757 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4758 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4759 # Solaris 10 /bin/sh. 4760 echo '/* dummy */' > sub/conftst$i.h 4761 done 4762 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4763 4764 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4765 # mode. It turns out that the SunPro C++ compiler does not properly 4766 # handle '-M -o', and we need to detect this. Also, some Intel 4767 # versions had trouble with output in subdirs. 4768 am__obj=sub/conftest.${OBJEXT-o} 4769 am__minus_obj="-o $am__obj" 4770 case $depmode in 4771 gcc) 4772 # This depmode causes a compiler race in universal mode. 4773 test "$am__universal" = false || continue 4774 ;; 4775 nosideeffect) 4776 # After this tag, mechanisms are not by side-effect, so they'll 4777 # only be used when explicitly requested. 4778 if test "x$enable_dependency_tracking" = xyes; then 4779 continue 4780 else 4781 break 4782 fi 4783 ;; 4784 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4785 # This compiler won't grok '-c -o', but also, the minuso test has 4786 # not run yet. These depmodes are late enough in the game, and 4787 # so weak that their functioning should not be impacted. 4788 am__obj=conftest.${OBJEXT-o} 4789 am__minus_obj= 4790 ;; 4791 none) break ;; 4792 esac 4793 if depmode=$depmode \ 4794 source=sub/conftest.c object=$am__obj \ 4795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4796 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4797 >/dev/null 2>conftest.err && 4798 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4800 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4802 # icc doesn't choke on unknown options, it will just issue warnings 4803 # or remarks (even with -Werror). So we grep stderr for any message 4804 # that says an option was ignored or not supported. 4805 # When given -MP, icc 7.0 and 7.1 complain thus: 4806 # icc: Command line warning: ignoring option '-M'; no argument required 4807 # The diagnosis changed in icc 8.0: 4808 # icc: Command line remark: option '-MP' not supported 4809 if (grep 'ignoring option' conftest.err || 4810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4811 am_cv_CC_dependencies_compiler_type=$depmode 4812 break 4813 fi 4814 fi 4815 done 4816 4817 cd .. 4818 rm -rf conftest.dir 4819 else 4820 am_cv_CC_dependencies_compiler_type=none 4821 fi 4822 ;; 4823 esac 4824 fi 4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4826 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4828 4829 if 4830 test "x$enable_dependency_tracking" != xno \ 4831 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4832 am__fastdepCC_TRUE= 4833 am__fastdepCC_FALSE='#' 4834 else 4835 am__fastdepCC_TRUE='#' 4836 am__fastdepCC_FALSE= 4837 fi 4838 4839 4840 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4842 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4843 if test ${ac_cv_c_undeclared_builtin_options+y} 4844 then : 4845 printf %s "(cached) " >&6 4846 else case e in #( 4847 e) ac_save_CFLAGS=$CFLAGS 4848 ac_cv_c_undeclared_builtin_options='cannot detect' 4849 for ac_arg in '' -fno-builtin; do 4850 CFLAGS="$ac_save_CFLAGS $ac_arg" 4851 # This test program should *not* compile successfully. 4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4853 /* end confdefs.h. */ 4854 4855 int 4856 main (void) 4857 { 4858 (void) strchr; 4859 ; 4860 return 0; 4861 } 4862 _ACEOF 4863 if ac_fn_c_try_compile "$LINENO" 4864 then : 4865 4866 else case e in #( 4867 e) # This test program should compile successfully. 4868 # No library function is consistently available on 4869 # freestanding implementations, so test against a dummy 4870 # declaration. Include always-available headers on the 4871 # off chance that they somehow elicit warnings. 4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4873 /* end confdefs.h. */ 4874 #include <float.h> 4875 #include <limits.h> 4876 #include <stdarg.h> 4877 #include <stddef.h> 4878 extern void ac_decl (int, char *); 4879 4880 int 4881 main (void) 4882 { 4883 (void) ac_decl (0, (char *) 0); 4884 (void) ac_decl; 4885 4886 ; 4887 return 0; 4888 } 4889 _ACEOF 4890 if ac_fn_c_try_compile "$LINENO" 4891 then : 4892 if test x"$ac_arg" = x 4893 then : 4894 ac_cv_c_undeclared_builtin_options='none needed' 4895 else case e in #( 4896 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4897 esac 4898 fi 4899 break 4900 fi 4901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4902 esac 4903 fi 4904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4905 done 4906 CFLAGS=$ac_save_CFLAGS 4907 ;; 4908 esac 4909 fi 4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4911 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4912 case $ac_cv_c_undeclared_builtin_options in #( 4913 'cannot detect') : 4914 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4915 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4916 as_fn_error $? "cannot make $CC report undeclared builtins 4917 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4918 'none needed') : 4919 ac_c_undeclared_builtin_options='' ;; #( 4920 *) : 4921 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4922 esac 4923 4924 ac_header= ac_cache= 4925 for ac_item in $ac_header_c_list 4926 do 4927 if test $ac_cache; then 4928 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4929 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4930 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4931 fi 4932 ac_header= ac_cache= 4933 elif test $ac_header; then 4934 ac_cache=$ac_item 4935 else 4936 ac_header=$ac_item 4937 fi 4938 done 4939 4940 4941 4942 4943 4944 4945 4946 4947 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4948 then : 4949 4950 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4951 4952 fi 4953 4954 4955 4956 4957 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4958 if test "x$ac_cv_have_decl___clang__" = xyes 4959 then : 4960 CLANGCC="yes" 4961 else case e in #( 4962 e) CLANGCC="no" ;; 4963 esac 4964 fi 4965 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4966 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4967 then : 4968 INTELCC="yes" 4969 else case e in #( 4970 e) INTELCC="no" ;; 4971 esac 4972 fi 4973 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4974 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4975 then : 4976 SUNCC="yes" 4977 else case e in #( 4978 e) SUNCC="no" ;; 4979 esac 4980 fi 4981 4982 4983 4984 4985 4986 4987 4988 4989 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4990 if test -n "$ac_tool_prefix"; then 4991 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4992 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4994 printf %s "checking for $ac_word... " >&6; } 4995 if test ${ac_cv_path_PKG_CONFIG+y} 4996 then : 4997 printf %s "(cached) " >&6 4998 else case e in #( 4999 e) case $PKG_CONFIG in 5000 [\\/]* | ?:[\\/]*) 5001 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5002 ;; 5003 *) 5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5005 for as_dir in $PATH 5006 do 5007 IFS=$as_save_IFS 5008 case $as_dir in #((( 5009 '') as_dir=./ ;; 5010 */) ;; 5011 *) as_dir=$as_dir/ ;; 5012 esac 5013 for ac_exec_ext in '' $ac_executable_extensions; do 5014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5015 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5017 break 2 5018 fi 5019 done 5020 done 5021 IFS=$as_save_IFS 5022 5023 ;; 5024 esac ;; 5025 esac 5026 fi 5027 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5028 if test -n "$PKG_CONFIG"; then 5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5030 printf "%s\n" "$PKG_CONFIG" >&6; } 5031 else 5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5033 printf "%s\n" "no" >&6; } 5034 fi 5035 5036 5037 fi 5038 if test -z "$ac_cv_path_PKG_CONFIG"; then 5039 ac_pt_PKG_CONFIG=$PKG_CONFIG 5040 # Extract the first word of "pkg-config", so it can be a program name with args. 5041 set dummy pkg-config; ac_word=$2 5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5043 printf %s "checking for $ac_word... " >&6; } 5044 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5045 then : 5046 printf %s "(cached) " >&6 5047 else case e in #( 5048 e) case $ac_pt_PKG_CONFIG in 5049 [\\/]* | ?:[\\/]*) 5050 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5051 ;; 5052 *) 5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5054 for as_dir in $PATH 5055 do 5056 IFS=$as_save_IFS 5057 case $as_dir in #((( 5058 '') as_dir=./ ;; 5059 */) ;; 5060 *) as_dir=$as_dir/ ;; 5061 esac 5062 for ac_exec_ext in '' $ac_executable_extensions; do 5063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5064 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5066 break 2 5067 fi 5068 done 5069 done 5070 IFS=$as_save_IFS 5071 5072 ;; 5073 esac ;; 5074 esac 5075 fi 5076 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5077 if test -n "$ac_pt_PKG_CONFIG"; then 5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5079 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5080 else 5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5082 printf "%s\n" "no" >&6; } 5083 fi 5084 5085 if test "x$ac_pt_PKG_CONFIG" = x; then 5086 PKG_CONFIG="" 5087 else 5088 case $cross_compiling:$ac_tool_warned in 5089 yes:) 5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5091 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5092 ac_tool_warned=yes ;; 5093 esac 5094 PKG_CONFIG=$ac_pt_PKG_CONFIG 5095 fi 5096 else 5097 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5098 fi 5099 5100 fi 5101 if test -n "$PKG_CONFIG"; then 5102 _pkg_min_version=0.9.0 5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5104 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5105 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5107 printf "%s\n" "yes" >&6; } 5108 else 5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5110 printf "%s\n" "no" >&6; } 5111 PKG_CONFIG="" 5112 fi 5113 fi 5114 5115 5116 # Make sure we can run config.sub. 5117 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5118 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5119 5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5121 printf %s "checking build system type... " >&6; } 5122 if test ${ac_cv_build+y} 5123 then : 5124 printf %s "(cached) " >&6 5125 else case e in #( 5126 e) ac_build_alias=$build_alias 5127 test "x$ac_build_alias" = x && 5128 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5129 test "x$ac_build_alias" = x && 5130 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5131 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5132 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5133 ;; 5134 esac 5135 fi 5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5137 printf "%s\n" "$ac_cv_build" >&6; } 5138 case $ac_cv_build in 5139 *-*-*) ;; 5140 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5141 esac 5142 build=$ac_cv_build 5143 ac_save_IFS=$IFS; IFS='-' 5144 set x $ac_cv_build 5145 shift 5146 build_cpu=$1 5147 build_vendor=$2 5148 shift; shift 5149 # Remember, the first character of IFS is used to create $*, 5150 # except with old shells: 5151 build_os=$* 5152 IFS=$ac_save_IFS 5153 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5154 5155 5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5157 printf %s "checking host system type... " >&6; } 5158 if test ${ac_cv_host+y} 5159 then : 5160 printf %s "(cached) " >&6 5161 else case e in #( 5162 e) if test "x$host_alias" = x; then 5163 ac_cv_host=$ac_cv_build 5164 else 5165 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5166 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5167 fi 5168 ;; 5169 esac 5170 fi 5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5172 printf "%s\n" "$ac_cv_host" >&6; } 5173 case $ac_cv_host in 5174 *-*-*) ;; 5175 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5176 esac 5177 host=$ac_cv_host 5178 ac_save_IFS=$IFS; IFS='-' 5179 set x $ac_cv_host 5180 shift 5181 host_cpu=$1 5182 host_vendor=$2 5183 shift; shift 5184 # Remember, the first character of IFS is used to create $*, 5185 # except with old shells: 5186 host_os=$* 5187 IFS=$ac_save_IFS 5188 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5189 5190 5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5192 printf %s "checking for a sed that does not truncate output... " >&6; } 5193 if test ${ac_cv_path_SED+y} 5194 then : 5195 printf %s "(cached) " >&6 5196 else case e in #( 5197 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5198 for ac_i in 1 2 3 4 5 6 7; do 5199 ac_script="$ac_script$as_nl$ac_script" 5200 done 5201 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5202 { ac_script=; unset ac_script;} 5203 if test -z "$SED"; then 5204 ac_path_SED_found=false 5205 # Loop through the user's path and test for each of PROGNAME-LIST 5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5207 for as_dir in $PATH 5208 do 5209 IFS=$as_save_IFS 5210 case $as_dir in #((( 5211 '') as_dir=./ ;; 5212 */) ;; 5213 *) as_dir=$as_dir/ ;; 5214 esac 5215 for ac_prog in sed gsed 5216 do 5217 for ac_exec_ext in '' $ac_executable_extensions; do 5218 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5219 as_fn_executable_p "$ac_path_SED" || continue 5220 # Check for GNU ac_path_SED and select it if it is found. 5221 # Check for GNU $ac_path_SED 5222 case `"$ac_path_SED" --version 2>&1` in #( 5223 *GNU*) 5224 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5225 #( 5226 *) 5227 ac_count=0 5228 printf %s 0123456789 >"conftest.in" 5229 while : 5230 do 5231 cat "conftest.in" "conftest.in" >"conftest.tmp" 5232 mv "conftest.tmp" "conftest.in" 5233 cp "conftest.in" "conftest.nl" 5234 printf "%s\n" '' >> "conftest.nl" 5235 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5237 as_fn_arith $ac_count + 1 && ac_count=$as_val 5238 if test $ac_count -gt ${ac_path_SED_max-0}; then 5239 # Best one so far, save it but keep looking for a better one 5240 ac_cv_path_SED="$ac_path_SED" 5241 ac_path_SED_max=$ac_count 5242 fi 5243 # 10*(2^10) chars as input seems more than enough 5244 test $ac_count -gt 10 && break 5245 done 5246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5247 esac 5248 5249 $ac_path_SED_found && break 3 5250 done 5251 done 5252 done 5253 IFS=$as_save_IFS 5254 if test -z "$ac_cv_path_SED"; then 5255 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5256 fi 5257 else 5258 ac_cv_path_SED=$SED 5259 fi 5260 ;; 5261 esac 5262 fi 5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5264 printf "%s\n" "$ac_cv_path_SED" >&6; } 5265 SED="$ac_cv_path_SED" 5266 rm -f conftest.sed 5267 5268 5269 5270 5271 5272 5273 # Check whether --enable-selective-werror was given. 5274 if test ${enable_selective_werror+y} 5275 then : 5276 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5277 else case e in #( 5278 e) SELECTIVE_WERROR=yes ;; 5279 esac 5280 fi 5281 5282 5283 5284 5285 5286 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5287 if test "x$SUNCC" = "xyes"; then 5288 BASE_CFLAGS="-v" 5289 else 5290 BASE_CFLAGS="" 5291 fi 5292 5293 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 xorg_testset_save_CFLAGS="$CFLAGS" 5308 5309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5313 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5314 then : 5315 printf %s "(cached) " >&6 5316 else case e in #( 5317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5318 /* end confdefs.h. */ 5319 int i; 5320 _ACEOF 5321 if ac_fn_c_try_compile "$LINENO" 5322 then : 5323 xorg_cv_cc_flag_unknown_warning_option=yes 5324 else case e in #( 5325 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5326 esac 5327 fi 5328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5329 esac 5330 fi 5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5332 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5334 CFLAGS="$xorg_testset_save_CFLAGS" 5335 fi 5336 5337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5340 fi 5341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5345 then : 5346 printf %s "(cached) " >&6 5347 else case e in #( 5348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5349 /* end confdefs.h. */ 5350 int i; 5351 _ACEOF 5352 if ac_fn_c_try_compile "$LINENO" 5353 then : 5354 xorg_cv_cc_flag_unused_command_line_argument=yes 5355 else case e in #( 5356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5357 esac 5358 fi 5359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5360 esac 5361 fi 5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5365 CFLAGS="$xorg_testset_save_CFLAGS" 5366 fi 5367 5368 found="no" 5369 5370 if test $found = "no" ; then 5371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5373 fi 5374 5375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5377 fi 5378 5379 CFLAGS="$CFLAGS -Wall" 5380 5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5382 printf %s "checking if $CC supports -Wall... " >&6; } 5383 cacheid=xorg_cv_cc_flag__Wall 5384 if eval test \${$cacheid+y} 5385 then : 5386 printf %s "(cached) " >&6 5387 else case e in #( 5388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5389 /* end confdefs.h. */ 5390 int i; 5391 int 5392 main (void) 5393 { 5394 5395 ; 5396 return 0; 5397 } 5398 _ACEOF 5399 if ac_fn_c_try_link "$LINENO" 5400 then : 5401 eval $cacheid=yes 5402 else case e in #( 5403 e) eval $cacheid=no ;; 5404 esac 5405 fi 5406 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5407 conftest$ac_exeext conftest.$ac_ext ;; 5408 esac 5409 fi 5410 5411 5412 CFLAGS="$xorg_testset_save_CFLAGS" 5413 5414 eval supported=\$$cacheid 5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5416 printf "%s\n" "$supported" >&6; } 5417 if test "$supported" = "yes" ; then 5418 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5419 found="yes" 5420 fi 5421 fi 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 xorg_testset_save_CFLAGS="$CFLAGS" 5438 5439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5443 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5444 then : 5445 printf %s "(cached) " >&6 5446 else case e in #( 5447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5448 /* end confdefs.h. */ 5449 int i; 5450 _ACEOF 5451 if ac_fn_c_try_compile "$LINENO" 5452 then : 5453 xorg_cv_cc_flag_unknown_warning_option=yes 5454 else case e in #( 5455 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5456 esac 5457 fi 5458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5459 esac 5460 fi 5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5464 CFLAGS="$xorg_testset_save_CFLAGS" 5465 fi 5466 5467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 fi 5471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5475 then : 5476 printf %s "(cached) " >&6 5477 else case e in #( 5478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479 /* end confdefs.h. */ 5480 int i; 5481 _ACEOF 5482 if ac_fn_c_try_compile "$LINENO" 5483 then : 5484 xorg_cv_cc_flag_unused_command_line_argument=yes 5485 else case e in #( 5486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5487 esac 5488 fi 5489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5490 esac 5491 fi 5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5495 CFLAGS="$xorg_testset_save_CFLAGS" 5496 fi 5497 5498 found="no" 5499 5500 if test $found = "no" ; then 5501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5503 fi 5504 5505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5507 fi 5508 5509 CFLAGS="$CFLAGS -Wpointer-arith" 5510 5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5512 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5513 cacheid=xorg_cv_cc_flag__Wpointer_arith 5514 if eval test \${$cacheid+y} 5515 then : 5516 printf %s "(cached) " >&6 5517 else case e in #( 5518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5519 /* end confdefs.h. */ 5520 int i; 5521 int 5522 main (void) 5523 { 5524 5525 ; 5526 return 0; 5527 } 5528 _ACEOF 5529 if ac_fn_c_try_link "$LINENO" 5530 then : 5531 eval $cacheid=yes 5532 else case e in #( 5533 e) eval $cacheid=no ;; 5534 esac 5535 fi 5536 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5537 conftest$ac_exeext conftest.$ac_ext ;; 5538 esac 5539 fi 5540 5541 5542 CFLAGS="$xorg_testset_save_CFLAGS" 5543 5544 eval supported=\$$cacheid 5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5546 printf "%s\n" "$supported" >&6; } 5547 if test "$supported" = "yes" ; then 5548 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5549 found="yes" 5550 fi 5551 fi 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 xorg_testset_save_CFLAGS="$CFLAGS" 5568 5569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5573 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5574 then : 5575 printf %s "(cached) " >&6 5576 else case e in #( 5577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5578 /* end confdefs.h. */ 5579 int i; 5580 _ACEOF 5581 if ac_fn_c_try_compile "$LINENO" 5582 then : 5583 xorg_cv_cc_flag_unknown_warning_option=yes 5584 else case e in #( 5585 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5586 esac 5587 fi 5588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5589 esac 5590 fi 5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5592 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5594 CFLAGS="$xorg_testset_save_CFLAGS" 5595 fi 5596 5597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5600 fi 5601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5603 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5604 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5605 then : 5606 printf %s "(cached) " >&6 5607 else case e in #( 5608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5609 /* end confdefs.h. */ 5610 int i; 5611 _ACEOF 5612 if ac_fn_c_try_compile "$LINENO" 5613 then : 5614 xorg_cv_cc_flag_unused_command_line_argument=yes 5615 else case e in #( 5616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5617 esac 5618 fi 5619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5620 esac 5621 fi 5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5623 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5625 CFLAGS="$xorg_testset_save_CFLAGS" 5626 fi 5627 5628 found="no" 5629 5630 if test $found = "no" ; then 5631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5633 fi 5634 5635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5637 fi 5638 5639 CFLAGS="$CFLAGS -Wmissing-declarations" 5640 5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5642 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5643 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5644 if eval test \${$cacheid+y} 5645 then : 5646 printf %s "(cached) " >&6 5647 else case e in #( 5648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5649 /* end confdefs.h. */ 5650 int i; 5651 int 5652 main (void) 5653 { 5654 5655 ; 5656 return 0; 5657 } 5658 _ACEOF 5659 if ac_fn_c_try_link "$LINENO" 5660 then : 5661 eval $cacheid=yes 5662 else case e in #( 5663 e) eval $cacheid=no ;; 5664 esac 5665 fi 5666 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5667 conftest$ac_exeext conftest.$ac_ext ;; 5668 esac 5669 fi 5670 5671 5672 CFLAGS="$xorg_testset_save_CFLAGS" 5673 5674 eval supported=\$$cacheid 5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5676 printf "%s\n" "$supported" >&6; } 5677 if test "$supported" = "yes" ; then 5678 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5679 found="yes" 5680 fi 5681 fi 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 xorg_testset_save_CFLAGS="$CFLAGS" 5698 5699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5703 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5704 then : 5705 printf %s "(cached) " >&6 5706 else case e in #( 5707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5708 /* end confdefs.h. */ 5709 int i; 5710 _ACEOF 5711 if ac_fn_c_try_compile "$LINENO" 5712 then : 5713 xorg_cv_cc_flag_unknown_warning_option=yes 5714 else case e in #( 5715 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5716 esac 5717 fi 5718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5719 esac 5720 fi 5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5722 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5724 CFLAGS="$xorg_testset_save_CFLAGS" 5725 fi 5726 5727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5730 fi 5731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5733 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5734 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5735 then : 5736 printf %s "(cached) " >&6 5737 else case e in #( 5738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5739 /* end confdefs.h. */ 5740 int i; 5741 _ACEOF 5742 if ac_fn_c_try_compile "$LINENO" 5743 then : 5744 xorg_cv_cc_flag_unused_command_line_argument=yes 5745 else case e in #( 5746 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5747 esac 5748 fi 5749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5750 esac 5751 fi 5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5753 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5755 CFLAGS="$xorg_testset_save_CFLAGS" 5756 fi 5757 5758 found="no" 5759 5760 if test $found = "no" ; then 5761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5763 fi 5764 5765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5767 fi 5768 5769 CFLAGS="$CFLAGS -Wformat=2" 5770 5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5772 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5773 cacheid=xorg_cv_cc_flag__Wformat_2 5774 if eval test \${$cacheid+y} 5775 then : 5776 printf %s "(cached) " >&6 5777 else case e in #( 5778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5779 /* end confdefs.h. */ 5780 int i; 5781 int 5782 main (void) 5783 { 5784 5785 ; 5786 return 0; 5787 } 5788 _ACEOF 5789 if ac_fn_c_try_link "$LINENO" 5790 then : 5791 eval $cacheid=yes 5792 else case e in #( 5793 e) eval $cacheid=no ;; 5794 esac 5795 fi 5796 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5797 conftest$ac_exeext conftest.$ac_ext ;; 5798 esac 5799 fi 5800 5801 5802 CFLAGS="$xorg_testset_save_CFLAGS" 5803 5804 eval supported=\$$cacheid 5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5806 printf "%s\n" "$supported" >&6; } 5807 if test "$supported" = "yes" ; then 5808 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5809 found="yes" 5810 fi 5811 fi 5812 5813 if test $found = "no" ; then 5814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5816 fi 5817 5818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5820 fi 5821 5822 CFLAGS="$CFLAGS -Wformat" 5823 5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5825 printf %s "checking if $CC supports -Wformat... " >&6; } 5826 cacheid=xorg_cv_cc_flag__Wformat 5827 if eval test \${$cacheid+y} 5828 then : 5829 printf %s "(cached) " >&6 5830 else case e in #( 5831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5832 /* end confdefs.h. */ 5833 int i; 5834 int 5835 main (void) 5836 { 5837 5838 ; 5839 return 0; 5840 } 5841 _ACEOF 5842 if ac_fn_c_try_link "$LINENO" 5843 then : 5844 eval $cacheid=yes 5845 else case e in #( 5846 e) eval $cacheid=no ;; 5847 esac 5848 fi 5849 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5850 conftest$ac_exeext conftest.$ac_ext ;; 5851 esac 5852 fi 5853 5854 5855 CFLAGS="$xorg_testset_save_CFLAGS" 5856 5857 eval supported=\$$cacheid 5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5859 printf "%s\n" "$supported" >&6; } 5860 if test "$supported" = "yes" ; then 5861 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5862 found="yes" 5863 fi 5864 fi 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 xorg_testset_save_CFLAGS="$CFLAGS" 5883 5884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5888 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5889 then : 5890 printf %s "(cached) " >&6 5891 else case e in #( 5892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893 /* end confdefs.h. */ 5894 int i; 5895 _ACEOF 5896 if ac_fn_c_try_compile "$LINENO" 5897 then : 5898 xorg_cv_cc_flag_unknown_warning_option=yes 5899 else case e in #( 5900 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5901 esac 5902 fi 5903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5904 esac 5905 fi 5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5907 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5909 CFLAGS="$xorg_testset_save_CFLAGS" 5910 fi 5911 5912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5915 fi 5916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5920 then : 5921 printf %s "(cached) " >&6 5922 else case e in #( 5923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924 /* end confdefs.h. */ 5925 int i; 5926 _ACEOF 5927 if ac_fn_c_try_compile "$LINENO" 5928 then : 5929 xorg_cv_cc_flag_unused_command_line_argument=yes 5930 else case e in #( 5931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5932 esac 5933 fi 5934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5935 esac 5936 fi 5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5938 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5940 CFLAGS="$xorg_testset_save_CFLAGS" 5941 fi 5942 5943 found="no" 5944 5945 if test $found = "no" ; then 5946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5948 fi 5949 5950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5952 fi 5953 5954 CFLAGS="$CFLAGS -Wstrict-prototypes" 5955 5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5957 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5958 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5959 if eval test \${$cacheid+y} 5960 then : 5961 printf %s "(cached) " >&6 5962 else case e in #( 5963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5964 /* end confdefs.h. */ 5965 int i; 5966 int 5967 main (void) 5968 { 5969 5970 ; 5971 return 0; 5972 } 5973 _ACEOF 5974 if ac_fn_c_try_link "$LINENO" 5975 then : 5976 eval $cacheid=yes 5977 else case e in #( 5978 e) eval $cacheid=no ;; 5979 esac 5980 fi 5981 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5982 conftest$ac_exeext conftest.$ac_ext ;; 5983 esac 5984 fi 5985 5986 5987 CFLAGS="$xorg_testset_save_CFLAGS" 5988 5989 eval supported=\$$cacheid 5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5991 printf "%s\n" "$supported" >&6; } 5992 if test "$supported" = "yes" ; then 5993 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5994 found="yes" 5995 fi 5996 fi 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 xorg_testset_save_CFLAGS="$CFLAGS" 6013 6014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6018 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6019 then : 6020 printf %s "(cached) " >&6 6021 else case e in #( 6022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6023 /* end confdefs.h. */ 6024 int i; 6025 _ACEOF 6026 if ac_fn_c_try_compile "$LINENO" 6027 then : 6028 xorg_cv_cc_flag_unknown_warning_option=yes 6029 else case e in #( 6030 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6031 esac 6032 fi 6033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6034 esac 6035 fi 6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6039 CFLAGS="$xorg_testset_save_CFLAGS" 6040 fi 6041 6042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6045 fi 6046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6050 then : 6051 printf %s "(cached) " >&6 6052 else case e in #( 6053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6054 /* end confdefs.h. */ 6055 int i; 6056 _ACEOF 6057 if ac_fn_c_try_compile "$LINENO" 6058 then : 6059 xorg_cv_cc_flag_unused_command_line_argument=yes 6060 else case e in #( 6061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6062 esac 6063 fi 6064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6065 esac 6066 fi 6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6068 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6070 CFLAGS="$xorg_testset_save_CFLAGS" 6071 fi 6072 6073 found="no" 6074 6075 if test $found = "no" ; then 6076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6078 fi 6079 6080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6082 fi 6083 6084 CFLAGS="$CFLAGS -Wmissing-prototypes" 6085 6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6087 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6088 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6089 if eval test \${$cacheid+y} 6090 then : 6091 printf %s "(cached) " >&6 6092 else case e in #( 6093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6094 /* end confdefs.h. */ 6095 int i; 6096 int 6097 main (void) 6098 { 6099 6100 ; 6101 return 0; 6102 } 6103 _ACEOF 6104 if ac_fn_c_try_link "$LINENO" 6105 then : 6106 eval $cacheid=yes 6107 else case e in #( 6108 e) eval $cacheid=no ;; 6109 esac 6110 fi 6111 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6112 conftest$ac_exeext conftest.$ac_ext ;; 6113 esac 6114 fi 6115 6116 6117 CFLAGS="$xorg_testset_save_CFLAGS" 6118 6119 eval supported=\$$cacheid 6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6121 printf "%s\n" "$supported" >&6; } 6122 if test "$supported" = "yes" ; then 6123 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6124 found="yes" 6125 fi 6126 fi 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 xorg_testset_save_CFLAGS="$CFLAGS" 6143 6144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6147 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6148 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6149 then : 6150 printf %s "(cached) " >&6 6151 else case e in #( 6152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6153 /* end confdefs.h. */ 6154 int i; 6155 _ACEOF 6156 if ac_fn_c_try_compile "$LINENO" 6157 then : 6158 xorg_cv_cc_flag_unknown_warning_option=yes 6159 else case e in #( 6160 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6161 esac 6162 fi 6163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6164 esac 6165 fi 6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6167 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6169 CFLAGS="$xorg_testset_save_CFLAGS" 6170 fi 6171 6172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6175 fi 6176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6178 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6179 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6180 then : 6181 printf %s "(cached) " >&6 6182 else case e in #( 6183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6184 /* end confdefs.h. */ 6185 int i; 6186 _ACEOF 6187 if ac_fn_c_try_compile "$LINENO" 6188 then : 6189 xorg_cv_cc_flag_unused_command_line_argument=yes 6190 else case e in #( 6191 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6192 esac 6193 fi 6194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6195 esac 6196 fi 6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6198 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6200 CFLAGS="$xorg_testset_save_CFLAGS" 6201 fi 6202 6203 found="no" 6204 6205 if test $found = "no" ; then 6206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6208 fi 6209 6210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6212 fi 6213 6214 CFLAGS="$CFLAGS -Wnested-externs" 6215 6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6217 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6218 cacheid=xorg_cv_cc_flag__Wnested_externs 6219 if eval test \${$cacheid+y} 6220 then : 6221 printf %s "(cached) " >&6 6222 else case e in #( 6223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6224 /* end confdefs.h. */ 6225 int i; 6226 int 6227 main (void) 6228 { 6229 6230 ; 6231 return 0; 6232 } 6233 _ACEOF 6234 if ac_fn_c_try_link "$LINENO" 6235 then : 6236 eval $cacheid=yes 6237 else case e in #( 6238 e) eval $cacheid=no ;; 6239 esac 6240 fi 6241 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6242 conftest$ac_exeext conftest.$ac_ext ;; 6243 esac 6244 fi 6245 6246 6247 CFLAGS="$xorg_testset_save_CFLAGS" 6248 6249 eval supported=\$$cacheid 6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6251 printf "%s\n" "$supported" >&6; } 6252 if test "$supported" = "yes" ; then 6253 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6254 found="yes" 6255 fi 6256 fi 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 xorg_testset_save_CFLAGS="$CFLAGS" 6273 6274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6277 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6278 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6279 then : 6280 printf %s "(cached) " >&6 6281 else case e in #( 6282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6283 /* end confdefs.h. */ 6284 int i; 6285 _ACEOF 6286 if ac_fn_c_try_compile "$LINENO" 6287 then : 6288 xorg_cv_cc_flag_unknown_warning_option=yes 6289 else case e in #( 6290 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6291 esac 6292 fi 6293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6294 esac 6295 fi 6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6297 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6299 CFLAGS="$xorg_testset_save_CFLAGS" 6300 fi 6301 6302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6305 fi 6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6308 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6309 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6310 then : 6311 printf %s "(cached) " >&6 6312 else case e in #( 6313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6314 /* end confdefs.h. */ 6315 int i; 6316 _ACEOF 6317 if ac_fn_c_try_compile "$LINENO" 6318 then : 6319 xorg_cv_cc_flag_unused_command_line_argument=yes 6320 else case e in #( 6321 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6322 esac 6323 fi 6324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6325 esac 6326 fi 6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6328 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6330 CFLAGS="$xorg_testset_save_CFLAGS" 6331 fi 6332 6333 found="no" 6334 6335 if test $found = "no" ; then 6336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6338 fi 6339 6340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6342 fi 6343 6344 CFLAGS="$CFLAGS -Wbad-function-cast" 6345 6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6347 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6348 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6349 if eval test \${$cacheid+y} 6350 then : 6351 printf %s "(cached) " >&6 6352 else case e in #( 6353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354 /* end confdefs.h. */ 6355 int i; 6356 int 6357 main (void) 6358 { 6359 6360 ; 6361 return 0; 6362 } 6363 _ACEOF 6364 if ac_fn_c_try_link "$LINENO" 6365 then : 6366 eval $cacheid=yes 6367 else case e in #( 6368 e) eval $cacheid=no ;; 6369 esac 6370 fi 6371 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6372 conftest$ac_exeext conftest.$ac_ext ;; 6373 esac 6374 fi 6375 6376 6377 CFLAGS="$xorg_testset_save_CFLAGS" 6378 6379 eval supported=\$$cacheid 6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6381 printf "%s\n" "$supported" >&6; } 6382 if test "$supported" = "yes" ; then 6383 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6384 found="yes" 6385 fi 6386 fi 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 xorg_testset_save_CFLAGS="$CFLAGS" 6403 6404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6407 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6408 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6409 then : 6410 printf %s "(cached) " >&6 6411 else case e in #( 6412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413 /* end confdefs.h. */ 6414 int i; 6415 _ACEOF 6416 if ac_fn_c_try_compile "$LINENO" 6417 then : 6418 xorg_cv_cc_flag_unknown_warning_option=yes 6419 else case e in #( 6420 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6421 esac 6422 fi 6423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6424 esac 6425 fi 6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6427 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6429 CFLAGS="$xorg_testset_save_CFLAGS" 6430 fi 6431 6432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435 fi 6436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6438 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6439 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6440 then : 6441 printf %s "(cached) " >&6 6442 else case e in #( 6443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6444 /* end confdefs.h. */ 6445 int i; 6446 _ACEOF 6447 if ac_fn_c_try_compile "$LINENO" 6448 then : 6449 xorg_cv_cc_flag_unused_command_line_argument=yes 6450 else case e in #( 6451 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6452 esac 6453 fi 6454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6455 esac 6456 fi 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6458 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6460 CFLAGS="$xorg_testset_save_CFLAGS" 6461 fi 6462 6463 found="no" 6464 6465 if test $found = "no" ; then 6466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6468 fi 6469 6470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6472 fi 6473 6474 CFLAGS="$CFLAGS -Wold-style-definition" 6475 6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6477 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6478 cacheid=xorg_cv_cc_flag__Wold_style_definition 6479 if eval test \${$cacheid+y} 6480 then : 6481 printf %s "(cached) " >&6 6482 else case e in #( 6483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484 /* end confdefs.h. */ 6485 int i; 6486 int 6487 main (void) 6488 { 6489 6490 ; 6491 return 0; 6492 } 6493 _ACEOF 6494 if ac_fn_c_try_link "$LINENO" 6495 then : 6496 eval $cacheid=yes 6497 else case e in #( 6498 e) eval $cacheid=no ;; 6499 esac 6500 fi 6501 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6502 conftest$ac_exeext conftest.$ac_ext ;; 6503 esac 6504 fi 6505 6506 6507 CFLAGS="$xorg_testset_save_CFLAGS" 6508 6509 eval supported=\$$cacheid 6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6511 printf "%s\n" "$supported" >&6; } 6512 if test "$supported" = "yes" ; then 6513 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6514 found="yes" 6515 fi 6516 fi 6517 6518 if test $found = "no" ; then 6519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6521 fi 6522 6523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6525 fi 6526 6527 CFLAGS="$CFLAGS -fd" 6528 6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6530 printf %s "checking if $CC supports -fd... " >&6; } 6531 cacheid=xorg_cv_cc_flag__fd 6532 if eval test \${$cacheid+y} 6533 then : 6534 printf %s "(cached) " >&6 6535 else case e in #( 6536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6537 /* end confdefs.h. */ 6538 int i; 6539 int 6540 main (void) 6541 { 6542 6543 ; 6544 return 0; 6545 } 6546 _ACEOF 6547 if ac_fn_c_try_link "$LINENO" 6548 then : 6549 eval $cacheid=yes 6550 else case e in #( 6551 e) eval $cacheid=no ;; 6552 esac 6553 fi 6554 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6555 conftest$ac_exeext conftest.$ac_ext ;; 6556 esac 6557 fi 6558 6559 6560 CFLAGS="$xorg_testset_save_CFLAGS" 6561 6562 eval supported=\$$cacheid 6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6564 printf "%s\n" "$supported" >&6; } 6565 if test "$supported" = "yes" ; then 6566 BASE_CFLAGS="$BASE_CFLAGS -fd" 6567 found="yes" 6568 fi 6569 fi 6570 6571 6572 6573 6574 6575 # This chunk adds additional warnings that could catch undesired effects. 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 xorg_testset_save_CFLAGS="$CFLAGS" 6590 6591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6594 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6595 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6596 then : 6597 printf %s "(cached) " >&6 6598 else case e in #( 6599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600 /* end confdefs.h. */ 6601 int i; 6602 _ACEOF 6603 if ac_fn_c_try_compile "$LINENO" 6604 then : 6605 xorg_cv_cc_flag_unknown_warning_option=yes 6606 else case e in #( 6607 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6608 esac 6609 fi 6610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6611 esac 6612 fi 6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6614 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6616 CFLAGS="$xorg_testset_save_CFLAGS" 6617 fi 6618 6619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6622 fi 6623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6625 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6626 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6627 then : 6628 printf %s "(cached) " >&6 6629 else case e in #( 6630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6631 /* end confdefs.h. */ 6632 int i; 6633 _ACEOF 6634 if ac_fn_c_try_compile "$LINENO" 6635 then : 6636 xorg_cv_cc_flag_unused_command_line_argument=yes 6637 else case e in #( 6638 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6639 esac 6640 fi 6641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6642 esac 6643 fi 6644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6645 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6647 CFLAGS="$xorg_testset_save_CFLAGS" 6648 fi 6649 6650 found="no" 6651 6652 if test $found = "no" ; then 6653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6655 fi 6656 6657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6659 fi 6660 6661 CFLAGS="$CFLAGS -Wunused" 6662 6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6664 printf %s "checking if $CC supports -Wunused... " >&6; } 6665 cacheid=xorg_cv_cc_flag__Wunused 6666 if eval test \${$cacheid+y} 6667 then : 6668 printf %s "(cached) " >&6 6669 else case e in #( 6670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671 /* end confdefs.h. */ 6672 int i; 6673 int 6674 main (void) 6675 { 6676 6677 ; 6678 return 0; 6679 } 6680 _ACEOF 6681 if ac_fn_c_try_link "$LINENO" 6682 then : 6683 eval $cacheid=yes 6684 else case e in #( 6685 e) eval $cacheid=no ;; 6686 esac 6687 fi 6688 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6689 conftest$ac_exeext conftest.$ac_ext ;; 6690 esac 6691 fi 6692 6693 6694 CFLAGS="$xorg_testset_save_CFLAGS" 6695 6696 eval supported=\$$cacheid 6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6698 printf "%s\n" "$supported" >&6; } 6699 if test "$supported" = "yes" ; then 6700 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6701 found="yes" 6702 fi 6703 fi 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 xorg_testset_save_CFLAGS="$CFLAGS" 6720 6721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6724 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6725 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6726 then : 6727 printf %s "(cached) " >&6 6728 else case e in #( 6729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6730 /* end confdefs.h. */ 6731 int i; 6732 _ACEOF 6733 if ac_fn_c_try_compile "$LINENO" 6734 then : 6735 xorg_cv_cc_flag_unknown_warning_option=yes 6736 else case e in #( 6737 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6738 esac 6739 fi 6740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6741 esac 6742 fi 6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6744 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6746 CFLAGS="$xorg_testset_save_CFLAGS" 6747 fi 6748 6749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6752 fi 6753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6755 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6756 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6757 then : 6758 printf %s "(cached) " >&6 6759 else case e in #( 6760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6761 /* end confdefs.h. */ 6762 int i; 6763 _ACEOF 6764 if ac_fn_c_try_compile "$LINENO" 6765 then : 6766 xorg_cv_cc_flag_unused_command_line_argument=yes 6767 else case e in #( 6768 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6769 esac 6770 fi 6771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6772 esac 6773 fi 6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6775 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6777 CFLAGS="$xorg_testset_save_CFLAGS" 6778 fi 6779 6780 found="no" 6781 6782 if test $found = "no" ; then 6783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6785 fi 6786 6787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6789 fi 6790 6791 CFLAGS="$CFLAGS -Wuninitialized" 6792 6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6794 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6795 cacheid=xorg_cv_cc_flag__Wuninitialized 6796 if eval test \${$cacheid+y} 6797 then : 6798 printf %s "(cached) " >&6 6799 else case e in #( 6800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6801 /* end confdefs.h. */ 6802 int i; 6803 int 6804 main (void) 6805 { 6806 6807 ; 6808 return 0; 6809 } 6810 _ACEOF 6811 if ac_fn_c_try_link "$LINENO" 6812 then : 6813 eval $cacheid=yes 6814 else case e in #( 6815 e) eval $cacheid=no ;; 6816 esac 6817 fi 6818 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6819 conftest$ac_exeext conftest.$ac_ext ;; 6820 esac 6821 fi 6822 6823 6824 CFLAGS="$xorg_testset_save_CFLAGS" 6825 6826 eval supported=\$$cacheid 6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6828 printf "%s\n" "$supported" >&6; } 6829 if test "$supported" = "yes" ; then 6830 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6831 found="yes" 6832 fi 6833 fi 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 xorg_testset_save_CFLAGS="$CFLAGS" 6850 6851 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6854 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6855 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6856 then : 6857 printf %s "(cached) " >&6 6858 else case e in #( 6859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6860 /* end confdefs.h. */ 6861 int i; 6862 _ACEOF 6863 if ac_fn_c_try_compile "$LINENO" 6864 then : 6865 xorg_cv_cc_flag_unknown_warning_option=yes 6866 else case e in #( 6867 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6868 esac 6869 fi 6870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6871 esac 6872 fi 6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6874 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6876 CFLAGS="$xorg_testset_save_CFLAGS" 6877 fi 6878 6879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6882 fi 6883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6885 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6886 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6887 then : 6888 printf %s "(cached) " >&6 6889 else case e in #( 6890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6891 /* end confdefs.h. */ 6892 int i; 6893 _ACEOF 6894 if ac_fn_c_try_compile "$LINENO" 6895 then : 6896 xorg_cv_cc_flag_unused_command_line_argument=yes 6897 else case e in #( 6898 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6899 esac 6900 fi 6901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6902 esac 6903 fi 6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6905 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6907 CFLAGS="$xorg_testset_save_CFLAGS" 6908 fi 6909 6910 found="no" 6911 6912 if test $found = "no" ; then 6913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6915 fi 6916 6917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6919 fi 6920 6921 CFLAGS="$CFLAGS -Wshadow" 6922 6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6924 printf %s "checking if $CC supports -Wshadow... " >&6; } 6925 cacheid=xorg_cv_cc_flag__Wshadow 6926 if eval test \${$cacheid+y} 6927 then : 6928 printf %s "(cached) " >&6 6929 else case e in #( 6930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6931 /* end confdefs.h. */ 6932 int i; 6933 int 6934 main (void) 6935 { 6936 6937 ; 6938 return 0; 6939 } 6940 _ACEOF 6941 if ac_fn_c_try_link "$LINENO" 6942 then : 6943 eval $cacheid=yes 6944 else case e in #( 6945 e) eval $cacheid=no ;; 6946 esac 6947 fi 6948 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6949 conftest$ac_exeext conftest.$ac_ext ;; 6950 esac 6951 fi 6952 6953 6954 CFLAGS="$xorg_testset_save_CFLAGS" 6955 6956 eval supported=\$$cacheid 6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6958 printf "%s\n" "$supported" >&6; } 6959 if test "$supported" = "yes" ; then 6960 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6961 found="yes" 6962 fi 6963 fi 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 xorg_testset_save_CFLAGS="$CFLAGS" 6980 6981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6984 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6985 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6986 then : 6987 printf %s "(cached) " >&6 6988 else case e in #( 6989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6990 /* end confdefs.h. */ 6991 int i; 6992 _ACEOF 6993 if ac_fn_c_try_compile "$LINENO" 6994 then : 6995 xorg_cv_cc_flag_unknown_warning_option=yes 6996 else case e in #( 6997 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6998 esac 6999 fi 7000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7001 esac 7002 fi 7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7004 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7006 CFLAGS="$xorg_testset_save_CFLAGS" 7007 fi 7008 7009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7012 fi 7013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7015 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7016 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7017 then : 7018 printf %s "(cached) " >&6 7019 else case e in #( 7020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7021 /* end confdefs.h. */ 7022 int i; 7023 _ACEOF 7024 if ac_fn_c_try_compile "$LINENO" 7025 then : 7026 xorg_cv_cc_flag_unused_command_line_argument=yes 7027 else case e in #( 7028 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7029 esac 7030 fi 7031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7032 esac 7033 fi 7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7035 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7037 CFLAGS="$xorg_testset_save_CFLAGS" 7038 fi 7039 7040 found="no" 7041 7042 if test $found = "no" ; then 7043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7045 fi 7046 7047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7049 fi 7050 7051 CFLAGS="$CFLAGS -Wmissing-noreturn" 7052 7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7054 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7055 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7056 if eval test \${$cacheid+y} 7057 then : 7058 printf %s "(cached) " >&6 7059 else case e in #( 7060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061 /* end confdefs.h. */ 7062 int i; 7063 int 7064 main (void) 7065 { 7066 7067 ; 7068 return 0; 7069 } 7070 _ACEOF 7071 if ac_fn_c_try_link "$LINENO" 7072 then : 7073 eval $cacheid=yes 7074 else case e in #( 7075 e) eval $cacheid=no ;; 7076 esac 7077 fi 7078 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7079 conftest$ac_exeext conftest.$ac_ext ;; 7080 esac 7081 fi 7082 7083 7084 CFLAGS="$xorg_testset_save_CFLAGS" 7085 7086 eval supported=\$$cacheid 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7088 printf "%s\n" "$supported" >&6; } 7089 if test "$supported" = "yes" ; then 7090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7091 found="yes" 7092 fi 7093 fi 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 xorg_testset_save_CFLAGS="$CFLAGS" 7110 7111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7115 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7116 then : 7117 printf %s "(cached) " >&6 7118 else case e in #( 7119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120 /* end confdefs.h. */ 7121 int i; 7122 _ACEOF 7123 if ac_fn_c_try_compile "$LINENO" 7124 then : 7125 xorg_cv_cc_flag_unknown_warning_option=yes 7126 else case e in #( 7127 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7128 esac 7129 fi 7130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7131 esac 7132 fi 7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7134 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7136 CFLAGS="$xorg_testset_save_CFLAGS" 7137 fi 7138 7139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7142 fi 7143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7145 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7146 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7147 then : 7148 printf %s "(cached) " >&6 7149 else case e in #( 7150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7151 /* end confdefs.h. */ 7152 int i; 7153 _ACEOF 7154 if ac_fn_c_try_compile "$LINENO" 7155 then : 7156 xorg_cv_cc_flag_unused_command_line_argument=yes 7157 else case e in #( 7158 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7159 esac 7160 fi 7161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7162 esac 7163 fi 7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7165 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7167 CFLAGS="$xorg_testset_save_CFLAGS" 7168 fi 7169 7170 found="no" 7171 7172 if test $found = "no" ; then 7173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7175 fi 7176 7177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7179 fi 7180 7181 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7182 7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7184 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7185 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7186 if eval test \${$cacheid+y} 7187 then : 7188 printf %s "(cached) " >&6 7189 else case e in #( 7190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7191 /* end confdefs.h. */ 7192 int i; 7193 int 7194 main (void) 7195 { 7196 7197 ; 7198 return 0; 7199 } 7200 _ACEOF 7201 if ac_fn_c_try_link "$LINENO" 7202 then : 7203 eval $cacheid=yes 7204 else case e in #( 7205 e) eval $cacheid=no ;; 7206 esac 7207 fi 7208 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7209 conftest$ac_exeext conftest.$ac_ext ;; 7210 esac 7211 fi 7212 7213 7214 CFLAGS="$xorg_testset_save_CFLAGS" 7215 7216 eval supported=\$$cacheid 7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7218 printf "%s\n" "$supported" >&6; } 7219 if test "$supported" = "yes" ; then 7220 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7221 found="yes" 7222 fi 7223 fi 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 xorg_testset_save_CFLAGS="$CFLAGS" 7240 7241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7245 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7246 then : 7247 printf %s "(cached) " >&6 7248 else case e in #( 7249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250 /* end confdefs.h. */ 7251 int i; 7252 _ACEOF 7253 if ac_fn_c_try_compile "$LINENO" 7254 then : 7255 xorg_cv_cc_flag_unknown_warning_option=yes 7256 else case e in #( 7257 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7258 esac 7259 fi 7260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7261 esac 7262 fi 7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7266 CFLAGS="$xorg_testset_save_CFLAGS" 7267 fi 7268 7269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7272 fi 7273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7277 then : 7278 printf %s "(cached) " >&6 7279 else case e in #( 7280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7281 /* end confdefs.h. */ 7282 int i; 7283 _ACEOF 7284 if ac_fn_c_try_compile "$LINENO" 7285 then : 7286 xorg_cv_cc_flag_unused_command_line_argument=yes 7287 else case e in #( 7288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7289 esac 7290 fi 7291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7292 esac 7293 fi 7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7295 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7297 CFLAGS="$xorg_testset_save_CFLAGS" 7298 fi 7299 7300 found="no" 7301 7302 if test $found = "no" ; then 7303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7305 fi 7306 7307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7309 fi 7310 7311 CFLAGS="$CFLAGS -Wredundant-decls" 7312 7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7314 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7315 cacheid=xorg_cv_cc_flag__Wredundant_decls 7316 if eval test \${$cacheid+y} 7317 then : 7318 printf %s "(cached) " >&6 7319 else case e in #( 7320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7321 /* end confdefs.h. */ 7322 int i; 7323 int 7324 main (void) 7325 { 7326 7327 ; 7328 return 0; 7329 } 7330 _ACEOF 7331 if ac_fn_c_try_link "$LINENO" 7332 then : 7333 eval $cacheid=yes 7334 else case e in #( 7335 e) eval $cacheid=no ;; 7336 esac 7337 fi 7338 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7339 conftest$ac_exeext conftest.$ac_ext ;; 7340 esac 7341 fi 7342 7343 7344 CFLAGS="$xorg_testset_save_CFLAGS" 7345 7346 eval supported=\$$cacheid 7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7348 printf "%s\n" "$supported" >&6; } 7349 if test "$supported" = "yes" ; then 7350 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7351 found="yes" 7352 fi 7353 fi 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 xorg_testset_save_CFLAGS="$CFLAGS" 7370 7371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7375 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7376 then : 7377 printf %s "(cached) " >&6 7378 else case e in #( 7379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380 /* end confdefs.h. */ 7381 int i; 7382 _ACEOF 7383 if ac_fn_c_try_compile "$LINENO" 7384 then : 7385 xorg_cv_cc_flag_unknown_warning_option=yes 7386 else case e in #( 7387 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7388 esac 7389 fi 7390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7391 esac 7392 fi 7393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7394 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7396 CFLAGS="$xorg_testset_save_CFLAGS" 7397 fi 7398 7399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7402 fi 7403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7407 then : 7408 printf %s "(cached) " >&6 7409 else case e in #( 7410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7411 /* end confdefs.h. */ 7412 int i; 7413 _ACEOF 7414 if ac_fn_c_try_compile "$LINENO" 7415 then : 7416 xorg_cv_cc_flag_unused_command_line_argument=yes 7417 else case e in #( 7418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7419 esac 7420 fi 7421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7422 esac 7423 fi 7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7425 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7427 CFLAGS="$xorg_testset_save_CFLAGS" 7428 fi 7429 7430 found="no" 7431 7432 if test $found = "no" ; then 7433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7435 fi 7436 7437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7439 fi 7440 7441 CFLAGS="$CFLAGS -Wlogical-op" 7442 7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7444 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7445 cacheid=xorg_cv_cc_flag__Wlogical_op 7446 if eval test \${$cacheid+y} 7447 then : 7448 printf %s "(cached) " >&6 7449 else case e in #( 7450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451 /* end confdefs.h. */ 7452 int i; 7453 int 7454 main (void) 7455 { 7456 7457 ; 7458 return 0; 7459 } 7460 _ACEOF 7461 if ac_fn_c_try_link "$LINENO" 7462 then : 7463 eval $cacheid=yes 7464 else case e in #( 7465 e) eval $cacheid=no ;; 7466 esac 7467 fi 7468 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7469 conftest$ac_exeext conftest.$ac_ext ;; 7470 esac 7471 fi 7472 7473 7474 CFLAGS="$xorg_testset_save_CFLAGS" 7475 7476 eval supported=\$$cacheid 7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7478 printf "%s\n" "$supported" >&6; } 7479 if test "$supported" = "yes" ; then 7480 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7481 found="yes" 7482 fi 7483 fi 7484 7485 7486 7487 # These are currently disabled because they are noisy. They will be enabled 7488 # in the future once the codebase is sufficiently modernized to silence 7489 # them. For now, I don't want them to drown out the other warnings. 7490 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7491 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7492 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7493 7494 # Turn some warnings into errors, so we don't accidentally get successful builds 7495 # when there are problems that should be fixed. 7496 7497 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 xorg_testset_save_CFLAGS="$CFLAGS" 7512 7513 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7516 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7517 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7518 then : 7519 printf %s "(cached) " >&6 7520 else case e in #( 7521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7522 /* end confdefs.h. */ 7523 int i; 7524 _ACEOF 7525 if ac_fn_c_try_compile "$LINENO" 7526 then : 7527 xorg_cv_cc_flag_unknown_warning_option=yes 7528 else case e in #( 7529 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7530 esac 7531 fi 7532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7533 esac 7534 fi 7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7536 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7538 CFLAGS="$xorg_testset_save_CFLAGS" 7539 fi 7540 7541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7544 fi 7545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7547 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7548 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7549 then : 7550 printf %s "(cached) " >&6 7551 else case e in #( 7552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7553 /* end confdefs.h. */ 7554 int i; 7555 _ACEOF 7556 if ac_fn_c_try_compile "$LINENO" 7557 then : 7558 xorg_cv_cc_flag_unused_command_line_argument=yes 7559 else case e in #( 7560 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7561 esac 7562 fi 7563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7564 esac 7565 fi 7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7567 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7569 CFLAGS="$xorg_testset_save_CFLAGS" 7570 fi 7571 7572 found="no" 7573 7574 if test $found = "no" ; then 7575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7577 fi 7578 7579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7581 fi 7582 7583 CFLAGS="$CFLAGS -Werror=implicit" 7584 7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7586 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7587 cacheid=xorg_cv_cc_flag__Werror_implicit 7588 if eval test \${$cacheid+y} 7589 then : 7590 printf %s "(cached) " >&6 7591 else case e in #( 7592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7593 /* end confdefs.h. */ 7594 int i; 7595 int 7596 main (void) 7597 { 7598 7599 ; 7600 return 0; 7601 } 7602 _ACEOF 7603 if ac_fn_c_try_link "$LINENO" 7604 then : 7605 eval $cacheid=yes 7606 else case e in #( 7607 e) eval $cacheid=no ;; 7608 esac 7609 fi 7610 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7611 conftest$ac_exeext conftest.$ac_ext ;; 7612 esac 7613 fi 7614 7615 7616 CFLAGS="$xorg_testset_save_CFLAGS" 7617 7618 eval supported=\$$cacheid 7619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7620 printf "%s\n" "$supported" >&6; } 7621 if test "$supported" = "yes" ; then 7622 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7623 found="yes" 7624 fi 7625 fi 7626 7627 if test $found = "no" ; then 7628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7630 fi 7631 7632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7634 fi 7635 7636 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7637 7638 { 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 7639 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7640 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7641 if eval test \${$cacheid+y} 7642 then : 7643 printf %s "(cached) " >&6 7644 else case e in #( 7645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7646 /* end confdefs.h. */ 7647 int i; 7648 int 7649 main (void) 7650 { 7651 7652 ; 7653 return 0; 7654 } 7655 _ACEOF 7656 if ac_fn_c_try_link "$LINENO" 7657 then : 7658 eval $cacheid=yes 7659 else case e in #( 7660 e) eval $cacheid=no ;; 7661 esac 7662 fi 7663 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7664 conftest$ac_exeext conftest.$ac_ext ;; 7665 esac 7666 fi 7667 7668 7669 CFLAGS="$xorg_testset_save_CFLAGS" 7670 7671 eval supported=\$$cacheid 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7673 printf "%s\n" "$supported" >&6; } 7674 if test "$supported" = "yes" ; then 7675 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7676 found="yes" 7677 fi 7678 fi 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 xorg_testset_save_CFLAGS="$CFLAGS" 7695 7696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7699 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7700 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7701 then : 7702 printf %s "(cached) " >&6 7703 else case e in #( 7704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7705 /* end confdefs.h. */ 7706 int i; 7707 _ACEOF 7708 if ac_fn_c_try_compile "$LINENO" 7709 then : 7710 xorg_cv_cc_flag_unknown_warning_option=yes 7711 else case e in #( 7712 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7713 esac 7714 fi 7715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7716 esac 7717 fi 7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7721 CFLAGS="$xorg_testset_save_CFLAGS" 7722 fi 7723 7724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7727 fi 7728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7732 then : 7733 printf %s "(cached) " >&6 7734 else case e in #( 7735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7736 /* end confdefs.h. */ 7737 int i; 7738 _ACEOF 7739 if ac_fn_c_try_compile "$LINENO" 7740 then : 7741 xorg_cv_cc_flag_unused_command_line_argument=yes 7742 else case e in #( 7743 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7744 esac 7745 fi 7746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7747 esac 7748 fi 7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7750 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7752 CFLAGS="$xorg_testset_save_CFLAGS" 7753 fi 7754 7755 found="no" 7756 7757 if test $found = "no" ; then 7758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7760 fi 7761 7762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7764 fi 7765 7766 CFLAGS="$CFLAGS -Werror=nonnull" 7767 7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7769 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7770 cacheid=xorg_cv_cc_flag__Werror_nonnull 7771 if eval test \${$cacheid+y} 7772 then : 7773 printf %s "(cached) " >&6 7774 else case e in #( 7775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7776 /* end confdefs.h. */ 7777 int i; 7778 int 7779 main (void) 7780 { 7781 7782 ; 7783 return 0; 7784 } 7785 _ACEOF 7786 if ac_fn_c_try_link "$LINENO" 7787 then : 7788 eval $cacheid=yes 7789 else case e in #( 7790 e) eval $cacheid=no ;; 7791 esac 7792 fi 7793 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7794 conftest$ac_exeext conftest.$ac_ext ;; 7795 esac 7796 fi 7797 7798 7799 CFLAGS="$xorg_testset_save_CFLAGS" 7800 7801 eval supported=\$$cacheid 7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7803 printf "%s\n" "$supported" >&6; } 7804 if test "$supported" = "yes" ; then 7805 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7806 found="yes" 7807 fi 7808 fi 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 xorg_testset_save_CFLAGS="$CFLAGS" 7825 7826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7830 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7831 then : 7832 printf %s "(cached) " >&6 7833 else case e in #( 7834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7835 /* end confdefs.h. */ 7836 int i; 7837 _ACEOF 7838 if ac_fn_c_try_compile "$LINENO" 7839 then : 7840 xorg_cv_cc_flag_unknown_warning_option=yes 7841 else case e in #( 7842 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7843 esac 7844 fi 7845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7846 esac 7847 fi 7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7849 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7851 CFLAGS="$xorg_testset_save_CFLAGS" 7852 fi 7853 7854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7857 fi 7858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7860 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7861 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7862 then : 7863 printf %s "(cached) " >&6 7864 else case e in #( 7865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866 /* end confdefs.h. */ 7867 int i; 7868 _ACEOF 7869 if ac_fn_c_try_compile "$LINENO" 7870 then : 7871 xorg_cv_cc_flag_unused_command_line_argument=yes 7872 else case e in #( 7873 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7874 esac 7875 fi 7876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7877 esac 7878 fi 7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7882 CFLAGS="$xorg_testset_save_CFLAGS" 7883 fi 7884 7885 found="no" 7886 7887 if test $found = "no" ; then 7888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7890 fi 7891 7892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7894 fi 7895 7896 CFLAGS="$CFLAGS -Werror=init-self" 7897 7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7899 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7900 cacheid=xorg_cv_cc_flag__Werror_init_self 7901 if eval test \${$cacheid+y} 7902 then : 7903 printf %s "(cached) " >&6 7904 else case e in #( 7905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7906 /* end confdefs.h. */ 7907 int i; 7908 int 7909 main (void) 7910 { 7911 7912 ; 7913 return 0; 7914 } 7915 _ACEOF 7916 if ac_fn_c_try_link "$LINENO" 7917 then : 7918 eval $cacheid=yes 7919 else case e in #( 7920 e) eval $cacheid=no ;; 7921 esac 7922 fi 7923 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7924 conftest$ac_exeext conftest.$ac_ext ;; 7925 esac 7926 fi 7927 7928 7929 CFLAGS="$xorg_testset_save_CFLAGS" 7930 7931 eval supported=\$$cacheid 7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7933 printf "%s\n" "$supported" >&6; } 7934 if test "$supported" = "yes" ; then 7935 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7936 found="yes" 7937 fi 7938 fi 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 xorg_testset_save_CFLAGS="$CFLAGS" 7955 7956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7960 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7961 then : 7962 printf %s "(cached) " >&6 7963 else case e in #( 7964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7965 /* end confdefs.h. */ 7966 int i; 7967 _ACEOF 7968 if ac_fn_c_try_compile "$LINENO" 7969 then : 7970 xorg_cv_cc_flag_unknown_warning_option=yes 7971 else case e in #( 7972 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7973 esac 7974 fi 7975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7976 esac 7977 fi 7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7981 CFLAGS="$xorg_testset_save_CFLAGS" 7982 fi 7983 7984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7987 fi 7988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7992 then : 7993 printf %s "(cached) " >&6 7994 else case e in #( 7995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7996 /* end confdefs.h. */ 7997 int i; 7998 _ACEOF 7999 if ac_fn_c_try_compile "$LINENO" 8000 then : 8001 xorg_cv_cc_flag_unused_command_line_argument=yes 8002 else case e in #( 8003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8004 esac 8005 fi 8006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8007 esac 8008 fi 8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8012 CFLAGS="$xorg_testset_save_CFLAGS" 8013 fi 8014 8015 found="no" 8016 8017 if test $found = "no" ; then 8018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8020 fi 8021 8022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8024 fi 8025 8026 CFLAGS="$CFLAGS -Werror=main" 8027 8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 8029 printf %s "checking if $CC supports -Werror=main... " >&6; } 8030 cacheid=xorg_cv_cc_flag__Werror_main 8031 if eval test \${$cacheid+y} 8032 then : 8033 printf %s "(cached) " >&6 8034 else case e in #( 8035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8036 /* end confdefs.h. */ 8037 int i; 8038 int 8039 main (void) 8040 { 8041 8042 ; 8043 return 0; 8044 } 8045 _ACEOF 8046 if ac_fn_c_try_link "$LINENO" 8047 then : 8048 eval $cacheid=yes 8049 else case e in #( 8050 e) eval $cacheid=no ;; 8051 esac 8052 fi 8053 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8054 conftest$ac_exeext conftest.$ac_ext ;; 8055 esac 8056 fi 8057 8058 8059 CFLAGS="$xorg_testset_save_CFLAGS" 8060 8061 eval supported=\$$cacheid 8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8063 printf "%s\n" "$supported" >&6; } 8064 if test "$supported" = "yes" ; then 8065 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8066 found="yes" 8067 fi 8068 fi 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 xorg_testset_save_CFLAGS="$CFLAGS" 8085 8086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8089 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8090 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8091 then : 8092 printf %s "(cached) " >&6 8093 else case e in #( 8094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8095 /* end confdefs.h. */ 8096 int i; 8097 _ACEOF 8098 if ac_fn_c_try_compile "$LINENO" 8099 then : 8100 xorg_cv_cc_flag_unknown_warning_option=yes 8101 else case e in #( 8102 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8103 esac 8104 fi 8105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8106 esac 8107 fi 8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8111 CFLAGS="$xorg_testset_save_CFLAGS" 8112 fi 8113 8114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8117 fi 8118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8122 then : 8123 printf %s "(cached) " >&6 8124 else case e in #( 8125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126 /* end confdefs.h. */ 8127 int i; 8128 _ACEOF 8129 if ac_fn_c_try_compile "$LINENO" 8130 then : 8131 xorg_cv_cc_flag_unused_command_line_argument=yes 8132 else case e in #( 8133 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8134 esac 8135 fi 8136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8137 esac 8138 fi 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8140 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8142 CFLAGS="$xorg_testset_save_CFLAGS" 8143 fi 8144 8145 found="no" 8146 8147 if test $found = "no" ; then 8148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8150 fi 8151 8152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8154 fi 8155 8156 CFLAGS="$CFLAGS -Werror=missing-braces" 8157 8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8159 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8160 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8161 if eval test \${$cacheid+y} 8162 then : 8163 printf %s "(cached) " >&6 8164 else case e in #( 8165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8166 /* end confdefs.h. */ 8167 int i; 8168 int 8169 main (void) 8170 { 8171 8172 ; 8173 return 0; 8174 } 8175 _ACEOF 8176 if ac_fn_c_try_link "$LINENO" 8177 then : 8178 eval $cacheid=yes 8179 else case e in #( 8180 e) eval $cacheid=no ;; 8181 esac 8182 fi 8183 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8184 conftest$ac_exeext conftest.$ac_ext ;; 8185 esac 8186 fi 8187 8188 8189 CFLAGS="$xorg_testset_save_CFLAGS" 8190 8191 eval supported=\$$cacheid 8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8193 printf "%s\n" "$supported" >&6; } 8194 if test "$supported" = "yes" ; then 8195 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8196 found="yes" 8197 fi 8198 fi 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 xorg_testset_save_CFLAGS="$CFLAGS" 8215 8216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8220 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8221 then : 8222 printf %s "(cached) " >&6 8223 else case e in #( 8224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8225 /* end confdefs.h. */ 8226 int i; 8227 _ACEOF 8228 if ac_fn_c_try_compile "$LINENO" 8229 then : 8230 xorg_cv_cc_flag_unknown_warning_option=yes 8231 else case e in #( 8232 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8233 esac 8234 fi 8235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8236 esac 8237 fi 8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8239 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8241 CFLAGS="$xorg_testset_save_CFLAGS" 8242 fi 8243 8244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8247 fi 8248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8250 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8251 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8252 then : 8253 printf %s "(cached) " >&6 8254 else case e in #( 8255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8256 /* end confdefs.h. */ 8257 int i; 8258 _ACEOF 8259 if ac_fn_c_try_compile "$LINENO" 8260 then : 8261 xorg_cv_cc_flag_unused_command_line_argument=yes 8262 else case e in #( 8263 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8264 esac 8265 fi 8266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8267 esac 8268 fi 8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8270 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8272 CFLAGS="$xorg_testset_save_CFLAGS" 8273 fi 8274 8275 found="no" 8276 8277 if test $found = "no" ; then 8278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8280 fi 8281 8282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8284 fi 8285 8286 CFLAGS="$CFLAGS -Werror=sequence-point" 8287 8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8289 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8290 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8291 if eval test \${$cacheid+y} 8292 then : 8293 printf %s "(cached) " >&6 8294 else case e in #( 8295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296 /* end confdefs.h. */ 8297 int i; 8298 int 8299 main (void) 8300 { 8301 8302 ; 8303 return 0; 8304 } 8305 _ACEOF 8306 if ac_fn_c_try_link "$LINENO" 8307 then : 8308 eval $cacheid=yes 8309 else case e in #( 8310 e) eval $cacheid=no ;; 8311 esac 8312 fi 8313 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8314 conftest$ac_exeext conftest.$ac_ext ;; 8315 esac 8316 fi 8317 8318 8319 CFLAGS="$xorg_testset_save_CFLAGS" 8320 8321 eval supported=\$$cacheid 8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8323 printf "%s\n" "$supported" >&6; } 8324 if test "$supported" = "yes" ; then 8325 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8326 found="yes" 8327 fi 8328 fi 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 xorg_testset_save_CFLAGS="$CFLAGS" 8345 8346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8350 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8351 then : 8352 printf %s "(cached) " >&6 8353 else case e in #( 8354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8355 /* end confdefs.h. */ 8356 int i; 8357 _ACEOF 8358 if ac_fn_c_try_compile "$LINENO" 8359 then : 8360 xorg_cv_cc_flag_unknown_warning_option=yes 8361 else case e in #( 8362 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8363 esac 8364 fi 8365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8366 esac 8367 fi 8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8371 CFLAGS="$xorg_testset_save_CFLAGS" 8372 fi 8373 8374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8377 fi 8378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8382 then : 8383 printf %s "(cached) " >&6 8384 else case e in #( 8385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8386 /* end confdefs.h. */ 8387 int i; 8388 _ACEOF 8389 if ac_fn_c_try_compile "$LINENO" 8390 then : 8391 xorg_cv_cc_flag_unused_command_line_argument=yes 8392 else case e in #( 8393 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8394 esac 8395 fi 8396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8397 esac 8398 fi 8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8400 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8402 CFLAGS="$xorg_testset_save_CFLAGS" 8403 fi 8404 8405 found="no" 8406 8407 if test $found = "no" ; then 8408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8410 fi 8411 8412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8414 fi 8415 8416 CFLAGS="$CFLAGS -Werror=return-type" 8417 8418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8419 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8420 cacheid=xorg_cv_cc_flag__Werror_return_type 8421 if eval test \${$cacheid+y} 8422 then : 8423 printf %s "(cached) " >&6 8424 else case e in #( 8425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8426 /* end confdefs.h. */ 8427 int i; 8428 int 8429 main (void) 8430 { 8431 8432 ; 8433 return 0; 8434 } 8435 _ACEOF 8436 if ac_fn_c_try_link "$LINENO" 8437 then : 8438 eval $cacheid=yes 8439 else case e in #( 8440 e) eval $cacheid=no ;; 8441 esac 8442 fi 8443 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8444 conftest$ac_exeext conftest.$ac_ext ;; 8445 esac 8446 fi 8447 8448 8449 CFLAGS="$xorg_testset_save_CFLAGS" 8450 8451 eval supported=\$$cacheid 8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8453 printf "%s\n" "$supported" >&6; } 8454 if test "$supported" = "yes" ; then 8455 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8456 found="yes" 8457 fi 8458 fi 8459 8460 if test $found = "no" ; then 8461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8463 fi 8464 8465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8467 fi 8468 8469 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8470 8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8472 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8473 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8474 if eval test \${$cacheid+y} 8475 then : 8476 printf %s "(cached) " >&6 8477 else case e in #( 8478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8479 /* end confdefs.h. */ 8480 int i; 8481 int 8482 main (void) 8483 { 8484 8485 ; 8486 return 0; 8487 } 8488 _ACEOF 8489 if ac_fn_c_try_link "$LINENO" 8490 then : 8491 eval $cacheid=yes 8492 else case e in #( 8493 e) eval $cacheid=no ;; 8494 esac 8495 fi 8496 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8497 conftest$ac_exeext conftest.$ac_ext ;; 8498 esac 8499 fi 8500 8501 8502 CFLAGS="$xorg_testset_save_CFLAGS" 8503 8504 eval supported=\$$cacheid 8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8506 printf "%s\n" "$supported" >&6; } 8507 if test "$supported" = "yes" ; then 8508 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8509 found="yes" 8510 fi 8511 fi 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 xorg_testset_save_CFLAGS="$CFLAGS" 8528 8529 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8532 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8533 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8534 then : 8535 printf %s "(cached) " >&6 8536 else case e in #( 8537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8538 /* end confdefs.h. */ 8539 int i; 8540 _ACEOF 8541 if ac_fn_c_try_compile "$LINENO" 8542 then : 8543 xorg_cv_cc_flag_unknown_warning_option=yes 8544 else case e in #( 8545 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8546 esac 8547 fi 8548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8549 esac 8550 fi 8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8552 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8554 CFLAGS="$xorg_testset_save_CFLAGS" 8555 fi 8556 8557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8560 fi 8561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8563 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8564 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8565 then : 8566 printf %s "(cached) " >&6 8567 else case e in #( 8568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8569 /* end confdefs.h. */ 8570 int i; 8571 _ACEOF 8572 if ac_fn_c_try_compile "$LINENO" 8573 then : 8574 xorg_cv_cc_flag_unused_command_line_argument=yes 8575 else case e in #( 8576 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8577 esac 8578 fi 8579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8580 esac 8581 fi 8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8583 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8585 CFLAGS="$xorg_testset_save_CFLAGS" 8586 fi 8587 8588 found="no" 8589 8590 if test $found = "no" ; then 8591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8593 fi 8594 8595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8597 fi 8598 8599 CFLAGS="$CFLAGS -Werror=trigraphs" 8600 8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8602 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8603 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8604 if eval test \${$cacheid+y} 8605 then : 8606 printf %s "(cached) " >&6 8607 else case e in #( 8608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8609 /* end confdefs.h. */ 8610 int i; 8611 int 8612 main (void) 8613 { 8614 8615 ; 8616 return 0; 8617 } 8618 _ACEOF 8619 if ac_fn_c_try_link "$LINENO" 8620 then : 8621 eval $cacheid=yes 8622 else case e in #( 8623 e) eval $cacheid=no ;; 8624 esac 8625 fi 8626 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8627 conftest$ac_exeext conftest.$ac_ext ;; 8628 esac 8629 fi 8630 8631 8632 CFLAGS="$xorg_testset_save_CFLAGS" 8633 8634 eval supported=\$$cacheid 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8636 printf "%s\n" "$supported" >&6; } 8637 if test "$supported" = "yes" ; then 8638 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8639 found="yes" 8640 fi 8641 fi 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 xorg_testset_save_CFLAGS="$CFLAGS" 8658 8659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8662 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8663 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8664 then : 8665 printf %s "(cached) " >&6 8666 else case e in #( 8667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8668 /* end confdefs.h. */ 8669 int i; 8670 _ACEOF 8671 if ac_fn_c_try_compile "$LINENO" 8672 then : 8673 xorg_cv_cc_flag_unknown_warning_option=yes 8674 else case e in #( 8675 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8676 esac 8677 fi 8678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8679 esac 8680 fi 8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8682 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8684 CFLAGS="$xorg_testset_save_CFLAGS" 8685 fi 8686 8687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8690 fi 8691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8693 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8694 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8695 then : 8696 printf %s "(cached) " >&6 8697 else case e in #( 8698 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8699 /* end confdefs.h. */ 8700 int i; 8701 _ACEOF 8702 if ac_fn_c_try_compile "$LINENO" 8703 then : 8704 xorg_cv_cc_flag_unused_command_line_argument=yes 8705 else case e in #( 8706 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8707 esac 8708 fi 8709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8710 esac 8711 fi 8712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8713 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8715 CFLAGS="$xorg_testset_save_CFLAGS" 8716 fi 8717 8718 found="no" 8719 8720 if test $found = "no" ; then 8721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8723 fi 8724 8725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8727 fi 8728 8729 CFLAGS="$CFLAGS -Werror=array-bounds" 8730 8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8732 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8733 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8734 if eval test \${$cacheid+y} 8735 then : 8736 printf %s "(cached) " >&6 8737 else case e in #( 8738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8739 /* end confdefs.h. */ 8740 int i; 8741 int 8742 main (void) 8743 { 8744 8745 ; 8746 return 0; 8747 } 8748 _ACEOF 8749 if ac_fn_c_try_link "$LINENO" 8750 then : 8751 eval $cacheid=yes 8752 else case e in #( 8753 e) eval $cacheid=no ;; 8754 esac 8755 fi 8756 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8757 conftest$ac_exeext conftest.$ac_ext ;; 8758 esac 8759 fi 8760 8761 8762 CFLAGS="$xorg_testset_save_CFLAGS" 8763 8764 eval supported=\$$cacheid 8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8766 printf "%s\n" "$supported" >&6; } 8767 if test "$supported" = "yes" ; then 8768 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8769 found="yes" 8770 fi 8771 fi 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 xorg_testset_save_CFLAGS="$CFLAGS" 8788 8789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8792 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8793 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8794 then : 8795 printf %s "(cached) " >&6 8796 else case e in #( 8797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8798 /* end confdefs.h. */ 8799 int i; 8800 _ACEOF 8801 if ac_fn_c_try_compile "$LINENO" 8802 then : 8803 xorg_cv_cc_flag_unknown_warning_option=yes 8804 else case e in #( 8805 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8806 esac 8807 fi 8808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8809 esac 8810 fi 8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8812 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8813 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8814 CFLAGS="$xorg_testset_save_CFLAGS" 8815 fi 8816 8817 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8820 fi 8821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8823 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8824 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8825 then : 8826 printf %s "(cached) " >&6 8827 else case e in #( 8828 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8829 /* end confdefs.h. */ 8830 int i; 8831 _ACEOF 8832 if ac_fn_c_try_compile "$LINENO" 8833 then : 8834 xorg_cv_cc_flag_unused_command_line_argument=yes 8835 else case e in #( 8836 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8837 esac 8838 fi 8839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8840 esac 8841 fi 8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8843 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8845 CFLAGS="$xorg_testset_save_CFLAGS" 8846 fi 8847 8848 found="no" 8849 8850 if test $found = "no" ; then 8851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8853 fi 8854 8855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8857 fi 8858 8859 CFLAGS="$CFLAGS -Werror=write-strings" 8860 8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8862 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8863 cacheid=xorg_cv_cc_flag__Werror_write_strings 8864 if eval test \${$cacheid+y} 8865 then : 8866 printf %s "(cached) " >&6 8867 else case e in #( 8868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8869 /* end confdefs.h. */ 8870 int i; 8871 int 8872 main (void) 8873 { 8874 8875 ; 8876 return 0; 8877 } 8878 _ACEOF 8879 if ac_fn_c_try_link "$LINENO" 8880 then : 8881 eval $cacheid=yes 8882 else case e in #( 8883 e) eval $cacheid=no ;; 8884 esac 8885 fi 8886 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8887 conftest$ac_exeext conftest.$ac_ext ;; 8888 esac 8889 fi 8890 8891 8892 CFLAGS="$xorg_testset_save_CFLAGS" 8893 8894 eval supported=\$$cacheid 8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8896 printf "%s\n" "$supported" >&6; } 8897 if test "$supported" = "yes" ; then 8898 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8899 found="yes" 8900 fi 8901 fi 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 xorg_testset_save_CFLAGS="$CFLAGS" 8918 8919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8922 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8923 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8924 then : 8925 printf %s "(cached) " >&6 8926 else case e in #( 8927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8928 /* end confdefs.h. */ 8929 int i; 8930 _ACEOF 8931 if ac_fn_c_try_compile "$LINENO" 8932 then : 8933 xorg_cv_cc_flag_unknown_warning_option=yes 8934 else case e in #( 8935 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8936 esac 8937 fi 8938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8939 esac 8940 fi 8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8942 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8944 CFLAGS="$xorg_testset_save_CFLAGS" 8945 fi 8946 8947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8950 fi 8951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8953 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8954 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8955 then : 8956 printf %s "(cached) " >&6 8957 else case e in #( 8958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959 /* end confdefs.h. */ 8960 int i; 8961 _ACEOF 8962 if ac_fn_c_try_compile "$LINENO" 8963 then : 8964 xorg_cv_cc_flag_unused_command_line_argument=yes 8965 else case e in #( 8966 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8967 esac 8968 fi 8969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8970 esac 8971 fi 8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8973 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8975 CFLAGS="$xorg_testset_save_CFLAGS" 8976 fi 8977 8978 found="no" 8979 8980 if test $found = "no" ; then 8981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8983 fi 8984 8985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8987 fi 8988 8989 CFLAGS="$CFLAGS -Werror=address" 8990 8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8992 printf %s "checking if $CC supports -Werror=address... " >&6; } 8993 cacheid=xorg_cv_cc_flag__Werror_address 8994 if eval test \${$cacheid+y} 8995 then : 8996 printf %s "(cached) " >&6 8997 else case e in #( 8998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999 /* end confdefs.h. */ 9000 int i; 9001 int 9002 main (void) 9003 { 9004 9005 ; 9006 return 0; 9007 } 9008 _ACEOF 9009 if ac_fn_c_try_link "$LINENO" 9010 then : 9011 eval $cacheid=yes 9012 else case e in #( 9013 e) eval $cacheid=no ;; 9014 esac 9015 fi 9016 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9017 conftest$ac_exeext conftest.$ac_ext ;; 9018 esac 9019 fi 9020 9021 9022 CFLAGS="$xorg_testset_save_CFLAGS" 9023 9024 eval supported=\$$cacheid 9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9026 printf "%s\n" "$supported" >&6; } 9027 if test "$supported" = "yes" ; then 9028 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 9029 found="yes" 9030 fi 9031 fi 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 xorg_testset_save_CFLAGS="$CFLAGS" 9048 9049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9052 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9053 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9054 then : 9055 printf %s "(cached) " >&6 9056 else case e in #( 9057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9058 /* end confdefs.h. */ 9059 int i; 9060 _ACEOF 9061 if ac_fn_c_try_compile "$LINENO" 9062 then : 9063 xorg_cv_cc_flag_unknown_warning_option=yes 9064 else case e in #( 9065 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9066 esac 9067 fi 9068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9069 esac 9070 fi 9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9072 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9074 CFLAGS="$xorg_testset_save_CFLAGS" 9075 fi 9076 9077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9080 fi 9081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9083 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9084 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9085 then : 9086 printf %s "(cached) " >&6 9087 else case e in #( 9088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9089 /* end confdefs.h. */ 9090 int i; 9091 _ACEOF 9092 if ac_fn_c_try_compile "$LINENO" 9093 then : 9094 xorg_cv_cc_flag_unused_command_line_argument=yes 9095 else case e in #( 9096 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9097 esac 9098 fi 9099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9100 esac 9101 fi 9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9103 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9105 CFLAGS="$xorg_testset_save_CFLAGS" 9106 fi 9107 9108 found="no" 9109 9110 if test $found = "no" ; then 9111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9113 fi 9114 9115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9117 fi 9118 9119 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9120 9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9122 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9123 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9124 if eval test \${$cacheid+y} 9125 then : 9126 printf %s "(cached) " >&6 9127 else case e in #( 9128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9129 /* end confdefs.h. */ 9130 int i; 9131 int 9132 main (void) 9133 { 9134 9135 ; 9136 return 0; 9137 } 9138 _ACEOF 9139 if ac_fn_c_try_link "$LINENO" 9140 then : 9141 eval $cacheid=yes 9142 else case e in #( 9143 e) eval $cacheid=no ;; 9144 esac 9145 fi 9146 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9147 conftest$ac_exeext conftest.$ac_ext ;; 9148 esac 9149 fi 9150 9151 9152 CFLAGS="$xorg_testset_save_CFLAGS" 9153 9154 eval supported=\$$cacheid 9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9156 printf "%s\n" "$supported" >&6; } 9157 if test "$supported" = "yes" ; then 9158 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9159 found="yes" 9160 fi 9161 fi 9162 9163 if test $found = "no" ; then 9164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9166 fi 9167 9168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9170 fi 9171 9172 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9173 9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9175 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9176 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9177 if eval test \${$cacheid+y} 9178 then : 9179 printf %s "(cached) " >&6 9180 else case e in #( 9181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9182 /* end confdefs.h. */ 9183 int i; 9184 int 9185 main (void) 9186 { 9187 9188 ; 9189 return 0; 9190 } 9191 _ACEOF 9192 if ac_fn_c_try_link "$LINENO" 9193 then : 9194 eval $cacheid=yes 9195 else case e in #( 9196 e) eval $cacheid=no ;; 9197 esac 9198 fi 9199 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9200 conftest$ac_exeext conftest.$ac_ext ;; 9201 esac 9202 fi 9203 9204 9205 CFLAGS="$xorg_testset_save_CFLAGS" 9206 9207 eval supported=\$$cacheid 9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9209 printf "%s\n" "$supported" >&6; } 9210 if test "$supported" = "yes" ; then 9211 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9212 found="yes" 9213 fi 9214 fi 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 xorg_testset_save_CFLAGS="$CFLAGS" 9231 9232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9236 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9237 then : 9238 printf %s "(cached) " >&6 9239 else case e in #( 9240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9241 /* end confdefs.h. */ 9242 int i; 9243 _ACEOF 9244 if ac_fn_c_try_compile "$LINENO" 9245 then : 9246 xorg_cv_cc_flag_unknown_warning_option=yes 9247 else case e in #( 9248 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9249 esac 9250 fi 9251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9252 esac 9253 fi 9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9255 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9257 CFLAGS="$xorg_testset_save_CFLAGS" 9258 fi 9259 9260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9263 fi 9264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9266 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9267 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9268 then : 9269 printf %s "(cached) " >&6 9270 else case e in #( 9271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9272 /* end confdefs.h. */ 9273 int i; 9274 _ACEOF 9275 if ac_fn_c_try_compile "$LINENO" 9276 then : 9277 xorg_cv_cc_flag_unused_command_line_argument=yes 9278 else case e in #( 9279 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9280 esac 9281 fi 9282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9283 esac 9284 fi 9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9286 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9288 CFLAGS="$xorg_testset_save_CFLAGS" 9289 fi 9290 9291 found="no" 9292 9293 if test $found = "no" ; then 9294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9296 fi 9297 9298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9300 fi 9301 9302 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9303 9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9305 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9306 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9307 if eval test \${$cacheid+y} 9308 then : 9309 printf %s "(cached) " >&6 9310 else case e in #( 9311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9312 /* end confdefs.h. */ 9313 int i; 9314 int 9315 main (void) 9316 { 9317 9318 ; 9319 return 0; 9320 } 9321 _ACEOF 9322 if ac_fn_c_try_link "$LINENO" 9323 then : 9324 eval $cacheid=yes 9325 else case e in #( 9326 e) eval $cacheid=no ;; 9327 esac 9328 fi 9329 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9330 conftest$ac_exeext conftest.$ac_ext ;; 9331 esac 9332 fi 9333 9334 9335 CFLAGS="$xorg_testset_save_CFLAGS" 9336 9337 eval supported=\$$cacheid 9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9339 printf "%s\n" "$supported" >&6; } 9340 if test "$supported" = "yes" ; then 9341 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9342 found="yes" 9343 fi 9344 fi 9345 9346 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9347 else 9348 { 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 9349 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;} 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 xorg_testset_save_CFLAGS="$CFLAGS" 9364 9365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9368 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9369 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9370 then : 9371 printf %s "(cached) " >&6 9372 else case e in #( 9373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9374 /* end confdefs.h. */ 9375 int i; 9376 _ACEOF 9377 if ac_fn_c_try_compile "$LINENO" 9378 then : 9379 xorg_cv_cc_flag_unknown_warning_option=yes 9380 else case e in #( 9381 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9382 esac 9383 fi 9384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9385 esac 9386 fi 9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9388 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9390 CFLAGS="$xorg_testset_save_CFLAGS" 9391 fi 9392 9393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9396 fi 9397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9399 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9400 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9401 then : 9402 printf %s "(cached) " >&6 9403 else case e in #( 9404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9405 /* end confdefs.h. */ 9406 int i; 9407 _ACEOF 9408 if ac_fn_c_try_compile "$LINENO" 9409 then : 9410 xorg_cv_cc_flag_unused_command_line_argument=yes 9411 else case e in #( 9412 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9413 esac 9414 fi 9415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9416 esac 9417 fi 9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9419 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9421 CFLAGS="$xorg_testset_save_CFLAGS" 9422 fi 9423 9424 found="no" 9425 9426 if test $found = "no" ; then 9427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9429 fi 9430 9431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9433 fi 9434 9435 CFLAGS="$CFLAGS -Wimplicit" 9436 9437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9438 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9439 cacheid=xorg_cv_cc_flag__Wimplicit 9440 if eval test \${$cacheid+y} 9441 then : 9442 printf %s "(cached) " >&6 9443 else case e in #( 9444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9445 /* end confdefs.h. */ 9446 int i; 9447 int 9448 main (void) 9449 { 9450 9451 ; 9452 return 0; 9453 } 9454 _ACEOF 9455 if ac_fn_c_try_link "$LINENO" 9456 then : 9457 eval $cacheid=yes 9458 else case e in #( 9459 e) eval $cacheid=no ;; 9460 esac 9461 fi 9462 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9463 conftest$ac_exeext conftest.$ac_ext ;; 9464 esac 9465 fi 9466 9467 9468 CFLAGS="$xorg_testset_save_CFLAGS" 9469 9470 eval supported=\$$cacheid 9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9472 printf "%s\n" "$supported" >&6; } 9473 if test "$supported" = "yes" ; then 9474 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9475 found="yes" 9476 fi 9477 fi 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 xorg_testset_save_CFLAGS="$CFLAGS" 9494 9495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9498 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9499 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9500 then : 9501 printf %s "(cached) " >&6 9502 else case e in #( 9503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9504 /* end confdefs.h. */ 9505 int i; 9506 _ACEOF 9507 if ac_fn_c_try_compile "$LINENO" 9508 then : 9509 xorg_cv_cc_flag_unknown_warning_option=yes 9510 else case e in #( 9511 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9512 esac 9513 fi 9514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9515 esac 9516 fi 9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9518 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9520 CFLAGS="$xorg_testset_save_CFLAGS" 9521 fi 9522 9523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9526 fi 9527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9529 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9530 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9531 then : 9532 printf %s "(cached) " >&6 9533 else case e in #( 9534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9535 /* end confdefs.h. */ 9536 int i; 9537 _ACEOF 9538 if ac_fn_c_try_compile "$LINENO" 9539 then : 9540 xorg_cv_cc_flag_unused_command_line_argument=yes 9541 else case e in #( 9542 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9543 esac 9544 fi 9545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9546 esac 9547 fi 9548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9549 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9551 CFLAGS="$xorg_testset_save_CFLAGS" 9552 fi 9553 9554 found="no" 9555 9556 if test $found = "no" ; then 9557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9559 fi 9560 9561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9563 fi 9564 9565 CFLAGS="$CFLAGS -Wnonnull" 9566 9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9568 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9569 cacheid=xorg_cv_cc_flag__Wnonnull 9570 if eval test \${$cacheid+y} 9571 then : 9572 printf %s "(cached) " >&6 9573 else case e in #( 9574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9575 /* end confdefs.h. */ 9576 int i; 9577 int 9578 main (void) 9579 { 9580 9581 ; 9582 return 0; 9583 } 9584 _ACEOF 9585 if ac_fn_c_try_link "$LINENO" 9586 then : 9587 eval $cacheid=yes 9588 else case e in #( 9589 e) eval $cacheid=no ;; 9590 esac 9591 fi 9592 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9593 conftest$ac_exeext conftest.$ac_ext ;; 9594 esac 9595 fi 9596 9597 9598 CFLAGS="$xorg_testset_save_CFLAGS" 9599 9600 eval supported=\$$cacheid 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9602 printf "%s\n" "$supported" >&6; } 9603 if test "$supported" = "yes" ; then 9604 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9605 found="yes" 9606 fi 9607 fi 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 xorg_testset_save_CFLAGS="$CFLAGS" 9624 9625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9629 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9630 then : 9631 printf %s "(cached) " >&6 9632 else case e in #( 9633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634 /* end confdefs.h. */ 9635 int i; 9636 _ACEOF 9637 if ac_fn_c_try_compile "$LINENO" 9638 then : 9639 xorg_cv_cc_flag_unknown_warning_option=yes 9640 else case e in #( 9641 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9642 esac 9643 fi 9644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9645 esac 9646 fi 9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9650 CFLAGS="$xorg_testset_save_CFLAGS" 9651 fi 9652 9653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9656 fi 9657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9661 then : 9662 printf %s "(cached) " >&6 9663 else case e in #( 9664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665 /* end confdefs.h. */ 9666 int i; 9667 _ACEOF 9668 if ac_fn_c_try_compile "$LINENO" 9669 then : 9670 xorg_cv_cc_flag_unused_command_line_argument=yes 9671 else case e in #( 9672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9673 esac 9674 fi 9675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9676 esac 9677 fi 9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9679 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9681 CFLAGS="$xorg_testset_save_CFLAGS" 9682 fi 9683 9684 found="no" 9685 9686 if test $found = "no" ; then 9687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9689 fi 9690 9691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9693 fi 9694 9695 CFLAGS="$CFLAGS -Winit-self" 9696 9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9698 printf %s "checking if $CC supports -Winit-self... " >&6; } 9699 cacheid=xorg_cv_cc_flag__Winit_self 9700 if eval test \${$cacheid+y} 9701 then : 9702 printf %s "(cached) " >&6 9703 else case e in #( 9704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9705 /* end confdefs.h. */ 9706 int i; 9707 int 9708 main (void) 9709 { 9710 9711 ; 9712 return 0; 9713 } 9714 _ACEOF 9715 if ac_fn_c_try_link "$LINENO" 9716 then : 9717 eval $cacheid=yes 9718 else case e in #( 9719 e) eval $cacheid=no ;; 9720 esac 9721 fi 9722 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9723 conftest$ac_exeext conftest.$ac_ext ;; 9724 esac 9725 fi 9726 9727 9728 CFLAGS="$xorg_testset_save_CFLAGS" 9729 9730 eval supported=\$$cacheid 9731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9732 printf "%s\n" "$supported" >&6; } 9733 if test "$supported" = "yes" ; then 9734 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9735 found="yes" 9736 fi 9737 fi 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 xorg_testset_save_CFLAGS="$CFLAGS" 9754 9755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9758 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9759 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9760 then : 9761 printf %s "(cached) " >&6 9762 else case e in #( 9763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9764 /* end confdefs.h. */ 9765 int i; 9766 _ACEOF 9767 if ac_fn_c_try_compile "$LINENO" 9768 then : 9769 xorg_cv_cc_flag_unknown_warning_option=yes 9770 else case e in #( 9771 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9772 esac 9773 fi 9774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9775 esac 9776 fi 9777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9778 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9780 CFLAGS="$xorg_testset_save_CFLAGS" 9781 fi 9782 9783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9786 fi 9787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9789 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9790 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9791 then : 9792 printf %s "(cached) " >&6 9793 else case e in #( 9794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9795 /* end confdefs.h. */ 9796 int i; 9797 _ACEOF 9798 if ac_fn_c_try_compile "$LINENO" 9799 then : 9800 xorg_cv_cc_flag_unused_command_line_argument=yes 9801 else case e in #( 9802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9803 esac 9804 fi 9805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9806 esac 9807 fi 9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9811 CFLAGS="$xorg_testset_save_CFLAGS" 9812 fi 9813 9814 found="no" 9815 9816 if test $found = "no" ; then 9817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819 fi 9820 9821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9823 fi 9824 9825 CFLAGS="$CFLAGS -Wmain" 9826 9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9828 printf %s "checking if $CC supports -Wmain... " >&6; } 9829 cacheid=xorg_cv_cc_flag__Wmain 9830 if eval test \${$cacheid+y} 9831 then : 9832 printf %s "(cached) " >&6 9833 else case e in #( 9834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9835 /* end confdefs.h. */ 9836 int i; 9837 int 9838 main (void) 9839 { 9840 9841 ; 9842 return 0; 9843 } 9844 _ACEOF 9845 if ac_fn_c_try_link "$LINENO" 9846 then : 9847 eval $cacheid=yes 9848 else case e in #( 9849 e) eval $cacheid=no ;; 9850 esac 9851 fi 9852 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9853 conftest$ac_exeext conftest.$ac_ext ;; 9854 esac 9855 fi 9856 9857 9858 CFLAGS="$xorg_testset_save_CFLAGS" 9859 9860 eval supported=\$$cacheid 9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9862 printf "%s\n" "$supported" >&6; } 9863 if test "$supported" = "yes" ; then 9864 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9865 found="yes" 9866 fi 9867 fi 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 xorg_testset_save_CFLAGS="$CFLAGS" 9884 9885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9888 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9889 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9890 then : 9891 printf %s "(cached) " >&6 9892 else case e in #( 9893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894 /* end confdefs.h. */ 9895 int i; 9896 _ACEOF 9897 if ac_fn_c_try_compile "$LINENO" 9898 then : 9899 xorg_cv_cc_flag_unknown_warning_option=yes 9900 else case e in #( 9901 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9902 esac 9903 fi 9904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9905 esac 9906 fi 9907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9908 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9910 CFLAGS="$xorg_testset_save_CFLAGS" 9911 fi 9912 9913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9916 fi 9917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9919 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9920 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9921 then : 9922 printf %s "(cached) " >&6 9923 else case e in #( 9924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9925 /* end confdefs.h. */ 9926 int i; 9927 _ACEOF 9928 if ac_fn_c_try_compile "$LINENO" 9929 then : 9930 xorg_cv_cc_flag_unused_command_line_argument=yes 9931 else case e in #( 9932 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9933 esac 9934 fi 9935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9936 esac 9937 fi 9938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9939 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9941 CFLAGS="$xorg_testset_save_CFLAGS" 9942 fi 9943 9944 found="no" 9945 9946 if test $found = "no" ; then 9947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9949 fi 9950 9951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9953 fi 9954 9955 CFLAGS="$CFLAGS -Wmissing-braces" 9956 9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9958 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9959 cacheid=xorg_cv_cc_flag__Wmissing_braces 9960 if eval test \${$cacheid+y} 9961 then : 9962 printf %s "(cached) " >&6 9963 else case e in #( 9964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9965 /* end confdefs.h. */ 9966 int i; 9967 int 9968 main (void) 9969 { 9970 9971 ; 9972 return 0; 9973 } 9974 _ACEOF 9975 if ac_fn_c_try_link "$LINENO" 9976 then : 9977 eval $cacheid=yes 9978 else case e in #( 9979 e) eval $cacheid=no ;; 9980 esac 9981 fi 9982 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9983 conftest$ac_exeext conftest.$ac_ext ;; 9984 esac 9985 fi 9986 9987 9988 CFLAGS="$xorg_testset_save_CFLAGS" 9989 9990 eval supported=\$$cacheid 9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9992 printf "%s\n" "$supported" >&6; } 9993 if test "$supported" = "yes" ; then 9994 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9995 found="yes" 9996 fi 9997 fi 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 xorg_testset_save_CFLAGS="$CFLAGS" 10014 10015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10018 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10019 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10020 then : 10021 printf %s "(cached) " >&6 10022 else case e in #( 10023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024 /* end confdefs.h. */ 10025 int i; 10026 _ACEOF 10027 if ac_fn_c_try_compile "$LINENO" 10028 then : 10029 xorg_cv_cc_flag_unknown_warning_option=yes 10030 else case e in #( 10031 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10032 esac 10033 fi 10034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10035 esac 10036 fi 10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10038 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10040 CFLAGS="$xorg_testset_save_CFLAGS" 10041 fi 10042 10043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10046 fi 10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10049 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10050 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10051 then : 10052 printf %s "(cached) " >&6 10053 else case e in #( 10054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10055 /* end confdefs.h. */ 10056 int i; 10057 _ACEOF 10058 if ac_fn_c_try_compile "$LINENO" 10059 then : 10060 xorg_cv_cc_flag_unused_command_line_argument=yes 10061 else case e in #( 10062 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10063 esac 10064 fi 10065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10066 esac 10067 fi 10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10071 CFLAGS="$xorg_testset_save_CFLAGS" 10072 fi 10073 10074 found="no" 10075 10076 if test $found = "no" ; then 10077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10079 fi 10080 10081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10083 fi 10084 10085 CFLAGS="$CFLAGS -Wsequence-point" 10086 10087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10088 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10089 cacheid=xorg_cv_cc_flag__Wsequence_point 10090 if eval test \${$cacheid+y} 10091 then : 10092 printf %s "(cached) " >&6 10093 else case e in #( 10094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10095 /* end confdefs.h. */ 10096 int i; 10097 int 10098 main (void) 10099 { 10100 10101 ; 10102 return 0; 10103 } 10104 _ACEOF 10105 if ac_fn_c_try_link "$LINENO" 10106 then : 10107 eval $cacheid=yes 10108 else case e in #( 10109 e) eval $cacheid=no ;; 10110 esac 10111 fi 10112 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10113 conftest$ac_exeext conftest.$ac_ext ;; 10114 esac 10115 fi 10116 10117 10118 CFLAGS="$xorg_testset_save_CFLAGS" 10119 10120 eval supported=\$$cacheid 10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10122 printf "%s\n" "$supported" >&6; } 10123 if test "$supported" = "yes" ; then 10124 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10125 found="yes" 10126 fi 10127 fi 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 xorg_testset_save_CFLAGS="$CFLAGS" 10144 10145 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10148 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10149 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10150 then : 10151 printf %s "(cached) " >&6 10152 else case e in #( 10153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10154 /* end confdefs.h. */ 10155 int i; 10156 _ACEOF 10157 if ac_fn_c_try_compile "$LINENO" 10158 then : 10159 xorg_cv_cc_flag_unknown_warning_option=yes 10160 else case e in #( 10161 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10162 esac 10163 fi 10164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10165 esac 10166 fi 10167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10168 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10170 CFLAGS="$xorg_testset_save_CFLAGS" 10171 fi 10172 10173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10176 fi 10177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10179 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10180 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10181 then : 10182 printf %s "(cached) " >&6 10183 else case e in #( 10184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10185 /* end confdefs.h. */ 10186 int i; 10187 _ACEOF 10188 if ac_fn_c_try_compile "$LINENO" 10189 then : 10190 xorg_cv_cc_flag_unused_command_line_argument=yes 10191 else case e in #( 10192 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10193 esac 10194 fi 10195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10196 esac 10197 fi 10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10199 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10201 CFLAGS="$xorg_testset_save_CFLAGS" 10202 fi 10203 10204 found="no" 10205 10206 if test $found = "no" ; then 10207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10209 fi 10210 10211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10213 fi 10214 10215 CFLAGS="$CFLAGS -Wreturn-type" 10216 10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10218 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10219 cacheid=xorg_cv_cc_flag__Wreturn_type 10220 if eval test \${$cacheid+y} 10221 then : 10222 printf %s "(cached) " >&6 10223 else case e in #( 10224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10225 /* end confdefs.h. */ 10226 int i; 10227 int 10228 main (void) 10229 { 10230 10231 ; 10232 return 0; 10233 } 10234 _ACEOF 10235 if ac_fn_c_try_link "$LINENO" 10236 then : 10237 eval $cacheid=yes 10238 else case e in #( 10239 e) eval $cacheid=no ;; 10240 esac 10241 fi 10242 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10243 conftest$ac_exeext conftest.$ac_ext ;; 10244 esac 10245 fi 10246 10247 10248 CFLAGS="$xorg_testset_save_CFLAGS" 10249 10250 eval supported=\$$cacheid 10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10252 printf "%s\n" "$supported" >&6; } 10253 if test "$supported" = "yes" ; then 10254 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10255 found="yes" 10256 fi 10257 fi 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 xorg_testset_save_CFLAGS="$CFLAGS" 10274 10275 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10278 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10279 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10280 then : 10281 printf %s "(cached) " >&6 10282 else case e in #( 10283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10284 /* end confdefs.h. */ 10285 int i; 10286 _ACEOF 10287 if ac_fn_c_try_compile "$LINENO" 10288 then : 10289 xorg_cv_cc_flag_unknown_warning_option=yes 10290 else case e in #( 10291 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10292 esac 10293 fi 10294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10295 esac 10296 fi 10297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10298 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10300 CFLAGS="$xorg_testset_save_CFLAGS" 10301 fi 10302 10303 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10306 fi 10307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10309 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10310 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10311 then : 10312 printf %s "(cached) " >&6 10313 else case e in #( 10314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10315 /* end confdefs.h. */ 10316 int i; 10317 _ACEOF 10318 if ac_fn_c_try_compile "$LINENO" 10319 then : 10320 xorg_cv_cc_flag_unused_command_line_argument=yes 10321 else case e in #( 10322 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10323 esac 10324 fi 10325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10326 esac 10327 fi 10328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10329 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10331 CFLAGS="$xorg_testset_save_CFLAGS" 10332 fi 10333 10334 found="no" 10335 10336 if test $found = "no" ; then 10337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10339 fi 10340 10341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10343 fi 10344 10345 CFLAGS="$CFLAGS -Wtrigraphs" 10346 10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10348 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10349 cacheid=xorg_cv_cc_flag__Wtrigraphs 10350 if eval test \${$cacheid+y} 10351 then : 10352 printf %s "(cached) " >&6 10353 else case e in #( 10354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10355 /* end confdefs.h. */ 10356 int i; 10357 int 10358 main (void) 10359 { 10360 10361 ; 10362 return 0; 10363 } 10364 _ACEOF 10365 if ac_fn_c_try_link "$LINENO" 10366 then : 10367 eval $cacheid=yes 10368 else case e in #( 10369 e) eval $cacheid=no ;; 10370 esac 10371 fi 10372 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10373 conftest$ac_exeext conftest.$ac_ext ;; 10374 esac 10375 fi 10376 10377 10378 CFLAGS="$xorg_testset_save_CFLAGS" 10379 10380 eval supported=\$$cacheid 10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10382 printf "%s\n" "$supported" >&6; } 10383 if test "$supported" = "yes" ; then 10384 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10385 found="yes" 10386 fi 10387 fi 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 xorg_testset_save_CFLAGS="$CFLAGS" 10404 10405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10408 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10409 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10410 then : 10411 printf %s "(cached) " >&6 10412 else case e in #( 10413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10414 /* end confdefs.h. */ 10415 int i; 10416 _ACEOF 10417 if ac_fn_c_try_compile "$LINENO" 10418 then : 10419 xorg_cv_cc_flag_unknown_warning_option=yes 10420 else case e in #( 10421 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10422 esac 10423 fi 10424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10425 esac 10426 fi 10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10428 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10429 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10430 CFLAGS="$xorg_testset_save_CFLAGS" 10431 fi 10432 10433 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10436 fi 10437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10439 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10440 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10441 then : 10442 printf %s "(cached) " >&6 10443 else case e in #( 10444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445 /* end confdefs.h. */ 10446 int i; 10447 _ACEOF 10448 if ac_fn_c_try_compile "$LINENO" 10449 then : 10450 xorg_cv_cc_flag_unused_command_line_argument=yes 10451 else case e in #( 10452 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10453 esac 10454 fi 10455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10456 esac 10457 fi 10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10459 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10461 CFLAGS="$xorg_testset_save_CFLAGS" 10462 fi 10463 10464 found="no" 10465 10466 if test $found = "no" ; then 10467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10469 fi 10470 10471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10473 fi 10474 10475 CFLAGS="$CFLAGS -Warray-bounds" 10476 10477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10478 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10479 cacheid=xorg_cv_cc_flag__Warray_bounds 10480 if eval test \${$cacheid+y} 10481 then : 10482 printf %s "(cached) " >&6 10483 else case e in #( 10484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10485 /* end confdefs.h. */ 10486 int i; 10487 int 10488 main (void) 10489 { 10490 10491 ; 10492 return 0; 10493 } 10494 _ACEOF 10495 if ac_fn_c_try_link "$LINENO" 10496 then : 10497 eval $cacheid=yes 10498 else case e in #( 10499 e) eval $cacheid=no ;; 10500 esac 10501 fi 10502 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10503 conftest$ac_exeext conftest.$ac_ext ;; 10504 esac 10505 fi 10506 10507 10508 CFLAGS="$xorg_testset_save_CFLAGS" 10509 10510 eval supported=\$$cacheid 10511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10512 printf "%s\n" "$supported" >&6; } 10513 if test "$supported" = "yes" ; then 10514 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10515 found="yes" 10516 fi 10517 fi 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 xorg_testset_save_CFLAGS="$CFLAGS" 10534 10535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10539 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10540 then : 10541 printf %s "(cached) " >&6 10542 else case e in #( 10543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10544 /* end confdefs.h. */ 10545 int i; 10546 _ACEOF 10547 if ac_fn_c_try_compile "$LINENO" 10548 then : 10549 xorg_cv_cc_flag_unknown_warning_option=yes 10550 else case e in #( 10551 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10552 esac 10553 fi 10554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10555 esac 10556 fi 10557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10558 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10560 CFLAGS="$xorg_testset_save_CFLAGS" 10561 fi 10562 10563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10566 fi 10567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10569 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10570 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10571 then : 10572 printf %s "(cached) " >&6 10573 else case e in #( 10574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10575 /* end confdefs.h. */ 10576 int i; 10577 _ACEOF 10578 if ac_fn_c_try_compile "$LINENO" 10579 then : 10580 xorg_cv_cc_flag_unused_command_line_argument=yes 10581 else case e in #( 10582 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10583 esac 10584 fi 10585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10586 esac 10587 fi 10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10589 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10591 CFLAGS="$xorg_testset_save_CFLAGS" 10592 fi 10593 10594 found="no" 10595 10596 if test $found = "no" ; then 10597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10599 fi 10600 10601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10603 fi 10604 10605 CFLAGS="$CFLAGS -Wwrite-strings" 10606 10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10608 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10609 cacheid=xorg_cv_cc_flag__Wwrite_strings 10610 if eval test \${$cacheid+y} 10611 then : 10612 printf %s "(cached) " >&6 10613 else case e in #( 10614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10615 /* end confdefs.h. */ 10616 int i; 10617 int 10618 main (void) 10619 { 10620 10621 ; 10622 return 0; 10623 } 10624 _ACEOF 10625 if ac_fn_c_try_link "$LINENO" 10626 then : 10627 eval $cacheid=yes 10628 else case e in #( 10629 e) eval $cacheid=no ;; 10630 esac 10631 fi 10632 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10633 conftest$ac_exeext conftest.$ac_ext ;; 10634 esac 10635 fi 10636 10637 10638 CFLAGS="$xorg_testset_save_CFLAGS" 10639 10640 eval supported=\$$cacheid 10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10642 printf "%s\n" "$supported" >&6; } 10643 if test "$supported" = "yes" ; then 10644 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10645 found="yes" 10646 fi 10647 fi 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 xorg_testset_save_CFLAGS="$CFLAGS" 10664 10665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10669 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10670 then : 10671 printf %s "(cached) " >&6 10672 else case e in #( 10673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10674 /* end confdefs.h. */ 10675 int i; 10676 _ACEOF 10677 if ac_fn_c_try_compile "$LINENO" 10678 then : 10679 xorg_cv_cc_flag_unknown_warning_option=yes 10680 else case e in #( 10681 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10682 esac 10683 fi 10684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10685 esac 10686 fi 10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10688 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10690 CFLAGS="$xorg_testset_save_CFLAGS" 10691 fi 10692 10693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10696 fi 10697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10699 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10700 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10701 then : 10702 printf %s "(cached) " >&6 10703 else case e in #( 10704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10705 /* end confdefs.h. */ 10706 int i; 10707 _ACEOF 10708 if ac_fn_c_try_compile "$LINENO" 10709 then : 10710 xorg_cv_cc_flag_unused_command_line_argument=yes 10711 else case e in #( 10712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10713 esac 10714 fi 10715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10716 esac 10717 fi 10718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10721 CFLAGS="$xorg_testset_save_CFLAGS" 10722 fi 10723 10724 found="no" 10725 10726 if test $found = "no" ; then 10727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10729 fi 10730 10731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10733 fi 10734 10735 CFLAGS="$CFLAGS -Waddress" 10736 10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10738 printf %s "checking if $CC supports -Waddress... " >&6; } 10739 cacheid=xorg_cv_cc_flag__Waddress 10740 if eval test \${$cacheid+y} 10741 then : 10742 printf %s "(cached) " >&6 10743 else case e in #( 10744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10745 /* end confdefs.h. */ 10746 int i; 10747 int 10748 main (void) 10749 { 10750 10751 ; 10752 return 0; 10753 } 10754 _ACEOF 10755 if ac_fn_c_try_link "$LINENO" 10756 then : 10757 eval $cacheid=yes 10758 else case e in #( 10759 e) eval $cacheid=no ;; 10760 esac 10761 fi 10762 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10763 conftest$ac_exeext conftest.$ac_ext ;; 10764 esac 10765 fi 10766 10767 10768 CFLAGS="$xorg_testset_save_CFLAGS" 10769 10770 eval supported=\$$cacheid 10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10772 printf "%s\n" "$supported" >&6; } 10773 if test "$supported" = "yes" ; then 10774 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10775 found="yes" 10776 fi 10777 fi 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 xorg_testset_save_CFLAGS="$CFLAGS" 10794 10795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10799 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10800 then : 10801 printf %s "(cached) " >&6 10802 else case e in #( 10803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10804 /* end confdefs.h. */ 10805 int i; 10806 _ACEOF 10807 if ac_fn_c_try_compile "$LINENO" 10808 then : 10809 xorg_cv_cc_flag_unknown_warning_option=yes 10810 else case e in #( 10811 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10812 esac 10813 fi 10814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10815 esac 10816 fi 10817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10818 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10820 CFLAGS="$xorg_testset_save_CFLAGS" 10821 fi 10822 10823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10826 fi 10827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10831 then : 10832 printf %s "(cached) " >&6 10833 else case e in #( 10834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10835 /* end confdefs.h. */ 10836 int i; 10837 _ACEOF 10838 if ac_fn_c_try_compile "$LINENO" 10839 then : 10840 xorg_cv_cc_flag_unused_command_line_argument=yes 10841 else case e in #( 10842 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10843 esac 10844 fi 10845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10846 esac 10847 fi 10848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10849 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10851 CFLAGS="$xorg_testset_save_CFLAGS" 10852 fi 10853 10854 found="no" 10855 10856 if test $found = "no" ; then 10857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10859 fi 10860 10861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10863 fi 10864 10865 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10866 10867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10868 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10869 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10870 if eval test \${$cacheid+y} 10871 then : 10872 printf %s "(cached) " >&6 10873 else case e in #( 10874 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10875 /* end confdefs.h. */ 10876 int i; 10877 int 10878 main (void) 10879 { 10880 10881 ; 10882 return 0; 10883 } 10884 _ACEOF 10885 if ac_fn_c_try_link "$LINENO" 10886 then : 10887 eval $cacheid=yes 10888 else case e in #( 10889 e) eval $cacheid=no ;; 10890 esac 10891 fi 10892 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10893 conftest$ac_exeext conftest.$ac_ext ;; 10894 esac 10895 fi 10896 10897 10898 CFLAGS="$xorg_testset_save_CFLAGS" 10899 10900 eval supported=\$$cacheid 10901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10902 printf "%s\n" "$supported" >&6; } 10903 if test "$supported" = "yes" ; then 10904 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10905 found="yes" 10906 fi 10907 fi 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 xorg_testset_save_CFLAGS="$CFLAGS" 10924 10925 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10928 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10929 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10930 then : 10931 printf %s "(cached) " >&6 10932 else case e in #( 10933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10934 /* end confdefs.h. */ 10935 int i; 10936 _ACEOF 10937 if ac_fn_c_try_compile "$LINENO" 10938 then : 10939 xorg_cv_cc_flag_unknown_warning_option=yes 10940 else case e in #( 10941 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10942 esac 10943 fi 10944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10945 esac 10946 fi 10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10948 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10950 CFLAGS="$xorg_testset_save_CFLAGS" 10951 fi 10952 10953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10956 fi 10957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10959 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10960 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10961 then : 10962 printf %s "(cached) " >&6 10963 else case e in #( 10964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10965 /* end confdefs.h. */ 10966 int i; 10967 _ACEOF 10968 if ac_fn_c_try_compile "$LINENO" 10969 then : 10970 xorg_cv_cc_flag_unused_command_line_argument=yes 10971 else case e in #( 10972 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10973 esac 10974 fi 10975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10976 esac 10977 fi 10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10979 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10981 CFLAGS="$xorg_testset_save_CFLAGS" 10982 fi 10983 10984 found="no" 10985 10986 if test $found = "no" ; then 10987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10989 fi 10990 10991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10993 fi 10994 10995 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10996 10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10998 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10999 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 11000 if eval test \${$cacheid+y} 11001 then : 11002 printf %s "(cached) " >&6 11003 else case e in #( 11004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11005 /* end confdefs.h. */ 11006 int i; 11007 int 11008 main (void) 11009 { 11010 11011 ; 11012 return 0; 11013 } 11014 _ACEOF 11015 if ac_fn_c_try_link "$LINENO" 11016 then : 11017 eval $cacheid=yes 11018 else case e in #( 11019 e) eval $cacheid=no ;; 11020 esac 11021 fi 11022 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11023 conftest$ac_exeext conftest.$ac_ext ;; 11024 esac 11025 fi 11026 11027 11028 CFLAGS="$xorg_testset_save_CFLAGS" 11029 11030 eval supported=\$$cacheid 11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11032 printf "%s\n" "$supported" >&6; } 11033 if test "$supported" = "yes" ; then 11034 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 11035 found="yes" 11036 fi 11037 fi 11038 11039 11040 fi 11041 11042 11043 11044 11045 11046 11047 11048 CWARNFLAGS="$BASE_CFLAGS" 11049 if test "x$GCC" = xyes ; then 11050 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 11051 fi 11052 11053 11054 11055 11056 11057 11058 11059 11060 # Check whether --enable-strict-compilation was given. 11061 if test ${enable_strict_compilation+y} 11062 then : 11063 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11064 else case e in #( 11065 e) STRICT_COMPILE=no ;; 11066 esac 11067 fi 11068 11069 11070 11071 11072 11073 11074 STRICT_CFLAGS="" 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 xorg_testset_save_CFLAGS="$CFLAGS" 11089 11090 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11093 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11094 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11095 then : 11096 printf %s "(cached) " >&6 11097 else case e in #( 11098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11099 /* end confdefs.h. */ 11100 int i; 11101 _ACEOF 11102 if ac_fn_c_try_compile "$LINENO" 11103 then : 11104 xorg_cv_cc_flag_unknown_warning_option=yes 11105 else case e in #( 11106 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11107 esac 11108 fi 11109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11110 esac 11111 fi 11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11113 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11115 CFLAGS="$xorg_testset_save_CFLAGS" 11116 fi 11117 11118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11121 fi 11122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11124 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11125 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11126 then : 11127 printf %s "(cached) " >&6 11128 else case e in #( 11129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11130 /* end confdefs.h. */ 11131 int i; 11132 _ACEOF 11133 if ac_fn_c_try_compile "$LINENO" 11134 then : 11135 xorg_cv_cc_flag_unused_command_line_argument=yes 11136 else case e in #( 11137 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11138 esac 11139 fi 11140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11141 esac 11142 fi 11143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11144 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11146 CFLAGS="$xorg_testset_save_CFLAGS" 11147 fi 11148 11149 found="no" 11150 11151 if test $found = "no" ; then 11152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11154 fi 11155 11156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11158 fi 11159 11160 CFLAGS="$CFLAGS -pedantic" 11161 11162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11163 printf %s "checking if $CC supports -pedantic... " >&6; } 11164 cacheid=xorg_cv_cc_flag__pedantic 11165 if eval test \${$cacheid+y} 11166 then : 11167 printf %s "(cached) " >&6 11168 else case e in #( 11169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11170 /* end confdefs.h. */ 11171 int i; 11172 int 11173 main (void) 11174 { 11175 11176 ; 11177 return 0; 11178 } 11179 _ACEOF 11180 if ac_fn_c_try_link "$LINENO" 11181 then : 11182 eval $cacheid=yes 11183 else case e in #( 11184 e) eval $cacheid=no ;; 11185 esac 11186 fi 11187 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11188 conftest$ac_exeext conftest.$ac_ext ;; 11189 esac 11190 fi 11191 11192 11193 CFLAGS="$xorg_testset_save_CFLAGS" 11194 11195 eval supported=\$$cacheid 11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11197 printf "%s\n" "$supported" >&6; } 11198 if test "$supported" = "yes" ; then 11199 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11200 found="yes" 11201 fi 11202 fi 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 xorg_testset_save_CFLAGS="$CFLAGS" 11219 11220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11224 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11225 then : 11226 printf %s "(cached) " >&6 11227 else case e in #( 11228 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11229 /* end confdefs.h. */ 11230 int i; 11231 _ACEOF 11232 if ac_fn_c_try_compile "$LINENO" 11233 then : 11234 xorg_cv_cc_flag_unknown_warning_option=yes 11235 else case e in #( 11236 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11237 esac 11238 fi 11239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11240 esac 11241 fi 11242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11243 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11245 CFLAGS="$xorg_testset_save_CFLAGS" 11246 fi 11247 11248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11251 fi 11252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11254 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11255 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11256 then : 11257 printf %s "(cached) " >&6 11258 else case e in #( 11259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11260 /* end confdefs.h. */ 11261 int i; 11262 _ACEOF 11263 if ac_fn_c_try_compile "$LINENO" 11264 then : 11265 xorg_cv_cc_flag_unused_command_line_argument=yes 11266 else case e in #( 11267 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11268 esac 11269 fi 11270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11271 esac 11272 fi 11273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11274 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11276 CFLAGS="$xorg_testset_save_CFLAGS" 11277 fi 11278 11279 found="no" 11280 11281 if test $found = "no" ; then 11282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11284 fi 11285 11286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11288 fi 11289 11290 CFLAGS="$CFLAGS -Werror" 11291 11292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11293 printf %s "checking if $CC supports -Werror... " >&6; } 11294 cacheid=xorg_cv_cc_flag__Werror 11295 if eval test \${$cacheid+y} 11296 then : 11297 printf %s "(cached) " >&6 11298 else case e in #( 11299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11300 /* end confdefs.h. */ 11301 int i; 11302 int 11303 main (void) 11304 { 11305 11306 ; 11307 return 0; 11308 } 11309 _ACEOF 11310 if ac_fn_c_try_link "$LINENO" 11311 then : 11312 eval $cacheid=yes 11313 else case e in #( 11314 e) eval $cacheid=no ;; 11315 esac 11316 fi 11317 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11318 conftest$ac_exeext conftest.$ac_ext ;; 11319 esac 11320 fi 11321 11322 11323 CFLAGS="$xorg_testset_save_CFLAGS" 11324 11325 eval supported=\$$cacheid 11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11327 printf "%s\n" "$supported" >&6; } 11328 if test "$supported" = "yes" ; then 11329 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11330 found="yes" 11331 fi 11332 fi 11333 11334 if test $found = "no" ; then 11335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11337 fi 11338 11339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11341 fi 11342 11343 CFLAGS="$CFLAGS -errwarn" 11344 11345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11346 printf %s "checking if $CC supports -errwarn... " >&6; } 11347 cacheid=xorg_cv_cc_flag__errwarn 11348 if eval test \${$cacheid+y} 11349 then : 11350 printf %s "(cached) " >&6 11351 else case e in #( 11352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11353 /* end confdefs.h. */ 11354 int i; 11355 int 11356 main (void) 11357 { 11358 11359 ; 11360 return 0; 11361 } 11362 _ACEOF 11363 if ac_fn_c_try_link "$LINENO" 11364 then : 11365 eval $cacheid=yes 11366 else case e in #( 11367 e) eval $cacheid=no ;; 11368 esac 11369 fi 11370 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11371 conftest$ac_exeext conftest.$ac_ext ;; 11372 esac 11373 fi 11374 11375 11376 CFLAGS="$xorg_testset_save_CFLAGS" 11377 11378 eval supported=\$$cacheid 11379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11380 printf "%s\n" "$supported" >&6; } 11381 if test "$supported" = "yes" ; then 11382 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11383 found="yes" 11384 fi 11385 fi 11386 11387 11388 11389 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11390 # activate it with -Werror, so we add it here explicitly. 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 xorg_testset_save_CFLAGS="$CFLAGS" 11405 11406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11409 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11410 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11411 then : 11412 printf %s "(cached) " >&6 11413 else case e in #( 11414 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11415 /* end confdefs.h. */ 11416 int i; 11417 _ACEOF 11418 if ac_fn_c_try_compile "$LINENO" 11419 then : 11420 xorg_cv_cc_flag_unknown_warning_option=yes 11421 else case e in #( 11422 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11423 esac 11424 fi 11425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11426 esac 11427 fi 11428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11429 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11431 CFLAGS="$xorg_testset_save_CFLAGS" 11432 fi 11433 11434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11437 fi 11438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11440 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11441 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11442 then : 11443 printf %s "(cached) " >&6 11444 else case e in #( 11445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11446 /* end confdefs.h. */ 11447 int i; 11448 _ACEOF 11449 if ac_fn_c_try_compile "$LINENO" 11450 then : 11451 xorg_cv_cc_flag_unused_command_line_argument=yes 11452 else case e in #( 11453 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11454 esac 11455 fi 11456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11457 esac 11458 fi 11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11460 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11462 CFLAGS="$xorg_testset_save_CFLAGS" 11463 fi 11464 11465 found="no" 11466 11467 if test $found = "no" ; then 11468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11470 fi 11471 11472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11474 fi 11475 11476 CFLAGS="$CFLAGS -Werror=attributes" 11477 11478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11479 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11480 cacheid=xorg_cv_cc_flag__Werror_attributes 11481 if eval test \${$cacheid+y} 11482 then : 11483 printf %s "(cached) " >&6 11484 else case e in #( 11485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11486 /* end confdefs.h. */ 11487 int i; 11488 int 11489 main (void) 11490 { 11491 11492 ; 11493 return 0; 11494 } 11495 _ACEOF 11496 if ac_fn_c_try_link "$LINENO" 11497 then : 11498 eval $cacheid=yes 11499 else case e in #( 11500 e) eval $cacheid=no ;; 11501 esac 11502 fi 11503 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11504 conftest$ac_exeext conftest.$ac_ext ;; 11505 esac 11506 fi 11507 11508 11509 CFLAGS="$xorg_testset_save_CFLAGS" 11510 11511 eval supported=\$$cacheid 11512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11513 printf "%s\n" "$supported" >&6; } 11514 if test "$supported" = "yes" ; then 11515 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11516 found="yes" 11517 fi 11518 fi 11519 11520 11521 11522 if test "x$STRICT_COMPILE" = "xyes"; then 11523 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11524 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11525 fi 11526 11527 11528 11529 11530 11531 11532 11533 11534 cat >>confdefs.h <<_ACEOF 11535 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11536 _ACEOF 11537 11538 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11539 if test "x$PVM" = "x"; then 11540 PVM="0" 11541 fi 11542 11543 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11544 11545 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11546 if test "x$PVP" = "x"; then 11547 PVP="0" 11548 fi 11549 11550 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11551 11552 11553 11554 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11555 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11556 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11557 touch \$(top_srcdir)/ChangeLog; \ 11558 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11559 11560 11561 11562 11563 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11564 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11565 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11566 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11567 touch \$(top_srcdir)/INSTALL; \ 11568 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11569 11570 11571 11572 11573 11574 11575 case $host_os in 11576 solaris*) 11577 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11578 # check for a man page file found in later versions that use 11579 # traditional section numbers instead 11580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11581 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11582 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11583 then : 11584 printf %s "(cached) " >&6 11585 else case e in #( 11586 e) test "$cross_compiling" = yes && 11587 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11588 if test -r "/usr/share/man/man7/attributes.7"; then 11589 ac_cv_file__usr_share_man_man7_attributes_7=yes 11590 else 11591 ac_cv_file__usr_share_man_man7_attributes_7=no 11592 fi ;; 11593 esac 11594 fi 11595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11596 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11597 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11598 then : 11599 SYSV_MAN_SECTIONS=false 11600 else case e in #( 11601 e) SYSV_MAN_SECTIONS=true ;; 11602 esac 11603 fi 11604 11605 ;; 11606 *) SYSV_MAN_SECTIONS=false ;; 11607 esac 11608 11609 if test x$APP_MAN_SUFFIX = x ; then 11610 APP_MAN_SUFFIX=1 11611 fi 11612 if test x$APP_MAN_DIR = x ; then 11613 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11614 fi 11615 11616 if test x$LIB_MAN_SUFFIX = x ; then 11617 LIB_MAN_SUFFIX=3 11618 fi 11619 if test x$LIB_MAN_DIR = x ; then 11620 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11621 fi 11622 11623 if test x$FILE_MAN_SUFFIX = x ; then 11624 case $SYSV_MAN_SECTIONS in 11625 true) FILE_MAN_SUFFIX=4 ;; 11626 *) FILE_MAN_SUFFIX=5 ;; 11627 esac 11628 fi 11629 if test x$FILE_MAN_DIR = x ; then 11630 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11631 fi 11632 11633 if test x$MISC_MAN_SUFFIX = x ; then 11634 case $SYSV_MAN_SECTIONS in 11635 true) MISC_MAN_SUFFIX=5 ;; 11636 *) MISC_MAN_SUFFIX=7 ;; 11637 esac 11638 fi 11639 if test x$MISC_MAN_DIR = x ; then 11640 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11641 fi 11642 11643 if test x$DRIVER_MAN_SUFFIX = x ; then 11644 case $SYSV_MAN_SECTIONS in 11645 true) DRIVER_MAN_SUFFIX=7 ;; 11646 *) DRIVER_MAN_SUFFIX=4 ;; 11647 esac 11648 fi 11649 if test x$DRIVER_MAN_DIR = x ; then 11650 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11651 fi 11652 11653 if test x$ADMIN_MAN_SUFFIX = x ; then 11654 case $SYSV_MAN_SECTIONS in 11655 true) ADMIN_MAN_SUFFIX=1m ;; 11656 *) ADMIN_MAN_SUFFIX=8 ;; 11657 esac 11658 fi 11659 if test x$ADMIN_MAN_DIR = x ; then 11660 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11661 fi 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 XORG_MAN_PAGE="X Version 11" 11678 11679 MAN_SUBSTS="\ 11680 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11681 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11682 -e 's|__xservername__|Xorg|g' \ 11683 -e 's|__xconfigfile__|xorg.conf|g' \ 11684 -e 's|__projectroot__|\$(prefix)|g' \ 11685 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11686 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11687 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11688 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11689 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11690 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11691 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11692 11693 11694 11695 11696 AM_DEFAULT_VERBOSITY=0 11697 11698 11699 11700 11701 11702 # Initialize libtool 11703 case `pwd` in 11704 *\ * | *\ *) 11705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11706 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11707 esac 11708 11709 11710 11711 macro_version='2.5.4' 11712 macro_revision='2.5.4' 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 ltmain=$ac_aux_dir/ltmain.sh 11728 11729 # Backslashify metacharacters that are still active within 11730 # double-quoted strings. 11731 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11732 11733 # Same as above, but do not quote variable references. 11734 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11735 11736 # Sed substitution to delay expansion of an escaped shell variable in a 11737 # double_quote_subst'ed string. 11738 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11739 11740 # Sed substitution to delay expansion of an escaped single quote. 11741 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11742 11743 # Sed substitution to avoid accidental globbing in evaled expressions 11744 no_glob_subst='s/\*/\\\*/g' 11745 11746 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11747 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11749 11750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11751 printf %s "checking how to print strings... " >&6; } 11752 # Test print first, because it will be a builtin if present. 11753 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11754 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11755 ECHO='print -r --' 11756 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11757 ECHO='printf %s\n' 11758 else 11759 # Use this function as a fallback that always works. 11760 func_fallback_echo () 11761 { 11762 eval 'cat <<_LTECHO_EOF 11763 $1 11764 _LTECHO_EOF' 11765 } 11766 ECHO='func_fallback_echo' 11767 fi 11768 11769 # func_echo_all arg... 11770 # Invoke $ECHO with all args, space-separated. 11771 func_echo_all () 11772 { 11773 $ECHO "" 11774 } 11775 11776 case $ECHO in 11777 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11778 printf "%s\n" "printf" >&6; } ;; 11779 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11780 printf "%s\n" "print -r" >&6; } ;; 11781 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11782 printf "%s\n" "cat" >&6; } ;; 11783 esac 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11799 printf %s "checking for a sed that does not truncate output... " >&6; } 11800 if test ${ac_cv_path_SED+y} 11801 then : 11802 printf %s "(cached) " >&6 11803 else case e in #( 11804 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11805 for ac_i in 1 2 3 4 5 6 7; do 11806 ac_script="$ac_script$as_nl$ac_script" 11807 done 11808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11809 { ac_script=; unset ac_script;} 11810 if test -z "$SED"; then 11811 ac_path_SED_found=false 11812 # Loop through the user's path and test for each of PROGNAME-LIST 11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11814 for as_dir in $PATH 11815 do 11816 IFS=$as_save_IFS 11817 case $as_dir in #((( 11818 '') as_dir=./ ;; 11819 */) ;; 11820 *) as_dir=$as_dir/ ;; 11821 esac 11822 for ac_prog in sed gsed 11823 do 11824 for ac_exec_ext in '' $ac_executable_extensions; do 11825 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11826 as_fn_executable_p "$ac_path_SED" || continue 11827 # Check for GNU ac_path_SED and select it if it is found. 11828 # Check for GNU $ac_path_SED 11829 case `"$ac_path_SED" --version 2>&1` in #( 11830 *GNU*) 11831 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11832 #( 11833 *) 11834 ac_count=0 11835 printf %s 0123456789 >"conftest.in" 11836 while : 11837 do 11838 cat "conftest.in" "conftest.in" >"conftest.tmp" 11839 mv "conftest.tmp" "conftest.in" 11840 cp "conftest.in" "conftest.nl" 11841 printf "%s\n" '' >> "conftest.nl" 11842 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11844 as_fn_arith $ac_count + 1 && ac_count=$as_val 11845 if test $ac_count -gt ${ac_path_SED_max-0}; then 11846 # Best one so far, save it but keep looking for a better one 11847 ac_cv_path_SED="$ac_path_SED" 11848 ac_path_SED_max=$ac_count 11849 fi 11850 # 10*(2^10) chars as input seems more than enough 11851 test $ac_count -gt 10 && break 11852 done 11853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11854 esac 11855 11856 $ac_path_SED_found && break 3 11857 done 11858 done 11859 done 11860 IFS=$as_save_IFS 11861 if test -z "$ac_cv_path_SED"; then 11862 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11863 fi 11864 else 11865 ac_cv_path_SED=$SED 11866 fi 11867 ;; 11868 esac 11869 fi 11870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11871 printf "%s\n" "$ac_cv_path_SED" >&6; } 11872 SED="$ac_cv_path_SED" 11873 rm -f conftest.sed 11874 11875 test -z "$SED" && SED=sed 11876 Xsed="$SED -e 1s/^X//" 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11889 printf %s "checking for grep that handles long lines and -e... " >&6; } 11890 if test ${ac_cv_path_GREP+y} 11891 then : 11892 printf %s "(cached) " >&6 11893 else case e in #( 11894 e) if test -z "$GREP"; then 11895 ac_path_GREP_found=false 11896 # Loop through the user's path and test for each of PROGNAME-LIST 11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11898 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11899 do 11900 IFS=$as_save_IFS 11901 case $as_dir in #((( 11902 '') as_dir=./ ;; 11903 */) ;; 11904 *) as_dir=$as_dir/ ;; 11905 esac 11906 for ac_prog in grep ggrep 11907 do 11908 for ac_exec_ext in '' $ac_executable_extensions; do 11909 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11910 as_fn_executable_p "$ac_path_GREP" || continue 11911 # Check for GNU ac_path_GREP and select it if it is found. 11912 # Check for GNU $ac_path_GREP 11913 case `"$ac_path_GREP" --version 2>&1` in #( 11914 *GNU*) 11915 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11916 #( 11917 *) 11918 ac_count=0 11919 printf %s 0123456789 >"conftest.in" 11920 while : 11921 do 11922 cat "conftest.in" "conftest.in" >"conftest.tmp" 11923 mv "conftest.tmp" "conftest.in" 11924 cp "conftest.in" "conftest.nl" 11925 printf "%s\n" 'GREP' >> "conftest.nl" 11926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11928 as_fn_arith $ac_count + 1 && ac_count=$as_val 11929 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11930 # Best one so far, save it but keep looking for a better one 11931 ac_cv_path_GREP="$ac_path_GREP" 11932 ac_path_GREP_max=$ac_count 11933 fi 11934 # 10*(2^10) chars as input seems more than enough 11935 test $ac_count -gt 10 && break 11936 done 11937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11938 esac 11939 11940 $ac_path_GREP_found && break 3 11941 done 11942 done 11943 done 11944 IFS=$as_save_IFS 11945 if test -z "$ac_cv_path_GREP"; then 11946 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11947 fi 11948 else 11949 ac_cv_path_GREP=$GREP 11950 fi 11951 ;; 11952 esac 11953 fi 11954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11955 printf "%s\n" "$ac_cv_path_GREP" >&6; } 11956 GREP="$ac_cv_path_GREP" 11957 11958 11959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11960 printf %s "checking for egrep... " >&6; } 11961 if test ${ac_cv_path_EGREP+y} 11962 then : 11963 printf %s "(cached) " >&6 11964 else case e in #( 11965 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11966 then ac_cv_path_EGREP="$GREP -E" 11967 else 11968 if test -z "$EGREP"; then 11969 ac_path_EGREP_found=false 11970 # Loop through the user's path and test for each of PROGNAME-LIST 11971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11973 do 11974 IFS=$as_save_IFS 11975 case $as_dir in #((( 11976 '') as_dir=./ ;; 11977 */) ;; 11978 *) as_dir=$as_dir/ ;; 11979 esac 11980 for ac_prog in egrep 11981 do 11982 for ac_exec_ext in '' $ac_executable_extensions; do 11983 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11984 as_fn_executable_p "$ac_path_EGREP" || continue 11985 # Check for GNU ac_path_EGREP and select it if it is found. 11986 # Check for GNU $ac_path_EGREP 11987 case `"$ac_path_EGREP" --version 2>&1` in #( 11988 *GNU*) 11989 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11990 #( 11991 *) 11992 ac_count=0 11993 printf %s 0123456789 >"conftest.in" 11994 while : 11995 do 11996 cat "conftest.in" "conftest.in" >"conftest.tmp" 11997 mv "conftest.tmp" "conftest.in" 11998 cp "conftest.in" "conftest.nl" 11999 printf "%s\n" 'EGREP' >> "conftest.nl" 12000 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12002 as_fn_arith $ac_count + 1 && ac_count=$as_val 12003 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 12004 # Best one so far, save it but keep looking for a better one 12005 ac_cv_path_EGREP="$ac_path_EGREP" 12006 ac_path_EGREP_max=$ac_count 12007 fi 12008 # 10*(2^10) chars as input seems more than enough 12009 test $ac_count -gt 10 && break 12010 done 12011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12012 esac 12013 12014 $ac_path_EGREP_found && break 3 12015 done 12016 done 12017 done 12018 IFS=$as_save_IFS 12019 if test -z "$ac_cv_path_EGREP"; then 12020 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12021 fi 12022 else 12023 ac_cv_path_EGREP=$EGREP 12024 fi 12025 12026 fi ;; 12027 esac 12028 fi 12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 12030 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 12031 EGREP="$ac_cv_path_EGREP" 12032 12033 EGREP_TRADITIONAL=$EGREP 12034 ac_cv_path_EGREP_TRADITIONAL=$EGREP 12035 12036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12037 printf %s "checking for fgrep... " >&6; } 12038 if test ${ac_cv_path_FGREP+y} 12039 then : 12040 printf %s "(cached) " >&6 12041 else case e in #( 12042 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12043 then ac_cv_path_FGREP="$GREP -F" 12044 else 12045 if test -z "$FGREP"; then 12046 ac_path_FGREP_found=false 12047 # Loop through the user's path and test for each of PROGNAME-LIST 12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12050 do 12051 IFS=$as_save_IFS 12052 case $as_dir in #((( 12053 '') as_dir=./ ;; 12054 */) ;; 12055 *) as_dir=$as_dir/ ;; 12056 esac 12057 for ac_prog in fgrep 12058 do 12059 for ac_exec_ext in '' $ac_executable_extensions; do 12060 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 12061 as_fn_executable_p "$ac_path_FGREP" || continue 12062 # Check for GNU ac_path_FGREP and select it if it is found. 12063 # Check for GNU $ac_path_FGREP 12064 case `"$ac_path_FGREP" --version 2>&1` in #( 12065 *GNU*) 12066 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12067 #( 12068 *) 12069 ac_count=0 12070 printf %s 0123456789 >"conftest.in" 12071 while : 12072 do 12073 cat "conftest.in" "conftest.in" >"conftest.tmp" 12074 mv "conftest.tmp" "conftest.in" 12075 cp "conftest.in" "conftest.nl" 12076 printf "%s\n" 'FGREP' >> "conftest.nl" 12077 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12079 as_fn_arith $ac_count + 1 && ac_count=$as_val 12080 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12081 # Best one so far, save it but keep looking for a better one 12082 ac_cv_path_FGREP="$ac_path_FGREP" 12083 ac_path_FGREP_max=$ac_count 12084 fi 12085 # 10*(2^10) chars as input seems more than enough 12086 test $ac_count -gt 10 && break 12087 done 12088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12089 esac 12090 12091 $ac_path_FGREP_found && break 3 12092 done 12093 done 12094 done 12095 IFS=$as_save_IFS 12096 if test -z "$ac_cv_path_FGREP"; then 12097 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12098 fi 12099 else 12100 ac_cv_path_FGREP=$FGREP 12101 fi 12102 12103 fi ;; 12104 esac 12105 fi 12106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12107 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 12108 FGREP="$ac_cv_path_FGREP" 12109 12110 12111 test -z "$GREP" && GREP=grep 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 # Check whether --with-gnu-ld was given. 12132 if test ${with_gnu_ld+y} 12133 then : 12134 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12135 else case e in #( 12136 e) with_gnu_ld=no ;; 12137 esac 12138 fi 12139 12140 ac_prog=ld 12141 if test yes = "$GCC"; then 12142 # Check if gcc -print-prog-name=ld gives a path. 12143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12144 printf %s "checking for ld used by $CC... " >&6; } 12145 case $host in 12146 *-*-mingw* | *-*-windows*) 12147 # gcc leaves a trailing carriage return, which upsets mingw 12148 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12149 *) 12150 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12151 esac 12152 case $ac_prog in 12153 # Accept absolute paths. 12154 [\\/]* | ?:[\\/]*) 12155 re_direlt='/[^/][^/]*/\.\./' 12156 # Canonicalize the pathname of ld 12157 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12158 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12159 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12160 done 12161 test -z "$LD" && LD=$ac_prog 12162 ;; 12163 "") 12164 # If it fails, then pretend we aren't using GCC. 12165 ac_prog=ld 12166 ;; 12167 *) 12168 # If it is relative, then search for the first ld in PATH. 12169 with_gnu_ld=unknown 12170 ;; 12171 esac 12172 elif test yes = "$with_gnu_ld"; then 12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12174 printf %s "checking for GNU ld... " >&6; } 12175 else 12176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12177 printf %s "checking for non-GNU ld... " >&6; } 12178 fi 12179 if test ${lt_cv_path_LD+y} 12180 then : 12181 printf %s "(cached) " >&6 12182 else case e in #( 12183 e) if test -z "$LD"; then 12184 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12185 for ac_dir in $PATH; do 12186 IFS=$lt_save_ifs 12187 test -z "$ac_dir" && ac_dir=. 12188 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12189 lt_cv_path_LD=$ac_dir/$ac_prog 12190 # Check to see if the program is GNU ld. I'd rather use --version, 12191 # but apparently some variants of GNU ld only accept -v. 12192 # Break only if it was the GNU/non-GNU ld that we prefer. 12193 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12194 *GNU* | *'with BFD'*) 12195 test no != "$with_gnu_ld" && break 12196 ;; 12197 *) 12198 test yes != "$with_gnu_ld" && break 12199 ;; 12200 esac 12201 fi 12202 done 12203 IFS=$lt_save_ifs 12204 else 12205 lt_cv_path_LD=$LD # Let the user override the test with a path. 12206 fi ;; 12207 esac 12208 fi 12209 12210 LD=$lt_cv_path_LD 12211 if test -n "$LD"; then 12212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12213 printf "%s\n" "$LD" >&6; } 12214 else 12215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12216 printf "%s\n" "no" >&6; } 12217 fi 12218 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12220 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12221 if test ${lt_cv_prog_gnu_ld+y} 12222 then : 12223 printf %s "(cached) " >&6 12224 else case e in #( 12225 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 12226 case `$LD -v 2>&1 </dev/null` in 12227 *GNU* | *'with BFD'*) 12228 lt_cv_prog_gnu_ld=yes 12229 ;; 12230 *) 12231 lt_cv_prog_gnu_ld=no 12232 ;; 12233 esac ;; 12234 esac 12235 fi 12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12237 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12238 with_gnu_ld=$lt_cv_prog_gnu_ld 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12249 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12250 if test ${lt_cv_path_NM+y} 12251 then : 12252 printf %s "(cached) " >&6 12253 else case e in #( 12254 e) if test -n "$NM"; then 12255 # Let the user override the test. 12256 lt_cv_path_NM=$NM 12257 else 12258 lt_nm_to_check=${ac_tool_prefix}nm 12259 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12260 lt_nm_to_check="$lt_nm_to_check nm" 12261 fi 12262 for lt_tmp_nm in $lt_nm_to_check; do 12263 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12264 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12265 IFS=$lt_save_ifs 12266 test -z "$ac_dir" && ac_dir=. 12267 tmp_nm=$ac_dir/$lt_tmp_nm 12268 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12269 # Check to see if the nm accepts a BSD-compat flag. 12270 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12271 # nm: unknown option "B" ignored 12272 # Tru64's nm complains that /dev/null is an invalid object file 12273 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12274 case $build_os in 12275 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 12276 *) lt_bad_file=/dev/null ;; 12277 esac 12278 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 12279 *$lt_bad_file* | *'Invalid file or object type'*) 12280 lt_cv_path_NM="$tmp_nm -B" 12281 break 2 12282 ;; 12283 *) 12284 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 12285 */dev/null*) 12286 lt_cv_path_NM="$tmp_nm -p" 12287 break 2 12288 ;; 12289 *) 12290 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12291 continue # so that we can try to find one that supports BSD flags 12292 ;; 12293 esac 12294 ;; 12295 esac 12296 fi 12297 done 12298 IFS=$lt_save_ifs 12299 done 12300 : ${lt_cv_path_NM=no} 12301 fi ;; 12302 esac 12303 fi 12304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12305 printf "%s\n" "$lt_cv_path_NM" >&6; } 12306 if test no != "$lt_cv_path_NM"; then 12307 NM=$lt_cv_path_NM 12308 else 12309 # Didn't find any BSD compatible name lister, look for dumpbin. 12310 if test -n "$DUMPBIN"; then : 12311 # Let the user override the test. 12312 else 12313 if test -n "$ac_tool_prefix"; then 12314 for ac_prog in dumpbin "link -dump" 12315 do 12316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12319 printf %s "checking for $ac_word... " >&6; } 12320 if test ${ac_cv_prog_DUMPBIN+y} 12321 then : 12322 printf %s "(cached) " >&6 12323 else case e in #( 12324 e) if test -n "$DUMPBIN"; then 12325 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12326 else 12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12328 for as_dir in $PATH 12329 do 12330 IFS=$as_save_IFS 12331 case $as_dir in #((( 12332 '') as_dir=./ ;; 12333 */) ;; 12334 *) as_dir=$as_dir/ ;; 12335 esac 12336 for ac_exec_ext in '' $ac_executable_extensions; do 12337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12338 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12340 break 2 12341 fi 12342 done 12343 done 12344 IFS=$as_save_IFS 12345 12346 fi ;; 12347 esac 12348 fi 12349 DUMPBIN=$ac_cv_prog_DUMPBIN 12350 if test -n "$DUMPBIN"; then 12351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12352 printf "%s\n" "$DUMPBIN" >&6; } 12353 else 12354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12355 printf "%s\n" "no" >&6; } 12356 fi 12357 12358 12359 test -n "$DUMPBIN" && break 12360 done 12361 fi 12362 if test -z "$DUMPBIN"; then 12363 ac_ct_DUMPBIN=$DUMPBIN 12364 for ac_prog in dumpbin "link -dump" 12365 do 12366 # Extract the first word of "$ac_prog", so it can be a program name with args. 12367 set dummy $ac_prog; ac_word=$2 12368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12369 printf %s "checking for $ac_word... " >&6; } 12370 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 12371 then : 12372 printf %s "(cached) " >&6 12373 else case e in #( 12374 e) if test -n "$ac_ct_DUMPBIN"; then 12375 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12376 else 12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12378 for as_dir in $PATH 12379 do 12380 IFS=$as_save_IFS 12381 case $as_dir in #((( 12382 '') as_dir=./ ;; 12383 */) ;; 12384 *) as_dir=$as_dir/ ;; 12385 esac 12386 for ac_exec_ext in '' $ac_executable_extensions; do 12387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12388 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12390 break 2 12391 fi 12392 done 12393 done 12394 IFS=$as_save_IFS 12395 12396 fi ;; 12397 esac 12398 fi 12399 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12400 if test -n "$ac_ct_DUMPBIN"; then 12401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12402 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12403 else 12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12405 printf "%s\n" "no" >&6; } 12406 fi 12407 12408 12409 test -n "$ac_ct_DUMPBIN" && break 12410 done 12411 12412 if test "x$ac_ct_DUMPBIN" = x; then 12413 DUMPBIN=":" 12414 else 12415 case $cross_compiling:$ac_tool_warned in 12416 yes:) 12417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12418 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12419 ac_tool_warned=yes ;; 12420 esac 12421 DUMPBIN=$ac_ct_DUMPBIN 12422 fi 12423 fi 12424 12425 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12426 *COFF*) 12427 DUMPBIN="$DUMPBIN -symbols -headers" 12428 ;; 12429 *) 12430 DUMPBIN=: 12431 ;; 12432 esac 12433 fi 12434 12435 if test : != "$DUMPBIN"; then 12436 NM=$DUMPBIN 12437 fi 12438 fi 12439 test -z "$NM" && NM=nm 12440 12441 12442 12443 12444 12445 12446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12447 printf %s "checking the name lister ($NM) interface... " >&6; } 12448 if test ${lt_cv_nm_interface+y} 12449 then : 12450 printf %s "(cached) " >&6 12451 else case e in #( 12452 e) lt_cv_nm_interface="BSD nm" 12453 echo "int some_variable = 0;" > conftest.$ac_ext 12454 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12455 (eval "$ac_compile" 2>conftest.err) 12456 cat conftest.err >&5 12457 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12458 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12459 cat conftest.err >&5 12460 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12461 cat conftest.out >&5 12462 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12463 lt_cv_nm_interface="MS dumpbin" 12464 fi 12465 rm -f conftest* ;; 12466 esac 12467 fi 12468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12469 printf "%s\n" "$lt_cv_nm_interface" >&6; } 12470 12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12472 printf %s "checking whether ln -s works... " >&6; } 12473 LN_S=$as_ln_s 12474 if test "$LN_S" = "ln -s"; then 12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12476 printf "%s\n" "yes" >&6; } 12477 else 12478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12479 printf "%s\n" "no, using $LN_S" >&6; } 12480 fi 12481 12482 # find the maximum length of command line arguments 12483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12484 printf %s "checking the maximum length of command line arguments... " >&6; } 12485 if test ${lt_cv_sys_max_cmd_len+y} 12486 then : 12487 printf %s "(cached) " >&6 12488 else case e in #( 12489 e) i=0 12490 teststring=ABCD 12491 12492 case $build_os in 12493 msdosdjgpp*) 12494 # On DJGPP, this test can blow up pretty badly due to problems in libc 12495 # (any single argument exceeding 2000 bytes causes a buffer overrun 12496 # during glob expansion). Even if it were fixed, the result of this 12497 # check would be larger than it should be. 12498 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12499 ;; 12500 12501 gnu* | ironclad*) 12502 # Under GNU Hurd and Ironclad, this test is not required because there 12503 # is no limit to the length of command line arguments. 12504 # Libtool will interpret -1 as no limit whatsoever 12505 lt_cv_sys_max_cmd_len=-1; 12506 ;; 12507 12508 cygwin* | mingw* | windows* | cegcc*) 12509 # On Win9x/ME, this test blows up -- it succeeds, but takes 12510 # about 5 minutes as the teststring grows exponentially. 12511 # Worse, since 9x/ME are not pre-emptively multitasking, 12512 # you end up with a "frozen" computer, even though with patience 12513 # the test eventually succeeds (with a max line length of 256k). 12514 # Instead, let's just punt: use the minimum linelength reported by 12515 # all of the supported platforms: 8192 (on NT/2K/XP). 12516 lt_cv_sys_max_cmd_len=8192; 12517 ;; 12518 12519 mint*) 12520 # On MiNT this can take a long time and run out of memory. 12521 lt_cv_sys_max_cmd_len=8192; 12522 ;; 12523 12524 amigaos*) 12525 # On AmigaOS with pdksh, this test takes hours, literally. 12526 # So we just punt and use a minimum line length of 8192. 12527 lt_cv_sys_max_cmd_len=8192; 12528 ;; 12529 12530 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12531 # This has been around since 386BSD, at least. Likely further. 12532 if test -x /sbin/sysctl; then 12533 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12534 elif test -x /usr/sbin/sysctl; then 12535 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12536 else 12537 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12538 fi 12539 # And add a safety zone 12540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12542 ;; 12543 12544 interix*) 12545 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12546 lt_cv_sys_max_cmd_len=196608 12547 ;; 12548 12549 os2*) 12550 # The test takes a long time on OS/2. 12551 lt_cv_sys_max_cmd_len=8192 12552 ;; 12553 12554 osf*) 12555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12557 # nice to cause kernel panics so lets avoid the loop below. 12558 # First set a reasonable default. 12559 lt_cv_sys_max_cmd_len=16384 12560 # 12561 if test -x /sbin/sysconfig; then 12562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12563 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12564 esac 12565 fi 12566 ;; 12567 sco3.2v5*) 12568 lt_cv_sys_max_cmd_len=102400 12569 ;; 12570 sysv5* | sco5v6* | sysv4.2uw2*) 12571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12572 if test -n "$kargmax"; then 12573 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12574 else 12575 lt_cv_sys_max_cmd_len=32768 12576 fi 12577 ;; 12578 *) 12579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12580 if test -n "$lt_cv_sys_max_cmd_len" && \ 12581 test undefined != "$lt_cv_sys_max_cmd_len"; then 12582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12584 else 12585 # Make teststring a little bigger before we do anything with it. 12586 # a 1K string should be a reasonable start. 12587 for i in 1 2 3 4 5 6 7 8; do 12588 teststring=$teststring$teststring 12589 done 12590 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12591 # If test is not a shell built-in, we'll probably end up computing a 12592 # maximum length that is only half of the actual maximum length, but 12593 # we can't tell. 12594 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12595 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12596 test 17 != "$i" # 1/2 MB should be enough 12597 do 12598 i=`expr $i + 1` 12599 teststring=$teststring$teststring 12600 done 12601 # Only check the string length outside the loop. 12602 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12603 teststring= 12604 # Add a significant safety factor because C++ compilers can tack on 12605 # massive amounts of additional arguments before passing them to the 12606 # linker. It appears as though 1/2 is a usable value. 12607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12608 fi 12609 ;; 12610 esac 12611 ;; 12612 esac 12613 fi 12614 12615 if test -n "$lt_cv_sys_max_cmd_len"; then 12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12617 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12618 else 12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12620 printf "%s\n" "none" >&6; } 12621 fi 12622 max_cmd_len=$lt_cv_sys_max_cmd_len 12623 12624 12625 12626 12627 12628 12629 : ${CP="cp -f"} 12630 : ${MV="mv -f"} 12631 : ${RM="rm -f"} 12632 12633 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12634 lt_unset=unset 12635 else 12636 lt_unset=false 12637 fi 12638 12639 12640 12641 12642 12643 # test EBCDIC or ASCII 12644 case `echo X|tr X '\101'` in 12645 A) # ASCII based system 12646 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12647 lt_SP2NL='tr \040 \012' 12648 lt_NL2SP='tr \015\012 \040\040' 12649 ;; 12650 *) # EBCDIC based system 12651 lt_SP2NL='tr \100 \n' 12652 lt_NL2SP='tr \r\n \100\100' 12653 ;; 12654 esac 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12665 printf %s "checking how to convert $build file names to $host format... " >&6; } 12666 if test ${lt_cv_to_host_file_cmd+y} 12667 then : 12668 printf %s "(cached) " >&6 12669 else case e in #( 12670 e) case $host in 12671 *-*-mingw* ) 12672 case $build in 12673 *-*-mingw* | *-*-windows* ) # actually msys 12674 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12675 ;; 12676 *-*-cygwin* ) 12677 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12678 ;; 12679 * ) # otherwise, assume *nix 12680 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12681 ;; 12682 esac 12683 ;; 12684 *-*-cygwin* ) 12685 case $build in 12686 *-*-mingw* | *-*-windows* ) # actually msys 12687 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12688 ;; 12689 *-*-cygwin* ) 12690 lt_cv_to_host_file_cmd=func_convert_file_noop 12691 ;; 12692 * ) # otherwise, assume *nix 12693 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12694 ;; 12695 esac 12696 ;; 12697 * ) # unhandled hosts (and "normal" native builds) 12698 lt_cv_to_host_file_cmd=func_convert_file_noop 12699 ;; 12700 esac 12701 ;; 12702 esac 12703 fi 12704 12705 to_host_file_cmd=$lt_cv_to_host_file_cmd 12706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12707 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12708 12709 12710 12711 12712 12713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12714 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12715 if test ${lt_cv_to_tool_file_cmd+y} 12716 then : 12717 printf %s "(cached) " >&6 12718 else case e in #( 12719 e) #assume ordinary cross tools, or native build. 12720 lt_cv_to_tool_file_cmd=func_convert_file_noop 12721 case $host in 12722 *-*-mingw* | *-*-windows* ) 12723 case $build in 12724 *-*-mingw* | *-*-windows* ) # actually msys 12725 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12726 ;; 12727 esac 12728 ;; 12729 esac 12730 ;; 12731 esac 12732 fi 12733 12734 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12736 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12737 12738 12739 12740 12741 12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12743 printf %s "checking for $LD option to reload object files... " >&6; } 12744 if test ${lt_cv_ld_reload_flag+y} 12745 then : 12746 printf %s "(cached) " >&6 12747 else case e in #( 12748 e) lt_cv_ld_reload_flag='-r' ;; 12749 esac 12750 fi 12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12752 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12753 reload_flag=$lt_cv_ld_reload_flag 12754 case $reload_flag in 12755 "" | " "*) ;; 12756 *) reload_flag=" $reload_flag" ;; 12757 esac 12758 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12759 case $host_os in 12760 cygwin* | mingw* | windows* | pw32* | cegcc*) 12761 if test yes != "$GCC"; then 12762 reload_cmds=false 12763 fi 12764 ;; 12765 darwin*) 12766 if test yes = "$GCC"; then 12767 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12768 else 12769 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12770 fi 12771 ;; 12772 esac 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 # Extract the first word of "file", so it can be a program name with args. 12783 set dummy file; ac_word=$2 12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12785 printf %s "checking for $ac_word... " >&6; } 12786 if test ${ac_cv_prog_FILECMD+y} 12787 then : 12788 printf %s "(cached) " >&6 12789 else case e in #( 12790 e) if test -n "$FILECMD"; then 12791 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12792 else 12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12794 for as_dir in $PATH 12795 do 12796 IFS=$as_save_IFS 12797 case $as_dir in #((( 12798 '') as_dir=./ ;; 12799 */) ;; 12800 *) as_dir=$as_dir/ ;; 12801 esac 12802 for ac_exec_ext in '' $ac_executable_extensions; do 12803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12804 ac_cv_prog_FILECMD="file" 12805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12806 break 2 12807 fi 12808 done 12809 done 12810 IFS=$as_save_IFS 12811 12812 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 12813 fi ;; 12814 esac 12815 fi 12816 FILECMD=$ac_cv_prog_FILECMD 12817 if test -n "$FILECMD"; then 12818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12819 printf "%s\n" "$FILECMD" >&6; } 12820 else 12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12822 printf "%s\n" "no" >&6; } 12823 fi 12824 12825 12826 12827 12828 12829 12830 12831 12832 if test -n "$ac_tool_prefix"; then 12833 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12834 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12836 printf %s "checking for $ac_word... " >&6; } 12837 if test ${ac_cv_prog_OBJDUMP+y} 12838 then : 12839 printf %s "(cached) " >&6 12840 else case e in #( 12841 e) if test -n "$OBJDUMP"; then 12842 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12843 else 12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12845 for as_dir in $PATH 12846 do 12847 IFS=$as_save_IFS 12848 case $as_dir in #((( 12849 '') as_dir=./ ;; 12850 */) ;; 12851 *) as_dir=$as_dir/ ;; 12852 esac 12853 for ac_exec_ext in '' $ac_executable_extensions; do 12854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12855 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12857 break 2 12858 fi 12859 done 12860 done 12861 IFS=$as_save_IFS 12862 12863 fi ;; 12864 esac 12865 fi 12866 OBJDUMP=$ac_cv_prog_OBJDUMP 12867 if test -n "$OBJDUMP"; then 12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12869 printf "%s\n" "$OBJDUMP" >&6; } 12870 else 12871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12872 printf "%s\n" "no" >&6; } 12873 fi 12874 12875 12876 fi 12877 if test -z "$ac_cv_prog_OBJDUMP"; then 12878 ac_ct_OBJDUMP=$OBJDUMP 12879 # Extract the first word of "objdump", so it can be a program name with args. 12880 set dummy objdump; ac_word=$2 12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12882 printf %s "checking for $ac_word... " >&6; } 12883 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12884 then : 12885 printf %s "(cached) " >&6 12886 else case e in #( 12887 e) if test -n "$ac_ct_OBJDUMP"; then 12888 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12889 else 12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12891 for as_dir in $PATH 12892 do 12893 IFS=$as_save_IFS 12894 case $as_dir in #((( 12895 '') as_dir=./ ;; 12896 */) ;; 12897 *) as_dir=$as_dir/ ;; 12898 esac 12899 for ac_exec_ext in '' $ac_executable_extensions; do 12900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12901 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12903 break 2 12904 fi 12905 done 12906 done 12907 IFS=$as_save_IFS 12908 12909 fi ;; 12910 esac 12911 fi 12912 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12913 if test -n "$ac_ct_OBJDUMP"; then 12914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12915 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12916 else 12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12918 printf "%s\n" "no" >&6; } 12919 fi 12920 12921 if test "x$ac_ct_OBJDUMP" = x; then 12922 OBJDUMP="false" 12923 else 12924 case $cross_compiling:$ac_tool_warned in 12925 yes:) 12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12927 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12928 ac_tool_warned=yes ;; 12929 esac 12930 OBJDUMP=$ac_ct_OBJDUMP 12931 fi 12932 else 12933 OBJDUMP="$ac_cv_prog_OBJDUMP" 12934 fi 12935 12936 test -z "$OBJDUMP" && OBJDUMP=objdump 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12947 printf %s "checking how to recognize dependent libraries... " >&6; } 12948 if test ${lt_cv_deplibs_check_method+y} 12949 then : 12950 printf %s "(cached) " >&6 12951 else case e in #( 12952 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 12953 lt_cv_file_magic_test_file= 12954 lt_cv_deplibs_check_method='unknown' 12955 # Need to set the preceding variable on all platforms that support 12956 # interlibrary dependencies. 12957 # 'none' -- dependencies not supported. 12958 # 'unknown' -- same as none, but documents that we really don't know. 12959 # 'pass_all' -- all dependencies passed with no checks. 12960 # 'file_magic [[regex]]' -- check by looking for files in library path 12961 # that responds to the $file_magic_cmd with a given extended regex. 12962 # If you have 'file' or equivalent on your system and you're not sure 12963 # whether 'pass_all' will *always* work, you probably want this one. 12964 12965 case $host_os in 12966 aix[4-9]*) 12967 lt_cv_deplibs_check_method=pass_all 12968 ;; 12969 12970 beos*) 12971 lt_cv_deplibs_check_method=pass_all 12972 ;; 12973 12974 bsdi[45]*) 12975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12976 lt_cv_file_magic_cmd='$FILECMD -L' 12977 lt_cv_file_magic_test_file=/shlib/libc.so 12978 ;; 12979 12980 cygwin*) 12981 # func_win32_libid is a shell function defined in ltmain.sh 12982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12983 lt_cv_file_magic_cmd='func_win32_libid' 12984 ;; 12985 12986 mingw* | windows* | pw32*) 12987 # Base MSYS/MinGW do not provide the 'file' command needed by 12988 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12989 # unless we find 'file', for example because we are cross-compiling. 12990 if ( file / ) >/dev/null 2>&1; then 12991 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12992 lt_cv_file_magic_cmd='func_win32_libid' 12993 else 12994 # Keep this pattern in sync with the one in func_win32_libid. 12995 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 12996 lt_cv_file_magic_cmd='$OBJDUMP -f' 12997 fi 12998 ;; 12999 13000 cegcc*) 13001 # use the weaker test based on 'objdump'. See mingw*. 13002 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 13003 lt_cv_file_magic_cmd='$OBJDUMP -f' 13004 ;; 13005 13006 darwin* | rhapsody*) 13007 lt_cv_deplibs_check_method=pass_all 13008 ;; 13009 13010 freebsd* | dragonfly* | midnightbsd*) 13011 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13012 case $host_cpu in 13013 i*86 ) 13014 # Not sure whether the presence of OpenBSD here was a mistake. 13015 # Let's accept both of them until this is cleared up. 13016 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 13017 lt_cv_file_magic_cmd=$FILECMD 13018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 13019 ;; 13020 esac 13021 else 13022 lt_cv_deplibs_check_method=pass_all 13023 fi 13024 ;; 13025 13026 haiku*) 13027 lt_cv_deplibs_check_method=pass_all 13028 ;; 13029 13030 hpux10.20* | hpux11*) 13031 lt_cv_file_magic_cmd=$FILECMD 13032 case $host_cpu in 13033 ia64*) 13034 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13035 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13036 ;; 13037 hppa*64*) 13038 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]' 13039 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13040 ;; 13041 *) 13042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13043 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13044 ;; 13045 esac 13046 ;; 13047 13048 interix[3-9]*) 13049 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 13050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 13051 ;; 13052 13053 irix5* | irix6* | nonstopux*) 13054 case $LD in 13055 *-32|*"-32 ") libmagic=32-bit;; 13056 *-n32|*"-n32 ") libmagic=N32;; 13057 *-64|*"-64 ") libmagic=64-bit;; 13058 *) libmagic=never-match;; 13059 esac 13060 lt_cv_deplibs_check_method=pass_all 13061 ;; 13062 13063 # This must be glibc/ELF. 13064 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13065 lt_cv_deplibs_check_method=pass_all 13066 ;; 13067 13068 *-mlibc) 13069 lt_cv_deplibs_check_method=pass_all 13070 ;; 13071 13072 netbsd* | netbsdelf*-gnu) 13073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13075 else 13076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 13077 fi 13078 ;; 13079 13080 newos6*) 13081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 13082 lt_cv_file_magic_cmd=$FILECMD 13083 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13084 ;; 13085 13086 *nto* | *qnx*) 13087 lt_cv_deplibs_check_method=pass_all 13088 ;; 13089 13090 openbsd*) 13091 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13093 else 13094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13095 fi 13096 ;; 13097 13098 osf3* | osf4* | osf5*) 13099 lt_cv_deplibs_check_method=pass_all 13100 ;; 13101 13102 rdos*) 13103 lt_cv_deplibs_check_method=pass_all 13104 ;; 13105 13106 serenity*) 13107 lt_cv_deplibs_check_method=pass_all 13108 ;; 13109 13110 solaris*) 13111 lt_cv_deplibs_check_method=pass_all 13112 ;; 13113 13114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13115 lt_cv_deplibs_check_method=pass_all 13116 ;; 13117 13118 sysv4 | sysv4.3*) 13119 case $host_vendor in 13120 motorola) 13121 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]' 13122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13123 ;; 13124 ncr) 13125 lt_cv_deplibs_check_method=pass_all 13126 ;; 13127 sequent) 13128 lt_cv_file_magic_cmd='/bin/file' 13129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13130 ;; 13131 sni) 13132 lt_cv_file_magic_cmd='/bin/file' 13133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13134 lt_cv_file_magic_test_file=/lib/libc.so 13135 ;; 13136 siemens) 13137 lt_cv_deplibs_check_method=pass_all 13138 ;; 13139 pc) 13140 lt_cv_deplibs_check_method=pass_all 13141 ;; 13142 esac 13143 ;; 13144 13145 tpf*) 13146 lt_cv_deplibs_check_method=pass_all 13147 ;; 13148 os2*) 13149 lt_cv_deplibs_check_method=pass_all 13150 ;; 13151 esac 13152 ;; 13153 esac 13154 fi 13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13156 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 13157 13158 file_magic_glob= 13159 want_nocaseglob=no 13160 if test "$build" = "$host"; then 13161 case $host_os in 13162 mingw* | windows* | pw32*) 13163 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13164 want_nocaseglob=yes 13165 else 13166 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13167 fi 13168 ;; 13169 esac 13170 fi 13171 13172 file_magic_cmd=$lt_cv_file_magic_cmd 13173 deplibs_check_method=$lt_cv_deplibs_check_method 13174 test -z "$deplibs_check_method" && deplibs_check_method=unknown 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 if test -n "$ac_tool_prefix"; then 13198 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13199 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13201 printf %s "checking for $ac_word... " >&6; } 13202 if test ${ac_cv_prog_DLLTOOL+y} 13203 then : 13204 printf %s "(cached) " >&6 13205 else case e in #( 13206 e) if test -n "$DLLTOOL"; then 13207 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13208 else 13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13210 for as_dir in $PATH 13211 do 13212 IFS=$as_save_IFS 13213 case $as_dir in #((( 13214 '') as_dir=./ ;; 13215 */) ;; 13216 *) as_dir=$as_dir/ ;; 13217 esac 13218 for ac_exec_ext in '' $ac_executable_extensions; do 13219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13220 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13222 break 2 13223 fi 13224 done 13225 done 13226 IFS=$as_save_IFS 13227 13228 fi ;; 13229 esac 13230 fi 13231 DLLTOOL=$ac_cv_prog_DLLTOOL 13232 if test -n "$DLLTOOL"; then 13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13234 printf "%s\n" "$DLLTOOL" >&6; } 13235 else 13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13237 printf "%s\n" "no" >&6; } 13238 fi 13239 13240 13241 fi 13242 if test -z "$ac_cv_prog_DLLTOOL"; then 13243 ac_ct_DLLTOOL=$DLLTOOL 13244 # Extract the first word of "dlltool", so it can be a program name with args. 13245 set dummy dlltool; ac_word=$2 13246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13247 printf %s "checking for $ac_word... " >&6; } 13248 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 13249 then : 13250 printf %s "(cached) " >&6 13251 else case e in #( 13252 e) if test -n "$ac_ct_DLLTOOL"; then 13253 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13254 else 13255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13256 for as_dir in $PATH 13257 do 13258 IFS=$as_save_IFS 13259 case $as_dir in #((( 13260 '') as_dir=./ ;; 13261 */) ;; 13262 *) as_dir=$as_dir/ ;; 13263 esac 13264 for ac_exec_ext in '' $ac_executable_extensions; do 13265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13266 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13268 break 2 13269 fi 13270 done 13271 done 13272 IFS=$as_save_IFS 13273 13274 fi ;; 13275 esac 13276 fi 13277 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13278 if test -n "$ac_ct_DLLTOOL"; then 13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13280 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 13281 else 13282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13283 printf "%s\n" "no" >&6; } 13284 fi 13285 13286 if test "x$ac_ct_DLLTOOL" = x; then 13287 DLLTOOL="false" 13288 else 13289 case $cross_compiling:$ac_tool_warned in 13290 yes:) 13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13293 ac_tool_warned=yes ;; 13294 esac 13295 DLLTOOL=$ac_ct_DLLTOOL 13296 fi 13297 else 13298 DLLTOOL="$ac_cv_prog_DLLTOOL" 13299 fi 13300 13301 test -z "$DLLTOOL" && DLLTOOL=dlltool 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13313 printf %s "checking how to associate runtime and link libraries... " >&6; } 13314 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 13315 then : 13316 printf %s "(cached) " >&6 13317 else case e in #( 13318 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 13319 13320 case $host_os in 13321 cygwin* | mingw* | windows* | pw32* | cegcc*) 13322 # two different shell functions defined in ltmain.sh; 13323 # decide which one to use based on capabilities of $DLLTOOL 13324 case `$DLLTOOL --help 2>&1` in 13325 *--identify-strict*) 13326 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13327 ;; 13328 *) 13329 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13330 ;; 13331 esac 13332 ;; 13333 *) 13334 # fallback: assume linklib IS sharedlib 13335 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13336 ;; 13337 esac 13338 ;; 13339 esac 13340 fi 13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13342 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13343 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13344 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13345 13346 13347 13348 13349 13350 13351 13352 if test -n "$ac_tool_prefix"; then 13353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13354 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13356 printf %s "checking for $ac_word... " >&6; } 13357 if test ${ac_cv_prog_RANLIB+y} 13358 then : 13359 printf %s "(cached) " >&6 13360 else case e in #( 13361 e) if test -n "$RANLIB"; then 13362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13363 else 13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13365 for as_dir in $PATH 13366 do 13367 IFS=$as_save_IFS 13368 case $as_dir in #((( 13369 '') as_dir=./ ;; 13370 */) ;; 13371 *) as_dir=$as_dir/ ;; 13372 esac 13373 for ac_exec_ext in '' $ac_executable_extensions; do 13374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13375 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13377 break 2 13378 fi 13379 done 13380 done 13381 IFS=$as_save_IFS 13382 13383 fi ;; 13384 esac 13385 fi 13386 RANLIB=$ac_cv_prog_RANLIB 13387 if test -n "$RANLIB"; then 13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13389 printf "%s\n" "$RANLIB" >&6; } 13390 else 13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13392 printf "%s\n" "no" >&6; } 13393 fi 13394 13395 13396 fi 13397 if test -z "$ac_cv_prog_RANLIB"; then 13398 ac_ct_RANLIB=$RANLIB 13399 # Extract the first word of "ranlib", so it can be a program name with args. 13400 set dummy ranlib; 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_RANLIB+y} 13404 then : 13405 printf %s "(cached) " >&6 13406 else case e in #( 13407 e) if test -n "$ac_ct_RANLIB"; then 13408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib" 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_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13433 if test -n "$ac_ct_RANLIB"; then 13434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13435 printf "%s\n" "$ac_ct_RANLIB" >&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 if test "x$ac_ct_RANLIB" = x; then 13442 RANLIB=":" 13443 else 13444 case $cross_compiling:$ac_tool_warned in 13445 yes:) 13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13447 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13448 ac_tool_warned=yes ;; 13449 esac 13450 RANLIB=$ac_ct_RANLIB 13451 fi 13452 else 13453 RANLIB="$ac_cv_prog_RANLIB" 13454 fi 13455 13456 if test -n "$ac_tool_prefix"; then 13457 for ac_prog in ar 13458 do 13459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13462 printf %s "checking for $ac_word... " >&6; } 13463 if test ${ac_cv_prog_AR+y} 13464 then : 13465 printf %s "(cached) " >&6 13466 else case e in #( 13467 e) if test -n "$AR"; then 13468 ac_cv_prog_AR="$AR" # Let the user override the test. 13469 else 13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13471 for as_dir in $PATH 13472 do 13473 IFS=$as_save_IFS 13474 case $as_dir in #((( 13475 '') as_dir=./ ;; 13476 */) ;; 13477 *) as_dir=$as_dir/ ;; 13478 esac 13479 for ac_exec_ext in '' $ac_executable_extensions; do 13480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13481 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13483 break 2 13484 fi 13485 done 13486 done 13487 IFS=$as_save_IFS 13488 13489 fi ;; 13490 esac 13491 fi 13492 AR=$ac_cv_prog_AR 13493 if test -n "$AR"; then 13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13495 printf "%s\n" "$AR" >&6; } 13496 else 13497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13498 printf "%s\n" "no" >&6; } 13499 fi 13500 13501 13502 test -n "$AR" && break 13503 done 13504 fi 13505 if test -z "$AR"; then 13506 ac_ct_AR=$AR 13507 for ac_prog in ar 13508 do 13509 # Extract the first word of "$ac_prog", so it can be a program name with args. 13510 set dummy $ac_prog; ac_word=$2 13511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13512 printf %s "checking for $ac_word... " >&6; } 13513 if test ${ac_cv_prog_ac_ct_AR+y} 13514 then : 13515 printf %s "(cached) " >&6 13516 else case e in #( 13517 e) if test -n "$ac_ct_AR"; then 13518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13519 else 13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13521 for as_dir in $PATH 13522 do 13523 IFS=$as_save_IFS 13524 case $as_dir in #((( 13525 '') as_dir=./ ;; 13526 */) ;; 13527 *) as_dir=$as_dir/ ;; 13528 esac 13529 for ac_exec_ext in '' $ac_executable_extensions; do 13530 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13531 ac_cv_prog_ac_ct_AR="$ac_prog" 13532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13533 break 2 13534 fi 13535 done 13536 done 13537 IFS=$as_save_IFS 13538 13539 fi ;; 13540 esac 13541 fi 13542 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13543 if test -n "$ac_ct_AR"; then 13544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13545 printf "%s\n" "$ac_ct_AR" >&6; } 13546 else 13547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13548 printf "%s\n" "no" >&6; } 13549 fi 13550 13551 13552 test -n "$ac_ct_AR" && break 13553 done 13554 13555 if test "x$ac_ct_AR" = x; then 13556 AR="false" 13557 else 13558 case $cross_compiling:$ac_tool_warned in 13559 yes:) 13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13561 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13562 ac_tool_warned=yes ;; 13563 esac 13564 AR=$ac_ct_AR 13565 fi 13566 fi 13567 13568 : ${AR=ar} 13569 13570 13571 13572 13573 13574 13575 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 13576 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13577 # higher priority because that's what people were doing historically (setting 13578 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13579 # variable obsoleted/removed. 13580 13581 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13582 lt_ar_flags=$AR_FLAGS 13583 13584 13585 13586 13587 13588 13589 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13590 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13591 13592 13593 13594 13595 13596 13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13598 printf %s "checking for archiver @FILE support... " >&6; } 13599 if test ${lt_cv_ar_at_file+y} 13600 then : 13601 printf %s "(cached) " >&6 13602 else case e in #( 13603 e) lt_cv_ar_at_file=no 13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13605 /* end confdefs.h. */ 13606 13607 int 13608 main (void) 13609 { 13610 13611 ; 13612 return 0; 13613 } 13614 _ACEOF 13615 if ac_fn_c_try_compile "$LINENO" 13616 then : 13617 echo conftest.$ac_objext > conftest.lst 13618 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13620 (eval $lt_ar_try) 2>&5 13621 ac_status=$? 13622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13623 test $ac_status = 0; } 13624 if test 0 -eq "$ac_status"; then 13625 # Ensure the archiver fails upon bogus file names. 13626 rm -f conftest.$ac_objext libconftest.a 13627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13628 (eval $lt_ar_try) 2>&5 13629 ac_status=$? 13630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13631 test $ac_status = 0; } 13632 if test 0 -ne "$ac_status"; then 13633 lt_cv_ar_at_file=@ 13634 fi 13635 fi 13636 rm -f conftest.* libconftest.a 13637 13638 fi 13639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13640 ;; 13641 esac 13642 fi 13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13644 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13645 13646 if test no = "$lt_cv_ar_at_file"; then 13647 archiver_list_spec= 13648 else 13649 archiver_list_spec=$lt_cv_ar_at_file 13650 fi 13651 13652 13653 13654 13655 13656 13657 13658 if test -n "$ac_tool_prefix"; then 13659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13660 set dummy ${ac_tool_prefix}strip; ac_word=$2 13661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13662 printf %s "checking for $ac_word... " >&6; } 13663 if test ${ac_cv_prog_STRIP+y} 13664 then : 13665 printf %s "(cached) " >&6 13666 else case e in #( 13667 e) if test -n "$STRIP"; then 13668 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13669 else 13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13671 for as_dir in $PATH 13672 do 13673 IFS=$as_save_IFS 13674 case $as_dir in #((( 13675 '') as_dir=./ ;; 13676 */) ;; 13677 *) as_dir=$as_dir/ ;; 13678 esac 13679 for ac_exec_ext in '' $ac_executable_extensions; do 13680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13681 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13683 break 2 13684 fi 13685 done 13686 done 13687 IFS=$as_save_IFS 13688 13689 fi ;; 13690 esac 13691 fi 13692 STRIP=$ac_cv_prog_STRIP 13693 if test -n "$STRIP"; then 13694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13695 printf "%s\n" "$STRIP" >&6; } 13696 else 13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13698 printf "%s\n" "no" >&6; } 13699 fi 13700 13701 13702 fi 13703 if test -z "$ac_cv_prog_STRIP"; then 13704 ac_ct_STRIP=$STRIP 13705 # Extract the first word of "strip", so it can be a program name with args. 13706 set dummy strip; ac_word=$2 13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13708 printf %s "checking for $ac_word... " >&6; } 13709 if test ${ac_cv_prog_ac_ct_STRIP+y} 13710 then : 13711 printf %s "(cached) " >&6 13712 else case e in #( 13713 e) if test -n "$ac_ct_STRIP"; then 13714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13715 else 13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13717 for as_dir in $PATH 13718 do 13719 IFS=$as_save_IFS 13720 case $as_dir in #((( 13721 '') as_dir=./ ;; 13722 */) ;; 13723 *) as_dir=$as_dir/ ;; 13724 esac 13725 for ac_exec_ext in '' $ac_executable_extensions; do 13726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13727 ac_cv_prog_ac_ct_STRIP="strip" 13728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13729 break 2 13730 fi 13731 done 13732 done 13733 IFS=$as_save_IFS 13734 13735 fi ;; 13736 esac 13737 fi 13738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13739 if test -n "$ac_ct_STRIP"; then 13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13741 printf "%s\n" "$ac_ct_STRIP" >&6; } 13742 else 13743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13744 printf "%s\n" "no" >&6; } 13745 fi 13746 13747 if test "x$ac_ct_STRIP" = x; then 13748 STRIP=":" 13749 else 13750 case $cross_compiling:$ac_tool_warned in 13751 yes:) 13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13753 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13754 ac_tool_warned=yes ;; 13755 esac 13756 STRIP=$ac_ct_STRIP 13757 fi 13758 else 13759 STRIP="$ac_cv_prog_STRIP" 13760 fi 13761 13762 test -z "$STRIP" && STRIP=: 13763 13764 13765 13766 13767 13768 13769 13770 test -z "$RANLIB" && RANLIB=: 13771 13772 13773 13774 13775 13776 13777 # Determine commands to create old-style static archives. 13778 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13779 old_postinstall_cmds='chmod 644 $oldlib' 13780 old_postuninstall_cmds= 13781 13782 if test -n "$RANLIB"; then 13783 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13784 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13785 fi 13786 13787 case $host_os in 13788 darwin*) 13789 lock_old_archive_extraction=yes ;; 13790 *) 13791 lock_old_archive_extraction=no ;; 13792 esac 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 # If no C compiler was specified, use CC. 13833 LTCC=${LTCC-"$CC"} 13834 13835 # If no C compiler flags were specified, use CFLAGS. 13836 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13837 13838 # Allow CC to be a program name with arguments. 13839 compiler=$CC 13840 13841 13842 # Check for command to grab the raw symbol name followed by C symbol from nm. 13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13844 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13845 if test ${lt_cv_sys_global_symbol_pipe+y} 13846 then : 13847 printf %s "(cached) " >&6 13848 else case e in #( 13849 e) 13850 # These are sane defaults that work on at least a few old systems. 13851 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13852 13853 # Character class describing NM global symbol codes. 13854 symcode='[BCDEGRST]' 13855 13856 # Regexp to match symbols that can be accessed directly from C. 13857 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13858 13859 # Define system-specific variables. 13860 case $host_os in 13861 aix*) 13862 symcode='[BCDT]' 13863 ;; 13864 cygwin* | mingw* | windows* | pw32* | cegcc*) 13865 symcode='[ABCDGISTW]' 13866 ;; 13867 hpux*) 13868 if test ia64 = "$host_cpu"; then 13869 symcode='[ABCDEGRST]' 13870 fi 13871 ;; 13872 irix* | nonstopux*) 13873 symcode='[BCDEGRST]' 13874 ;; 13875 osf*) 13876 symcode='[BCDEGQRST]' 13877 ;; 13878 solaris*) 13879 symcode='[BCDRT]' 13880 ;; 13881 sco3.2v5*) 13882 symcode='[DT]' 13883 ;; 13884 sysv4.2uw2*) 13885 symcode='[DT]' 13886 ;; 13887 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13888 symcode='[ABDT]' 13889 ;; 13890 sysv4) 13891 symcode='[DFNSTU]' 13892 ;; 13893 esac 13894 13895 # If we're using GNU nm, then use its standard symbol codes. 13896 case `$NM -V 2>&1` in 13897 *GNU* | *'with BFD'*) 13898 symcode='[ABCDGIRSTW]' ;; 13899 esac 13900 13901 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13902 # Gets list of data symbols to import. 13903 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13904 # Adjust the below global symbol transforms to fixup imported variables. 13905 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13906 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13907 lt_c_name_lib_hook="\ 13908 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13909 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13910 else 13911 # Disable hooks by default. 13912 lt_cv_sys_global_symbol_to_import= 13913 lt_cdecl_hook= 13914 lt_c_name_hook= 13915 lt_c_name_lib_hook= 13916 fi 13917 13918 # Transform an extracted symbol line into a proper C declaration. 13919 # Some systems (esp. on ia64) link data and code symbols differently, 13920 # so use this general approach. 13921 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13922 $lt_cdecl_hook\ 13923 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13924 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13925 13926 # Transform an extracted symbol line into symbol name and symbol address 13927 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13928 $lt_c_name_hook\ 13929 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13930 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13931 13932 # Transform an extracted symbol line into symbol name with lib prefix and 13933 # symbol address. 13934 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13935 $lt_c_name_lib_hook\ 13936 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13937 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13938 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13939 13940 # Handle CRLF in mingw tool chain 13941 opt_cr= 13942 case $build_os in 13943 mingw* | windows*) 13944 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13945 ;; 13946 esac 13947 13948 # Try without a prefix underscore, then with it. 13949 for ac_symprfx in "" "_"; do 13950 13951 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13952 symxfrm="\\1 $ac_symprfx\\2 \\2" 13953 13954 # Write the raw and C identifiers. 13955 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13956 # Fake it for dumpbin and say T for any non-static function, 13957 # D for any global variable and I for any imported variable. 13958 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13959 # which start with @ or ?. 13960 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13961 " {last_section=section; section=\$ 3};"\ 13962 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13963 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13964 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13965 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13966 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13967 " \$ 0!~/External *\|/{next};"\ 13968 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13969 " {if(hide[section]) next};"\ 13970 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13971 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13972 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13973 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13974 " ' prfx=^$ac_symprfx" 13975 else 13976 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13977 fi 13978 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13979 13980 # Check to see that the pipe works correctly. 13981 pipe_works=no 13982 13983 rm -f conftest* 13984 cat > conftest.$ac_ext <<_LT_EOF 13985 #ifdef __cplusplus 13986 extern "C" { 13987 #endif 13988 char nm_test_var; 13989 void nm_test_func(void); 13990 void nm_test_func(void){} 13991 #ifdef __cplusplus 13992 } 13993 #endif 13994 int main(void){nm_test_var='a';nm_test_func();return(0);} 13995 _LT_EOF 13996 13997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13998 (eval $ac_compile) 2>&5 13999 ac_status=$? 14000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14001 test $ac_status = 0; }; then 14002 # Now try to grab the symbols. 14003 nlist=conftest.nm 14004 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 14005 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 14006 # Try sorting and uniquifying the output. 14007 if sort "$nlist" | uniq > "$nlist"T; then 14008 mv -f "$nlist"T "$nlist" 14009 else 14010 rm -f "$nlist"T 14011 fi 14012 14013 # Make sure that we snagged all the symbols we need. 14014 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 14015 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 14016 cat <<_LT_EOF > conftest.$ac_ext 14017 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 14018 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 14019 /* DATA imports from DLLs on WIN32 can't be const, because runtime 14020 relocations are performed -- see ld's documentation on pseudo-relocs. */ 14021 # define LT_DLSYM_CONST 14022 #elif defined __osf__ 14023 /* This system does not cope well with relocations in const data. */ 14024 # define LT_DLSYM_CONST 14025 #else 14026 # define LT_DLSYM_CONST const 14027 #endif 14028 14029 #ifdef __cplusplus 14030 extern "C" { 14031 #endif 14032 14033 _LT_EOF 14034 # Now generate the symbol file. 14035 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 14036 14037 cat <<_LT_EOF >> conftest.$ac_ext 14038 14039 /* The mapping between symbol names and symbols. */ 14040 LT_DLSYM_CONST struct { 14041 const char *name; 14042 void *address; 14043 } 14044 lt__PROGRAM__LTX_preloaded_symbols[] = 14045 { 14046 { "@PROGRAM@", (void *) 0 }, 14047 _LT_EOF 14048 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 14049 cat <<\_LT_EOF >> conftest.$ac_ext 14050 {0, (void *) 0} 14051 }; 14052 14053 /* This works around a problem in FreeBSD linker */ 14054 #ifdef FREEBSD_WORKAROUND 14055 static const void *lt_preloaded_setup() { 14056 return lt__PROGRAM__LTX_preloaded_symbols; 14057 } 14058 #endif 14059 14060 #ifdef __cplusplus 14061 } 14062 #endif 14063 _LT_EOF 14064 # Now try linking the two files. 14065 mv conftest.$ac_objext conftstm.$ac_objext 14066 lt_globsym_save_LIBS=$LIBS 14067 lt_globsym_save_CFLAGS=$CFLAGS 14068 LIBS=conftstm.$ac_objext 14069 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14071 (eval $ac_link) 2>&5 14072 ac_status=$? 14073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14074 test $ac_status = 0; } && test -s conftest$ac_exeext; then 14075 pipe_works=yes 14076 fi 14077 LIBS=$lt_globsym_save_LIBS 14078 CFLAGS=$lt_globsym_save_CFLAGS 14079 else 14080 echo "cannot find nm_test_func in $nlist" >&5 14081 fi 14082 else 14083 echo "cannot find nm_test_var in $nlist" >&5 14084 fi 14085 else 14086 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14087 fi 14088 else 14089 echo "$progname: failed program was:" >&5 14090 cat conftest.$ac_ext >&5 14091 fi 14092 rm -rf conftest* conftst* 14093 14094 # Do not use the global_symbol_pipe unless it works. 14095 if test yes = "$pipe_works"; then 14096 break 14097 else 14098 lt_cv_sys_global_symbol_pipe= 14099 fi 14100 done 14101 ;; 14102 esac 14103 fi 14104 14105 if test -z "$lt_cv_sys_global_symbol_pipe"; then 14106 lt_cv_sys_global_symbol_to_cdecl= 14107 fi 14108 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14110 printf "%s\n" "failed" >&6; } 14111 else 14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14113 printf "%s\n" "ok" >&6; } 14114 fi 14115 14116 # Response file support. 14117 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14118 nm_file_list_spec='@' 14119 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14120 nm_file_list_spec='@' 14121 fi 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14160 printf %s "checking for sysroot... " >&6; } 14161 14162 # Check whether --with-sysroot was given. 14163 if test ${with_sysroot+y} 14164 then : 14165 withval=$with_sysroot; 14166 else case e in #( 14167 e) with_sysroot=no ;; 14168 esac 14169 fi 14170 14171 14172 lt_sysroot= 14173 case $with_sysroot in #( 14174 yes) 14175 if test yes = "$GCC"; then 14176 # Trim trailing / since we'll always append absolute paths and we want 14177 # to avoid //, if only for less confusing output for the user. 14178 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 14179 fi 14180 ;; #( 14181 /*) 14182 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 14183 ;; #( 14184 no|'') 14185 ;; #( 14186 *) 14187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14188 printf "%s\n" "$with_sysroot" >&6; } 14189 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14190 ;; 14191 esac 14192 14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14194 printf "%s\n" "${lt_sysroot:-no}" >&6; } 14195 14196 14197 14198 14199 14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14201 printf %s "checking for a working dd... " >&6; } 14202 if test ${ac_cv_path_lt_DD+y} 14203 then : 14204 printf %s "(cached) " >&6 14205 else case e in #( 14206 e) printf 0123456789abcdef0123456789abcdef >conftest.i 14207 cat conftest.i conftest.i >conftest2.i 14208 : ${lt_DD:=$DD} 14209 if test -z "$lt_DD"; then 14210 ac_path_lt_DD_found=false 14211 # Loop through the user's path and test for each of PROGNAME-LIST 14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14213 for as_dir in $PATH 14214 do 14215 IFS=$as_save_IFS 14216 case $as_dir in #((( 14217 '') as_dir=./ ;; 14218 */) ;; 14219 *) as_dir=$as_dir/ ;; 14220 esac 14221 for ac_prog in dd 14222 do 14223 for ac_exec_ext in '' $ac_executable_extensions; do 14224 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 14225 as_fn_executable_p "$ac_path_lt_DD" || continue 14226 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14227 cmp -s conftest.i conftest.out \ 14228 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14229 fi 14230 $ac_path_lt_DD_found && break 3 14231 done 14232 done 14233 done 14234 IFS=$as_save_IFS 14235 if test -z "$ac_cv_path_lt_DD"; then 14236 : 14237 fi 14238 else 14239 ac_cv_path_lt_DD=$lt_DD 14240 fi 14241 14242 rm -f conftest.i conftest2.i conftest.out ;; 14243 esac 14244 fi 14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14246 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 14247 14248 14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14250 printf %s "checking how to truncate binary pipes... " >&6; } 14251 if test ${lt_cv_truncate_bin+y} 14252 then : 14253 printf %s "(cached) " >&6 14254 else case e in #( 14255 e) printf 0123456789abcdef0123456789abcdef >conftest.i 14256 cat conftest.i conftest.i >conftest2.i 14257 lt_cv_truncate_bin= 14258 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14259 cmp -s conftest.i conftest.out \ 14260 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14261 fi 14262 rm -f conftest.i conftest2.i conftest.out 14263 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 14264 esac 14265 fi 14266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14267 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 14268 14269 14270 14271 14272 14273 14274 14275 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14276 func_cc_basename () 14277 { 14278 for cc_temp in $*""; do 14279 case $cc_temp in 14280 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14281 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14282 \-*) ;; 14283 *) break;; 14284 esac 14285 done 14286 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14287 } 14288 14289 # Check whether --enable-libtool-lock was given. 14290 if test ${enable_libtool_lock+y} 14291 then : 14292 enableval=$enable_libtool_lock; 14293 fi 14294 14295 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14296 14297 # Some flags need to be propagated to the compiler or linker for good 14298 # libtool support. 14299 case $host in 14300 ia64-*-hpux*) 14301 # Find out what ABI is being produced by ac_compile, and set mode 14302 # options accordingly. 14303 echo 'int i;' > conftest.$ac_ext 14304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14305 (eval $ac_compile) 2>&5 14306 ac_status=$? 14307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14308 test $ac_status = 0; }; then 14309 case `$FILECMD conftest.$ac_objext` in 14310 *ELF-32*) 14311 HPUX_IA64_MODE=32 14312 ;; 14313 *ELF-64*) 14314 HPUX_IA64_MODE=64 14315 ;; 14316 esac 14317 fi 14318 rm -rf conftest* 14319 ;; 14320 *-*-irix6*) 14321 # Find out what ABI is being produced by ac_compile, and set linker 14322 # options accordingly. 14323 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14325 (eval $ac_compile) 2>&5 14326 ac_status=$? 14327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14328 test $ac_status = 0; }; then 14329 if test yes = "$lt_cv_prog_gnu_ld"; then 14330 case `$FILECMD conftest.$ac_objext` in 14331 *32-bit*) 14332 LD="${LD-ld} -melf32bsmip" 14333 ;; 14334 *N32*) 14335 LD="${LD-ld} -melf32bmipn32" 14336 ;; 14337 *64-bit*) 14338 LD="${LD-ld} -melf64bmip" 14339 ;; 14340 esac 14341 else 14342 case `$FILECMD conftest.$ac_objext` in 14343 *32-bit*) 14344 LD="${LD-ld} -32" 14345 ;; 14346 *N32*) 14347 LD="${LD-ld} -n32" 14348 ;; 14349 *64-bit*) 14350 LD="${LD-ld} -64" 14351 ;; 14352 esac 14353 fi 14354 fi 14355 rm -rf conftest* 14356 ;; 14357 14358 mips64*-*linux*) 14359 # Find out what ABI is being produced by ac_compile, and set linker 14360 # options accordingly. 14361 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14363 (eval $ac_compile) 2>&5 14364 ac_status=$? 14365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14366 test $ac_status = 0; }; then 14367 emul=elf 14368 case `$FILECMD conftest.$ac_objext` in 14369 *32-bit*) 14370 emul="${emul}32" 14371 ;; 14372 *64-bit*) 14373 emul="${emul}64" 14374 ;; 14375 esac 14376 case `$FILECMD conftest.$ac_objext` in 14377 *MSB*) 14378 emul="${emul}btsmip" 14379 ;; 14380 *LSB*) 14381 emul="${emul}ltsmip" 14382 ;; 14383 esac 14384 case `$FILECMD conftest.$ac_objext` in 14385 *N32*) 14386 emul="${emul}n32" 14387 ;; 14388 esac 14389 LD="${LD-ld} -m $emul" 14390 fi 14391 rm -rf conftest* 14392 ;; 14393 14394 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14395 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 14396 # Find out what ABI is being produced by ac_compile, and set linker 14397 # options accordingly. Note that the listed cases only cover the 14398 # situations where additional linker options are needed (such as when 14399 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14400 # vice versa); the common cases where no linker options are needed do 14401 # not appear in the list. 14402 echo 'int i;' > conftest.$ac_ext 14403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14404 (eval $ac_compile) 2>&5 14405 ac_status=$? 14406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14407 test $ac_status = 0; }; then 14408 case `$FILECMD conftest.o` in 14409 *32-bit*) 14410 case $host in 14411 x86_64-*kfreebsd*-gnu) 14412 LD="${LD-ld} -m elf_i386_fbsd" 14413 ;; 14414 x86_64-*linux*|x86_64-gnu*) 14415 case `$FILECMD conftest.o` in 14416 *x86-64*) 14417 LD="${LD-ld} -m elf32_x86_64" 14418 ;; 14419 *) 14420 LD="${LD-ld} -m elf_i386" 14421 ;; 14422 esac 14423 ;; 14424 powerpc64le-*linux*) 14425 LD="${LD-ld} -m elf32lppclinux" 14426 ;; 14427 powerpc64-*linux*) 14428 LD="${LD-ld} -m elf32ppclinux" 14429 ;; 14430 s390x-*linux*) 14431 LD="${LD-ld} -m elf_s390" 14432 ;; 14433 sparc64-*linux*) 14434 LD="${LD-ld} -m elf32_sparc" 14435 ;; 14436 esac 14437 ;; 14438 *64-bit*) 14439 case $host in 14440 x86_64-*kfreebsd*-gnu) 14441 LD="${LD-ld} -m elf_x86_64_fbsd" 14442 ;; 14443 x86_64-*linux*|x86_64-gnu*) 14444 LD="${LD-ld} -m elf_x86_64" 14445 ;; 14446 powerpcle-*linux*) 14447 LD="${LD-ld} -m elf64lppc" 14448 ;; 14449 powerpc-*linux*) 14450 LD="${LD-ld} -m elf64ppc" 14451 ;; 14452 s390*-*linux*|s390*-*tpf*) 14453 LD="${LD-ld} -m elf64_s390" 14454 ;; 14455 sparc*-*linux*) 14456 LD="${LD-ld} -m elf64_sparc" 14457 ;; 14458 esac 14459 ;; 14460 esac 14461 fi 14462 rm -rf conftest* 14463 ;; 14464 14465 *-*-sco3.2v5*) 14466 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14467 SAVE_CFLAGS=$CFLAGS 14468 CFLAGS="$CFLAGS -belf" 14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14470 printf %s "checking whether the C compiler needs -belf... " >&6; } 14471 if test ${lt_cv_cc_needs_belf+y} 14472 then : 14473 printf %s "(cached) " >&6 14474 else case e in #( 14475 e) ac_ext=c 14476 ac_cpp='$CPP $CPPFLAGS' 14477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14479 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14480 14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14482 /* end confdefs.h. */ 14483 14484 int 14485 main (void) 14486 { 14487 14488 ; 14489 return 0; 14490 } 14491 _ACEOF 14492 if ac_fn_c_try_link "$LINENO" 14493 then : 14494 lt_cv_cc_needs_belf=yes 14495 else case e in #( 14496 e) lt_cv_cc_needs_belf=no ;; 14497 esac 14498 fi 14499 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14500 conftest$ac_exeext conftest.$ac_ext 14501 ac_ext=c 14502 ac_cpp='$CPP $CPPFLAGS' 14503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14505 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14506 ;; 14507 esac 14508 fi 14509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14510 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14511 if test yes != "$lt_cv_cc_needs_belf"; then 14512 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14513 CFLAGS=$SAVE_CFLAGS 14514 fi 14515 ;; 14516 *-*solaris*) 14517 # Find out what ABI is being produced by ac_compile, and set linker 14518 # options accordingly. 14519 echo 'int i;' > conftest.$ac_ext 14520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14521 (eval $ac_compile) 2>&5 14522 ac_status=$? 14523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14524 test $ac_status = 0; }; then 14525 case `$FILECMD conftest.o` in 14526 *64-bit*) 14527 case $lt_cv_prog_gnu_ld in 14528 yes*) 14529 case $host in 14530 i?86-*-solaris*|x86_64-*-solaris*) 14531 LD="${LD-ld} -m elf_x86_64" 14532 ;; 14533 sparc*-*-solaris*) 14534 LD="${LD-ld} -m elf64_sparc" 14535 ;; 14536 esac 14537 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14538 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14539 LD=${LD-ld}_sol2 14540 fi 14541 ;; 14542 *) 14543 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14544 LD="${LD-ld} -64" 14545 fi 14546 ;; 14547 esac 14548 ;; 14549 esac 14550 fi 14551 rm -rf conftest* 14552 ;; 14553 esac 14554 14555 need_locks=$enable_libtool_lock 14556 14557 if test -n "$ac_tool_prefix"; then 14558 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14559 set dummy ${ac_tool_prefix}mt; ac_word=$2 14560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14561 printf %s "checking for $ac_word... " >&6; } 14562 if test ${ac_cv_prog_MANIFEST_TOOL+y} 14563 then : 14564 printf %s "(cached) " >&6 14565 else case e in #( 14566 e) if test -n "$MANIFEST_TOOL"; then 14567 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14568 else 14569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14570 for as_dir in $PATH 14571 do 14572 IFS=$as_save_IFS 14573 case $as_dir in #((( 14574 '') as_dir=./ ;; 14575 */) ;; 14576 *) as_dir=$as_dir/ ;; 14577 esac 14578 for ac_exec_ext in '' $ac_executable_extensions; do 14579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14580 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14582 break 2 14583 fi 14584 done 14585 done 14586 IFS=$as_save_IFS 14587 14588 fi ;; 14589 esac 14590 fi 14591 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14592 if test -n "$MANIFEST_TOOL"; then 14593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14594 printf "%s\n" "$MANIFEST_TOOL" >&6; } 14595 else 14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14597 printf "%s\n" "no" >&6; } 14598 fi 14599 14600 14601 fi 14602 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14603 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14604 # Extract the first word of "mt", so it can be a program name with args. 14605 set dummy mt; ac_word=$2 14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14607 printf %s "checking for $ac_word... " >&6; } 14608 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14609 then : 14610 printf %s "(cached) " >&6 14611 else case e in #( 14612 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 14613 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14614 else 14615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14616 for as_dir in $PATH 14617 do 14618 IFS=$as_save_IFS 14619 case $as_dir in #((( 14620 '') as_dir=./ ;; 14621 */) ;; 14622 *) as_dir=$as_dir/ ;; 14623 esac 14624 for ac_exec_ext in '' $ac_executable_extensions; do 14625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14626 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14628 break 2 14629 fi 14630 done 14631 done 14632 IFS=$as_save_IFS 14633 14634 fi ;; 14635 esac 14636 fi 14637 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14638 if test -n "$ac_ct_MANIFEST_TOOL"; then 14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14640 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14641 else 14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14643 printf "%s\n" "no" >&6; } 14644 fi 14645 14646 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14647 MANIFEST_TOOL=":" 14648 else 14649 case $cross_compiling:$ac_tool_warned in 14650 yes:) 14651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14652 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14653 ac_tool_warned=yes ;; 14654 esac 14655 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14656 fi 14657 else 14658 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14659 fi 14660 14661 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14663 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14664 if test ${lt_cv_path_manifest_tool+y} 14665 then : 14666 printf %s "(cached) " >&6 14667 else case e in #( 14668 e) lt_cv_path_manifest_tool=no 14669 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14670 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14671 cat conftest.err >&5 14672 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14673 lt_cv_path_manifest_tool=yes 14674 fi 14675 rm -f conftest* ;; 14676 esac 14677 fi 14678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 14679 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 14680 if test yes != "$lt_cv_path_manifest_tool"; then 14681 MANIFEST_TOOL=: 14682 fi 14683 14684 14685 14686 14687 14688 14689 case $host_os in 14690 rhapsody* | darwin*) 14691 if test -n "$ac_tool_prefix"; then 14692 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14693 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14695 printf %s "checking for $ac_word... " >&6; } 14696 if test ${ac_cv_prog_DSYMUTIL+y} 14697 then : 14698 printf %s "(cached) " >&6 14699 else case e in #( 14700 e) if test -n "$DSYMUTIL"; then 14701 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14702 else 14703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14704 for as_dir in $PATH 14705 do 14706 IFS=$as_save_IFS 14707 case $as_dir in #((( 14708 '') as_dir=./ ;; 14709 */) ;; 14710 *) as_dir=$as_dir/ ;; 14711 esac 14712 for ac_exec_ext in '' $ac_executable_extensions; do 14713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14714 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14716 break 2 14717 fi 14718 done 14719 done 14720 IFS=$as_save_IFS 14721 14722 fi ;; 14723 esac 14724 fi 14725 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14726 if test -n "$DSYMUTIL"; then 14727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14728 printf "%s\n" "$DSYMUTIL" >&6; } 14729 else 14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14731 printf "%s\n" "no" >&6; } 14732 fi 14733 14734 14735 fi 14736 if test -z "$ac_cv_prog_DSYMUTIL"; then 14737 ac_ct_DSYMUTIL=$DSYMUTIL 14738 # Extract the first word of "dsymutil", so it can be a program name with args. 14739 set dummy dsymutil; ac_word=$2 14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14741 printf %s "checking for $ac_word... " >&6; } 14742 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14743 then : 14744 printf %s "(cached) " >&6 14745 else case e in #( 14746 e) if test -n "$ac_ct_DSYMUTIL"; then 14747 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14748 else 14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14750 for as_dir in $PATH 14751 do 14752 IFS=$as_save_IFS 14753 case $as_dir in #((( 14754 '') as_dir=./ ;; 14755 */) ;; 14756 *) as_dir=$as_dir/ ;; 14757 esac 14758 for ac_exec_ext in '' $ac_executable_extensions; do 14759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14760 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14762 break 2 14763 fi 14764 done 14765 done 14766 IFS=$as_save_IFS 14767 14768 fi ;; 14769 esac 14770 fi 14771 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14772 if test -n "$ac_ct_DSYMUTIL"; then 14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14774 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14775 else 14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14777 printf "%s\n" "no" >&6; } 14778 fi 14779 14780 if test "x$ac_ct_DSYMUTIL" = x; then 14781 DSYMUTIL=":" 14782 else 14783 case $cross_compiling:$ac_tool_warned in 14784 yes:) 14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14786 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14787 ac_tool_warned=yes ;; 14788 esac 14789 DSYMUTIL=$ac_ct_DSYMUTIL 14790 fi 14791 else 14792 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14793 fi 14794 14795 if test -n "$ac_tool_prefix"; then 14796 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14797 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14799 printf %s "checking for $ac_word... " >&6; } 14800 if test ${ac_cv_prog_NMEDIT+y} 14801 then : 14802 printf %s "(cached) " >&6 14803 else case e in #( 14804 e) if test -n "$NMEDIT"; then 14805 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14806 else 14807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14808 for as_dir in $PATH 14809 do 14810 IFS=$as_save_IFS 14811 case $as_dir in #((( 14812 '') as_dir=./ ;; 14813 */) ;; 14814 *) as_dir=$as_dir/ ;; 14815 esac 14816 for ac_exec_ext in '' $ac_executable_extensions; do 14817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14818 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14820 break 2 14821 fi 14822 done 14823 done 14824 IFS=$as_save_IFS 14825 14826 fi ;; 14827 esac 14828 fi 14829 NMEDIT=$ac_cv_prog_NMEDIT 14830 if test -n "$NMEDIT"; then 14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14832 printf "%s\n" "$NMEDIT" >&6; } 14833 else 14834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14835 printf "%s\n" "no" >&6; } 14836 fi 14837 14838 14839 fi 14840 if test -z "$ac_cv_prog_NMEDIT"; then 14841 ac_ct_NMEDIT=$NMEDIT 14842 # Extract the first word of "nmedit", so it can be a program name with args. 14843 set dummy nmedit; ac_word=$2 14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14845 printf %s "checking for $ac_word... " >&6; } 14846 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14847 then : 14848 printf %s "(cached) " >&6 14849 else case e in #( 14850 e) if test -n "$ac_ct_NMEDIT"; then 14851 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14852 else 14853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14854 for as_dir in $PATH 14855 do 14856 IFS=$as_save_IFS 14857 case $as_dir in #((( 14858 '') as_dir=./ ;; 14859 */) ;; 14860 *) as_dir=$as_dir/ ;; 14861 esac 14862 for ac_exec_ext in '' $ac_executable_extensions; do 14863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14864 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14866 break 2 14867 fi 14868 done 14869 done 14870 IFS=$as_save_IFS 14871 14872 fi ;; 14873 esac 14874 fi 14875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14876 if test -n "$ac_ct_NMEDIT"; then 14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14878 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14879 else 14880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14881 printf "%s\n" "no" >&6; } 14882 fi 14883 14884 if test "x$ac_ct_NMEDIT" = x; then 14885 NMEDIT=":" 14886 else 14887 case $cross_compiling:$ac_tool_warned in 14888 yes:) 14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14891 ac_tool_warned=yes ;; 14892 esac 14893 NMEDIT=$ac_ct_NMEDIT 14894 fi 14895 else 14896 NMEDIT="$ac_cv_prog_NMEDIT" 14897 fi 14898 14899 if test -n "$ac_tool_prefix"; then 14900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14901 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14903 printf %s "checking for $ac_word... " >&6; } 14904 if test ${ac_cv_prog_LIPO+y} 14905 then : 14906 printf %s "(cached) " >&6 14907 else case e in #( 14908 e) if test -n "$LIPO"; then 14909 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14910 else 14911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14912 for as_dir in $PATH 14913 do 14914 IFS=$as_save_IFS 14915 case $as_dir in #((( 14916 '') as_dir=./ ;; 14917 */) ;; 14918 *) as_dir=$as_dir/ ;; 14919 esac 14920 for ac_exec_ext in '' $ac_executable_extensions; do 14921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14922 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14924 break 2 14925 fi 14926 done 14927 done 14928 IFS=$as_save_IFS 14929 14930 fi ;; 14931 esac 14932 fi 14933 LIPO=$ac_cv_prog_LIPO 14934 if test -n "$LIPO"; then 14935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14936 printf "%s\n" "$LIPO" >&6; } 14937 else 14938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14939 printf "%s\n" "no" >&6; } 14940 fi 14941 14942 14943 fi 14944 if test -z "$ac_cv_prog_LIPO"; then 14945 ac_ct_LIPO=$LIPO 14946 # Extract the first word of "lipo", so it can be a program name with args. 14947 set dummy lipo; ac_word=$2 14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14949 printf %s "checking for $ac_word... " >&6; } 14950 if test ${ac_cv_prog_ac_ct_LIPO+y} 14951 then : 14952 printf %s "(cached) " >&6 14953 else case e in #( 14954 e) if test -n "$ac_ct_LIPO"; then 14955 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14956 else 14957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14958 for as_dir in $PATH 14959 do 14960 IFS=$as_save_IFS 14961 case $as_dir in #((( 14962 '') as_dir=./ ;; 14963 */) ;; 14964 *) as_dir=$as_dir/ ;; 14965 esac 14966 for ac_exec_ext in '' $ac_executable_extensions; do 14967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14968 ac_cv_prog_ac_ct_LIPO="lipo" 14969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14970 break 2 14971 fi 14972 done 14973 done 14974 IFS=$as_save_IFS 14975 14976 fi ;; 14977 esac 14978 fi 14979 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14980 if test -n "$ac_ct_LIPO"; then 14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14982 printf "%s\n" "$ac_ct_LIPO" >&6; } 14983 else 14984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14985 printf "%s\n" "no" >&6; } 14986 fi 14987 14988 if test "x$ac_ct_LIPO" = x; then 14989 LIPO=":" 14990 else 14991 case $cross_compiling:$ac_tool_warned in 14992 yes:) 14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14994 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14995 ac_tool_warned=yes ;; 14996 esac 14997 LIPO=$ac_ct_LIPO 14998 fi 14999 else 15000 LIPO="$ac_cv_prog_LIPO" 15001 fi 15002 15003 if test -n "$ac_tool_prefix"; then 15004 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 15005 set dummy ${ac_tool_prefix}otool; ac_word=$2 15006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15007 printf %s "checking for $ac_word... " >&6; } 15008 if test ${ac_cv_prog_OTOOL+y} 15009 then : 15010 printf %s "(cached) " >&6 15011 else case e in #( 15012 e) if test -n "$OTOOL"; then 15013 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 15014 else 15015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15016 for as_dir in $PATH 15017 do 15018 IFS=$as_save_IFS 15019 case $as_dir in #((( 15020 '') as_dir=./ ;; 15021 */) ;; 15022 *) as_dir=$as_dir/ ;; 15023 esac 15024 for ac_exec_ext in '' $ac_executable_extensions; do 15025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15026 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 15027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15028 break 2 15029 fi 15030 done 15031 done 15032 IFS=$as_save_IFS 15033 15034 fi ;; 15035 esac 15036 fi 15037 OTOOL=$ac_cv_prog_OTOOL 15038 if test -n "$OTOOL"; then 15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 15040 printf "%s\n" "$OTOOL" >&6; } 15041 else 15042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15043 printf "%s\n" "no" >&6; } 15044 fi 15045 15046 15047 fi 15048 if test -z "$ac_cv_prog_OTOOL"; then 15049 ac_ct_OTOOL=$OTOOL 15050 # Extract the first word of "otool", so it can be a program name with args. 15051 set dummy otool; ac_word=$2 15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15053 printf %s "checking for $ac_word... " >&6; } 15054 if test ${ac_cv_prog_ac_ct_OTOOL+y} 15055 then : 15056 printf %s "(cached) " >&6 15057 else case e in #( 15058 e) if test -n "$ac_ct_OTOOL"; then 15059 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 15060 else 15061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15062 for as_dir in $PATH 15063 do 15064 IFS=$as_save_IFS 15065 case $as_dir in #((( 15066 '') as_dir=./ ;; 15067 */) ;; 15068 *) as_dir=$as_dir/ ;; 15069 esac 15070 for ac_exec_ext in '' $ac_executable_extensions; do 15071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15072 ac_cv_prog_ac_ct_OTOOL="otool" 15073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15074 break 2 15075 fi 15076 done 15077 done 15078 IFS=$as_save_IFS 15079 15080 fi ;; 15081 esac 15082 fi 15083 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15084 if test -n "$ac_ct_OTOOL"; then 15085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15086 printf "%s\n" "$ac_ct_OTOOL" >&6; } 15087 else 15088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15089 printf "%s\n" "no" >&6; } 15090 fi 15091 15092 if test "x$ac_ct_OTOOL" = x; then 15093 OTOOL=":" 15094 else 15095 case $cross_compiling:$ac_tool_warned in 15096 yes:) 15097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15098 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15099 ac_tool_warned=yes ;; 15100 esac 15101 OTOOL=$ac_ct_OTOOL 15102 fi 15103 else 15104 OTOOL="$ac_cv_prog_OTOOL" 15105 fi 15106 15107 if test -n "$ac_tool_prefix"; then 15108 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15109 set dummy ${ac_tool_prefix}otool64; ac_word=$2 15110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15111 printf %s "checking for $ac_word... " >&6; } 15112 if test ${ac_cv_prog_OTOOL64+y} 15113 then : 15114 printf %s "(cached) " >&6 15115 else case e in #( 15116 e) if test -n "$OTOOL64"; then 15117 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15118 else 15119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15120 for as_dir in $PATH 15121 do 15122 IFS=$as_save_IFS 15123 case $as_dir in #((( 15124 '') as_dir=./ ;; 15125 */) ;; 15126 *) as_dir=$as_dir/ ;; 15127 esac 15128 for ac_exec_ext in '' $ac_executable_extensions; do 15129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15130 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15132 break 2 15133 fi 15134 done 15135 done 15136 IFS=$as_save_IFS 15137 15138 fi ;; 15139 esac 15140 fi 15141 OTOOL64=$ac_cv_prog_OTOOL64 15142 if test -n "$OTOOL64"; then 15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15144 printf "%s\n" "$OTOOL64" >&6; } 15145 else 15146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15147 printf "%s\n" "no" >&6; } 15148 fi 15149 15150 15151 fi 15152 if test -z "$ac_cv_prog_OTOOL64"; then 15153 ac_ct_OTOOL64=$OTOOL64 15154 # Extract the first word of "otool64", so it can be a program name with args. 15155 set dummy otool64; ac_word=$2 15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15157 printf %s "checking for $ac_word... " >&6; } 15158 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 15159 then : 15160 printf %s "(cached) " >&6 15161 else case e in #( 15162 e) if test -n "$ac_ct_OTOOL64"; then 15163 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15164 else 15165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15166 for as_dir in $PATH 15167 do 15168 IFS=$as_save_IFS 15169 case $as_dir in #((( 15170 '') as_dir=./ ;; 15171 */) ;; 15172 *) as_dir=$as_dir/ ;; 15173 esac 15174 for ac_exec_ext in '' $ac_executable_extensions; do 15175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15176 ac_cv_prog_ac_ct_OTOOL64="otool64" 15177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15178 break 2 15179 fi 15180 done 15181 done 15182 IFS=$as_save_IFS 15183 15184 fi ;; 15185 esac 15186 fi 15187 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15188 if test -n "$ac_ct_OTOOL64"; then 15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15190 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 15191 else 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15193 printf "%s\n" "no" >&6; } 15194 fi 15195 15196 if test "x$ac_ct_OTOOL64" = x; then 15197 OTOOL64=":" 15198 else 15199 case $cross_compiling:$ac_tool_warned in 15200 yes:) 15201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15202 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15203 ac_tool_warned=yes ;; 15204 esac 15205 OTOOL64=$ac_ct_OTOOL64 15206 fi 15207 else 15208 OTOOL64="$ac_cv_prog_OTOOL64" 15209 fi 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15238 printf %s "checking for -single_module linker flag... " >&6; } 15239 if test ${lt_cv_apple_cc_single_mod+y} 15240 then : 15241 printf %s "(cached) " >&6 15242 else case e in #( 15243 e) lt_cv_apple_cc_single_mod=no 15244 if test -z "$LT_MULTI_MODULE"; then 15245 # By default we will add the -single_module flag. You can override 15246 # by either setting the environment variable LT_MULTI_MODULE 15247 # non-empty at configure time, or by adding -multi_module to the 15248 # link flags. 15249 rm -rf libconftest.dylib* 15250 echo "int foo(void){return 1;}" > conftest.c 15251 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15252 -dynamiclib -Wl,-single_module conftest.c" >&5 15253 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15254 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15255 _lt_result=$? 15256 # If there is a non-empty error log, and "single_module" 15257 # appears in it, assume the flag caused a linker warning 15258 if test -s conftest.err && $GREP single_module conftest.err; then 15259 cat conftest.err >&5 15260 # Otherwise, if the output was created with a 0 exit code from 15261 # the compiler, it worked. 15262 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15263 lt_cv_apple_cc_single_mod=yes 15264 else 15265 cat conftest.err >&5 15266 fi 15267 rm -rf libconftest.dylib* 15268 rm -f conftest.* 15269 fi ;; 15270 esac 15271 fi 15272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15273 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 15274 15275 # Feature test to disable chained fixups since it is not 15276 # compatible with '-undefined dynamic_lookup' 15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 15278 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 15279 if test ${lt_cv_support_no_fixup_chains+y} 15280 then : 15281 printf %s "(cached) " >&6 15282 else case e in #( 15283 e) save_LDFLAGS=$LDFLAGS 15284 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15286 /* end confdefs.h. */ 15287 15288 int 15289 main (void) 15290 { 15291 15292 ; 15293 return 0; 15294 } 15295 _ACEOF 15296 if ac_fn_c_try_link "$LINENO" 15297 then : 15298 lt_cv_support_no_fixup_chains=yes 15299 else case e in #( 15300 e) lt_cv_support_no_fixup_chains=no 15301 ;; 15302 esac 15303 fi 15304 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15305 conftest$ac_exeext conftest.$ac_ext 15306 LDFLAGS=$save_LDFLAGS 15307 15308 ;; 15309 esac 15310 fi 15311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 15312 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 15313 15314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15315 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 15316 if test ${lt_cv_ld_exported_symbols_list+y} 15317 then : 15318 printf %s "(cached) " >&6 15319 else case e in #( 15320 e) lt_cv_ld_exported_symbols_list=no 15321 save_LDFLAGS=$LDFLAGS 15322 echo "_main" > conftest.sym 15323 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15325 /* end confdefs.h. */ 15326 15327 int 15328 main (void) 15329 { 15330 15331 ; 15332 return 0; 15333 } 15334 _ACEOF 15335 if ac_fn_c_try_link "$LINENO" 15336 then : 15337 lt_cv_ld_exported_symbols_list=yes 15338 else case e in #( 15339 e) lt_cv_ld_exported_symbols_list=no ;; 15340 esac 15341 fi 15342 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15343 conftest$ac_exeext conftest.$ac_ext 15344 LDFLAGS=$save_LDFLAGS 15345 ;; 15346 esac 15347 fi 15348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15349 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 15350 15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15352 printf %s "checking for -force_load linker flag... " >&6; } 15353 if test ${lt_cv_ld_force_load+y} 15354 then : 15355 printf %s "(cached) " >&6 15356 else case e in #( 15357 e) lt_cv_ld_force_load=no 15358 cat > conftest.c << _LT_EOF 15359 int forced_loaded() { return 2;} 15360 _LT_EOF 15361 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15362 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15363 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 15364 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 15365 echo "$RANLIB libconftest.a" >&5 15366 $RANLIB libconftest.a 2>&5 15367 cat > conftest.c << _LT_EOF 15368 int main(void) { return 0;} 15369 _LT_EOF 15370 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15371 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15372 _lt_result=$? 15373 if test -s conftest.err && $GREP force_load conftest.err; then 15374 cat conftest.err >&5 15375 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15376 lt_cv_ld_force_load=yes 15377 else 15378 cat conftest.err >&5 15379 fi 15380 rm -f conftest.err libconftest.a conftest conftest.c 15381 rm -rf conftest.dSYM 15382 ;; 15383 esac 15384 fi 15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15386 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 15387 case $host_os in 15388 rhapsody* | darwin1.[012]) 15389 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15390 darwin1.*) 15391 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15392 darwin*) 15393 case $MACOSX_DEPLOYMENT_TARGET,$host in 15394 10.[012],*|,*powerpc*-darwin[5-8]*) 15395 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15396 *) 15397 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 15398 if test yes = "$lt_cv_support_no_fixup_chains"; then 15399 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 15400 fi 15401 ;; 15402 esac 15403 ;; 15404 esac 15405 if test yes = "$lt_cv_apple_cc_single_mod"; then 15406 _lt_dar_single_mod='$single_module' 15407 fi 15408 _lt_dar_needs_single_mod=no 15409 case $host_os in 15410 rhapsody* | darwin1.*) 15411 _lt_dar_needs_single_mod=yes ;; 15412 darwin*) 15413 # When targeting Mac OS X 10.4 (darwin 8) or later, 15414 # -single_module is the default and -multi_module is unsupported. 15415 # The toolchain on macOS 10.14 (darwin 18) and later cannot 15416 # target any OS version that needs -single_module. 15417 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 15418 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 15419 _lt_dar_needs_single_mod=yes ;; 15420 esac 15421 ;; 15422 esac 15423 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15424 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15425 else 15426 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15427 fi 15428 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15429 _lt_dsymutil='~$DSYMUTIL $lib || :' 15430 else 15431 _lt_dsymutil= 15432 fi 15433 ;; 15434 esac 15435 15436 # func_munge_path_list VARIABLE PATH 15437 # ----------------------------------- 15438 # VARIABLE is name of variable containing _space_ separated list of 15439 # directories to be munged by the contents of PATH, which is string 15440 # having a format: 15441 # "DIR[:DIR]:" 15442 # string "DIR[ DIR]" will be prepended to VARIABLE 15443 # ":DIR[:DIR]" 15444 # string "DIR[ DIR]" will be appended to VARIABLE 15445 # "DIRP[:DIRP]::[DIRA:]DIRA" 15446 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15447 # "DIRA[ DIRA]" will be appended to VARIABLE 15448 # "DIR[:DIR]" 15449 # VARIABLE will be replaced by "DIR[ DIR]" 15450 func_munge_path_list () 15451 { 15452 case x$2 in 15453 x) 15454 ;; 15455 *:) 15456 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15457 ;; 15458 x:*) 15459 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15460 ;; 15461 *::*) 15462 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15463 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15464 ;; 15465 *) 15466 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15467 ;; 15468 esac 15469 } 15470 15471 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15472 " 15473 if test "x$ac_cv_header_dlfcn_h" = xyes 15474 then : 15475 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15476 15477 fi 15478 15479 15480 15481 15482 15483 # Set options 15484 # Check whether --enable-static was given. 15485 if test ${enable_static+y} 15486 then : 15487 enableval=$enable_static; p=${PACKAGE-default} 15488 case $enableval in 15489 yes) enable_static=yes ;; 15490 no) enable_static=no ;; 15491 *) 15492 enable_static=no 15493 # Look at the argument we got. We use all the common list separators. 15494 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15495 for pkg in $enableval; do 15496 IFS=$lt_save_ifs 15497 if test "X$pkg" = "X$p"; then 15498 enable_static=yes 15499 fi 15500 done 15501 IFS=$lt_save_ifs 15502 ;; 15503 esac 15504 else case e in #( 15505 e) enable_static=no ;; 15506 esac 15507 fi 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 enable_dlopen=no 15519 15520 15521 enable_win32_dll=no 15522 15523 15524 # Check whether --enable-shared was given. 15525 if test ${enable_shared+y} 15526 then : 15527 enableval=$enable_shared; p=${PACKAGE-default} 15528 case $enableval in 15529 yes) enable_shared=yes ;; 15530 no) enable_shared=no ;; 15531 *) 15532 enable_shared=no 15533 # Look at the argument we got. We use all the common list separators. 15534 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15535 for pkg in $enableval; do 15536 IFS=$lt_save_ifs 15537 if test "X$pkg" = "X$p"; then 15538 enable_shared=yes 15539 fi 15540 done 15541 IFS=$lt_save_ifs 15542 ;; 15543 esac 15544 else case e in #( 15545 e) enable_shared=yes ;; 15546 esac 15547 fi 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 # Check whether --enable-pic was given. 15559 if test ${enable_pic+y} 15560 then : 15561 enableval=$enable_pic; lt_p=${PACKAGE-default} 15562 case $enableval in 15563 yes|no) pic_mode=$enableval ;; 15564 *) 15565 pic_mode=default 15566 # Look at the argument we got. We use all the common list separators. 15567 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15568 for lt_pkg in $enableval; do 15569 IFS=$lt_save_ifs 15570 if test "X$lt_pkg" = "X$lt_p"; then 15571 pic_mode=yes 15572 fi 15573 done 15574 IFS=$lt_save_ifs 15575 ;; 15576 esac 15577 else case e in #( 15578 e) # Check whether --with-pic was given. 15579 if test ${with_pic+y} 15580 then : 15581 withval=$with_pic; lt_p=${PACKAGE-default} 15582 case $withval in 15583 yes|no) pic_mode=$withval ;; 15584 *) 15585 pic_mode=default 15586 # Look at the argument we got. We use all the common list separators. 15587 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15588 for lt_pkg in $withval; do 15589 IFS=$lt_save_ifs 15590 if test "X$lt_pkg" = "X$lt_p"; then 15591 pic_mode=yes 15592 fi 15593 done 15594 IFS=$lt_save_ifs 15595 ;; 15596 esac 15597 else case e in #( 15598 e) pic_mode=default ;; 15599 esac 15600 fi 15601 15602 ;; 15603 esac 15604 fi 15605 15606 15607 15608 15609 15610 15611 15612 15613 # Check whether --enable-fast-install was given. 15614 if test ${enable_fast_install+y} 15615 then : 15616 enableval=$enable_fast_install; p=${PACKAGE-default} 15617 case $enableval in 15618 yes) enable_fast_install=yes ;; 15619 no) enable_fast_install=no ;; 15620 *) 15621 enable_fast_install=no 15622 # Look at the argument we got. We use all the common list separators. 15623 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15624 for pkg in $enableval; do 15625 IFS=$lt_save_ifs 15626 if test "X$pkg" = "X$p"; then 15627 enable_fast_install=yes 15628 fi 15629 done 15630 IFS=$lt_save_ifs 15631 ;; 15632 esac 15633 else case e in #( 15634 e) enable_fast_install=yes ;; 15635 esac 15636 fi 15637 15638 15639 15640 15641 15642 15643 15644 15645 shared_archive_member_spec= 15646 case $host,$enable_shared in 15647 power*-*-aix[5-9]*,yes) 15648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15649 printf %s "checking which variant of shared library versioning to provide... " >&6; } 15650 # Check whether --enable-aix-soname was given. 15651 if test ${enable_aix_soname+y} 15652 then : 15653 enableval=$enable_aix_soname; case $enableval in 15654 aix|svr4|both) 15655 ;; 15656 *) 15657 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 15658 ;; 15659 esac 15660 lt_cv_with_aix_soname=$enable_aix_soname 15661 else case e in #( 15662 e) # Check whether --with-aix-soname was given. 15663 if test ${with_aix_soname+y} 15664 then : 15665 withval=$with_aix_soname; case $withval in 15666 aix|svr4|both) 15667 ;; 15668 *) 15669 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15670 ;; 15671 esac 15672 lt_cv_with_aix_soname=$with_aix_soname 15673 else case e in #( 15674 e) if test ${lt_cv_with_aix_soname+y} 15675 then : 15676 printf %s "(cached) " >&6 15677 else case e in #( 15678 e) lt_cv_with_aix_soname=aix ;; 15679 esac 15680 fi 15681 ;; 15682 esac 15683 fi 15684 15685 enable_aix_soname=$lt_cv_with_aix_soname ;; 15686 esac 15687 fi 15688 15689 with_aix_soname=$enable_aix_soname 15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15691 printf "%s\n" "$with_aix_soname" >&6; } 15692 if test aix != "$with_aix_soname"; then 15693 # For the AIX way of multilib, we name the shared archive member 15694 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15695 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15696 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15697 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15698 if test 64 = "${OBJECT_MODE-32}"; then 15699 shared_archive_member_spec=shr_64 15700 else 15701 shared_archive_member_spec=shr 15702 fi 15703 fi 15704 ;; 15705 *) 15706 with_aix_soname=aix 15707 ;; 15708 esac 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 # This can be used to rebuild libtool when needed 15720 LIBTOOL_DEPS=$ltmain 15721 15722 # Always use our own libtool. 15723 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 test -z "$LN_S" && LN_S="ln -s" 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 if test -n "${ZSH_VERSION+set}"; then 15770 setopt NO_GLOB_SUBST 15771 fi 15772 15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15774 printf %s "checking for objdir... " >&6; } 15775 if test ${lt_cv_objdir+y} 15776 then : 15777 printf %s "(cached) " >&6 15778 else case e in #( 15779 e) rm -f .libs 2>/dev/null 15780 mkdir .libs 2>/dev/null 15781 if test -d .libs; then 15782 lt_cv_objdir=.libs 15783 else 15784 # MS-DOS does not allow filenames that begin with a dot. 15785 lt_cv_objdir=_libs 15786 fi 15787 rmdir .libs 2>/dev/null ;; 15788 esac 15789 fi 15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15791 printf "%s\n" "$lt_cv_objdir" >&6; } 15792 objdir=$lt_cv_objdir 15793 15794 15795 15796 15797 15798 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15799 15800 15801 15802 15803 case $host_os in 15804 aix3*) 15805 # AIX sometimes has problems with the GCC collect2 program. For some 15806 # reason, if we set the COLLECT_NAMES environment variable, the problems 15807 # vanish in a puff of smoke. 15808 if test set != "${COLLECT_NAMES+set}"; then 15809 COLLECT_NAMES= 15810 export COLLECT_NAMES 15811 fi 15812 ;; 15813 esac 15814 15815 # Global variables: 15816 ofile=libtool 15817 can_build_shared=yes 15818 15819 # All known linkers require a '.a' archive for static linking (except MSVC and 15820 # ICC, which need '.lib'). 15821 libext=a 15822 15823 with_gnu_ld=$lt_cv_prog_gnu_ld 15824 15825 old_CC=$CC 15826 old_CFLAGS=$CFLAGS 15827 15828 # Set sane defaults for various variables 15829 test -z "$CC" && CC=cc 15830 test -z "$LTCC" && LTCC=$CC 15831 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15832 test -z "$LD" && LD=ld 15833 test -z "$ac_objext" && ac_objext=o 15834 15835 func_cc_basename $compiler 15836 cc_basename=$func_cc_basename_result 15837 15838 15839 # Only perform the check for file, if the check method requires it 15840 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15841 case $deplibs_check_method in 15842 file_magic*) 15843 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15845 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15846 if test ${lt_cv_path_MAGIC_CMD+y} 15847 then : 15848 printf %s "(cached) " >&6 15849 else case e in #( 15850 e) case $MAGIC_CMD in 15851 [\\/*] | ?:[\\/]*) 15852 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15853 ;; 15854 *) 15855 lt_save_MAGIC_CMD=$MAGIC_CMD 15856 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15857 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15858 for ac_dir in $ac_dummy; do 15859 IFS=$lt_save_ifs 15860 test -z "$ac_dir" && ac_dir=. 15861 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15862 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15863 if test -n "$file_magic_test_file"; then 15864 case $deplibs_check_method in 15865 "file_magic "*) 15866 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15867 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15868 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15869 $EGREP "$file_magic_regex" > /dev/null; then 15870 : 15871 else 15872 cat <<_LT_EOF 1>&2 15873 15874 *** Warning: the command libtool uses to detect shared libraries, 15875 *** $file_magic_cmd, produces output that libtool cannot recognize. 15876 *** The result is that libtool may fail to recognize shared libraries 15877 *** as such. This will affect the creation of libtool libraries that 15878 *** depend on shared libraries, but programs linked with such libtool 15879 *** libraries will work regardless of this problem. Nevertheless, you 15880 *** may want to report the problem to your system manager and/or to 15881 *** bug-libtool@gnu.org 15882 15883 _LT_EOF 15884 fi ;; 15885 esac 15886 fi 15887 break 15888 fi 15889 done 15890 IFS=$lt_save_ifs 15891 MAGIC_CMD=$lt_save_MAGIC_CMD 15892 ;; 15893 esac ;; 15894 esac 15895 fi 15896 15897 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15898 if test -n "$MAGIC_CMD"; then 15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15900 printf "%s\n" "$MAGIC_CMD" >&6; } 15901 else 15902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15903 printf "%s\n" "no" >&6; } 15904 fi 15905 15906 15907 15908 15909 15910 if test -z "$lt_cv_path_MAGIC_CMD"; then 15911 if test -n "$ac_tool_prefix"; then 15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15913 printf %s "checking for file... " >&6; } 15914 if test ${lt_cv_path_MAGIC_CMD+y} 15915 then : 15916 printf %s "(cached) " >&6 15917 else case e in #( 15918 e) case $MAGIC_CMD in 15919 [\\/*] | ?:[\\/]*) 15920 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15921 ;; 15922 *) 15923 lt_save_MAGIC_CMD=$MAGIC_CMD 15924 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15925 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15926 for ac_dir in $ac_dummy; do 15927 IFS=$lt_save_ifs 15928 test -z "$ac_dir" && ac_dir=. 15929 if test -f "$ac_dir/file"; then 15930 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15931 if test -n "$file_magic_test_file"; then 15932 case $deplibs_check_method in 15933 "file_magic "*) 15934 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15935 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15936 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15937 $EGREP "$file_magic_regex" > /dev/null; then 15938 : 15939 else 15940 cat <<_LT_EOF 1>&2 15941 15942 *** Warning: the command libtool uses to detect shared libraries, 15943 *** $file_magic_cmd, produces output that libtool cannot recognize. 15944 *** The result is that libtool may fail to recognize shared libraries 15945 *** as such. This will affect the creation of libtool libraries that 15946 *** depend on shared libraries, but programs linked with such libtool 15947 *** libraries will work regardless of this problem. Nevertheless, you 15948 *** may want to report the problem to your system manager and/or to 15949 *** bug-libtool@gnu.org 15950 15951 _LT_EOF 15952 fi ;; 15953 esac 15954 fi 15955 break 15956 fi 15957 done 15958 IFS=$lt_save_ifs 15959 MAGIC_CMD=$lt_save_MAGIC_CMD 15960 ;; 15961 esac ;; 15962 esac 15963 fi 15964 15965 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15966 if test -n "$MAGIC_CMD"; then 15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15968 printf "%s\n" "$MAGIC_CMD" >&6; } 15969 else 15970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15971 printf "%s\n" "no" >&6; } 15972 fi 15973 15974 15975 else 15976 MAGIC_CMD=: 15977 fi 15978 fi 15979 15980 fi 15981 ;; 15982 esac 15983 15984 # Use C for the default configuration in the libtool script 15985 15986 lt_save_CC=$CC 15987 ac_ext=c 15988 ac_cpp='$CPP $CPPFLAGS' 15989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15991 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15992 15993 15994 # Source file extension for C test sources. 15995 ac_ext=c 15996 15997 # Object file extension for compiled C test sources. 15998 objext=o 15999 objext=$objext 16000 16001 # Code to be used in simple compile tests 16002 lt_simple_compile_test_code="int some_variable = 0;" 16003 16004 # Code to be used in simple link tests 16005 lt_simple_link_test_code='int main(void){return(0);}' 16006 16007 16008 16009 16010 16011 16012 16013 # If no C compiler was specified, use CC. 16014 LTCC=${LTCC-"$CC"} 16015 16016 # If no C compiler flags were specified, use CFLAGS. 16017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16018 16019 # Allow CC to be a program name with arguments. 16020 compiler=$CC 16021 16022 # Save the default compiler, since it gets overwritten when the other 16023 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 16024 compiler_DEFAULT=$CC 16025 16026 # save warnings/boilerplate of simple test code 16027 ac_outfile=conftest.$ac_objext 16028 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16029 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16030 _lt_compiler_boilerplate=`cat conftest.err` 16031 $RM conftest* 16032 16033 ac_outfile=conftest.$ac_objext 16034 echo "$lt_simple_link_test_code" >conftest.$ac_ext 16035 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16036 _lt_linker_boilerplate=`cat conftest.err` 16037 $RM -r conftest* 16038 16039 16040 if test -n "$compiler"; then 16041 16042 lt_prog_compiler_no_builtin_flag= 16043 16044 if test yes = "$GCC"; then 16045 case $cc_basename in 16046 nvcc*) 16047 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 16048 *) 16049 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 16050 esac 16051 16052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16053 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16054 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 16055 then : 16056 printf %s "(cached) " >&6 16057 else case e in #( 16058 e) lt_cv_prog_compiler_rtti_exceptions=no 16059 ac_outfile=conftest.$ac_objext 16060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16061 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 16062 # Insert the option either (1) after the last *FLAGS variable, or 16063 # (2) before a word containing "conftest.", or (3) at the end. 16064 # Note that $ac_compile itself does not contain backslashes and begins 16065 # with a dollar sign (not a hyphen), so the echo should work correctly. 16066 # The option is referenced via a variable to avoid confusing sed. 16067 lt_compile=`echo "$ac_compile" | $SED \ 16068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16070 -e 's:$: $lt_compiler_flag:'` 16071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16072 (eval "$lt_compile" 2>conftest.err) 16073 ac_status=$? 16074 cat conftest.err >&5 16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16076 if (exit $ac_status) && test -s "$ac_outfile"; then 16077 # The compiler can only warn and ignore the option if not recognized 16078 # So say no if there are warnings other than the usual output. 16079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16082 lt_cv_prog_compiler_rtti_exceptions=yes 16083 fi 16084 fi 16085 $RM conftest* 16086 ;; 16087 esac 16088 fi 16089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16090 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16091 16092 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 16093 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 16094 else 16095 : 16096 fi 16097 16098 fi 16099 16100 16101 16102 16103 16104 16105 lt_prog_compiler_wl= 16106 lt_prog_compiler_pic= 16107 lt_prog_compiler_static= 16108 16109 16110 if test yes = "$GCC"; then 16111 lt_prog_compiler_wl='-Wl,' 16112 lt_prog_compiler_static='-static' 16113 16114 case $host_os in 16115 aix*) 16116 # All AIX code is PIC. 16117 if test ia64 = "$host_cpu"; then 16118 # AIX 5 now supports IA64 processor 16119 lt_prog_compiler_static='-Bstatic' 16120 fi 16121 lt_prog_compiler_pic='-fPIC' 16122 ;; 16123 16124 amigaos*) 16125 case $host_cpu in 16126 powerpc) 16127 # see comment about AmigaOS4 .so support 16128 lt_prog_compiler_pic='-fPIC' 16129 ;; 16130 m68k) 16131 # FIXME: we need at least 68020 code to build shared libraries, but 16132 # adding the '-m68020' flag to GCC prevents building anything better, 16133 # like '-m68040'. 16134 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16135 ;; 16136 esac 16137 ;; 16138 16139 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16140 # PIC is the default for these OSes. 16141 ;; 16142 16143 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 16144 # This hack is so that the source file can tell whether it is being 16145 # built for inclusion in a dll (and should export symbols for example). 16146 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16147 # (--disable-auto-import) libraries 16148 lt_prog_compiler_pic='-DDLL_EXPORT' 16149 case $host_os in 16150 os2*) 16151 lt_prog_compiler_static='$wl-static' 16152 ;; 16153 esac 16154 ;; 16155 16156 darwin* | rhapsody*) 16157 # PIC is the default on this platform 16158 # Common symbols not allowed in MH_DYLIB files 16159 lt_prog_compiler_pic='-fno-common' 16160 ;; 16161 16162 haiku*) 16163 # PIC is the default for Haiku. 16164 # The "-static" flag exists, but is broken. 16165 lt_prog_compiler_static= 16166 ;; 16167 16168 hpux*) 16169 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16170 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16171 # sets the default TLS model and affects inlining. 16172 case $host_cpu in 16173 hppa*64*) 16174 # +Z the default 16175 ;; 16176 *) 16177 lt_prog_compiler_pic='-fPIC' 16178 ;; 16179 esac 16180 ;; 16181 16182 interix[3-9]*) 16183 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16184 # Instead, we relocate shared libraries at runtime. 16185 ;; 16186 16187 msdosdjgpp*) 16188 # Just because we use GCC doesn't mean we suddenly get shared libraries 16189 # on systems that don't support them. 16190 lt_prog_compiler_can_build_shared=no 16191 enable_shared=no 16192 ;; 16193 16194 *nto* | *qnx*) 16195 # QNX uses GNU C++, but need to define -shared option too, otherwise 16196 # it will coredump. 16197 lt_prog_compiler_pic='-fPIC -shared' 16198 ;; 16199 16200 sysv4*MP*) 16201 if test -d /usr/nec; then 16202 lt_prog_compiler_pic=-Kconform_pic 16203 fi 16204 ;; 16205 16206 *) 16207 lt_prog_compiler_pic='-fPIC' 16208 ;; 16209 esac 16210 16211 case $cc_basename in 16212 nvcc*) # Cuda Compiler Driver 2.2 16213 lt_prog_compiler_wl='-Xlinker ' 16214 if test -n "$lt_prog_compiler_pic"; then 16215 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16216 fi 16217 ;; 16218 esac 16219 else 16220 # PORTME Check for flag to pass linker flags through the system compiler. 16221 case $host_os in 16222 aix*) 16223 lt_prog_compiler_wl='-Wl,' 16224 if test ia64 = "$host_cpu"; then 16225 # AIX 5 now supports IA64 processor 16226 lt_prog_compiler_static='-Bstatic' 16227 else 16228 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16229 fi 16230 ;; 16231 16232 darwin* | rhapsody*) 16233 # PIC is the default on this platform 16234 # Common symbols not allowed in MH_DYLIB files 16235 lt_prog_compiler_pic='-fno-common' 16236 case $cc_basename in 16237 nagfor*) 16238 # NAG Fortran compiler 16239 lt_prog_compiler_wl='-Wl,-Wl,,' 16240 lt_prog_compiler_pic='-PIC' 16241 lt_prog_compiler_static='-Bstatic' 16242 ;; 16243 esac 16244 ;; 16245 16246 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 16247 # This hack is so that the source file can tell whether it is being 16248 # built for inclusion in a dll (and should export symbols for example). 16249 lt_prog_compiler_pic='-DDLL_EXPORT' 16250 case $host_os in 16251 os2*) 16252 lt_prog_compiler_static='$wl-static' 16253 ;; 16254 esac 16255 ;; 16256 16257 hpux9* | hpux10* | hpux11*) 16258 lt_prog_compiler_wl='-Wl,' 16259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16260 # not for PA HP-UX. 16261 case $host_cpu in 16262 hppa*64*|ia64*) 16263 # +Z the default 16264 ;; 16265 *) 16266 lt_prog_compiler_pic='+Z' 16267 ;; 16268 esac 16269 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16270 lt_prog_compiler_static='$wl-a ${wl}archive' 16271 ;; 16272 16273 irix5* | irix6* | nonstopux*) 16274 lt_prog_compiler_wl='-Wl,' 16275 # PIC (with -KPIC) is the default. 16276 lt_prog_compiler_static='-non_shared' 16277 ;; 16278 16279 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16280 case $cc_basename in 16281 # old Intel for x86_64, which still supported -KPIC. 16282 ecc*) 16283 lt_prog_compiler_wl='-Wl,' 16284 lt_prog_compiler_pic='-KPIC' 16285 lt_prog_compiler_static='-static' 16286 ;; 16287 *flang* | ftn | f18* | f95*) 16288 # Flang compiler. 16289 lt_prog_compiler_wl='-Wl,' 16290 lt_prog_compiler_pic='-fPIC' 16291 lt_prog_compiler_static='-static' 16292 ;; 16293 # icc used to be incompatible with GCC. 16294 # ICC 10 doesn't accept -KPIC any more. 16295 icc* | ifort*) 16296 lt_prog_compiler_wl='-Wl,' 16297 lt_prog_compiler_pic='-fPIC' 16298 lt_prog_compiler_static='-static' 16299 ;; 16300 # Lahey Fortran 8.1. 16301 lf95*) 16302 lt_prog_compiler_wl='-Wl,' 16303 lt_prog_compiler_pic='--shared' 16304 lt_prog_compiler_static='--static' 16305 ;; 16306 nagfor*) 16307 # NAG Fortran compiler 16308 lt_prog_compiler_wl='-Wl,-Wl,,' 16309 lt_prog_compiler_pic='-PIC' 16310 lt_prog_compiler_static='-Bstatic' 16311 ;; 16312 tcc*) 16313 # Fabrice Bellard et al's Tiny C Compiler 16314 lt_prog_compiler_wl='-Wl,' 16315 lt_prog_compiler_pic='-fPIC' 16316 lt_prog_compiler_static='-static' 16317 ;; 16318 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16319 # Portland Group compilers (*not* the Pentium gcc compiler, 16320 # which looks to be a dead project) 16321 lt_prog_compiler_wl='-Wl,' 16322 lt_prog_compiler_pic='-fpic' 16323 lt_prog_compiler_static='-Bstatic' 16324 ;; 16325 ccc*) 16326 lt_prog_compiler_wl='-Wl,' 16327 # All Alpha code is PIC. 16328 lt_prog_compiler_static='-non_shared' 16329 ;; 16330 xl* | bgxl* | bgf* | mpixl*) 16331 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16332 lt_prog_compiler_wl='-Wl,' 16333 lt_prog_compiler_pic='-qpic' 16334 lt_prog_compiler_static='-qstaticlink' 16335 ;; 16336 *) 16337 case `$CC -V 2>&1 | $SED 5q` in 16338 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16339 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16340 lt_prog_compiler_pic='-KPIC' 16341 lt_prog_compiler_static='-Bstatic' 16342 lt_prog_compiler_wl='' 16343 ;; 16344 *Sun\ F* | *Sun*Fortran*) 16345 lt_prog_compiler_pic='-KPIC' 16346 lt_prog_compiler_static='-Bstatic' 16347 lt_prog_compiler_wl='-Qoption ld ' 16348 ;; 16349 *Sun\ C*) 16350 # Sun C 5.9 16351 lt_prog_compiler_pic='-KPIC' 16352 lt_prog_compiler_static='-Bstatic' 16353 lt_prog_compiler_wl='-Wl,' 16354 ;; 16355 *Intel*\ [CF]*Compiler*) 16356 lt_prog_compiler_wl='-Wl,' 16357 lt_prog_compiler_pic='-fPIC' 16358 lt_prog_compiler_static='-static' 16359 ;; 16360 *Portland\ Group*) 16361 lt_prog_compiler_wl='-Wl,' 16362 lt_prog_compiler_pic='-fpic' 16363 lt_prog_compiler_static='-Bstatic' 16364 ;; 16365 esac 16366 ;; 16367 esac 16368 ;; 16369 16370 newsos6) 16371 lt_prog_compiler_pic='-KPIC' 16372 lt_prog_compiler_static='-Bstatic' 16373 ;; 16374 16375 *-mlibc) 16376 lt_prog_compiler_wl='-Wl,' 16377 lt_prog_compiler_pic='-fPIC' 16378 lt_prog_compiler_static='-static' 16379 ;; 16380 16381 *nto* | *qnx*) 16382 # QNX uses GNU C++, but need to define -shared option too, otherwise 16383 # it will coredump. 16384 lt_prog_compiler_pic='-fPIC -shared' 16385 ;; 16386 16387 osf3* | osf4* | osf5*) 16388 lt_prog_compiler_wl='-Wl,' 16389 # All OSF/1 code is PIC. 16390 lt_prog_compiler_static='-non_shared' 16391 ;; 16392 16393 rdos*) 16394 lt_prog_compiler_static='-non_shared' 16395 ;; 16396 16397 serenity*) 16398 ;; 16399 16400 solaris*) 16401 lt_prog_compiler_pic='-KPIC' 16402 lt_prog_compiler_static='-Bstatic' 16403 case $cc_basename in 16404 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16405 lt_prog_compiler_wl='-Qoption ld ';; 16406 *) 16407 lt_prog_compiler_wl='-Wl,';; 16408 esac 16409 ;; 16410 16411 sunos4*) 16412 lt_prog_compiler_wl='-Qoption ld ' 16413 lt_prog_compiler_pic='-PIC' 16414 lt_prog_compiler_static='-Bstatic' 16415 ;; 16416 16417 sysv4 | sysv4.2uw2* | sysv4.3*) 16418 lt_prog_compiler_wl='-Wl,' 16419 lt_prog_compiler_pic='-KPIC' 16420 lt_prog_compiler_static='-Bstatic' 16421 ;; 16422 16423 sysv4*MP*) 16424 if test -d /usr/nec; then 16425 lt_prog_compiler_pic='-Kconform_pic' 16426 lt_prog_compiler_static='-Bstatic' 16427 fi 16428 ;; 16429 16430 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16431 lt_prog_compiler_wl='-Wl,' 16432 lt_prog_compiler_pic='-KPIC' 16433 lt_prog_compiler_static='-Bstatic' 16434 ;; 16435 16436 unicos*) 16437 lt_prog_compiler_wl='-Wl,' 16438 lt_prog_compiler_can_build_shared=no 16439 ;; 16440 16441 uts4*) 16442 lt_prog_compiler_pic='-pic' 16443 lt_prog_compiler_static='-Bstatic' 16444 ;; 16445 16446 *) 16447 lt_prog_compiler_can_build_shared=no 16448 ;; 16449 esac 16450 fi 16451 16452 case $host_os in 16453 # For platforms that do not support PIC, -DPIC is meaningless: 16454 *djgpp*) 16455 lt_prog_compiler_pic= 16456 ;; 16457 *) 16458 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16459 ;; 16460 esac 16461 16462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16463 printf %s "checking for $compiler option to produce PIC... " >&6; } 16464 if test ${lt_cv_prog_compiler_pic+y} 16465 then : 16466 printf %s "(cached) " >&6 16467 else case e in #( 16468 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 16469 esac 16470 fi 16471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16472 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 16473 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16474 16475 # 16476 # Check to make sure the PIC flag actually works. 16477 # 16478 if test -n "$lt_prog_compiler_pic"; then 16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16480 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16481 if test ${lt_cv_prog_compiler_pic_works+y} 16482 then : 16483 printf %s "(cached) " >&6 16484 else case e in #( 16485 e) lt_cv_prog_compiler_pic_works=no 16486 ac_outfile=conftest.$ac_objext 16487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16488 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16489 # Insert the option either (1) after the last *FLAGS variable, or 16490 # (2) before a word containing "conftest.", or (3) at the end. 16491 # Note that $ac_compile itself does not contain backslashes and begins 16492 # with a dollar sign (not a hyphen), so the echo should work correctly. 16493 # The option is referenced via a variable to avoid confusing sed. 16494 lt_compile=`echo "$ac_compile" | $SED \ 16495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16497 -e 's:$: $lt_compiler_flag:'` 16498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16499 (eval "$lt_compile" 2>conftest.err) 16500 ac_status=$? 16501 cat conftest.err >&5 16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16503 if (exit $ac_status) && test -s "$ac_outfile"; then 16504 # The compiler can only warn and ignore the option if not recognized 16505 # So say no if there are warnings other than the usual output. 16506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16509 lt_cv_prog_compiler_pic_works=yes 16510 fi 16511 fi 16512 $RM conftest* 16513 ;; 16514 esac 16515 fi 16516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16517 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16518 16519 if test yes = "$lt_cv_prog_compiler_pic_works"; then 16520 case $lt_prog_compiler_pic in 16521 "" | " "*) ;; 16522 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16523 esac 16524 else 16525 lt_prog_compiler_pic= 16526 lt_prog_compiler_can_build_shared=no 16527 fi 16528 16529 fi 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 # 16542 # Check to make sure the static flag actually works. 16543 # 16544 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16546 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16547 if test ${lt_cv_prog_compiler_static_works+y} 16548 then : 16549 printf %s "(cached) " >&6 16550 else case e in #( 16551 e) lt_cv_prog_compiler_static_works=no 16552 save_LDFLAGS=$LDFLAGS 16553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16554 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16556 # The linker can only warn and ignore the option if not recognized 16557 # So say no if there are warnings 16558 if test -s conftest.err; then 16559 # Append any errors to the config.log. 16560 cat conftest.err 1>&5 16561 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16563 if diff conftest.exp conftest.er2 >/dev/null; then 16564 lt_cv_prog_compiler_static_works=yes 16565 fi 16566 else 16567 lt_cv_prog_compiler_static_works=yes 16568 fi 16569 fi 16570 $RM -r conftest* 16571 LDFLAGS=$save_LDFLAGS 16572 ;; 16573 esac 16574 fi 16575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16576 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16577 16578 if test yes = "$lt_cv_prog_compiler_static_works"; then 16579 : 16580 else 16581 lt_prog_compiler_static= 16582 fi 16583 16584 16585 16586 16587 16588 16589 16590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16591 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16592 if test ${lt_cv_prog_compiler_c_o+y} 16593 then : 16594 printf %s "(cached) " >&6 16595 else case e in #( 16596 e) lt_cv_prog_compiler_c_o=no 16597 $RM -r conftest 2>/dev/null 16598 mkdir conftest 16599 cd conftest 16600 mkdir out 16601 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16602 16603 lt_compiler_flag="-o out/conftest2.$ac_objext" 16604 # Insert the option either (1) after the last *FLAGS variable, or 16605 # (2) before a word containing "conftest.", or (3) at the end. 16606 # Note that $ac_compile itself does not contain backslashes and begins 16607 # with a dollar sign (not a hyphen), so the echo should work correctly. 16608 lt_compile=`echo "$ac_compile" | $SED \ 16609 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16610 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16611 -e 's:$: $lt_compiler_flag:'` 16612 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16613 (eval "$lt_compile" 2>out/conftest.err) 16614 ac_status=$? 16615 cat out/conftest.err >&5 16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16617 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16618 then 16619 # The compiler can only warn and ignore the option if not recognized 16620 # So say no if there are warnings 16621 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16622 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16623 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16624 lt_cv_prog_compiler_c_o=yes 16625 fi 16626 fi 16627 chmod u+w . 2>&5 16628 $RM conftest* 16629 # SGI C++ compiler will create directory out/ii_files/ for 16630 # template instantiation 16631 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16632 $RM out/* && rmdir out 16633 cd .. 16634 $RM -r conftest 16635 $RM conftest* 16636 ;; 16637 esac 16638 fi 16639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16640 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16641 16642 16643 16644 16645 16646 16647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16648 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16649 if test ${lt_cv_prog_compiler_c_o+y} 16650 then : 16651 printf %s "(cached) " >&6 16652 else case e in #( 16653 e) lt_cv_prog_compiler_c_o=no 16654 $RM -r conftest 2>/dev/null 16655 mkdir conftest 16656 cd conftest 16657 mkdir out 16658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16659 16660 lt_compiler_flag="-o out/conftest2.$ac_objext" 16661 # Insert the option either (1) after the last *FLAGS variable, or 16662 # (2) before a word containing "conftest.", or (3) at the end. 16663 # Note that $ac_compile itself does not contain backslashes and begins 16664 # with a dollar sign (not a hyphen), so the echo should work correctly. 16665 lt_compile=`echo "$ac_compile" | $SED \ 16666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16668 -e 's:$: $lt_compiler_flag:'` 16669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16670 (eval "$lt_compile" 2>out/conftest.err) 16671 ac_status=$? 16672 cat out/conftest.err >&5 16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16674 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16675 then 16676 # The compiler can only warn and ignore the option if not recognized 16677 # So say no if there are warnings 16678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16679 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16680 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16681 lt_cv_prog_compiler_c_o=yes 16682 fi 16683 fi 16684 chmod u+w . 2>&5 16685 $RM conftest* 16686 # SGI C++ compiler will create directory out/ii_files/ for 16687 # template instantiation 16688 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16689 $RM out/* && rmdir out 16690 cd .. 16691 $RM -r conftest 16692 $RM conftest* 16693 ;; 16694 esac 16695 fi 16696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16697 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16698 16699 16700 16701 16702 hard_links=nottested 16703 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16704 # do not overwrite the value of need_locks provided by the user 16705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16706 printf %s "checking if we can lock with hard links... " >&6; } 16707 hard_links=yes 16708 $RM conftest* 16709 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16710 touch conftest.a 16711 ln conftest.a conftest.b 2>&5 || hard_links=no 16712 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16714 printf "%s\n" "$hard_links" >&6; } 16715 if test no = "$hard_links"; then 16716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16717 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16718 need_locks=warn 16719 fi 16720 else 16721 need_locks=no 16722 fi 16723 16724 16725 16726 16727 16728 16729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16730 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16731 16732 runpath_var= 16733 allow_undefined_flag= 16734 always_export_symbols=no 16735 archive_cmds= 16736 archive_expsym_cmds= 16737 compiler_needs_object=no 16738 enable_shared_with_static_runtimes=no 16739 export_dynamic_flag_spec= 16740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16741 hardcode_automatic=no 16742 hardcode_direct=no 16743 hardcode_direct_absolute=no 16744 hardcode_libdir_flag_spec= 16745 hardcode_libdir_separator= 16746 hardcode_minus_L=no 16747 hardcode_shlibpath_var=unsupported 16748 inherit_rpath=no 16749 link_all_deplibs=unknown 16750 module_cmds= 16751 module_expsym_cmds= 16752 old_archive_from_new_cmds= 16753 old_archive_from_expsyms_cmds= 16754 thread_safe_flag_spec= 16755 whole_archive_flag_spec= 16756 # include_expsyms should be a list of space-separated symbols to be *always* 16757 # included in the symbol list 16758 include_expsyms= 16759 # exclude_expsyms can be an extended regexp of symbols to exclude 16760 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16761 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16762 # as well as any symbol that contains 'd'. 16763 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16764 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16765 # platforms (ab)use it in PIC code, but their linkers get confused if 16766 # the symbol is explicitly referenced. Since portable code cannot 16767 # rely on this symbol name, it's probably fine to never include it in 16768 # preloaded symbol tables. 16769 # Exclude shared library initialization/finalization symbols. 16770 extract_expsyms_cmds= 16771 16772 case $host_os in 16773 cygwin* | mingw* | windows* | pw32* | cegcc*) 16774 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16775 # When not using gcc, we currently assume that we are using 16776 # Microsoft Visual C++ or Intel C++ Compiler. 16777 if test yes != "$GCC"; then 16778 with_gnu_ld=no 16779 fi 16780 ;; 16781 interix*) 16782 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16783 with_gnu_ld=yes 16784 ;; 16785 esac 16786 16787 ld_shlibs=yes 16788 16789 # On some targets, GNU ld is compatible enough with the native linker 16790 # that we're better off using the native interface for both. 16791 lt_use_gnu_ld_interface=no 16792 if test yes = "$with_gnu_ld"; then 16793 case $host_os in 16794 aix*) 16795 # The AIX port of GNU ld has always aspired to compatibility 16796 # with the native linker. However, as the warning in the GNU ld 16797 # block says, versions before 2.19.5* couldn't really create working 16798 # shared libraries, regardless of the interface used. 16799 case `$LD -v 2>&1` in 16800 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16801 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16802 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16803 *) 16804 lt_use_gnu_ld_interface=yes 16805 ;; 16806 esac 16807 ;; 16808 *) 16809 lt_use_gnu_ld_interface=yes 16810 ;; 16811 esac 16812 fi 16813 16814 if test yes = "$lt_use_gnu_ld_interface"; then 16815 # If archive_cmds runs LD, not CC, wlarc should be empty 16816 wlarc='$wl' 16817 16818 # Set some defaults for GNU ld with shared library support. These 16819 # are reset later if shared libraries are not supported. Putting them 16820 # here allows them to be overridden if necessary. 16821 runpath_var=LD_RUN_PATH 16822 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16823 export_dynamic_flag_spec='$wl--export-dynamic' 16824 # ancient GNU ld didn't support --whole-archive et. al. 16825 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16826 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16827 else 16828 whole_archive_flag_spec= 16829 fi 16830 supports_anon_versioning=no 16831 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16832 *GNU\ gold*) supports_anon_versioning=yes ;; 16833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16836 *\ 2.11.*) ;; # other 2.11 versions 16837 *) supports_anon_versioning=yes ;; 16838 esac 16839 16840 # See if GNU ld supports shared libraries. 16841 case $host_os in 16842 aix[3-9]*) 16843 # On AIX/PPC, the GNU linker is very broken 16844 if test ia64 != "$host_cpu"; then 16845 ld_shlibs=no 16846 cat <<_LT_EOF 1>&2 16847 16848 *** Warning: the GNU linker, at least up to release 2.19, is reported 16849 *** to be unable to reliably create shared libraries on AIX. 16850 *** Therefore, libtool is disabling shared libraries support. If you 16851 *** really care for shared libraries, you may want to install binutils 16852 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16853 *** You will then need to restart the configuration process. 16854 16855 _LT_EOF 16856 fi 16857 ;; 16858 16859 amigaos*) 16860 case $host_cpu in 16861 powerpc) 16862 # see comment about AmigaOS4 .so support 16863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16864 archive_expsym_cmds='' 16865 ;; 16866 m68k) 16867 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)' 16868 hardcode_libdir_flag_spec='-L$libdir' 16869 hardcode_minus_L=yes 16870 ;; 16871 esac 16872 ;; 16873 16874 beos*) 16875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16876 allow_undefined_flag=unsupported 16877 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16878 # support --undefined. This deserves some investigation. FIXME 16879 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16880 else 16881 ld_shlibs=no 16882 fi 16883 ;; 16884 16885 cygwin* | mingw* | windows* | pw32* | cegcc*) 16886 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16887 # as there is no search path for DLLs. 16888 hardcode_libdir_flag_spec='-L$libdir' 16889 export_dynamic_flag_spec='$wl--export-all-symbols' 16890 allow_undefined_flag=unsupported 16891 always_export_symbols=no 16892 enable_shared_with_static_runtimes=yes 16893 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' 16894 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16895 file_list_spec='@' 16896 16897 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16899 # If the export-symbols file already is a .def file, use it as 16900 # is; otherwise, prepend EXPORTS... 16901 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16902 cp $export_symbols $output_objdir/$soname.def; 16903 else 16904 echo EXPORTS > $output_objdir/$soname.def; 16905 cat $export_symbols >> $output_objdir/$soname.def; 16906 fi~ 16907 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16908 else 16909 ld_shlibs=no 16910 fi 16911 ;; 16912 16913 haiku*) 16914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16915 link_all_deplibs=no 16916 ;; 16917 16918 os2*) 16919 hardcode_libdir_flag_spec='-L$libdir' 16920 hardcode_minus_L=yes 16921 allow_undefined_flag=unsupported 16922 shrext_cmds=.dll 16923 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16924 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16925 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16926 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16927 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16928 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16929 emximp -o $lib $output_objdir/$libname.def' 16930 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16931 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16932 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16933 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16934 prefix_cmds="$SED"~ 16935 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16936 prefix_cmds="$prefix_cmds -e 1d"; 16937 fi~ 16938 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16939 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16940 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16941 emximp -o $lib $output_objdir/$libname.def' 16942 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16943 enable_shared_with_static_runtimes=yes 16944 file_list_spec='@' 16945 ;; 16946 16947 interix[3-9]*) 16948 hardcode_direct=no 16949 hardcode_shlibpath_var=no 16950 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16951 export_dynamic_flag_spec='$wl-E' 16952 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16953 # Instead, shared libraries are loaded at an image base (0x10000000 by 16954 # default) and relocated if they conflict, which is a slow very memory 16955 # consuming and fragmenting process. To avoid this, we pick a random, 16956 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16957 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16958 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16959 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' 16960 ;; 16961 16962 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16963 tmp_diet=no 16964 if test linux-dietlibc = "$host_os"; then 16965 case $cc_basename in 16966 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16967 esac 16968 fi 16969 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16970 && test no = "$tmp_diet" 16971 then 16972 tmp_addflag=' $pic_flag' 16973 tmp_sharedflag='-shared' 16974 case $cc_basename,$host_cpu in 16975 pgcc*) # Portland Group C compiler 16976 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' 16977 tmp_addflag=' $pic_flag' 16978 ;; 16979 pgf77* | pgf90* | pgf95* | pgfortran*) 16980 # Portland Group f77 and f90 compilers 16981 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' 16982 tmp_addflag=' $pic_flag -Mnomain' ;; 16983 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16984 tmp_addflag=' -i_dynamic' ;; 16985 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16986 tmp_addflag=' -i_dynamic -nofor_main' ;; 16987 ifc* | ifort*) # Intel Fortran compiler 16988 tmp_addflag=' -nofor_main' ;; 16989 lf95*) # Lahey Fortran 8.1 16990 whole_archive_flag_spec= 16991 tmp_sharedflag='--shared' ;; 16992 nagfor*) # NAGFOR 5.3 16993 tmp_sharedflag='-Wl,-shared' ;; 16994 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16995 tmp_sharedflag='-qmkshrobj' 16996 tmp_addflag= ;; 16997 nvcc*) # Cuda Compiler Driver 2.2 16998 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' 16999 compiler_needs_object=yes 17000 ;; 17001 esac 17002 case `$CC -V 2>&1 | $SED 5q` in 17003 *Sun\ C*) # Sun C 5.9 17004 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' 17005 compiler_needs_object=yes 17006 tmp_sharedflag='-G' ;; 17007 *Sun\ F*) # Sun Fortran 8.3 17008 tmp_sharedflag='-G' ;; 17009 esac 17010 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17011 17012 if test yes = "$supports_anon_versioning"; then 17013 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 17014 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17015 echo "local: *; };" >> $output_objdir/$libname.ver~ 17016 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 17017 fi 17018 17019 case $cc_basename in 17020 tcc*) 17021 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17022 export_dynamic_flag_spec='-rdynamic' 17023 ;; 17024 xlf* | bgf* | bgxlf* | mpixlf*) 17025 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 17026 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 17027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17028 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 17029 if test yes = "$supports_anon_versioning"; then 17030 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 17031 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17032 echo "local: *; };" >> $output_objdir/$libname.ver~ 17033 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 17034 fi 17035 ;; 17036 esac 17037 else 17038 ld_shlibs=no 17039 fi 17040 ;; 17041 17042 *-mlibc) 17043 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17044 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17045 ;; 17046 17047 netbsd* | netbsdelf*-gnu) 17048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17049 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17050 wlarc= 17051 else 17052 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17053 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17054 fi 17055 ;; 17056 17057 solaris*) 17058 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 17059 ld_shlibs=no 17060 cat <<_LT_EOF 1>&2 17061 17062 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 17063 *** create shared libraries on Solaris systems. Therefore, libtool 17064 *** is disabling shared libraries support. We urge you to upgrade GNU 17065 *** binutils to release 2.9.1 or newer. Another option is to modify 17066 *** your PATH or compiler configuration so that the native linker is 17067 *** used, and then restart. 17068 17069 _LT_EOF 17070 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17071 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17072 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17073 else 17074 ld_shlibs=no 17075 fi 17076 ;; 17077 17078 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17079 case `$LD -v 2>&1` in 17080 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17081 ld_shlibs=no 17082 cat <<_LT_EOF 1>&2 17083 17084 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 17085 *** reliably create shared libraries on SCO systems. Therefore, libtool 17086 *** is disabling shared libraries support. We urge you to upgrade GNU 17087 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17088 *** your PATH or compiler configuration so that the native linker is 17089 *** used, and then restart. 17090 17091 _LT_EOF 17092 ;; 17093 *) 17094 # For security reasons, it is highly recommended that you always 17095 # use absolute paths for naming shared libraries, and exclude the 17096 # DT_RUNPATH tag from executables and libraries. But doing so 17097 # requires that you compile everything twice, which is a pain. 17098 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17099 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17101 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17102 else 17103 ld_shlibs=no 17104 fi 17105 ;; 17106 esac 17107 ;; 17108 17109 sunos4*) 17110 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17111 wlarc= 17112 hardcode_direct=yes 17113 hardcode_shlibpath_var=no 17114 ;; 17115 17116 *) 17117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17118 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17119 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17120 else 17121 ld_shlibs=no 17122 fi 17123 ;; 17124 esac 17125 17126 if test no = "$ld_shlibs"; then 17127 runpath_var= 17128 hardcode_libdir_flag_spec= 17129 export_dynamic_flag_spec= 17130 whole_archive_flag_spec= 17131 fi 17132 else 17133 # PORTME fill in a description of your system's linker (not GNU ld) 17134 case $host_os in 17135 aix3*) 17136 allow_undefined_flag=unsupported 17137 always_export_symbols=yes 17138 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' 17139 # Note: this linker hardcodes the directories in LIBPATH if there 17140 # are no directories specified by -L. 17141 hardcode_minus_L=yes 17142 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 17143 # Neither direct hardcoding nor static linking is supported with a 17144 # broken collect2. 17145 hardcode_direct=unsupported 17146 fi 17147 ;; 17148 17149 aix[4-9]*) 17150 if test ia64 = "$host_cpu"; then 17151 # On IA64, the linker does run time linking by default, so we don't 17152 # have to do anything special. 17153 aix_use_runtimelinking=no 17154 exp_sym_flag='-Bexport' 17155 no_entry_flag= 17156 else 17157 # If we're using GNU nm, then we don't want the "-C" option. 17158 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17159 # Without the "-l" option, or with the "-B" option, AIX nm treats 17160 # weak defined symbols like other global defined symbols, whereas 17161 # GNU nm marks them as "W". 17162 # While the 'weak' keyword is ignored in the Export File, we need 17163 # it in the Import File for the 'aix-soname' feature, so we have 17164 # to replace the "-B" option with "-P" for AIX nm. 17165 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17166 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' 17167 else 17168 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' 17169 fi 17170 aix_use_runtimelinking=no 17171 17172 # Test if we are trying to use run time linking or normal 17173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17174 # have runtime linking enabled, and use it for executables. 17175 # For shared libraries, we enable/disable runtime linking 17176 # depending on the kind of the shared library created - 17177 # when "with_aix_soname,aix_use_runtimelinking" is: 17178 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 17179 # "aix,yes" lib.so shared, rtl:yes, for executables 17180 # lib.a static archive 17181 # "both,no" lib.so.V(shr.o) shared, rtl:yes 17182 # lib.a(lib.so.V) shared, rtl:no, for executables 17183 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 17184 # lib.a(lib.so.V) shared, rtl:no 17185 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 17186 # lib.a static archive 17187 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17188 for ld_flag in $LDFLAGS; do 17189 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 17190 aix_use_runtimelinking=yes 17191 break 17192 fi 17193 done 17194 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17195 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17196 # so we don't have lib.a shared libs to link our executables. 17197 # We have to force runtime linking in this case. 17198 aix_use_runtimelinking=yes 17199 LDFLAGS="$LDFLAGS -Wl,-brtl" 17200 fi 17201 ;; 17202 esac 17203 17204 exp_sym_flag='-bexport' 17205 no_entry_flag='-bnoentry' 17206 fi 17207 17208 # When large executables or shared objects are built, AIX ld can 17209 # have problems creating the table of contents. If linking a library 17210 # or program results in "error TOC overflow" add -mminimal-toc to 17211 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17212 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17213 17214 archive_cmds='' 17215 hardcode_direct=yes 17216 hardcode_direct_absolute=yes 17217 hardcode_libdir_separator=':' 17218 link_all_deplibs=yes 17219 file_list_spec='$wl-f,' 17220 case $with_aix_soname,$aix_use_runtimelinking in 17221 aix,*) ;; # traditional, no import file 17222 svr4,* | *,yes) # use import file 17223 # The Import File defines what to hardcode. 17224 hardcode_direct=no 17225 hardcode_direct_absolute=no 17226 ;; 17227 esac 17228 17229 if test yes = "$GCC"; then 17230 case $host_os in aix4.[012]|aix4.[012].*) 17231 # We only want to do this on AIX 4.2 and lower, the check 17232 # below for broken collect2 doesn't work under 4.3+ 17233 collect2name=`$CC -print-prog-name=collect2` 17234 if test -f "$collect2name" && 17235 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17236 then 17237 # We have reworked collect2 17238 : 17239 else 17240 # We have old collect2 17241 hardcode_direct=unsupported 17242 # It fails to find uninstalled libraries when the uninstalled 17243 # path is not listed in the libpath. Setting hardcode_minus_L 17244 # to unsupported forces relinking 17245 hardcode_minus_L=yes 17246 hardcode_libdir_flag_spec='-L$libdir' 17247 hardcode_libdir_separator= 17248 fi 17249 ;; 17250 esac 17251 shared_flag='-shared' 17252 if test yes = "$aix_use_runtimelinking"; then 17253 shared_flag="$shared_flag "'$wl-G' 17254 fi 17255 # Need to ensure runtime linking is disabled for the traditional 17256 # shared library, or the linker may eventually find shared libraries 17257 # /with/ Import File - we do not want to mix them. 17258 shared_flag_aix='-shared' 17259 shared_flag_svr4='-shared $wl-G' 17260 else 17261 # not using gcc 17262 if test ia64 = "$host_cpu"; then 17263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17264 # chokes on -Wl,-G. The following line is correct: 17265 shared_flag='-G' 17266 else 17267 if test yes = "$aix_use_runtimelinking"; then 17268 shared_flag='$wl-G' 17269 else 17270 shared_flag='$wl-bM:SRE' 17271 fi 17272 shared_flag_aix='$wl-bM:SRE' 17273 shared_flag_svr4='$wl-G' 17274 fi 17275 fi 17276 17277 export_dynamic_flag_spec='$wl-bexpall' 17278 # It seems that -bexpall does not export symbols beginning with 17279 # underscore (_), so it is better to generate a list of symbols to export. 17280 always_export_symbols=yes 17281 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17282 # Warning - without using the other runtime loading flags (-brtl), 17283 # -berok will link without error, but may produce a broken library. 17284 allow_undefined_flag='-berok' 17285 # Determine the default libpath from the value encoded in an 17286 # empty executable. 17287 if test set = "${lt_cv_aix_libpath+set}"; then 17288 aix_libpath=$lt_cv_aix_libpath 17289 else 17290 if test ${lt_cv_aix_libpath_+y} 17291 then : 17292 printf %s "(cached) " >&6 17293 else case e in #( 17294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17295 /* end confdefs.h. */ 17296 17297 int 17298 main (void) 17299 { 17300 17301 ; 17302 return 0; 17303 } 17304 _ACEOF 17305 if ac_fn_c_try_link "$LINENO" 17306 then : 17307 17308 lt_aix_libpath_sed=' 17309 /Import File Strings/,/^$/ { 17310 /^0/ { 17311 s/^0 *\([^ ]*\) *$/\1/ 17312 p 17313 } 17314 }' 17315 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17316 # Check for a 64-bit object if we didn't find anything. 17317 if test -z "$lt_cv_aix_libpath_"; then 17318 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17319 fi 17320 fi 17321 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17322 conftest$ac_exeext conftest.$ac_ext 17323 if test -z "$lt_cv_aix_libpath_"; then 17324 lt_cv_aix_libpath_=/usr/lib:/lib 17325 fi 17326 ;; 17327 esac 17328 fi 17329 17330 aix_libpath=$lt_cv_aix_libpath_ 17331 fi 17332 17333 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17334 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 17335 else 17336 if test ia64 = "$host_cpu"; then 17337 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17338 allow_undefined_flag="-z nodefs" 17339 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" 17340 else 17341 # Determine the default libpath from the value encoded in an 17342 # empty executable. 17343 if test set = "${lt_cv_aix_libpath+set}"; then 17344 aix_libpath=$lt_cv_aix_libpath 17345 else 17346 if test ${lt_cv_aix_libpath_+y} 17347 then : 17348 printf %s "(cached) " >&6 17349 else case e in #( 17350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17351 /* end confdefs.h. */ 17352 17353 int 17354 main (void) 17355 { 17356 17357 ; 17358 return 0; 17359 } 17360 _ACEOF 17361 if ac_fn_c_try_link "$LINENO" 17362 then : 17363 17364 lt_aix_libpath_sed=' 17365 /Import File Strings/,/^$/ { 17366 /^0/ { 17367 s/^0 *\([^ ]*\) *$/\1/ 17368 p 17369 } 17370 }' 17371 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17372 # Check for a 64-bit object if we didn't find anything. 17373 if test -z "$lt_cv_aix_libpath_"; then 17374 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17375 fi 17376 fi 17377 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17378 conftest$ac_exeext conftest.$ac_ext 17379 if test -z "$lt_cv_aix_libpath_"; then 17380 lt_cv_aix_libpath_=/usr/lib:/lib 17381 fi 17382 ;; 17383 esac 17384 fi 17385 17386 aix_libpath=$lt_cv_aix_libpath_ 17387 fi 17388 17389 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17390 # Warning - without using the other run time loading flags, 17391 # -berok will link without error, but may produce a broken library. 17392 no_undefined_flag=' $wl-bernotok' 17393 allow_undefined_flag=' $wl-berok' 17394 if test yes = "$with_gnu_ld"; then 17395 # We only use this code for GNU lds that support --whole-archive. 17396 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17397 else 17398 # Exported symbols can be pulled into shared objects from archives 17399 whole_archive_flag_spec='$convenience' 17400 fi 17401 archive_cmds_need_lc=yes 17402 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17403 # -brtl affects multiple linker settings, -berok does not and is overridden later 17404 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17405 if test svr4 != "$with_aix_soname"; then 17406 # This is similar to how AIX traditionally builds its shared libraries. 17407 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' 17408 fi 17409 if test aix != "$with_aix_soname"; then 17410 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' 17411 else 17412 # used by -dlpreopen to get the symbols 17413 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17414 fi 17415 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17416 fi 17417 fi 17418 ;; 17419 17420 amigaos*) 17421 case $host_cpu in 17422 powerpc) 17423 # see comment about AmigaOS4 .so support 17424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17425 archive_expsym_cmds='' 17426 ;; 17427 m68k) 17428 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)' 17429 hardcode_libdir_flag_spec='-L$libdir' 17430 hardcode_minus_L=yes 17431 ;; 17432 esac 17433 ;; 17434 17435 bsdi[45]*) 17436 export_dynamic_flag_spec=-rdynamic 17437 ;; 17438 17439 cygwin* | mingw* | windows* | pw32* | cegcc*) 17440 # When not using gcc, we currently assume that we are using 17441 # Microsoft Visual C++ or Intel C++ Compiler. 17442 # hardcode_libdir_flag_spec is actually meaningless, as there is 17443 # no search path for DLLs. 17444 case $cc_basename in 17445 cl* | icl*) 17446 # Native MSVC or ICC 17447 hardcode_libdir_flag_spec=' ' 17448 allow_undefined_flag=unsupported 17449 always_export_symbols=yes 17450 file_list_spec='@' 17451 # Tell ltmain to make .lib files, not .a files. 17452 libext=lib 17453 # Tell ltmain to make .dll files, not .so files. 17454 shrext_cmds=.dll 17455 # FIXME: Setting linknames here is a bad hack. 17456 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17457 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17458 cp "$export_symbols" "$output_objdir/$soname.def"; 17459 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17460 else 17461 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17462 fi~ 17463 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17464 linknames=' 17465 # The linker will not automatically build a static lib if we build a DLL. 17466 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17467 enable_shared_with_static_runtimes=yes 17468 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17469 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17470 # Don't use ranlib 17471 old_postinstall_cmds='chmod 644 $oldlib' 17472 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17473 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17474 case $lt_outputfile in 17475 *.exe|*.EXE) ;; 17476 *) 17477 lt_outputfile=$lt_outputfile.exe 17478 lt_tool_outputfile=$lt_tool_outputfile.exe 17479 ;; 17480 esac~ 17481 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17482 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17483 $RM "$lt_outputfile.manifest"; 17484 fi' 17485 ;; 17486 *) 17487 # Assume MSVC and ICC wrapper 17488 hardcode_libdir_flag_spec=' ' 17489 allow_undefined_flag=unsupported 17490 # Tell ltmain to make .lib files, not .a files. 17491 libext=lib 17492 # Tell ltmain to make .dll files, not .so files. 17493 shrext_cmds=.dll 17494 # FIXME: Setting linknames here is a bad hack. 17495 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17496 # The linker will automatically build a .lib file if we build a DLL. 17497 old_archive_from_new_cmds='true' 17498 # FIXME: Should let the user specify the lib program. 17499 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17500 enable_shared_with_static_runtimes=yes 17501 ;; 17502 esac 17503 ;; 17504 17505 darwin* | rhapsody*) 17506 17507 17508 archive_cmds_need_lc=no 17509 hardcode_direct=no 17510 hardcode_automatic=yes 17511 hardcode_shlibpath_var=unsupported 17512 if test yes = "$lt_cv_ld_force_load"; then 17513 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\"`' 17514 17515 else 17516 whole_archive_flag_spec='' 17517 fi 17518 link_all_deplibs=yes 17519 allow_undefined_flag=$_lt_dar_allow_undefined 17520 case $cc_basename in 17521 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17522 *) _lt_dar_can_shared=$GCC ;; 17523 esac 17524 if test yes = "$_lt_dar_can_shared"; then 17525 output_verbose_link_cmd=func_echo_all 17526 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17527 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17528 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" 17529 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" 17530 17531 else 17532 ld_shlibs=no 17533 fi 17534 17535 ;; 17536 17537 dgux*) 17538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17539 hardcode_libdir_flag_spec='-L$libdir' 17540 hardcode_shlibpath_var=no 17541 ;; 17542 17543 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17544 # support. Future versions do this automatically, but an explicit c++rt0.o 17545 # does not break anything, and helps significantly (at the cost of a little 17546 # extra space). 17547 freebsd2.2*) 17548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17549 hardcode_libdir_flag_spec='-R$libdir' 17550 hardcode_direct=yes 17551 hardcode_shlibpath_var=no 17552 ;; 17553 17554 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17555 freebsd2.*) 17556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17557 hardcode_direct=yes 17558 hardcode_minus_L=yes 17559 hardcode_shlibpath_var=no 17560 ;; 17561 17562 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17563 freebsd* | dragonfly* | midnightbsd*) 17564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17565 hardcode_libdir_flag_spec='-R$libdir' 17566 hardcode_direct=yes 17567 hardcode_shlibpath_var=no 17568 ;; 17569 17570 hpux9*) 17571 if test yes = "$GCC"; then 17572 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' 17573 else 17574 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' 17575 fi 17576 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17577 hardcode_libdir_separator=: 17578 hardcode_direct=yes 17579 17580 # hardcode_minus_L: Not really in the search PATH, 17581 # but as the default location of the library. 17582 hardcode_minus_L=yes 17583 export_dynamic_flag_spec='$wl-E' 17584 ;; 17585 17586 hpux10*) 17587 if test yes,no = "$GCC,$with_gnu_ld"; then 17588 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17589 else 17590 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17591 fi 17592 if test no = "$with_gnu_ld"; then 17593 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17594 hardcode_libdir_separator=: 17595 hardcode_direct=yes 17596 hardcode_direct_absolute=yes 17597 export_dynamic_flag_spec='$wl-E' 17598 # hardcode_minus_L: Not really in the search PATH, 17599 # but as the default location of the library. 17600 hardcode_minus_L=yes 17601 fi 17602 ;; 17603 17604 hpux11*) 17605 if test yes,no = "$GCC,$with_gnu_ld"; then 17606 case $host_cpu in 17607 hppa*64*) 17608 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17609 ;; 17610 ia64*) 17611 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17612 ;; 17613 *) 17614 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17615 ;; 17616 esac 17617 else 17618 case $host_cpu in 17619 hppa*64*) 17620 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17621 ;; 17622 ia64*) 17623 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17624 ;; 17625 *) 17626 17627 # Older versions of the 11.00 compiler do not understand -b yet 17628 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17630 printf %s "checking if $CC understands -b... " >&6; } 17631 if test ${lt_cv_prog_compiler__b+y} 17632 then : 17633 printf %s "(cached) " >&6 17634 else case e in #( 17635 e) lt_cv_prog_compiler__b=no 17636 save_LDFLAGS=$LDFLAGS 17637 LDFLAGS="$LDFLAGS -b" 17638 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17639 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17640 # The linker can only warn and ignore the option if not recognized 17641 # So say no if there are warnings 17642 if test -s conftest.err; then 17643 # Append any errors to the config.log. 17644 cat conftest.err 1>&5 17645 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17647 if diff conftest.exp conftest.er2 >/dev/null; then 17648 lt_cv_prog_compiler__b=yes 17649 fi 17650 else 17651 lt_cv_prog_compiler__b=yes 17652 fi 17653 fi 17654 $RM -r conftest* 17655 LDFLAGS=$save_LDFLAGS 17656 ;; 17657 esac 17658 fi 17659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17660 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17661 17662 if test yes = "$lt_cv_prog_compiler__b"; then 17663 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17664 else 17665 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17666 fi 17667 17668 ;; 17669 esac 17670 fi 17671 if test no = "$with_gnu_ld"; then 17672 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17673 hardcode_libdir_separator=: 17674 17675 case $host_cpu in 17676 hppa*64*|ia64*) 17677 hardcode_direct=no 17678 hardcode_shlibpath_var=no 17679 ;; 17680 *) 17681 hardcode_direct=yes 17682 hardcode_direct_absolute=yes 17683 export_dynamic_flag_spec='$wl-E' 17684 17685 # hardcode_minus_L: Not really in the search PATH, 17686 # but as the default location of the library. 17687 hardcode_minus_L=yes 17688 ;; 17689 esac 17690 fi 17691 ;; 17692 17693 irix5* | irix6* | nonstopux*) 17694 if test yes = "$GCC"; then 17695 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' 17696 # Try to use the -exported_symbol ld option, if it does not 17697 # work, assume that -exports_file does not work either and 17698 # implicitly export all symbols. 17699 # This should be the same for all languages, so no per-tag cache variable. 17700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17701 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17702 if test ${lt_cv_irix_exported_symbol+y} 17703 then : 17704 printf %s "(cached) " >&6 17705 else case e in #( 17706 e) save_LDFLAGS=$LDFLAGS 17707 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17709 /* end confdefs.h. */ 17710 int foo (void) { return 0; } 17711 _ACEOF 17712 if ac_fn_c_try_link "$LINENO" 17713 then : 17714 lt_cv_irix_exported_symbol=yes 17715 else case e in #( 17716 e) lt_cv_irix_exported_symbol=no ;; 17717 esac 17718 fi 17719 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17720 conftest$ac_exeext conftest.$ac_ext 17721 LDFLAGS=$save_LDFLAGS ;; 17722 esac 17723 fi 17724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17725 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17726 if test yes = "$lt_cv_irix_exported_symbol"; then 17727 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' 17728 fi 17729 else 17730 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' 17731 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' 17732 fi 17733 archive_cmds_need_lc='no' 17734 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17735 hardcode_libdir_separator=: 17736 inherit_rpath=yes 17737 link_all_deplibs=yes 17738 ;; 17739 17740 linux*) 17741 case $cc_basename in 17742 tcc*) 17743 # Fabrice Bellard et al's Tiny C Compiler 17744 ld_shlibs=yes 17745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17747 ;; 17748 esac 17749 ;; 17750 17751 *-mlibc) 17752 ;; 17753 17754 netbsd* | netbsdelf*-gnu) 17755 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17757 else 17758 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17759 fi 17760 hardcode_libdir_flag_spec='-R$libdir' 17761 hardcode_direct=yes 17762 hardcode_shlibpath_var=no 17763 ;; 17764 17765 newsos6) 17766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17767 hardcode_direct=yes 17768 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17769 hardcode_libdir_separator=: 17770 hardcode_shlibpath_var=no 17771 ;; 17772 17773 *nto* | *qnx*) 17774 ;; 17775 17776 openbsd*) 17777 if test -f /usr/libexec/ld.so; then 17778 hardcode_direct=yes 17779 hardcode_shlibpath_var=no 17780 hardcode_direct_absolute=yes 17781 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17783 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17784 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17785 export_dynamic_flag_spec='$wl-E' 17786 else 17787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17788 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17789 fi 17790 else 17791 ld_shlibs=no 17792 fi 17793 ;; 17794 17795 os2*) 17796 hardcode_libdir_flag_spec='-L$libdir' 17797 hardcode_minus_L=yes 17798 allow_undefined_flag=unsupported 17799 shrext_cmds=.dll 17800 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17801 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17802 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17803 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17804 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17805 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17806 emximp -o $lib $output_objdir/$libname.def' 17807 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17808 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17809 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17810 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17811 prefix_cmds="$SED"~ 17812 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17813 prefix_cmds="$prefix_cmds -e 1d"; 17814 fi~ 17815 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17816 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17817 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17818 emximp -o $lib $output_objdir/$libname.def' 17819 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17820 enable_shared_with_static_runtimes=yes 17821 file_list_spec='@' 17822 ;; 17823 17824 osf3*) 17825 if test yes = "$GCC"; then 17826 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17827 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' 17828 else 17829 allow_undefined_flag=' -expect_unresolved \*' 17830 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' 17831 fi 17832 archive_cmds_need_lc='no' 17833 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17834 hardcode_libdir_separator=: 17835 ;; 17836 17837 osf4* | osf5*) # as osf3* with the addition of -msym flag 17838 if test yes = "$GCC"; then 17839 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17840 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' 17841 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17842 else 17843 allow_undefined_flag=' -expect_unresolved \*' 17844 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' 17845 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~ 17846 $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' 17847 17848 # Both c and cxx compiler support -rpath directly 17849 hardcode_libdir_flag_spec='-rpath $libdir' 17850 fi 17851 archive_cmds_need_lc='no' 17852 hardcode_libdir_separator=: 17853 ;; 17854 17855 serenity*) 17856 ;; 17857 17858 solaris*) 17859 no_undefined_flag=' -z defs' 17860 if test yes = "$GCC"; then 17861 wlarc='$wl' 17862 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17864 $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' 17865 else 17866 case `$CC -V 2>&1` in 17867 *"Compilers 5.0"*) 17868 wlarc='' 17869 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17871 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17872 ;; 17873 *) 17874 wlarc='$wl' 17875 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17877 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17878 ;; 17879 esac 17880 fi 17881 hardcode_libdir_flag_spec='-R$libdir' 17882 hardcode_shlibpath_var=no 17883 case $host_os in 17884 solaris2.[0-5] | solaris2.[0-5].*) ;; 17885 *) 17886 # The compiler driver will combine and reorder linker options, 17887 # but understands '-z linker_flag'. GCC discards it without '$wl', 17888 # but is careful enough not to reorder. 17889 # Supported since Solaris 2.6 (maybe 2.5.1?) 17890 if test yes = "$GCC"; then 17891 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17892 else 17893 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17894 fi 17895 ;; 17896 esac 17897 link_all_deplibs=yes 17898 ;; 17899 17900 sunos4*) 17901 if test sequent = "$host_vendor"; then 17902 # Use $CC to link under sequent, because it throws in some extra .o 17903 # files that make .init and .fini sections work. 17904 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17905 else 17906 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17907 fi 17908 hardcode_libdir_flag_spec='-L$libdir' 17909 hardcode_direct=yes 17910 hardcode_minus_L=yes 17911 hardcode_shlibpath_var=no 17912 ;; 17913 17914 sysv4) 17915 case $host_vendor in 17916 sni) 17917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17918 hardcode_direct=yes # is this really true??? 17919 ;; 17920 siemens) 17921 ## LD is ld it makes a PLAMLIB 17922 ## CC just makes a GrossModule. 17923 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17924 reload_cmds='$CC -r -o $output$reload_objs' 17925 hardcode_direct=no 17926 ;; 17927 motorola) 17928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17929 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17930 ;; 17931 esac 17932 runpath_var='LD_RUN_PATH' 17933 hardcode_shlibpath_var=no 17934 ;; 17935 17936 sysv4.3*) 17937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17938 hardcode_shlibpath_var=no 17939 export_dynamic_flag_spec='-Bexport' 17940 ;; 17941 17942 sysv4*MP*) 17943 if test -d /usr/nec; then 17944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17945 hardcode_shlibpath_var=no 17946 runpath_var=LD_RUN_PATH 17947 hardcode_runpath_var=yes 17948 ld_shlibs=yes 17949 fi 17950 ;; 17951 17952 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17953 no_undefined_flag='$wl-z,text' 17954 archive_cmds_need_lc=no 17955 hardcode_shlibpath_var=no 17956 runpath_var='LD_RUN_PATH' 17957 17958 if test yes = "$GCC"; then 17959 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17960 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17961 else 17962 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17963 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17964 fi 17965 ;; 17966 17967 sysv5* | sco3.2v5* | sco5v6*) 17968 # Note: We CANNOT use -z defs as we might desire, because we do not 17969 # link with -lc, and that would cause any symbols used from libc to 17970 # always be unresolved, which means just about no library would 17971 # ever link correctly. If we're not using GNU ld we use -z text 17972 # though, which does catch some bad symbols but isn't as heavy-handed 17973 # as -z defs. 17974 no_undefined_flag='$wl-z,text' 17975 allow_undefined_flag='$wl-z,nodefs' 17976 archive_cmds_need_lc=no 17977 hardcode_shlibpath_var=no 17978 hardcode_libdir_flag_spec='$wl-R,$libdir' 17979 hardcode_libdir_separator=':' 17980 link_all_deplibs=yes 17981 export_dynamic_flag_spec='$wl-Bexport' 17982 runpath_var='LD_RUN_PATH' 17983 17984 if test yes = "$GCC"; then 17985 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17986 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17987 else 17988 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17989 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17990 fi 17991 ;; 17992 17993 uts4*) 17994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17995 hardcode_libdir_flag_spec='-L$libdir' 17996 hardcode_shlibpath_var=no 17997 ;; 17998 17999 *) 18000 ld_shlibs=no 18001 ;; 18002 esac 18003 18004 if test sni = "$host_vendor"; then 18005 case $host in 18006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18007 export_dynamic_flag_spec='$wl-Blargedynsym' 18008 ;; 18009 esac 18010 fi 18011 fi 18012 18013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 18014 printf "%s\n" "$ld_shlibs" >&6; } 18015 test no = "$ld_shlibs" && can_build_shared=no 18016 18017 with_gnu_ld=$with_gnu_ld 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 # 18034 # Do we need to explicitly link libc? 18035 # 18036 case "x$archive_cmds_need_lc" in 18037 x|xyes) 18038 # Assume -lc should be added 18039 archive_cmds_need_lc=yes 18040 18041 if test yes,yes = "$GCC,$enable_shared"; then 18042 case $archive_cmds in 18043 *'~'*) 18044 # FIXME: we may have to deal with multi-command sequences. 18045 ;; 18046 '$CC '*) 18047 # Test whether the compiler implicitly links with -lc since on some 18048 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18049 # to ld, don't add -lc before -lgcc. 18050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18051 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 18052 if test ${lt_cv_archive_cmds_need_lc+y} 18053 then : 18054 printf %s "(cached) " >&6 18055 else case e in #( 18056 e) $RM conftest* 18057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18058 18059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18060 (eval $ac_compile) 2>&5 18061 ac_status=$? 18062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18063 test $ac_status = 0; } 2>conftest.err; then 18064 soname=conftest 18065 lib=conftest 18066 libobjs=conftest.$ac_objext 18067 deplibs= 18068 wl=$lt_prog_compiler_wl 18069 pic_flag=$lt_prog_compiler_pic 18070 compiler_flags=-v 18071 linker_flags=-v 18072 verstring= 18073 output_objdir=. 18074 libname=conftest 18075 lt_save_allow_undefined_flag=$allow_undefined_flag 18076 allow_undefined_flag= 18077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18078 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18079 ac_status=$? 18080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18081 test $ac_status = 0; } 18082 then 18083 lt_cv_archive_cmds_need_lc=no 18084 else 18085 lt_cv_archive_cmds_need_lc=yes 18086 fi 18087 allow_undefined_flag=$lt_save_allow_undefined_flag 18088 else 18089 cat conftest.err 1>&5 18090 fi 18091 $RM conftest* 18092 ;; 18093 esac 18094 fi 18095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 18096 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 18097 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 18098 ;; 18099 esac 18100 fi 18101 ;; 18102 esac 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 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18256 printf %s "checking dynamic linker characteristics... " >&6; } 18257 18258 if test yes = "$GCC"; then 18259 case $host_os in 18260 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 18261 *) lt_awk_arg='/^libraries:/' ;; 18262 esac 18263 case $host_os in 18264 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 18265 *) lt_sed_strip_eq='s|=/|/|g' ;; 18266 esac 18267 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18268 case $lt_search_path_spec in 18269 *\;*) 18270 # if the path contains ";" then we assume it to be the separator 18271 # otherwise default to the standard path separator (i.e. ":") - it is 18272 # assumed that no part of a normal pathname contains ";" but that should 18273 # okay in the real world where ";" in dirpaths is itself problematic. 18274 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18275 ;; 18276 *) 18277 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18278 ;; 18279 esac 18280 # Ok, now we have the path, separated by spaces, we can step through it 18281 # and add multilib dir if necessary... 18282 lt_tmp_lt_search_path_spec= 18283 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18284 # ...but if some path component already ends with the multilib dir we assume 18285 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 18286 case "$lt_multi_os_dir; $lt_search_path_spec " in 18287 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 18288 lt_multi_os_dir= 18289 ;; 18290 esac 18291 for lt_sys_path in $lt_search_path_spec; do 18292 if test -d "$lt_sys_path$lt_multi_os_dir"; then 18293 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 18294 elif test -n "$lt_multi_os_dir"; then 18295 test -d "$lt_sys_path" && \ 18296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18297 fi 18298 done 18299 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18300 BEGIN {RS = " "; FS = "/|\n";} { 18301 lt_foo = ""; 18302 lt_count = 0; 18303 for (lt_i = NF; lt_i > 0; lt_i--) { 18304 if ($lt_i != "" && $lt_i != ".") { 18305 if ($lt_i == "..") { 18306 lt_count++; 18307 } else { 18308 if (lt_count == 0) { 18309 lt_foo = "/" $lt_i lt_foo; 18310 } else { 18311 lt_count--; 18312 } 18313 } 18314 } 18315 } 18316 if (lt_foo != "") { lt_freq[lt_foo]++; } 18317 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18318 }'` 18319 # AWK program above erroneously prepends '/' to C:/dos/paths 18320 # for these hosts. 18321 case $host_os in 18322 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18323 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18324 esac 18325 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18326 else 18327 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18328 fi 18329 library_names_spec= 18330 libname_spec='lib$name' 18331 soname_spec= 18332 shrext_cmds=.so 18333 postinstall_cmds= 18334 postuninstall_cmds= 18335 finish_cmds= 18336 finish_eval= 18337 shlibpath_var= 18338 shlibpath_overrides_runpath=unknown 18339 version_type=none 18340 dynamic_linker="$host_os ld.so" 18341 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18342 need_lib_prefix=unknown 18343 hardcode_into_libs=no 18344 18345 # when you set need_version to no, make sure it does not cause -set_version 18346 # flags to be left without arguments 18347 need_version=unknown 18348 18349 18350 18351 case $host_os in 18352 aix3*) 18353 version_type=linux # correct to gnu/linux during the next big refactor 18354 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18355 shlibpath_var=LIBPATH 18356 18357 # AIX 3 has no versioning support, so we append a major version to the name. 18358 soname_spec='$libname$release$shared_ext$major' 18359 ;; 18360 18361 aix[4-9]*) 18362 version_type=linux # correct to gnu/linux during the next big refactor 18363 need_lib_prefix=no 18364 need_version=no 18365 hardcode_into_libs=yes 18366 if test ia64 = "$host_cpu"; then 18367 # AIX 5 supports IA64 18368 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18369 shlibpath_var=LD_LIBRARY_PATH 18370 else 18371 # With GCC up to 2.95.x, collect2 would create an import file 18372 # for dependence libraries. The import file would start with 18373 # the line '#! .'. This would cause the generated library to 18374 # depend on '.', always an invalid library. This was fixed in 18375 # development snapshots of GCC prior to 3.0. 18376 case $host_os in 18377 aix4 | aix4.[01] | aix4.[01].*) 18378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18379 echo ' yes ' 18380 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18381 : 18382 else 18383 can_build_shared=no 18384 fi 18385 ;; 18386 esac 18387 # Using Import Files as archive members, it is possible to support 18388 # filename-based versioning of shared library archives on AIX. While 18389 # this would work for both with and without runtime linking, it will 18390 # prevent static linking of such archives. So we do filename-based 18391 # shared library versioning with .so extension only, which is used 18392 # when both runtime linking and shared linking is enabled. 18393 # Unfortunately, runtime linking may impact performance, so we do 18394 # not want this to be the default eventually. Also, we use the 18395 # versioned .so libs for executables only if there is the -brtl 18396 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 18397 # To allow for filename-based versioning support, we need to create 18398 # libNAME.so.V as an archive file, containing: 18399 # *) an Import File, referring to the versioned filename of the 18400 # archive as well as the shared archive member, telling the 18401 # bitwidth (32 or 64) of that shared object, and providing the 18402 # list of exported symbols of that shared object, eventually 18403 # decorated with the 'weak' keyword 18404 # *) the shared object with the F_LOADONLY flag set, to really avoid 18405 # it being seen by the linker. 18406 # At run time we better use the real file rather than another symlink, 18407 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18408 18409 case $with_aix_soname,$aix_use_runtimelinking in 18410 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18411 # soname into executable. Probably we can add versioning support to 18412 # collect2, so additional links can be useful in future. 18413 aix,yes) # traditional libtool 18414 dynamic_linker='AIX unversionable lib.so' 18415 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18416 # instead of lib<name>.a to let people know that these are not 18417 # typical AIX shared libraries. 18418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18419 ;; 18420 aix,no) # traditional AIX only 18421 dynamic_linker='AIX lib.a(lib.so.V)' 18422 # We preserve .a as extension for shared libraries through AIX4.2 18423 # and later when we are not doing run time linking. 18424 library_names_spec='$libname$release.a $libname.a' 18425 soname_spec='$libname$release$shared_ext$major' 18426 ;; 18427 svr4,*) # full svr4 only 18428 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18429 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18430 # We do not specify a path in Import Files, so LIBPATH fires. 18431 shlibpath_overrides_runpath=yes 18432 ;; 18433 *,yes) # both, prefer svr4 18434 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18435 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18436 # unpreferred sharedlib libNAME.a needs extra handling 18437 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"' 18438 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"' 18439 # We do not specify a path in Import Files, so LIBPATH fires. 18440 shlibpath_overrides_runpath=yes 18441 ;; 18442 *,no) # both, prefer aix 18443 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18444 library_names_spec='$libname$release.a $libname.a' 18445 soname_spec='$libname$release$shared_ext$major' 18446 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18447 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)' 18448 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"' 18449 ;; 18450 esac 18451 shlibpath_var=LIBPATH 18452 fi 18453 ;; 18454 18455 amigaos*) 18456 case $host_cpu in 18457 powerpc) 18458 # Since July 2007 AmigaOS4 officially supports .so libraries. 18459 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18461 ;; 18462 m68k) 18463 library_names_spec='$libname.ixlibrary $libname.a' 18464 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18465 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' 18466 ;; 18467 esac 18468 ;; 18469 18470 beos*) 18471 library_names_spec='$libname$shared_ext' 18472 dynamic_linker="$host_os ld.so" 18473 shlibpath_var=LIBRARY_PATH 18474 ;; 18475 18476 bsdi[45]*) 18477 version_type=linux # correct to gnu/linux during the next big refactor 18478 need_version=no 18479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18480 soname_spec='$libname$release$shared_ext$major' 18481 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18482 shlibpath_var=LD_LIBRARY_PATH 18483 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18484 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18485 # the default ld.so.conf also contains /usr/contrib/lib and 18486 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18487 # libtool to hard-code these into programs 18488 ;; 18489 18490 cygwin* | mingw* | windows* | pw32* | cegcc*) 18491 version_type=windows 18492 shrext_cmds=.dll 18493 need_version=no 18494 need_lib_prefix=no 18495 18496 case $GCC,$cc_basename in 18497 yes,*) 18498 # gcc 18499 library_names_spec='$libname.dll.a' 18500 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18501 # If user builds GCC with multilib enabled, 18502 # it should just install on $(libdir) 18503 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 18504 if test xyes = x"$multilib"; then 18505 postinstall_cmds='base_file=`basename \$file`~ 18506 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18507 dldir=$destdir/`dirname \$dlpath`~ 18508 $install_prog $dir/$dlname $destdir/$dlname~ 18509 chmod a+x $destdir/$dlname~ 18510 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18511 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 18512 fi' 18513 else 18514 postinstall_cmds='base_file=`basename \$file`~ 18515 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18516 dldir=$destdir/`dirname \$dlpath`~ 18517 test -d \$dldir || mkdir -p \$dldir~ 18518 $install_prog $dir/$dlname \$dldir/$dlname~ 18519 chmod a+x \$dldir/$dlname~ 18520 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18521 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18522 fi' 18523 fi 18524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18525 dlpath=$dir/\$dldll~ 18526 $RM \$dlpath' 18527 shlibpath_overrides_runpath=yes 18528 18529 case $host_os in 18530 cygwin*) 18531 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18532 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18533 18534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18535 ;; 18536 mingw* | windows* | cegcc*) 18537 # MinGW DLLs use traditional 'lib' prefix 18538 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18539 ;; 18540 pw32*) 18541 # pw32 DLLs use 'pw' prefix rather than 'lib' 18542 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18543 ;; 18544 esac 18545 dynamic_linker='Win32 ld.exe' 18546 ;; 18547 18548 *,cl* | *,icl*) 18549 # Native MSVC or ICC 18550 libname_spec='$name' 18551 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18552 library_names_spec='$libname.dll.lib' 18553 18554 case $build_os in 18555 mingw* | windows*) 18556 sys_lib_search_path_spec= 18557 lt_save_ifs=$IFS 18558 IFS=';' 18559 for lt_path in $LIB 18560 do 18561 IFS=$lt_save_ifs 18562 # Let DOS variable expansion print the short 8.3 style file name. 18563 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18564 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18565 done 18566 IFS=$lt_save_ifs 18567 # Convert to MSYS style. 18568 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18569 ;; 18570 cygwin*) 18571 # Convert to unix form, then to dos form, then back to unix form 18572 # but this time dos style (no spaces!) so that the unix form looks 18573 # like /cygdrive/c/PROGRA~1:/cygdr... 18574 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18575 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18576 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18577 ;; 18578 *) 18579 sys_lib_search_path_spec=$LIB 18580 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18581 # It is most probably a Windows format PATH. 18582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18583 else 18584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18585 fi 18586 # FIXME: find the short name or the path components, as spaces are 18587 # common. (e.g. "Program Files" -> "PROGRA~1") 18588 ;; 18589 esac 18590 18591 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18592 postinstall_cmds='base_file=`basename \$file`~ 18593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18594 dldir=$destdir/`dirname \$dlpath`~ 18595 test -d \$dldir || mkdir -p \$dldir~ 18596 $install_prog $dir/$dlname \$dldir/$dlname' 18597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18598 dlpath=$dir/\$dldll~ 18599 $RM \$dlpath' 18600 shlibpath_overrides_runpath=yes 18601 dynamic_linker='Win32 link.exe' 18602 ;; 18603 18604 *) 18605 # Assume MSVC and ICC wrapper 18606 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18607 dynamic_linker='Win32 ld.exe' 18608 ;; 18609 esac 18610 # FIXME: first we should search . and the directory the executable is in 18611 shlibpath_var=PATH 18612 ;; 18613 18614 darwin* | rhapsody*) 18615 dynamic_linker="$host_os dyld" 18616 version_type=darwin 18617 need_lib_prefix=no 18618 need_version=no 18619 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18620 soname_spec='$libname$release$major$shared_ext' 18621 shlibpath_overrides_runpath=yes 18622 shlibpath_var=DYLD_LIBRARY_PATH 18623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18624 18625 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18627 ;; 18628 18629 dgux*) 18630 version_type=linux # correct to gnu/linux during the next big refactor 18631 need_lib_prefix=no 18632 need_version=no 18633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18634 soname_spec='$libname$release$shared_ext$major' 18635 shlibpath_var=LD_LIBRARY_PATH 18636 ;; 18637 18638 freebsd* | dragonfly* | midnightbsd*) 18639 # DragonFly does not have aout. When/if they implement a new 18640 # versioning mechanism, adjust this. 18641 if test -x /usr/bin/objformat; then 18642 objformat=`/usr/bin/objformat` 18643 else 18644 case $host_os in 18645 freebsd[23].*) objformat=aout ;; 18646 *) objformat=elf ;; 18647 esac 18648 fi 18649 version_type=freebsd-$objformat 18650 case $version_type in 18651 freebsd-elf*) 18652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18653 soname_spec='$libname$release$shared_ext$major' 18654 need_version=no 18655 need_lib_prefix=no 18656 ;; 18657 freebsd-*) 18658 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18659 need_version=yes 18660 ;; 18661 esac 18662 case $host_cpu in 18663 powerpc64) 18664 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 18665 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18667 /* end confdefs.h. */ 18668 int test_pointer_size[sizeof (void *) - 5]; 18669 18670 _ACEOF 18671 if ac_fn_c_try_compile "$LINENO" 18672 then : 18673 shlibpath_var=LD_LIBRARY_PATH 18674 else case e in #( 18675 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 18676 esac 18677 fi 18678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18679 ;; 18680 *) 18681 shlibpath_var=LD_LIBRARY_PATH 18682 ;; 18683 esac 18684 case $host_os in 18685 freebsd2.*) 18686 shlibpath_overrides_runpath=yes 18687 ;; 18688 freebsd3.[01]* | freebsdelf3.[01]*) 18689 shlibpath_overrides_runpath=yes 18690 hardcode_into_libs=yes 18691 ;; 18692 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18693 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18694 shlibpath_overrides_runpath=no 18695 hardcode_into_libs=yes 18696 ;; 18697 *) # from 4.6 on, and DragonFly 18698 shlibpath_overrides_runpath=yes 18699 hardcode_into_libs=yes 18700 ;; 18701 esac 18702 ;; 18703 18704 haiku*) 18705 version_type=linux # correct to gnu/linux during the next big refactor 18706 need_lib_prefix=no 18707 need_version=no 18708 dynamic_linker="$host_os runtime_loader" 18709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18710 soname_spec='$libname$release$shared_ext$major' 18711 shlibpath_var=LIBRARY_PATH 18712 shlibpath_overrides_runpath=no 18713 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 18714 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 18715 hardcode_into_libs=no 18716 ;; 18717 18718 hpux9* | hpux10* | hpux11*) 18719 # Give a soname corresponding to the major version so that dld.sl refuses to 18720 # link against other versions. 18721 version_type=sunos 18722 need_lib_prefix=no 18723 need_version=no 18724 case $host_cpu in 18725 ia64*) 18726 shrext_cmds='.so' 18727 hardcode_into_libs=yes 18728 dynamic_linker="$host_os dld.so" 18729 shlibpath_var=LD_LIBRARY_PATH 18730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18732 soname_spec='$libname$release$shared_ext$major' 18733 if test 32 = "$HPUX_IA64_MODE"; then 18734 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18735 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18736 else 18737 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18738 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18739 fi 18740 ;; 18741 hppa*64*) 18742 shrext_cmds='.sl' 18743 hardcode_into_libs=yes 18744 dynamic_linker="$host_os dld.sl" 18745 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18746 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18748 soname_spec='$libname$release$shared_ext$major' 18749 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18751 ;; 18752 *) 18753 shrext_cmds='.sl' 18754 dynamic_linker="$host_os dld.sl" 18755 shlibpath_var=SHLIB_PATH 18756 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18758 soname_spec='$libname$release$shared_ext$major' 18759 ;; 18760 esac 18761 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18762 postinstall_cmds='chmod 555 $lib' 18763 # or fails outright, so override atomically: 18764 install_override_mode=555 18765 ;; 18766 18767 interix[3-9]*) 18768 version_type=linux # correct to gnu/linux during the next big refactor 18769 need_lib_prefix=no 18770 need_version=no 18771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18772 soname_spec='$libname$release$shared_ext$major' 18773 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18774 shlibpath_var=LD_LIBRARY_PATH 18775 shlibpath_overrides_runpath=no 18776 hardcode_into_libs=yes 18777 ;; 18778 18779 irix5* | irix6* | nonstopux*) 18780 case $host_os in 18781 nonstopux*) version_type=nonstopux ;; 18782 *) 18783 if test yes = "$lt_cv_prog_gnu_ld"; then 18784 version_type=linux # correct to gnu/linux during the next big refactor 18785 else 18786 version_type=irix 18787 fi ;; 18788 esac 18789 need_lib_prefix=no 18790 need_version=no 18791 soname_spec='$libname$release$shared_ext$major' 18792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18793 case $host_os in 18794 irix5* | nonstopux*) 18795 libsuff= shlibsuff= 18796 ;; 18797 *) 18798 case $LD in # libtool.m4 will add one of these switches to LD 18799 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18800 libsuff= shlibsuff= libmagic=32-bit;; 18801 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18802 libsuff=32 shlibsuff=N32 libmagic=N32;; 18803 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18804 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18805 *) libsuff= shlibsuff= libmagic=never-match;; 18806 esac 18807 ;; 18808 esac 18809 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18810 shlibpath_overrides_runpath=no 18811 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18812 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18813 hardcode_into_libs=yes 18814 ;; 18815 18816 # No shared lib support for Linux oldld, aout, or coff. 18817 linux*oldld* | linux*aout* | linux*coff*) 18818 dynamic_linker=no 18819 ;; 18820 18821 linux*android*) 18822 version_type=none # Android doesn't support versioned libraries. 18823 need_lib_prefix=no 18824 need_version=no 18825 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 18826 soname_spec='$libname$release$shared_ext' 18827 finish_cmds= 18828 shlibpath_var=LD_LIBRARY_PATH 18829 shlibpath_overrides_runpath=yes 18830 18831 # This implies no fast_install, which is unacceptable. 18832 # Some rework will be needed to allow for fast_install 18833 # before this can be enabled. 18834 hardcode_into_libs=yes 18835 18836 dynamic_linker='Android linker' 18837 # -rpath works at least for libraries that are not overridden by 18838 # libraries installed in system locations. 18839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 18840 ;; 18841 18842 # This must be glibc/ELF. 18843 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18844 version_type=linux # correct to gnu/linux during the next big refactor 18845 need_lib_prefix=no 18846 need_version=no 18847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18848 soname_spec='$libname$release$shared_ext$major' 18849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18850 shlibpath_var=LD_LIBRARY_PATH 18851 shlibpath_overrides_runpath=no 18852 18853 # Some binutils ld are patched to set DT_RUNPATH 18854 if test ${lt_cv_shlibpath_overrides_runpath+y} 18855 then : 18856 printf %s "(cached) " >&6 18857 else case e in #( 18858 e) lt_cv_shlibpath_overrides_runpath=no 18859 save_LDFLAGS=$LDFLAGS 18860 save_libdir=$libdir 18861 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18862 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18864 /* end confdefs.h. */ 18865 18866 int 18867 main (void) 18868 { 18869 18870 ; 18871 return 0; 18872 } 18873 _ACEOF 18874 if ac_fn_c_try_link "$LINENO" 18875 then : 18876 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18877 then : 18878 lt_cv_shlibpath_overrides_runpath=yes 18879 fi 18880 fi 18881 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18882 conftest$ac_exeext conftest.$ac_ext 18883 LDFLAGS=$save_LDFLAGS 18884 libdir=$save_libdir 18885 ;; 18886 esac 18887 fi 18888 18889 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18890 18891 # This implies no fast_install, which is unacceptable. 18892 # Some rework will be needed to allow for fast_install 18893 # before this can be enabled. 18894 hardcode_into_libs=yes 18895 18896 # Ideally, we could use ldconfig to report *all* directories which are 18897 # searched for libraries, however this is still not possible. Aside from not 18898 # being certain /sbin/ldconfig is available, command 18899 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18900 # even though it is searched at run-time. Try to do the best guess by 18901 # appending ld.so.conf contents (and includes) to the search path. 18902 if test -f /etc/ld.so.conf; then 18903 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' ' '` 18904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18905 fi 18906 18907 # We used to test for /lib/ld.so.1 and disable shared libraries on 18908 # powerpc, because MkLinux only supported shared libraries with the 18909 # GNU dynamic linker. Since this was broken with cross compilers, 18910 # most powerpc-linux boxes support dynamic linking these days and 18911 # people can always --disable-shared, the test was removed, and we 18912 # assume the GNU/Linux dynamic linker is in use. 18913 dynamic_linker='GNU/Linux ld.so' 18914 ;; 18915 18916 netbsdelf*-gnu) 18917 version_type=linux 18918 need_lib_prefix=no 18919 need_version=no 18920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18921 soname_spec='$libname$release$shared_ext$major' 18922 shlibpath_var=LD_LIBRARY_PATH 18923 shlibpath_overrides_runpath=no 18924 hardcode_into_libs=yes 18925 dynamic_linker='NetBSD ld.elf_so' 18926 ;; 18927 18928 netbsd*) 18929 version_type=sunos 18930 need_lib_prefix=no 18931 need_version=no 18932 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18933 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18935 dynamic_linker='NetBSD (a.out) ld.so' 18936 else 18937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18938 soname_spec='$libname$release$shared_ext$major' 18939 dynamic_linker='NetBSD ld.elf_so' 18940 fi 18941 shlibpath_var=LD_LIBRARY_PATH 18942 shlibpath_overrides_runpath=yes 18943 hardcode_into_libs=yes 18944 ;; 18945 18946 *-mlibc) 18947 version_type=linux # correct to gnu/linux during the next big refactor 18948 need_lib_prefix=no 18949 need_version=no 18950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18951 soname_spec='$libname$release$shared_ext$major' 18952 dynamic_linker='mlibc ld.so' 18953 shlibpath_var=LD_LIBRARY_PATH 18954 shlibpath_overrides_runpath=no 18955 hardcode_into_libs=yes 18956 ;; 18957 18958 newsos6) 18959 version_type=linux # correct to gnu/linux during the next big refactor 18960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18961 shlibpath_var=LD_LIBRARY_PATH 18962 shlibpath_overrides_runpath=yes 18963 ;; 18964 18965 *nto* | *qnx*) 18966 version_type=qnx 18967 need_lib_prefix=no 18968 need_version=no 18969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18970 soname_spec='$libname$release$shared_ext$major' 18971 shlibpath_var=LD_LIBRARY_PATH 18972 shlibpath_overrides_runpath=no 18973 hardcode_into_libs=yes 18974 dynamic_linker='ldqnx.so' 18975 ;; 18976 18977 openbsd*) 18978 version_type=sunos 18979 sys_lib_dlsearch_path_spec=/usr/lib 18980 need_lib_prefix=no 18981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18982 need_version=no 18983 else 18984 need_version=yes 18985 fi 18986 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18988 shlibpath_var=LD_LIBRARY_PATH 18989 shlibpath_overrides_runpath=yes 18990 ;; 18991 18992 os2*) 18993 libname_spec='$name' 18994 version_type=windows 18995 shrext_cmds=.dll 18996 need_version=no 18997 need_lib_prefix=no 18998 # OS/2 can only load a DLL with a base name of 8 characters or less. 18999 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 19000 v=$($ECHO $release$versuffix | tr -d .-); 19001 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 19002 $ECHO $n$v`$shared_ext' 19003 library_names_spec='${libname}_dll.$libext' 19004 dynamic_linker='OS/2 ld.exe' 19005 shlibpath_var=BEGINLIBPATH 19006 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 19007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19008 postinstall_cmds='base_file=`basename \$file`~ 19009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 19010 dldir=$destdir/`dirname \$dlpath`~ 19011 test -d \$dldir || mkdir -p \$dldir~ 19012 $install_prog $dir/$dlname \$dldir/$dlname~ 19013 chmod a+x \$dldir/$dlname~ 19014 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19015 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19016 fi' 19017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 19018 dlpath=$dir/\$dldll~ 19019 $RM \$dlpath' 19020 ;; 19021 19022 osf3* | osf4* | osf5*) 19023 version_type=osf 19024 need_lib_prefix=no 19025 need_version=no 19026 soname_spec='$libname$release$shared_ext$major' 19027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19028 shlibpath_var=LD_LIBRARY_PATH 19029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19031 ;; 19032 19033 rdos*) 19034 dynamic_linker=no 19035 ;; 19036 19037 serenity*) 19038 version_type=linux # correct to gnu/linux during the next big refactor 19039 need_lib_prefix=no 19040 need_version=no 19041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19042 soname_spec='$libname$release$shared_ext$major' 19043 shlibpath_var=LD_LIBRARY_PATH 19044 shlibpath_overrides_runpath=no 19045 dynamic_linker='SerenityOS LibELF' 19046 ;; 19047 19048 solaris*) 19049 version_type=linux # correct to gnu/linux during the next big refactor 19050 need_lib_prefix=no 19051 need_version=no 19052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19053 soname_spec='$libname$release$shared_ext$major' 19054 shlibpath_var=LD_LIBRARY_PATH 19055 shlibpath_overrides_runpath=yes 19056 hardcode_into_libs=yes 19057 # ldd complains unless libraries are executable 19058 postinstall_cmds='chmod +x $lib' 19059 ;; 19060 19061 sunos4*) 19062 version_type=sunos 19063 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 19064 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19065 shlibpath_var=LD_LIBRARY_PATH 19066 shlibpath_overrides_runpath=yes 19067 if test yes = "$with_gnu_ld"; then 19068 need_lib_prefix=no 19069 fi 19070 need_version=yes 19071 ;; 19072 19073 sysv4 | sysv4.3*) 19074 version_type=linux # correct to gnu/linux during the next big refactor 19075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19076 soname_spec='$libname$release$shared_ext$major' 19077 shlibpath_var=LD_LIBRARY_PATH 19078 case $host_vendor in 19079 sni) 19080 shlibpath_overrides_runpath=no 19081 need_lib_prefix=no 19082 runpath_var=LD_RUN_PATH 19083 ;; 19084 siemens) 19085 need_lib_prefix=no 19086 ;; 19087 motorola) 19088 need_lib_prefix=no 19089 need_version=no 19090 shlibpath_overrides_runpath=no 19091 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19092 ;; 19093 esac 19094 ;; 19095 19096 sysv4*MP*) 19097 if test -d /usr/nec; then 19098 version_type=linux # correct to gnu/linux during the next big refactor 19099 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 19100 soname_spec='$libname$shared_ext.$major' 19101 shlibpath_var=LD_LIBRARY_PATH 19102 fi 19103 ;; 19104 19105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19106 version_type=sco 19107 need_lib_prefix=no 19108 need_version=no 19109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 19110 soname_spec='$libname$release$shared_ext$major' 19111 shlibpath_var=LD_LIBRARY_PATH 19112 shlibpath_overrides_runpath=yes 19113 hardcode_into_libs=yes 19114 if test yes = "$with_gnu_ld"; then 19115 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19116 else 19117 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19118 case $host_os in 19119 sco3.2v5*) 19120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19121 ;; 19122 esac 19123 fi 19124 sys_lib_dlsearch_path_spec='/usr/lib' 19125 ;; 19126 19127 tpf*) 19128 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 19129 version_type=linux # correct to gnu/linux during the next big refactor 19130 need_lib_prefix=no 19131 need_version=no 19132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19133 shlibpath_var=LD_LIBRARY_PATH 19134 shlibpath_overrides_runpath=no 19135 hardcode_into_libs=yes 19136 ;; 19137 19138 uts4*) 19139 version_type=linux # correct to gnu/linux during the next big refactor 19140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19141 soname_spec='$libname$release$shared_ext$major' 19142 shlibpath_var=LD_LIBRARY_PATH 19143 ;; 19144 19145 emscripten*) 19146 version_type=none 19147 need_lib_prefix=no 19148 need_version=no 19149 library_names_spec='$libname$release$shared_ext' 19150 soname_spec='$libname$release$shared_ext' 19151 finish_cmds= 19152 dynamic_linker="Emscripten linker" 19153 lt_prog_compiler_wl= 19154 lt_prog_compiler_pic= 19155 lt_prog_compiler_static= 19156 19157 19158 if test yes = "$GCC"; then 19159 lt_prog_compiler_wl='-Wl,' 19160 lt_prog_compiler_static='-static' 19161 19162 case $host_os in 19163 aix*) 19164 # All AIX code is PIC. 19165 if test ia64 = "$host_cpu"; then 19166 # AIX 5 now supports IA64 processor 19167 lt_prog_compiler_static='-Bstatic' 19168 fi 19169 lt_prog_compiler_pic='-fPIC' 19170 ;; 19171 19172 amigaos*) 19173 case $host_cpu in 19174 powerpc) 19175 # see comment about AmigaOS4 .so support 19176 lt_prog_compiler_pic='-fPIC' 19177 ;; 19178 m68k) 19179 # FIXME: we need at least 68020 code to build shared libraries, but 19180 # adding the '-m68020' flag to GCC prevents building anything better, 19181 # like '-m68040'. 19182 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 19183 ;; 19184 esac 19185 ;; 19186 19187 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19188 # PIC is the default for these OSes. 19189 ;; 19190 19191 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 19192 # This hack is so that the source file can tell whether it is being 19193 # built for inclusion in a dll (and should export symbols for example). 19194 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19195 # (--disable-auto-import) libraries 19196 lt_prog_compiler_pic='-DDLL_EXPORT' 19197 case $host_os in 19198 os2*) 19199 lt_prog_compiler_static='$wl-static' 19200 ;; 19201 esac 19202 ;; 19203 19204 darwin* | rhapsody*) 19205 # PIC is the default on this platform 19206 # Common symbols not allowed in MH_DYLIB files 19207 lt_prog_compiler_pic='-fno-common' 19208 ;; 19209 19210 haiku*) 19211 # PIC is the default for Haiku. 19212 # The "-static" flag exists, but is broken. 19213 lt_prog_compiler_static= 19214 ;; 19215 19216 hpux*) 19217 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19218 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19219 # sets the default TLS model and affects inlining. 19220 case $host_cpu in 19221 hppa*64*) 19222 # +Z the default 19223 ;; 19224 *) 19225 lt_prog_compiler_pic='-fPIC' 19226 ;; 19227 esac 19228 ;; 19229 19230 interix[3-9]*) 19231 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19232 # Instead, we relocate shared libraries at runtime. 19233 ;; 19234 19235 msdosdjgpp*) 19236 # Just because we use GCC doesn't mean we suddenly get shared libraries 19237 # on systems that don't support them. 19238 lt_prog_compiler_can_build_shared=no 19239 enable_shared=no 19240 ;; 19241 19242 *nto* | *qnx*) 19243 # QNX uses GNU C++, but need to define -shared option too, otherwise 19244 # it will coredump. 19245 lt_prog_compiler_pic='-fPIC -shared' 19246 ;; 19247 19248 sysv4*MP*) 19249 if test -d /usr/nec; then 19250 lt_prog_compiler_pic=-Kconform_pic 19251 fi 19252 ;; 19253 19254 *) 19255 lt_prog_compiler_pic='-fPIC' 19256 ;; 19257 esac 19258 19259 case $cc_basename in 19260 nvcc*) # Cuda Compiler Driver 2.2 19261 lt_prog_compiler_wl='-Xlinker ' 19262 if test -n "$lt_prog_compiler_pic"; then 19263 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 19264 fi 19265 ;; 19266 esac 19267 else 19268 # PORTME Check for flag to pass linker flags through the system compiler. 19269 case $host_os in 19270 aix*) 19271 lt_prog_compiler_wl='-Wl,' 19272 if test ia64 = "$host_cpu"; then 19273 # AIX 5 now supports IA64 processor 19274 lt_prog_compiler_static='-Bstatic' 19275 else 19276 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 19277 fi 19278 ;; 19279 19280 darwin* | rhapsody*) 19281 # PIC is the default on this platform 19282 # Common symbols not allowed in MH_DYLIB files 19283 lt_prog_compiler_pic='-fno-common' 19284 case $cc_basename in 19285 nagfor*) 19286 # NAG Fortran compiler 19287 lt_prog_compiler_wl='-Wl,-Wl,,' 19288 lt_prog_compiler_pic='-PIC' 19289 lt_prog_compiler_static='-Bstatic' 19290 ;; 19291 esac 19292 ;; 19293 19294 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 19295 # This hack is so that the source file can tell whether it is being 19296 # built for inclusion in a dll (and should export symbols for example). 19297 lt_prog_compiler_pic='-DDLL_EXPORT' 19298 case $host_os in 19299 os2*) 19300 lt_prog_compiler_static='$wl-static' 19301 ;; 19302 esac 19303 ;; 19304 19305 hpux9* | hpux10* | hpux11*) 19306 lt_prog_compiler_wl='-Wl,' 19307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19308 # not for PA HP-UX. 19309 case $host_cpu in 19310 hppa*64*|ia64*) 19311 # +Z the default 19312 ;; 19313 *) 19314 lt_prog_compiler_pic='+Z' 19315 ;; 19316 esac 19317 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19318 lt_prog_compiler_static='$wl-a ${wl}archive' 19319 ;; 19320 19321 irix5* | irix6* | nonstopux*) 19322 lt_prog_compiler_wl='-Wl,' 19323 # PIC (with -KPIC) is the default. 19324 lt_prog_compiler_static='-non_shared' 19325 ;; 19326 19327 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19328 case $cc_basename in 19329 # old Intel for x86_64, which still supported -KPIC. 19330 ecc*) 19331 lt_prog_compiler_wl='-Wl,' 19332 lt_prog_compiler_pic='-KPIC' 19333 lt_prog_compiler_static='-static' 19334 ;; 19335 *flang* | ftn | f18* | f95*) 19336 # Flang compiler. 19337 lt_prog_compiler_wl='-Wl,' 19338 lt_prog_compiler_pic='-fPIC' 19339 lt_prog_compiler_static='-static' 19340 ;; 19341 # icc used to be incompatible with GCC. 19342 # ICC 10 doesn't accept -KPIC any more. 19343 icc* | ifort*) 19344 lt_prog_compiler_wl='-Wl,' 19345 lt_prog_compiler_pic='-fPIC' 19346 lt_prog_compiler_static='-static' 19347 ;; 19348 # Lahey Fortran 8.1. 19349 lf95*) 19350 lt_prog_compiler_wl='-Wl,' 19351 lt_prog_compiler_pic='--shared' 19352 lt_prog_compiler_static='--static' 19353 ;; 19354 nagfor*) 19355 # NAG Fortran compiler 19356 lt_prog_compiler_wl='-Wl,-Wl,,' 19357 lt_prog_compiler_pic='-PIC' 19358 lt_prog_compiler_static='-Bstatic' 19359 ;; 19360 tcc*) 19361 # Fabrice Bellard et al's Tiny C Compiler 19362 lt_prog_compiler_wl='-Wl,' 19363 lt_prog_compiler_pic='-fPIC' 19364 lt_prog_compiler_static='-static' 19365 ;; 19366 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 19367 # Portland Group compilers (*not* the Pentium gcc compiler, 19368 # which looks to be a dead project) 19369 lt_prog_compiler_wl='-Wl,' 19370 lt_prog_compiler_pic='-fpic' 19371 lt_prog_compiler_static='-Bstatic' 19372 ;; 19373 ccc*) 19374 lt_prog_compiler_wl='-Wl,' 19375 # All Alpha code is PIC. 19376 lt_prog_compiler_static='-non_shared' 19377 ;; 19378 xl* | bgxl* | bgf* | mpixl*) 19379 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 19380 lt_prog_compiler_wl='-Wl,' 19381 lt_prog_compiler_pic='-qpic' 19382 lt_prog_compiler_static='-qstaticlink' 19383 ;; 19384 *) 19385 case `$CC -V 2>&1 | $SED 5q` in 19386 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 19387 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19388 lt_prog_compiler_pic='-KPIC' 19389 lt_prog_compiler_static='-Bstatic' 19390 lt_prog_compiler_wl='' 19391 ;; 19392 *Sun\ F* | *Sun*Fortran*) 19393 lt_prog_compiler_pic='-KPIC' 19394 lt_prog_compiler_static='-Bstatic' 19395 lt_prog_compiler_wl='-Qoption ld ' 19396 ;; 19397 *Sun\ C*) 19398 # Sun C 5.9 19399 lt_prog_compiler_pic='-KPIC' 19400 lt_prog_compiler_static='-Bstatic' 19401 lt_prog_compiler_wl='-Wl,' 19402 ;; 19403 *Intel*\ [CF]*Compiler*) 19404 lt_prog_compiler_wl='-Wl,' 19405 lt_prog_compiler_pic='-fPIC' 19406 lt_prog_compiler_static='-static' 19407 ;; 19408 *Portland\ Group*) 19409 lt_prog_compiler_wl='-Wl,' 19410 lt_prog_compiler_pic='-fpic' 19411 lt_prog_compiler_static='-Bstatic' 19412 ;; 19413 esac 19414 ;; 19415 esac 19416 ;; 19417 19418 newsos6) 19419 lt_prog_compiler_pic='-KPIC' 19420 lt_prog_compiler_static='-Bstatic' 19421 ;; 19422 19423 *-mlibc) 19424 lt_prog_compiler_wl='-Wl,' 19425 lt_prog_compiler_pic='-fPIC' 19426 lt_prog_compiler_static='-static' 19427 ;; 19428 19429 *nto* | *qnx*) 19430 # QNX uses GNU C++, but need to define -shared option too, otherwise 19431 # it will coredump. 19432 lt_prog_compiler_pic='-fPIC -shared' 19433 ;; 19434 19435 osf3* | osf4* | osf5*) 19436 lt_prog_compiler_wl='-Wl,' 19437 # All OSF/1 code is PIC. 19438 lt_prog_compiler_static='-non_shared' 19439 ;; 19440 19441 rdos*) 19442 lt_prog_compiler_static='-non_shared' 19443 ;; 19444 19445 serenity*) 19446 ;; 19447 19448 solaris*) 19449 lt_prog_compiler_pic='-KPIC' 19450 lt_prog_compiler_static='-Bstatic' 19451 case $cc_basename in 19452 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 19453 lt_prog_compiler_wl='-Qoption ld ';; 19454 *) 19455 lt_prog_compiler_wl='-Wl,';; 19456 esac 19457 ;; 19458 19459 sunos4*) 19460 lt_prog_compiler_wl='-Qoption ld ' 19461 lt_prog_compiler_pic='-PIC' 19462 lt_prog_compiler_static='-Bstatic' 19463 ;; 19464 19465 sysv4 | sysv4.2uw2* | sysv4.3*) 19466 lt_prog_compiler_wl='-Wl,' 19467 lt_prog_compiler_pic='-KPIC' 19468 lt_prog_compiler_static='-Bstatic' 19469 ;; 19470 19471 sysv4*MP*) 19472 if test -d /usr/nec; then 19473 lt_prog_compiler_pic='-Kconform_pic' 19474 lt_prog_compiler_static='-Bstatic' 19475 fi 19476 ;; 19477 19478 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19479 lt_prog_compiler_wl='-Wl,' 19480 lt_prog_compiler_pic='-KPIC' 19481 lt_prog_compiler_static='-Bstatic' 19482 ;; 19483 19484 unicos*) 19485 lt_prog_compiler_wl='-Wl,' 19486 lt_prog_compiler_can_build_shared=no 19487 ;; 19488 19489 uts4*) 19490 lt_prog_compiler_pic='-pic' 19491 lt_prog_compiler_static='-Bstatic' 19492 ;; 19493 19494 *) 19495 lt_prog_compiler_can_build_shared=no 19496 ;; 19497 esac 19498 fi 19499 19500 case $host_os in 19501 # For platforms that do not support PIC, -DPIC is meaningless: 19502 *djgpp*) 19503 lt_prog_compiler_pic= 19504 ;; 19505 *) 19506 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 19507 ;; 19508 esac 19509 19510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19511 printf %s "checking for $compiler option to produce PIC... " >&6; } 19512 if test ${lt_cv_prog_compiler_pic+y} 19513 then : 19514 printf %s "(cached) " >&6 19515 else case e in #( 19516 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 19517 esac 19518 fi 19519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 19520 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 19521 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 19522 19523 # 19524 # Check to make sure the PIC flag actually works. 19525 # 19526 if test -n "$lt_prog_compiler_pic"; then 19527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 19528 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 19529 if test ${lt_cv_prog_compiler_pic_works+y} 19530 then : 19531 printf %s "(cached) " >&6 19532 else case e in #( 19533 e) lt_cv_prog_compiler_pic_works=no 19534 ac_outfile=conftest.$ac_objext 19535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19536 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 19537 # Insert the option either (1) after the last *FLAGS variable, or 19538 # (2) before a word containing "conftest.", or (3) at the end. 19539 # Note that $ac_compile itself does not contain backslashes and begins 19540 # with a dollar sign (not a hyphen), so the echo should work correctly. 19541 # The option is referenced via a variable to avoid confusing sed. 19542 lt_compile=`echo "$ac_compile" | $SED \ 19543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19545 -e 's:$: $lt_compiler_flag:'` 19546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19547 (eval "$lt_compile" 2>conftest.err) 19548 ac_status=$? 19549 cat conftest.err >&5 19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19551 if (exit $ac_status) && test -s "$ac_outfile"; then 19552 # The compiler can only warn and ignore the option if not recognized 19553 # So say no if there are warnings other than the usual output. 19554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19557 lt_cv_prog_compiler_pic_works=yes 19558 fi 19559 fi 19560 $RM conftest* 19561 ;; 19562 esac 19563 fi 19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 19565 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 19566 19567 if test yes = "$lt_cv_prog_compiler_pic_works"; then 19568 case $lt_prog_compiler_pic in 19569 "" | " "*) ;; 19570 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 19571 esac 19572 else 19573 lt_prog_compiler_pic= 19574 lt_prog_compiler_can_build_shared=no 19575 fi 19576 19577 fi 19578 19579 19580 19581 19582 19583 # 19584 # Check to make sure the static flag actually works. 19585 # 19586 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19588 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19589 if test ${lt_cv_prog_compiler_static_works+y} 19590 then : 19591 printf %s "(cached) " >&6 19592 else case e in #( 19593 e) lt_cv_prog_compiler_static_works=no 19594 save_LDFLAGS=$LDFLAGS 19595 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19596 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19597 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19598 # The linker can only warn and ignore the option if not recognized 19599 # So say no if there are warnings 19600 if test -s conftest.err; then 19601 # Append any errors to the config.log. 19602 cat conftest.err 1>&5 19603 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19605 if diff conftest.exp conftest.er2 >/dev/null; then 19606 lt_cv_prog_compiler_static_works=yes 19607 fi 19608 else 19609 lt_cv_prog_compiler_static_works=yes 19610 fi 19611 fi 19612 $RM -r conftest* 19613 LDFLAGS=$save_LDFLAGS 19614 ;; 19615 esac 19616 fi 19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 19618 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 19619 19620 if test yes = "$lt_cv_prog_compiler_static_works"; then 19621 : 19622 else 19623 lt_prog_compiler_static= 19624 fi 19625 19626 19627 19628 ='-fPIC' 19629 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 19630 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' 19631 archive_cmds_need_lc=no 19632 no_undefined_flag= 19633 ;; 19634 19635 *) 19636 dynamic_linker=no 19637 ;; 19638 esac 19639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19640 printf "%s\n" "$dynamic_linker" >&6; } 19641 test no = "$dynamic_linker" && can_build_shared=no 19642 19643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19644 if test yes = "$GCC"; then 19645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19646 fi 19647 19648 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 19649 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 19650 fi 19651 19652 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 19653 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 19654 fi 19655 19656 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 19657 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 19658 19659 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 19660 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 19661 19662 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 19663 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19762 printf %s "checking how to hardcode library paths into programs... " >&6; } 19763 hardcode_action= 19764 if test -n "$hardcode_libdir_flag_spec" || 19765 test -n "$runpath_var" || 19766 test yes = "$hardcode_automatic"; then 19767 19768 # We can hardcode non-existent directories. 19769 if test no != "$hardcode_direct" && 19770 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19771 # have to relink, otherwise we might link with an installed library 19772 # when we should be linking with a yet-to-be-installed one 19773 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 19774 test no != "$hardcode_minus_L"; then 19775 # Linking always hardcodes the temporary library directory. 19776 hardcode_action=relink 19777 else 19778 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19779 hardcode_action=immediate 19780 fi 19781 else 19782 # We cannot hardcode anything, or else we can only hardcode existing 19783 # directories. 19784 hardcode_action=unsupported 19785 fi 19786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19787 printf "%s\n" "$hardcode_action" >&6; } 19788 19789 if test relink = "$hardcode_action" || 19790 test yes = "$inherit_rpath"; then 19791 # Fast installation is not supported 19792 enable_fast_install=no 19793 elif test yes = "$shlibpath_overrides_runpath" || 19794 test no = "$enable_shared"; then 19795 # Fast installation is not necessary 19796 enable_fast_install=needless 19797 fi 19798 19799 19800 19801 19802 19803 19804 if test yes != "$enable_dlopen"; then 19805 enable_dlopen=unknown 19806 enable_dlopen_self=unknown 19807 enable_dlopen_self_static=unknown 19808 else 19809 lt_cv_dlopen=no 19810 lt_cv_dlopen_libs= 19811 19812 case $host_os in 19813 beos*) 19814 lt_cv_dlopen=load_add_on 19815 lt_cv_dlopen_libs= 19816 lt_cv_dlopen_self=yes 19817 ;; 19818 19819 mingw* | windows* | pw32* | cegcc*) 19820 lt_cv_dlopen=LoadLibrary 19821 lt_cv_dlopen_libs= 19822 ;; 19823 19824 cygwin*) 19825 lt_cv_dlopen=dlopen 19826 lt_cv_dlopen_libs= 19827 ;; 19828 19829 darwin*) 19830 # if libdl is installed we need to link against it 19831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19832 printf %s "checking for dlopen in -ldl... " >&6; } 19833 if test ${ac_cv_lib_dl_dlopen+y} 19834 then : 19835 printf %s "(cached) " >&6 19836 else case e in #( 19837 e) ac_check_lib_save_LIBS=$LIBS 19838 LIBS="-ldl $LIBS" 19839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19840 /* end confdefs.h. */ 19841 19842 /* Override any GCC internal prototype to avoid an error. 19843 Use char because int might match the return type of a GCC 19844 builtin and then its argument prototype would still apply. 19845 The 'extern "C"' is for builds by C++ compilers; 19846 although this is not generally supported in C code supporting it here 19847 has little cost and some practical benefit (sr 110532). */ 19848 #ifdef __cplusplus 19849 extern "C" 19850 #endif 19851 char dlopen (void); 19852 int 19853 main (void) 19854 { 19855 return dlopen (); 19856 ; 19857 return 0; 19858 } 19859 _ACEOF 19860 if ac_fn_c_try_link "$LINENO" 19861 then : 19862 ac_cv_lib_dl_dlopen=yes 19863 else case e in #( 19864 e) ac_cv_lib_dl_dlopen=no ;; 19865 esac 19866 fi 19867 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19868 conftest$ac_exeext conftest.$ac_ext 19869 LIBS=$ac_check_lib_save_LIBS ;; 19870 esac 19871 fi 19872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19873 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19874 if test "x$ac_cv_lib_dl_dlopen" = xyes 19875 then : 19876 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19877 else case e in #( 19878 e) 19879 lt_cv_dlopen=dyld 19880 lt_cv_dlopen_libs= 19881 lt_cv_dlopen_self=yes 19882 ;; 19883 esac 19884 fi 19885 19886 ;; 19887 19888 tpf*) 19889 # Don't try to run any link tests for TPF. We know it's impossible 19890 # because TPF is a cross-compiler, and we know how we open DSOs. 19891 lt_cv_dlopen=dlopen 19892 lt_cv_dlopen_libs= 19893 lt_cv_dlopen_self=no 19894 ;; 19895 19896 *) 19897 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19898 if test "x$ac_cv_func_shl_load" = xyes 19899 then : 19900 lt_cv_dlopen=shl_load 19901 else case e in #( 19902 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19903 printf %s "checking for shl_load in -ldld... " >&6; } 19904 if test ${ac_cv_lib_dld_shl_load+y} 19905 then : 19906 printf %s "(cached) " >&6 19907 else case e in #( 19908 e) ac_check_lib_save_LIBS=$LIBS 19909 LIBS="-ldld $LIBS" 19910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19911 /* end confdefs.h. */ 19912 19913 /* Override any GCC internal prototype to avoid an error. 19914 Use char because int might match the return type of a GCC 19915 builtin and then its argument prototype would still apply. 19916 The 'extern "C"' is for builds by C++ compilers; 19917 although this is not generally supported in C code supporting it here 19918 has little cost and some practical benefit (sr 110532). */ 19919 #ifdef __cplusplus 19920 extern "C" 19921 #endif 19922 char shl_load (void); 19923 int 19924 main (void) 19925 { 19926 return shl_load (); 19927 ; 19928 return 0; 19929 } 19930 _ACEOF 19931 if ac_fn_c_try_link "$LINENO" 19932 then : 19933 ac_cv_lib_dld_shl_load=yes 19934 else case e in #( 19935 e) ac_cv_lib_dld_shl_load=no ;; 19936 esac 19937 fi 19938 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19939 conftest$ac_exeext conftest.$ac_ext 19940 LIBS=$ac_check_lib_save_LIBS ;; 19941 esac 19942 fi 19943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19944 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 19945 if test "x$ac_cv_lib_dld_shl_load" = xyes 19946 then : 19947 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19948 else case e in #( 19949 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19950 if test "x$ac_cv_func_dlopen" = xyes 19951 then : 19952 lt_cv_dlopen=dlopen 19953 else case e in #( 19954 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19955 printf %s "checking for dlopen in -ldl... " >&6; } 19956 if test ${ac_cv_lib_dl_dlopen+y} 19957 then : 19958 printf %s "(cached) " >&6 19959 else case e in #( 19960 e) ac_check_lib_save_LIBS=$LIBS 19961 LIBS="-ldl $LIBS" 19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19963 /* end confdefs.h. */ 19964 19965 /* Override any GCC internal prototype to avoid an error. 19966 Use char because int might match the return type of a GCC 19967 builtin and then its argument prototype would still apply. 19968 The 'extern "C"' is for builds by C++ compilers; 19969 although this is not generally supported in C code supporting it here 19970 has little cost and some practical benefit (sr 110532). */ 19971 #ifdef __cplusplus 19972 extern "C" 19973 #endif 19974 char dlopen (void); 19975 int 19976 main (void) 19977 { 19978 return dlopen (); 19979 ; 19980 return 0; 19981 } 19982 _ACEOF 19983 if ac_fn_c_try_link "$LINENO" 19984 then : 19985 ac_cv_lib_dl_dlopen=yes 19986 else case e in #( 19987 e) ac_cv_lib_dl_dlopen=no ;; 19988 esac 19989 fi 19990 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19991 conftest$ac_exeext conftest.$ac_ext 19992 LIBS=$ac_check_lib_save_LIBS ;; 19993 esac 19994 fi 19995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19996 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19997 if test "x$ac_cv_lib_dl_dlopen" = xyes 19998 then : 19999 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 20000 else case e in #( 20001 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 20002 printf %s "checking for dlopen in -lsvld... " >&6; } 20003 if test ${ac_cv_lib_svld_dlopen+y} 20004 then : 20005 printf %s "(cached) " >&6 20006 else case e in #( 20007 e) ac_check_lib_save_LIBS=$LIBS 20008 LIBS="-lsvld $LIBS" 20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20010 /* end confdefs.h. */ 20011 20012 /* Override any GCC internal prototype to avoid an error. 20013 Use char because int might match the return type of a GCC 20014 builtin and then its argument prototype would still apply. 20015 The 'extern "C"' is for builds by C++ compilers; 20016 although this is not generally supported in C code supporting it here 20017 has little cost and some practical benefit (sr 110532). */ 20018 #ifdef __cplusplus 20019 extern "C" 20020 #endif 20021 char dlopen (void); 20022 int 20023 main (void) 20024 { 20025 return dlopen (); 20026 ; 20027 return 0; 20028 } 20029 _ACEOF 20030 if ac_fn_c_try_link "$LINENO" 20031 then : 20032 ac_cv_lib_svld_dlopen=yes 20033 else case e in #( 20034 e) ac_cv_lib_svld_dlopen=no ;; 20035 esac 20036 fi 20037 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20038 conftest$ac_exeext conftest.$ac_ext 20039 LIBS=$ac_check_lib_save_LIBS ;; 20040 esac 20041 fi 20042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 20043 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 20044 if test "x$ac_cv_lib_svld_dlopen" = xyes 20045 then : 20046 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 20047 else case e in #( 20048 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 20049 printf %s "checking for dld_link in -ldld... " >&6; } 20050 if test ${ac_cv_lib_dld_dld_link+y} 20051 then : 20052 printf %s "(cached) " >&6 20053 else case e in #( 20054 e) ac_check_lib_save_LIBS=$LIBS 20055 LIBS="-ldld $LIBS" 20056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20057 /* end confdefs.h. */ 20058 20059 /* Override any GCC internal prototype to avoid an error. 20060 Use char because int might match the return type of a GCC 20061 builtin and then its argument prototype would still apply. 20062 The 'extern "C"' is for builds by C++ compilers; 20063 although this is not generally supported in C code supporting it here 20064 has little cost and some practical benefit (sr 110532). */ 20065 #ifdef __cplusplus 20066 extern "C" 20067 #endif 20068 char dld_link (void); 20069 int 20070 main (void) 20071 { 20072 return dld_link (); 20073 ; 20074 return 0; 20075 } 20076 _ACEOF 20077 if ac_fn_c_try_link "$LINENO" 20078 then : 20079 ac_cv_lib_dld_dld_link=yes 20080 else case e in #( 20081 e) ac_cv_lib_dld_dld_link=no ;; 20082 esac 20083 fi 20084 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20085 conftest$ac_exeext conftest.$ac_ext 20086 LIBS=$ac_check_lib_save_LIBS ;; 20087 esac 20088 fi 20089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 20090 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 20091 if test "x$ac_cv_lib_dld_dld_link" = xyes 20092 then : 20093 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 20094 fi 20095 20096 ;; 20097 esac 20098 fi 20099 20100 ;; 20101 esac 20102 fi 20103 20104 ;; 20105 esac 20106 fi 20107 20108 ;; 20109 esac 20110 fi 20111 20112 ;; 20113 esac 20114 fi 20115 20116 ;; 20117 esac 20118 20119 if test no = "$lt_cv_dlopen"; then 20120 enable_dlopen=no 20121 else 20122 enable_dlopen=yes 20123 fi 20124 20125 case $lt_cv_dlopen in 20126 dlopen) 20127 save_CPPFLAGS=$CPPFLAGS 20128 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20129 20130 save_LDFLAGS=$LDFLAGS 20131 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20132 20133 save_LIBS=$LIBS 20134 LIBS="$lt_cv_dlopen_libs $LIBS" 20135 20136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 20137 printf %s "checking whether a program can dlopen itself... " >&6; } 20138 if test ${lt_cv_dlopen_self+y} 20139 then : 20140 printf %s "(cached) " >&6 20141 else case e in #( 20142 e) if test yes = "$cross_compiling"; then : 20143 lt_cv_dlopen_self=cross 20144 else 20145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20146 lt_status=$lt_dlunknown 20147 cat > conftest.$ac_ext <<_LT_EOF 20148 #line $LINENO "configure" 20149 #include "confdefs.h" 20150 20151 #if HAVE_DLFCN_H 20152 #include <dlfcn.h> 20153 #endif 20154 20155 #include <stdio.h> 20156 20157 #ifdef RTLD_GLOBAL 20158 # define LT_DLGLOBAL RTLD_GLOBAL 20159 #else 20160 # ifdef DL_GLOBAL 20161 # define LT_DLGLOBAL DL_GLOBAL 20162 # else 20163 # define LT_DLGLOBAL 0 20164 # endif 20165 #endif 20166 20167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20168 find out it does not work in some platform. */ 20169 #ifndef LT_DLLAZY_OR_NOW 20170 # ifdef RTLD_LAZY 20171 # define LT_DLLAZY_OR_NOW RTLD_LAZY 20172 # else 20173 # ifdef DL_LAZY 20174 # define LT_DLLAZY_OR_NOW DL_LAZY 20175 # else 20176 # ifdef RTLD_NOW 20177 # define LT_DLLAZY_OR_NOW RTLD_NOW 20178 # else 20179 # ifdef DL_NOW 20180 # define LT_DLLAZY_OR_NOW DL_NOW 20181 # else 20182 # define LT_DLLAZY_OR_NOW 0 20183 # endif 20184 # endif 20185 # endif 20186 # endif 20187 #endif 20188 20189 /* When -fvisibility=hidden is used, assume the code has been annotated 20190 correspondingly for the symbols needed. */ 20191 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20192 int fnord (void) __attribute__((visibility("default"))); 20193 #endif 20194 20195 int fnord (void) { return 42; } 20196 int main (void) 20197 { 20198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20199 int status = $lt_dlunknown; 20200 20201 if (self) 20202 { 20203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20204 else 20205 { 20206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20207 else puts (dlerror ()); 20208 } 20209 /* dlclose (self); */ 20210 } 20211 else 20212 puts (dlerror ()); 20213 20214 return status; 20215 } 20216 _LT_EOF 20217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20218 (eval $ac_link) 2>&5 20219 ac_status=$? 20220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20221 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20222 (./conftest; exit; ) >&5 2>/dev/null 20223 lt_status=$? 20224 case x$lt_status in 20225 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 20226 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 20227 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 20228 esac 20229 else : 20230 # compilation failed 20231 lt_cv_dlopen_self=no 20232 fi 20233 fi 20234 rm -fr conftest* 20235 20236 ;; 20237 esac 20238 fi 20239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 20240 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 20241 20242 if test yes = "$lt_cv_dlopen_self"; then 20243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 20244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 20245 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 20246 if test ${lt_cv_dlopen_self_static+y} 20247 then : 20248 printf %s "(cached) " >&6 20249 else case e in #( 20250 e) if test yes = "$cross_compiling"; then : 20251 lt_cv_dlopen_self_static=cross 20252 else 20253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 20254 lt_status=$lt_dlunknown 20255 cat > conftest.$ac_ext <<_LT_EOF 20256 #line $LINENO "configure" 20257 #include "confdefs.h" 20258 20259 #if HAVE_DLFCN_H 20260 #include <dlfcn.h> 20261 #endif 20262 20263 #include <stdio.h> 20264 20265 #ifdef RTLD_GLOBAL 20266 # define LT_DLGLOBAL RTLD_GLOBAL 20267 #else 20268 # ifdef DL_GLOBAL 20269 # define LT_DLGLOBAL DL_GLOBAL 20270 # else 20271 # define LT_DLGLOBAL 0 20272 # endif 20273 #endif 20274 20275 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 20276 find out it does not work in some platform. */ 20277 #ifndef LT_DLLAZY_OR_NOW 20278 # ifdef RTLD_LAZY 20279 # define LT_DLLAZY_OR_NOW RTLD_LAZY 20280 # else 20281 # ifdef DL_LAZY 20282 # define LT_DLLAZY_OR_NOW DL_LAZY 20283 # else 20284 # ifdef RTLD_NOW 20285 # define LT_DLLAZY_OR_NOW RTLD_NOW 20286 # else 20287 # ifdef DL_NOW 20288 # define LT_DLLAZY_OR_NOW DL_NOW 20289 # else 20290 # define LT_DLLAZY_OR_NOW 0 20291 # endif 20292 # endif 20293 # endif 20294 # endif 20295 #endif 20296 20297 /* When -fvisibility=hidden is used, assume the code has been annotated 20298 correspondingly for the symbols needed. */ 20299 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 20300 int fnord (void) __attribute__((visibility("default"))); 20301 #endif 20302 20303 int fnord (void) { return 42; } 20304 int main (void) 20305 { 20306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 20307 int status = $lt_dlunknown; 20308 20309 if (self) 20310 { 20311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 20312 else 20313 { 20314 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 20315 else puts (dlerror ()); 20316 } 20317 /* dlclose (self); */ 20318 } 20319 else 20320 puts (dlerror ()); 20321 20322 return status; 20323 } 20324 _LT_EOF 20325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 20326 (eval $ac_link) 2>&5 20327 ac_status=$? 20328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20329 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 20330 (./conftest; exit; ) >&5 2>/dev/null 20331 lt_status=$? 20332 case x$lt_status in 20333 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 20334 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 20335 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 20336 esac 20337 else : 20338 # compilation failed 20339 lt_cv_dlopen_self_static=no 20340 fi 20341 fi 20342 rm -fr conftest* 20343 20344 ;; 20345 esac 20346 fi 20347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 20348 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 20349 fi 20350 20351 CPPFLAGS=$save_CPPFLAGS 20352 LDFLAGS=$save_LDFLAGS 20353 LIBS=$save_LIBS 20354 ;; 20355 esac 20356 20357 case $lt_cv_dlopen_self in 20358 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 20359 *) enable_dlopen_self=unknown ;; 20360 esac 20361 20362 case $lt_cv_dlopen_self_static in 20363 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 20364 *) enable_dlopen_self_static=unknown ;; 20365 esac 20366 fi 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 striplib= 20385 old_striplib= 20386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 20387 printf %s "checking whether stripping libraries is possible... " >&6; } 20388 if test -z "$STRIP"; then 20389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20390 printf "%s\n" "no" >&6; } 20391 else 20392 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 20393 old_striplib="$STRIP --strip-debug" 20394 striplib="$STRIP --strip-unneeded" 20395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20396 printf "%s\n" "yes" >&6; } 20397 else 20398 case $host_os in 20399 darwin*) 20400 # FIXME - insert some real tests, host_os isn't really good enough 20401 striplib="$STRIP -x" 20402 old_striplib="$STRIP -S" 20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20404 printf "%s\n" "yes" >&6; } 20405 ;; 20406 freebsd*) 20407 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 20408 old_striplib="$STRIP --strip-debug" 20409 striplib="$STRIP --strip-unneeded" 20410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20411 printf "%s\n" "yes" >&6; } 20412 else 20413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20414 printf "%s\n" "no" >&6; } 20415 fi 20416 ;; 20417 *) 20418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20419 printf "%s\n" "no" >&6; } 20420 ;; 20421 esac 20422 fi 20423 fi 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 # Report what library types will actually be built 20437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 20438 printf %s "checking if libtool supports shared libraries... " >&6; } 20439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 20440 printf "%s\n" "$can_build_shared" >&6; } 20441 20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 20443 printf %s "checking whether to build shared libraries... " >&6; } 20444 test no = "$can_build_shared" && enable_shared=no 20445 20446 # On AIX, shared libraries and static libraries use the same namespace, and 20447 # are all built from PIC. 20448 case $host_os in 20449 aix3*) 20450 test yes = "$enable_shared" && enable_static=no 20451 if test -n "$RANLIB"; then 20452 archive_cmds="$archive_cmds~\$RANLIB \$lib" 20453 postinstall_cmds='$RANLIB $lib' 20454 fi 20455 ;; 20456 20457 aix[4-9]*) 20458 if test ia64 != "$host_cpu"; then 20459 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 20460 yes,aix,yes) ;; # shared object as lib.so file only 20461 yes,svr4,*) ;; # shared object as lib.so archive member only 20462 yes,*) enable_static=no ;; # shared object in lib.a archive as well 20463 esac 20464 fi 20465 ;; 20466 esac 20467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 20468 printf "%s\n" "$enable_shared" >&6; } 20469 20470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 20471 printf %s "checking whether to build static libraries... " >&6; } 20472 # Make sure either enable_shared or enable_static is yes. 20473 test yes = "$enable_shared" || enable_static=yes 20474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 20475 printf "%s\n" "$enable_static" >&6; } 20476 20477 20478 20479 20480 fi 20481 ac_ext=c 20482 ac_cpp='$CPP $CPPFLAGS' 20483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20485 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20486 20487 CC=$lt_save_CC 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 20502 20503 ac_config_commands="$ac_config_commands libtool" 20504 20505 20506 20507 20508 # Only expand once: 20509 20510 20511 20512 20513 20514 # Define a configure option for an alternate module directory 20515 20516 # Check whether --with-xorg-module-dir was given. 20517 if test ${with_xorg_module_dir+y} 20518 then : 20519 withval=$with_xorg_module_dir; moduledir="$withval" 20520 else case e in #( 20521 e) moduledir="$libdir/xorg/modules" ;; 20522 esac 20523 fi 20524 20525 20526 20527 # Store the list of server defined optional extensions in REQUIRED_MODULES 20528 20529 20530 SAVE_CFLAGS="$CFLAGS" 20531 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20533 /* end confdefs.h. */ 20534 20535 #include "xorg-server.h" 20536 #if !defined RANDR 20537 #error RANDR not defined 20538 #endif 20539 20540 int 20541 main (void) 20542 { 20543 20544 ; 20545 return 0; 20546 } 20547 _ACEOF 20548 if ac_fn_c_try_compile "$LINENO" 20549 then : 20550 _EXT_CHECK=yes 20551 else case e in #( 20552 e) _EXT_CHECK=no ;; 20553 esac 20554 fi 20555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20556 CFLAGS="$SAVE_CFLAGS" 20557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 20558 printf %s "checking if RANDR is defined... " >&6; } 20559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20560 printf "%s\n" "$_EXT_CHECK" >&6; } 20561 if test "$_EXT_CHECK" != no; then 20562 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20563 fi 20564 20565 20566 20567 SAVE_CFLAGS="$CFLAGS" 20568 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 20569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20570 /* end confdefs.h. */ 20571 20572 #include "xorg-server.h" 20573 #if !defined RENDER 20574 #error RENDER not defined 20575 #endif 20576 20577 int 20578 main (void) 20579 { 20580 20581 ; 20582 return 0; 20583 } 20584 _ACEOF 20585 if ac_fn_c_try_compile "$LINENO" 20586 then : 20587 _EXT_CHECK=yes 20588 else case e in #( 20589 e) _EXT_CHECK=no ;; 20590 esac 20591 fi 20592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20593 CFLAGS="$SAVE_CFLAGS" 20594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 20595 printf %s "checking if RENDER is defined... " >&6; } 20596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20597 printf "%s\n" "$_EXT_CHECK" >&6; } 20598 if test "$_EXT_CHECK" != no; then 20599 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 20600 fi 20601 20602 20603 20604 SAVE_CFLAGS="$CFLAGS" 20605 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 20606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20607 /* end confdefs.h. */ 20608 20609 #include "xorg-server.h" 20610 #if !defined XV 20611 #error XV not defined 20612 #endif 20613 20614 int 20615 main (void) 20616 { 20617 20618 ; 20619 return 0; 20620 } 20621 _ACEOF 20622 if ac_fn_c_try_compile "$LINENO" 20623 then : 20624 _EXT_CHECK=yes 20625 else case e in #( 20626 e) _EXT_CHECK=no ;; 20627 esac 20628 fi 20629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20630 CFLAGS="$SAVE_CFLAGS" 20631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 20632 printf %s "checking if XV is defined... " >&6; } 20633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20634 printf "%s\n" "$_EXT_CHECK" >&6; } 20635 if test "$_EXT_CHECK" != no; then 20636 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 20637 fi 20638 20639 20640 20641 SAVE_CFLAGS="$CFLAGS" 20642 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 20643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20644 /* end confdefs.h. */ 20645 20646 #include "xorg-server.h" 20647 #if !defined DPMSExtension 20648 #error DPMSExtension not defined 20649 #endif 20650 20651 int 20652 main (void) 20653 { 20654 20655 ; 20656 return 0; 20657 } 20658 _ACEOF 20659 if ac_fn_c_try_compile "$LINENO" 20660 then : 20661 _EXT_CHECK=yes 20662 else case e in #( 20663 e) _EXT_CHECK=no ;; 20664 esac 20665 fi 20666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20667 CFLAGS="$SAVE_CFLAGS" 20668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 20669 printf %s "checking if DPMSExtension is defined... " >&6; } 20670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20671 printf "%s\n" "$_EXT_CHECK" >&6; } 20672 if test "$_EXT_CHECK" != no; then 20673 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 20674 fi 20675 20676 20677 # Obtain compiler/linker options for the driver dependencies 20678 20679 pkg_failed=no 20680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 20681 printf %s "checking for XORG... " >&6; } 20682 20683 if test -n "$XORG_CFLAGS"; then 20684 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 20685 elif test -n "$PKG_CONFIG"; then 20686 if test -n "$PKG_CONFIG" && \ 20687 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.18 xproto >= 7.0.22 fontsproto \$REQUIRED_MODULES\""; } >&5 20688 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.18 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES") 2>&5 20689 ac_status=$? 20690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20691 test $ac_status = 0; }; then 20692 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.18 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES" 2>/dev/null` 20693 test "x$?" != "x0" && pkg_failed=yes 20694 else 20695 pkg_failed=yes 20696 fi 20697 else 20698 pkg_failed=untried 20699 fi 20700 if test -n "$XORG_LIBS"; then 20701 pkg_cv_XORG_LIBS="$XORG_LIBS" 20702 elif test -n "$PKG_CONFIG"; then 20703 if test -n "$PKG_CONFIG" && \ 20704 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.18 xproto >= 7.0.22 fontsproto \$REQUIRED_MODULES\""; } >&5 20705 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.18 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES") 2>&5 20706 ac_status=$? 20707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20708 test $ac_status = 0; }; then 20709 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.18 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES" 2>/dev/null` 20710 test "x$?" != "x0" && pkg_failed=yes 20711 else 20712 pkg_failed=yes 20713 fi 20714 else 20715 pkg_failed=untried 20716 fi 20717 20718 20719 20720 if test $pkg_failed = yes; then 20721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20722 printf "%s\n" "no" >&6; } 20723 20724 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20725 _pkg_short_errors_supported=yes 20726 else 20727 _pkg_short_errors_supported=no 20728 fi 20729 if test $_pkg_short_errors_supported = yes; then 20730 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.18 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES" 2>&1` 20731 else 20732 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.18 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES" 2>&1` 20733 fi 20734 # Put the nasty error message in config.log where it belongs 20735 echo "$XORG_PKG_ERRORS" >&5 20736 20737 as_fn_error $? "Package requirements (xorg-server >= 1.18 xproto >= 7.0.22 fontsproto $REQUIRED_MODULES) were not met: 20738 20739 $XORG_PKG_ERRORS 20740 20741 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20742 installed software in a non-standard prefix. 20743 20744 Alternatively, you may set the environment variables XORG_CFLAGS 20745 and XORG_LIBS to avoid the need to call pkg-config. 20746 See the pkg-config man page for more details." "$LINENO" 5 20747 elif test $pkg_failed = untried; then 20748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20749 printf "%s\n" "no" >&6; } 20750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20751 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20752 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20753 is in your PATH or set the PKG_CONFIG environment variable to the full 20754 path to pkg-config. 20755 20756 Alternatively, you may set the environment variables XORG_CFLAGS 20757 and XORG_LIBS to avoid the need to call pkg-config. 20758 See the pkg-config man page for more details. 20759 20760 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20761 See 'config.log' for more details" "$LINENO" 5; } 20762 else 20763 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 20764 XORG_LIBS=$pkg_cv_XORG_LIBS 20765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20766 printf "%s\n" "yes" >&6; } 20767 20768 fi 20769 20770 # Checks for libraries. 20771 SAVE_CPPFLAGS="$CPPFLAGS" 20772 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 20773 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 20774 " "$ac_c_undeclared_builtin_options" "CFLAGS" 20775 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 20776 then : 20777 XSERVER_LIBPCIACCESS=yes 20778 else case e in #( 20779 e) XSERVER_LIBPCIACCESS=no ;; 20780 esac 20781 fi 20782 CPPFLAGS="$SAVE_CPPFLAGS" 20783 20784 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20785 20786 pkg_failed=no 20787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 20788 printf %s "checking for PCIACCESS... " >&6; } 20789 20790 if test -n "$PCIACCESS_CFLAGS"; then 20791 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 20792 elif test -n "$PKG_CONFIG"; then 20793 if test -n "$PKG_CONFIG" && \ 20794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 20795 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 20796 ac_status=$? 20797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20798 test $ac_status = 0; }; then 20799 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 20800 test "x$?" != "x0" && pkg_failed=yes 20801 else 20802 pkg_failed=yes 20803 fi 20804 else 20805 pkg_failed=untried 20806 fi 20807 if test -n "$PCIACCESS_LIBS"; then 20808 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 20809 elif test -n "$PKG_CONFIG"; then 20810 if test -n "$PKG_CONFIG" && \ 20811 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 20812 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 20813 ac_status=$? 20814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20815 test $ac_status = 0; }; then 20816 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 20817 test "x$?" != "x0" && pkg_failed=yes 20818 else 20819 pkg_failed=yes 20820 fi 20821 else 20822 pkg_failed=untried 20823 fi 20824 20825 20826 20827 if test $pkg_failed = yes; then 20828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20829 printf "%s\n" "no" >&6; } 20830 20831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20832 _pkg_short_errors_supported=yes 20833 else 20834 _pkg_short_errors_supported=no 20835 fi 20836 if test $_pkg_short_errors_supported = yes; then 20837 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 20838 else 20839 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 20840 fi 20841 # Put the nasty error message in config.log where it belongs 20842 echo "$PCIACCESS_PKG_ERRORS" >&5 20843 20844 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 20845 20846 $PCIACCESS_PKG_ERRORS 20847 20848 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20849 installed software in a non-standard prefix. 20850 20851 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20852 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20853 See the pkg-config man page for more details." "$LINENO" 5 20854 elif test $pkg_failed = untried; then 20855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20856 printf "%s\n" "no" >&6; } 20857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20858 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20859 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20860 is in your PATH or set the PKG_CONFIG environment variable to the full 20861 path to pkg-config. 20862 20863 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20864 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20865 See the pkg-config man page for more details. 20866 20867 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20868 See 'config.log' for more details" "$LINENO" 5; } 20869 else 20870 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20871 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20873 printf "%s\n" "yes" >&6; } 20874 20875 fi 20876 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 20877 fi 20878 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20879 XSERVER_LIBPCIACCESS_TRUE= 20880 XSERVER_LIBPCIACCESS_FALSE='#' 20881 else 20882 XSERVER_LIBPCIACCESS_TRUE='#' 20883 XSERVER_LIBPCIACCESS_FALSE= 20884 fi 20885 20886 20887 # Checks for library functions 20888 # We don't use strlcat, strlcpy, or timingsafe_memcmp, but check to quiet 20889 # -Wredundant-decls warning from xorg/os.h which will otherwise redefine them. 20890 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20891 if test "x$ac_cv_func_strlcat" = xyes 20892 then : 20893 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 20894 20895 fi 20896 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20897 if test "x$ac_cv_func_strlcpy" = xyes 20898 then : 20899 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20900 20901 fi 20902 ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp" 20903 if test "x$ac_cv_func_timingsafe_memcmp" = xyes 20904 then : 20905 printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h 20906 20907 fi 20908 20909 20910 DRIVER_NAME=nv 20911 20912 20913 ac_config_files="$ac_config_files Makefile src/Makefile" 20914 20915 cat >confcache <<\_ACEOF 20916 # This file is a shell script that caches the results of configure 20917 # tests run on this system so they can be shared between configure 20918 # scripts and configure runs, see configure's option --config-cache. 20919 # It is not useful on other systems. If it contains results you don't 20920 # want to keep, you may remove or edit it. 20921 # 20922 # config.status only pays attention to the cache file if you give it 20923 # the --recheck option to rerun configure. 20924 # 20925 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 20926 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 20927 # following values. 20928 20929 _ACEOF 20930 20931 # The following way of writing the cache mishandles newlines in values, 20932 # but we know of no workaround that is simple, portable, and efficient. 20933 # So, we kill variables containing newlines. 20934 # Ultrix sh set writes to stderr and can't be redirected directly, 20935 # and sets the high bit in the cache file unless we assign to the vars. 20936 ( 20937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20938 eval ac_val=\$$ac_var 20939 case $ac_val in #( 20940 *${as_nl}*) 20941 case $ac_var in #( 20942 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20943 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20944 esac 20945 case $ac_var in #( 20946 _ | IFS | as_nl) ;; #( 20947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20948 *) { eval $ac_var=; unset $ac_var;} ;; 20949 esac ;; 20950 esac 20951 done 20952 20953 (set) 2>&1 | 20954 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20955 *${as_nl}ac_space=\ *) 20956 # 'set' does not quote correctly, so add quotes: double-quote 20957 # substitution turns \\\\ into \\, and sed turns \\ into \. 20958 sed -n \ 20959 "s/'/'\\\\''/g; 20960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20961 ;; #( 20962 *) 20963 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20965 ;; 20966 esac | 20967 sort 20968 ) | 20969 sed ' 20970 /^ac_cv_env_/b end 20971 t clear 20972 :clear 20973 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20974 t end 20975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20976 :end' >>confcache 20977 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20978 if test -w "$cache_file"; then 20979 if test "x$cache_file" != "x/dev/null"; then 20980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20981 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20982 if test ! -f "$cache_file" || test -h "$cache_file"; then 20983 cat confcache >"$cache_file" 20984 else 20985 case $cache_file in #( 20986 */* | ?:*) 20987 mv -f confcache "$cache_file"$$ && 20988 mv -f "$cache_file"$$ "$cache_file" ;; #( 20989 *) 20990 mv -f confcache "$cache_file" ;; 20991 esac 20992 fi 20993 fi 20994 else 20995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20996 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20997 fi 20998 fi 20999 rm -f confcache 21000 21001 test "x$prefix" = xNONE && prefix=$ac_default_prefix 21002 # Let make expand exec_prefix. 21003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21004 21005 DEFS=-DHAVE_CONFIG_H 21006 21007 ac_libobjs= 21008 ac_ltlibobjs= 21009 U= 21010 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21011 # 1. Remove the extension, and $U if already installed. 21012 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21013 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 21014 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21015 # will be set to the directory where LIBOBJS objects are built. 21016 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21017 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21018 done 21019 LIBOBJS=$ac_libobjs 21020 21021 LTLIBOBJS=$ac_ltlibobjs 21022 21023 21024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21025 printf %s "checking that generated files are newer than configure... " >&6; } 21026 if test -n "$am_sleep_pid"; then 21027 # Hide warnings about reused PIDs. 21028 wait $am_sleep_pid 2>/dev/null 21029 fi 21030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 21031 printf "%s\n" "done" >&6; } 21032 case $enable_silent_rules in # ((( 21033 yes) AM_DEFAULT_VERBOSITY=0;; 21034 no) AM_DEFAULT_VERBOSITY=1;; 21035 esac 21036 if test $am_cv_make_support_nested_variables = yes; then 21037 AM_V='$(V)' 21038 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 21039 else 21040 AM_V=$AM_DEFAULT_VERBOSITY 21041 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 21042 fi 21043 21044 if test -n "$EXEEXT"; then 21045 am__EXEEXT_TRUE= 21046 am__EXEEXT_FALSE='#' 21047 else 21048 am__EXEEXT_TRUE='#' 21049 am__EXEEXT_FALSE= 21050 fi 21051 21052 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21053 as_fn_error $? "conditional \"AMDEP\" was never defined. 21054 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21055 fi 21056 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21057 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21058 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21059 fi 21060 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 21061 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 21062 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21063 fi 21064 21065 : "${CONFIG_STATUS=./config.status}" 21066 ac_write_fail=0 21067 ac_clean_files_save=$ac_clean_files 21068 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21070 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 21071 as_write_fail=0 21072 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21073 #! $SHELL 21074 # Generated by $as_me. 21075 # Run this file to recreate the current configuration. 21076 # Compiler output produced by configure, useful for debugging 21077 # configure, is in config.log if it exists. 21078 21079 debug=false 21080 ac_cs_recheck=false 21081 ac_cs_silent=false 21082 21083 SHELL=\${CONFIG_SHELL-$SHELL} 21084 export SHELL 21085 _ASEOF 21086 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21087 ## -------------------- ## 21088 ## M4sh Initialization. ## 21089 ## -------------------- ## 21090 21091 # Be more Bourne compatible 21092 DUALCASE=1; export DUALCASE # for MKS sh 21093 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21094 then : 21095 emulate sh 21096 NULLCMD=: 21097 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21098 # is contrary to our usage. Disable this feature. 21099 alias -g '${1+"$@"}'='"$@"' 21100 setopt NO_GLOB_SUBST 21101 else case e in #( 21102 e) case `(set -o) 2>/dev/null` in #( 21103 *posix*) : 21104 set -o posix ;; #( 21105 *) : 21106 ;; 21107 esac ;; 21108 esac 21109 fi 21110 21111 21112 21113 # Reset variables that may have inherited troublesome values from 21114 # the environment. 21115 21116 # IFS needs to be set, to space, tab, and newline, in precisely that order. 21117 # (If _AS_PATH_WALK were called with IFS unset, it would have the 21118 # side effect of setting IFS to empty, thus disabling word splitting.) 21119 # Quoting is to prevent editors from complaining about space-tab. 21120 as_nl=' 21121 ' 21122 export as_nl 21123 IFS=" "" $as_nl" 21124 21125 PS1='$ ' 21126 PS2='> ' 21127 PS4='+ ' 21128 21129 # Ensure predictable behavior from utilities with locale-dependent output. 21130 LC_ALL=C 21131 export LC_ALL 21132 LANGUAGE=C 21133 export LANGUAGE 21134 21135 # We cannot yet rely on "unset" to work, but we need these variables 21136 # to be unset--not just set to an empty or harmless value--now, to 21137 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 21138 # also avoids known problems related to "unset" and subshell syntax 21139 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 21140 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 21141 do eval test \${$as_var+y} \ 21142 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21143 done 21144 21145 # Ensure that fds 0, 1, and 2 are open. 21146 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 21147 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 21148 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 21149 21150 # The user is always right. 21151 if ${PATH_SEPARATOR+false} :; then 21152 PATH_SEPARATOR=: 21153 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21154 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21155 PATH_SEPARATOR=';' 21156 } 21157 fi 21158 21159 21160 # Find who we are. Look in the path if we contain no directory separator. 21161 as_myself= 21162 case $0 in #(( 21163 *[\\/]* ) as_myself=$0 ;; 21164 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21165 for as_dir in $PATH 21166 do 21167 IFS=$as_save_IFS 21168 case $as_dir in #((( 21169 '') as_dir=./ ;; 21170 */) ;; 21171 *) as_dir=$as_dir/ ;; 21172 esac 21173 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 21174 done 21175 IFS=$as_save_IFS 21176 21177 ;; 21178 esac 21179 # We did not find ourselves, most probably we were run as 'sh COMMAND' 21180 # in which case we are not to be found in the path. 21181 if test "x$as_myself" = x; then 21182 as_myself=$0 21183 fi 21184 if test ! -f "$as_myself"; then 21185 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21186 exit 1 21187 fi 21188 21189 21190 21191 # as_fn_error STATUS ERROR [LINENO LOG_FD] 21192 # ---------------------------------------- 21193 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21194 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21195 # script with STATUS, using 1 if that was 0. 21196 as_fn_error () 21197 { 21198 as_status=$1; test $as_status -eq 0 && as_status=1 21199 if test "$4"; then 21200 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21202 fi 21203 printf "%s\n" "$as_me: error: $2" >&2 21204 as_fn_exit $as_status 21205 } # as_fn_error 21206 21207 21208 # as_fn_set_status STATUS 21209 # ----------------------- 21210 # Set $? to STATUS, without forking. 21211 as_fn_set_status () 21212 { 21213 return $1 21214 } # as_fn_set_status 21215 21216 # as_fn_exit STATUS 21217 # ----------------- 21218 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21219 as_fn_exit () 21220 { 21221 set +e 21222 as_fn_set_status $1 21223 exit $1 21224 } # as_fn_exit 21225 21226 # as_fn_unset VAR 21227 # --------------- 21228 # Portably unset VAR. 21229 as_fn_unset () 21230 { 21231 { eval $1=; unset $1;} 21232 } 21233 as_unset=as_fn_unset 21234 21235 # as_fn_append VAR VALUE 21236 # ---------------------- 21237 # Append the text in VALUE to the end of the definition contained in VAR. Take 21238 # advantage of any shell optimizations that allow amortized linear growth over 21239 # repeated appends, instead of the typical quadratic growth present in naive 21240 # implementations. 21241 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21242 then : 21243 eval 'as_fn_append () 21244 { 21245 eval $1+=\$2 21246 }' 21247 else case e in #( 21248 e) as_fn_append () 21249 { 21250 eval $1=\$$1\$2 21251 } ;; 21252 esac 21253 fi # as_fn_append 21254 21255 # as_fn_arith ARG... 21256 # ------------------ 21257 # Perform arithmetic evaluation on the ARGs, and store the result in the 21258 # global $as_val. Take advantage of shells that can avoid forks. The arguments 21259 # must be portable across $(()) and expr. 21260 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21261 then : 21262 eval 'as_fn_arith () 21263 { 21264 as_val=$(( $* )) 21265 }' 21266 else case e in #( 21267 e) as_fn_arith () 21268 { 21269 as_val=`expr "$@" || test $? -eq 1` 21270 } ;; 21271 esac 21272 fi # as_fn_arith 21273 21274 21275 if expr a : '\(a\)' >/dev/null 2>&1 && 21276 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21277 as_expr=expr 21278 else 21279 as_expr=false 21280 fi 21281 21282 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21283 as_basename=basename 21284 else 21285 as_basename=false 21286 fi 21287 21288 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21289 as_dirname=dirname 21290 else 21291 as_dirname=false 21292 fi 21293 21294 as_me=`$as_basename -- "$0" || 21295 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21296 X"$0" : 'X\(//\)$' \| \ 21297 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21298 printf "%s\n" X/"$0" | 21299 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21300 s//\1/ 21301 q 21302 } 21303 /^X\/\(\/\/\)$/{ 21304 s//\1/ 21305 q 21306 } 21307 /^X\/\(\/\).*/{ 21308 s//\1/ 21309 q 21310 } 21311 s/.*/./; q'` 21312 21313 # Avoid depending upon Character Ranges. 21314 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21315 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21316 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21317 as_cr_digits='0123456789' 21318 as_cr_alnum=$as_cr_Letters$as_cr_digits 21319 21320 21321 # Determine whether it's possible to make 'echo' print without a newline. 21322 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21323 # for compatibility with existing Makefiles. 21324 ECHO_C= ECHO_N= ECHO_T= 21325 case `echo -n x` in #((((( 21326 -n*) 21327 case `echo 'xy\c'` in 21328 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21329 xy) ECHO_C='\c';; 21330 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21331 ECHO_T=' ';; 21332 esac;; 21333 *) 21334 ECHO_N='-n';; 21335 esac 21336 21337 # For backward compatibility with old third-party macros, we provide 21338 # the shell variables $as_echo and $as_echo_n. New code should use 21339 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21340 as_echo='printf %s\n' 21341 as_echo_n='printf %s' 21342 21343 rm -f conf$$ conf$$.exe conf$$.file 21344 if test -d conf$$.dir; then 21345 rm -f conf$$.dir/conf$$.file 21346 else 21347 rm -f conf$$.dir 21348 mkdir conf$$.dir 2>/dev/null 21349 fi 21350 if (echo >conf$$.file) 2>/dev/null; then 21351 if ln -s conf$$.file conf$$ 2>/dev/null; then 21352 as_ln_s='ln -s' 21353 # ... but there are two gotchas: 21354 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 21355 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 21356 # In both cases, we have to default to 'cp -pR'. 21357 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21358 as_ln_s='cp -pR' 21359 elif ln conf$$.file conf$$ 2>/dev/null; then 21360 as_ln_s=ln 21361 else 21362 as_ln_s='cp -pR' 21363 fi 21364 else 21365 as_ln_s='cp -pR' 21366 fi 21367 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21368 rmdir conf$$.dir 2>/dev/null 21369 21370 21371 # as_fn_mkdir_p 21372 # ------------- 21373 # Create "$as_dir" as a directory, including parents if necessary. 21374 as_fn_mkdir_p () 21375 { 21376 21377 case $as_dir in #( 21378 -*) as_dir=./$as_dir;; 21379 esac 21380 test -d "$as_dir" || eval $as_mkdir_p || { 21381 as_dirs= 21382 while :; do 21383 case $as_dir in #( 21384 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21385 *) as_qdir=$as_dir;; 21386 esac 21387 as_dirs="'$as_qdir' $as_dirs" 21388 as_dir=`$as_dirname -- "$as_dir" || 21389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21390 X"$as_dir" : 'X\(//\)[^/]' \| \ 21391 X"$as_dir" : 'X\(//\)$' \| \ 21392 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21393 printf "%s\n" X"$as_dir" | 21394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21395 s//\1/ 21396 q 21397 } 21398 /^X\(\/\/\)[^/].*/{ 21399 s//\1/ 21400 q 21401 } 21402 /^X\(\/\/\)$/{ 21403 s//\1/ 21404 q 21405 } 21406 /^X\(\/\).*/{ 21407 s//\1/ 21408 q 21409 } 21410 s/.*/./; q'` 21411 test -d "$as_dir" && break 21412 done 21413 test -z "$as_dirs" || eval "mkdir $as_dirs" 21414 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21415 21416 21417 } # as_fn_mkdir_p 21418 if mkdir -p . 2>/dev/null; then 21419 as_mkdir_p='mkdir -p "$as_dir"' 21420 else 21421 test -d ./-p && rmdir ./-p 21422 as_mkdir_p=false 21423 fi 21424 21425 21426 # as_fn_executable_p FILE 21427 # ----------------------- 21428 # Test if FILE is an executable regular file. 21429 as_fn_executable_p () 21430 { 21431 test -f "$1" && test -x "$1" 21432 } # as_fn_executable_p 21433 as_test_x='test -x' 21434 as_executable_p=as_fn_executable_p 21435 21436 # Sed expression to map a string onto a valid CPP name. 21437 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 21438 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 21439 21440 # Sed expression to map a string onto a valid variable name. 21441 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21442 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 21443 21444 21445 exec 6>&1 21446 ## ----------------------------------- ## 21447 ## Main body of $CONFIG_STATUS script. ## 21448 ## ----------------------------------- ## 21449 _ASEOF 21450 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21451 21452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21453 # Save the log message, to keep $0 and so on meaningful, and to 21454 # report actual input values of CONFIG_FILES etc. instead of their 21455 # values after options handling. 21456 ac_log=" 21457 This file was extended by xf86-video-ast $as_me 1.2.1, which was 21458 generated by GNU Autoconf 2.72. Invocation command line was 21459 21460 CONFIG_FILES = $CONFIG_FILES 21461 CONFIG_HEADERS = $CONFIG_HEADERS 21462 CONFIG_LINKS = $CONFIG_LINKS 21463 CONFIG_COMMANDS = $CONFIG_COMMANDS 21464 $ $0 $@ 21465 21466 on `(hostname || uname -n) 2>/dev/null | sed 1q` 21467 " 21468 21469 _ACEOF 21470 21471 case $ac_config_files in *" 21472 "*) set x $ac_config_files; shift; ac_config_files=$*;; 21473 esac 21474 21475 case $ac_config_headers in *" 21476 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21477 esac 21478 21479 21480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21481 # Files that config.status was made for. 21482 config_files="$ac_config_files" 21483 config_headers="$ac_config_headers" 21484 config_commands="$ac_config_commands" 21485 21486 _ACEOF 21487 21488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21489 ac_cs_usage="\ 21490 '$as_me' instantiates files and other configuration actions 21491 from templates according to the current configuration. Unless the files 21492 and actions are specified as TAGs, all are instantiated by default. 21493 21494 Usage: $0 [OPTION]... [TAG]... 21495 21496 -h, --help print this help, then exit 21497 -V, --version print version number and configuration settings, then exit 21498 --config print configuration, then exit 21499 -q, --quiet, --silent 21500 do not print progress messages 21501 -d, --debug don't remove temporary files 21502 --recheck update $as_me by reconfiguring in the same conditions 21503 --file=FILE[:TEMPLATE] 21504 instantiate the configuration file FILE 21505 --header=FILE[:TEMPLATE] 21506 instantiate the configuration header FILE 21507 21508 Configuration files: 21509 $config_files 21510 21511 Configuration headers: 21512 $config_headers 21513 21514 Configuration commands: 21515 $config_commands 21516 21517 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-ast/-/issues>." 21518 21519 _ACEOF 21520 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21521 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21523 ac_cs_config='$ac_cs_config_escaped' 21524 ac_cs_version="\\ 21525 xf86-video-ast config.status 1.2.1 21526 configured by $0, generated by GNU Autoconf 2.72, 21527 with options \\"\$ac_cs_config\\" 21528 21529 Copyright (C) 2023 Free Software Foundation, Inc. 21530 This config.status script is free software; the Free Software Foundation 21531 gives unlimited permission to copy, distribute and modify it." 21532 21533 ac_pwd='$ac_pwd' 21534 srcdir='$srcdir' 21535 INSTALL='$INSTALL' 21536 MKDIR_P='$MKDIR_P' 21537 AWK='$AWK' 21538 test -n "\$AWK" || AWK=awk 21539 _ACEOF 21540 21541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21542 # The default lists apply if the user does not specify any file. 21543 ac_need_defaults=: 21544 while test $# != 0 21545 do 21546 case $1 in 21547 --*=?*) 21548 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21550 ac_shift=: 21551 ;; 21552 --*=) 21553 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21554 ac_optarg= 21555 ac_shift=: 21556 ;; 21557 *) 21558 ac_option=$1 21559 ac_optarg=$2 21560 ac_shift=shift 21561 ;; 21562 esac 21563 21564 case $ac_option in 21565 # Handling of the options. 21566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21567 ac_cs_recheck=: ;; 21568 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21569 printf "%s\n" "$ac_cs_version"; exit ;; 21570 --config | --confi | --conf | --con | --co | --c ) 21571 printf "%s\n" "$ac_cs_config"; exit ;; 21572 --debug | --debu | --deb | --de | --d | -d ) 21573 debug=: ;; 21574 --file | --fil | --fi | --f ) 21575 $ac_shift 21576 case $ac_optarg in 21577 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21578 '') as_fn_error $? "missing file argument" ;; 21579 esac 21580 as_fn_append CONFIG_FILES " '$ac_optarg'" 21581 ac_need_defaults=false;; 21582 --header | --heade | --head | --hea ) 21583 $ac_shift 21584 case $ac_optarg in 21585 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21586 esac 21587 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21588 ac_need_defaults=false;; 21589 --he | --h) 21590 # Conflict between --help and --header 21591 as_fn_error $? "ambiguous option: '$1' 21592 Try '$0 --help' for more information.";; 21593 --help | --hel | -h ) 21594 printf "%s\n" "$ac_cs_usage"; exit ;; 21595 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21596 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21597 ac_cs_silent=: ;; 21598 21599 # This is an error. 21600 -*) as_fn_error $? "unrecognized option: '$1' 21601 Try '$0 --help' for more information." ;; 21602 21603 *) as_fn_append ac_config_targets " $1" 21604 ac_need_defaults=false ;; 21605 21606 esac 21607 shift 21608 done 21609 21610 ac_configure_extra_args= 21611 21612 if $ac_cs_silent; then 21613 exec 6>/dev/null 21614 ac_configure_extra_args="$ac_configure_extra_args --silent" 21615 fi 21616 21617 _ACEOF 21618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21619 if \$ac_cs_recheck; then 21620 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21621 shift 21622 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21623 CONFIG_SHELL='$SHELL' 21624 export CONFIG_SHELL 21625 exec "\$@" 21626 fi 21627 21628 _ACEOF 21629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21630 exec 5>>config.log 21631 { 21632 echo 21633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21634 ## Running $as_me. ## 21635 _ASBOX 21636 printf "%s\n" "$ac_log" 21637 } >&5 21638 21639 _ACEOF 21640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21641 # 21642 # INIT-COMMANDS 21643 # 21644 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21645 21646 21647 # The HP-UX ksh and POSIX shell print the target directory to stdout 21648 # if CDPATH is set. 21649 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21650 21651 sed_quote_subst='$sed_quote_subst' 21652 double_quote_subst='$double_quote_subst' 21653 delay_variable_subst='$delay_variable_subst' 21654 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21655 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21656 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21657 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21658 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21659 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21660 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21661 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21662 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21663 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21664 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21665 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21666 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21667 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21668 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21669 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21670 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21671 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21672 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21673 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21674 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21675 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21676 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21677 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21678 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21679 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21680 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21681 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21682 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21683 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21684 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21685 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21686 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21687 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21688 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21689 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21690 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21691 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21692 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21693 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21694 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21695 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21696 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21697 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21698 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21699 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21700 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21701 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21702 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21703 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21704 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21705 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21706 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21707 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21708 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21709 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21710 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21711 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21712 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21713 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21714 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"`' 21715 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21716 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21717 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21718 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21719 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21720 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21721 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21722 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21723 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21724 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21725 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21726 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21727 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21728 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21729 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21730 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21731 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21732 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21733 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21734 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21735 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21736 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21737 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21738 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21739 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21740 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21741 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21742 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21743 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21744 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21745 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21746 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21747 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21748 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21749 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21750 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21751 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21752 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21753 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21754 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21755 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21756 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21757 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21758 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21759 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21760 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21761 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21762 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21763 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21764 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21765 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21766 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21767 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21768 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21769 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21770 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21771 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21772 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21773 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21774 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21775 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21776 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21777 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21778 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21779 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21780 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21781 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21782 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21783 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21784 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21785 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21786 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21787 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21788 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21789 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21790 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21791 21792 LTCC='$LTCC' 21793 LTCFLAGS='$LTCFLAGS' 21794 compiler='$compiler_DEFAULT' 21795 21796 # A function that is used when there is no print builtin or printf. 21797 func_fallback_echo () 21798 { 21799 eval 'cat <<_LTECHO_EOF 21800 \$1 21801 _LTECHO_EOF' 21802 } 21803 21804 # Quote evaled strings. 21805 for var in SHELL \ 21806 ECHO \ 21807 PATH_SEPARATOR \ 21808 SED \ 21809 GREP \ 21810 EGREP \ 21811 FGREP \ 21812 LD \ 21813 NM \ 21814 LN_S \ 21815 lt_SP2NL \ 21816 lt_NL2SP \ 21817 reload_flag \ 21818 FILECMD \ 21819 OBJDUMP \ 21820 deplibs_check_method \ 21821 file_magic_cmd \ 21822 file_magic_glob \ 21823 want_nocaseglob \ 21824 DLLTOOL \ 21825 sharedlib_from_linklib_cmd \ 21826 AR \ 21827 archiver_list_spec \ 21828 STRIP \ 21829 RANLIB \ 21830 CC \ 21831 CFLAGS \ 21832 compiler \ 21833 lt_cv_sys_global_symbol_pipe \ 21834 lt_cv_sys_global_symbol_to_cdecl \ 21835 lt_cv_sys_global_symbol_to_import \ 21836 lt_cv_sys_global_symbol_to_c_name_address \ 21837 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21838 lt_cv_nm_interface \ 21839 nm_file_list_spec \ 21840 lt_cv_truncate_bin \ 21841 lt_prog_compiler_no_builtin_flag \ 21842 lt_prog_compiler_pic \ 21843 lt_prog_compiler_wl \ 21844 lt_prog_compiler_static \ 21845 lt_cv_prog_compiler_c_o \ 21846 need_locks \ 21847 MANIFEST_TOOL \ 21848 DSYMUTIL \ 21849 NMEDIT \ 21850 LIPO \ 21851 OTOOL \ 21852 OTOOL64 \ 21853 shrext_cmds \ 21854 export_dynamic_flag_spec \ 21855 whole_archive_flag_spec \ 21856 compiler_needs_object \ 21857 with_gnu_ld \ 21858 allow_undefined_flag \ 21859 no_undefined_flag \ 21860 hardcode_libdir_flag_spec \ 21861 hardcode_libdir_separator \ 21862 exclude_expsyms \ 21863 include_expsyms \ 21864 file_list_spec \ 21865 variables_saved_for_relink \ 21866 libname_spec \ 21867 library_names_spec \ 21868 soname_spec \ 21869 install_override_mode \ 21870 finish_eval \ 21871 old_striplib \ 21872 striplib; do 21873 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21874 *[\\\\\\\`\\"\\\$]*) 21875 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21876 ;; 21877 *) 21878 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21879 ;; 21880 esac 21881 done 21882 21883 # Double-quote double-evaled strings. 21884 for var in reload_cmds \ 21885 old_postinstall_cmds \ 21886 old_postuninstall_cmds \ 21887 old_archive_cmds \ 21888 extract_expsyms_cmds \ 21889 old_archive_from_new_cmds \ 21890 old_archive_from_expsyms_cmds \ 21891 archive_cmds \ 21892 archive_expsym_cmds \ 21893 module_cmds \ 21894 module_expsym_cmds \ 21895 export_symbols_cmds \ 21896 prelink_cmds \ 21897 postlink_cmds \ 21898 postinstall_cmds \ 21899 postuninstall_cmds \ 21900 finish_cmds \ 21901 sys_lib_search_path_spec \ 21902 configure_time_dlsearch_path \ 21903 configure_time_lt_sys_library_path; do 21904 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21905 *[\\\\\\\`\\"\\\$]*) 21906 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21907 ;; 21908 *) 21909 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21910 ;; 21911 esac 21912 done 21913 21914 ac_aux_dir='$ac_aux_dir' 21915 21916 # See if we are running on zsh, and set the options that allow our 21917 # commands through without removal of \ escapes INIT. 21918 if test -n "\${ZSH_VERSION+set}"; then 21919 setopt NO_GLOB_SUBST 21920 fi 21921 21922 21923 PACKAGE='$PACKAGE' 21924 VERSION='$VERSION' 21925 RM='$RM' 21926 ofile='$ofile' 21927 21928 21929 21930 21931 _ACEOF 21932 21933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21934 21935 # Handling of arguments. 21936 for ac_config_target in $ac_config_targets 21937 do 21938 case $ac_config_target in 21939 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21940 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21941 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21942 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21943 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21944 21945 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21946 esac 21947 done 21948 21949 21950 # If the user did not use the arguments to specify the items to instantiate, 21951 # then the envvar interface is used. Set only those that are not. 21952 # We use the long form for the default assignment because of an extremely 21953 # bizarre bug on SunOS 4.1.3. 21954 if $ac_need_defaults; then 21955 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21956 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21957 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21958 fi 21959 21960 # Have a temporary directory for convenience. Make it in the build tree 21961 # simply because there is no reason against having it here, and in addition, 21962 # creating and moving files from /tmp can sometimes cause problems. 21963 # Hook for its removal unless debugging. 21964 # Note that there is a small window in which the directory will not be cleaned: 21965 # after its creation but before its name has been assigned to '$tmp'. 21966 $debug || 21967 { 21968 tmp= ac_tmp= 21969 trap 'exit_status=$? 21970 : "${ac_tmp:=$tmp}" 21971 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21972 ' 0 21973 trap 'as_fn_exit 1' 1 2 13 15 21974 } 21975 # Create a (secure) tmp directory for tmp files. 21976 21977 { 21978 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21979 test -d "$tmp" 21980 } || 21981 { 21982 tmp=./conf$$-$RANDOM 21983 (umask 077 && mkdir "$tmp") 21984 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21985 ac_tmp=$tmp 21986 21987 # Set up the scripts for CONFIG_FILES section. 21988 # No need to generate them if there are no CONFIG_FILES. 21989 # This happens for instance with './config.status config.h'. 21990 if test -n "$CONFIG_FILES"; then 21991 21992 21993 ac_cr=`echo X | tr X '\015'` 21994 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21995 # But we know of no other shell where ac_cr would be empty at this 21996 # point, so we can use a bashism as a fallback. 21997 if test "x$ac_cr" = x; then 21998 eval ac_cr=\$\'\\r\' 21999 fi 22000 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22001 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22002 ac_cs_awk_cr='\\r' 22003 else 22004 ac_cs_awk_cr=$ac_cr 22005 fi 22006 22007 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22008 _ACEOF 22009 22010 22011 { 22012 echo "cat >conf$$subs.awk <<_ACEOF" && 22013 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22014 echo "_ACEOF" 22015 } >conf$$subs.sh || 22016 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22017 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22018 ac_delim='%!_!# ' 22019 for ac_last_try in false false false false false :; do 22020 . ./conf$$subs.sh || 22021 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22022 22023 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22024 if test $ac_delim_n = $ac_delim_num; then 22025 break 22026 elif $ac_last_try; then 22027 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22028 else 22029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22030 fi 22031 done 22032 rm -f conf$$subs.sh 22033 22034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22035 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22036 _ACEOF 22037 sed -n ' 22038 h 22039 s/^/S["/; s/!.*/"]=/ 22040 p 22041 g 22042 s/^[^!]*!// 22043 :repl 22044 t repl 22045 s/'"$ac_delim"'$// 22046 t delim 22047 :nl 22048 h 22049 s/\(.\{148\}\)..*/\1/ 22050 t more1 22051 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22052 p 22053 n 22054 b repl 22055 :more1 22056 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22057 p 22058 g 22059 s/.\{148\}// 22060 t nl 22061 :delim 22062 h 22063 s/\(.\{148\}\)..*/\1/ 22064 t more2 22065 s/["\\]/\\&/g; s/^/"/; s/$/"/ 22066 p 22067 b 22068 :more2 22069 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22070 p 22071 g 22072 s/.\{148\}// 22073 t delim 22074 ' <conf$$subs.awk | sed ' 22075 /^[^""]/{ 22076 N 22077 s/\n// 22078 } 22079 ' >>$CONFIG_STATUS || ac_write_fail=1 22080 rm -f conf$$subs.awk 22081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22082 _ACAWK 22083 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22084 for (key in S) S_is_set[key] = 1 22085 FS = "" 22086 22087 } 22088 { 22089 line = $ 0 22090 nfields = split(line, field, "@") 22091 substed = 0 22092 len = length(field[1]) 22093 for (i = 2; i < nfields; i++) { 22094 key = field[i] 22095 keylen = length(key) 22096 if (S_is_set[key]) { 22097 value = S[key] 22098 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22099 len += length(value) + length(field[++i]) 22100 substed = 1 22101 } else 22102 len += 1 + keylen 22103 } 22104 22105 print line 22106 } 22107 22108 _ACAWK 22109 _ACEOF 22110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22111 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22112 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22113 else 22114 cat 22115 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22116 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22117 _ACEOF 22118 22119 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22120 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22121 # trailing colons and then remove the whole line if VPATH becomes empty 22122 # (actually we leave an empty line to preserve line numbers). 22123 if test "x$srcdir" = x.; then 22124 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22125 h 22126 s/// 22127 s/^/:/ 22128 s/[ ]*$/:/ 22129 s/:\$(srcdir):/:/g 22130 s/:\${srcdir}:/:/g 22131 s/:@srcdir@:/:/g 22132 s/^:*// 22133 s/:*$// 22134 x 22135 s/\(=[ ]*\).*/\1/ 22136 G 22137 s/\n// 22138 s/^[^=]*=[ ]*$// 22139 }' 22140 fi 22141 22142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22143 fi # test -n "$CONFIG_FILES" 22144 22145 # Set up the scripts for CONFIG_HEADERS section. 22146 # No need to generate them if there are no CONFIG_HEADERS. 22147 # This happens for instance with './config.status Makefile'. 22148 if test -n "$CONFIG_HEADERS"; then 22149 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22150 BEGIN { 22151 _ACEOF 22152 22153 # Transform confdefs.h into an awk script 'defines.awk', embedded as 22154 # here-document in config.status, that substitutes the proper values into 22155 # config.h.in to produce config.h. 22156 22157 # Create a delimiter string that does not exist in confdefs.h, to ease 22158 # handling of long lines. 22159 ac_delim='%!_!# ' 22160 for ac_last_try in false false :; do 22161 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22162 if test -z "$ac_tt"; then 22163 break 22164 elif $ac_last_try; then 22165 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22166 else 22167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22168 fi 22169 done 22170 22171 # For the awk script, D is an array of macro values keyed by name, 22172 # likewise P contains macro parameters if any. Preserve backslash 22173 # newline sequences. 22174 22175 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22176 sed -n ' 22177 s/.\{148\}/&'"$ac_delim"'/g 22178 t rset 22179 :rset 22180 s/^[ ]*#[ ]*define[ ][ ]*/ / 22181 t def 22182 d 22183 :def 22184 s/\\$// 22185 t bsnl 22186 s/["\\]/\\&/g 22187 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22188 D["\1"]=" \3"/p 22189 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22190 d 22191 :bsnl 22192 s/["\\]/\\&/g 22193 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22194 D["\1"]=" \3\\\\\\n"\\/p 22195 t cont 22196 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22197 t cont 22198 d 22199 :cont 22200 n 22201 s/.\{148\}/&'"$ac_delim"'/g 22202 t clear 22203 :clear 22204 s/\\$// 22205 t bsnlc 22206 s/["\\]/\\&/g; s/^/"/; s/$/"/p 22207 d 22208 :bsnlc 22209 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22210 b cont 22211 ' <confdefs.h | sed ' 22212 s/'"$ac_delim"'/"\\\ 22213 "/g' >>$CONFIG_STATUS || ac_write_fail=1 22214 22215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22216 for (key in D) D_is_set[key] = 1 22217 FS = "" 22218 } 22219 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22220 line = \$ 0 22221 split(line, arg, " ") 22222 if (arg[1] == "#") { 22223 defundef = arg[2] 22224 mac1 = arg[3] 22225 } else { 22226 defundef = substr(arg[1], 2) 22227 mac1 = arg[2] 22228 } 22229 split(mac1, mac2, "(") #) 22230 macro = mac2[1] 22231 prefix = substr(line, 1, index(line, defundef) - 1) 22232 if (D_is_set[macro]) { 22233 # Preserve the white space surrounding the "#". 22234 print prefix "define", macro P[macro] D[macro] 22235 next 22236 } else { 22237 # Replace #undef with comments. This is necessary, for example, 22238 # in the case of _POSIX_SOURCE, which is predefined and required 22239 # on some systems where configure will not decide to define it. 22240 if (defundef == "undef") { 22241 print "/*", prefix defundef, macro, "*/" 22242 next 22243 } 22244 } 22245 } 22246 { print } 22247 _ACAWK 22248 _ACEOF 22249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22250 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22251 fi # test -n "$CONFIG_HEADERS" 22252 22253 22254 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22255 shift 22256 for ac_tag 22257 do 22258 case $ac_tag in 22259 :[FHLC]) ac_mode=$ac_tag; continue;; 22260 esac 22261 case $ac_mode$ac_tag in 22262 :[FHL]*:*);; 22263 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 22264 :[FH]-) ac_tag=-:-;; 22265 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22266 esac 22267 ac_save_IFS=$IFS 22268 IFS=: 22269 set x $ac_tag 22270 IFS=$ac_save_IFS 22271 shift 22272 ac_file=$1 22273 shift 22274 22275 case $ac_mode in 22276 :L) ac_source=$1;; 22277 :[FH]) 22278 ac_file_inputs= 22279 for ac_f 22280 do 22281 case $ac_f in 22282 -) ac_f="$ac_tmp/stdin";; 22283 *) # Look for the file first in the build tree, then in the source tree 22284 # (if the path is not absolute). The absolute path cannot be DOS-style, 22285 # because $ac_f cannot contain ':'. 22286 test -f "$ac_f" || 22287 case $ac_f in 22288 [\\/$]*) false;; 22289 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22290 esac || 22291 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 22292 esac 22293 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22294 as_fn_append ac_file_inputs " '$ac_f'" 22295 done 22296 22297 # Let's still pretend it is 'configure' which instantiates (i.e., don't 22298 # use $as_me), people would be surprised to read: 22299 # /* config.h. Generated by config.status. */ 22300 configure_input='Generated from '` 22301 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22302 `' by configure.' 22303 if test x"$ac_file" != x-; then 22304 configure_input="$ac_file. $configure_input" 22305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22306 printf "%s\n" "$as_me: creating $ac_file" >&6;} 22307 fi 22308 # Neutralize special characters interpreted by sed in replacement strings. 22309 case $configure_input in #( 22310 *\&* | *\|* | *\\* ) 22311 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22312 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22313 *) ac_sed_conf_input=$configure_input;; 22314 esac 22315 22316 case $ac_tag in 22317 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22318 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22319 esac 22320 ;; 22321 esac 22322 22323 ac_dir=`$as_dirname -- "$ac_file" || 22324 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22325 X"$ac_file" : 'X\(//\)[^/]' \| \ 22326 X"$ac_file" : 'X\(//\)$' \| \ 22327 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22328 printf "%s\n" X"$ac_file" | 22329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22330 s//\1/ 22331 q 22332 } 22333 /^X\(\/\/\)[^/].*/{ 22334 s//\1/ 22335 q 22336 } 22337 /^X\(\/\/\)$/{ 22338 s//\1/ 22339 q 22340 } 22341 /^X\(\/\).*/{ 22342 s//\1/ 22343 q 22344 } 22345 s/.*/./; q'` 22346 as_dir="$ac_dir"; as_fn_mkdir_p 22347 ac_builddir=. 22348 22349 case "$ac_dir" in 22350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22351 *) 22352 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22353 # A ".." for each directory in $ac_dir_suffix. 22354 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22355 case $ac_top_builddir_sub in 22356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22358 esac ;; 22359 esac 22360 ac_abs_top_builddir=$ac_pwd 22361 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22362 # for backward compatibility: 22363 ac_top_builddir=$ac_top_build_prefix 22364 22365 case $srcdir in 22366 .) # We are building in place. 22367 ac_srcdir=. 22368 ac_top_srcdir=$ac_top_builddir_sub 22369 ac_abs_top_srcdir=$ac_pwd ;; 22370 [\\/]* | ?:[\\/]* ) # Absolute name. 22371 ac_srcdir=$srcdir$ac_dir_suffix; 22372 ac_top_srcdir=$srcdir 22373 ac_abs_top_srcdir=$srcdir ;; 22374 *) # Relative name. 22375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22376 ac_top_srcdir=$ac_top_build_prefix$srcdir 22377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22378 esac 22379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22380 22381 22382 case $ac_mode in 22383 :F) 22384 # 22385 # CONFIG_FILE 22386 # 22387 22388 case $INSTALL in 22389 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22390 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22391 esac 22392 ac_MKDIR_P=$MKDIR_P 22393 case $MKDIR_P in 22394 [\\/$]* | ?:[\\/]* ) ;; 22395 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22396 esac 22397 _ACEOF 22398 22399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22400 # If the template does not know about datarootdir, expand it. 22401 # FIXME: This hack should be removed a few years after 2.60. 22402 ac_datarootdir_hack=; ac_datarootdir_seen= 22403 ac_sed_dataroot=' 22404 /datarootdir/ { 22405 p 22406 q 22407 } 22408 /@datadir@/p 22409 /@docdir@/p 22410 /@infodir@/p 22411 /@localedir@/p 22412 /@mandir@/p' 22413 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22414 *datarootdir*) ac_datarootdir_seen=yes;; 22415 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22417 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22418 _ACEOF 22419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22420 ac_datarootdir_hack=' 22421 s&@datadir@&$datadir&g 22422 s&@docdir@&$docdir&g 22423 s&@infodir@&$infodir&g 22424 s&@localedir@&$localedir&g 22425 s&@mandir@&$mandir&g 22426 s&\\\${datarootdir}&$datarootdir&g' ;; 22427 esac 22428 _ACEOF 22429 22430 # Neutralize VPATH when '$srcdir' = '.'. 22431 # Shell code in configure.ac might set extrasub. 22432 # FIXME: do we really want to maintain this feature? 22433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22434 ac_sed_extra="$ac_vpsub 22435 $extrasub 22436 _ACEOF 22437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22438 :t 22439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22440 s|@configure_input@|$ac_sed_conf_input|;t t 22441 s&@top_builddir@&$ac_top_builddir_sub&;t t 22442 s&@top_build_prefix@&$ac_top_build_prefix&;t t 22443 s&@srcdir@&$ac_srcdir&;t t 22444 s&@abs_srcdir@&$ac_abs_srcdir&;t t 22445 s&@top_srcdir@&$ac_top_srcdir&;t t 22446 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22447 s&@builddir@&$ac_builddir&;t t 22448 s&@abs_builddir@&$ac_abs_builddir&;t t 22449 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22450 s&@INSTALL@&$ac_INSTALL&;t t 22451 s&@MKDIR_P@&$ac_MKDIR_P&;t t 22452 $ac_datarootdir_hack 22453 " 22454 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22455 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22456 22457 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22458 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22459 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22460 "$ac_tmp/out"`; test -z "$ac_out"; } && 22461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22462 which seems to be undefined. Please make sure it is defined" >&5 22463 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22464 which seems to be undefined. Please make sure it is defined" >&2;} 22465 22466 rm -f "$ac_tmp/stdin" 22467 case $ac_file in 22468 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22469 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22470 esac \ 22471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22472 ;; 22473 :H) 22474 # 22475 # CONFIG_HEADER 22476 # 22477 if test x"$ac_file" != x-; then 22478 { 22479 printf "%s\n" "/* $configure_input */" >&1 \ 22480 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22481 } >"$ac_tmp/config.h" \ 22482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22483 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22485 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22486 else 22487 rm -f "$ac_file" 22488 mv "$ac_tmp/config.h" "$ac_file" \ 22489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22490 fi 22491 else 22492 printf "%s\n" "/* $configure_input */" >&1 \ 22493 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22494 || as_fn_error $? "could not create -" "$LINENO" 5 22495 fi 22496 # Compute "$ac_file"'s index in $config_headers. 22497 _am_arg="$ac_file" 22498 _am_stamp_count=1 22499 for _am_header in $config_headers :; do 22500 case $_am_header in 22501 $_am_arg | $_am_arg:* ) 22502 break ;; 22503 * ) 22504 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22505 esac 22506 done 22507 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22508 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22509 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22510 X"$_am_arg" : 'X\(//\)$' \| \ 22511 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22512 printf "%s\n" X"$_am_arg" | 22513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22514 s//\1/ 22515 q 22516 } 22517 /^X\(\/\/\)[^/].*/{ 22518 s//\1/ 22519 q 22520 } 22521 /^X\(\/\/\)$/{ 22522 s//\1/ 22523 q 22524 } 22525 /^X\(\/\).*/{ 22526 s//\1/ 22527 q 22528 } 22529 s/.*/./; q'`/stamp-h$_am_stamp_count 22530 ;; 22531 22532 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22533 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22534 ;; 22535 esac 22536 22537 22538 case $ac_file$ac_mode in 22539 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22540 # Older Autoconf quotes --file arguments for eval, but not when files 22541 # are listed without --file. Let's play safe and only enable the eval 22542 # if we detect the quoting. 22543 # TODO: see whether this extra hack can be removed once we start 22544 # requiring Autoconf 2.70 or later. 22545 case $CONFIG_FILES in #( 22546 *\'*) : 22547 eval set x "$CONFIG_FILES" ;; #( 22548 *) : 22549 set x $CONFIG_FILES ;; #( 22550 *) : 22551 ;; 22552 esac 22553 shift 22554 # Used to flag and report bootstrapping failures. 22555 am_rc=0 22556 for am_mf 22557 do 22558 # Strip MF so we end up with the name of the file. 22559 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22560 # Check whether this is an Automake generated Makefile which includes 22561 # dependency-tracking related rules and includes. 22562 # Grep'ing the whole file directly is not great: AIX grep has a line 22563 # limit of 2048, but all sed's we know have understand at least 4000. 22564 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22565 || continue 22566 am_dirpart=`$as_dirname -- "$am_mf" || 22567 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22568 X"$am_mf" : 'X\(//\)[^/]' \| \ 22569 X"$am_mf" : 'X\(//\)$' \| \ 22570 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22571 printf "%s\n" X"$am_mf" | 22572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22573 s//\1/ 22574 q 22575 } 22576 /^X\(\/\/\)[^/].*/{ 22577 s//\1/ 22578 q 22579 } 22580 /^X\(\/\/\)$/{ 22581 s//\1/ 22582 q 22583 } 22584 /^X\(\/\).*/{ 22585 s//\1/ 22586 q 22587 } 22588 s/.*/./; q'` 22589 am_filepart=`$as_basename -- "$am_mf" || 22590 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22591 X"$am_mf" : 'X\(//\)$' \| \ 22592 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22593 printf "%s\n" X/"$am_mf" | 22594 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22595 s//\1/ 22596 q 22597 } 22598 /^X\/\(\/\/\)$/{ 22599 s//\1/ 22600 q 22601 } 22602 /^X\/\(\/\).*/{ 22603 s//\1/ 22604 q 22605 } 22606 s/.*/./; q'` 22607 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22608 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22609 | $MAKE -f - am--depfiles" >&5 22610 (cd "$am_dirpart" \ 22611 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22612 | $MAKE -f - am--depfiles) >&5 2>&5 22613 ac_status=$? 22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22615 (exit $ac_status); } || am_rc=$? 22616 done 22617 if test $am_rc -ne 0; then 22618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22619 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22620 as_fn_error $? "Something went wrong bootstrapping makefile fragments 22621 for automatic dependency tracking. If GNU make was not used, consider 22622 re-running the configure script with MAKE=\"gmake\" (or whatever is 22623 necessary). You can also try re-running configure with the 22624 '--disable-dependency-tracking' option to at least be able to build 22625 the package (albeit without support for automatic dependency tracking). 22626 See 'config.log' for more details" "$LINENO" 5; } 22627 fi 22628 { am_dirpart=; unset am_dirpart;} 22629 { am_filepart=; unset am_filepart;} 22630 { am_mf=; unset am_mf;} 22631 { am_rc=; unset am_rc;} 22632 rm -f conftest-deps.mk 22633 } 22634 ;; 22635 "libtool":C) 22636 22637 # See if we are running on zsh, and set the options that allow our 22638 # commands through without removal of \ escapes. 22639 if test -n "${ZSH_VERSION+set}"; then 22640 setopt NO_GLOB_SUBST 22641 fi 22642 22643 cfgfile=${ofile}T 22644 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22645 $RM "$cfgfile" 22646 22647 cat <<_LT_EOF >> "$cfgfile" 22648 #! $SHELL 22649 # Generated automatically by $as_me ($PACKAGE) $VERSION 22650 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 22651 22652 # Provide generalized library-building support services. 22653 # Written by Gordon Matzigkeit, 1996 22654 22655 # Copyright (C) 2024 Free Software Foundation, Inc. 22656 # This is free software; see the source for copying conditions. There is NO 22657 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22658 22659 # GNU Libtool is free software; you can redistribute it and/or modify 22660 # it under the terms of the GNU General Public License as published by 22661 # the Free Software Foundation; either version 2 of the License, or 22662 # (at your option) any later version. 22663 # 22664 # As a special exception to the GNU General Public License, if you 22665 # distribute this file as part of a program or library that is built 22666 # using GNU Libtool, you may include this file under the same 22667 # distribution terms that you use for the rest of that program. 22668 # 22669 # GNU Libtool is distributed in the hope that it will be useful, but 22670 # WITHOUT ANY WARRANTY; without even the implied warranty of 22671 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22672 # GNU General Public License for more details. 22673 # 22674 # You should have received a copy of the GNU General Public License 22675 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22676 22677 22678 # The names of the tagged configurations supported by this script. 22679 available_tags='' 22680 22681 # Configured defaults for sys_lib_dlsearch_path munging. 22682 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22683 22684 # ### BEGIN LIBTOOL CONFIG 22685 22686 # Which release of libtool.m4 was used? 22687 macro_version=$macro_version 22688 macro_revision=$macro_revision 22689 22690 # Whether or not to build static libraries. 22691 build_old_libs=$enable_static 22692 22693 # Whether or not to build shared libraries. 22694 build_libtool_libs=$enable_shared 22695 22696 # What type of objects to build. 22697 pic_mode=$pic_mode 22698 22699 # Whether or not to optimize for fast installation. 22700 fast_install=$enable_fast_install 22701 22702 # Shared archive member basename,for filename based shared library versioning on AIX. 22703 shared_archive_member_spec=$shared_archive_member_spec 22704 22705 # Shell to use when invoking shell scripts. 22706 SHELL=$lt_SHELL 22707 22708 # An echo program that protects backslashes. 22709 ECHO=$lt_ECHO 22710 22711 # The PATH separator for the build system. 22712 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22713 22714 # The host system. 22715 host_alias=$host_alias 22716 host=$host 22717 host_os=$host_os 22718 22719 # The build system. 22720 build_alias=$build_alias 22721 build=$build 22722 build_os=$build_os 22723 22724 # A sed program that does not truncate output. 22725 SED=$lt_SED 22726 22727 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22728 Xsed="\$SED -e 1s/^X//" 22729 22730 # A grep program that handles long lines. 22731 GREP=$lt_GREP 22732 22733 # An ERE matcher. 22734 EGREP=$lt_EGREP 22735 22736 # A literal string matcher. 22737 FGREP=$lt_FGREP 22738 22739 # A BSD- or MS-compatible name lister. 22740 NM=$lt_NM 22741 22742 # Whether we need soft or hard links. 22743 LN_S=$lt_LN_S 22744 22745 # What is the maximum length of a command? 22746 max_cmd_len=$max_cmd_len 22747 22748 # Object file suffix (normally "o"). 22749 objext=$ac_objext 22750 22751 # Executable file suffix (normally ""). 22752 exeext=$exeext 22753 22754 # whether the shell understands "unset". 22755 lt_unset=$lt_unset 22756 22757 # turn spaces into newlines. 22758 SP2NL=$lt_lt_SP2NL 22759 22760 # turn newlines into spaces. 22761 NL2SP=$lt_lt_NL2SP 22762 22763 # convert \$build file names to \$host format. 22764 to_host_file_cmd=$lt_cv_to_host_file_cmd 22765 22766 # convert \$build files to toolchain format. 22767 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22768 22769 # A file(cmd) program that detects file types. 22770 FILECMD=$lt_FILECMD 22771 22772 # An object symbol dumper. 22773 OBJDUMP=$lt_OBJDUMP 22774 22775 # Method to check whether dependent libraries are shared objects. 22776 deplibs_check_method=$lt_deplibs_check_method 22777 22778 # Command to use when deplibs_check_method = "file_magic". 22779 file_magic_cmd=$lt_file_magic_cmd 22780 22781 # How to find potential files when deplibs_check_method = "file_magic". 22782 file_magic_glob=$lt_file_magic_glob 22783 22784 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22785 want_nocaseglob=$lt_want_nocaseglob 22786 22787 # DLL creation program. 22788 DLLTOOL=$lt_DLLTOOL 22789 22790 # Command to associate shared and link libraries. 22791 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22792 22793 # The archiver. 22794 AR=$lt_AR 22795 22796 # Flags to create an archive (by configure). 22797 lt_ar_flags=$lt_ar_flags 22798 22799 # Flags to create an archive. 22800 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22801 22802 # How to feed a file listing to the archiver. 22803 archiver_list_spec=$lt_archiver_list_spec 22804 22805 # A symbol stripping program. 22806 STRIP=$lt_STRIP 22807 22808 # Commands used to install an old-style archive. 22809 RANLIB=$lt_RANLIB 22810 old_postinstall_cmds=$lt_old_postinstall_cmds 22811 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22812 22813 # Whether to use a lock for old archive extraction. 22814 lock_old_archive_extraction=$lock_old_archive_extraction 22815 22816 # A C compiler. 22817 LTCC=$lt_CC 22818 22819 # LTCC compiler flags. 22820 LTCFLAGS=$lt_CFLAGS 22821 22822 # Take the output of nm and produce a listing of raw symbols and C names. 22823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22824 22825 # Transform the output of nm in a proper C declaration. 22826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22827 22828 # Transform the output of nm into a list of symbols to manually relocate. 22829 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22830 22831 # Transform the output of nm in a C name address pair. 22832 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22833 22834 # Transform the output of nm in a C name address pair when lib prefix is needed. 22835 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22836 22837 # The name lister interface. 22838 nm_interface=$lt_lt_cv_nm_interface 22839 22840 # Specify filename containing input files for \$NM. 22841 nm_file_list_spec=$lt_nm_file_list_spec 22842 22843 # The root where to search for dependent libraries,and where our libraries should be installed. 22844 lt_sysroot=$lt_sysroot 22845 22846 # Command to truncate a binary pipe. 22847 lt_truncate_bin=$lt_lt_cv_truncate_bin 22848 22849 # The name of the directory that contains temporary libtool files. 22850 objdir=$objdir 22851 22852 # Used to examine libraries when file_magic_cmd begins with "file". 22853 MAGIC_CMD=$MAGIC_CMD 22854 22855 # Must we lock files when doing compilation? 22856 need_locks=$lt_need_locks 22857 22858 # Manifest tool. 22859 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22860 22861 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22862 DSYMUTIL=$lt_DSYMUTIL 22863 22864 # Tool to change global to local symbols on Mac OS X. 22865 NMEDIT=$lt_NMEDIT 22866 22867 # Tool to manipulate fat objects and archives on Mac OS X. 22868 LIPO=$lt_LIPO 22869 22870 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22871 OTOOL=$lt_OTOOL 22872 22873 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22874 OTOOL64=$lt_OTOOL64 22875 22876 # Old archive suffix (normally "a"). 22877 libext=$libext 22878 22879 # Shared library suffix (normally ".so"). 22880 shrext_cmds=$lt_shrext_cmds 22881 22882 # The commands to extract the exported symbol list from a shared archive. 22883 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22884 22885 # Variables whose values should be saved in libtool wrapper scripts and 22886 # restored at link time. 22887 variables_saved_for_relink=$lt_variables_saved_for_relink 22888 22889 # Do we need the "lib" prefix for modules? 22890 need_lib_prefix=$need_lib_prefix 22891 22892 # Do we need a version for libraries? 22893 need_version=$need_version 22894 22895 # Library versioning type. 22896 version_type=$version_type 22897 22898 # Shared library runtime path variable. 22899 runpath_var=$runpath_var 22900 22901 # Shared library path variable. 22902 shlibpath_var=$shlibpath_var 22903 22904 # Is shlibpath searched before the hard-coded library search path? 22905 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22906 22907 # Format of library name prefix. 22908 libname_spec=$lt_libname_spec 22909 22910 # List of archive names. First name is the real one, the rest are links. 22911 # The last name is the one that the linker finds with -lNAME 22912 library_names_spec=$lt_library_names_spec 22913 22914 # The coded name of the library, if different from the real name. 22915 soname_spec=$lt_soname_spec 22916 22917 # Permission mode override for installation of shared libraries. 22918 install_override_mode=$lt_install_override_mode 22919 22920 # Command to use after installation of a shared archive. 22921 postinstall_cmds=$lt_postinstall_cmds 22922 22923 # Command to use after uninstallation of a shared archive. 22924 postuninstall_cmds=$lt_postuninstall_cmds 22925 22926 # Commands used to finish a libtool library installation in a directory. 22927 finish_cmds=$lt_finish_cmds 22928 22929 # As "finish_cmds", except a single script fragment to be evaled but 22930 # not shown. 22931 finish_eval=$lt_finish_eval 22932 22933 # Whether we should hardcode library paths into libraries. 22934 hardcode_into_libs=$hardcode_into_libs 22935 22936 # Compile-time system search path for libraries. 22937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22938 22939 # Detected run-time system search path for libraries. 22940 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22941 22942 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22943 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22944 22945 # Whether dlopen is supported. 22946 dlopen_support=$enable_dlopen 22947 22948 # Whether dlopen of programs is supported. 22949 dlopen_self=$enable_dlopen_self 22950 22951 # Whether dlopen of statically linked programs is supported. 22952 dlopen_self_static=$enable_dlopen_self_static 22953 22954 # Commands to strip libraries. 22955 old_striplib=$lt_old_striplib 22956 striplib=$lt_striplib 22957 22958 22959 # The linker used to build libraries. 22960 LD=$lt_LD 22961 22962 # How to create reloadable object files. 22963 reload_flag=$lt_reload_flag 22964 reload_cmds=$lt_reload_cmds 22965 22966 # Commands used to build an old-style archive. 22967 old_archive_cmds=$lt_old_archive_cmds 22968 22969 # A language specific compiler. 22970 CC=$lt_compiler 22971 22972 # Is the compiler the GNU compiler? 22973 with_gcc=$GCC 22974 22975 # Compiler flag to turn off builtin functions. 22976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22977 22978 # Additional compiler flags for building library objects. 22979 pic_flag=$lt_lt_prog_compiler_pic 22980 22981 # How to pass a linker flag through the compiler. 22982 wl=$lt_lt_prog_compiler_wl 22983 22984 # Compiler flag to prevent dynamic linking. 22985 link_static_flag=$lt_lt_prog_compiler_static 22986 22987 # Does compiler simultaneously support -c and -o options? 22988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22989 22990 # Whether or not to add -lc for building shared libraries. 22991 build_libtool_need_lc=$archive_cmds_need_lc 22992 22993 # Whether or not to disallow shared libs when runtime libs are static. 22994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22995 22996 # Compiler flag to allow reflexive dlopens. 22997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22998 22999 # Compiler flag to generate shared objects directly from archives. 23000 whole_archive_flag_spec=$lt_whole_archive_flag_spec 23001 23002 # Whether the compiler copes with passing no objects directly. 23003 compiler_needs_object=$lt_compiler_needs_object 23004 23005 # Create an old-style archive from a shared archive. 23006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23007 23008 # Create a temporary old-style archive to link instead of a shared archive. 23009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23010 23011 # Commands used to build a shared archive. 23012 archive_cmds=$lt_archive_cmds 23013 archive_expsym_cmds=$lt_archive_expsym_cmds 23014 23015 # Commands used to build a loadable module if different from building 23016 # a shared archive. 23017 module_cmds=$lt_module_cmds 23018 module_expsym_cmds=$lt_module_expsym_cmds 23019 23020 # Whether we are building with GNU ld or not. 23021 with_gnu_ld=$lt_with_gnu_ld 23022 23023 # Flag that allows shared libraries with undefined symbols to be built. 23024 allow_undefined_flag=$lt_allow_undefined_flag 23025 23026 # Flag that enforces no undefined symbols. 23027 no_undefined_flag=$lt_no_undefined_flag 23028 23029 # Flag to hardcode \$libdir into a binary during linking. 23030 # This must work even if \$libdir does not exist 23031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23032 23033 # Whether we need a single "-rpath" flag with a separated argument. 23034 hardcode_libdir_separator=$lt_hardcode_libdir_separator 23035 23036 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23037 # DIR into the resulting binary. 23038 hardcode_direct=$hardcode_direct 23039 23040 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23041 # DIR into the resulting binary and the resulting library dependency is 23042 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 23043 # library is relocated. 23044 hardcode_direct_absolute=$hardcode_direct_absolute 23045 23046 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23047 # into the resulting binary. 23048 hardcode_minus_L=$hardcode_minus_L 23049 23050 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23051 # into the resulting binary. 23052 hardcode_shlibpath_var=$hardcode_shlibpath_var 23053 23054 # Set to "yes" if building a shared library automatically hardcodes DIR 23055 # into the library and all subsequent libraries and executables linked 23056 # against it. 23057 hardcode_automatic=$hardcode_automatic 23058 23059 # Set to yes if linker adds runtime paths of dependent libraries 23060 # to runtime path list. 23061 inherit_rpath=$inherit_rpath 23062 23063 # Whether libtool must link a program against all its dependency libraries. 23064 link_all_deplibs=$link_all_deplibs 23065 23066 # Set to "yes" if exported symbols are required. 23067 always_export_symbols=$always_export_symbols 23068 23069 # The commands to list exported symbols. 23070 export_symbols_cmds=$lt_export_symbols_cmds 23071 23072 # Symbols that should not be listed in the preloaded symbols. 23073 exclude_expsyms=$lt_exclude_expsyms 23074 23075 # Symbols that must always be exported. 23076 include_expsyms=$lt_include_expsyms 23077 23078 # Commands necessary for linking programs (against libraries) with templates. 23079 prelink_cmds=$lt_prelink_cmds 23080 23081 # Commands necessary for finishing linking programs. 23082 postlink_cmds=$lt_postlink_cmds 23083 23084 # Specify filename containing input files. 23085 file_list_spec=$lt_file_list_spec 23086 23087 # How to hardcode a shared library path into an executable. 23088 hardcode_action=$hardcode_action 23089 23090 # ### END LIBTOOL CONFIG 23091 23092 _LT_EOF 23093 23094 cat <<'_LT_EOF' >> "$cfgfile" 23095 23096 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23097 23098 # func_munge_path_list VARIABLE PATH 23099 # ----------------------------------- 23100 # VARIABLE is name of variable containing _space_ separated list of 23101 # directories to be munged by the contents of PATH, which is string 23102 # having a format: 23103 # "DIR[:DIR]:" 23104 # string "DIR[ DIR]" will be prepended to VARIABLE 23105 # ":DIR[:DIR]" 23106 # string "DIR[ DIR]" will be appended to VARIABLE 23107 # "DIRP[:DIRP]::[DIRA:]DIRA" 23108 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23109 # "DIRA[ DIRA]" will be appended to VARIABLE 23110 # "DIR[:DIR]" 23111 # VARIABLE will be replaced by "DIR[ DIR]" 23112 func_munge_path_list () 23113 { 23114 case x$2 in 23115 x) 23116 ;; 23117 *:) 23118 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23119 ;; 23120 x:*) 23121 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23122 ;; 23123 *::*) 23124 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23125 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23126 ;; 23127 *) 23128 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23129 ;; 23130 esac 23131 } 23132 23133 23134 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23135 func_cc_basename () 23136 { 23137 for cc_temp in $*""; do 23138 case $cc_temp in 23139 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23140 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23141 \-*) ;; 23142 *) break;; 23143 esac 23144 done 23145 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23146 } 23147 23148 23149 # ### END FUNCTIONS SHARED WITH CONFIGURE 23150 23151 _LT_EOF 23152 23153 case $host_os in 23154 aix3*) 23155 cat <<\_LT_EOF >> "$cfgfile" 23156 # AIX sometimes has problems with the GCC collect2 program. For some 23157 # reason, if we set the COLLECT_NAMES environment variable, the problems 23158 # vanish in a puff of smoke. 23159 if test set != "${COLLECT_NAMES+set}"; then 23160 COLLECT_NAMES= 23161 export COLLECT_NAMES 23162 fi 23163 _LT_EOF 23164 ;; 23165 esac 23166 23167 23168 23169 ltmain=$ac_aux_dir/ltmain.sh 23170 23171 23172 # We use sed instead of cat because bash on DJGPP gets confused if 23173 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23174 # text mode, it properly converts lines to CR/LF. This bash problem 23175 # is reportedly fixed, but why not run on old versions too? 23176 $SED '$q' "$ltmain" >> "$cfgfile" \ 23177 || (rm -f "$cfgfile"; exit 1) 23178 23179 mv -f "$cfgfile" "$ofile" || 23180 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23181 chmod +x "$ofile" 23182 23183 ;; 23184 23185 esac 23186 done # for ac_tag 23187 23188 23189 as_fn_exit 0 23190 _ACEOF 23191 ac_clean_files=$ac_clean_files_save 23192 23193 test $ac_write_fail = 0 || 23194 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23195 23196 23197 # configure is writing to config.log, and then calls config.status. 23198 # config.status does its own redirection, appending to config.log. 23199 # Unfortunately, on DOS this fails, as config.log is still kept open 23200 # by configure, so config.status won't be able to write to it; its 23201 # output is simply discarded. So we exec the FD to /dev/null, 23202 # effectively closing config.log, so it can be properly (re)opened and 23203 # appended to by config.status. When coming back to configure, we 23204 # need to make the FD available again. 23205 if test "$no_create" != yes; then 23206 ac_cs_success=: 23207 ac_config_status_args= 23208 test "$silent" = yes && 23209 ac_config_status_args="$ac_config_status_args --quiet" 23210 exec 5>/dev/null 23211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23212 exec 5>>config.log 23213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23214 # would make configure fail if this is the last instruction. 23215 $ac_cs_success || as_fn_exit 1 23216 fi 23217 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23219 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23220 fi 23221 23222 23223